From 2fb503d758c8966e34f56f0eb52e15438177d118 Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 7 Aug 2024 04:52:55 +0000 Subject: [PATCH] Automatic Build and Deploy run by GitHub Actions --- .eslintignore | 1 - .eslintrc | 12 - .github/workflows/node.js.yml | 12 - .gitignore | 28 - public/CNAME => CNAME | 0 LICENSE | 21 - README.md | 23 - public/Wonder_Mail.ttf => Wonder_Mail.ttf | Bin assets/index-58b3426c.css | 1 + assets/index-a0b912a9.js | 6772 +++++++++++++++ public/background.png => background.png | Bin codegen.yml | 12 - public/favicon.ico => favicon.ico | Bin graphql.schema.json | 3162 ------- index.html | 4 +- {public/maps => maps}/AMP_PLAINS.png | Bin {public/maps => maps}/BARREN_VALLEY.png | Bin {public/maps => maps}/BEACH_CAVE.png | Bin {public/maps => maps}/BOTTOMLESS_SEA.png | Bin {public/maps => maps}/BRINE_CAVE.png | Bin {public/maps => maps}/BURIED_RELIC_1F_20F.png | Bin .../maps => maps}/BURIED_RELIC_21F_50F.png | Bin .../maps => maps}/BURIED_RELIC_51F_99F.png | Bin {public/maps => maps}/CONCEALED_RUINS.png | Bin {public/maps => maps}/CRAGGY_COAST.png | Bin .../maps => maps}/CRYSTAL_CAVE_01F_05F.png | Bin .../maps => maps}/CRYSTAL_CAVE_06F_11F.png | Bin {public/maps => maps}/CRYSTAL_CAVE_2.png | Bin {public/maps => maps}/CRYSTAL_CROSSING.png | Bin {public/maps => maps}/DARKNIGHT_RELIC.png | Bin {public/maps => maps}/DARK_CRATER.png | Bin {public/maps => maps}/DARK_HILL_01F_06F.png | Bin {public/maps => maps}/DARK_HILL_07F_15F.png | Bin .../maps => maps}/DARK_ICE_MOUNTAIN_PEAK.png | Bin {public/maps => maps}/DARK_WASTELAND.png | Bin {public/maps => maps}/DEEP_BOULDER_QUARRY.png | Bin {public/maps => maps}/DEEP_DARK_CRATER.png | Bin .../DEEP_DUSK_FOREST_01F_06F.png | Bin .../DEEP_DUSK_FOREST_07F_12F.png | Bin .../maps => maps}/DEEP_LIMESTONE_CAVERN.png | Bin {public/maps => maps}/DEEP_SEALED_RUIN.png | Bin {public/maps => maps}/DRENCHED_BLUFF.png | Bin {public/maps => maps}/DUSK_FOREST_01F_04F.png | Bin {public/maps => maps}/DUSK_FOREST_05F_08F.png | Bin {public/maps => maps}/FAR_AMP_PLAINS.png | Bin {public/maps => maps}/FINAL_MAZE_B23F.png | Bin {public/maps => maps}/FOGGY_FOREST.png | Bin {public/maps => maps}/FOREST_PATH.png | Bin {public/maps => maps}/FOURTH_STATION_PATH.png | Bin {public/maps => maps}/FROSTY_FOREST.png | Bin {public/maps => maps}/GOLD_CHAMBER.png | Bin {public/maps => maps}/GREAT_CANYON.png | Bin {public/maps => maps}/HIDDEN_HIGHLAND.png | Bin .../maps => maps}/HOWLING_FOREST_01F_06F.png | Bin .../maps => maps}/HOWLING_FOREST_07F_15F.png | Bin {public/maps => maps}/ICICLE_FOREST.png | Bin {public/maps => maps}/JOYOUS_TOWER.png | Bin {public/maps => maps}/LAPIS_CAVE.png | Bin {public/maps => maps}/LIGHTNING_FIELD.png | Bin {public/maps => maps}/LIMESTONE_CAVERN.png | Bin {public/maps => maps}/LOWER_BRINE_CAVE.png | Bin .../maps => maps}/MAGMA_CAVERN_08F_17F.png | Bin .../maps => maps}/MAGMA_CAVERN_18F_23F.png | Bin {public/maps => maps}/METEOR_CAVE.png | Bin {public/maps => maps}/MT_BLAZE.png | Bin {public/maps => maps}/MT_FARAWAY.png | Bin {public/maps => maps}/MT_FARAWAY_10F_20F.png | Bin {public/maps => maps}/MT_FARAWAY_30F_39F.png | Bin {public/maps => maps}/MT_FREEZE.png | Bin {public/maps => maps}/MT_STEEL_01F_05F.png | Bin {public/maps => maps}/MT_STEEL_06F_08F.png | Bin {public/maps => maps}/MT_THUNDER.png | Bin {public/maps => maps}/MT_THUNDER_PEAK.png | Bin {public/maps => maps}/MURKY_CAVE.png | Bin {public/maps => maps}/MURKY_FOREST.png | Bin .../maps => maps}/MYSTERY_JUNGLE_01F_15F.png | Bin .../maps => maps}/MYSTERY_JUNGLE_16F_30F.png | Bin {public/maps => maps}/MYSTIFYING_FOREST.png | Bin {public/maps => maps}/NORMAL_MAZE.png | Bin .../maps => maps}/NORTHERN_DESERT_01F_07F.png | Bin .../maps => maps}/NORTHERN_RANGE_01F_07F.png | Bin .../maps => maps}/NORTHERN_RANGE_08F_16F.png | Bin {public/maps => maps}/NORTHWIND_FIELD.png | Bin {public/maps => maps}/PITFALL_VALLEY.png | Bin {public/maps => maps}/POISON_MAZE.png | Bin .../maps => maps}/PURITY_FOREST_04F_07F.png | Bin .../maps => maps}/PURITY_FOREST_13F_20F.png | Bin .../maps => maps}/PURITY_FOREST_30F_43F.png | Bin .../maps => maps}/PURITY_FOREST_44F_60F.png | Bin .../maps => maps}/PURITY_FOREST_61F_79F.png | Bin .../maps => maps}/PURITY_FOREST_80F_99F.png | Bin {public/maps => maps}/QUICKSAND_CAVE.png | Bin {public/maps => maps}/QUICKSAND_PIT.png | Bin {public/maps => maps}/QUICKSAND_PIT_2.png | Bin {public/maps => maps}/RESCUE_TEAM_MAZE.png | Bin {public/maps => maps}/ROCK_AEGIS_CAVE.png | Bin {public/maps => maps}/ROCK_PATH.png | Bin {public/maps => maps}/SERENITY_RIVER.png | Bin {public/maps => maps}/SEVEN_STATION_PATH.png | Bin {public/maps => maps}/SHIMMER_DESERT.png | Bin {public/maps => maps}/SILENT_CHASM.png | Bin {public/maps => maps}/SILVER_TRENCH.png | Bin {public/maps => maps}/SINISTER_WOODS.png | Bin {public/maps => maps}/SKY_TOWER.png | Bin {public/maps => maps}/SNOW_PATH.png | Bin {public/maps => maps}/SOLAR_CAVE.png | Bin .../maps => maps}/SOUTHERN_CAVERN_01F_23F.png | Bin .../maps => maps}/SOUTHERN_CAVERN_24F_50F.png | Bin {public/maps => maps}/SPACIAL_CLIFFS.png | Bin {public/maps => maps}/STEAM_CAVE.png | Bin {public/maps => maps}/STORMY_SEA_01F_16F.png | Bin {public/maps => maps}/STORMY_SEA_16F_39F.png | Bin {public/maps => maps}/SURROUNDED_SEA.png | Bin {public/maps => maps}/TEMPORAL_SPIRE.png | Bin .../maps => maps}/TEMPORAL_SPIRE_FUTURE.png | Bin {public/maps => maps}/TEMPORAL_TOWER.png | Bin {public/maps => maps}/TEMPORAL_TOWER_2.png | Bin .../maps => maps}/TEMPORAL_TOWER_FUTURE.png | Bin {public/maps => maps}/TEST_DUNGEON.png | Bin {public/maps => maps}/THE_NIGHTMARE.png | Bin {public/maps => maps}/THUNDERWAVE_CAVE.png | Bin {public/maps => maps}/TINY_MEADOW.png | Bin {public/maps => maps}/TINY_WOODS.png | Bin .../TREESHROUD_FOREST_01F_08F.png | Bin .../TREESHROUD_FOREST_09F_21F.png | Bin {public/maps => maps}/UNOWN_RELIC.png | Bin {public/maps => maps}/UPROAR_FOREST.png | Bin {public/maps => maps}/VAST_ICE_MOUNTAIN.png | Bin .../maps => maps}/VAST_ICE_MOUNTAIN_PEAK.png | Bin {public/maps => maps}/WATERFALL_CAVE.png | Bin {public/maps => maps}/WATERFALL_POND.png | Bin .../maps => maps}/WESTERN_CAVE_B01F_B27F.png | Bin .../maps => maps}/WESTERN_CAVE_B28F_B39F.png | Bin {public/maps => maps}/WISH_CAVE_01F_13F.png | Bin {public/maps => maps}/WISH_CAVE_90F_99F.png | Bin {public/maps => maps}/WORLD_ABYSS.png | Bin {public/maps => maps}/WYVERN_HILL.png | Bin .../maps => maps}/ZERO_ISLE_EAST_15F_25F.png | Bin .../maps => maps}/ZERO_ISLE_EAST_26F_40F.png | Bin .../maps => maps}/ZERO_ISLE_SOUTH_01F_03F.png | Bin .../maps => maps}/ZERO_ISLE_SOUTH_04F_08F.png | Bin package-lock.json | 7378 ----------------- package.json | 70 - public/robots.txt => robots.txt | 0 src/About.tsx | 331 - src/Contributors.tsx | 90 - src/ErrorPage.tsx | 13 - src/Home.tsx | 93 - src/NotFound.tsx | 17 - src/components/bar.tsx | 94 - src/components/bounty.tsx | 33 - src/components/credits.tsx | 36 - src/components/display-parameters.tsx | 100 - src/components/emotions.tsx | 51 - src/components/footer.tsx | 29 - src/components/generate-credits.ts | 74 - src/components/lock.tsx | 36 - src/components/phaser/game-container.ts | 38 - src/components/phaser/game-scene.ts | 80 - src/components/pokemon-carousel.tsx | 254 - src/components/pokemon-informations.tsx | 159 - src/components/pokemon-page.tsx | 135 - src/components/pokemon-ranking.tsx | 37 - src/components/pokemon-thumbnail.tsx | 103 - src/components/search.tsx | 14 - src/components/sprite-preview.tsx | 62 - src/generated/graphql.tsx | 742 -- src/graphql/Carrousel.graphql | 101 - src/graphql/Contributors.graphql | 8 - src/graphql/Keys.graphql | 13 - src/graphql/Pokemon.graphql | 93 - src/index.css | 25 - src/index.tsx | 74 - src/types/enum.ts | 185 - src/types/params.ts | 92 - src/util.tsx | 52 - tsconfig.json | 24 - tsconfig.node.json | 10 - vite-env.d.ts | 1 - vite.config.ts | 11 - 180 files changed, 6776 insertions(+), 14030 deletions(-) delete mode 100644 .eslintignore delete mode 100644 .eslintrc delete mode 100644 .github/workflows/node.js.yml delete mode 100644 .gitignore rename public/CNAME => CNAME (100%) delete mode 100644 LICENSE delete mode 100644 README.md rename public/Wonder_Mail.ttf => Wonder_Mail.ttf (100%) create mode 100644 assets/index-58b3426c.css create mode 100644 assets/index-a0b912a9.js rename public/background.png => background.png (100%) delete mode 100644 codegen.yml rename public/favicon.ico => favicon.ico (100%) delete mode 100644 graphql.schema.json rename {public/maps => maps}/AMP_PLAINS.png (100%) rename {public/maps => maps}/BARREN_VALLEY.png (100%) rename {public/maps => maps}/BEACH_CAVE.png (100%) rename {public/maps => maps}/BOTTOMLESS_SEA.png (100%) rename {public/maps => maps}/BRINE_CAVE.png (100%) rename {public/maps => maps}/BURIED_RELIC_1F_20F.png (100%) rename {public/maps => maps}/BURIED_RELIC_21F_50F.png (100%) rename {public/maps => maps}/BURIED_RELIC_51F_99F.png (100%) rename {public/maps => maps}/CONCEALED_RUINS.png (100%) rename {public/maps => maps}/CRAGGY_COAST.png (100%) rename {public/maps => maps}/CRYSTAL_CAVE_01F_05F.png (100%) rename {public/maps => maps}/CRYSTAL_CAVE_06F_11F.png (100%) rename {public/maps => maps}/CRYSTAL_CAVE_2.png (100%) rename {public/maps => maps}/CRYSTAL_CROSSING.png (100%) rename {public/maps => maps}/DARKNIGHT_RELIC.png (100%) rename {public/maps => maps}/DARK_CRATER.png (100%) rename {public/maps => maps}/DARK_HILL_01F_06F.png (100%) rename {public/maps => maps}/DARK_HILL_07F_15F.png (100%) rename {public/maps => maps}/DARK_ICE_MOUNTAIN_PEAK.png (100%) rename {public/maps => maps}/DARK_WASTELAND.png (100%) rename {public/maps => maps}/DEEP_BOULDER_QUARRY.png (100%) rename {public/maps => maps}/DEEP_DARK_CRATER.png (100%) rename {public/maps => maps}/DEEP_DUSK_FOREST_01F_06F.png (100%) rename {public/maps => maps}/DEEP_DUSK_FOREST_07F_12F.png (100%) rename {public/maps => maps}/DEEP_LIMESTONE_CAVERN.png (100%) rename {public/maps => maps}/DEEP_SEALED_RUIN.png (100%) rename {public/maps => maps}/DRENCHED_BLUFF.png (100%) rename {public/maps => maps}/DUSK_FOREST_01F_04F.png (100%) rename {public/maps => maps}/DUSK_FOREST_05F_08F.png (100%) rename {public/maps => maps}/FAR_AMP_PLAINS.png (100%) rename {public/maps => maps}/FINAL_MAZE_B23F.png (100%) rename {public/maps => maps}/FOGGY_FOREST.png (100%) rename {public/maps => maps}/FOREST_PATH.png (100%) rename {public/maps => maps}/FOURTH_STATION_PATH.png (100%) rename {public/maps => maps}/FROSTY_FOREST.png (100%) rename {public/maps => maps}/GOLD_CHAMBER.png (100%) rename {public/maps => maps}/GREAT_CANYON.png (100%) rename {public/maps => maps}/HIDDEN_HIGHLAND.png (100%) rename {public/maps => maps}/HOWLING_FOREST_01F_06F.png (100%) rename {public/maps => maps}/HOWLING_FOREST_07F_15F.png (100%) rename {public/maps => maps}/ICICLE_FOREST.png (100%) rename {public/maps => maps}/JOYOUS_TOWER.png (100%) rename {public/maps => maps}/LAPIS_CAVE.png (100%) rename {public/maps => maps}/LIGHTNING_FIELD.png (100%) rename {public/maps => maps}/LIMESTONE_CAVERN.png (100%) rename {public/maps => maps}/LOWER_BRINE_CAVE.png (100%) rename {public/maps => maps}/MAGMA_CAVERN_08F_17F.png (100%) rename {public/maps => maps}/MAGMA_CAVERN_18F_23F.png (100%) rename {public/maps => maps}/METEOR_CAVE.png (100%) rename {public/maps => maps}/MT_BLAZE.png (100%) rename {public/maps => maps}/MT_FARAWAY.png (100%) rename {public/maps => maps}/MT_FARAWAY_10F_20F.png (100%) rename {public/maps => maps}/MT_FARAWAY_30F_39F.png (100%) rename {public/maps => maps}/MT_FREEZE.png (100%) rename {public/maps => maps}/MT_STEEL_01F_05F.png (100%) rename {public/maps => maps}/MT_STEEL_06F_08F.png (100%) rename {public/maps => maps}/MT_THUNDER.png (100%) rename {public/maps => maps}/MT_THUNDER_PEAK.png (100%) rename {public/maps => maps}/MURKY_CAVE.png (100%) rename {public/maps => maps}/MURKY_FOREST.png (100%) rename {public/maps => maps}/MYSTERY_JUNGLE_01F_15F.png (100%) rename {public/maps => maps}/MYSTERY_JUNGLE_16F_30F.png (100%) rename {public/maps => maps}/MYSTIFYING_FOREST.png (100%) rename {public/maps => maps}/NORMAL_MAZE.png (100%) rename {public/maps => maps}/NORTHERN_DESERT_01F_07F.png (100%) rename {public/maps => maps}/NORTHERN_RANGE_01F_07F.png (100%) rename {public/maps => maps}/NORTHERN_RANGE_08F_16F.png (100%) rename {public/maps => maps}/NORTHWIND_FIELD.png (100%) rename {public/maps => maps}/PITFALL_VALLEY.png (100%) rename {public/maps => maps}/POISON_MAZE.png (100%) rename {public/maps => maps}/PURITY_FOREST_04F_07F.png (100%) rename {public/maps => maps}/PURITY_FOREST_13F_20F.png (100%) rename {public/maps => maps}/PURITY_FOREST_30F_43F.png (100%) rename {public/maps => maps}/PURITY_FOREST_44F_60F.png (100%) rename {public/maps => maps}/PURITY_FOREST_61F_79F.png (100%) rename {public/maps => maps}/PURITY_FOREST_80F_99F.png (100%) rename {public/maps => maps}/QUICKSAND_CAVE.png (100%) rename {public/maps => maps}/QUICKSAND_PIT.png (100%) rename {public/maps => maps}/QUICKSAND_PIT_2.png (100%) rename {public/maps => maps}/RESCUE_TEAM_MAZE.png (100%) rename {public/maps => maps}/ROCK_AEGIS_CAVE.png (100%) rename {public/maps => maps}/ROCK_PATH.png (100%) rename {public/maps => maps}/SERENITY_RIVER.png (100%) rename {public/maps => maps}/SEVEN_STATION_PATH.png (100%) rename {public/maps => maps}/SHIMMER_DESERT.png (100%) rename {public/maps => maps}/SILENT_CHASM.png (100%) rename {public/maps => maps}/SILVER_TRENCH.png (100%) rename {public/maps => maps}/SINISTER_WOODS.png (100%) rename {public/maps => maps}/SKY_TOWER.png (100%) rename {public/maps => maps}/SNOW_PATH.png (100%) rename {public/maps => maps}/SOLAR_CAVE.png (100%) rename {public/maps => maps}/SOUTHERN_CAVERN_01F_23F.png (100%) rename {public/maps => maps}/SOUTHERN_CAVERN_24F_50F.png (100%) rename {public/maps => maps}/SPACIAL_CLIFFS.png (100%) rename {public/maps => maps}/STEAM_CAVE.png (100%) rename {public/maps => maps}/STORMY_SEA_01F_16F.png (100%) rename {public/maps => maps}/STORMY_SEA_16F_39F.png (100%) rename {public/maps => maps}/SURROUNDED_SEA.png (100%) rename {public/maps => maps}/TEMPORAL_SPIRE.png (100%) rename {public/maps => maps}/TEMPORAL_SPIRE_FUTURE.png (100%) rename {public/maps => maps}/TEMPORAL_TOWER.png (100%) rename {public/maps => maps}/TEMPORAL_TOWER_2.png (100%) rename {public/maps => maps}/TEMPORAL_TOWER_FUTURE.png (100%) rename {public/maps => maps}/TEST_DUNGEON.png (100%) rename {public/maps => maps}/THE_NIGHTMARE.png (100%) rename {public/maps => maps}/THUNDERWAVE_CAVE.png (100%) rename {public/maps => maps}/TINY_MEADOW.png (100%) rename {public/maps => maps}/TINY_WOODS.png (100%) rename {public/maps => maps}/TREESHROUD_FOREST_01F_08F.png (100%) rename {public/maps => maps}/TREESHROUD_FOREST_09F_21F.png (100%) rename {public/maps => maps}/UNOWN_RELIC.png (100%) rename {public/maps => maps}/UPROAR_FOREST.png (100%) rename {public/maps => maps}/VAST_ICE_MOUNTAIN.png (100%) rename {public/maps => maps}/VAST_ICE_MOUNTAIN_PEAK.png (100%) rename {public/maps => maps}/WATERFALL_CAVE.png (100%) rename {public/maps => maps}/WATERFALL_POND.png (100%) rename {public/maps => maps}/WESTERN_CAVE_B01F_B27F.png (100%) rename {public/maps => maps}/WESTERN_CAVE_B28F_B39F.png (100%) rename {public/maps => maps}/WISH_CAVE_01F_13F.png (100%) rename {public/maps => maps}/WISH_CAVE_90F_99F.png (100%) rename {public/maps => maps}/WORLD_ABYSS.png (100%) rename {public/maps => maps}/WYVERN_HILL.png (100%) rename {public/maps => maps}/ZERO_ISLE_EAST_15F_25F.png (100%) rename {public/maps => maps}/ZERO_ISLE_EAST_26F_40F.png (100%) rename {public/maps => maps}/ZERO_ISLE_SOUTH_01F_03F.png (100%) rename {public/maps => maps}/ZERO_ISLE_SOUTH_04F_08F.png (100%) delete mode 100644 package-lock.json delete mode 100644 package.json rename public/robots.txt => robots.txt (100%) delete mode 100644 src/About.tsx delete mode 100644 src/Contributors.tsx delete mode 100644 src/ErrorPage.tsx delete mode 100644 src/Home.tsx delete mode 100644 src/NotFound.tsx delete mode 100644 src/components/bar.tsx delete mode 100644 src/components/bounty.tsx delete mode 100644 src/components/credits.tsx delete mode 100644 src/components/display-parameters.tsx delete mode 100644 src/components/emotions.tsx delete mode 100644 src/components/footer.tsx delete mode 100644 src/components/generate-credits.ts delete mode 100644 src/components/lock.tsx delete mode 100644 src/components/phaser/game-container.ts delete mode 100644 src/components/phaser/game-scene.ts delete mode 100644 src/components/pokemon-carousel.tsx delete mode 100644 src/components/pokemon-informations.tsx delete mode 100644 src/components/pokemon-page.tsx delete mode 100644 src/components/pokemon-ranking.tsx delete mode 100644 src/components/pokemon-thumbnail.tsx delete mode 100644 src/components/search.tsx delete mode 100644 src/components/sprite-preview.tsx delete mode 100644 src/generated/graphql.tsx delete mode 100644 src/graphql/Carrousel.graphql delete mode 100644 src/graphql/Contributors.graphql delete mode 100644 src/graphql/Keys.graphql delete mode 100644 src/graphql/Pokemon.graphql delete mode 100644 src/index.css delete mode 100644 src/index.tsx delete mode 100644 src/types/enum.ts delete mode 100644 src/types/params.ts delete mode 100644 src/util.tsx delete mode 100644 tsconfig.json delete mode 100644 tsconfig.node.json delete mode 100644 vite-env.d.ts delete mode 100644 vite.config.ts diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index a39b67259..000000000 --- a/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -src/generated/* \ No newline at end of file diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 41542ffce..000000000 --- a/.eslintrc +++ /dev/null @@ -1,12 +0,0 @@ -{ - "root": true, - "parser": "@typescript-eslint/parser", - "plugins": [ - "@typescript-eslint" - ], - "extends": [ - "eslint:recommended", - "plugin:@typescript-eslint/eslint-recommended", - "plugin:@typescript-eslint/recommended" - ] - } \ No newline at end of file diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml deleted file mode 100644 index 15003758a..000000000 --- a/.github/workflows/node.js.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Build and Deploy -on: - push: - branches: [ "master" ] -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Build & Deploy React app to GitHub Pages - uses: MrKrishnaAgarwal/deploy-react-app-to-gh-pages@v1.0.0 \ No newline at end of file diff --git a/.gitignore b/.gitignore deleted file mode 100644 index d353b3fff..000000000 --- a/.gitignore +++ /dev/null @@ -1,28 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# production -/build - -# misc -.DS_Store -.env.local -.env.development.local -.env.test.local -.env.production.local - -npm-debug.log* -yarn-debug.log* -yarn-error.log* -node_modules -public/portrait -public/sprites - -src/types/tracker.json diff --git a/public/CNAME b/CNAME similarity index 100% rename from public/CNAME rename to CNAME diff --git a/LICENSE b/LICENSE deleted file mode 100644 index f65f6d167..000000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2023 PMDCollab - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/README.md b/README.md deleted file mode 100644 index 2ce0b5f7f..000000000 --- a/README.md +++ /dev/null @@ -1,23 +0,0 @@ -# PMD-collab-wiki - -PMD Collab Site -Each assets comes from PMD Collab github. Can be change be the `CDN_URL` parameter in src/types/enum.ts. - -## Installation - -``` -npm install -``` - -## Dev - -``` -npm start -``` - -## Deploy - -it creates a gh-pages branch in your repo -``` -npm run deploy -``` diff --git a/public/Wonder_Mail.ttf b/Wonder_Mail.ttf similarity index 100% rename from public/Wonder_Mail.ttf rename to Wonder_Mail.ttf diff --git a/assets/index-58b3426c.css b/assets/index-58b3426c.css new file mode 100644 index 000000000..6fd66f1a9 --- /dev/null +++ b/assets/index-58b3426c.css @@ -0,0 +1 @@ +@font-face{font-family:wonderMail;src:url(/Wonder_Mail.ttf);size-adjust:150%}strong>.with-credit{text-decoration:underline;color:red}.credit-label{outline:3px solid lightgray;border-radius:5px;color:#d3d3d3}.credit-label input[type=checkbox]{display:none}.credit-label:has(input[type=checkbox]:checked){outline:3px solid lime;color:#0f0} diff --git a/assets/index-a0b912a9.js b/assets/index-a0b912a9.js new file mode 100644 index 000000000..924532d77 --- /dev/null +++ b/assets/index-a0b912a9.js @@ -0,0 +1,6772 @@ +var PC=Object.defineProperty;var RC=(e,i,v)=>i in e?PC(e,i,{enumerable:!0,configurable:!0,writable:!0,value:v}):e[i]=v;var AC=(e,i)=>()=>(i||e((i={exports:{}}).exports,i),i.exports);var An=(e,i,v)=>(RC(e,typeof i!="symbol"?i+"":i,v),v);var Qz=AC((tV,Pv)=>{function MC(e,i){for(var v=0;vy[C]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const C of document.querySelectorAll('link[rel="modulepreload"]'))y(C);new MutationObserver(C=>{for(const A of C)if(A.type==="childList")for(const f of A.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&y(f)}).observe(document,{childList:!0,subtree:!0});function v(C){const A={};return C.integrity&&(A.integrity=C.integrity),C.referrerPolicy&&(A.referrerPolicy=C.referrerPolicy),C.crossOrigin==="use-credentials"?A.credentials="include":C.crossOrigin==="anonymous"?A.credentials="omit":A.credentials="same-origin",A}function y(C){if(C.ep)return;C.ep=!0;const A=v(C);fetch(C.href,A)}})();var OC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wC(e){if(e.__esModule)return e;var i=e.default;if(typeof i=="function"){var v=function y(){return this instanceof y?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};v.prototype=i.prototype}else v={};return Object.defineProperty(v,"__esModule",{value:!0}),Object.keys(e).forEach(function(y){var C=Object.getOwnPropertyDescriptor(e,y);Object.defineProperty(v,y,C.get?C:{enumerable:!0,get:function(){return e[y]}})}),v}var a1={exports:{}},ch={},o1={exports:{}},Bt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var el=Symbol.for("react.element"),FC=Symbol.for("react.portal"),LC=Symbol.for("react.fragment"),IC=Symbol.for("react.strict_mode"),bC=Symbol.for("react.profiler"),DC=Symbol.for("react.provider"),NC=Symbol.for("react.context"),BC=Symbol.for("react.forward_ref"),GC=Symbol.for("react.suspense"),UC=Symbol.for("react.memo"),zC=Symbol.for("react.lazy"),l0=Symbol.iterator;function VC(e){return e===null||typeof e!="object"?null:(e=l0&&e[l0]||e["@@iterator"],typeof e=="function"?e:null)}var l1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},u1=Object.assign,h1={};function oa(e,i,v){this.props=e,this.context=i,this.refs=h1,this.updater=v||l1}oa.prototype.isReactComponent={};oa.prototype.setState=function(e,i){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,i,"setState")};oa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function f1(){}f1.prototype=oa.prototype;function Av(e,i,v){this.props=e,this.context=i,this.refs=h1,this.updater=v||l1}var Mv=Av.prototype=new f1;Mv.constructor=Av;u1(Mv,oa.prototype);Mv.isPureReactComponent=!0;var u0=Array.isArray,d1=Object.prototype.hasOwnProperty,Ov={current:null},c1={key:!0,ref:!0,__self:!0,__source:!0};function v1(e,i,v){var y,C={},A=null,f=null;if(i!=null)for(y in i.ref!==void 0&&(f=i.ref),i.key!==void 0&&(A=""+i.key),i)d1.call(i,y)&&!c1.hasOwnProperty(y)&&(C[y]=i[y]);var T=arguments.length-2;if(T===1)C.children=v;else if(1>>1,j=N[Y];if(0>>1;YC(I,W))BC(U,I)?(N[Y]=U,N[B]=W,Y=B):(N[Y]=I,N[V]=W,Y=V);else if(BC(U,W))N[Y]=U,N[B]=W,Y=B;else break t}}return z}function C(N,z){var W=N.sortIndex-z.sortIndex;return W!==0?W:N.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var A=performance;e.unstable_now=function(){return A.now()}}else{var f=Date,T=f.now();e.unstable_now=function(){return f.now()-T}}var t=[],l=[],g=1,u=null,o=3,a=!1,n=!1,r=!1,d=typeof setTimeout=="function"?setTimeout:null,s=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function c(N){for(var z=v(l);z!==null;){if(z.callback===null)y(l);else if(z.startTime<=N)y(l),z.sortIndex=z.expirationTime,i(t,z);else break;z=v(l)}}function p(N){if(r=!1,c(N),!n)if(v(t)!==null)n=!0,b(m);else{var z=v(l);z!==null&&D(p,z.startTime-N)}}function m(N,z){n=!1,r&&(r=!1,s(P),P=-1),a=!0;var W=o;try{for(c(z),u=v(t);u!==null&&(!(u.expirationTime>z)||N&&!M());){var Y=u.callback;if(typeof Y=="function"){u.callback=null,o=u.priorityLevel;var j=Y(u.expirationTime<=z);z=e.unstable_now(),typeof j=="function"?u.callback=j:u===v(t)&&y(t),c(z)}else y(t);u=v(t)}if(u!==null)var G=!0;else{var V=v(l);V!==null&&D(p,V.startTime-z),G=!1}return G}finally{u=null,o=W,a=!1}}var x=!1,S=null,P=-1,E=5,R=-1;function M(){return!(e.unstable_now()-RN||125Y?(N.sortIndex=W,i(l,N),v(t)===null&&N===v(l)&&(r?(s(P),P=-1):r=!0,D(p,W-Y))):(N.sortIndex=j,i(t,N),n||a||(n=!0,b(m))),N},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(N){var z=o;return function(){var W=o;o=z;try{return N.apply(this,arguments)}finally{o=W}}}})(y1);g1.exports=y1;var JC=g1.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var x1=Q,hi=JC;function dt(e){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+e,v=1;v"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bd=Object.prototype.hasOwnProperty,qC=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f0={},d0={};function _C(e){return bd.call(d0,e)?!0:bd.call(f0,e)?!1:qC.test(e)?d0[e]=!0:(f0[e]=!0,!1)}function tP(e,i,v,y){if(v!==null&&v.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return y?!1:v!==null?!v.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function eP(e,i,v,y){if(i===null||typeof i>"u"||tP(e,i,v,y))return!0;if(y)return!1;if(v!==null)switch(v.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function He(e,i,v,y,C,A,f){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=y,this.attributeNamespace=C,this.mustUseProperty=v,this.propertyName=e,this.type=i,this.sanitizeURL=A,this.removeEmptyString=f}var Ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ie[e]=new He(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var i=e[0];Ie[i]=new He(i,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ie[e]=new He(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ie[e]=new He(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ie[e]=new He(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ie[e]=new He(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ie[e]=new He(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ie[e]=new He(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ie[e]=new He(e,5,!1,e.toLowerCase(),null,!1,!1)});var Fv=/[\-:]([a-z])/g;function Lv(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var i=e.replace(Fv,Lv);Ie[i]=new He(i,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var i=e.replace(Fv,Lv);Ie[i]=new He(i,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var i=e.replace(Fv,Lv);Ie[i]=new He(i,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ie[e]=new He(e,1,!1,e.toLowerCase(),null,!1,!1)});Ie.xlinkHref=new He("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ie[e]=new He(e,1,!1,e.toLowerCase(),null,!0,!0)});function Iv(e,i,v,y){var C=Ie.hasOwnProperty(i)?Ie[i]:null;(C!==null?C.type!==0:y||!(2T||C[f]!==A[T]){var t=` +`+C[f].replace(" at new "," at ");return e.displayName&&t.includes("")&&(t=t.replace("",e.displayName)),t}while(1<=f&&0<=T);break}}}finally{Nf=!1,Error.prepareStackTrace=v}return(e=e?e.displayName||e.name:"")?Wa(e):""}function iP(e){switch(e.tag){case 5:return Wa(e.type);case 16:return Wa("Lazy");case 13:return Wa("Suspense");case 19:return Wa("SuspenseList");case 0:case 2:case 15:return e=Bf(e.type,!1),e;case 11:return e=Bf(e.type.render,!1),e;case 1:return e=Bf(e.type,!0),e;default:return""}}function Gd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ds:return"Fragment";case fs:return"Portal";case Dd:return"Profiler";case bv:return"StrictMode";case Nd:return"Suspense";case Bd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E1:return(e.displayName||"Context")+".Consumer";case S1:return(e._context.displayName||"Context")+".Provider";case Dv:var i=e.render;return e=e.displayName,e||(e=i.displayName||i.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Nv:return i=e.displayName||null,i!==null?i:Gd(e.type)||"Memo";case Ln:i=e._payload,e=e._init;try{return Gd(e(i))}catch{}}return null}function nP(e){var i=e.type;switch(e.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=i.render,e=e.displayName||e.name||"",i.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Gd(i);case 8:return i===bv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function qn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function P1(e){var i=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function rP(e){var i=P1(e)?"checked":"value",v=Object.getOwnPropertyDescriptor(e.constructor.prototype,i),y=""+e[i];if(!e.hasOwnProperty(i)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var C=v.get,A=v.set;return Object.defineProperty(e,i,{configurable:!0,get:function(){return C.call(this)},set:function(f){y=""+f,A.call(this,f)}}),Object.defineProperty(e,i,{enumerable:v.enumerable}),{getValue:function(){return y},setValue:function(f){y=""+f},stopTracking:function(){e._valueTracker=null,delete e[i]}}}}function Cl(e){e._valueTracker||(e._valueTracker=rP(e))}function R1(e){if(!e)return!1;var i=e._valueTracker;if(!i)return!0;var v=i.getValue(),y="";return e&&(y=P1(e)?e.checked?"true":"false":e.value),e=y,e!==v?(i.setValue(e),!0):!1}function Ou(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ud(e,i){var v=i.checked;return oe({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:v??e._wrapperState.initialChecked})}function v0(e,i){var v=i.defaultValue==null?"":i.defaultValue,y=i.checked!=null?i.checked:i.defaultChecked;v=qn(i.value!=null?i.value:v),e._wrapperState={initialChecked:y,initialValue:v,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function A1(e,i){i=i.checked,i!=null&&Iv(e,"checked",i,!1)}function zd(e,i){A1(e,i);var v=qn(i.value),y=i.type;if(v!=null)y==="number"?(v===0&&e.value===""||e.value!=v)&&(e.value=""+v):e.value!==""+v&&(e.value=""+v);else if(y==="submit"||y==="reset"){e.removeAttribute("value");return}i.hasOwnProperty("value")?Vd(e,i.type,v):i.hasOwnProperty("defaultValue")&&Vd(e,i.type,qn(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(e.defaultChecked=!!i.defaultChecked)}function p0(e,i,v){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var y=i.type;if(!(y!=="submit"&&y!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+e._wrapperState.initialValue,v||i===e.value||(e.value=i),e.defaultValue=i}v=e.name,v!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,v!==""&&(e.name=v)}function Vd(e,i,v){(i!=="number"||Ou(e.ownerDocument)!==e)&&(v==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+v&&(e.defaultValue=""+v))}var Xa=Array.isArray;function Os(e,i,v,y){if(e=e.options,i){i={};for(var C=0;C"+i.valueOf().toString()+"",i=Pl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;i.firstChild;)e.appendChild(i.firstChild)}});function Eo(e,i){if(i){var v=e.firstChild;if(v&&v===e.lastChild&&v.nodeType===3){v.nodeValue=i;return}}e.textContent=i}var eo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},sP=["Webkit","ms","Moz","O"];Object.keys(eo).forEach(function(e){sP.forEach(function(i){i=i+e.charAt(0).toUpperCase()+e.substring(1),eo[i]=eo[e]})});function F1(e,i,v){return i==null||typeof i=="boolean"||i===""?"":v||typeof i!="number"||i===0||eo.hasOwnProperty(e)&&eo[e]?(""+i).trim():i+"px"}function L1(e,i){e=e.style;for(var v in i)if(i.hasOwnProperty(v)){var y=v.indexOf("--")===0,C=F1(v,i[v],y);v==="float"&&(v="cssFloat"),y?e.setProperty(v,C):e[v]=C}}var aP=oe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Yd(e,i){if(i){if(aP[e]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(dt(137,e));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(dt(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(dt(61))}if(i.style!=null&&typeof i.style!="object")throw Error(dt(62))}}function Hd(e,i){if(e.indexOf("-")===-1)return typeof i.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $d=null;function Bv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var jd=null,ws=null,Fs=null;function y0(e){if(e=rl(e)){if(typeof jd!="function")throw Error(dt(280));var i=e.stateNode;i&&(i=yh(i),jd(e.stateNode,e.type,i))}}function I1(e){ws?Fs?Fs.push(e):Fs=[e]:ws=e}function b1(){if(ws){var e=ws,i=Fs;if(Fs=ws=null,y0(e),i)for(e=0;e>>=0,e===0?32:31-(gP(e)/yP|0)|0}var Rl=64,Al=4194304;function Ya(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Iu(e,i){var v=e.pendingLanes;if(v===0)return 0;var y=0,C=e.suspendedLanes,A=e.pingedLanes,f=v&268435455;if(f!==0){var T=f&~C;T!==0?y=Ya(T):(A&=f,A!==0&&(y=Ya(A)))}else f=v&~C,f!==0?y=Ya(f):A!==0&&(y=Ya(A));if(y===0)return 0;if(i!==0&&i!==y&&!(i&C)&&(C=y&-y,A=i&-i,C>=A||C===16&&(A&4194240)!==0))return i;if(y&4&&(y|=v&16),i=e.entangledLanes,i!==0)for(e=e.entanglements,i&=y;0v;v++)i.push(e);return i}function il(e,i,v){e.pendingLanes|=i,i!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,i=31-zi(i),e[i]=v}function EP(e,i){var v=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;var y=e.eventTimes;for(e=e.expirationTimes;0=no),M0=String.fromCharCode(32),O0=!1;function _1(e,i){switch(e){case"keyup":return ZP.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tT(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var cs=!1;function qP(e,i){switch(e){case"compositionend":return tT(i);case"keypress":return i.which!==32?null:(O0=!0,M0);case"textInput":return e=i.data,e===M0&&O0?null:e;default:return null}}function _P(e,i){if(cs)return e==="compositionend"||!Hv&&_1(e,i)?(e=J1(),eu=Wv=zn=null,cs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1=i)return{node:v,offset:i-e};e=y}t:{for(;v;){if(v.nextSibling){v=v.nextSibling;break t}v=v.parentNode}v=void 0}v=I0(v)}}function rT(e,i){return e&&i?e===i?!0:e&&e.nodeType===3?!1:i&&i.nodeType===3?rT(e,i.parentNode):"contains"in e?e.contains(i):e.compareDocumentPosition?!!(e.compareDocumentPosition(i)&16):!1:!1}function sT(){for(var e=window,i=Ou();i instanceof e.HTMLIFrameElement;){try{var v=typeof i.contentWindow.location.href=="string"}catch{v=!1}if(v)e=i.contentWindow;else break;i=Ou(e.document)}return i}function $v(e){var i=e&&e.nodeName&&e.nodeName.toLowerCase();return i&&(i==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||i==="textarea"||e.contentEditable==="true")}function lR(e){var i=sT(),v=e.focusedElem,y=e.selectionRange;if(i!==v&&v&&v.ownerDocument&&rT(v.ownerDocument.documentElement,v)){if(y!==null&&$v(v)){if(i=y.start,e=y.end,e===void 0&&(e=i),"selectionStart"in v)v.selectionStart=i,v.selectionEnd=Math.min(e,v.value.length);else if(e=(i=v.ownerDocument||document)&&i.defaultView||window,e.getSelection){e=e.getSelection();var C=v.textContent.length,A=Math.min(y.start,C);y=y.end===void 0?A:Math.min(y.end,C),!e.extend&&A>y&&(C=y,y=A,A=C),C=b0(v,A);var f=b0(v,y);C&&f&&(e.rangeCount!==1||e.anchorNode!==C.node||e.anchorOffset!==C.offset||e.focusNode!==f.node||e.focusOffset!==f.offset)&&(i=i.createRange(),i.setStart(C.node,C.offset),e.removeAllRanges(),A>y?(e.addRange(i),e.extend(f.node,f.offset)):(i.setEnd(f.node,f.offset),e.addRange(i)))}}for(i=[],e=v;e=e.parentNode;)e.nodeType===1&&i.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v=document.documentMode,vs=null,qd=null,so=null,_d=!1;function D0(e,i,v){var y=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;_d||vs==null||vs!==Ou(y)||(y=vs,"selectionStart"in y&&$v(y)?y={start:y.selectionStart,end:y.selectionEnd}:(y=(y.ownerDocument&&y.ownerDocument.defaultView||window).getSelection(),y={anchorNode:y.anchorNode,anchorOffset:y.anchorOffset,focusNode:y.focusNode,focusOffset:y.focusOffset}),so&&Oo(so,y)||(so=y,y=Nu(qd,"onSelect"),0gs||(e.current=sc[gs],sc[gs]=null,gs--)}function Kt(e,i){gs++,sc[gs]=e.current,e.current=i}var _n={},Ue=or(_n),Ke=or(!1),Lr=_n;function Ys(e,i){var v=e.type.contextTypes;if(!v)return _n;var y=e.stateNode;if(y&&y.__reactInternalMemoizedUnmaskedChildContext===i)return y.__reactInternalMemoizedMaskedChildContext;var C={},A;for(A in v)C[A]=i[A];return y&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=C),C}function Qe(e){return e=e.childContextTypes,e!=null}function Gu(){_t(Ke),_t(Ue)}function W0(e,i,v){if(Ue.current!==_n)throw Error(dt(168));Kt(Ue,i),Kt(Ke,v)}function vT(e,i,v){var y=e.stateNode;if(i=i.childContextTypes,typeof y.getChildContext!="function")return v;y=y.getChildContext();for(var C in y)if(!(C in i))throw Error(dt(108,nP(e)||"Unknown",C));return oe({},v,y)}function Uu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_n,Lr=Ue.current,Kt(Ue,e),Kt(Ke,Ke.current),!0}function X0(e,i,v){var y=e.stateNode;if(!y)throw Error(dt(169));v?(e=vT(e,i,Lr),y.__reactInternalMemoizedMergedChildContext=e,_t(Ke),_t(Ue),Kt(Ue,e)):_t(Ke),Kt(Ke,v)}var hn=null,xh=!1,Zf=!1;function pT(e){hn===null?hn=[e]:hn.push(e)}function TR(e){xh=!0,pT(e)}function lr(){if(!Zf&&hn!==null){Zf=!0;var e=0,i=$t;try{var v=hn;for($t=1;e>=f,C-=f,fn=1<<32-zi(i)+C|v<P?(E=S,S=null):E=S.sibling;var R=o(s,S,c[P],p);if(R===null){S===null&&(S=E);break}e&&S&&R.alternate===null&&i(s,S),h=A(R,h,P),x===null?m=R:x.sibling=R,x=R,S=E}if(P===c.length)return v(s,S),ee&&pr(s,P),m;if(S===null){for(;PP?(E=S,S=null):E=S.sibling;var M=o(s,S,R.value,p);if(M===null){S===null&&(S=E);break}e&&S&&M.alternate===null&&i(s,S),h=A(M,h,P),x===null?m=M:x.sibling=M,x=M,S=E}if(R.done)return v(s,S),ee&&pr(s,P),m;if(S===null){for(;!R.done;P++,R=c.next())R=u(s,R.value,p),R!==null&&(h=A(R,h,P),x===null?m=R:x.sibling=R,x=R);return ee&&pr(s,P),m}for(S=y(s,S);!R.done;P++,R=c.next())R=a(S,s,P,R.value,p),R!==null&&(e&&R.alternate!==null&&S.delete(R.key===null?P:R.key),h=A(R,h,P),x===null?m=R:x.sibling=R,x=R);return e&&S.forEach(function(O){return i(s,O)}),ee&&pr(s,P),m}function d(s,h,c,p){if(typeof c=="object"&&c!==null&&c.type===ds&&c.key===null&&(c=c.props.children),typeof c=="object"&&c!==null){switch(c.$$typeof){case El:t:{for(var m=c.key,x=h;x!==null;){if(x.key===m){if(m=c.type,m===ds){if(x.tag===7){v(s,x.sibling),h=C(x,c.props.children),h.return=s,s=h;break t}}else if(x.elementType===m||typeof m=="object"&&m!==null&&m.$$typeof===Ln&&Q0(m)===x.type){v(s,x.sibling),h=C(x,c.props),h.ref=Sa(s,x,c),h.return=s,s=h;break t}v(s,x);break}else i(s,x);x=x.sibling}c.type===ds?(h=Mr(c.props.children,s.mode,p,c.key),h.return=s,s=h):(p=uu(c.type,c.key,c.props,null,s.mode,p),p.ref=Sa(s,h,c),p.return=s,s=p)}return f(s);case fs:t:{for(x=c.key;h!==null;){if(h.key===x)if(h.tag===4&&h.stateNode.containerInfo===c.containerInfo&&h.stateNode.implementation===c.implementation){v(s,h.sibling),h=C(h,c.children||[]),h.return=s,s=h;break t}else{v(s,h);break}else i(s,h);h=h.sibling}h=rd(c,s.mode,p),h.return=s,s=h}return f(s);case Ln:return x=c._init,d(s,h,x(c._payload),p)}if(Xa(c))return n(s,h,c,p);if(ma(c))return r(s,h,c,p);bl(s,c)}return typeof c=="string"&&c!==""||typeof c=="number"?(c=""+c,h!==null&&h.tag===6?(v(s,h.sibling),h=C(h,c),h.return=s,s=h):(v(s,h),h=nd(c,s.mode,p),h.return=s,s=h),f(s)):v(s,h)}return d}var $s=CT(!0),PT=CT(!1),sl={},_i=or(sl),Io=or(sl),bo=or(sl);function Er(e){if(e===sl)throw Error(dt(174));return e}function tp(e,i){switch(Kt(bo,i),Kt(Io,e),Kt(_i,sl),e=i.nodeType,e){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:Xd(null,"");break;default:e=e===8?i.parentNode:i,i=e.namespaceURI||null,e=e.tagName,i=Xd(i,e)}_t(_i),Kt(_i,i)}function js(){_t(_i),_t(Io),_t(bo)}function RT(e){Er(bo.current);var i=Er(_i.current),v=Xd(i,e.type);i!==v&&(Kt(Io,e),Kt(_i,v))}function ep(e){Io.current===e&&(_t(_i),_t(Io))}var se=or(0);function Hu(e){for(var i=e;i!==null;){if(i.tag===13){var v=i.memoizedState;if(v!==null&&(v=v.dehydrated,v===null||v.data==="$?"||v.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if(i.flags&128)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break;for(;i.sibling===null;){if(i.return===null||i.return===e)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Jf=[];function ip(){for(var e=0;ev?v:4,e(!0);var y=qf.transition;qf.transition={};try{e(!1),i()}finally{$t=v,qf.transition=y}}function WT(){return Pi().memoizedState}function PR(e,i,v){var y=Qn(e);if(v={lane:y,action:v,hasEagerState:!1,eagerState:null,next:null},XT(e))YT(i,v);else if(v=xT(e,i,v,y),v!==null){var C=Xe();Vi(v,e,y,C),HT(v,i,y)}}function RR(e,i,v){var y=Qn(e),C={lane:y,action:v,hasEagerState:!1,eagerState:null,next:null};if(XT(e))YT(i,C);else{var A=e.alternate;if(e.lanes===0&&(A===null||A.lanes===0)&&(A=i.lastRenderedReducer,A!==null))try{var f=i.lastRenderedState,T=A(f,v);if(C.hasEagerState=!0,C.eagerState=T,Wi(T,f)){var t=i.interleaved;t===null?(C.next=C,qv(i)):(C.next=t.next,t.next=C),i.interleaved=C;return}}catch{}finally{}v=xT(e,i,C,y),v!==null&&(C=Xe(),Vi(v,e,y,C),HT(v,i,y))}}function XT(e){var i=e.alternate;return e===ae||i!==null&&i===ae}function YT(e,i){ao=$u=!0;var v=e.pending;v===null?i.next=i:(i.next=v.next,v.next=i),e.pending=i}function HT(e,i,v){if(v&4194240){var y=i.lanes;y&=e.pendingLanes,v|=y,i.lanes=v,Uv(e,v)}}var ju={readContext:Ci,useCallback:be,useContext:be,useEffect:be,useImperativeHandle:be,useInsertionEffect:be,useLayoutEffect:be,useMemo:be,useReducer:be,useRef:be,useState:be,useDebugValue:be,useDeferredValue:be,useTransition:be,useMutableSource:be,useSyncExternalStore:be,useId:be,unstable_isNewReconciler:!1},AR={readContext:Ci,useCallback:function(e,i){return ki().memoizedState=[e,i===void 0?null:i],e},useContext:Ci,useEffect:J0,useImperativeHandle:function(e,i,v){return v=v!=null?v.concat([e]):null,su(4194308,4,BT.bind(null,i,e),v)},useLayoutEffect:function(e,i){return su(4194308,4,e,i)},useInsertionEffect:function(e,i){return su(4,2,e,i)},useMemo:function(e,i){var v=ki();return i=i===void 0?null:i,e=e(),v.memoizedState=[e,i],e},useReducer:function(e,i,v){var y=ki();return i=v!==void 0?v(i):i,y.memoizedState=y.baseState=i,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},y.queue=e,e=e.dispatch=PR.bind(null,ae,e),[y.memoizedState,e]},useRef:function(e){var i=ki();return e={current:e},i.memoizedState=e},useState:Z0,useDebugValue:op,useDeferredValue:function(e){return ki().memoizedState=e},useTransition:function(){var e=Z0(!1),i=e[0];return e=CR.bind(null,e[1]),ki().memoizedState=e,[i,e]},useMutableSource:function(){},useSyncExternalStore:function(e,i,v){var y=ae,C=ki();if(ee){if(v===void 0)throw Error(dt(407));v=v()}else{if(v=i(),Re===null)throw Error(dt(349));br&30||OT(y,i,v)}C.memoizedState=v;var A={value:v,getSnapshot:i};return C.queue=A,J0(FT.bind(null,y,A,e),[e]),y.flags|=2048,Bo(9,wT.bind(null,y,A,v,i),void 0,null),v},useId:function(){var e=ki(),i=Re.identifierPrefix;if(ee){var v=dn,y=fn;v=(y&~(1<<32-zi(y)-1)).toString(32)+v,i=":"+i+"R"+v,v=Do++,0<\/script>",e=e.removeChild(e.firstChild)):typeof y.is=="string"?e=f.createElement(v,{is:y.is}):(e=f.createElement(v),v==="select"&&(f=e,y.multiple?f.multiple=!0:y.size&&(f.size=y.size))):e=f.createElementNS(e,v),e[Zi]=i,e[Lo]=y,_T(e,i,!1,!1),i.stateNode=e;t:{switch(f=Hd(v,y),v){case"dialog":Jt("cancel",e),Jt("close",e),C=y;break;case"iframe":case"object":case"embed":Jt("load",e),C=y;break;case"video":case"audio":for(C=0;CKs&&(i.flags|=128,y=!0,Ea(A,!1),i.lanes=4194304)}else{if(!y)if(e=Hu(f),e!==null){if(i.flags|=128,y=!0,v=e.updateQueue,v!==null&&(i.updateQueue=v,i.flags|=4),Ea(A,!0),A.tail===null&&A.tailMode==="hidden"&&!f.alternate&&!ee)return De(i),null}else 2*me()-A.renderingStartTime>Ks&&v!==1073741824&&(i.flags|=128,y=!0,Ea(A,!1),i.lanes=4194304);A.isBackwards?(f.sibling=i.child,i.child=f):(v=A.last,v!==null?v.sibling=f:i.child=f,A.last=f)}return A.tail!==null?(i=A.tail,A.rendering=i,A.tail=i.sibling,A.renderingStartTime=me(),i.sibling=null,v=se.current,Kt(se,y?v&1|2:v&1),i):(De(i),null);case 22:case 23:return cp(),y=i.memoizedState!==null,e!==null&&e.memoizedState!==null!==y&&(i.flags|=8192),y&&i.mode&1?ri&1073741824&&(De(i),i.subtreeFlags&6&&(i.flags|=8192)):De(i),null;case 24:return null;case 25:return null}throw Error(dt(156,i.tag))}function DR(e,i){switch(kv(i),i.tag){case 1:return Qe(i.type)&&Gu(),e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 3:return js(),_t(Ke),_t(Ue),ip(),e=i.flags,e&65536&&!(e&128)?(i.flags=e&-65537|128,i):null;case 5:return ep(i),null;case 13:if(_t(se),e=i.memoizedState,e!==null&&e.dehydrated!==null){if(i.alternate===null)throw Error(dt(340));Hs()}return e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 19:return _t(se),null;case 4:return js(),null;case 10:return Jv(i.type._context),null;case 22:case 23:return cp(),null;case 24:return null;default:return null}}var Nl=!1,Be=!1,NR=typeof WeakSet=="function"?WeakSet:Set,Tt=null;function Ss(e,i){var v=e.ref;if(v!==null)if(typeof v=="function")try{v(null)}catch(y){fe(e,i,y)}else v.current=null}function gc(e,i,v){try{v()}catch(y){fe(e,i,y)}}var ag=!1;function BR(e,i){if(tc=bu,e=sT(),$v(e)){if("selectionStart"in e)var v={start:e.selectionStart,end:e.selectionEnd};else t:{v=(v=e.ownerDocument)&&v.defaultView||window;var y=v.getSelection&&v.getSelection();if(y&&y.rangeCount!==0){v=y.anchorNode;var C=y.anchorOffset,A=y.focusNode;y=y.focusOffset;try{v.nodeType,A.nodeType}catch{v=null;break t}var f=0,T=-1,t=-1,l=0,g=0,u=e,o=null;e:for(;;){for(var a;u!==v||C!==0&&u.nodeType!==3||(T=f+C),u!==A||y!==0&&u.nodeType!==3||(t=f+y),u.nodeType===3&&(f+=u.nodeValue.length),(a=u.firstChild)!==null;)o=u,u=a;for(;;){if(u===e)break e;if(o===v&&++l===C&&(T=f),o===A&&++g===y&&(t=f),(a=u.nextSibling)!==null)break;u=o,o=u.parentNode}u=a}v=T===-1||t===-1?null:{start:T,end:t}}else v=null}v=v||{start:0,end:0}}else v=null;for(ec={focusedElem:e,selectionRange:v},bu=!1,Tt=i;Tt!==null;)if(i=Tt,e=i.child,(i.subtreeFlags&1028)!==0&&e!==null)e.return=i,Tt=e;else for(;Tt!==null;){i=Tt;try{var n=i.alternate;if(i.flags&1024)switch(i.tag){case 0:case 11:case 15:break;case 1:if(n!==null){var r=n.memoizedProps,d=n.memoizedState,s=i.stateNode,h=s.getSnapshotBeforeUpdate(i.elementType===i.type?r:Ni(i.type,r),d);s.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var c=i.stateNode.containerInfo;c.nodeType===1?c.textContent="":c.nodeType===9&&c.documentElement&&c.removeChild(c.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(dt(163))}}catch(p){fe(i,i.return,p)}if(e=i.sibling,e!==null){e.return=i.return,Tt=e;break}Tt=i.return}return n=ag,ag=!1,n}function oo(e,i,v){var y=i.updateQueue;if(y=y!==null?y.lastEffect:null,y!==null){var C=y=y.next;do{if((C.tag&e)===e){var A=C.destroy;C.destroy=void 0,A!==void 0&&gc(i,v,A)}C=C.next}while(C!==y)}}function Eh(e,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var v=i=i.next;do{if((v.tag&e)===e){var y=v.create;v.destroy=y()}v=v.next}while(v!==i)}}function yc(e){var i=e.ref;if(i!==null){var v=e.stateNode;switch(e.tag){case 5:e=v;break;default:e=v}typeof i=="function"?i(e):i.current=e}}function iS(e){var i=e.alternate;i!==null&&(e.alternate=null,iS(i)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(i=e.stateNode,i!==null&&(delete i[Zi],delete i[Lo],delete i[rc],delete i[yR],delete i[xR])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function nS(e){return e.tag===5||e.tag===3||e.tag===4}function og(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||nS(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function xc(e,i,v){var y=e.tag;if(y===5||y===6)e=e.stateNode,i?v.nodeType===8?v.parentNode.insertBefore(e,i):v.insertBefore(e,i):(v.nodeType===8?(i=v.parentNode,i.insertBefore(e,v)):(i=v,i.appendChild(e)),v=v._reactRootContainer,v!=null||i.onclick!==null||(i.onclick=Bu));else if(y!==4&&(e=e.child,e!==null))for(xc(e,i,v),e=e.sibling;e!==null;)xc(e,i,v),e=e.sibling}function Tc(e,i,v){var y=e.tag;if(y===5||y===6)e=e.stateNode,i?v.insertBefore(e,i):v.appendChild(e);else if(y!==4&&(e=e.child,e!==null))for(Tc(e,i,v),e=e.sibling;e!==null;)Tc(e,i,v),e=e.sibling}var we=null,Bi=!1;function Mn(e,i,v){for(v=v.child;v!==null;)rS(e,i,v),v=v.sibling}function rS(e,i,v){if(qi&&typeof qi.onCommitFiberUnmount=="function")try{qi.onCommitFiberUnmount(vh,v)}catch{}switch(v.tag){case 5:Be||Ss(v,i);case 6:var y=we,C=Bi;we=null,Mn(e,i,v),we=y,Bi=C,we!==null&&(Bi?(e=we,v=v.stateNode,e.nodeType===8?e.parentNode.removeChild(v):e.removeChild(v)):we.removeChild(v.stateNode));break;case 18:we!==null&&(Bi?(e=we,v=v.stateNode,e.nodeType===8?Qf(e.parentNode,v):e.nodeType===1&&Qf(e,v),Ao(e)):Qf(we,v.stateNode));break;case 4:y=we,C=Bi,we=v.stateNode.containerInfo,Bi=!0,Mn(e,i,v),we=y,Bi=C;break;case 0:case 11:case 14:case 15:if(!Be&&(y=v.updateQueue,y!==null&&(y=y.lastEffect,y!==null))){C=y=y.next;do{var A=C,f=A.destroy;A=A.tag,f!==void 0&&(A&2||A&4)&&gc(v,i,f),C=C.next}while(C!==y)}Mn(e,i,v);break;case 1:if(!Be&&(Ss(v,i),y=v.stateNode,typeof y.componentWillUnmount=="function"))try{y.props=v.memoizedProps,y.state=v.memoizedState,y.componentWillUnmount()}catch(T){fe(v,i,T)}Mn(e,i,v);break;case 21:Mn(e,i,v);break;case 22:v.mode&1?(Be=(y=Be)||v.memoizedState!==null,Mn(e,i,v),Be=y):Mn(e,i,v);break;default:Mn(e,i,v)}}function lg(e){var i=e.updateQueue;if(i!==null){e.updateQueue=null;var v=e.stateNode;v===null&&(v=e.stateNode=new NR),i.forEach(function(y){var C=$R.bind(null,e,y);v.has(y)||(v.add(y),y.then(C,C))})}}function Ii(e,i){var v=i.deletions;if(v!==null)for(var y=0;yC&&(C=f),y&=~A}if(y=C,y=me()-y,y=(120>y?120:480>y?480:1080>y?1080:1920>y?1920:3e3>y?3e3:4320>y?4320:1960*UR(y/1960))-y,10e?16:e,Vn===null)var y=!1;else{if(e=Vn,Vn=null,Qu=0,Gt&6)throw Error(dt(331));var C=Gt;for(Gt|=4,Tt=e.current;Tt!==null;){var A=Tt,f=A.child;if(Tt.flags&16){var T=A.deletions;if(T!==null){for(var t=0;tme()-fp?Ar(e,0):hp|=v),Ze(e,i)}function dS(e,i){i===0&&(e.mode&1?(i=Al,Al<<=1,!(Al&130023424)&&(Al=4194304)):i=1);var v=Xe();e=xn(e,i),e!==null&&(il(e,i,v),Ze(e,v))}function HR(e){var i=e.memoizedState,v=0;i!==null&&(v=i.retryLane),dS(e,v)}function $R(e,i){var v=0;switch(e.tag){case 13:var y=e.stateNode,C=e.memoizedState;C!==null&&(v=C.retryLane);break;case 19:y=e.stateNode;break;default:throw Error(dt(314))}y!==null&&y.delete(i),dS(e,v)}var cS;cS=function(e,i,v){if(e!==null)if(e.memoizedProps!==i.pendingProps||Ke.current)ke=!0;else{if(!(e.lanes&v)&&!(i.flags&128))return ke=!1,IR(e,i,v);ke=!!(e.flags&131072)}else ke=!1,ee&&i.flags&1048576&&mT(i,Vu,i.index);switch(i.lanes=0,i.tag){case 2:var y=i.type;au(e,i),e=i.pendingProps;var C=Ys(i,Ue.current);Is(i,v),C=rp(null,i,y,e,C,v);var A=sp();return i.flags|=1,typeof C=="object"&&C!==null&&typeof C.render=="function"&&C.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Qe(y)?(A=!0,Uu(i)):A=!1,i.memoizedState=C.state!==null&&C.state!==void 0?C.state:null,_v(i),C.updater=Th,i.stateNode=C,C._reactInternals=i,hc(i,y,e,v),i=cc(null,i,y,!0,A,v)):(i.tag=0,ee&&A&&jv(i),We(null,i,C,v),i=i.child),i;case 16:y=i.elementType;t:{switch(au(e,i),e=i.pendingProps,C=y._init,y=C(y._payload),i.type=y,C=i.tag=kR(y),e=Ni(y,e),C){case 0:i=dc(null,i,y,e,v);break t;case 1:i=ng(null,i,y,e,v);break t;case 11:i=eg(null,i,y,e,v);break t;case 14:i=ig(null,i,y,Ni(y.type,e),v);break t}throw Error(dt(306,y,""))}return i;case 0:return y=i.type,C=i.pendingProps,C=i.elementType===y?C:Ni(y,C),dc(e,i,y,C,v);case 1:return y=i.type,C=i.pendingProps,C=i.elementType===y?C:Ni(y,C),ng(e,i,y,C,v);case 3:t:{if(ZT(i),e===null)throw Error(dt(387));y=i.pendingProps,A=i.memoizedState,C=A.element,TT(e,i),Yu(i,y,null,v);var f=i.memoizedState;if(y=f.element,A.isDehydrated)if(A={element:y,isDehydrated:!1,cache:f.cache,pendingSuspenseBoundaries:f.pendingSuspenseBoundaries,transitions:f.transitions},i.updateQueue.baseState=A,i.memoizedState=A,i.flags&256){C=ks(Error(dt(423)),i),i=rg(e,i,y,v,C);break t}else if(y!==C){C=ks(Error(dt(424)),i),i=rg(e,i,y,v,C);break t}else for(ai=jn(i.stateNode.containerInfo.firstChild),li=i,ee=!0,Gi=null,v=PT(i,null,y,v),i.child=v;v;)v.flags=v.flags&-3|4096,v=v.sibling;else{if(Hs(),y===C){i=Tn(e,i,v);break t}We(e,i,y,v)}i=i.child}return i;case 5:return RT(i),e===null&&oc(i),y=i.type,C=i.pendingProps,A=e!==null?e.memoizedProps:null,f=C.children,ic(y,C)?f=null:A!==null&&ic(y,A)&&(i.flags|=32),QT(e,i),We(e,i,f,v),i.child;case 6:return e===null&&oc(i),null;case 13:return JT(e,i,v);case 4:return tp(i,i.stateNode.containerInfo),y=i.pendingProps,e===null?i.child=$s(i,null,y,v):We(e,i,y,v),i.child;case 11:return y=i.type,C=i.pendingProps,C=i.elementType===y?C:Ni(y,C),eg(e,i,y,C,v);case 7:return We(e,i,i.pendingProps,v),i.child;case 8:return We(e,i,i.pendingProps.children,v),i.child;case 12:return We(e,i,i.pendingProps.children,v),i.child;case 10:t:{if(y=i.type._context,C=i.pendingProps,A=i.memoizedProps,f=C.value,Kt(Wu,y._currentValue),y._currentValue=f,A!==null)if(Wi(A.value,f)){if(A.children===C.children&&!Ke.current){i=Tn(e,i,v);break t}}else for(A=i.child,A!==null&&(A.return=i);A!==null;){var T=A.dependencies;if(T!==null){f=A.child;for(var t=T.firstContext;t!==null;){if(t.context===y){if(A.tag===1){t=vn(-1,v&-v),t.tag=2;var l=A.updateQueue;if(l!==null){l=l.shared;var g=l.pending;g===null?t.next=t:(t.next=g.next,g.next=t),l.pending=t}}A.lanes|=v,t=A.alternate,t!==null&&(t.lanes|=v),lc(A.return,v,i),T.lanes|=v;break}t=t.next}}else if(A.tag===10)f=A.type===i.type?null:A.child;else if(A.tag===18){if(f=A.return,f===null)throw Error(dt(341));f.lanes|=v,T=f.alternate,T!==null&&(T.lanes|=v),lc(f,v,i),f=A.sibling}else f=A.child;if(f!==null)f.return=A;else for(f=A;f!==null;){if(f===i){f=null;break}if(A=f.sibling,A!==null){A.return=f.return,f=A;break}f=f.return}A=f}We(e,i,C.children,v),i=i.child}return i;case 9:return C=i.type,y=i.pendingProps.children,Is(i,v),C=Ci(C),y=y(C),i.flags|=1,We(e,i,y,v),i.child;case 14:return y=i.type,C=Ni(y,i.pendingProps),C=Ni(y.type,C),ig(e,i,y,C,v);case 15:return kT(e,i,i.type,i.pendingProps,v);case 17:return y=i.type,C=i.pendingProps,C=i.elementType===y?C:Ni(y,C),au(e,i),i.tag=1,Qe(y)?(e=!0,Uu(i)):e=!1,Is(i,v),ET(i,y,C),hc(i,y,C,v),cc(null,i,y,!0,e,v);case 19:return qT(e,i,v);case 22:return KT(e,i,v)}throw Error(dt(156,i.tag))};function vS(e,i){return V1(e,i)}function jR(e,i,v,y){this.tag=e,this.key=v,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=y,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xi(e,i,v,y){return new jR(e,i,v,y)}function pp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kR(e){if(typeof e=="function")return pp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Dv)return 11;if(e===Nv)return 14}return 2}function Zn(e,i){var v=e.alternate;return v===null?(v=xi(e.tag,i,e.key,e.mode),v.elementType=e.elementType,v.type=e.type,v.stateNode=e.stateNode,v.alternate=e,e.alternate=v):(v.pendingProps=i,v.type=e.type,v.flags=0,v.subtreeFlags=0,v.deletions=null),v.flags=e.flags&14680064,v.childLanes=e.childLanes,v.lanes=e.lanes,v.child=e.child,v.memoizedProps=e.memoizedProps,v.memoizedState=e.memoizedState,v.updateQueue=e.updateQueue,i=e.dependencies,v.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},v.sibling=e.sibling,v.index=e.index,v.ref=e.ref,v}function uu(e,i,v,y,C,A){var f=2;if(y=e,typeof e=="function")pp(e)&&(f=1);else if(typeof e=="string")f=5;else t:switch(e){case ds:return Mr(v.children,C,A,i);case bv:f=8,C|=8;break;case Dd:return e=xi(12,v,i,C|2),e.elementType=Dd,e.lanes=A,e;case Nd:return e=xi(13,v,i,C),e.elementType=Nd,e.lanes=A,e;case Bd:return e=xi(19,v,i,C),e.elementType=Bd,e.lanes=A,e;case C1:return Ph(v,C,A,i);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case S1:f=10;break t;case E1:f=9;break t;case Dv:f=11;break t;case Nv:f=14;break t;case Ln:f=16,y=null;break t}throw Error(dt(130,e==null?e:typeof e,""))}return i=xi(f,v,i,C),i.elementType=e,i.type=y,i.lanes=A,i}function Mr(e,i,v,y){return e=xi(7,e,y,i),e.lanes=v,e}function Ph(e,i,v,y){return e=xi(22,e,y,i),e.elementType=C1,e.lanes=v,e.stateNode={isHidden:!1},e}function nd(e,i,v){return e=xi(6,e,null,i),e.lanes=v,e}function rd(e,i,v){return i=xi(4,e.children!==null?e.children:[],e.key,i),i.lanes=v,i.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},i}function KR(e,i,v,y,C){this.tag=i,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Uf(0),this.expirationTimes=Uf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Uf(0),this.identifierPrefix=y,this.onRecoverableError=C,this.mutableSourceEagerHydrationData=null}function mp(e,i,v,y,C,A,f,T,t){return e=new KR(e,i,v,T,t),i===1?(i=1,A===!0&&(i|=8)):i=0,A=xi(3,null,null,i),e.current=A,A.stateNode=e,A.memoizedState={element:y,isDehydrated:v,cache:null,transitions:null,pendingSuspenseBoundaries:null},_v(A),e}function QR(e,i,v){var y=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yS)}catch(e){console.error(e)}}yS(),m1.exports=di;var wh=m1.exports;const Ul=Rv(wh);var mg=wh;Id.createRoot=mg.createRoot,Id.hydrateRoot=mg.hydrateRoot;var Rc=function(e,i){return Rc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var C in y)Object.prototype.hasOwnProperty.call(y,C)&&(v[C]=y[C])},Rc(e,i)};function Xi(e,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");Rc(e,i);function v(){this.constructor=e}e.prototype=i===null?Object.create(i):(v.prototype=i.prototype,new v)}var rt=function(){return rt=Object.assign||function(i){for(var v,y=1,C=arguments.length;y0&&A[A.length-1])&&(l[0]===6||l[0]===2)){v=0;continue}if(l[0]===3&&(!A||l[1]>A[0]&&l[1]=eA){var i=console[e]||console.log;return i.apply(console,arguments)}}}(function(e){e.debug=zl("debug"),e.log=zl("log"),e.warn=zl("warn"),e.error=zl("error")})(vt||(vt={}));function yi(e){try{return e()}catch{}}const yg=yi(function(){return globalThis})||yi(function(){return window})||yi(function(){return self})||yi(function(){return global})||yi(function(){return yi.constructor("return this")()});var xg="__",Tg=[xg,xg].join("DEV");function iA(){try{return!!__DEV__}catch{return Object.defineProperty(yg,Tg,{value:yi(function(){return"production"})!=="production",enumerable:!1,configurable:!0,writable:!0}),yg[Tg]}}const ad=iA();function Nn(e){try{return e()}catch{}}var Ac=Nn(function(){return globalThis})||Nn(function(){return window})||Nn(function(){return self})||Nn(function(){return global})||Nn(function(){return Nn.constructor("return this")()}),Mc=!1;function nA(){Ac&&!Nn(function(){return"production"})&&!Nn(function(){return process})&&(Object.defineProperty(Ac,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),Mc=!0)}nA();function Sg(){Mc&&(delete Ac.process,Mc=!1)}function hu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hu=function(v){return typeof v}:hu=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},hu(e)}function rA(e){return hu(e)=="object"&&e!==null}var TS=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";function Oc(e,i){for(var v=/\r\n|[\n\r]/g,y=1,C=i+1,A;(A=v.exec(e.body))&&A.index120){for(var o=Math.floor(t/80),a=t%80,n=[],r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function cA(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Uo(e,i){return Uo=Object.setPrototypeOf||function(y,C){return y.__proto__=C,y},Uo(e,i)}function zo(e){return zo=Object.setPrototypeOf?Object.getPrototypeOf:function(v){return v.__proto__||Object.getPrototypeOf(v)},zo(e)}var vA=function(e){fA(v,e);var i=dA(v);function v(y,C,A,f,T,t,l){var g,u,o,a;uA(this,v),a=i.call(this,y),a.name="GraphQLError",a.originalError=t??void 0,a.nodes=Rg(Array.isArray(C)?C:C?[C]:void 0);for(var n=[],r=0,d=(s=a.nodes)!==null&&s!==void 0?s:[];r0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),t!=null&&t.stack?(Object.defineProperty($a(a),"stack",{value:t.stack,writable:!0,configurable:!0}),ES(a)):(Error.captureStackTrace?Error.captureStackTrace($a(a),v):Object.defineProperty($a(a),"stack",{value:Error().stack,writable:!0,configurable:!0}),a)}return hA(v,[{key:"toString",value:function(){return pA(this)}},{key:TS,get:function(){return"Object"}}]),v}(wc(Error));function Rg(e){return e===void 0||e.length===0?void 0:e}function pA(e){var i=e.message;if(e.nodes)for(var v=0,y=e.nodes;v",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function vu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vu=function(v){return typeof v}:vu=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},vu(e)}var yA=10,AS=2;function MS(e){return Fh(e,[])}function Fh(e,i){switch(vu(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return e===null?"null":xA(e,i);default:return String(e)}}function xA(e,i){if(i.indexOf(e)!==-1)return"[Circular]";var v=[].concat(i,[e]),y=EA(e);if(y!==void 0){var C=y.call(e);if(C!==e)return typeof C=="string"?C:Fh(C,v)}else if(Array.isArray(e))return SA(e,v);return TA(e,v)}function TA(e,i){var v=Object.keys(e);if(v.length===0)return"{}";if(i.length>AS)return"["+CA(e)+"]";var y=v.map(function(C){var A=Fh(e[C],i);return C+": "+A});return"{ "+y.join(", ")+" }"}function SA(e,i){if(e.length===0)return"[]";if(i.length>AS)return"[Array]";for(var v=Math.min(yA,e.length),y=e.length-v,C=[],A=0;A1&&C.push("... ".concat(y," more items")),"["+C.join(", ")+"]"}function EA(e){var i=e[String(Fc)];if(typeof i=="function")return i;if(typeof e.inspect=="function")return e.inspect}function CA(e){var i=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(i==="Object"&&typeof e.constructor=="function"){var v=e.constructor.name;if(typeof v=="string"&&v!=="")return v}return i}function od(e,i){var v=!!e;if(!v)throw new Error(i)}const PA=function(i,v){return i instanceof v};function Mg(e,i){for(var v=0;v1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof i=="string"||od(0,"Body must be a string. Received: ".concat(MS(i),".")),this.body=i,this.name=v,this.locationOffset=y,this.locationOffset.line>0||od(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||od(0,"column in locationOffset is 1-indexed and must be positive.")}return RA(e,[{key:TS,get:function(){return"Source"}}]),e}();function AA(e){return PA(e,Tp)}var MA=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function OA(e){var i=e.split(/\r\n|[\n\r]/g),v=wA(e);if(v!==0)for(var y=1;yC&&Og(i[A-1]);)--A;return i.slice(C,A).join(` +`)}function Og(e){for(var i=0;i1&&arguments[1]!==void 0?arguments[1]:"",v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,y=e.indexOf(` +`)===-1,C=e[0]===" "||e[0]===" ",A=e[e.length-1]==='"',f=e[e.length-1]==="\\",T=!y||A||f||v,t="";return T&&!(y&&C)&&(t+=` +`+i),t+=i?e.replace(/\n/g,` +`+i):e,T&&(t+=` +`),'"""'+t.replace(/"""/g,'\\"""')+'"""'}var LA=function(){function e(v){var y=new he(at.SOF,0,0,0,0,null);this.source=v,this.lastToken=y,this.token=y,this.line=1,this.lineStart=0}var i=e.prototype;return i.advance=function(){this.lastToken=this.token;var y=this.token=this.lookahead();return y},i.lookahead=function(){var y=this.token;if(y.kind!==at.EOF)do{var C;y=(C=y.next)!==null&&C!==void 0?C:y.next=bA(this,y)}while(y.kind===at.COMMENT);return y},e}();function IA(e){return e===at.BANG||e===at.DOLLAR||e===at.AMP||e===at.PAREN_L||e===at.PAREN_R||e===at.SPREAD||e===at.COLON||e===at.EQUALS||e===at.AT||e===at.BRACKET_L||e===at.BRACKET_R||e===at.BRACE_L||e===at.PIPE||e===at.BRACE_R}function Br(e){return isNaN(e)?at.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function bA(e,i){for(var v=e.source,y=v.body,C=y.length,A=i.end;A31||f===9));return new he(at.COMMENT,i,T,v,y,C,A.slice(i+1,T))}function BA(e,i,v,y,C,A){var f=e.body,T=v,t=i,l=!1;if(T===45&&(T=f.charCodeAt(++t)),T===48){if(T=f.charCodeAt(++t),T>=48&&T<=57)throw oi(e,t,"Invalid number, unexpected digit after 0: ".concat(Br(T),"."))}else t=ld(e,t,T),T=f.charCodeAt(t);if(T===46&&(l=!0,T=f.charCodeAt(++t),t=ld(e,t,T),T=f.charCodeAt(t)),(T===69||T===101)&&(l=!0,T=f.charCodeAt(++t),(T===43||T===45)&&(T=f.charCodeAt(++t)),t=ld(e,t,T),T=f.charCodeAt(t)),T===46||WA(T))throw oi(e,t,"Invalid number, expected digit but got: ".concat(Br(T),"."));return new he(l?at.FLOAT:at.INT,i,t,y,C,A,f.slice(i,t))}function ld(e,i,v){var y=e.body,C=i,A=v;if(A>=48&&A<=57){do A=y.charCodeAt(++C);while(A>=48&&A<=57);return C}throw oi(e,C,"Invalid number, expected digit but got: ".concat(Br(A),"."))}function GA(e,i,v,y,C){for(var A=e.body,f=i+1,T=f,t=0,l="";f=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function VA(e,i,v,y,C){for(var A=e.body,f=A.length,T=i+1,t=0;T!==f&&!isNaN(t=A.charCodeAt(T))&&(t===95||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122);)++T;return new he(at.NAME,i,T,v,y,C,A.slice(i,T))}function WA(e){return e===95||e>=65&&e<=90||e>=97&&e<=122}function XA(e,i){var v=new YA(e,i);return v.parseDocument()}var YA=function(){function e(v,y){var C=AA(v)?v:new Tp(v);this._lexer=new LA(C),this._options=y}var i=e.prototype;return i.parseName=function(){var y=this.expectToken(at.NAME);return{kind:Ct.NAME,value:y.value,loc:this.loc(y)}},i.parseDocument=function(){var y=this._lexer.token;return{kind:Ct.DOCUMENT,definitions:this.many(at.SOF,this.parseDefinition,at.EOF),loc:this.loc(y)}},i.parseDefinition=function(){if(this.peek(at.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(at.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},i.parseOperationDefinition=function(){var y=this._lexer.token;if(this.peek(at.BRACE_L))return{kind:Ct.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(y)};var C=this.parseOperationType(),A;return this.peek(at.NAME)&&(A=this.parseName()),{kind:Ct.OPERATION_DEFINITION,operation:C,name:A,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(y)}},i.parseOperationType=function(){var y=this.expectToken(at.NAME);switch(y.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(y)},i.parseVariableDefinitions=function(){return this.optionalMany(at.PAREN_L,this.parseVariableDefinition,at.PAREN_R)},i.parseVariableDefinition=function(){var y=this._lexer.token;return{kind:Ct.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(at.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(at.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(y)}},i.parseVariable=function(){var y=this._lexer.token;return this.expectToken(at.DOLLAR),{kind:Ct.VARIABLE,name:this.parseName(),loc:this.loc(y)}},i.parseSelectionSet=function(){var y=this._lexer.token;return{kind:Ct.SELECTION_SET,selections:this.many(at.BRACE_L,this.parseSelection,at.BRACE_R),loc:this.loc(y)}},i.parseSelection=function(){return this.peek(at.SPREAD)?this.parseFragment():this.parseField()},i.parseField=function(){var y=this._lexer.token,C=this.parseName(),A,f;return this.expectOptionalToken(at.COLON)?(A=C,f=this.parseName()):f=C,{kind:Ct.FIELD,alias:A,name:f,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(at.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(y)}},i.parseArguments=function(y){var C=y?this.parseConstArgument:this.parseArgument;return this.optionalMany(at.PAREN_L,C,at.PAREN_R)},i.parseArgument=function(){var y=this._lexer.token,C=this.parseName();return this.expectToken(at.COLON),{kind:Ct.ARGUMENT,name:C,value:this.parseValueLiteral(!1),loc:this.loc(y)}},i.parseConstArgument=function(){var y=this._lexer.token;return{kind:Ct.ARGUMENT,name:this.parseName(),value:(this.expectToken(at.COLON),this.parseValueLiteral(!0)),loc:this.loc(y)}},i.parseFragment=function(){var y=this._lexer.token;this.expectToken(at.SPREAD);var C=this.expectOptionalKeyword("on");return!C&&this.peek(at.NAME)?{kind:Ct.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(y)}:{kind:Ct.INLINE_FRAGMENT,typeCondition:C?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(y)}},i.parseFragmentDefinition=function(){var y,C=this._lexer.token;return this.expectKeyword("fragment"),((y=this._options)===null||y===void 0?void 0:y.experimentalFragmentVariables)===!0?{kind:Ct.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(C)}:{kind:Ct.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(C)}},i.parseFragmentName=function(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()},i.parseValueLiteral=function(y){var C=this._lexer.token;switch(C.kind){case at.BRACKET_L:return this.parseList(y);case at.BRACE_L:return this.parseObject(y);case at.INT:return this._lexer.advance(),{kind:Ct.INT,value:C.value,loc:this.loc(C)};case at.FLOAT:return this._lexer.advance(),{kind:Ct.FLOAT,value:C.value,loc:this.loc(C)};case at.STRING:case at.BLOCK_STRING:return this.parseStringLiteral();case at.NAME:switch(this._lexer.advance(),C.value){case"true":return{kind:Ct.BOOLEAN,value:!0,loc:this.loc(C)};case"false":return{kind:Ct.BOOLEAN,value:!1,loc:this.loc(C)};case"null":return{kind:Ct.NULL,loc:this.loc(C)};default:return{kind:Ct.ENUM,value:C.value,loc:this.loc(C)}}case at.DOLLAR:if(!y)return this.parseVariable();break}throw this.unexpected()},i.parseStringLiteral=function(){var y=this._lexer.token;return this._lexer.advance(),{kind:Ct.STRING,value:y.value,block:y.kind===at.BLOCK_STRING,loc:this.loc(y)}},i.parseList=function(y){var C=this,A=this._lexer.token,f=function(){return C.parseValueLiteral(y)};return{kind:Ct.LIST,values:this.any(at.BRACKET_L,f,at.BRACKET_R),loc:this.loc(A)}},i.parseObject=function(y){var C=this,A=this._lexer.token,f=function(){return C.parseObjectField(y)};return{kind:Ct.OBJECT,fields:this.any(at.BRACE_L,f,at.BRACE_R),loc:this.loc(A)}},i.parseObjectField=function(y){var C=this._lexer.token,A=this.parseName();return this.expectToken(at.COLON),{kind:Ct.OBJECT_FIELD,name:A,value:this.parseValueLiteral(y),loc:this.loc(C)}},i.parseDirectives=function(y){for(var C=[];this.peek(at.AT);)C.push(this.parseDirective(y));return C},i.parseDirective=function(y){var C=this._lexer.token;return this.expectToken(at.AT),{kind:Ct.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(y),loc:this.loc(C)}},i.parseTypeReference=function(){var y=this._lexer.token,C;return this.expectOptionalToken(at.BRACKET_L)?(C=this.parseTypeReference(),this.expectToken(at.BRACKET_R),C={kind:Ct.LIST_TYPE,type:C,loc:this.loc(y)}):C=this.parseNamedType(),this.expectOptionalToken(at.BANG)?{kind:Ct.NON_NULL_TYPE,type:C,loc:this.loc(y)}:C},i.parseNamedType=function(){var y=this._lexer.token;return{kind:Ct.NAMED_TYPE,name:this.parseName(),loc:this.loc(y)}},i.parseTypeSystemDefinition=function(){var y=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(y.kind===at.NAME)switch(y.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(y)},i.peekDescription=function(){return this.peek(at.STRING)||this.peek(at.BLOCK_STRING)},i.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},i.parseSchemaDefinition=function(){var y=this._lexer.token,C=this.parseDescription();this.expectKeyword("schema");var A=this.parseDirectives(!0),f=this.many(at.BRACE_L,this.parseOperationTypeDefinition,at.BRACE_R);return{kind:Ct.SCHEMA_DEFINITION,description:C,directives:A,operationTypes:f,loc:this.loc(y)}},i.parseOperationTypeDefinition=function(){var y=this._lexer.token,C=this.parseOperationType();this.expectToken(at.COLON);var A=this.parseNamedType();return{kind:Ct.OPERATION_TYPE_DEFINITION,operation:C,type:A,loc:this.loc(y)}},i.parseScalarTypeDefinition=function(){var y=this._lexer.token,C=this.parseDescription();this.expectKeyword("scalar");var A=this.parseName(),f=this.parseDirectives(!0);return{kind:Ct.SCALAR_TYPE_DEFINITION,description:C,name:A,directives:f,loc:this.loc(y)}},i.parseObjectTypeDefinition=function(){var y=this._lexer.token,C=this.parseDescription();this.expectKeyword("type");var A=this.parseName(),f=this.parseImplementsInterfaces(),T=this.parseDirectives(!0),t=this.parseFieldsDefinition();return{kind:Ct.OBJECT_TYPE_DEFINITION,description:C,name:A,interfaces:f,directives:T,fields:t,loc:this.loc(y)}},i.parseImplementsInterfaces=function(){var y;if(!this.expectOptionalKeyword("implements"))return[];if(((y=this._options)===null||y===void 0?void 0:y.allowLegacySDLImplementsInterfaces)===!0){var C=[];this.expectOptionalToken(at.AMP);do C.push(this.parseNamedType());while(this.expectOptionalToken(at.AMP)||this.peek(at.NAME));return C}return this.delimitedMany(at.AMP,this.parseNamedType)},i.parseFieldsDefinition=function(){var y;return((y=this._options)===null||y===void 0?void 0:y.allowLegacySDLEmptyFields)===!0&&this.peek(at.BRACE_L)&&this._lexer.lookahead().kind===at.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(at.BRACE_L,this.parseFieldDefinition,at.BRACE_R)},i.parseFieldDefinition=function(){var y=this._lexer.token,C=this.parseDescription(),A=this.parseName(),f=this.parseArgumentDefs();this.expectToken(at.COLON);var T=this.parseTypeReference(),t=this.parseDirectives(!0);return{kind:Ct.FIELD_DEFINITION,description:C,name:A,arguments:f,type:T,directives:t,loc:this.loc(y)}},i.parseArgumentDefs=function(){return this.optionalMany(at.PAREN_L,this.parseInputValueDef,at.PAREN_R)},i.parseInputValueDef=function(){var y=this._lexer.token,C=this.parseDescription(),A=this.parseName();this.expectToken(at.COLON);var f=this.parseTypeReference(),T;this.expectOptionalToken(at.EQUALS)&&(T=this.parseValueLiteral(!0));var t=this.parseDirectives(!0);return{kind:Ct.INPUT_VALUE_DEFINITION,description:C,name:A,type:f,defaultValue:T,directives:t,loc:this.loc(y)}},i.parseInterfaceTypeDefinition=function(){var y=this._lexer.token,C=this.parseDescription();this.expectKeyword("interface");var A=this.parseName(),f=this.parseImplementsInterfaces(),T=this.parseDirectives(!0),t=this.parseFieldsDefinition();return{kind:Ct.INTERFACE_TYPE_DEFINITION,description:C,name:A,interfaces:f,directives:T,fields:t,loc:this.loc(y)}},i.parseUnionTypeDefinition=function(){var y=this._lexer.token,C=this.parseDescription();this.expectKeyword("union");var A=this.parseName(),f=this.parseDirectives(!0),T=this.parseUnionMemberTypes();return{kind:Ct.UNION_TYPE_DEFINITION,description:C,name:A,directives:f,types:T,loc:this.loc(y)}},i.parseUnionMemberTypes=function(){return this.expectOptionalToken(at.EQUALS)?this.delimitedMany(at.PIPE,this.parseNamedType):[]},i.parseEnumTypeDefinition=function(){var y=this._lexer.token,C=this.parseDescription();this.expectKeyword("enum");var A=this.parseName(),f=this.parseDirectives(!0),T=this.parseEnumValuesDefinition();return{kind:Ct.ENUM_TYPE_DEFINITION,description:C,name:A,directives:f,values:T,loc:this.loc(y)}},i.parseEnumValuesDefinition=function(){return this.optionalMany(at.BRACE_L,this.parseEnumValueDefinition,at.BRACE_R)},i.parseEnumValueDefinition=function(){var y=this._lexer.token,C=this.parseDescription(),A=this.parseName(),f=this.parseDirectives(!0);return{kind:Ct.ENUM_VALUE_DEFINITION,description:C,name:A,directives:f,loc:this.loc(y)}},i.parseInputObjectTypeDefinition=function(){var y=this._lexer.token,C=this.parseDescription();this.expectKeyword("input");var A=this.parseName(),f=this.parseDirectives(!0),T=this.parseInputFieldsDefinition();return{kind:Ct.INPUT_OBJECT_TYPE_DEFINITION,description:C,name:A,directives:f,fields:T,loc:this.loc(y)}},i.parseInputFieldsDefinition=function(){return this.optionalMany(at.BRACE_L,this.parseInputValueDef,at.BRACE_R)},i.parseTypeSystemExtension=function(){var y=this._lexer.lookahead();if(y.kind===at.NAME)switch(y.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(y)},i.parseSchemaExtension=function(){var y=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var C=this.parseDirectives(!0),A=this.optionalMany(at.BRACE_L,this.parseOperationTypeDefinition,at.BRACE_R);if(C.length===0&&A.length===0)throw this.unexpected();return{kind:Ct.SCHEMA_EXTENSION,directives:C,operationTypes:A,loc:this.loc(y)}},i.parseScalarTypeExtension=function(){var y=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var C=this.parseName(),A=this.parseDirectives(!0);if(A.length===0)throw this.unexpected();return{kind:Ct.SCALAR_TYPE_EXTENSION,name:C,directives:A,loc:this.loc(y)}},i.parseObjectTypeExtension=function(){var y=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var C=this.parseName(),A=this.parseImplementsInterfaces(),f=this.parseDirectives(!0),T=this.parseFieldsDefinition();if(A.length===0&&f.length===0&&T.length===0)throw this.unexpected();return{kind:Ct.OBJECT_TYPE_EXTENSION,name:C,interfaces:A,directives:f,fields:T,loc:this.loc(y)}},i.parseInterfaceTypeExtension=function(){var y=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var C=this.parseName(),A=this.parseImplementsInterfaces(),f=this.parseDirectives(!0),T=this.parseFieldsDefinition();if(A.length===0&&f.length===0&&T.length===0)throw this.unexpected();return{kind:Ct.INTERFACE_TYPE_EXTENSION,name:C,interfaces:A,directives:f,fields:T,loc:this.loc(y)}},i.parseUnionTypeExtension=function(){var y=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var C=this.parseName(),A=this.parseDirectives(!0),f=this.parseUnionMemberTypes();if(A.length===0&&f.length===0)throw this.unexpected();return{kind:Ct.UNION_TYPE_EXTENSION,name:C,directives:A,types:f,loc:this.loc(y)}},i.parseEnumTypeExtension=function(){var y=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var C=this.parseName(),A=this.parseDirectives(!0),f=this.parseEnumValuesDefinition();if(A.length===0&&f.length===0)throw this.unexpected();return{kind:Ct.ENUM_TYPE_EXTENSION,name:C,directives:A,values:f,loc:this.loc(y)}},i.parseInputObjectTypeExtension=function(){var y=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var C=this.parseName(),A=this.parseDirectives(!0),f=this.parseInputFieldsDefinition();if(A.length===0&&f.length===0)throw this.unexpected();return{kind:Ct.INPUT_OBJECT_TYPE_EXTENSION,name:C,directives:A,fields:f,loc:this.loc(y)}},i.parseDirectiveDefinition=function(){var y=this._lexer.token,C=this.parseDescription();this.expectKeyword("directive"),this.expectToken(at.AT);var A=this.parseName(),f=this.parseArgumentDefs(),T=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var t=this.parseDirectiveLocations();return{kind:Ct.DIRECTIVE_DEFINITION,description:C,name:A,arguments:f,repeatable:T,locations:t,loc:this.loc(y)}},i.parseDirectiveLocations=function(){return this.delimitedMany(at.PIPE,this.parseDirectiveLocation)},i.parseDirectiveLocation=function(){var y=this._lexer.token,C=this.parseName();if(MA[C.value]!==void 0)return C;throw this.unexpected(y)},i.loc=function(y){var C;if(((C=this._options)===null||C===void 0?void 0:C.noLocation)!==!0)return new RS(y,this._lexer.lastToken,this._lexer.source)},i.peek=function(y){return this._lexer.token.kind===y},i.expectToken=function(y){var C=this._lexer.token;if(C.kind===y)return this._lexer.advance(),C;throw oi(this._lexer.source,C.start,"Expected ".concat(OS(y),", found ").concat(ud(C),"."))},i.expectOptionalToken=function(y){var C=this._lexer.token;if(C.kind===y)return this._lexer.advance(),C},i.expectKeyword=function(y){var C=this._lexer.token;if(C.kind===at.NAME&&C.value===y)this._lexer.advance();else throw oi(this._lexer.source,C.start,'Expected "'.concat(y,'", found ').concat(ud(C),"."))},i.expectOptionalKeyword=function(y){var C=this._lexer.token;return C.kind===at.NAME&&C.value===y?(this._lexer.advance(),!0):!1},i.unexpected=function(y){var C=y??this._lexer.token;return oi(this._lexer.source,C.start,"Unexpected ".concat(ud(C),"."))},i.any=function(y,C,A){this.expectToken(y);for(var f=[];!this.expectOptionalToken(A);)f.push(C.call(this));return f},i.optionalMany=function(y,C,A){if(this.expectOptionalToken(y)){var f=[];do f.push(C.call(this));while(!this.expectOptionalToken(A));return f}return[]},i.many=function(y,C,A){this.expectToken(y);var f=[];do f.push(C.call(this));while(!this.expectOptionalToken(A));return f},i.delimitedMany=function(y,C){this.expectOptionalToken(y);var A=[];do A.push(C.call(this));while(this.expectOptionalToken(y));return A},e}();function ud(e){var i=e.value;return OS(e.kind)+(i!=null?' "'.concat(i,'"'):"")}function OS(e){return IA(e)?'"'.concat(e,'"'):e}var HA={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},Sp=Object.freeze({});function Sn(e,i){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:HA,y=void 0,C=Array.isArray(e),A=[e],f=-1,T=[],t=void 0,l=void 0,g=void 0,u=[],o=[],a=e;do{f++;var n=f===A.length,r=n&&T.length!==0;if(n){if(l=o.length===0?void 0:u[u.length-1],t=g,g=o.pop(),r){if(C)t=t.slice();else{for(var d={},s=0,h=Object.keys(t);skA&&(t=T+ne(`( +`,pu(Et(C,` +`)),` +)`)),Et([t,Et(A," "),f]," ")},Argument:function(i){var v=i.name,y=i.value;return v+": "+y},FragmentSpread:function(i){var v=i.name,y=i.directives;return"..."+v+ne(" ",Et(y," "))},InlineFragment:function(i){var v=i.typeCondition,y=i.directives,C=i.selectionSet;return Et(["...",ne("on ",v),Et(y," "),C]," ")},FragmentDefinition:function(i){var v=i.name,y=i.typeCondition,C=i.variableDefinitions,A=i.directives,f=i.selectionSet;return"fragment ".concat(v).concat(ne("(",Et(C,", "),")")," ")+"on ".concat(y," ").concat(ne("",Et(A," ")," "))+f},IntValue:function(i){var v=i.value;return v},FloatValue:function(i){var v=i.value;return v},StringValue:function(i,v){var y=i.value,C=i.block;return C?FA(y,v==="description"?"":" "):JSON.stringify(y)},BooleanValue:function(i){var v=i.value;return v?"true":"false"},NullValue:function(){return"null"},EnumValue:function(i){var v=i.value;return v},ListValue:function(i){var v=i.values;return"["+Et(v,", ")+"]"},ObjectValue:function(i){var v=i.fields;return"{"+Et(v,", ")+"}"},ObjectField:function(i){var v=i.name,y=i.value;return v+": "+y},Directive:function(i){var v=i.name,y=i.arguments;return"@"+v+ne("(",Et(y,", "),")")},NamedType:function(i){var v=i.name;return v},ListType:function(i){var v=i.type;return"["+v+"]"},NonNullType:function(i){var v=i.type;return v+"!"},SchemaDefinition:bi(function(e){var i=e.directives,v=e.operationTypes;return Et(["schema",Et(i," "),Di(v)]," ")}),OperationTypeDefinition:function(i){var v=i.operation,y=i.type;return v+": "+y},ScalarTypeDefinition:bi(function(e){var i=e.name,v=e.directives;return Et(["scalar",i,Et(v," ")]," ")}),ObjectTypeDefinition:bi(function(e){var i=e.name,v=e.interfaces,y=e.directives,C=e.fields;return Et(["type",i,ne("implements ",Et(v," & ")),Et(y," "),Di(C)]," ")}),FieldDefinition:bi(function(e){var i=e.name,v=e.arguments,y=e.type,C=e.directives;return i+(wg(v)?ne(`( +`,pu(Et(v,` +`)),` +)`):ne("(",Et(v,", "),")"))+": "+y+ne(" ",Et(C," "))}),InputValueDefinition:bi(function(e){var i=e.name,v=e.type,y=e.defaultValue,C=e.directives;return Et([i+": "+v,ne("= ",y),Et(C," ")]," ")}),InterfaceTypeDefinition:bi(function(e){var i=e.name,v=e.interfaces,y=e.directives,C=e.fields;return Et(["interface",i,ne("implements ",Et(v," & ")),Et(y," "),Di(C)]," ")}),UnionTypeDefinition:bi(function(e){var i=e.name,v=e.directives,y=e.types;return Et(["union",i,Et(v," "),y&&y.length!==0?"= "+Et(y," | "):""]," ")}),EnumTypeDefinition:bi(function(e){var i=e.name,v=e.directives,y=e.values;return Et(["enum",i,Et(v," "),Di(y)]," ")}),EnumValueDefinition:bi(function(e){var i=e.name,v=e.directives;return Et([i,Et(v," ")]," ")}),InputObjectTypeDefinition:bi(function(e){var i=e.name,v=e.directives,y=e.fields;return Et(["input",i,Et(v," "),Di(y)]," ")}),DirectiveDefinition:bi(function(e){var i=e.name,v=e.arguments,y=e.repeatable,C=e.locations;return"directive @"+i+(wg(v)?ne(`( +`,pu(Et(v,` +`)),` +)`):ne("(",Et(v,", "),")"))+(y?" repeatable":"")+" on "+Et(C," | ")}),SchemaExtension:function(i){var v=i.directives,y=i.operationTypes;return Et(["extend schema",Et(v," "),Di(y)]," ")},ScalarTypeExtension:function(i){var v=i.name,y=i.directives;return Et(["extend scalar",v,Et(y," ")]," ")},ObjectTypeExtension:function(i){var v=i.name,y=i.interfaces,C=i.directives,A=i.fields;return Et(["extend type",v,ne("implements ",Et(y," & ")),Et(C," "),Di(A)]," ")},InterfaceTypeExtension:function(i){var v=i.name,y=i.interfaces,C=i.directives,A=i.fields;return Et(["extend interface",v,ne("implements ",Et(y," & ")),Et(C," "),Di(A)]," ")},UnionTypeExtension:function(i){var v=i.name,y=i.directives,C=i.types;return Et(["extend union",v,Et(y," "),C&&C.length!==0?"= "+Et(C," | "):""]," ")},EnumTypeExtension:function(i){var v=i.name,y=i.directives,C=i.values;return Et(["extend enum",v,Et(y," "),Di(C)]," ")},InputObjectTypeExtension:function(i){var v=i.name,y=i.directives,C=i.fields;return Et(["extend input",v,Et(y," "),Di(C)]," ")}};function bi(e){return function(i){return Et([i.description,e(i)],` +`)}}function Et(e){var i,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(i=e==null?void 0:e.filter(function(y){return y}).join(v))!==null&&i!==void 0?i:""}function Di(e){return ne(`{ +`,pu(Et(e,` +`)),` +}`)}function ne(e,i){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return i!=null&&i!==""?e+i+v:""}function pu(e){return ne(" ",e.replace(/\n/g,` + `))}function QA(e){return e.indexOf(` +`)!==-1}function wg(e){return e!=null&&e.some(QA)}function Fg(e){return e.kind===Ct.FIELD||e.kind===Ct.FRAGMENT_SPREAD||e.kind===Ct.INLINE_FRAGMENT}function ZA(){return Sg()}function JA(){__DEV__?vt(typeof ad=="boolean",ad):vt(typeof ad=="boolean",39)}ZA();JA();function Lh(e,i){var v=e.directives;return!v||!v.length?!0:tM(v).every(function(y){var C=y.directive,A=y.ifArgument,f=!1;return A.value.kind==="Variable"?(f=i&&i[A.value.name.value],__DEV__?vt(f!==void 0,"Invalid variable referenced in @".concat(C.name.value," directive.")):vt(f!==void 0,40)):f=A.value.value,C.name.value==="skip"?!f:f})}function Ep(e,i,v){var y=new Set(e),C=y.size;return Sn(i,{Directive:function(A){if(y.delete(A.name.value)&&(!v||!y.size))return Sp}}),v?!y.size:y.size"u"&&(__DEV__?vt(y.length===1,"Found ".concat(y.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):vt(y.length===1,45),v=y[0].name.value);var C=rt(rt({},e),{definitions:Or([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:v}}]}}],e.definitions,!0)});return C}function Cp(e){e===void 0&&(e=[]);var i={};return e.forEach(function(v){i[v.name.value]=v}),i}function Pp(e,i){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{var v=e.name.value;if(typeof i=="function")return i(v);var y=i&&i[v];return __DEV__?vt(y,"No fragment named ".concat(v)):vt(y,46),y||null}default:return null}}function ie(e){return e!==null&&typeof e=="object"}function Ds(e){return{__ref:String(e)}}function Ht(e){return!!(e&&typeof e=="object"&&typeof e.__ref=="string")}function iM(e){return ie(e)&&e.kind==="Document"&&Array.isArray(e.definitions)}function nM(e){return e.kind==="StringValue"}function rM(e){return e.kind==="BooleanValue"}function sM(e){return e.kind==="IntValue"}function aM(e){return e.kind==="FloatValue"}function oM(e){return e.kind==="Variable"}function lM(e){return e.kind==="ObjectValue"}function uM(e){return e.kind==="ListValue"}function hM(e){return e.kind==="EnumValue"}function fM(e){return e.kind==="NullValue"}function Qs(e,i,v,y){if(sM(v)||aM(v))e[i.value]=Number(v.value);else if(rM(v)||nM(v))e[i.value]=v.value;else if(lM(v)){var C={};v.fields.map(function(f){return Qs(C,f.name,f.value,y)}),e[i.value]=C}else if(oM(v)){var A=(y||{})[v.name.value];e[i.value]=A}else if(uM(v))e[i.value]=v.values.map(function(f){var T={};return Qs(T,i,f,y),T[i.value]});else if(hM(v))e[i.value]=v.value;else if(fM(v))e[i.value]=null;else throw __DEV__?new Wt('The inline argument "'.concat(i.value,'" of kind "').concat(v.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new Wt(55)}function dM(e,i){var v=null;e.directives&&(v={},e.directives.forEach(function(C){v[C.name.value]={},C.arguments&&C.arguments.forEach(function(A){var f=A.name,T=A.value;return Qs(v[C.name.value],f,T,i)})}));var y=null;return e.arguments&&e.arguments.length&&(y={},e.arguments.forEach(function(C){var A=C.name,f=C.value;return Qs(y,A,f,i)})),Rp(e.name.value,y,v)}var cM=["connection","include","skip","client","rest","export"],Rp=Object.assign(function(e,i,v){if(i&&v&&v.connection&&v.connection.key)if(v.connection.filter&&v.connection.filter.length>0){var y=v.connection.filter?v.connection.filter:[];y.sort();var C={};return y.forEach(function(T){C[T]=i[T]}),"".concat(v.connection.key,"(").concat(Pa(C),")")}else return v.connection.key;var A=e;if(i){var f=Pa(i);A+="(".concat(f,")")}return v&&Object.keys(v).forEach(function(T){cM.indexOf(T)===-1&&(v[T]&&Object.keys(v[T]).length?A+="@".concat(T,"(").concat(Pa(v[T]),")"):A+="@".concat(T))}),A},{setStringify:function(e){var i=Pa;return Pa=e,i}}),Pa=function(i){return JSON.stringify(i,vM)};function vM(e,i){return ie(i)&&!Array.isArray(i)&&(i=Object.keys(i).sort().reduce(function(v,y){return v[y]=i[y],v},{})),i}function Ih(e,i){if(e.arguments&&e.arguments.length){var v={};return e.arguments.forEach(function(y){var C=y.name,A=y.value;return Qs(v,C,A,i)}),v}return null}function Gr(e){return e.alias?e.alias.value:e.name.value}function Lc(e,i,v){for(var y,C=0,A=i.selections;C0}var Lg={kind:Ct.FIELD,name:{kind:Ct.NAME,value:"__typename"}};function FS(e,i){return!e||e.selectionSet.selections.every(function(v){return v.kind===Ct.FRAGMENT_SPREAD&&FS(i[v.name.value],i)})}function gM(e){return FS(al(e)||mM(e),Cp(Ap(e)))?null:e}function yM(e){var i=new Set,v=[];return e.forEach(function(y){y.name?i.add(y.name):y.test&&v.push(y.test)}),function(y){return i.has(y.name.value)||v.some(function(C){return C(y)})}}function Ig(e){var i=new Map;return function(y){y===void 0&&(y=e);var C=i.get(y);return C||i.set(y,C={variables:new Set,fragmentSpreads:new Set}),C}}function LS(e,i){for(var v=Ig(""),y=Ig(""),C=function(h){for(var c=0,p=void 0;c=0;--f)i.definitions[f].kind===Ct.OPERATION_DEFINITION&&++A;var T=yM(e),t=e.some(function(h){return h.remove}),l=function(h){return t&&h&&h.some(T)},g=new Map,u=!1,o={enter:function(h){if(l(h.directives))return u=!0,null}},a=Sn(i,{Field:o,InlineFragment:o,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(h,c,p,m,x){var S=C(x);S&&S.variables.add(h.name.value)}},FragmentSpread:{enter:function(h,c,p,m,x){if(l(h.directives))return u=!0,null;var S=C(x);S&&S.fragmentSpreads.add(h.name.value)}},FragmentDefinition:{enter:function(h,c,p,m){g.set(JSON.stringify(m),h)},leave:function(h,c,p,m){var x=g.get(JSON.stringify(m));if(h===x)return h;if(A>0&&h.selectionSet.selections.every(function(S){return S.kind===Ct.FIELD&&S.name.value==="__typename"}))return y(h.name.value).removed=!0,u=!0,null}},Directive:{leave:function(h){if(T(h))return u=!0,null}}});if(!u)return i;var n=function(h){return h.transitiveVars||(h.transitiveVars=new Set(h.variables),h.removed||h.fragmentSpreads.forEach(function(c){n(y(c)).transitiveVars.forEach(function(p){h.transitiveVars.add(p)})})),h},r=new Set;a.definitions.forEach(function(h){h.kind===Ct.OPERATION_DEFINITION?n(v(h.name&&h.name.value)).fragmentSpreads.forEach(function(c){r.add(c)}):h.kind===Ct.FRAGMENT_DEFINITION&&A===0&&!y(h.name.value).removed&&r.add(h.name.value)}),r.forEach(function(h){n(y(h)).fragmentSpreads.forEach(function(c){r.add(c)})});var d=function(h){return!!(!r.has(h)||y(h).removed)},s={enter:function(h){if(d(h.name.value))return null}};return gM(Sn(a,{FragmentSpread:s,FragmentDefinition:s,OperationDefinition:{leave:function(h){if(h.variableDefinitions){var c=n(v(h.name&&h.name.value)).transitiveVars;if(c.size1)for(var y=new er,C=1;C=e.length?{done:!0}:{done:!1,value:e[y++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AM(e,i){if(e){if(typeof e=="string")return Dg(e,i);var v=Object.prototype.toString.call(e).slice(8,-1);if(v==="Object"&&e.constructor&&(v=e.constructor.name),v==="Map"||v==="Set")return Array.from(e);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return Dg(e,i)}}function Dg(e,i){(i==null||i>e.length)&&(i=e.length);for(var v=0,y=new Array(i);v1,T=!1,t=arguments[1],l=t;return new A(function(g){return C.subscribe({next:function(u){var o=!T;if(T=!0,!o||f)try{l=y(l,u)}catch(a){return g.error(a)}else l=u},error:function(u){g.error(u)},complete:function(){if(!T&&!f)return g.error(new TypeError("Cannot reduce an empty sequence"));g.next(l),g.complete()}})})},i.concat=function(){for(var y=this,C=arguments.length,A=new Array(C),f=0;f=0&&T.splice(o,1),l()}});T.push(u)},error:function(g){f.error(g)},complete:function(){l()}});function l(){t.closed&&T.length===0&&f.complete()}return function(){T.forEach(function(g){return g.unsubscribe()}),t.unsubscribe()}})},i[bc]=function(){return this},e.from=function(y){var C=typeof this=="function"?this:e;if(y==null)throw new TypeError(y+" is not an object");var A=qu(y,bc);if(A){var f=A.call(y);if(Object(f)!==f)throw new TypeError(f+" is not an object");return OM(f)&&f.constructor===C?f:new C(function(T){return f.subscribe(T)})}if(Ip("iterator")&&(A=qu(y,MM),A))return new C(function(T){mu(function(){if(!T.closed){for(var t=RM(A.call(y)),l;!(l=t()).done;){var g=l.value;if(T.next(g),T.closed)return}T.complete()}})});if(Array.isArray(y))return new C(function(T){mu(function(){if(!T.closed){for(var t=0;t=0})||!1,zM=GM&&!UM;function BS(e){function i(v){Object.defineProperty(e,v,{value:qt})}return Dp&&Symbol.species&&i(Symbol.species),i("@@species"),e}function Ug(e){return e&&typeof e.then=="function"}var os=function(e){Xi(i,e);function i(v){var y=e.call(this,function(C){return y.addObserver(C),function(){return y.removeObserver(C)}})||this;return y.observers=new Set,y.promise=new Promise(function(C,A){y.resolve=C,y.reject=A}),y.handlers={next:function(C){y.sub!==null&&(y.latest=["next",C],y.notify("next",C),ho(y.observers,"next",C))},error:function(C){var A=y.sub;A!==null&&(A&&setTimeout(function(){return A.unsubscribe()}),y.sub=null,y.latest=["error",C],y.reject(C),y.notify("error",C),ho(y.observers,"error",C))},complete:function(){var C=y,A=C.sub,f=C.sources,T=f===void 0?[]:f;if(A!==null){var t=T.shift();t?Ug(t)?t.then(function(l){return y.sub=l.subscribe(y.handlers)}):y.sub=t.subscribe(y.handlers):(A&&setTimeout(function(){return A.unsubscribe()}),y.sub=null,y.latest&&y.latest[0]==="next"?y.resolve(y.latest[1]):y.resolve(),y.notify("complete"),ho(y.observers,"complete"))}}},y.nextResultListeners=new Set,y.cancel=function(C){y.reject(C),y.sources=[],y.handlers.complete()},y.promise.catch(function(C){}),typeof v=="function"&&(v=[new qt(v)]),Ug(v)?v.then(function(C){return y.start(C)},y.handlers.error):y.start(v),y}return i.prototype.start=function(v){this.sub===void 0&&(this.sources=Array.from(v),this.handlers.complete())},i.prototype.deliverLastMessage=function(v){if(this.latest){var y=this.latest[0],C=v[y];C&&C.call(v,this.latest[1]),this.sub===null&&y==="next"&&v.complete&&v.complete()}},i.prototype.addObserver=function(v){this.observers.has(v)||(this.deliverLastMessage(v),this.observers.add(v))},i.prototype.removeObserver=function(v){this.observers.delete(v)&&this.observers.size<1&&this.handlers.complete()},i.prototype.notify=function(v,y){var C=this.nextResultListeners;C.size&&(this.nextResultListeners=new Set,C.forEach(function(A){return A(v,y)}))},i.prototype.beforeNext=function(v){var y=!1;this.nextResultListeners.add(function(C,A){y||(y=!0,v(C,A))})},i}(qt);BS(os);function Ns(e){return"incremental"in e}function VM(e){return"hasNext"in e&&"data"in e}function WM(e){return Ns(e)||VM(e)}function XM(e){return ie(e)&&"payload"in e}function GS(e,i){var v=e,y=new er;return Ns(i)&&Ri(i.incremental)&&i.incremental.forEach(function(C){for(var A=C.data,f=C.path,T=f.length-1;T>=0;--T){var t=f[T],l=!isNaN(+t),g=l?[]:{};g[t]=A,A=g}v=y.merge(v,A)}),v}function gu(e){var i=Bc(e);return Ri(i)}function Bc(e){var i=Ri(e.errors)?e.errors.slice(0):[];return Ns(e)&&Ri(e.incremental)&&e.incremental.forEach(function(v){v.errors&&i.push.apply(i,v.errors)}),i}function ol(){for(var e=[],i=0;i")}function yu(e,i){return ol(e,i,i.variables&&{variables:rt(rt({},e&&e.variables),i.variables)})}function Vg(e){return new qt(function(i){i.error(e)})}var Uc=function(e,i,v){var y=new Error(v);throw y.name="ServerError",y.response=e,y.statusCode=e.status,y.result=i,y};function HM(e){for(var i=["query","operationName","variables","extensions","context"],v=0,y=Object.keys(e);v-1;){if(m=void 0,O=[o.slice(0,p),o.slice(p+u.length)],m=O[0],o=O[1],x=m.indexOf(`\r +\r +`),S=u5(m.slice(0,x)),P=S["content-type"],P&&P.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(E=m.slice(x),E)try{R=US(e,E),Object.keys(R).length>1||"data"in R||"incremental"in R||"errors"in R||"payload"in R?XM(R)?(M={},"payload"in R&&(M=rt({},R.payload)),"errors"in R&&(M=rt(rt({},M),{extensions:rt(rt({},"extensions"in M?M.extensions:null),(w={},w[Np]=R.errors,w))})),(y=i.next)===null||y===void 0||y.call(i,M)):(C=i.next)===null||C===void 0||C.call(i,R):Object.keys(R).length===1&&"hasNext"in R&&!R.hasNext&&((A=i.complete)===null||A===void 0||A.call(i))}catch(F){Bp(F,i)}p=o.indexOf(u)}return[3,1];case 3:return(f=i.complete)===null||f===void 0||f.call(i),[2]}})})}function u5(e){var i={};return e.split(` +`).forEach(function(v){var y=v.indexOf(":");if(y>-1){var C=v.slice(0,y).trim().toLowerCase(),A=v.slice(y+1).trim();i[C]=A}}),i}function US(e,i){if(e.status>=300){var v=function(){try{return JSON.parse(i)}catch{return i}};Uc(e,v(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(i)}catch(C){var y=C;throw y.name="ServerParseError",y.response=e,y.statusCode=e.status,y.bodyText=i,y}}function Bp(e,i){var v,y;e.name!=="AbortError"&&(e.result&&e.result.errors&&e.result.data&&((v=i.next)===null||v===void 0||v.call(i,e.result)),(y=i.error)===null||y===void 0||y.call(i,e))}function h5(e,i,v){f5(i)(e).then(function(y){var C,A;(C=v.next)===null||C===void 0||C.call(v,y),(A=v.complete)===null||A===void 0||A.call(v)}).catch(function(y){return Bp(y,v)})}function f5(e){return function(i){return i.text().then(function(v){return US(i,v)}).then(function(v){return i.status>=300&&Uc(i,v,"Response not successful: Received status code ".concat(i.status)),!Array.isArray(v)&&!Yg.call(v,"data")&&!Yg.call(v,"errors")&&Uc(i,v,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(y){return y.operationName}):e.operationName,"'.")),v})}}var Vc=function(e,i){var v;try{v=JSON.stringify(e)}catch(C){var y=__DEV__?new Wt("Network request failed. ".concat(i," is not serializable: ").concat(C.message)):new Wt(24);throw y.parseError=C,y}return v},d5={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},c5={accept:"*/*","content-type":"application/json"},v5={method:"POST"},p5={http:d5,headers:c5,options:v5},m5=function(e,i){return i(e)};function g5(e,i){for(var v=[],y=2;y"u")throw __DEV__?new Wt(` +"fetch" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example: + +import fetch from 'cross-fetch'; +import { ApolloClient, HttpLink } from '@apollo/client'; +const client = new ApolloClient({ + link: new HttpLink({ uri: '/graphql', fetch }) +}); + `):new Wt(23)},T5=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var e=new AbortController,i=e.signal;return{controller:e,signal:i}},S5=function(e,i){var v=e.getContext(),y=v.uri;return y||(typeof i=="function"?i(e):i||"/graphql")};function E5(e,i){var v=[],y=function(u,o){v.push("".concat(u,"=").concat(encodeURIComponent(o)))};if("query"in i&&y("query",i.query),i.operationName&&y("operationName",i.operationName),i.variables){var C=void 0;try{C=Vc(i.variables,"Variables map")}catch(u){return{parseError:u}}y("variables",C)}if(i.extensions){var A=void 0;try{A=Vc(i.extensions,"Extensions map")}catch(u){return{parseError:u}}y("extensions",A)}var f="",T=e,t=e.indexOf("#");t!==-1&&(f=e.substr(t),T=e.substr(0,t));var l=T.indexOf("?")===-1?"?":"&",g=T+l+v.join("&")+f;return{newURI:g}}var Hg=yi(function(){return fetch}),C5=function(e){e===void 0&&(e={});var i=e.uri,v=i===void 0?"/graphql":i,y=e.fetch,C=e.print,A=C===void 0?m5:C,f=e.includeExtensions,T=e.preserveHeaderCase,t=e.useGETForQueries,l=e.includeUnusedVariables,g=l===void 0?!1:l,u=tr(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);__DEV__&&x5(y||Hg);var o={http:{includeExtensions:f,preserveHeaderCase:T},options:u.fetchOptions,credentials:u.credentials,headers:u.headers};return new ll(function(a){var n=S5(a,v),r=a.getContext(),d={};if(r.clientAwareness){var s=r.clientAwareness,h=s.name,c=s.version;h&&(d["apollographql-client-name"]=h),c&&(d["apollographql-client-version"]=c)}var p=rt(rt({},d),r.headers),m={http:r.http,options:r.fetchOptions,credentials:r.credentials,headers:p},x=g5(a,A,p5,o,m),S=x.options,P=x.body;if(P.variables&&!g){var E=new Set(Object.keys(P.variables));Sn(a.query,{Variable:function(j,G,V){V&&V.kind!=="VariableDefinition"&&E.delete(j.name.value)}}),E.size&&(P.variables=rt({},P.variables),E.forEach(function(j){delete P.variables[j]}))}var R;if(!S.signal){var M=T5(),O=M.controller,w=M.signal;R=O,R&&(S.signal=w)}var L=function(j){return j.kind==="OperationDefinition"&&j.operation==="mutation"},F=function(j){return j.kind==="OperationDefinition"&&j.operation==="subscription"},b=F(Dh(a.query)),D=Ep(["defer"],a.query);if(t&&!a.query.definitions.some(L)&&(S.method="GET"),D||b){S.headers=S.headers||{};var N="multipart/mixed;";b&&D&&__DEV__&&vt.warn("Multipart-subscriptions do not support @defer"),b?N+="boundary=graphql;subscriptionSpec=1.0,application/json":D&&(N+="deferSpec=20220824,application/json"),S.headers.accept=N}if(S.method==="GET"){var z=E5(n,P),W=z.newURI,Y=z.parseError;if(Y)return Vg(Y);n=W}else try{S.body=Vc(P,"Payload")}catch(j){return Vg(j)}return new qt(function(j){var G=y||yi(function(){return fetch})||Hg;return G(n,S).then(function(V){var I;a.setContext({response:V});var B=(I=V.headers)===null||I===void 0?void 0:I.get("content-type");return B!==null&&/^multipart\/mixed/i.test(B)?l5(V,j):h5(V,a,j)}).catch(function(V){return Bp(V,j)}),function(){R&&R.abort()}})})},P5=function(e){Xi(i,e);function i(v){v===void 0&&(v={});var y=e.call(this,C5(v).request)||this;return y.options=v,y}return i}(ll),zS=Object.prototype,$g=zS.toString,R5=zS.hasOwnProperty,jg=Function.prototype.toString,Wc=new Map;function de(e,i){try{return Xc(e,i)}finally{Wc.clear()}}function Xc(e,i){if(e===i)return!0;var v=$g.call(e),y=$g.call(i);if(v!==y)return!1;switch(v){case"[object Array]":if(e.length!==i.length)return!1;case"[object Object]":{if(Kg(e,i))return!0;var C=kg(e),A=kg(i),f=C.length;if(f!==A.length)return!1;for(var T=0;T=0&&e.indexOf(i,v)===v}function Kg(e,i){var v=Wc.get(e);if(v){if(v.has(i))return!0}else Wc.set(e,v=new Set);return v.add(i),!1}var w5=function(){return Object.create(null)},VS=Array.prototype,F5=VS.forEach,L5=VS.slice,I5=function(){function e(i,v){i===void 0&&(i=!0),v===void 0&&(v=w5),this.weakness=i,this.makeData=v}return e.prototype.lookup=function(){for(var i=[],v=0;vclass{constructor(){this.id=["slot",D5++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let i=Oe;i;i=i.parent)if(this.id in i.slots){const v=i.slots[this.id];if(v===Qg)break;return i!==Oe&&(Oe.slots[this.id]=v),!0}return Oe&&(Oe.slots[this.id]=Qg),!1}getValue(){if(this.hasValue())return Oe.slots[this.id]}withValue(i,v,y,C){const A={__proto__:null,[this.id]:i},f=Oe;Oe={parent:f,slots:A};try{return v.apply(C,y)}finally{Oe=f}}static bind(i){const v=Oe;return function(){const y=Oe;try{return Oe=v,i.apply(this,arguments)}finally{Oe=y}}}static noContext(i,v,y){if(Oe){const C=Oe;try{return Oe=null,i.apply(y,v)}finally{Oe=C}}else return i.apply(y,v)}};function Zg(e){try{return e()}catch{}}const dd="@wry/context:Slot",B5=Zg(()=>globalThis)||Zg(()=>global)||Object.create(null),Jg=B5,WS=Jg[dd]||Array[dd]||function(e){try{Object.defineProperty(Jg,dd,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(N5());function G5(){}var U5=function(){function e(i,v){i===void 0&&(i=1/0),v===void 0&&(v=G5),this.max=i,this.dispose=v,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(i){return this.map.has(i)},e.prototype.get=function(i){var v=this.getNode(i);return v&&v.value},e.prototype.getNode=function(i){var v=this.map.get(i);if(v&&v!==this.newest){var y=v.older,C=v.newer;C&&(C.older=y),y&&(y.newer=C),v.older=this.newest,v.older.newer=v,v.newer=null,this.newest=v,v===this.oldest&&(this.oldest=C)}return v},e.prototype.set=function(i,v){var y=this.getNode(i);return y?y.value=v:(y={key:i,value:v,newer:null,older:this.newest},this.newest&&(this.newest.newer=y),this.newest=y,this.oldest=this.oldest||y,this.map.set(i,y),y.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(i){var v=this.map.get(i);return v?(v===this.newest&&(this.newest=v.older),v===this.oldest&&(this.oldest=v.newer),v.newer&&(v.newer.older=v.older),v.older&&(v.older.newer=v.newer),this.map.delete(i),this.dispose(v.value,i),!0):!1},e}(),Bh=new WS,cd,z5=Object.prototype.hasOwnProperty,Gp=(cd=Array.from,cd===void 0?function(e){var i=[];return e.forEach(function(v){return i.push(v)}),i}:cd);function _u(e){var i=e.unsubscribe;typeof i=="function"&&(e.unsubscribe=void 0,i())}var Wo=[],V5=100;function Js(e,i){if(!e)throw new Error(i||"assertion failure")}function W5(e,i){var v=e.length;return v>0&&v===i.length&&e[v-1]===i[v-1]}function XS(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function X5(e){return e.slice(0)}var Y5=function(){function e(i){this.fn=i,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(this.value.length===1&&!ir(this))return qg(this),this.value[0]},e.prototype.recompute=function(i){return Js(!this.recomputing,"already recomputing"),qg(this),ir(this)?H5(this,i):XS(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,YS(this),_u(this))},e.prototype.dispose=function(){var i=this;this.setDirty(),KS(this),Up(this,function(v,y){v.setDirty(),QS(v,i)})},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(i){i.add(this),this.deps||(this.deps=Wo.pop()||new Set),this.deps.add(i)},e.prototype.forgetDeps=function(){var i=this;this.deps&&(Gp(this.deps).forEach(function(v){return v.delete(i)}),this.deps.clear(),Wo.push(this.deps),this.deps=null)},e.count=0,e}();function qg(e){var i=Bh.getValue();if(i)return e.parents.add(i),i.childValues.has(e)||i.childValues.set(e,[]),ir(e)?$S(i,e):jS(i,e),i}function H5(e,i){return KS(e),Bh.withValue(e,$5,[e,i]),k5(e,i)&&j5(e),XS(e.value)}function $5(e,i){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,i)}catch(v){e.value[1]=v}e.recomputing=!1}function ir(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function j5(e){e.dirty=!1,!ir(e)&&HS(e)}function YS(e){Up(e,$S)}function HS(e){Up(e,jS)}function Up(e,i){var v=e.parents.size;if(v)for(var y=Gp(e.parents),C=0;C0&&e.childValues.forEach(function(i,v){QS(e,v)}),e.forgetDeps(),Js(e.dirtyChildren===null)}function QS(e,i){i.parents.delete(e),e.childValues.delete(i),kS(e,i)}function k5(e,i){if(typeof e.subscribe=="function")try{_u(e),e.unsubscribe=e.subscribe.apply(null,i)}catch{return e.setDirty(),!1}return!0}var K5={setDirty:!0,dispose:!0,forget:!0};function ZS(e){var i=new Map,v=e&&e.subscribe;function y(C){var A=Bh.getValue();if(A){var f=i.get(C);f||i.set(C,f=new Set),A.dependOn(f),typeof v=="function"&&(_u(f),f.unsubscribe=v(C))}}return y.dirty=function(A,f){var T=i.get(A);if(T){var t=f&&z5.call(K5,f)?f:"setDirty";Gp(T).forEach(function(l){return l[t]()}),i.delete(A),_u(T)}},y}function JS(){var e=new I5(typeof WeakMap=="function");return function(){return e.lookupArray(arguments)}}JS();var vd=new Set;function th(e,i){i===void 0&&(i=Object.create(null));var v=new U5(i.max||Math.pow(2,16),function(l){return l.dispose()}),y=i.keyArgs,C=i.makeCacheKey||JS(),A=function(){var l=C.apply(null,y?y.apply(null,arguments):arguments);if(l===void 0)return e.apply(null,arguments);var g=v.get(l);g||(v.set(l,g=new Y5(e)),g.subscribe=i.subscribe,g.forget=function(){return v.delete(l)});var u=g.recompute(Array.prototype.slice.call(arguments));return v.set(l,g),vd.add(v),Bh.hasValue()||(vd.forEach(function(o){return o.clean()}),vd.clear()),u};Object.defineProperty(A,"size",{get:function(){return v.map.size},configurable:!1,enumerable:!1});function f(l){var g=v.get(l);g&&g.setDirty()}A.dirtyKey=f,A.dirty=function(){f(C.apply(null,arguments))};function T(l){var g=v.get(l);if(g)return g.peek()}A.peekKey=T,A.peek=function(){return T(C.apply(null,arguments))};function t(l){return v.delete(l)}return A.forgetKey=t,A.forget=function(){return t(C.apply(null,arguments))},A.makeCacheKey=C,A.getKey=y?function(){return C.apply(null,y.apply(null,arguments))}:C,Object.freeze(A)}var Q5=function(){function e(){this.getFragmentDoc=th(eM)}return e.prototype.batch=function(i){var v=this,y=typeof i.optimistic=="string"?i.optimistic:i.optimistic===!1?null:void 0,C;return this.performTransaction(function(){return C=i.update(v)},y),C},e.prototype.recordOptimisticTransaction=function(i,v){this.performTransaction(i,v)},e.prototype.transformDocument=function(i){return i},e.prototype.transformForLink=function(i){return i},e.prototype.identify=function(i){},e.prototype.gc=function(){return[]},e.prototype.modify=function(i){return!1},e.prototype.readQuery=function(i,v){return v===void 0&&(v=!!i.optimistic),this.read(rt(rt({},i),{rootId:i.id||"ROOT_QUERY",optimistic:v}))},e.prototype.readFragment=function(i,v){return v===void 0&&(v=!!i.optimistic),this.read(rt(rt({},i),{query:this.getFragmentDoc(i.fragment,i.fragmentName),rootId:i.id,optimistic:v}))},e.prototype.writeQuery=function(i){var v=i.id,y=i.data,C=tr(i,["id","data"]);return this.write(Object.assign(C,{dataId:v||"ROOT_QUERY",result:y}))},e.prototype.writeFragment=function(i){var v=i.id,y=i.data,C=i.fragment,A=i.fragmentName,f=tr(i,["id","data","fragment","fragmentName"]);return this.write(Object.assign(f,{query:this.getFragmentDoc(C,A),dataId:v,result:y}))},e.prototype.updateQuery=function(i,v){return this.batch({update:function(y){var C=y.readQuery(i),A=v(C);return A==null?C:(y.writeQuery(rt(rt({},i),{data:A})),A)}})},e.prototype.updateFragment=function(i,v){return this.batch({update:function(y){var C=y.readFragment(i),A=v(C);return A==null?C:(y.writeFragment(rt(rt({},i),{data:A})),A)}})},e}(),qS=function(e){Xi(i,e);function i(v,y,C,A){var f,T=e.call(this,v)||this;if(T.message=v,T.path=y,T.query=C,T.variables=A,Array.isArray(T.path)){T.missing=T.message;for(var t=T.path.length-1;t>=0;--t)T.missing=(f={},f[T.path[t]]=T.missing,f)}else T.missing=T.path;return T.__proto__=i.prototype,T}return i}(Error);const Z5=()=>Object.create(null),{forEach:J5,slice:q5}=Array.prototype,{hasOwnProperty:_5}=Object.prototype;class ha{constructor(i=!0,v=Z5){this.weakness=i,this.makeData=v}lookup(...i){return this.lookupArray(i)}lookupArray(i){let v=this;return J5.call(i,y=>v=v.getChildTrie(y)),_5.call(v,"data")?v.data:v.data=this.makeData(q5.call(i))}peek(...i){return this.peekArray(i)}peekArray(i){let v=this;for(let y=0,C=i.length;v&&y0){var v=--this.rootIds[i];return v||delete this.rootIds[i],v}return 0},e.prototype.getRootIdSet=function(i){return i===void 0&&(i=new Set),Object.keys(this.rootIds).forEach(i.add,i),this instanceof wn?this.parent.getRootIdSet(i):Object.keys(this.policies.rootTypenamesById).forEach(i.add,i),i},e.prototype.gc=function(){var i=this,v=this.getRootIdSet(),y=this.toObject();v.forEach(function(f){Ce.call(y,f)&&(Object.keys(i.findChildRefIds(f)).forEach(v.add,v),delete y[f])});var C=Object.keys(y);if(C.length){for(var A=this;A instanceof wn;)A=A.parent;C.forEach(function(f){return A.delete(f)})}return C},e.prototype.findChildRefIds=function(i){if(!Ce.call(this.refs,i)){var v=this.refs[i]=Object.create(null),y=this.data[i];if(!y)return v;var C=new Set([y]);C.forEach(function(A){Ht(A)&&(v[A.__ref]=!0),ie(A)&&Object.keys(A).forEach(function(f){var T=A[f];ie(T)&&C.add(T)})})}return this.refs[i]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),rE=function(){function e(i,v){v===void 0&&(v=null),this.caching=i,this.parent=v,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?ZS():null,this.keyMaker=new ha(ur)},e.prototype.depend=function(i,v){if(this.d){this.d(md(i,v));var y=nr(v);y!==v&&this.d(md(i,y)),this.parent&&this.parent.depend(i,v)}},e.prototype.dirty=function(i,v){this.d&&this.d.dirty(md(i,v),v==="__exists"?"forget":"setDirty")},e}();function md(e,i){return i+"#"+e}function ey(e,i){fo(e)&&e.group.depend(i,"__exists")}(function(e){var i=function(v){Xi(y,v);function y(C){var A=C.policies,f=C.resultCaching,T=f===void 0?!0:f,t=C.seed,l=v.call(this,A,new rE(T))||this;return l.stump=new n3(l),l.storageTrie=new ha(ur),t&&l.replace(t),l}return y.prototype.addLayer=function(C,A){return this.stump.addLayer(C,A)},y.prototype.removeLayer=function(){return this},y.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},y}(e);e.Root=i})(Xo||(Xo={}));var wn=function(e){Xi(i,e);function i(v,y,C,A){var f=e.call(this,y.policies,A)||this;return f.id=v,f.parent=y,f.replay=C,f.group=A,C(f),f}return i.prototype.addLayer=function(v,y){return new i(v,this,y,this.group)},i.prototype.removeLayer=function(v){var y=this,C=this.parent.removeLayer(v);return v===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(A){var f=y.data[A],T=C.lookup(A);T?f?f!==T&&Object.keys(f).forEach(function(t){de(f[t],T[t])||y.group.dirty(A,t)}):(y.group.dirty(A,"__exists"),Object.keys(T).forEach(function(t){y.group.dirty(A,t)})):y.delete(A)}),C):C===this.parent?this:C.addLayer(this.id,this.replay)},i.prototype.toObject=function(){return rt(rt({},this.parent.toObject()),this.data)},i.prototype.findChildRefIds=function(v){var y=this.parent.findChildRefIds(v);return Ce.call(this.data,v)?rt(rt({},y),e.prototype.findChildRefIds.call(this,v)):y},i.prototype.getStorage=function(){for(var v=this.parent;v.parent;)v=v.parent;return v.getStorage.apply(v,arguments)},i}(Xo),n3=function(e){Xi(i,e);function i(v){return e.call(this,"EntityStore.Stump",v,function(){},new rE(v.group.caching,v.group))||this}return i.prototype.removeLayer=function(){return this},i.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},i}(wn);function r3(e,i,v){var y=e[v],C=i[v];return de(y,C)?y:C}function fo(e){return!!(e instanceof Xo&&e.group.caching)}function s3(e){return ie(e)?ve(e)?e.slice(0):rt({__proto__:Object.getPrototypeOf(e)},e):e}var Hc=function(){function e(){this.known=new(BM?WeakSet:Set),this.pool=new ha(ur),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(i){return ie(i)&&this.known.has(i)},e.prototype.pass=function(i){if(ie(i)){var v=s3(i);return this.passes.set(v,i),v}return i},e.prototype.admit=function(i){var v=this;if(ie(i)){var y=this.passes.get(i);if(y)return y;var C=Object.getPrototypeOf(i);switch(C){case Array.prototype:{if(this.known.has(i))return i;var A=i.map(this.admit,this),f=this.pool.lookupArray(A);return f.array||(this.known.add(f.array=A),__DEV__&&Object.freeze(A)),f.array}case null:case Object.prototype:{if(this.known.has(i))return i;var T=Object.getPrototypeOf(i),t=[T],l=this.sortedKeys(i);t.push(l.json);var g=t.length;l.sorted.forEach(function(a){t.push(v.admit(i[a]))});var f=this.pool.lookupArray(t);if(!f.object){var u=f.object=Object.create(T);this.known.add(u),l.sorted.forEach(function(a,n){u[a]=t[g+n]}),__DEV__&&Object.freeze(u)}return f.object}}}return i},e.prototype.sortedKeys=function(i){var v=Object.keys(i),y=this.pool.lookupArray(v);if(!y.keys){v.sort();var C=JSON.stringify(v);(y.keys=this.keysByJSON.get(C))||this.keysByJSON.set(C,y.keys={sorted:v,json:C})}return y.keys},e}(),wr=Object.assign(function(e){if(ie(e)){$c===void 0&&iy();var i=$c.admit(e),v=jc.get(i);return v===void 0&&jc.set(i,v=JSON.stringify(i)),v}return JSON.stringify(e)},{reset:iy}),$c,jc;function iy(){$c=new Hc,jc=new(ur?WeakMap:Map)}function ny(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var a3=function(){function e(i){var v=this;this.knownResults=new(ur?WeakMap:Map),this.config=ol(i,{addTypename:i.addTypename!==!1,canonizeResults:eE(i)}),this.canon=i.canon||new Hc,this.executeSelectionSet=th(function(y){var C,A=y.context.canonizeResults,f=ny(y);f[3]=!A;var T=(C=v.executeSelectionSet).peek.apply(C,f);return T?A?rt(rt({},T),{result:v.canon.admit(T.result)}):T:(ey(y.context.store,y.enclosingRef.__ref),v.execSelectionSetImpl(y))},{max:this.config.resultCacheMaxSize,keyArgs:ny,makeCacheKey:function(y,C,A,f){if(fo(A.store))return A.store.makeCacheKey(y,Ht(C)?C.__ref:C,A.varString,f)}}),this.executeSubSelectedArray=th(function(y){return ey(y.context.store,y.enclosingRef.__ref),v.execSubSelectedArrayImpl(y)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(y){var C=y.field,A=y.array,f=y.context;if(fo(f.store))return f.store.makeCacheKey(C,A,f.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Hc},e.prototype.diffQueryAgainstStore=function(i){var v=i.store,y=i.query,C=i.rootId,A=C===void 0?"ROOT_QUERY":C,f=i.variables,T=i.returnPartialData,t=T===void 0?!0:T,l=i.canonizeResults,g=l===void 0?this.config.canonizeResults:l,u=this.config.cache.policies;f=rt(rt({},Mp(wS(y))),f);var o=Ds(A),a=this.executeSelectionSet({selectionSet:Dh(y).selectionSet,objectOrReference:o,enclosingRef:o,context:rt({store:v,query:y,policies:u,variables:f,varString:wr(f),canonizeResults:g},nE(y,this.config.fragments))}),n;if(a.missing&&(n=[new qS(o3(a.missing),a.missing,y,f)],!t))throw n[0];return{result:a.result,complete:!n,missing:n}},e.prototype.isFresh=function(i,v,y,C){if(fo(C.store)&&this.knownResults.get(i)===y){var A=this.executeSelectionSet.peek(y,v,C,this.canon.isKnown(i));if(A&&i===A.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(i){var v=this,y=i.selectionSet,C=i.objectOrReference,A=i.enclosingRef,f=i.context;if(Ht(C)&&!f.policies.rootTypenamesById[C.__ref]&&!f.store.has(C.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(C.__ref," object")};var T=f.variables,t=f.policies,l=f.store,g=l.getFieldValue(C,"__typename"),u=[],o,a=new er;this.config.addTypename&&typeof g=="string"&&!t.rootIdsByTypename[g]&&u.push({__typename:g});function n(c,p){var m;return c.missing&&(o=a.merge(o,(m={},m[p]=c.missing,m))),c.result}var r=new Set(y.selections);r.forEach(function(c){var p,m;if(Lh(c,T))if(Ur(c)){var x=t.readField({fieldName:c.name.value,field:c,variables:f.variables,from:C},f),S=Gr(c);x===void 0?Op.added(c)||(o=a.merge(o,(p={},p[S]="Can't find field '".concat(c.name.value,"' on ").concat(Ht(C)?C.__ref+" object":"object "+JSON.stringify(C,null,2)),p))):ve(x)?x=n(v.executeSubSelectedArray({field:c,array:x,enclosingRef:A,context:f}),S):c.selectionSet?x!=null&&(x=n(v.executeSelectionSet({selectionSet:c.selectionSet,objectOrReference:x,enclosingRef:Ht(x)?x:A,context:f}),S)):f.canonizeResults&&(x=v.canon.pass(x)),x!==void 0&&u.push((m={},m[S]=x,m))}else{var P=Pp(c,f.lookupFragment);if(!P&&c.kind===Ct.FRAGMENT_SPREAD)throw __DEV__?new Wt("No fragment named ".concat(c.name.value)):new Wt(5);P&&t.fragmentMatches(P,g)&&P.selectionSet.selections.forEach(r.add,r)}});var d=wp(u),s={result:d,missing:o},h=f.canonizeResults?this.canon.admit(s):Vo(s);return h.result&&this.knownResults.set(h.result,y),h},e.prototype.execSubSelectedArrayImpl=function(i){var v=this,y=i.field,C=i.array,A=i.enclosingRef,f=i.context,T,t=new er;function l(g,u){var o;return g.missing&&(T=t.merge(T,(o={},o[u]=g.missing,o))),g.result}return y.selectionSet&&(C=C.filter(f.store.canRead)),C=C.map(function(g,u){return g===null?null:ve(g)?l(v.executeSubSelectedArray({field:y,array:g,enclosingRef:A,context:f}),u):y.selectionSet?l(v.executeSelectionSet({selectionSet:y.selectionSet,objectOrReference:g,enclosingRef:Ht(g)?g:A,context:f}),u):(__DEV__&&l3(f.store,y,g),g)}),{result:f.canonizeResults?this.canon.admit(C):C,missing:T}},e}();function o3(e){try{JSON.stringify(e,function(i,v){if(typeof v=="string")throw v;return v})}catch(i){return i}}function l3(e,i,v){if(!i.selectionSet){var y=new Set([v]);y.forEach(function(C){ie(C)&&(__DEV__?vt(!Ht(C),"Missing selection set for object of type ".concat(e3(e,C)," returned for query field ").concat(i.name.value)):vt(!Ht(C),6),Object.values(C).forEach(y.add,y))})}}var zp=new WS,ry=new WeakMap;function co(e){var i=ry.get(e);return i||ry.set(e,i={vars:new Set,dep:ZS()}),i}function sy(e){co(e).vars.forEach(function(i){return i.forgetCache(e)})}function u3(e){co(e).vars.forEach(function(i){return i.attachCache(e)})}function h3(e){var i=new Set,v=new Set,y=function(A){if(arguments.length>0){if(e!==A){e=A,i.forEach(function(t){co(t).dep.dirty(y),f3(t)});var f=Array.from(v);v.clear(),f.forEach(function(t){return t(e)})}}else{var T=zp.getValue();T&&(C(T),co(T).dep(y))}return e};y.onNextChange=function(A){return v.add(A),function(){v.delete(A)}};var C=y.attachCache=function(A){return i.add(A),co(A).vars.add(y),y};return y.forgetCache=function(A){return i.delete(A)},y}function f3(e){e.broadcastWatches&&e.broadcastWatches()}var ay=Object.create(null);function Vp(e){var i=JSON.stringify(e);return ay[i]||(ay[i]=Object.create(null))}function oy(e){var i=Vp(e);return i.keyFieldsFn||(i.keyFieldsFn=function(v,y){var C=function(f,T){return y.readField(T,f)},A=y.keyObject=Wp(e,function(f){var T=Bs(y.storeObject,f,C);return T===void 0&&v!==y.storeObject&&Ce.call(v,f[0])&&(T=Bs(v,f,aE)),__DEV__?vt(T!==void 0,"Missing field '".concat(f.join("."),"' while extracting keyFields from ").concat(JSON.stringify(v))):vt(T!==void 0,2),T});return"".concat(y.typename,":").concat(JSON.stringify(A))})}function ly(e){var i=Vp(e);return i.keyArgsFn||(i.keyArgsFn=function(v,y){var C=y.field,A=y.variables,f=y.fieldName,T=Wp(e,function(l){var g=l[0],u=g.charAt(0);if(u==="@"){if(C&&Ri(C.directives)){var o=g.slice(1),a=C.directives.find(function(s){return s.name.value===o}),n=a&&Ih(a,A);return n&&Bs(n,l.slice(1))}return}if(u==="$"){var r=g.slice(1);if(A&&Ce.call(A,r)){var d=l.slice(0);return d[0]=r,Bs(A,d)}return}if(v)return Bs(v,l)}),t=JSON.stringify(T);return(v||t!=="{}")&&(f+=":"+t),f})}function Wp(e,i){var v=new er;return sE(e).reduce(function(y,C){var A,f=i(C);if(f!==void 0){for(var T=C.length-1;T>=0;--T)f=(A={},A[C[T]]=f,A);y=v.merge(y,f)}return y},Object.create(null))}function sE(e){var i=Vp(e);if(!i.paths){var v=i.paths=[],y=[];e.forEach(function(C,A){ve(C)?(sE(C).forEach(function(f){return v.push(y.concat(f))}),y.length=0):(y.push(C),ve(e[A+1])||(v.push(y.slice(0)),y.length=0))})}return i.paths}function aE(e,i){return e[i]}function Bs(e,i,v){return v=v||aE,oE(i.reduce(function y(C,A){return ve(C)?C.map(function(f){return y(f,A)}):C&&v(C,A)},e))}function oE(e){return ie(e)?ve(e)?e.map(oE):Wp(Object.keys(e).sort(),function(i){return Bs(e,i)}):e}Rp.setStringify(wr);function kc(e){return e.args!==void 0?e.args:e.field?Ih(e.field,e.variables):null}var d3=function(){},uy=function(e,i){return i.fieldName},hy=function(e,i,v){var y=v.mergeObjects;return y(e,i)},fy=function(e,i){return i},c3=function(){function e(i){this.config=i,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=rt({dataIdFromObject:_S},i),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),i.possibleTypes&&this.addPossibleTypes(i.possibleTypes),i.typePolicies&&this.addTypePolicies(i.typePolicies)}return e.prototype.identify=function(i,v){var y,C=this,A=v&&(v.typename||((y=v.storeObject)===null||y===void 0?void 0:y.__typename))||i.__typename;if(A===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var f=v&&v.storeObject||i,T=rt(rt({},v),{typename:A,storeObject:f,readField:v&&v.readField||function(){var o=Xp(arguments,f);return C.readField(o,{store:C.cache.data,variables:o.variables})}}),t,l=A&&this.getTypePolicy(A),g=l&&l.keyFn||this.config.dataIdFromObject;g;){var u=g(rt(rt({},i),f),T);if(ve(u))g=oy(u);else{t=u;break}}return t=t?String(t):void 0,T.keyObject?[t,T.keyObject]:[t]},e.prototype.addTypePolicies=function(i){var v=this;Object.keys(i).forEach(function(y){var C=i[y],A=C.queryType,f=C.mutationType,T=C.subscriptionType,t=tr(C,["queryType","mutationType","subscriptionType"]);A&&v.setRootTypename("Query",y),f&&v.setRootTypename("Mutation",y),T&&v.setRootTypename("Subscription",y),Ce.call(v.toBeAdded,y)?v.toBeAdded[y].push(t):v.toBeAdded[y]=[t]})},e.prototype.updateTypePolicy=function(i,v){var y=this,C=this.getTypePolicy(i),A=v.keyFields,f=v.fields;function T(t,l){t.merge=typeof l=="function"?l:l===!0?hy:l===!1?fy:t.merge}T(C,v.merge),C.keyFn=A===!1?d3:ve(A)?oy(A):typeof A=="function"?A:C.keyFn,f&&Object.keys(f).forEach(function(t){var l=y.getFieldPolicy(i,t,!0),g=f[t];if(typeof g=="function")l.read=g;else{var u=g.keyArgs,o=g.read,a=g.merge;l.keyFn=u===!1?uy:ve(u)?ly(u):typeof u=="function"?u:l.keyFn,typeof o=="function"&&(l.read=o),T(l,a)}l.read&&l.merge&&(l.keyFn=l.keyFn||uy)})},e.prototype.setRootTypename=function(i,v){v===void 0&&(v=i);var y="ROOT_"+i.toUpperCase(),C=this.rootTypenamesById[y];v!==C&&(__DEV__?vt(!C||C===i,"Cannot change root ".concat(i," __typename more than once")):vt(!C||C===i,3),C&&delete this.rootIdsByTypename[C],this.rootIdsByTypename[v]=y,this.rootTypenamesById[y]=v)},e.prototype.addPossibleTypes=function(i){var v=this;this.usingPossibleTypes=!0,Object.keys(i).forEach(function(y){v.getSupertypeSet(y,!0),i[y].forEach(function(C){v.getSupertypeSet(C,!0).add(y);var A=C.match(iE);(!A||A[0]!==C)&&v.fuzzySubtypes.set(C,new RegExp(C))})})},e.prototype.getTypePolicy=function(i){var v=this;if(!Ce.call(this.typePolicies,i)){var y=this.typePolicies[i]=Object.create(null);y.fields=Object.create(null);var C=this.supertypeMap.get(i);C&&C.size&&C.forEach(function(f){var T=v.getTypePolicy(f),t=T.fields,l=tr(T,["fields"]);Object.assign(y,l),Object.assign(y.fields,t)})}var A=this.toBeAdded[i];return A&&A.length&&A.splice(0).forEach(function(f){v.updateTypePolicy(i,f)}),this.typePolicies[i]},e.prototype.getFieldPolicy=function(i,v,y){if(i){var C=this.getTypePolicy(i).fields;return C[v]||y&&(C[v]=Object.create(null))}},e.prototype.getSupertypeSet=function(i,v){var y=this.supertypeMap.get(i);return!y&&v&&this.supertypeMap.set(i,y=new Set),y},e.prototype.fragmentMatches=function(i,v,y,C){var A=this;if(!i.typeCondition)return!0;if(!v)return!1;var f=i.typeCondition.name.value;if(v===f)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(f))for(var T=this.getSupertypeSet(v,!0),t=[T],l=function(n){var r=A.getSupertypeSet(n,!1);r&&r.size&&t.indexOf(r)<0&&t.push(r)},g=!!(y&&this.fuzzySubtypes.size),u=!1,o=0;o1?C:i}:(f=rt({},y),Ce.call(f,"from")||(f.from=i)),__DEV__&&f.from===void 0&&__DEV__&&vt.warn("Undefined 'from' passed to readField with arguments ".concat(YM(Array.from(e)))),f.variables===void 0&&(f.variables=v),f}function lE(e){return function(v,y){if(ve(v)||ve(y))throw __DEV__?new Wt("Cannot automatically merge arrays"):new Wt(4);if(ie(v)&&ie(y)){var C=e.getFieldValue(v,"__typename"),A=e.getFieldValue(y,"__typename"),f=C&&A&&C!==A;if(f)return y;if(Ht(v)&&Cs(y))return e.merge(v.__ref,y),v;if(Cs(v)&&Ht(y))return e.merge(v,y.__ref),y;if(Cs(v)&&Cs(y))return rt(rt({},v),y)}return y}}function gd(e,i,v){var y="".concat(i).concat(v),C=e.flavors.get(y);return C||e.flavors.set(y,C=e.clientOnly===i&&e.deferred===v?e:rt(rt({},e),{clientOnly:i,deferred:v})),C}var v3=function(){function e(i,v,y){this.cache=i,this.reader=v,this.fragments=y}return e.prototype.writeToStore=function(i,v){var y=this,C=v.query,A=v.result,f=v.dataId,T=v.variables,t=v.overwrite,l=al(C),g=i3();T=rt(rt({},Mp(l)),T);var u=rt(rt({store:i,written:Object.create(null),merge:function(a,n){return g.merge(a,n)},variables:T,varString:wr(T)},nE(C,this.fragments)),{overwrite:!!t,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),o=this.processSelectionSet({result:A||Object.create(null),dataId:f,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:u});if(!Ht(o))throw __DEV__?new Wt("Could not identify object ".concat(JSON.stringify(A))):new Wt(7);return u.incomingById.forEach(function(a,n){var r=a.storeObject,d=a.mergeTree,s=a.fieldNodeSet,h=Ds(n);if(d&&d.map.size){var c=y.applyMerges(d,h,r,u);if(Ht(c))return;r=c}if(__DEV__&&!u.overwrite){var p=Object.create(null);s.forEach(function(S){S.selectionSet&&(p[S.name.value]=!0)});var m=function(S){return p[nr(S)]===!0},x=function(S){var P=d&&d.map.get(S);return!!(P&&P.info&&P.info.merge)};Object.keys(r).forEach(function(S){m(S)&&!x(S)&&p3(h,r,S,u.store)})}i.merge(n,r)}),i.retain(o.__ref),o},e.prototype.processSelectionSet=function(i){var v=this,y=i.dataId,C=i.result,A=i.selectionSet,f=i.context,T=i.mergeTree,t=this.cache.policies,l=Object.create(null),g=y&&t.rootTypenamesById[y]||Lc(C,A,f.fragmentMap)||y&&f.store.get(y,"__typename");typeof g=="string"&&(l.__typename=g);var u=function(){var c=Xp(arguments,l,f.variables);if(Ht(c.from)){var p=f.incomingById.get(c.from.__ref);if(p){var m=t.readField(rt(rt({},c),{from:p.storeObject}),f);if(m!==void 0)return m}}return t.readField(c,f)},o=new Set;this.flattenFields(A,C,f,g).forEach(function(c,p){var m,x=Gr(p),S=C[x];if(o.add(p),S!==void 0){var P=t.getStoreFieldName({typename:g,fieldName:p.name.value,field:p,variables:c.variables}),E=cy(T,P),R=v.processFieldValue(S,p,p.selectionSet?gd(c,!1,!1):c,E),M=void 0;p.selectionSet&&(Ht(R)||Cs(R))&&(M=u("__typename",R));var O=t.getMergeFunction(g,p.name.value,M);O?E.info={field:p,typename:g,merge:O}:vy(T,P),l=c.merge(l,(m={},m[P]=R,m))}else __DEV__&&!c.clientOnly&&!c.deferred&&!Op.added(p)&&!t.getReadFunction(g,p.name.value)&&__DEV__&&vt.error("Missing field '".concat(Gr(p),"' while writing result ").concat(JSON.stringify(C,null,2)).substring(0,1e3))});try{var a=t.identify(C,{typename:g,selectionSet:A,fragmentMap:f.fragmentMap,storeObject:l,readField:u}),n=a[0],r=a[1];y=y||n,r&&(l=f.merge(l,r))}catch(c){if(!y)throw c}if(typeof y=="string"){var d=Ds(y),s=f.written[y]||(f.written[y]=[]);if(s.indexOf(A)>=0||(s.push(A),this.reader&&this.reader.isFresh(C,d,A,f)))return d;var h=f.incomingById.get(y);return h?(h.storeObject=f.merge(h.storeObject,l),h.mergeTree=Kc(h.mergeTree,T),o.forEach(function(c){return h.fieldNodeSet.add(c)})):f.incomingById.set(y,{storeObject:l,mergeTree:eh(T)?void 0:T,fieldNodeSet:o}),d}return l},e.prototype.processFieldValue=function(i,v,y,C){var A=this;return!v.selectionSet||i===null?__DEV__?NS(i):i:ve(i)?i.map(function(f,T){var t=A.processFieldValue(f,v,y,cy(C,T));return vy(C,T),t}):this.processSelectionSet({result:i,selectionSet:v.selectionSet,context:y,mergeTree:C})},e.prototype.flattenFields=function(i,v,y,C){C===void 0&&(C=Lc(v,i,y.fragmentMap));var A=new Map,f=this.cache.policies,T=new ha(!1);return function t(l,g){var u=T.lookup(l,g.clientOnly,g.deferred);u.visited||(u.visited=!0,l.selections.forEach(function(o){if(Lh(o,y.variables)){var a=g.clientOnly,n=g.deferred;if(!(a&&n)&&Ri(o.directives)&&o.directives.forEach(function(s){var h=s.name.value;if(h==="client"&&(a=!0),h==="defer"){var c=Ih(s,y.variables);(!c||c.if!==!1)&&(n=!0)}}),Ur(o)){var r=A.get(o);r&&(a=a&&r.clientOnly,n=n&&r.deferred),A.set(o,gd(y,a,n))}else{var d=Pp(o,y.lookupFragment);if(!d&&o.kind===Ct.FRAGMENT_SPREAD)throw __DEV__?new Wt("No fragment named ".concat(o.name.value)):new Wt(8);d&&f.fragmentMatches(d,C,v,y.variables)&&t(d.selectionSet,gd(y,a,n))}}}))}(i,y),A},e.prototype.applyMerges=function(i,v,y,C,A){var f,T=this;if(i.map.size&&!Ht(y)){var t=!ve(y)&&(Ht(v)||Cs(v))?v:void 0,l=y;t&&!A&&(A=[Ht(t)?t.__ref:t]);var g,u=function(o,a){return ve(o)?typeof a=="number"?o[a]:void 0:C.store.getFieldValue(o,String(a))};i.map.forEach(function(o,a){var n=u(t,a),r=u(l,a);if(r!==void 0){A&&A.push(a);var d=T.applyMerges(o,n,r,C,A);d!==r&&(g=g||new Map,g.set(a,d)),A&&vt(A.pop()===a)}}),g&&(y=ve(l)?l.slice(0):rt({},l),g.forEach(function(o,a){y[a]=o}))}return i.info?this.cache.policies.runMergeFunction(v,y,i.info,C,A&&(f=C.store).getStorage.apply(f,A)):y},e}(),uE=[];function cy(e,i){var v=e.map;return v.has(i)||v.set(i,uE.pop()||{map:new Map}),v.get(i)}function Kc(e,i){if(e===i||!i||eh(i))return e;if(!e||eh(e))return i;var v=e.info&&i.info?rt(rt({},e.info),i.info):e.info||i.info,y=e.map.size&&i.map.size,C=y?new Map:e.map.size?e.map:i.map,A={info:v,map:C};if(y){var f=new Set(i.map.keys());e.map.forEach(function(T,t){A.map.set(t,Kc(T,i.map.get(t))),f.delete(t)}),f.forEach(function(T){A.map.set(T,Kc(i.map.get(T),e.map.get(T)))})}return A}function eh(e){return!e||!(e.info||e.map.size)}function vy(e,i){var v=e.map,y=v.get(i);y&&eh(y)&&(uE.push(y),v.delete(i))}var py=new Set;function p3(e,i,v,y){var C=function(u){var o=y.getFieldValue(u,v);return typeof o=="object"&&o},A=C(e);if(A){var f=C(i);if(f&&!Ht(A)&&!de(A,f)&&!Object.keys(A).every(function(u){return y.getFieldValue(f,u)!==void 0})){var T=y.getFieldValue(e,"__typename")||y.getFieldValue(i,"__typename"),t=nr(v),l="".concat(T,".").concat(t);if(!py.has(l)){py.add(l);var g=[];!ve(A)&&!ve(f)&&[A,f].forEach(function(u){var o=y.getFieldValue(u,"__typename");typeof o=="string"&&!g.includes(o)&&g.push(o)}),__DEV__&&vt.warn("Cache data may be lost when replacing the ".concat(t," field of a ").concat(T,` object. + +To address this problem (which is not a bug in Apollo Client), `).concat(g.length?"either ensure all objects of type "+g.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(l,` field, so InMemoryCache can safely merge these objects: + + existing: `).concat(JSON.stringify(A).slice(0,1e3),` + incoming: `).concat(JSON.stringify(f).slice(0,1e3),` + +For more information about these options, please refer to the documentation: + + * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers + * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects +`))}}}}var m3=function(e){Xi(i,e);function i(v){v===void 0&&(v={});var y=e.call(this)||this;return y.watches=new Set,y.typenameDocumentCache=new Map,y.makeVar=h3,y.txCount=0,y.config=t3(v),y.addTypename=!!y.config.addTypename,y.policies=new c3({cache:y,dataIdFromObject:y.config.dataIdFromObject,possibleTypes:y.config.possibleTypes,typePolicies:y.config.typePolicies}),y.init(),y}return i.prototype.init=function(){var v=this.data=new Xo.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=v.stump,this.resetResultCache()},i.prototype.resetResultCache=function(v){var y=this,C=this.storeReader,A=this.config.fragments;this.storeWriter=new v3(this,this.storeReader=new a3({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:eE(this.config),canon:v?void 0:C&&C.canon,fragments:A}),A),this.maybeBroadcastWatch=th(function(f,T){return y.broadcastWatch(f,T)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(f){var T=f.optimistic?y.optimisticData:y.data;if(fo(T)){var t=f.optimistic,l=f.id,g=f.variables;return T.makeCacheKey(f.query,f.callback,wr({optimistic:t,id:l,variables:g}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(f){return f.resetCaching()})},i.prototype.restore=function(v){return this.init(),v&&this.data.replace(v),this},i.prototype.extract=function(v){return v===void 0&&(v=!1),(v?this.optimisticData:this.data).extract()},i.prototype.read=function(v){var y=v.returnPartialData,C=y===void 0?!1:y;try{return this.storeReader.diffQueryAgainstStore(rt(rt({},v),{store:v.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:C})).result||null}catch(A){if(A instanceof qS)return null;throw A}},i.prototype.write=function(v){try{return++this.txCount,this.storeWriter.writeToStore(this.data,v)}finally{!--this.txCount&&v.broadcast!==!1&&this.broadcastWatches()}},i.prototype.modify=function(v){if(Ce.call(v,"id")&&!v.id)return!1;var y=v.optimistic?this.optimisticData:this.data;try{return++this.txCount,y.modify(v.id||"ROOT_QUERY",v.fields)}finally{!--this.txCount&&v.broadcast!==!1&&this.broadcastWatches()}},i.prototype.diff=function(v){return this.storeReader.diffQueryAgainstStore(rt(rt({},v),{store:v.optimistic?this.optimisticData:this.data,rootId:v.id||"ROOT_QUERY",config:this.config}))},i.prototype.watch=function(v){var y=this;return this.watches.size||u3(this),this.watches.add(v),v.immediate&&this.maybeBroadcastWatch(v),function(){y.watches.delete(v)&&!y.watches.size&&sy(y),y.maybeBroadcastWatch.forget(v)}},i.prototype.gc=function(v){wr.reset();var y=this.optimisticData.gc();return v&&!this.txCount&&(v.resetResultCache?this.resetResultCache(v.resetResultIdentities):v.resetResultIdentities&&this.storeReader.resetCanon()),y},i.prototype.retain=function(v,y){return(y?this.optimisticData:this.data).retain(v)},i.prototype.release=function(v,y){return(y?this.optimisticData:this.data).release(v)},i.prototype.identify=function(v){if(Ht(v))return v.__ref;try{return this.policies.identify(v)[0]}catch(y){__DEV__&&vt.warn(y)}},i.prototype.evict=function(v){if(!v.id){if(Ce.call(v,"id"))return!1;v=rt(rt({},v),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(v,this.data)}finally{!--this.txCount&&v.broadcast!==!1&&this.broadcastWatches()}},i.prototype.reset=function(v){var y=this;return this.init(),wr.reset(),v&&v.discardWatches?(this.watches.forEach(function(C){return y.maybeBroadcastWatch.forget(C)}),this.watches.clear(),sy(this)):this.broadcastWatches(),Promise.resolve()},i.prototype.removeOptimistic=function(v){var y=this.optimisticData.removeLayer(v);y!==this.optimisticData&&(this.optimisticData=y,this.broadcastWatches())},i.prototype.batch=function(v){var y=this,C=v.update,A=v.optimistic,f=A===void 0?!0:A,T=v.removeOptimistic,t=v.onWatchUpdated,l,g=function(o){var a=y,n=a.data,r=a.optimisticData;++y.txCount,o&&(y.data=y.optimisticData=o);try{return l=C(y)}finally{--y.txCount,y.data=n,y.optimisticData=r}},u=new Set;return t&&!this.txCount&&this.broadcastWatches(rt(rt({},v),{onWatchUpdated:function(o){return u.add(o),!1}})),typeof f=="string"?this.optimisticData=this.optimisticData.addLayer(f,g):f===!1?g(this.data):g(),typeof T=="string"&&(this.optimisticData=this.optimisticData.removeLayer(T)),t&&u.size?(this.broadcastWatches(rt(rt({},v),{onWatchUpdated:function(o,a){var n=t.call(this,o,a);return n!==!1&&u.delete(o),n}})),u.size&&u.forEach(function(o){return y.maybeBroadcastWatch.dirty(o)})):this.broadcastWatches(v),l},i.prototype.performTransaction=function(v,y){return this.batch({update:v,optimistic:y||y!==null})},i.prototype.transformDocument=function(v){if(this.addTypename){var y=this.typenameDocumentCache.get(v);return y||(y=Op(v),this.typenameDocumentCache.set(v,y),this.typenameDocumentCache.set(y,y)),y}return v},i.prototype.transformForLink=function(v){var y=this.config.fragments;return y?y.transform(v):v},i.prototype.broadcastWatches=function(v){var y=this;this.txCount||this.watches.forEach(function(C){return y.maybeBroadcastWatch(C,v)})},i.prototype.broadcastWatch=function(v,y){var C=v.lastDiff,A=this.diff(v);y&&(v.optimistic&&typeof y.optimistic=="string"&&(A.fromOptimisticTransaction=!0),y.onWatchUpdated&&y.onWatchUpdated.call(this,v,A,C)===!1)||(!C||!de(C.result,A.result))&&v.callback(v.lastDiff=A,C)},i}(Q5),Ut;(function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"})(Ut||(Ut={}));function Yo(e){return e?e<7:!1}var g3=Object.assign,y3=Object.hasOwnProperty,Qc=function(e){Xi(i,e);function i(v){var y=v.queryManager,C=v.queryInfo,A=v.options,f=e.call(this,function(d){try{var s=d._subscription._observer;s&&!s.error&&(s.error=x3)}catch{}var h=!f.observers.size;f.observers.add(d);var c=f.last;return c&&c.error?d.error&&d.error(c.error):c&&c.result&&d.next&&d.next(c.result),h&&f.reobserve().catch(function(){}),function(){f.observers.delete(d)&&!f.observers.size&&f.tearDownQuery()}})||this;f.observers=new Set,f.subscriptions=new Set,f.queryInfo=C,f.queryManager=y,f.isTornDown=!1;var T=y.defaultOptions.watchQuery,t=T===void 0?{}:T,l=t.fetchPolicy,g=l===void 0?"cache-first":l,u=A.fetchPolicy,o=u===void 0?g:u,a=A.initialFetchPolicy,n=a===void 0?o==="standby"?g:o:a;f.options=rt(rt({},A),{initialFetchPolicy:n,fetchPolicy:o}),f.queryId=C.queryId||y.generateQueryId();var r=al(f.query);return f.queryName=r&&r.name&&r.name.value,f}return Object.defineProperty(i.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),i.prototype.result=function(){var v=this;return new Promise(function(y,C){var A={next:function(T){y(T),v.observers.delete(A),v.observers.size||v.queryManager.removeQuery(v.queryId),setTimeout(function(){f.unsubscribe()},0)},error:C},f=v.subscribe(A)})},i.prototype.getCurrentResult=function(v){v===void 0&&(v=!0);var y=this.getLastResult(!0),C=this.queryInfo.networkStatus||y&&y.networkStatus||Ut.ready,A=rt(rt({},y),{loading:Yo(C),networkStatus:C}),f=this.options.fetchPolicy,T=f===void 0?"cache-first":f;if(!(T==="network-only"||T==="no-cache"||T==="standby"||this.queryManager.transform(this.options.query).hasForcedResolvers)){var t=this.queryInfo.getDiff();(t.complete||this.options.returnPartialData)&&(A.data=t.result),de(A.data,{})&&(A.data=void 0),t.complete?(delete A.partial,t.complete&&A.networkStatus===Ut.loading&&(T==="cache-first"||T==="cache-only")&&(A.networkStatus=Ut.ready,A.loading=!1)):A.partial=!0,__DEV__&&!t.complete&&!this.options.partialRefetch&&!A.loading&&!A.data&&!A.error&&fE(t.missing)}return v&&this.updateLastResult(A),A},i.prototype.isDifferentFromLastResult=function(v,y){return!this.last||!de(this.last.result,v)||y&&!de(this.last.variables,y)},i.prototype.getLast=function(v,y){var C=this.last;if(C&&C[v]&&(!y||de(C.variables,this.variables)))return C[v]},i.prototype.getLastResult=function(v){return this.getLast("result",v)},i.prototype.getLastError=function(v){return this.getLast("error",v)},i.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},i.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},i.prototype.refetch=function(v){var y,C={pollInterval:0},A=this.options.fetchPolicy;if(A==="cache-and-network"?C.fetchPolicy=A:A==="no-cache"?C.fetchPolicy="no-cache":C.fetchPolicy="network-only",__DEV__&&v&&y3.call(v,"variables")){var f=wS(this.query),T=f.variableDefinitions;(!T||!T.some(function(t){return t.variable.name.value==="variables"}))&&__DEV__&&vt.warn("Called refetch(".concat(JSON.stringify(v),") for query ").concat(((y=f.name)===null||y===void 0?void 0:y.value)||JSON.stringify(f),`, which does not declare a $variables variable. +Did you mean to call refetch(variables) instead of refetch({ variables })?`))}return v&&!de(this.options.variables,v)&&(C.variables=this.options.variables=rt(rt({},this.options.variables),v)),this.queryInfo.resetLastWrite(),this.reobserve(C,Ut.refetch)},i.prototype.fetchMore=function(v){var y=this,C=rt(rt({},v.query?v:rt(rt(rt(rt({},this.options),{query:this.query}),v),{variables:rt(rt({},this.options.variables),v.variables)})),{fetchPolicy:"no-cache"}),A=this.queryManager.generateQueryId(),f=this.queryInfo,T=f.networkStatus;f.networkStatus=Ut.fetchMore,C.notifyOnNetworkStatusChange&&this.observe();var t=new Set;return this.queryManager.fetchQuery(A,C,Ut.fetchMore).then(function(l){return y.queryManager.removeQuery(A),f.networkStatus===Ut.fetchMore&&(f.networkStatus=T),y.queryManager.cache.batch({update:function(g){var u=v.updateQuery;u?g.updateQuery({query:y.query,variables:y.variables,returnPartialData:!0,optimistic:!1},function(o){return u(o,{fetchMoreResult:l.data,variables:C.variables})}):g.writeQuery({query:C.query,variables:C.variables,data:l.data})},onWatchUpdated:function(g){t.add(g.query)}}),l}).finally(function(){t.has(y.query)||hE(y)})},i.prototype.subscribeToMore=function(v){var y=this,C=this.queryManager.startGraphQLSubscription({query:v.document,variables:v.variables,context:v.context}).subscribe({next:function(A){var f=v.updateQuery;f&&y.updateQuery(function(T,t){var l=t.variables;return f(T,{subscriptionData:A,variables:l})})},error:function(A){if(v.onError){v.onError(A);return}__DEV__&&vt.error("Unhandled GraphQL subscription error",A)}});return this.subscriptions.add(C),function(){y.subscriptions.delete(C)&&C.unsubscribe()}},i.prototype.setOptions=function(v){return this.reobserve(v)},i.prototype.setVariables=function(v){return de(this.variables,v)?this.observers.size?this.result():Promise.resolve():(this.options.variables=v,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:v},Ut.setVariables):Promise.resolve())},i.prototype.updateQuery=function(v){var y=this.queryManager,C=y.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,A=v(C,{variables:this.variables});A&&(y.cache.writeQuery({query:this.options.query,data:A,variables:this.variables}),y.broadcastQueries())},i.prototype.startPolling=function(v){this.options.pollInterval=v,this.updatePolling()},i.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},i.prototype.applyNextFetchPolicy=function(v,y){if(y.nextFetchPolicy){var C=y.fetchPolicy,A=C===void 0?"cache-first":C,f=y.initialFetchPolicy,T=f===void 0?A:f;A==="standby"||(typeof y.nextFetchPolicy=="function"?y.fetchPolicy=y.nextFetchPolicy(A,{reason:v,options:y,observable:this,initialFetchPolicy:T}):v==="variables-changed"?y.fetchPolicy=T:y.fetchPolicy=y.nextFetchPolicy)}return y.fetchPolicy},i.prototype.fetch=function(v,y){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,v,y)},i.prototype.updatePolling=function(){var v=this;if(!this.queryManager.ssrMode){var y=this,C=y.pollingInfo,A=y.options.pollInterval;if(!A){C&&(clearTimeout(C.timeout),delete this.pollingInfo);return}if(!(C&&C.interval===A)){__DEV__?vt(A,"Attempted to start a polling query without a polling interval."):vt(A,13);var f=C||(this.pollingInfo={});f.interval=A;var T=function(){v.pollingInfo&&(Yo(v.queryInfo.networkStatus)?t():v.reobserve({fetchPolicy:v.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},Ut.poll).then(t,t))},t=function(){var l=v.pollingInfo;l&&(clearTimeout(l.timeout),l.timeout=setTimeout(T,l.interval))};t()}}},i.prototype.updateLastResult=function(v,y){return y===void 0&&(y=this.variables),this.last=rt(rt({},this.last),{result:this.queryManager.assumeImmutableResults?v:NS(v),variables:y}),Ri(v.errors)||delete this.last.error,this.last},i.prototype.reobserveAsConcast=function(v,y){var C=this;this.isTornDown=!1;var A=y===Ut.refetch||y===Ut.fetchMore||y===Ut.poll,f=this.options.variables,T=this.options.fetchPolicy,t=ol(this.options,v||{}),l=A?t:g3(this.options,t);A||(this.updatePolling(),v&&v.variables&&!de(v.variables,f)&&l.fetchPolicy!=="standby"&&l.fetchPolicy===T&&(this.applyNextFetchPolicy("variables-changed",l),y===void 0&&(y=Ut.setVariables)));var g=l.variables&&rt({},l.variables),u=this.fetch(l,y),o=u.concast,a=u.fromLink,n={next:function(r){C.reportResult(r,g)},error:function(r){C.reportError(r,g)}};return!A&&a&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=o,this.observer=n),o.addObserver(n),o},i.prototype.reobserve=function(v,y){return this.reobserveAsConcast(v,y).promise},i.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},i.prototype.reportResult=function(v,y){var C=this.getLastError();(C||this.isDifferentFromLastResult(v,y))&&((C||!v.partial||this.options.returnPartialData)&&this.updateLastResult(v,y),ho(this.observers,"next",v))},i.prototype.reportError=function(v,y){var C=rt(rt({},this.getLastResult()),{error:v,errors:v.graphQLErrors,networkStatus:Ut.error,loading:!1});this.updateLastResult(C,y),ho(this.observers,"error",this.last.error=v)},i.prototype.hasObservers=function(){return this.observers.size>0},i.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(v){return v.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},i}(qt);BS(Qc);function hE(e){var i=e.options,v=i.fetchPolicy,y=i.nextFetchPolicy;return v==="cache-and-network"||v==="network-only"?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=y,typeof y=="function"?y.apply(this,arguments):v}}):e.reobserve()}function x3(e){__DEV__&&vt.error("Unhandled error",e.message,e.stack)}function fE(e){__DEV__&&e&&__DEV__&&vt.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}var dE=function(){function e(i){var v=i.cache,y=i.client,C=i.resolvers,A=i.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=v,y&&(this.client=y),C&&this.addResolvers(C),A&&this.setFragmentMatcher(A)}return e.prototype.addResolvers=function(i){var v=this;this.resolvers=this.resolvers||{},Array.isArray(i)?i.forEach(function(y){v.resolvers=bg(v.resolvers,y)}):this.resolvers=bg(this.resolvers,i)},e.prototype.setResolvers=function(i){this.resolvers={},this.addResolvers(i)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(i){var v=i.document,y=i.remoteResult,C=i.context,A=i.variables,f=i.onlyRunForcedResolvers,T=f===void 0?!1:f;return bn(this,void 0,void 0,function(){return Dn(this,function(t){return v?[2,this.resolveDocument(v,y.data,C,A,this.fragmentMatcher,T).then(function(l){return rt(rt({},y),{data:l.result})})]:[2,y]})})},e.prototype.setFragmentMatcher=function(i){this.fragmentMatcher=i},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(i){return Ep(["client"],i)&&this.resolvers?i:null},e.prototype.serverQuery=function(i){return EM(i)},e.prototype.prepareContext=function(i){var v=this.cache;return rt(rt({},i),{cache:v,getCacheKey:function(y){return v.identify(y)}})},e.prototype.addExportedVariables=function(i,v,y){return v===void 0&&(v={}),y===void 0&&(y={}),bn(this,void 0,void 0,function(){return Dn(this,function(C){return i?[2,this.resolveDocument(i,this.buildRootValueFromCache(i,v)||{},this.prepareContext(y),v).then(function(A){return rt(rt({},v),A.exportedVariables)})]:[2,rt({},v)]})})},e.prototype.shouldForceResolvers=function(i){var v=!1;return Sn(i,{Directive:{enter:function(y){if(y.name.value==="client"&&y.arguments&&(v=y.arguments.some(function(C){return C.name.value==="always"&&C.value.kind==="BooleanValue"&&C.value.value===!0}),v))return Sp}}}),v},e.prototype.buildRootValueFromCache=function(i,v){return this.cache.diff({query:SM(i),variables:v,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(i,v,y,C,A,f){return y===void 0&&(y={}),C===void 0&&(C={}),A===void 0&&(A=function(){return!0}),f===void 0&&(f=!1),bn(this,void 0,void 0,function(){var T,t,l,g,u,o,a,n,r,d,s;return Dn(this,function(h){return T=Dh(i),t=Ap(i),l=Cp(t),g=this.collectSelectionsToResolve(T,l),u=T.operation,o=u?u.charAt(0).toUpperCase()+u.slice(1):"Query",a=this,n=a.cache,r=a.client,d={fragmentMap:l,context:rt(rt({},y),{cache:n,client:r}),variables:C,fragmentMatcher:A,defaultOperationType:o,exportedVariables:{},selectionsToResolve:g,onlyRunForcedResolvers:f},s=!1,[2,this.resolveSelectionSet(T.selectionSet,s,v,d).then(function(c){return{result:c,exportedVariables:d.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(i,v,y,C){return bn(this,void 0,void 0,function(){var A,f,T,t,l,g=this;return Dn(this,function(u){return A=C.fragmentMap,f=C.context,T=C.variables,t=[y],l=function(o){return bn(g,void 0,void 0,function(){var a,n;return Dn(this,function(r){return!v&&!C.selectionsToResolve.has(o)?[2]:Lh(o,T)?Ur(o)?[2,this.resolveField(o,v,y,C).then(function(d){var s;typeof d<"u"&&t.push((s={},s[Gr(o)]=d,s))})]:(pM(o)?a=o:(a=A[o.name.value],__DEV__?vt(a,"No fragment named ".concat(o.name.value)):vt(a,11)),a&&a.typeCondition&&(n=a.typeCondition.name.value,C.fragmentMatcher(y,n,f))?[2,this.resolveSelectionSet(a.selectionSet,v,y,C).then(function(d){t.push(d)})]:[2]):[2]})})},[2,Promise.all(i.selections.map(l)).then(function(){return wp(t)})]})})},e.prototype.resolveField=function(i,v,y,C){return bn(this,void 0,void 0,function(){var A,f,T,t,l,g,u,o,a,n=this;return Dn(this,function(r){return y?(A=C.variables,f=i.name.value,T=Gr(i),t=f!==T,l=y[T]||y[f],g=Promise.resolve(l),(!C.onlyRunForcedResolvers||this.shouldForceResolvers(i))&&(u=y.__typename||C.defaultOperationType,o=this.resolvers&&this.resolvers[u],o&&(a=o[t?f:T],a&&(g=Promise.resolve(zp.withValue(this.cache,a,[y,Ih(i,A),C.context,{field:i,fragmentMap:C.fragmentMap}]))))),[2,g.then(function(d){var s,h;if(d===void 0&&(d=l),i.directives&&i.directives.forEach(function(p){p.name.value==="export"&&p.arguments&&p.arguments.forEach(function(m){m.name.value==="as"&&m.value.kind==="StringValue"&&(C.exportedVariables[m.value.value]=d)})}),!i.selectionSet||d==null)return d;var c=(h=(s=i.directives)===null||s===void 0?void 0:s.some(function(p){return p.name.value==="client"}))!==null&&h!==void 0?h:!1;if(Array.isArray(d))return n.resolveSubSelectedArray(i,v||c,d,C);if(i.selectionSet)return n.resolveSelectionSet(i.selectionSet,v||c,d,C)})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(i,v,y,C){var A=this;return Promise.all(y.map(function(f){if(f===null)return null;if(Array.isArray(f))return A.resolveSubSelectedArray(i,v,f,C);if(i.selectionSet)return A.resolveSelectionSet(i.selectionSet,v,f,C)}))},e.prototype.collectSelectionsToResolve=function(i,v){var y=function(f){return!Array.isArray(f)},C=this.selectionsToResolveCache;function A(f){if(!C.has(f)){var T=new Set;C.set(f,T),Sn(f,{Directive:function(t,l,g,u,o){t.name.value==="client"&&o.forEach(function(a){y(a)&&Fg(a)&&T.add(a)})},FragmentSpread:function(t,l,g,u,o){var a=v[t.name.value];__DEV__?vt(a,"No fragment named ".concat(t.name.value)):vt(a,12);var n=A(a);n.size>0&&(o.forEach(function(r){y(r)&&Fg(r)&&T.add(r)}),T.add(t),n.forEach(function(r){T.add(r)}))}})}return C.get(f)}return A(i)},e}(),Ps=new(ur?WeakMap:Map);function yd(e,i){var v=e[i];typeof v=="function"&&(e[i]=function(){return Ps.set(e,(Ps.get(e)+1)%1e15),v.apply(this,arguments)})}function my(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var xd=function(){function e(i,v){v===void 0&&(v=i.generateQueryId()),this.queryId=v,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var y=this.cache=i.cache;Ps.has(y)||(Ps.set(y,0),yd(y,"evict"),yd(y,"modify"),yd(y,"reset"))}return e.prototype.init=function(i){var v=i.networkStatus||Ut.loading;return this.variables&&this.networkStatus!==Ut.loading&&!de(this.variables,i.variables)&&(v=Ut.setVariables),de(i.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:i.document,variables:i.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:v}),i.observableQuery&&this.setObservableQuery(i.observableQuery),i.lastRequestId&&(this.lastRequestId=i.lastRequestId),this},e.prototype.reset=function(){my(this),this.dirty=!1},e.prototype.getDiff=function(i){i===void 0&&(i=this.variables);var v=this.getDiffOptions(i);if(this.lastDiff&&de(v,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=i);var y=this.observableQuery;if(y&&y.options.fetchPolicy==="no-cache")return{complete:!1};var C=this.cache.diff(v);return this.updateLastDiff(C,v),C},e.prototype.updateLastDiff=function(i,v){this.lastDiff=i?{diff:i,options:v||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(i){var v;return i===void 0&&(i=this.variables),{query:this.document,variables:i,returnPartialData:!0,optimistic:!0,canonizeResults:(v=this.observableQuery)===null||v===void 0?void 0:v.options.canonizeResults}},e.prototype.setDiff=function(i){var v=this,y=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(i),!this.dirty&&!de(y&&y.result,i&&i.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return v.notify()},0)))},e.prototype.setObservableQuery=function(i){var v=this;i!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=i,i?(i.queryInfo=this,this.listeners.add(this.oqListener=function(){var y=v.getDiff();y.fromOptimisticTransaction?i.observe():hE(i)})):delete this.oqListener)},e.prototype.notify=function(){var i=this;my(this),this.shouldNotify()&&this.listeners.forEach(function(v){return v(i)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Yo(this.networkStatus)&&this.observableQuery){var i=this.observableQuery.options.fetchPolicy;if(i!=="cache-only"&&i!=="cache-and-network")return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach(function(v){return v.unsubscribe()});var i=this.observableQuery;i&&i.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(i){var v=this;i===void 0&&(i=this.variables);var y=this.observableQuery;if(!(y&&y.options.fetchPolicy==="no-cache")){var C=rt(rt({},this.getDiffOptions(i)),{watcher:this,callback:function(A){return v.setDiff(A)}});(!this.lastWatch||!de(C,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=C))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(i,v){var y=this.lastWrite;return!(y&&y.dmCount===Ps.get(this.cache)&&de(v,y.variables)&&de(i.data,y.result.data))},e.prototype.markResult=function(i,v,y,C){var A=this,f=new er,T=Ri(i.errors)?i.errors.slice(0):[];if(this.reset(),"incremental"in i&&Ri(i.incremental)){var t=GS(this.getDiff().result,i);i.data=t}else if("hasNext"in i&&i.hasNext){var l=this.getDiff();i.data=f.merge(l.result,i.data)}this.graphQLErrors=T,y.fetchPolicy==="no-cache"?this.updateLastDiff({result:i.data,complete:!0},this.getDiffOptions(y.variables)):C!==0&&(Zc(i,y.errorPolicy)?this.cache.performTransaction(function(g){if(A.shouldWrite(i,y.variables))g.writeQuery({query:v,data:i.data,variables:y.variables,overwrite:C===1}),A.lastWrite={result:i,variables:y.variables,dmCount:Ps.get(A.cache)};else if(A.lastDiff&&A.lastDiff.diff.complete){i.data=A.lastDiff.diff.result;return}var u=A.getDiffOptions(y.variables),o=g.diff(u);A.stopped||A.updateWatch(y.variables),A.updateLastDiff(o,u),o.complete&&(i.data=o.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Ut.ready},e.prototype.markError=function(i){return this.networkStatus=Ut.error,this.lastWrite=void 0,this.reset(),i.graphQLErrors&&(this.graphQLErrors=i.graphQLErrors),i.networkError&&(this.networkError=i.networkError),i},e}();function Zc(e,i){i===void 0&&(i="none");var v=i==="ignore"||i==="all",y=!gu(e);return!y&&v&&e.data&&(y=!0),y}var T3=Object.prototype.hasOwnProperty,S3=function(){function e(i){var v=i.cache,y=i.link,C=i.defaultOptions,A=i.queryDeduplication,f=A===void 0?!1:A,T=i.onBroadcast,t=i.ssrMode,l=t===void 0?!1:t,g=i.clientAwareness,u=g===void 0?{}:g,o=i.localState,a=i.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(ur?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=v,this.link=y,this.defaultOptions=C||Object.create(null),this.queryDeduplication=f,this.clientAwareness=u,this.localState=o||new dE({cache:v}),this.ssrMode=l,this.assumeImmutableResults=!!a,(this.onBroadcast=T)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var i=this;this.queries.forEach(function(v,y){i.stopQueryNoBroadcast(y)}),this.cancelPendingFetches(__DEV__?new Wt("QueryManager stopped while query was in flight"):new Wt(14))},e.prototype.cancelPendingFetches=function(i){this.fetchCancelFns.forEach(function(v){return v(i)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(i){var v,y,C=i.mutation,A=i.variables,f=i.optimisticResponse,T=i.updateQueries,t=i.refetchQueries,l=t===void 0?[]:t,g=i.awaitRefetchQueries,u=g===void 0?!1:g,o=i.update,a=i.onQueryUpdated,n=i.fetchPolicy,r=n===void 0?((v=this.defaultOptions.mutate)===null||v===void 0?void 0:v.fetchPolicy)||"network-only":n,d=i.errorPolicy,s=d===void 0?((y=this.defaultOptions.mutate)===null||y===void 0?void 0:y.errorPolicy)||"none":d,h=i.keepRootFields,c=i.context;return bn(this,void 0,void 0,function(){var p,m,x,S,P,E;return Dn(this,function(R){switch(R.label){case 0:return __DEV__?vt(C,"mutation option is required. You must specify your GraphQL document in the mutation option."):vt(C,15),__DEV__?vt(r==="network-only"||r==="no-cache","Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):vt(r==="network-only"||r==="no-cache",16),p=this.generateMutationId(),m=this.transform(C),x=m.document,S=m.hasClientExports,C=this.cache.transformForLink(x),A=this.getVariables(C,A),S?[4,this.localState.addExportedVariables(C,A,c)]:[3,2];case 1:A=R.sent(),R.label=2;case 2:return P=this.mutationStore&&(this.mutationStore[p]={mutation:C,variables:A,loading:!0,error:null}),f&&this.markMutationOptimistic(f,{mutationId:p,document:C,variables:A,fetchPolicy:r,errorPolicy:s,context:c,updateQueries:T,update:o,keepRootFields:h}),this.broadcastQueries(),E=this,[2,new Promise(function(M,O){return fd(E.getObservableFromLink(C,rt(rt({},c),{optimisticResponse:f}),A,!1),function(w){if(gu(w)&&s==="none")throw new Bn({graphQLErrors:Bc(w)});P&&(P.loading=!1,P.error=null);var L=rt({},w);return typeof l=="function"&&(l=l(L)),s==="ignore"&&gu(L)&&delete L.errors,E.markMutationResult({mutationId:p,result:L,document:C,variables:A,fetchPolicy:r,errorPolicy:s,context:c,update:o,updateQueries:T,awaitRefetchQueries:u,refetchQueries:l,removeOptimistic:f?p:void 0,onQueryUpdated:a,keepRootFields:h})}).subscribe({next:function(w){E.broadcastQueries(),(!("hasNext"in w)||w.hasNext===!1)&&M(w)},error:function(w){P&&(P.loading=!1,P.error=w),f&&E.cache.removeOptimistic(p),E.broadcastQueries(),O(w instanceof Bn?w:new Bn({networkError:w}))}})})]}})})},e.prototype.markMutationResult=function(i,v){var y=this;v===void 0&&(v=this.cache);var C=i.result,A=[],f=i.fetchPolicy==="no-cache";if(!f&&Zc(C,i.errorPolicy)){if(Ns(C)||A.push({result:C.data,dataId:"ROOT_MUTATION",query:i.document,variables:i.variables}),Ns(C)&&Ri(C.incremental)){var T=v.diff({id:"ROOT_MUTATION",query:this.transform(i.document).asQuery,variables:i.variables,optimistic:!1,returnPartialData:!0}),t=void 0;T.result&&(t=GS(T.result,C)),typeof t<"u"&&(C.data=t,A.push({result:t,dataId:"ROOT_MUTATION",query:i.document,variables:i.variables}))}var l=i.updateQueries;l&&this.queries.forEach(function(u,o){var a=u.observableQuery,n=a&&a.queryName;if(!(!n||!T3.call(l,n))){var r=l[n],d=y.queries.get(o),s=d.document,h=d.variables,c=v.diff({query:s,variables:h,returnPartialData:!0,optimistic:!1}),p=c.result,m=c.complete;if(m&&p){var x=r(p,{mutationResult:C,queryName:s&&Ic(s)||void 0,queryVariables:h});x&&A.push({result:x,dataId:"ROOT_QUERY",query:s,variables:h})}}})}if(A.length>0||i.refetchQueries||i.update||i.onQueryUpdated||i.removeOptimistic){var g=[];if(this.refetchQueries({updateCache:function(u){f||A.forEach(function(r){return u.write(r)});var o=i.update,a=!WM(C)||Ns(C)&&!C.hasNext;if(o){if(!f){var n=u.diff({id:"ROOT_MUTATION",query:y.transform(i.document).asQuery,variables:i.variables,optimistic:!1,returnPartialData:!0});n.complete&&(C=rt(rt({},C),{data:n.result}),"incremental"in C&&delete C.incremental,"hasNext"in C&&delete C.hasNext)}a&&o(u,C,{context:i.context,variables:i.variables})}!f&&!i.keepRootFields&&a&&u.modify({id:"ROOT_MUTATION",fields:function(r,d){var s=d.fieldName,h=d.DELETE;return s==="__typename"?r:h}})},include:i.refetchQueries,optimistic:!1,removeOptimistic:i.removeOptimistic,onQueryUpdated:i.onQueryUpdated||null}).forEach(function(u){return g.push(u)}),i.awaitRefetchQueries||i.onQueryUpdated)return Promise.all(g).then(function(){return C})}return Promise.resolve(C)},e.prototype.markMutationOptimistic=function(i,v){var y=this,C=typeof i=="function"?i(v.variables):i;return this.cache.recordOptimisticTransaction(function(A){try{y.markMutationResult(rt(rt({},v),{result:{data:C}}),A)}catch(f){__DEV__&&vt.error(f)}},v.mutationId)},e.prototype.fetchQuery=function(i,v,y){return this.fetchQueryObservable(i,v,y).promise},e.prototype.getQueryStore=function(){var i=Object.create(null);return this.queries.forEach(function(v,y){i[y]={variables:v.variables,networkStatus:v.networkStatus,networkError:v.networkError,graphQLErrors:v.graphQLErrors}}),i},e.prototype.resetErrors=function(i){var v=this.queries.get(i);v&&(v.networkError=void 0,v.graphQLErrors=[])},e.prototype.transform=function(i){var v=this.transformCache;if(!v.has(i)){var y=this.cache.transformDocument(i),C=TM(y),A=this.localState.clientQuery(y),f=C&&this.localState.serverQuery(C),T={document:y,hasClientExports:qA(y),hasForcedResolvers:this.localState.shouldForceResolvers(y),clientQuery:A,serverQuery:f,defaultVars:Mp(al(y)),asQuery:rt(rt({},y),{definitions:y.definitions.map(function(l){return l.kind==="OperationDefinition"&&l.operation!=="query"?rt(rt({},l),{operation:"query"}):l})})},t=function(l){l&&!v.has(l)&&v.set(l,T)};t(i),t(y),t(A),t(f)}return v.get(i)},e.prototype.getVariables=function(i,v){return rt(rt({},this.transform(i).defaultVars),v)},e.prototype.watchQuery=function(i){i=rt(rt({},i),{variables:this.getVariables(i.query,i.variables)}),typeof i.notifyOnNetworkStatusChange>"u"&&(i.notifyOnNetworkStatusChange=!1);var v=new xd(this),y=new Qc({queryManager:this,queryInfo:v,options:i});return this.queries.set(y.queryId,v),v.init({document:y.query,observableQuery:y,variables:y.variables}),y},e.prototype.query=function(i,v){var y=this;return v===void 0&&(v=this.generateQueryId()),__DEV__?vt(i.query,"query option is required. You must specify your GraphQL document in the query option."):vt(i.query,17),__DEV__?vt(i.query.kind==="Document",'You must wrap the query string in a "gql" tag.'):vt(i.query.kind==="Document",18),__DEV__?vt(!i.returnPartialData,"returnPartialData option only supported on watchQuery."):vt(!i.returnPartialData,19),__DEV__?vt(!i.pollInterval,"pollInterval option only supported on watchQuery."):vt(!i.pollInterval,20),this.fetchQuery(v,i).finally(function(){return y.stopQuery(v)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(i){this.stopQueryInStoreNoBroadcast(i),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(i){var v=this.queries.get(i);v&&v.stop()},e.prototype.clearStore=function(i){return i===void 0&&(i={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new Wt("Store reset while query was in flight (not completed in link chain)"):new Wt(21)),this.queries.forEach(function(v){v.observableQuery?v.networkStatus=Ut.loading:v.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(i)},e.prototype.getObservableQueries=function(i){var v=this;i===void 0&&(i="active");var y=new Map,C=new Map,A=new Set;return Array.isArray(i)&&i.forEach(function(f){typeof f=="string"?C.set(f,!1):iM(f)?C.set(v.transform(f).document,!1):ie(f)&&f.query&&A.add(f)}),this.queries.forEach(function(f,T){var t=f.observableQuery,l=f.document;if(t){if(i==="all"){y.set(T,t);return}var g=t.queryName,u=t.options.fetchPolicy;if(u==="standby"||i==="active"&&!t.hasObservers())return;(i==="active"||g&&C.has(g)||l&&C.has(l))&&(y.set(T,t),g&&C.set(g,!0),l&&C.set(l,!0))}}),A.size&&A.forEach(function(f){var T=Gc("legacyOneTimeQuery"),t=v.getQuery(T).init({document:f.query,variables:f.variables}),l=new Qc({queryManager:v,queryInfo:t,options:rt(rt({},f),{fetchPolicy:"network-only"})});vt(l.queryId===T),t.setObservableQuery(l),y.set(T,l)}),__DEV__&&C.size&&C.forEach(function(f,T){f||__DEV__&&vt.warn("Unknown query ".concat(typeof T=="string"?"named ":"").concat(JSON.stringify(T,null,2)," requested in refetchQueries options.include array"))}),y},e.prototype.reFetchObservableQueries=function(i){var v=this;i===void 0&&(i=!1);var y=[];return this.getObservableQueries(i?"all":"active").forEach(function(C,A){var f=C.options.fetchPolicy;C.resetLastResults(),(i||f!=="standby"&&f!=="cache-only")&&y.push(C.refetch()),v.getQuery(A).setDiff(null)}),this.broadcastQueries(),Promise.all(y)},e.prototype.setObservableQuery=function(i){this.getQuery(i.queryId).setObservableQuery(i)},e.prototype.startGraphQLSubscription=function(i){var v=this,y=i.query,C=i.fetchPolicy,A=i.errorPolicy,f=i.variables,T=i.context,t=T===void 0?{}:T;y=this.transform(y).document,f=this.getVariables(y,f);var l=function(u){return v.getObservableFromLink(y,t,u).map(function(o){C!=="no-cache"&&(Zc(o,A)&&v.cache.write({query:y,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:u}),v.broadcastQueries());var a=gu(o),n=s5(o);if(a||n){var r={};throw a&&(r.graphQLErrors=o.errors),n&&(r.protocolErrors=o.extensions[Np]),new Bn(r)}return o})};if(this.transform(y).hasClientExports){var g=this.localState.addExportedVariables(y,f,t).then(l);return new qt(function(u){var o=null;return g.then(function(a){return o=a.subscribe(u)},u.error),function(){return o&&o.unsubscribe()}})}return l(f)},e.prototype.stopQuery=function(i){this.stopQueryNoBroadcast(i),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(i){this.stopQueryInStoreNoBroadcast(i),this.removeQuery(i)},e.prototype.removeQuery=function(i){this.fetchCancelFns.delete(i),this.queries.has(i)&&(this.getQuery(i).stop(),this.queries.delete(i))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(i){return i.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(i,v,y,C){var A=this,f;C===void 0&&(C=(f=v==null?void 0:v.queryDeduplication)!==null&&f!==void 0?f:this.queryDeduplication);var T,t=this.transform(i).serverQuery;if(t){var l=this,g=l.inFlightLinkObservables,u=l.link,o={query:t,variables:y,operationName:Ic(t)||void 0,context:this.prepareContext(rt(rt({},v),{forceFetch:!C}))};if(v=o.context,C){var a=g.get(t)||new Map;g.set(t,a);var n=wr(y);if(T=a.get(n),!T){var r=new os([zc(u,o)]);a.set(n,T=r),r.beforeNext(function(){a.delete(n)&&a.size<1&&g.delete(t)})}}else T=new os([zc(u,o)])}else T=new os([qt.of({data:{}})]),v=this.prepareContext(v);var d=this.transform(i).clientQuery;return d&&(T=fd(T,function(s){return A.localState.runResolvers({document:d,remoteResult:s,context:v,variables:y})})),T},e.prototype.getResultsFromLink=function(i,v,y){var C=i.lastRequestId=this.generateRequestId(),A=this.cache.transformForLink(this.transform(i.document).document);return fd(this.getObservableFromLink(A,y.context,y.variables),function(f){var T=Bc(f),t=T.length>0;if(C>=i.lastRequestId){if(t&&y.errorPolicy==="none")throw i.markError(new Bn({graphQLErrors:T}));i.markResult(f,A,y,v),i.markReady()}var l={data:f.data,loading:!1,networkStatus:Ut.ready};return t&&y.errorPolicy!=="ignore"&&(l.errors=T,l.networkStatus=Ut.error),l},function(f){var T=a5(f)?f:new Bn({networkError:f});throw C>=i.lastRequestId&&i.markError(T),T})},e.prototype.fetchQueryObservable=function(i,v,y){return this.fetchConcastWithInfo(i,v,y).concast},e.prototype.fetchConcastWithInfo=function(i,v,y){var C=this;y===void 0&&(y=Ut.loading);var A=this.transform(v.query).document,f=this.getVariables(A,v.variables),T=this.getQuery(i),t=this.defaultOptions.watchQuery,l=v.fetchPolicy,g=l===void 0?t&&t.fetchPolicy||"cache-first":l,u=v.errorPolicy,o=u===void 0?t&&t.errorPolicy||"none":u,a=v.returnPartialData,n=a===void 0?!1:a,r=v.notifyOnNetworkStatusChange,d=r===void 0?!1:r,s=v.context,h=s===void 0?{}:s,c=Object.assign({},v,{query:A,variables:f,fetchPolicy:g,errorPolicy:o,returnPartialData:n,notifyOnNetworkStatusChange:d,context:h}),p=function(E){c.variables=E;var R=C.fetchQueryByPolicy(T,c,y);return c.fetchPolicy!=="standby"&&R.sources.length>0&&T.observableQuery&&T.observableQuery.applyNextFetchPolicy("after-fetch",v),R},m=function(){return C.fetchCancelFns.delete(i)};this.fetchCancelFns.set(i,function(E){m(),setTimeout(function(){return x.cancel(E)})});var x,S;if(this.transform(c.query).hasClientExports)x=new os(this.localState.addExportedVariables(c.query,c.variables,c.context).then(p).then(function(E){return E.sources})),S=!0;else{var P=p(c.variables);S=P.fromLink,x=new os(P.sources)}return x.promise.then(m,m),{concast:x,fromLink:S}},e.prototype.refetchQueries=function(i){var v=this,y=i.updateCache,C=i.include,A=i.optimistic,f=A===void 0?!1:A,T=i.removeOptimistic,t=T===void 0?f?Gc("refetchQueries"):void 0:T,l=i.onQueryUpdated,g=new Map;C&&this.getObservableQueries(C).forEach(function(o,a){g.set(a,{oq:o,lastDiff:v.getQuery(a).getDiff()})});var u=new Map;return y&&this.cache.batch({update:y,optimistic:f&&t||!1,removeOptimistic:t,onWatchUpdated:function(o,a,n){var r=o.watcher instanceof xd&&o.watcher.observableQuery;if(r){if(l){g.delete(r.queryId);var d=l(r,a,n);return d===!0&&(d=r.refetch()),d!==!1&&u.set(r,d),d}l!==null&&g.set(r.queryId,{oq:r,lastDiff:n,diff:a})}}}),g.size&&g.forEach(function(o,a){var n=o.oq,r=o.lastDiff,d=o.diff,s;if(l){if(!d){var h=n.queryInfo;h.reset(),d=h.getDiff()}s=l(n,d,r)}(!l||s===!0)&&(s=n.refetch()),s!==!1&&u.set(n,s),a.indexOf("legacyOneTimeQuery")>=0&&v.stopQueryNoBroadcast(a)}),t&&this.cache.removeOptimistic(t),u},e.prototype.fetchQueryByPolicy=function(i,v,y){var C=this,A=v.query,f=v.variables,T=v.fetchPolicy,t=v.refetchWritePolicy,l=v.errorPolicy,g=v.returnPartialData,u=v.context,o=v.notifyOnNetworkStatusChange,a=i.networkStatus;i.init({document:this.transform(A).document,variables:f,networkStatus:y});var n=function(){return i.getDiff(f)},r=function(p,m){m===void 0&&(m=i.networkStatus||Ut.loading);var x=p.result;__DEV__&&!g&&!de(x,{})&&fE(p.missing);var S=function(P){return qt.of(rt({data:P,loading:Yo(m),networkStatus:m},p.complete?null:{partial:!0}))};return x&&C.transform(A).hasForcedResolvers?C.localState.runResolvers({document:A,remoteResult:{data:x},context:u,variables:f,onlyRunForcedResolvers:!0}).then(function(P){return S(P.data||void 0)}):l==="none"&&m===Ut.refetch&&Array.isArray(p.missing)?S(void 0):S(x)},d=T==="no-cache"?0:y===Ut.refetch&&t!=="merge"?1:2,s=function(){return C.getResultsFromLink(i,d,{variables:f,context:u,fetchPolicy:T,errorPolicy:l})},h=o&&typeof a=="number"&&a!==y&&Yo(y);switch(T){default:case"cache-first":{var c=n();return c.complete?{fromLink:!1,sources:[r(c,i.markReady())]}:g||h?{fromLink:!0,sources:[r(c),s()]}:{fromLink:!0,sources:[s()]}}case"cache-and-network":{var c=n();return c.complete||g||h?{fromLink:!0,sources:[r(c),s()]}:{fromLink:!0,sources:[s()]}}case"cache-only":return{fromLink:!1,sources:[r(n(),i.markReady())]};case"network-only":return h?{fromLink:!0,sources:[r(n()),s()]}:{fromLink:!0,sources:[s()]};case"no-cache":return h?{fromLink:!0,sources:[r(i.getDiff()),s()]}:{fromLink:!0,sources:[s()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(i){return i&&!this.queries.has(i)&&this.queries.set(i,new xd(this,i)),this.queries.get(i)},e.prototype.prepareContext=function(i){i===void 0&&(i={});var v=this.localState.prepareContext(i);return rt(rt({},v),{clientAwareness:this.clientAwareness})},e}(),gy=!1,E3=function(){function e(i){var v=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var y=i.uri,C=i.credentials,A=i.headers,f=i.cache,T=i.ssrMode,t=T===void 0?!1:T,l=i.ssrForceFetchDelay,g=l===void 0?0:l,u=i.connectToDevTools,o=u===void 0?typeof window=="object"&&!window.__APOLLO_CLIENT__&&__DEV__:u,a=i.queryDeduplication,n=a===void 0?!0:a,r=i.defaultOptions,d=i.assumeImmutableResults,s=d===void 0?!1:d,h=i.resolvers,c=i.typeDefs,p=i.fragmentMatcher,m=i.name,x=i.version,S=i.link;if(S||(S=y?new P5({uri:y,credentials:C,headers:A}):ll.empty()),!f)throw __DEV__?new Wt(`To initialize Apollo Client, you must specify a 'cache' property in the options object. +For more information, please visit: https://go.apollo.dev/c/docs`):new Wt(9);if(this.link=S,this.cache=f,this.disableNetworkFetches=t||g>0,this.queryDeduplication=n,this.defaultOptions=r||Object.create(null),this.typeDefs=c,g&&setTimeout(function(){return v.disableNetworkFetches=!1},g),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),o&&typeof window=="object"&&(window.__APOLLO_CLIENT__=this),!gy&&o&&__DEV__&&(gy=!0,typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var P=window.navigator,E=P&&P.userAgent,R=void 0;typeof E=="string"&&(E.indexOf("Chrome/")>-1?R="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":E.indexOf("Firefox/")>-1&&(R="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),R&&__DEV__&&vt.log("Download the Apollo DevTools for a better development experience: "+R)}this.version=KM,this.localState=new dE({cache:f,client:this,resolvers:h,fragmentMatcher:p}),this.queryManager=new S3({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:n,ssrMode:t,clientAwareness:{name:m,version:x},localState:this.localState,assumeImmutableResults:s,onBroadcast:o?function(){v.devToolsHookCb&&v.devToolsHookCb({action:{},state:{queries:v.queryManager.getQueryStore(),mutations:v.queryManager.mutationStore||{}},dataWithOptimisticResults:v.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(i){return this.defaultOptions.watchQuery&&(i=yu(this.defaultOptions.watchQuery,i)),this.disableNetworkFetches&&(i.fetchPolicy==="network-only"||i.fetchPolicy==="cache-and-network")&&(i=rt(rt({},i),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(i)},e.prototype.query=function(i){return this.defaultOptions.query&&(i=yu(this.defaultOptions.query,i)),__DEV__?vt(i.fetchPolicy!=="cache-and-network","The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):vt(i.fetchPolicy!=="cache-and-network",10),this.disableNetworkFetches&&i.fetchPolicy==="network-only"&&(i=rt(rt({},i),{fetchPolicy:"cache-first"})),this.queryManager.query(i)},e.prototype.mutate=function(i){return this.defaultOptions.mutate&&(i=yu(this.defaultOptions.mutate,i)),this.queryManager.mutate(i)},e.prototype.subscribe=function(i){return this.queryManager.startGraphQLSubscription(i)},e.prototype.readQuery=function(i,v){return v===void 0&&(v=!1),this.cache.readQuery(i,v)},e.prototype.readFragment=function(i,v){return v===void 0&&(v=!1),this.cache.readFragment(i,v)},e.prototype.writeQuery=function(i){var v=this.cache.writeQuery(i);return i.broadcast!==!1&&this.queryManager.broadcastQueries(),v},e.prototype.writeFragment=function(i){var v=this.cache.writeFragment(i);return i.broadcast!==!1&&this.queryManager.broadcastQueries(),v},e.prototype.__actionHookForDevTools=function(i){this.devToolsHookCb=i},e.prototype.__requestRaw=function(i){return zc(this.link,i)},e.prototype.resetStore=function(){var i=this;return Promise.resolve().then(function(){return i.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(i.resetStoreCallbacks.map(function(v){return v()}))}).then(function(){return i.reFetchObservableQueries()})},e.prototype.clearStore=function(){var i=this;return Promise.resolve().then(function(){return i.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(i.clearStoreCallbacks.map(function(v){return v()}))})},e.prototype.onResetStore=function(i){var v=this;return this.resetStoreCallbacks.push(i),function(){v.resetStoreCallbacks=v.resetStoreCallbacks.filter(function(y){return y!==i})}},e.prototype.onClearStore=function(i){var v=this;return this.clearStoreCallbacks.push(i),function(){v.clearStoreCallbacks=v.clearStoreCallbacks.filter(function(y){return y!==i})}},e.prototype.reFetchObservableQueries=function(i){return this.queryManager.reFetchObservableQueries(i)},e.prototype.refetchQueries=function(i){var v=this.queryManager.refetchQueries(i),y=[],C=[];v.forEach(function(f,T){y.push(T),C.push(f)});var A=Promise.all(C);return A.queries=y,A.results=C,A.catch(function(f){__DEV__&&vt.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(f))}),A},e.prototype.getObservableQueries=function(i){return i===void 0&&(i="active"),this.queryManager.getObservableQueries(i)},e.prototype.extract=function(i){return this.cache.extract(i)},e.prototype.restore=function(i){return this.cache.restore(i)},e.prototype.addResolvers=function(i){this.localState.addResolvers(i)},e.prototype.setResolvers=function(i){this.localState.setResolvers(i)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(i){this.localState.setFragmentMatcher(i)},e.prototype.setLink=function(i){this.link=this.queryManager.link=i},e}(),Tu=new Map,Jc=new Map,cE=!0,ih=!1;function vE(e){return e.replace(/[\s,]+/g," ").trim()}function C3(e){return vE(e.source.body.substring(e.start,e.end))}function P3(e){var i=new Set,v=[];return e.definitions.forEach(function(y){if(y.kind==="FragmentDefinition"){var C=y.name.value,A=C3(y.loc),f=Jc.get(C);f&&!f.has(A)?cE&&console.warn("Warning: fragment with name "+C+` already exists. +graphql-tag enforces all fragment names across your application to be unique; read more about +this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):f||Jc.set(C,f=new Set),f.add(A),i.has(A)||(i.add(A),v.push(y))}else v.push(y)}),rt(rt({},e),{definitions:v})}function R3(e){var i=new Set(e.definitions);i.forEach(function(y){y.loc&&delete y.loc,Object.keys(y).forEach(function(C){var A=y[C];A&&typeof A=="object"&&i.add(A)})});var v=e.loc;return v&&(delete v.startToken,delete v.endToken),e}function A3(e){var i=vE(e);if(!Tu.has(i)){var v=XA(e,{experimentalFragmentVariables:ih,allowLegacyFragmentVariables:ih});if(!v||v.kind!=="Document")throw new Error("Not a valid GraphQL document.");Tu.set(i,R3(P3(v)))}return Tu.get(i)}function _e(e){for(var i=[],v=1;v, or pass an ApolloClient instance in via options.'):vt(!!v,32),v}var xy=!1,b3="useSyncExternalStore",D3=Ws[b3],N3=D3||function(e,i,v){var y=i();__DEV__&&!xy&&y!==i()&&(xy=!0,__DEV__&&vt.error("The result of getSnapshot should be cached to avoid an infinite loop"));var C=Q.useState({inst:{value:y,getSnapshot:i}}),A=C[0].inst,f=C[1];return zM?Q.useLayoutEffect(function(){Object.assign(A,{value:y,getSnapshot:i}),Td(A)&&f({inst:A})},[e,y,i]):Object.assign(A,{value:y,getSnapshot:i}),Q.useEffect(function(){return Td(A)&&f({inst:A}),e(function(){Td(A)&&f({inst:A})})},[e]),y};function Td(e){var i=e.value,v=e.getSnapshot;try{return i!==v()}catch{return!0}}var pn;(function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"})(pn||(pn={}));var Ty=new Map;function Sy(e){var i;switch(e){case pn.Query:i="Query";break;case pn.Mutation:i="Mutation";break;case pn.Subscription:i="Subscription";break}return i}function B3(e){var i=Ty.get(e);if(i)return i;var v,y,C;__DEV__?vt(!!e&&!!e.kind,"Argument of ".concat(e," passed to parser was not a valid GraphQL ")+"DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document"):vt(!!e&&!!e.kind,33);for(var A=[],f=[],T=[],t=[],l=0,g=e.definitions;l(e.Exists="EXISTS",e.Full="FULL",e.Incomplete="INCOMPLETE",e.Unknown="UNKNOWN",e))(Su||{});const pE=_e` + fragment myBounty on MonsterBounty { + incomplete + exists + full +} + `,W3=_e` + fragment creditableHistory on MonsterHistory { + credit { + name + id + discordHandle + contact + } + modifications + obsolete +} + `,X3=_e` + fragment form on MonsterForm { + fullName @include(if: $withSplitForms) + portraits { + modifiedDate @include(if: $withSplitForms) + required @include(if: $withForms) + previewEmotion @include(if: $withSplitForms) { + url + } + bounty @include(if: $withPortraitBounty) { + ...myBounty + } + creditPrimary @include(if: $withCredits) { + name + } + creditSecondary @include(if: $withCredits) { + name + } + phase @include(if: $withPortraitPhases) + history { + ...creditableHistory @include(if: $withCreditableHistory) + } + } + sprites { + modifiedDate @include(if: $withSplitForms) + required @include(if: $withForms) + bounty @include(if: $withSpriteBounty) { + ...myBounty + } + creditPrimary @include(if: $withCredits) { + name + } + creditSecondary @include(if: $withCredits) { + name + } + phase @include(if: $withSpritePhases) + history { + ...creditableHistory @include(if: $withCreditableHistory) + } + actions @include(if: $withSpriteActions) { + ... on Sprite { + action + } + ... on CopyOf { + action + } + } + } +} + ${pE} +${W3}`,mE=_e` + fragment myCredit on Credit { + name + contact + id + discordHandle +} + `,Y3=_e` + fragment myHistory on MonsterHistory { + credit { + ...myCredit + } + modifiedDate + modifications + obsolete +} + ${mE}`,H3=_e` + query Carrousel($ids: [Int!]!, $withPortraitBounty: Boolean!, $withSpriteBounty: Boolean!, $withModifiedDate: Boolean!, $withPortraitPhases: Boolean!, $withSpritePhases: Boolean!, $withCredits: Boolean!, $withForms: Boolean!, $withSplitForms: Boolean!, $withCreditableHistory: Boolean!, $withSpriteActions: Boolean!) { + monster(filter: $ids) { + id + name + rawId + forms @include(if: $withForms) { + ...form + } + manual(path: "/") @skip(if: $withSplitForms) { + ...form + portraits { + modifiedDate @include(if: $withModifiedDate) + creditPrimary { + name + } + previewEmotion { + url + } + } + sprites { + modifiedDate @include(if: $withModifiedDate) + creditPrimary { + name + } + } + } + } +} + ${X3}`;function $3(e){const i={...$p,...e};return Hp(H3,i)}const j3=_e` + query Contributors { + credit { + id + name + contact + discordHandle + } +} + `;function k3(e){const i={...$p,...e};return Hp(j3,i)}const K3=_e` + query Keys { + meta { + apiVersion + serverVersion + assetsCommit + assetsUpdateDate + updateCheckedDate + } + monster { + id + rawId + } +} + `,Q3=_e` + query Pokemon($id: Int!) { + monster(filter: [$id]) { + id + name + forms { + path + name + fullName + portraits { + required + history { + ...myHistory + } + sheetUrl + recolorSheetUrl + modifiedDate + bounty { + ...myBounty + } + emotions { + emotion + url + locked + } + emotionsFlipped { + emotion + url + locked + } + creditPrimary { + ...myCredit + } + creditSecondary { + ...myCredit + } + } + sprites { + required + history { + ...myHistory + } + zipUrl + animDataXml + modifiedDate + recolorSheetUrl + creditPrimary { + ...myCredit + } + creditSecondary { + ...myCredit + } + actions { + ... on Sprite { + action + animUrl + offsetsUrl + shadowsUrl + locked + } + ... on CopyOf { + action + copyOf + } + } + bounty { + ...myBounty + } + } + } + } +} + ${Y3} +${pE} +${mE}`;function Z3(e){const i={...$p,...e};return Hp(Q3,i)}var ln=(e=>(e.ANIM="Anim",e.SHADOW="Shadow",e))(ln||{}),ce=(e=>(e.POKEDEX_NUMBER="Pokedex Number",e.LAST_MODIFICATION="Last Modification",e.NAME="Name",e.PORTRAIT_AUTHOR="Portrait Author",e.SPRITE_AUTHOR="Sprite Author",e.PORTRAIT_BOUNTY="Portrait Bounty",e.SPRITE_BOUNTY="Sprite Bounty",e))(ce||{}),qc=(e=>(e.FOURTH_STATION_PATH="FOURTH_STATION_PATH",e.SEVEN_STATION_PATH="SEVEN_STATION_PATH",e.BARREN_VALLEY="BARREN_VALLEY",e.DARK_ICE_MOUNTAIN_PEAK="DARK_ICE_MOUNTAIN_PEAK",e.DARK_WASTELAND="DARK_WASTELAND",e.DEEP_BOULDER_QUARRY="DEEP_BOULDER_QUARRY",e.LIMESTONE_CAVERN="LIMESTONE_CAVERN",e.DEEP_LIMESTONE_CAVERN="DEEP_LIMESTONE_CAVERN",e.ICICLE_FOREST="ICICLE_FOREST",e.MURKY_FOREST="MURKY_FOREST",e.SPACIAL_CLIFFS="SPACIAL_CLIFFS",e.TEMPORAL_SPIRE_FUTURE="TEMPORAL_SPIRE_FUTURE",e.TEMPORAL_TOWER_FUTURE="TEMPORAL_TOWER_FUTURE",e.VAST_ICE_MOUNTAIN_PEAK="VAST_ICE_MOUNTAIN_PEAK",e.VAST_ICE_MOUNTAIN="VAST_ICE_MOUNTAIN",e.AMP_PLAINS="AMP_PLAINS",e.FAR_AMP_PLAINS="FAR_AMP_PLAINS",e.FINAL_MAZE_B23F="FINAL_MAZE_B23F",e.FOGGY_FOREST="FOGGY_FOREST",e.FOREST_PATH="FOREST_PATH",e.GOLD_CHAMBER="GOLD_CHAMBER",e.HIDDEN_HIGHLAND="HIDDEN_HIGHLAND",e.MYSTERY_JUNGLE_01F_15F="MYSTERY_JUNGLE_01F_15F",e.MYSTERY_JUNGLE_16F_30F="MYSTERY_JUNGLE_16F_30F",e.MYSTIFYING_FOREST="MYSTIFYING_FOREST",e.BEACH_CAVE="BEACH_CAVE",e.BOTTOMLESS_SEA="BOTTOMLESS_SEA",e.BRINE_CAVE="BRINE_CAVE",e.CONCEALED_RUINS="CONCEALED_RUINS",e.CRAGGY_COAST="CRAGGY_COAST",e.CRYSTAL_CAVE_01F_05F="CRYSTAL_CAVE_01F_05F",e.CRYSTAL_CAVE_06F_11F="CRYSTAL_CAVE_06F_11F",e.CRYSTAL_CROSSING="CRYSTAL_CROSSING",e.DARK_CRATER="DARK_CRATER",e.DEEP_DARK_CRATER="DEEP_DARK_CRATER",e.DARK_HILL_01F_06F="DARK_HILL_01F_06F",e.DARK_HILL_07F_15F="DARK_HILL_07F_15F",e.DEEP_DUSK_FOREST_01F_06F="DEEP_DUSK_FOREST_01F_06F",e.DEEP_DUSK_FOREST_07F_12F="DEEP_DUSK_FOREST_07F_12F",e.DEEP_SEALED_RUIN="DEEP_SEALED_RUIN",e.DRENCHED_BLUFF="DRENCHED_BLUFF",e.DUSK_FOREST_01F_04F="DUSK_FOREST_01F_04F",e.DUSK_FOREST_05F_08F="DUSK_FOREST_05F_08F",e.NORTHERN_DESERT_01F_07F="NORTHERN_DESERT_01F_07F",e.QUICKSAND_CAVE="QUICKSAND_CAVE",e.QUICKSAND_PIT="QUICKSAND_PIT",e.ROCK_AEGIS_CAVE="ROCK_AEGIS_CAVE",e.SURROUNDED_SEA="SURROUNDED_SEA",e.TEMPORAL_SPIRE="TEMPORAL_SPIRE",e.TEMPORAL_TOWER="TEMPORAL_TOWER",e.TEST_DUNGEON="TEST_DUNGEON",e.THE_NIGHTMARE="THE_NIGHTMARE",e.TINY_MEADOW="TINY_MEADOW",e.TREESHROUD_FOREST_01F_08F="TREESHROUD_FOREST_01F_08F",e.TREESHROUD_FOREST_09F_21F="TREESHROUD_FOREST_09F_21F",e.STEAM_CAVE="STEAM_CAVE",e.QUICKSAND_PIT_2="QUICKSAND_PIT_2",e.LOWER_BRINE_CAVE="LOWER_BRINE_CAVE",e.TEMPORAL_TOWER_2="TEMPORAL_TOWER_2",e.CRYSTAL_CAVE_2="CRYSTAL_CAVE_2",e.WATERFALL_CAVE="WATERFALL_CAVE",e.WORLD_ABYSS="WORLD_ABYSS",e.ZERO_ISLE_EAST_15F_25F="ZERO_ISLE_EAST_15F_25F",e.ZERO_ISLE_EAST_26F_40F="ZERO_ISLE_EAST_26F_40F",e.ZERO_ISLE_SOUTH_04F_08F="ZERO_ISLE_SOUTH_04F_08F",e.ZERO_ISLE_SOUTH_01F_03F="ZERO_ISLE_SOUTH_01F_03F",e.BURIED_RELIC_1F_20F="BURIED_RELIC_1F_20F",e.BURIED_RELIC_21F_50F="BURIED_RELIC_21F_50F",e.BURIED_RELIC_51F_99F="BURIED_RELIC_51F_99F",e.DARKNIGHT_RELIC="DARKNIGHT_RELIC",e.SHIMMER_DESERT="SHIMMER_DESERT",e.UNOWN_RELIC="UNOWN_RELIC",e.FROSTY_FOREST="FROSTY_FOREST",e.GREAT_CANYON="GREAT_CANYON",e.HOWLING_FOREST_01F_06F="HOWLING_FOREST_01F_06F",e.HOWLING_FOREST_07F_15F="HOWLING_FOREST_07F_15F",e.MT_FARAWAY="MT_FARAWAY",e.MT_FARAWAY_10F_20F="MT_FARAWAY_10F_20F",e.MT_FARAWAY_30F_39F="MT_FARAWAY_30F_39F",e.JOYOUS_TOWER="JOYOUS_TOWER",e.LAPIS_CAVE="LAPIS_CAVE",e.LIGHTNING_FIELD="LIGHTNING_FIELD",e.MAGMA_CAVERN_08F_17F="MAGMA_CAVERN_08F_17F",e.MAGMA_CAVERN_18F_23F="MAGMA_CAVERN_18F_23F",e.METEOR_CAVE="METEOR_CAVE",e.MT_BLAZE="MT_BLAZE",e.MT_STEEL_01F_05F="MT_STEEL_01F_05F",e.MT_STEEL_06F_08F="MT_STEEL_06F_08F",e.MT_FREEZE="MT_FREEZE",e.MT_THUNDER_PEAK="MT_THUNDER_PEAK",e.MT_THUNDER="MT_THUNDER",e.MURKY_CAVE="MURKY_CAVE",e.NORMAL_MAZE="NORMAL_MAZE",e.NORTHERN_RANGE_01F_07F="NORTHERN_RANGE_01F_07F",e.NORTHERN_RANGE_08F_16F="NORTHERN_RANGE_08F_16F",e.NORTHWIND_FIELD="NORTHWIND_FIELD",e.PITFALL_VALLEY="PITFALL_VALLEY",e.POISON_MAZE="POISON_MAZE",e.PURITY_FOREST_04F_07F="PURITY_FOREST_04F_07F",e.PURITY_FOREST_13F_20F="PURITY_FOREST_13F_20F",e.PURITY_FOREST_30F_43F="PURITY_FOREST_30F_43F",e.PURITY_FOREST_44F_60F="PURITY_FOREST_44F_60F",e.PURITY_FOREST_61F_79F="PURITY_FOREST_61F_79F",e.PURITY_FOREST_80F_99F="PURITY_FOREST_80F_99F",e.RESCUE_TEAM_MAZE="RESCUE_TEAM_MAZE",e.ROCK_PATH="ROCK_PATH",e.SILENT_CHASM="SILENT_CHASM",e.SILVER_TRENCH="SILVER_TRENCH",e.SINISTER_WOODS="SINISTER_WOODS",e.SKY_TOWER="SKY_TOWER",e.SNOW_PATH="SNOW_PATH",e.SOLAR_CAVE="SOLAR_CAVE",e.SOUTHERN_CAVERN_01F_23F="SOUTHERN_CAVERN_01F_23F",e.SOUTHERN_CAVERN_24F_50F="SOUTHERN_CAVERN_24F_50F",e.STORMY_SEA_01F_16F="STORMY_SEA_01F_16F",e.STORMY_SEA_16F_39F="STORMY_SEA_16F_39F",e.THUNDERWAVE_CAVE="THUNDERWAVE_CAVE",e.TINY_WOODS="TINY_WOODS",e.UPROAR_FOREST="UPROAR_FOREST",e.SERENITY_RIVER="SERENITY_RIVER",e.WATERFALL_POND="WATERFALL_POND",e.WESTERN_CAVE_B01F_B27F="WESTERN_CAVE_B01F_B27F",e.WESTERN_CAVE_B28F_B39F="WESTERN_CAVE_B28F_B39F",e.WISH_CAVE_01F_13F="WISH_CAVE_01F_13F",e.WISH_CAVE_90F_99F="WISH_CAVE_90F_99F",e.WYVERN_HILL="WYVERN_HILL",e))(qc||{});/** + * @remix-run/router v1.15.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Ho(){return Ho=Object.assign?Object.assign.bind():function(e){for(var i=1;i"u")throw new Error(i)}function jp(e,i){if(!e){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function q3(){return Math.random().toString(36).substr(2,8)}function Cy(e,i){return{usr:e.state,key:e.key,idx:i}}function _c(e,i,v,y){return v===void 0&&(v=null),Ho({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof i=="string"?$r(i):i,{state:v,key:i&&i.key||y||q3()})}function nh(e){let{pathname:i="/",search:v="",hash:y=""}=e;return v&&v!=="?"&&(i+=v.charAt(0)==="?"?v:"?"+v),y&&y!=="#"&&(i+=y.charAt(0)==="#"?y:"#"+y),i}function $r(e){let i={};if(e){let v=e.indexOf("#");v>=0&&(i.hash=e.substr(v),e=e.substr(0,v));let y=e.indexOf("?");y>=0&&(i.search=e.substr(y),e=e.substr(0,y)),e&&(i.pathname=e)}return i}function _3(e,i,v,y){y===void 0&&(y={});let{window:C=document.defaultView,v5Compat:A=!1}=y,f=C.history,T=Wn.Pop,t=null,l=g();l==null&&(l=0,f.replaceState(Ho({},f.state,{idx:l}),""));function g(){return(f.state||{idx:null}).idx}function u(){T=Wn.Pop;let d=g(),s=d==null?null:d-l;l=d,t&&t({action:T,location:r.location,delta:s})}function o(d,s){T=Wn.Push;let h=_c(r.location,d,s);v&&v(h,d),l=g()+1;let c=Cy(h,l),p=r.createHref(h);try{f.pushState(c,"",p)}catch(m){if(m instanceof DOMException&&m.name==="DataCloneError")throw m;C.location.assign(p)}A&&t&&t({action:T,location:r.location,delta:1})}function a(d,s){T=Wn.Replace;let h=_c(r.location,d,s);v&&v(h,d),l=g();let c=Cy(h,l),p=r.createHref(h);f.replaceState(c,"",p),A&&t&&t({action:T,location:r.location,delta:0})}function n(d){let s=C.location.origin!=="null"?C.location.origin:C.location.href,h=typeof d=="string"?d:nh(d);return h=h.replace(/ $/,"%20"),Te(s,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,s)}let r={get action(){return T},get location(){return e(C,f)},listen(d){if(t)throw new Error("A history only accepts one active listener");return C.addEventListener(Ey,u),t=d,()=>{C.removeEventListener(Ey,u),t=null}},createHref(d){return i(C,d)},createURL:n,encodeLocation(d){let s=n(d);return{pathname:s.pathname,search:s.search,hash:s.hash}},push:o,replace:a,go(d){return f.go(d)}};return r}var Py;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Py||(Py={}));function tO(e,i,v){v===void 0&&(v="/");let y=typeof i=="string"?$r(i):i,C=kp(y.pathname||"/",v);if(C==null)return null;let A=gE(e);eO(A);let f=null;for(let T=0;f==null&&T{let t={relativePath:T===void 0?A.path||"":T,caseSensitive:A.caseSensitive===!0,childrenIndex:f,route:A};t.relativePath.startsWith("/")&&(Te(t.relativePath.startsWith(y),'Absolute route path "'+t.relativePath+'" nested under path '+('"'+y+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),t.relativePath=t.relativePath.slice(y.length));let l=Jn([y,t.relativePath]),g=v.concat(t);A.children&&A.children.length>0&&(Te(A.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),gE(A.children,i,g,l)),!(A.path==null&&!A.index)&&i.push({path:l,score:lO(l,A.index),routesMeta:g})};return e.forEach((A,f)=>{var T;if(A.path===""||!((T=A.path)!=null&&T.includes("?")))C(A,f);else for(let t of yE(A.path))C(A,f,t)}),i}function yE(e){let i=e.split("/");if(i.length===0)return[];let[v,...y]=i,C=v.endsWith("?"),A=v.replace(/\?$/,"");if(y.length===0)return C?[A,""]:[A];let f=yE(y.join("/")),T=[];return T.push(...f.map(t=>t===""?A:[A,t].join("/"))),C&&T.push(...f),T.map(t=>e.startsWith("/")&&t===""?"/":t)}function eO(e){e.sort((i,v)=>i.score!==v.score?v.score-i.score:uO(i.routesMeta.map(y=>y.childrenIndex),v.routesMeta.map(y=>y.childrenIndex)))}const iO=/^:[\w-]+$/,nO=3,rO=2,sO=1,aO=10,oO=-2,Ry=e=>e==="*";function lO(e,i){let v=e.split("/"),y=v.length;return v.some(Ry)&&(y+=oO),i&&(y+=rO),v.filter(C=>!Ry(C)).reduce((C,A)=>C+(iO.test(A)?nO:A===""?sO:aO),y)}function uO(e,i){return e.length===i.length&&e.slice(0,-1).every((y,C)=>y===i[C])?e[e.length-1]-i[i.length-1]:0}function hO(e,i){let{routesMeta:v}=e,y={},C="/",A=[];for(let f=0;f{let{paramName:o,isOptional:a}=g;if(o==="*"){let r=T[u]||"";f=A.slice(0,A.length-r.length).replace(/(.)\/+$/,"$1")}const n=T[u];return a&&!n?l[o]=void 0:l[o]=(n||"").replace(/%2F/g,"/"),l},{}),pathname:A,pathnameBase:f,pattern:e}}function dO(e,i,v){i===void 0&&(i=!1),v===void 0&&(v=!0),jp(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let y=[],C="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,T,t)=>(y.push({paramName:T,isOptional:t!=null}),t?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(y.push({paramName:"*"}),C+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):v?C+="\\/*$":e!==""&&e!=="/"&&(C+="(?:(?=\\/|$))"),[new RegExp(C,i?void 0:"i"),y]}function cO(e){try{return e.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return jp(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+i+").")),e}}function kp(e,i){if(i==="/")return e;if(!e.toLowerCase().startsWith(i.toLowerCase()))return null;let v=i.endsWith("/")?i.length-1:i.length,y=e.charAt(v);return y&&y!=="/"?null:e.slice(v)||"/"}function vO(e,i){i===void 0&&(i="/");let{pathname:v,search:y="",hash:C=""}=typeof e=="string"?$r(e):e;return{pathname:v?v.startsWith("/")?v:pO(v,i):i,search:yO(y),hash:xO(C)}}function pO(e,i){let v=i.replace(/\/+$/,"").split("/");return e.split("/").forEach(C=>{C===".."?v.length>1&&v.pop():C!=="."&&v.push(C)}),v.length>1?v.join("/"):"/"}function Sd(e,i,v,y){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+i+"` field ["+JSON.stringify(y)+"]. Please separate it out to the ")+("`to."+v+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function mO(e){return e.filter((i,v)=>v===0||i.route.path&&i.route.path.length>0)}function xE(e,i){let v=mO(e);return i?v.map((y,C)=>C===e.length-1?y.pathname:y.pathnameBase):v.map(y=>y.pathnameBase)}function TE(e,i,v,y){y===void 0&&(y=!1);let C;typeof e=="string"?C=$r(e):(C=Ho({},e),Te(!C.pathname||!C.pathname.includes("?"),Sd("?","pathname","search",C)),Te(!C.pathname||!C.pathname.includes("#"),Sd("#","pathname","hash",C)),Te(!C.search||!C.search.includes("#"),Sd("#","search","hash",C)));let A=e===""||C.pathname==="",f=A?"/":C.pathname,T;if(f==null)T=v;else{let u=i.length-1;if(!y&&f.startsWith("..")){let o=f.split("/");for(;o[0]==="..";)o.shift(),u-=1;C.pathname=o.join("/")}T=u>=0?i[u]:"/"}let t=vO(C,T),l=f&&f!=="/"&&f.endsWith("/"),g=(A||f===".")&&v.endsWith("/");return!t.pathname.endsWith("/")&&(l||g)&&(t.pathname+="/"),t}const Jn=e=>e.join("/").replace(/\/\/+/g,"/"),gO=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),yO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,xO=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function TO(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const SE=["post","put","patch","delete"];new Set(SE);const SO=["get",...SE];new Set(SO);/** + * React Router v6.22.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function $o(){return $o=Object.assign?Object.assign.bind():function(e){for(var i=1;i{T.current=!0}),Q.useCallback(function(l,g){if(g===void 0&&(g={}),!T.current)return;if(typeof l=="number"){y.go(l);return}let u=TE(l,JSON.parse(f),A,g.relative==="path");e==null&&i!=="/"&&(u.pathname=u.pathname==="/"?i:Jn([i,u.pathname])),(g.replace?y.replace:y.push)(u,g.state,g)},[i,y,f,A,e])}function RE(e,i){let{relative:v}=i===void 0?{}:i,{future:y}=Q.useContext(jr),{matches:C}=Q.useContext(kr),{pathname:A}=hl(),f=JSON.stringify(xE(C,y.v7_relativeSplatPath));return Q.useMemo(()=>TE(e,JSON.parse(f),A,v==="path"),[e,f,A,v])}function RO(e,i){return AO(e,i)}function AO(e,i,v,y){ul()||Te(!1);let{navigator:C}=Q.useContext(jr),{matches:A}=Q.useContext(kr),f=A[A.length-1],T=f?f.params:{};f&&f.pathname;let t=f?f.pathnameBase:"/";f&&f.route;let l=hl(),g;if(i){var u;let d=typeof i=="string"?$r(i):i;t==="/"||(u=d.pathname)!=null&&u.startsWith(t)||Te(!1),g=d}else g=l;let o=g.pathname||"/",a=o;if(t!=="/"){let d=t.replace(/^\//,"").split("/");a="/"+o.replace(/^\//,"").split("/").slice(d.length).join("/")}let n=tO(e,{pathname:a}),r=LO(n&&n.map(d=>Object.assign({},d,{params:Object.assign({},T,d.params),pathname:Jn([t,C.encodeLocation?C.encodeLocation(d.pathname).pathname:d.pathname]),pathnameBase:d.pathnameBase==="/"?t:Jn([t,C.encodeLocation?C.encodeLocation(d.pathnameBase).pathname:d.pathnameBase])})),A,v,y);return i&&r?Q.createElement(Gh.Provider,{value:{location:$o({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:Wn.Pop}},r):r}function MO(){let e=NO(),i=TO(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),v=e instanceof Error?e.stack:null,C={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},A=null;return Q.createElement(Q.Fragment,null,Q.createElement("h2",null,"Unexpected Application Error!"),Q.createElement("h3",{style:{fontStyle:"italic"}},i),v?Q.createElement("pre",{style:C},v):null,A)}const OO=Q.createElement(MO,null);class wO extends Q.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,v){return v.location!==i.location||v.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:v.error,location:v.location,revalidation:i.revalidation||v.revalidation}}componentDidCatch(i,v){console.error("React Router caught the following error during render",i,v)}render(){return this.state.error!==void 0?Q.createElement(kr.Provider,{value:this.props.routeContext},Q.createElement(EE.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function FO(e){let{routeContext:i,match:v,children:y}=e,C=Q.useContext(Kp);return C&&C.static&&C.staticContext&&(v.route.errorElement||v.route.ErrorBoundary)&&(C.staticContext._deepestRenderedBoundaryId=v.route.id),Q.createElement(kr.Provider,{value:i},y)}function LO(e,i,v,y){var C;if(i===void 0&&(i=[]),v===void 0&&(v=null),y===void 0&&(y=null),e==null){var A;if((A=v)!=null&&A.errors)e=v.matches;else return null}let f=e,T=(C=v)==null?void 0:C.errors;if(T!=null){let g=f.findIndex(u=>u.route.id&&(T==null?void 0:T[u.route.id]));g>=0||Te(!1),f=f.slice(0,Math.min(f.length,g+1))}let t=!1,l=-1;if(v&&y&&y.v7_partialHydration)for(let g=0;g=0?f=f.slice(0,l+1):f=[f[0]];break}}}return f.reduceRight((g,u,o)=>{let a,n=!1,r=null,d=null;v&&(a=T&&u.route.id?T[u.route.id]:void 0,r=u.route.errorElement||OO,t&&(l<0&&o===0?(GO("route-fallback",!1),n=!0,d=null):l===o&&(n=!0,d=u.route.hydrateFallbackElement||null)));let s=i.concat(f.slice(0,o+1)),h=()=>{let c;return a?c=r:n?c=d:u.route.Component?c=Q.createElement(u.route.Component,null):u.route.element?c=u.route.element:c=g,Q.createElement(FO,{match:u,routeContext:{outlet:g,matches:s,isDataRoute:v!=null},children:c})};return v&&(u.route.ErrorBoundary||u.route.errorElement||o===0)?Q.createElement(wO,{location:v.location,revalidation:v.revalidation,component:r,error:a,children:h(),routeContext:{outlet:null,matches:s,isDataRoute:!0}}):h()},null)}var AE=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(AE||{}),rh=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(rh||{});function IO(e){let i=Q.useContext(Kp);return i||Te(!1),i}function bO(e){let i=Q.useContext(EO);return i||Te(!1),i}function DO(e){let i=Q.useContext(kr);return i||Te(!1),i}function ME(e){let i=DO(),v=i.matches[i.matches.length-1];return v.route.id||Te(!1),v.route.id}function NO(){var e;let i=Q.useContext(EE),v=bO(rh.UseRouteError),y=ME(rh.UseRouteError);return i!==void 0?i:(e=v.errors)==null?void 0:e[y]}function BO(){let{router:e}=IO(AE.UseNavigateStable),i=ME(rh.UseNavigateStable),v=Q.useRef(!1);return CE(()=>{v.current=!0}),Q.useCallback(function(C,A){A===void 0&&(A={}),v.current&&(typeof C=="number"?e.navigate(C):e.navigate(C,$o({fromRouteId:i},A)))},[e,i])}const Ay={};function GO(e,i,v){!i&&!Ay[e]&&(Ay[e]=!0)}function ls(e){Te(!1)}function UO(e){let{basename:i="/",children:v=null,location:y,navigationType:C=Wn.Pop,navigator:A,static:f=!1,future:T}=e;ul()&&Te(!1);let t=i.replace(/^\/*/,"/"),l=Q.useMemo(()=>({basename:t,navigator:A,static:f,future:$o({v7_relativeSplatPath:!1},T)}),[t,T,A,f]);typeof y=="string"&&(y=$r(y));let{pathname:g="/",search:u="",hash:o="",state:a=null,key:n="default"}=y,r=Q.useMemo(()=>{let d=kp(g,t);return d==null?null:{location:{pathname:d,search:u,hash:o,state:a,key:n},navigationType:C}},[t,g,u,o,a,n,C]);return r==null?null:Q.createElement(jr.Provider,{value:l},Q.createElement(Gh.Provider,{children:v,value:r}))}function zO(e){let{children:i,location:v}=e;return RO(tv(i),v)}new Promise(()=>{});function tv(e,i){i===void 0&&(i=[]);let v=[];return Q.Children.forEach(e,(y,C)=>{if(!Q.isValidElement(y))return;let A=[...i,C];if(y.type===Q.Fragment){v.push.apply(v,tv(y.props.children,A));return}y.type!==ls&&Te(!1),!y.props.index||!y.props.children||Te(!1);let f={id:y.props.id||A.join("-"),caseSensitive:y.props.caseSensitive,element:y.props.element,Component:y.props.Component,index:y.props.index,path:y.props.path,loader:y.props.loader,action:y.props.action,errorElement:y.props.errorElement,ErrorBoundary:y.props.ErrorBoundary,hasErrorBoundary:y.props.ErrorBoundary!=null||y.props.errorElement!=null,shouldRevalidate:y.props.shouldRevalidate,handle:y.props.handle,lazy:y.props.lazy};y.props.children&&(f.children=tv(y.props.children,A)),v.push(f)}),v}/** + * React Router DOM v6.22.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function ev(){return ev=Object.assign?Object.assign.bind():function(e){for(var i=1;i=0)&&(v[C]=e[C]);return v}function WO(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function XO(e,i){return e.button===0&&(!i||i==="_self")&&!WO(e)}function iv(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((i,v)=>{let y=e[v];return i.concat(Array.isArray(y)?y.map(C=>[v,C]):[[v,y]])},[]))}function YO(e,i){let v=iv(e);return i&&i.forEach((y,C)=>{v.has(C)||i.getAll(C).forEach(A=>{v.append(C,A)})}),v}const HO=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],$O="6";try{window.__reactRouterVersion=$O}catch{}const jO="startTransition",My=Ws[jO];function kO(e){let{basename:i,children:v,future:y,window:C}=e,A=Q.useRef();A.current==null&&(A.current=J3({window:C,v5Compat:!0}));let f=A.current,[T,t]=Q.useState({action:f.action,location:f.location}),{v7_startTransition:l}=y||{},g=Q.useCallback(u=>{l&&My?My(()=>t(u)):t(u)},[t,l]);return Q.useLayoutEffect(()=>f.listen(g),[f,g]),Q.createElement(UO,{basename:i,children:v,location:T.location,navigationType:T.action,navigator:f,future:y})}const KO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",QO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Gs=Q.forwardRef(function(i,v){let{onClick:y,relative:C,reloadDocument:A,replace:f,state:T,target:t,to:l,preventScrollReset:g,unstable_viewTransition:u}=i,o=VO(i,HO),{basename:a}=Q.useContext(jr),n,r=!1;if(typeof l=="string"&&QO.test(l)&&(n=l,KO))try{let c=new URL(window.location.href),p=l.startsWith("//")?new URL(c.protocol+l):new URL(l),m=kp(p.pathname,a);p.origin===c.origin&&m!=null?l=m+p.search+p.hash:r=!0}catch{}let d=CO(l,{relative:C}),s=ZO(l,{replace:f,state:T,target:t,preventScrollReset:g,relative:C,unstable_viewTransition:u});function h(c){y&&y(c),c.defaultPrevented||s(c)}return Q.createElement("a",ev({},o,{href:n||d,onClick:r||A?y:h,ref:v,target:t}))});var Oy;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Oy||(Oy={}));var wy;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wy||(wy={}));function ZO(e,i){let{target:v,replace:y,state:C,preventScrollReset:A,relative:f,unstable_viewTransition:T}=i===void 0?{}:i,t=PE(),l=hl(),g=RE(e,{relative:f});return Q.useCallback(u=>{if(XO(u,v)){u.preventDefault();let o=y!==void 0?y:nh(l)===nh(g);t(e,{replace:o,state:C,preventScrollReset:A,relative:f,unstable_viewTransition:T})}},[l,t,g,y,C,v,e,A,f,T])}function OE(e){let i=Q.useRef(iv(e)),v=Q.useRef(!1),y=hl(),C=Q.useMemo(()=>YO(y.search,v.current?null:i.current),[y.search]),A=PE(),f=Q.useCallback((T,t)=>{const l=iv(typeof T=="function"?T(C):T);v.current=!0,A("?"+l,t)},[A,C]);return[C,f]}const JO={black:"#000",white:"#fff"},jo=JO,qO={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Jr=qO,_O={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},qr=_O,tw={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},_r=tw,ew={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ts=ew,iw={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},es=iw,nw={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},wa=nw,rw={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},sw=rw;function xr(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function wE(e){if(!xr(e))return e;const i={};return Object.keys(e).forEach(v=>{i[v]=wE(e[v])}),i}function Si(e,i,v={clone:!0}){const y=v.clone?{...e}:e;return xr(e)&&xr(i)&&Object.keys(i).forEach(C=>{C!=="__proto__"&&(xr(i[C])&&C in e&&xr(e[C])?y[C]=Si(e[C],i[C],v):v.clone?y[C]=xr(i[C])?wE(i[C]):i[C]:y[C]=i[C])}),y}function rr(e){let i="https://mui.com/production-error/?code="+e;for(let v=1;vv==null?i:function(...C){i.apply(this,C),v.apply(this,C)},()=>{})}function Qp(e,i=166){let v;function y(...C){const A=()=>{e.apply(this,C)};clearTimeout(v),v=setTimeout(A,i)}return y.clear=()=>{clearTimeout(v)},y}function aw(e,i){return()=>null}function vo(e,i){return Q.isValidElement(e)&&i.indexOf(e.type.muiName)!==-1}function Ge(e){return e&&e.ownerDocument||document}function sr(e){return Ge(e).defaultView||window}function ow(e,i){return()=>null}function sh(e,i){typeof e=="function"?e(i):e&&(e.current=i)}const lw=typeof window<"u"?Q.useLayoutEffect:Q.useEffect,Ai=lw;let Fy=0;function uw(e){const[i,v]=Q.useState(e),y=e||i;return Q.useEffect(()=>{i==null&&(Fy+=1,v(`mui-${Fy}`))},[i]),y}const Ly=Ws["useId".toString()];function Zp(e){if(Ly!==void 0){const i=Ly();return e??i}return uw(e)}function hw(e,i,v,y,C){return null}function qs({controlled:e,default:i,name:v,state:y="value"}){const{current:C}=Q.useRef(e!==void 0),[A,f]=Q.useState(i),T=C?e:A,t=Q.useCallback(l=>{C||f(l)},[]);return[T,t]}function Xn(e){const i=Q.useRef(e);return Ai(()=>{i.current=e}),Q.useCallback((...v)=>(0,i.current)(...v),[])}function pe(...e){return Q.useMemo(()=>e.every(i=>i==null)?null:i=>{e.forEach(v=>{sh(v,i)})},e)}let Uh=!0,rv=!1,Iy;const fw={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function dw(e){const{type:i,tagName:v}=e;return!!(v==="INPUT"&&fw[i]&&!e.readOnly||v==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function cw(e){e.metaKey||e.altKey||e.ctrlKey||(Uh=!0)}function Ed(){Uh=!1}function vw(){this.visibilityState==="hidden"&&rv&&(Uh=!0)}function pw(e){e.addEventListener("keydown",cw,!0),e.addEventListener("mousedown",Ed,!0),e.addEventListener("pointerdown",Ed,!0),e.addEventListener("touchstart",Ed,!0),e.addEventListener("visibilitychange",vw,!0)}function mw(e){const{target:i}=e;try{return i.matches(":focus-visible")}catch{}return Uh||dw(i)}function zh(){const e=Q.useCallback(C=>{C!=null&&pw(C.ownerDocument)},[]),i=Q.useRef(!1);function v(){return i.current?(rv=!0,window.clearTimeout(Iy),Iy=window.setTimeout(()=>{rv=!1},100),i.current=!1,!0):!1}function y(C){return mw(C)?(i.current=!0,!0):!1}return{isFocusVisibleRef:i,onFocus:y,onBlur:v,ref:e}}function FE(e){const i=e.documentElement.clientWidth;return Math.abs(window.innerWidth-i)}function Jp(e,i){const v={...i};return Object.keys(e).forEach(y=>{if(y.toString().match(/^(components|slots)$/))v[y]={...e[y],...v[y]};else if(y.toString().match(/^(componentsProps|slotProps)$/)){const C=e[y]||{},A=i[y];v[y]={},!A||!Object.keys(A)?v[y]=C:!C||!Object.keys(C)?v[y]=A:(v[y]={...A},Object.keys(C).forEach(f=>{v[y][f]=Jp(C[f],A[f])}))}else v[y]===void 0&&(v[y]=e[y])}),v}function Ft(e,i,v=void 0){const y={};return Object.keys(e).forEach(C=>{y[C]=e[C].reduce((A,f)=>{if(f){const T=i(f);T!==""&&A.push(T),v&&v[f]&&A.push(v[f])}return A},[]).join(" ")}),y}const by=e=>e,gw=()=>{let e=by;return{configure(i){e=i},generate(i){return e(i)},reset(){e=by}}},yw=gw(),qp=yw,xw={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Ot(e,i,v="Mui"){const y=xw[i];return y?`${v}-${y}`:`${qp.generate(e)}-${i}`}function wt(e,i,v="Mui"){const y={};return i.forEach(C=>{y[C]=Ot(e,C,v)}),y}const fl="$$material";function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var i=1;i=0)&&(v[C]=e[C]);return v}function LE(e){var i=Object.create(null);return function(v){return i[v]===void 0&&(i[v]=e(v)),i[v]}}var Tw=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Sw=LE(function(e){return Tw.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Ew(e){if(e.sheet)return e.sheet;for(var i=0;i0?Fe(fa,--ti):0,_s--,ye===10&&(_s=1,Wh--),ye}function ui(){return ye=ti2||Ko(ye)>3?"":" "}function Nw(e,i){for(;--i&&ui()&&!(ye<48||ye>102||ye>57&&ye<65||ye>70&&ye<97););return dl(e,Eu()+(i<6&&tn()==32&&ui()==32))}function av(e){for(;ui();)switch(ye){case e:return ti;case 34:case 39:e!==34&&e!==39&&av(ye);break;case 40:e===41&&av(e);break;case 92:ui();break}return ti}function Bw(e,i){for(;ui()&&e+ye!==47+10;)if(e+ye===42+42&&tn()===47)break;return"/*"+dl(i,ti-1)+"*"+Vh(e===47?e:ui())}function Gw(e){for(;!Ko(tn());)ui();return dl(e,ti)}function Uw(e){return GE(Pu("",null,null,null,[""],e=BE(e),0,[0],e))}function Pu(e,i,v,y,C,A,f,T,t){for(var l=0,g=0,u=f,o=0,a=0,n=0,r=1,d=1,s=1,h=0,c="",p=C,m=A,x=y,S=c;d;)switch(n=h,h=ui()){case 40:if(n!=108&&Fe(S,u-1)==58){sv(S+=Vt(Cu(h),"&","&\f"),"&\f")!=-1&&(s=-1);break}case 34:case 39:case 91:S+=Cu(h);break;case 9:case 10:case 13:case 32:S+=Dw(n);break;case 92:S+=Nw(Eu()-1,7);continue;case 47:switch(tn()){case 42:case 47:Xl(zw(Bw(ui(),Eu()),i,v),t);break;default:S+="/"}break;case 123*r:T[l++]=Ki(S)*s;case 125*r:case 59:case 0:switch(h){case 0:case 125:d=0;case 59+g:s==-1&&(S=Vt(S,/\f/g,"")),a>0&&Ki(S)-u&&Xl(a>32?Ny(S+";",y,v,u-1):Ny(Vt(S," ","")+";",y,v,u-2),t);break;case 59:S+=";";default:if(Xl(x=Dy(S,i,v,l,g,C,T,c,p=[],m=[],u),A),h===123)if(g===0)Pu(S,i,x,x,p,A,u,T,m);else switch(o===99&&Fe(S,3)===110?100:o){case 100:case 108:case 109:case 115:Pu(e,x,x,y&&Xl(Dy(e,x,x,0,0,C,T,c,C,p=[],u),m),C,m,u,T,y?p:m);break;default:Pu(S,x,x,x,[""],m,0,T,m)}}l=g=a=0,r=s=1,c=S="",u=f;break;case 58:u=1+Ki(S),a=n;default:if(r<1){if(h==123)--r;else if(h==125&&r++==0&&bw()==125)continue}switch(S+=Vh(h),h*r){case 38:s=g>0?1:(S+="\f",-1);break;case 44:T[l++]=(Ki(S)-1)*s,s=1;break;case 64:tn()===45&&(S+=Cu(ui())),o=tn(),g=u=Ki(c=S+=Gw(Eu())),h++;break;case 45:n===45&&Ki(S)==2&&(r=0)}}return A}function Dy(e,i,v,y,C,A,f,T,t,l,g){for(var u=C-1,o=C===0?A:[""],a=em(o),n=0,r=0,d=0;n0?o[s]+" "+h:Vt(h,/&\f/g,o[s])))&&(t[d++]=c);return Xh(e,i,v,C===0?_p:T,t,l,g)}function zw(e,i,v){return Xh(e,i,v,IE,Vh(Iw()),ko(e,2,-2),0)}function Ny(e,i,v,y){return Xh(e,i,v,tm,ko(e,0,y),ko(e,y+1,-1),y)}function Us(e,i){for(var v="",y=em(e),C=0;C6)switch(Fe(e,i+1)){case 109:if(Fe(e,i+4)!==45)break;case 102:return Vt(e,/(.+:)(.+)-([^]+)/,"$1"+zt+"$2-$3$1"+ah+(Fe(e,i+3)==108?"$3":"$2-$3"))+e;case 115:return~sv(e,"stretch")?UE(Vt(e,"stretch","fill-available"),i)+e:e}break;case 4949:if(Fe(e,i+1)!==115)break;case 6444:switch(Fe(e,Ki(e)-3-(~sv(e,"!important")&&10))){case 107:return Vt(e,":",":"+zt)+e;case 101:return Vt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+zt+(Fe(e,14)===45?"inline-":"")+"box$3$1"+zt+"$2$3$1"+Ne+"$2box$3")+e}break;case 5936:switch(Fe(e,i+11)){case 114:return zt+e+Ne+Vt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return zt+e+Ne+Vt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return zt+e+Ne+Vt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return zt+e+Ne+e+e}return e}var Kw=function(i,v,y,C){if(i.length>-1&&!i.return)switch(i.type){case tm:i.return=UE(i.value,i.length);break;case bE:return Us([Fa(i,{value:Vt(i.value,"@","@"+zt)})],C);case _p:if(i.length)return Lw(i.props,function(A){switch(Fw(A,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Us([Fa(i,{props:[Vt(A,/:(read-\w+)/,":"+ah+"$1")]})],C);case"::placeholder":return Us([Fa(i,{props:[Vt(A,/:(plac\w+)/,":"+zt+"input-$1")]}),Fa(i,{props:[Vt(A,/:(plac\w+)/,":"+ah+"$1")]}),Fa(i,{props:[Vt(A,/:(plac\w+)/,Ne+"input-$1")]})],C)}return""})}},Qw=[Kw],Zw=function(i){var v=i.key;if(v==="css"){var y=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(y,function(r){var d=r.getAttribute("data-emotion");d.indexOf(" ")!==-1&&(document.head.appendChild(r),r.setAttribute("data-s",""))})}var C=i.stylisPlugins||Qw,A={},f,T=[];f=i.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+v+' "]'),function(r){for(var d=r.getAttribute("data-emotion").split(" "),s=1;s=4;++y,C-=4)v=e.charCodeAt(y)&255|(e.charCodeAt(++y)&255)<<8|(e.charCodeAt(++y)&255)<<16|(e.charCodeAt(++y)&255)<<24,v=(v&65535)*1540483477+((v>>>16)*59797<<16),v^=v>>>24,i=(v&65535)*1540483477+((v>>>16)*59797<<16)^(i&65535)*1540483477+((i>>>16)*59797<<16);switch(C){case 3:i^=(e.charCodeAt(y+2)&255)<<16;case 2:i^=(e.charCodeAt(y+1)&255)<<8;case 1:i^=e.charCodeAt(y)&255,i=(i&65535)*1540483477+((i>>>16)*59797<<16)}return i^=i>>>13,i=(i&65535)*1540483477+((i>>>16)*59797<<16),((i^i>>>15)>>>0).toString(36)}var l6={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},u6=/[A-Z]|^ms/g,h6=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$E=function(i){return i.charCodeAt(1)===45},Uy=function(i){return i!=null&&typeof i!="boolean"},Cd=LE(function(e){return $E(e)?e:e.replace(u6,"-$&").toLowerCase()}),zy=function(i,v){switch(i){case"animation":case"animationName":if(typeof v=="string")return v.replace(h6,function(y,C,A){return Qi={name:C,styles:A,next:Qi},C})}return l6[i]!==1&&!$E(i)&&typeof v=="number"&&v!==0?v+"px":v};function Qo(e,i,v){if(v==null)return"";if(v.__emotion_styles!==void 0)return v;switch(typeof v){case"boolean":return"";case"object":{if(v.anim===1)return Qi={name:v.name,styles:v.styles,next:Qi},v.name;if(v.styles!==void 0){var y=v.next;if(y!==void 0)for(;y!==void 0;)Qi={name:y.name,styles:y.styles,next:Qi},y=y.next;var C=v.styles+";";return C}return f6(e,i,v)}case"function":{if(e!==void 0){var A=Qi,f=v(e);return Qi=A,Qo(e,i,f)}break}}if(i==null)return v;var T=i[v];return T!==void 0?T:v}function f6(e,i,v){var y="";if(Array.isArray(v))for(var C=0;C96?y6:x6},Yy=function(i,v,y){var C;if(v){var A=v.shouldForwardProp;C=i.__emotion_forwardProp&&A?function(f){return i.__emotion_forwardProp(f)&&A(f)}:A}return typeof C!="function"&&y&&(C=i.__emotion_forwardProp),C},T6=function(i){var v=i.cache,y=i.serialized,C=i.isStringTag;return YE(v,y,C),c6(function(){return HE(v,y,C)}),null},S6=function e(i,v){var y=i.__emotion_real===i,C=y&&i.__emotion_base||i,A,f;v!==void 0&&(A=v.label,f=v.target);var T=Yy(i,v,y),t=T||Xy(C),l=!t("as");return function(){var g=arguments,u=y&&i.__emotion_styles!==void 0?i.__emotion_styles.slice(0):[];if(A!==void 0&&u.push("label:"+A+";"),g[0]==null||g[0].raw===void 0)u.push.apply(u,g);else{u.push(g[0][0]);for(var o=g.length,a=1;ai(C6(C)?v:C):i;return H.jsx(g6,{styles:y})}/** + * @mui/styled-engine v5.13.2 + * + * @license MIT + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function QE(e,i){return lv(e,i)}const R6=(e,i)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=i(e.__emotion_styles))},A6=["values","unit","step"],M6=e=>{const i=Object.keys(e).map(v=>({key:v,val:e[v]}))||[];return i.sort((v,y)=>v.val-y.val),i.reduce((v,y)=>Z({},v,{[y.key]:y.val}),{})};function O6(e){const{values:i={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:v="px",step:y=5}=e,C=yt(e,A6),A=M6(i),f=Object.keys(A);function T(o){return`@media (min-width:${typeof i[o]=="number"?i[o]:o}${v})`}function t(o){return`@media (max-width:${(typeof i[o]=="number"?i[o]:o)-y/100}${v})`}function l(o,a){const n=f.indexOf(a);return`@media (min-width:${typeof i[o]=="number"?i[o]:o}${v}) and (max-width:${(n!==-1&&typeof i[f[n]]=="number"?i[f[n]]:a)-y/100}${v})`}function g(o){return f.indexOf(o)+1`@media (min-width:${am[e]}px)`};function Mi(e,i,v){const y=e.theme||{};if(Array.isArray(i)){const A=y.breakpoints||Hy;return i.reduce((f,T,t)=>(f[A.up(A.keys[t])]=v(i[t]),f),{})}if(typeof i=="object"){const A=y.breakpoints||Hy;return Object.keys(i).reduce((f,T)=>{if(Object.keys(A.values||am).indexOf(T)!==-1){const t=A.up(T);f[t]=v(i[T],T)}else{const t=T;f[t]=i[t]}return f},{})}return v(i)}function L6(e={}){var i;return((i=e.keys)==null?void 0:i.reduce((y,C)=>{const A=e.up(C);return y[A]={},y},{}))||{}}function I6(e,i){return e.reduce((v,y)=>{const C=v[y];return(!C||Object.keys(C).length===0)&&delete v[y],v},i)}function b6(e,i){if(typeof e!="object")return{};const v={},y=Object.keys(i);return Array.isArray(e)?y.forEach((C,A)=>{A{e[C]!=null&&(v[C]=!0)}),v}function _h({values:e,breakpoints:i,base:v}){const y=v||b6(e,i),C=Object.keys(y);if(C.length===0)return e;let A;return C.reduce((f,T,t)=>(Array.isArray(e)?(f[T]=e[t]!=null?e[t]:e[A],A=t):typeof e=="object"?(f[T]=e[T]!=null?e[T]:e[A],A=T):f[T]=e,f),{})}function ta(e,i,v=!0){if(!i||typeof i!="string")return null;if(e&&e.vars&&v){const y=`vars.${i}`.split(".").reduce((C,A)=>C&&C[A]?C[A]:null,e);if(y!=null)return y}return i.split(".").reduce((y,C)=>y&&y[C]!=null?y[C]:null,e)}function oh(e,i,v,y=v){let C;return typeof e=="function"?C=e(v):Array.isArray(e)?C=e[v]||y:C=ta(e,v)||y,i&&(C=i(C,y,e)),C}function Xt(e){const{prop:i,cssProperty:v=e.prop,themeKey:y,transform:C}=e,A=f=>{if(f[i]==null)return null;const T=f[i],t=f.theme,l=ta(t,y)||{};return Mi(f,T,u=>{let o=oh(l,C,u);return u===o&&typeof u=="string"&&(o=oh(l,C,`${i}${u==="default"?"":Rt(u)}`,u)),v===!1?o:{[v]:o}})};return A.propTypes={},A.filterProps=[i],A}function D6(e){const i={};return v=>(i[v]===void 0&&(i[v]=e(v)),i[v])}const N6={m:"margin",p:"padding"},B6={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$y={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},G6=D6(e=>{if(e.length>2)if($y[e])e=$y[e];else return[e];const[i,v]=e.split(""),y=N6[i],C=B6[v]||"";return Array.isArray(C)?C.map(A=>y+A):[y+C]}),om=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],lm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...om,...lm];function vl(e,i,v,y){var C;const A=(C=ta(e,i,!1))!=null?C:v;return typeof A=="number"?f=>typeof f=="string"?f:A*f:Array.isArray(A)?f=>typeof f=="string"?f:A[f]:typeof A=="function"?A:()=>{}}function ZE(e){return vl(e,"spacing",8)}function pl(e,i){if(typeof i=="string"||i==null)return i;const v=Math.abs(i),y=e(v);return i>=0?y:typeof y=="number"?-y:`-${y}`}function U6(e,i){return v=>e.reduce((y,C)=>(y[C]=pl(i,v),y),{})}function z6(e,i,v,y){if(i.indexOf(v)===-1)return null;const C=G6(v),A=U6(C,y),f=e[v];return Mi(e,f,A)}function JE(e,i){const v=ZE(e.theme);return Object.keys(e).map(y=>z6(e,i,y,v)).reduce(po,{})}function le(e){return JE(e,om)}le.propTypes={};le.filterProps=om;function ue(e){return JE(e,lm)}ue.propTypes={};ue.filterProps=lm;function V6(e=8){if(e.mui)return e;const i=ZE({spacing:e}),v=(...y)=>(y.length===0?[1]:y).map(A=>{const f=i(A);return typeof f=="number"?`${f}px`:f}).join(" ");return v.mui=!0,v}function tf(...e){const i=e.reduce((y,C)=>(C.filterProps.forEach(A=>{y[A]=C}),y),{}),v=y=>Object.keys(y).reduce((C,A)=>i[A]?po(C,i[A](y)):C,{});return v.propTypes={},v.filterProps=e.reduce((y,C)=>y.concat(C.filterProps),[]),v}function Ji(e){return typeof e!="number"?e:`${e}px solid`}const W6=Xt({prop:"border",themeKey:"borders",transform:Ji}),X6=Xt({prop:"borderTop",themeKey:"borders",transform:Ji}),Y6=Xt({prop:"borderRight",themeKey:"borders",transform:Ji}),H6=Xt({prop:"borderBottom",themeKey:"borders",transform:Ji}),$6=Xt({prop:"borderLeft",themeKey:"borders",transform:Ji}),j6=Xt({prop:"borderColor",themeKey:"palette"}),k6=Xt({prop:"borderTopColor",themeKey:"palette"}),K6=Xt({prop:"borderRightColor",themeKey:"palette"}),Q6=Xt({prop:"borderBottomColor",themeKey:"palette"}),Z6=Xt({prop:"borderLeftColor",themeKey:"palette"}),ef=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const i=vl(e.theme,"shape.borderRadius",4),v=y=>({borderRadius:pl(i,y)});return Mi(e,e.borderRadius,v)}return null};ef.propTypes={};ef.filterProps=["borderRadius"];tf(W6,X6,Y6,H6,$6,j6,k6,K6,Q6,Z6,ef);const nf=e=>{if(e.gap!==void 0&&e.gap!==null){const i=vl(e.theme,"spacing",8),v=y=>({gap:pl(i,y)});return Mi(e,e.gap,v)}return null};nf.propTypes={};nf.filterProps=["gap"];const rf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const i=vl(e.theme,"spacing",8),v=y=>({columnGap:pl(i,y)});return Mi(e,e.columnGap,v)}return null};rf.propTypes={};rf.filterProps=["columnGap"];const sf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const i=vl(e.theme,"spacing",8),v=y=>({rowGap:pl(i,y)});return Mi(e,e.rowGap,v)}return null};sf.propTypes={};sf.filterProps=["rowGap"];const J6=Xt({prop:"gridColumn"}),q6=Xt({prop:"gridRow"}),_6=Xt({prop:"gridAutoFlow"}),tF=Xt({prop:"gridAutoColumns"}),eF=Xt({prop:"gridAutoRows"}),iF=Xt({prop:"gridTemplateColumns"}),nF=Xt({prop:"gridTemplateRows"}),rF=Xt({prop:"gridTemplateAreas"}),sF=Xt({prop:"gridArea"});tf(nf,rf,sf,J6,q6,_6,tF,eF,iF,nF,rF,sF);function zs(e,i){return i==="grey"?i:e}const aF=Xt({prop:"color",themeKey:"palette",transform:zs}),oF=Xt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:zs}),lF=Xt({prop:"backgroundColor",themeKey:"palette",transform:zs});tf(aF,oF,lF);function si(e){return e<=1&&e!==0?`${e*100}%`:e}const uF=Xt({prop:"width",transform:si}),um=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const i=v=>{var y,C,A;return{maxWidth:((y=e.theme)==null||(C=y.breakpoints)==null||(A=C.values)==null?void 0:A[v])||am[v]||si(v)}};return Mi(e,e.maxWidth,i)}return null};um.filterProps=["maxWidth"];const hF=Xt({prop:"minWidth",transform:si}),fF=Xt({prop:"height",transform:si}),dF=Xt({prop:"maxHeight",transform:si}),cF=Xt({prop:"minHeight",transform:si});Xt({prop:"size",cssProperty:"width",transform:si});Xt({prop:"size",cssProperty:"height",transform:si});const vF=Xt({prop:"boxSizing"});tf(uF,um,hF,fF,dF,cF,vF);const pF={border:{themeKey:"borders",transform:Ji},borderTop:{themeKey:"borders",transform:Ji},borderRight:{themeKey:"borders",transform:Ji},borderBottom:{themeKey:"borders",transform:Ji},borderLeft:{themeKey:"borders",transform:Ji},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ef},color:{themeKey:"palette",transform:zs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:zs},backgroundColor:{themeKey:"palette",transform:zs},p:{style:ue},pt:{style:ue},pr:{style:ue},pb:{style:ue},pl:{style:ue},px:{style:ue},py:{style:ue},padding:{style:ue},paddingTop:{style:ue},paddingRight:{style:ue},paddingBottom:{style:ue},paddingLeft:{style:ue},paddingX:{style:ue},paddingY:{style:ue},paddingInline:{style:ue},paddingInlineStart:{style:ue},paddingInlineEnd:{style:ue},paddingBlock:{style:ue},paddingBlockStart:{style:ue},paddingBlockEnd:{style:ue},m:{style:le},mt:{style:le},mr:{style:le},mb:{style:le},ml:{style:le},mx:{style:le},my:{style:le},margin:{style:le},marginTop:{style:le},marginRight:{style:le},marginBottom:{style:le},marginLeft:{style:le},marginX:{style:le},marginY:{style:le},marginInline:{style:le},marginInlineStart:{style:le},marginInlineEnd:{style:le},marginBlock:{style:le},marginBlockStart:{style:le},marginBlockEnd:{style:le},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:nf},rowGap:{style:sf},columnGap:{style:rf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:si},maxWidth:{style:um},minWidth:{transform:si},height:{transform:si},maxHeight:{transform:si},minHeight:{transform:si},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},af=pF;function mF(...e){const i=e.reduce((y,C)=>y.concat(Object.keys(C)),[]),v=new Set(i);return e.every(y=>v.size===Object.keys(y).length)}function gF(e,i){return typeof e=="function"?e(i):e}function yF(){function e(v,y,C,A){const f={[v]:y,theme:C},T=A[v];if(!T)return{[v]:y};const{cssProperty:t=v,themeKey:l,transform:g,style:u}=T;if(y==null)return null;if(l==="typography"&&y==="inherit")return{[v]:y};const o=ta(C,l)||{};return u?u(f):Mi(f,y,n=>{let r=oh(o,g,n);return n===r&&typeof n=="string"&&(r=oh(o,g,`${v}${n==="default"?"":Rt(n)}`,n)),t===!1?r:{[t]:r}})}function i(v){var y;const{sx:C,theme:A={}}=v||{};if(!C)return null;const f=(y=A.unstable_sxConfig)!=null?y:af;function T(t){let l=t;if(typeof t=="function")l=t(A);else if(typeof t!="object")return t;if(!l)return null;const g=L6(A.breakpoints),u=Object.keys(g);let o=g;return Object.keys(l).forEach(a=>{const n=gF(l[a],A);if(n!=null)if(typeof n=="object")if(f[a])o=po(o,e(a,n,A,f));else{const r=Mi({theme:A},n,d=>({[a]:d}));mF(r,n)?o[a]=i({sx:n,theme:A}):o=po(o,r)}else o=po(o,e(a,n,A,f))}),I6(u,o)}return Array.isArray(C)?C.map(T):T(C)}return i}const qE=yF();qE.filterProps=["sx"];const of=qE,xF=["breakpoints","palette","spacing","shape"];function lf(e={},...i){const{breakpoints:v={},palette:y={},spacing:C,shape:A={}}=e,f=yt(e,xF),T=O6(v),t=V6(C);let l=Si({breakpoints:T,direction:"ltr",components:{},palette:Z({mode:"light"},y),spacing:t,shape:Z({},F6,A)},f);return l=i.reduce((g,u)=>Si(g,u),l),l.unstable_sxConfig=Z({},af,f==null?void 0:f.unstable_sxConfig),l.unstable_sx=function(u){return of({sx:u,theme:this})},l}function TF(e){return Object.keys(e).length===0}function hm(e=null){const i=Q.useContext(Zo);return!i||TF(i)?e:i}const SF=lf();function uf(e=SF){return hm(e)}function EF({styles:e,themeId:i,defaultTheme:v={}}){const y=uf(v),C=typeof e=="function"?e(i&&y[i]||y):e;return H.jsx(P6,{styles:C})}const CF=["sx"],PF=e=>{var i,v;const y={systemProps:{},otherProps:{}},C=(i=e==null||(v=e.theme)==null?void 0:v.unstable_sxConfig)!=null?i:af;return Object.keys(e).forEach(A=>{C[A]?y.systemProps[A]=e[A]:y.otherProps[A]=e[A]}),y};function fm(e){const{sx:i}=e,v=yt(e,CF),{systemProps:y,otherProps:C}=PF(v);let A;return Array.isArray(i)?A=[y,...i]:typeof i=="function"?A=(...f)=>{const T=i(...f);return xr(T)?Z({},y,T):y}:A=Z({},y,i),Z({},C,{sx:A})}function _E(e){var i,v,y="";if(typeof e=="string"||typeof e=="number")y+=e;else if(typeof e=="object")if(Array.isArray(e))for(i=0;iT!=="theme"&&T!=="sx"&&T!=="as"})(of);return Q.forwardRef(function(t,l){const g=uf(v),u=fm(t),{className:o,component:a="div"}=u,n=yt(u,RF);return H.jsx(A,Z({as:a,ref:l,className:xt(o,C?C(y):y),theme:i&&g[i]||g},n))})}const MF=["variant"];function jy(e){return e.length===0}function t2(e){const{variant:i}=e,v=yt(e,MF);let y=i||"";return Object.keys(v).sort().forEach(C=>{C==="color"?y+=jy(y)?e[C]:Rt(e[C]):y+=`${jy(y)?C:Rt(C)}${Rt(e[C].toString())}`}),y}const OF=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function wF(e){return Object.keys(e).length===0}function FF(e){return typeof e=="string"&&e.charCodeAt(0)>96}const LF=(e,i)=>i.components&&i.components[e]&&i.components[e].styleOverrides?i.components[e].styleOverrides:null,IF=(e,i)=>{let v=[];i&&i.components&&i.components[e]&&i.components[e].variants&&(v=i.components[e].variants);const y={};return v.forEach(C=>{const A=t2(C.props);y[A]=C.style}),y},bF=(e,i,v,y)=>{var C,A;const{ownerState:f={}}=e,T=[],t=v==null||(C=v.components)==null||(A=C[y])==null?void 0:A.variants;return t&&t.forEach(l=>{let g=!0;Object.keys(l.props).forEach(u=>{f[u]!==l.props[u]&&e[u]!==l.props[u]&&(g=!1)}),g&&T.push(i[t2(l.props)])}),T};function mo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const DF=lf();function La({defaultTheme:e,theme:i,themeId:v}){return wF(i)?e:i[v]||i}function e2(e={}){const{themeId:i,defaultTheme:v=DF,rootShouldForwardProp:y=mo,slotShouldForwardProp:C=mo}=e,A=f=>of(Z({},f,{theme:La(Z({},f,{defaultTheme:v,themeId:i}))}));return A.__mui_systemSx=!0,(f,T={})=>{R6(f,p=>p.filter(m=>!(m!=null&&m.__mui_systemSx)));const{name:t,slot:l,skipVariantsResolver:g,skipSx:u,overridesResolver:o}=T,a=yt(T,OF),n=g!==void 0?g:l&&l!=="Root"||!1,r=u||!1;let d,s=mo;l==="Root"?s=y:l?s=C:FF(f)&&(s=void 0);const h=QE(f,Z({shouldForwardProp:s,label:d},a)),c=(p,...m)=>{const x=m?m.map(R=>typeof R=="function"&&R.__emotion_real!==R?M=>R(Z({},M,{theme:La(Z({},M,{defaultTheme:v,themeId:i}))})):R):[];let S=p;t&&o&&x.push(R=>{const M=La(Z({},R,{defaultTheme:v,themeId:i})),O=LF(t,M);if(O){const w={};return Object.entries(O).forEach(([L,F])=>{w[L]=typeof F=="function"?F(Z({},R,{theme:M})):F}),o(R,w)}return null}),t&&!n&&x.push(R=>{const M=La(Z({},R,{defaultTheme:v,themeId:i}));return bF(R,IF(t,M),M,t)}),r||x.push(A);const P=x.length-m.length;if(Array.isArray(p)&&P>0){const R=new Array(P).fill("");S=[...p,...R],S.raw=[...p.raw,...R]}else typeof p=="function"&&p.__emotion_real!==p&&(S=R=>p(Z({},R,{theme:La(Z({},R,{defaultTheme:v,themeId:i}))})));const E=h(S,...x);return f.muiName&&(E.muiName=f.muiName),E};return h.withConfig&&(c.withConfig=h.withConfig),c}}const NF=e2(),BF=NF;function i2(e){const{theme:i,name:v,props:y}=e;return!i||!i.components||!i.components[v]||!i.components[v].defaultProps?y:Jp(i.components[v].defaultProps,y)}function n2({props:e,name:i,defaultTheme:v,themeId:y}){let C=uf(v);return y&&(C=C[y]||C),i2({theme:C,name:i,props:e})}function dm(e,i=0,v=1){return Math.min(Math.max(i,e),v)}function GF(e){e=e.slice(1);const i=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let v=e.match(i);return v&&v[0].length===1&&(v=v.map(y=>y+y)),v?`rgb${v.length===4?"a":""}(${v.map((y,C)=>C<3?parseInt(y,16):Math.round(parseInt(y,16)/255*1e3)/1e3).join(", ")})`:""}function zr(e){if(e.type)return e;if(e.charAt(0)==="#")return zr(GF(e));const i=e.indexOf("("),v=e.substring(0,i);if(["rgb","rgba","hsl","hsla","color"].indexOf(v)===-1)throw new Error(rr(9,e));let y=e.substring(i+1,e.length-1),C;if(v==="color"){if(y=y.split(" "),C=y.shift(),y.length===4&&y[3].charAt(0)==="/"&&(y[3]=y[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(C)===-1)throw new Error(rr(10,C))}else y=y.split(",");return y=y.map(A=>parseFloat(A)),{type:v,values:y,colorSpace:C}}function hf(e){const{type:i,colorSpace:v}=e;let{values:y}=e;return i.indexOf("rgb")!==-1?y=y.map((C,A)=>A<3?parseInt(C,10):C):i.indexOf("hsl")!==-1&&(y[1]=`${y[1]}%`,y[2]=`${y[2]}%`),i.indexOf("color")!==-1?y=`${v} ${y.join(" ")}`:y=`${y.join(", ")}`,`${i}(${y})`}function UF(e){e=zr(e);const{values:i}=e,v=i[0],y=i[1]/100,C=i[2]/100,A=y*Math.min(C,1-C),f=(l,g=(l+v/30)%12)=>C-A*Math.max(Math.min(g-3,9-g,1),-1);let T="rgb";const t=[Math.round(f(0)*255),Math.round(f(8)*255),Math.round(f(4)*255)];return e.type==="hsla"&&(T+="a",t.push(i[3])),hf({type:T,values:t})}function ky(e){e=zr(e);let i=e.type==="hsl"||e.type==="hsla"?zr(UF(e)).values:e.values;return i=i.map(v=>(e.type!=="color"&&(v/=255),v<=.03928?v/12.92:((v+.055)/1.055)**2.4)),Number((.2126*i[0]+.7152*i[1]+.0722*i[2]).toFixed(3))}function zF(e,i){const v=ky(e),y=ky(i);return(Math.max(v,y)+.05)/(Math.min(v,y)+.05)}function Qt(e,i){return e=zr(e),i=dm(i),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${i}`:e.values[3]=i,hf(e)}function r2(e,i){if(e=zr(e),i=dm(i),e.type.indexOf("hsl")!==-1)e.values[2]*=1-i;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let v=0;v<3;v+=1)e.values[v]*=1-i;return hf(e)}function s2(e,i){if(e=zr(e),i=dm(i),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*i;else if(e.type.indexOf("rgb")!==-1)for(let v=0;v<3;v+=1)e.values[v]+=(255-e.values[v])*i;else if(e.type.indexOf("color")!==-1)for(let v=0;v<3;v+=1)e.values[v]+=(1-e.values[v])*i;return hf(e)}const VF=["className","component","disableGutters","fixed","maxWidth","classes"],WF=lf(),XF=BF("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.root,i[`maxWidth${Rt(String(v.maxWidth))}`],v.fixed&&i.fixed,v.disableGutters&&i.disableGutters]}}),YF=e=>n2({props:e,name:"MuiContainer",defaultTheme:WF}),HF=(e,i)=>{const v=t=>Ot(i,t),{classes:y,fixed:C,disableGutters:A,maxWidth:f}=e,T={root:["root",f&&`maxWidth${Rt(String(f))}`,C&&"fixed",A&&"disableGutters"]};return Ft(T,v,y)};function $F(e={}){const{createStyledComponent:i=XF,useThemeProps:v=YF,componentName:y="MuiContainer"}=e,C=i(({theme:f,ownerState:T})=>Z({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!T.disableGutters&&{paddingLeft:f.spacing(2),paddingRight:f.spacing(2),[f.breakpoints.up("sm")]:{paddingLeft:f.spacing(3),paddingRight:f.spacing(3)}}),({theme:f,ownerState:T})=>T.fixed&&Object.keys(f.breakpoints.values).reduce((t,l)=>{const g=l,u=f.breakpoints.values[g];return u!==0&&(t[f.breakpoints.up(g)]={maxWidth:`${u}${f.breakpoints.unit}`}),t},{}),({theme:f,ownerState:T})=>Z({},T.maxWidth==="xs"&&{[f.breakpoints.up("xs")]:{maxWidth:Math.max(f.breakpoints.values.xs,444)}},T.maxWidth&&T.maxWidth!=="xs"&&{[f.breakpoints.up(T.maxWidth)]:{maxWidth:`${f.breakpoints.values[T.maxWidth]}${f.breakpoints.unit}`}}));return Q.forwardRef(function(T,t){const l=v(T),{className:g,component:u="div",disableGutters:o=!1,fixed:a=!1,maxWidth:n="lg"}=l,r=yt(l,VF),d=Z({},l,{component:u,disableGutters:o,fixed:a,maxWidth:n}),s=HF(d,y);return H.jsx(C,Z({as:u,ownerState:d,className:xt(s.root,g),ref:t},r))})}function jF(e,i){return Z({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},i)}const kF=["mode","contrastThreshold","tonalOffset"],Ky={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:jo.white,default:jo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Pd={text:{primary:jo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:jo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Qy(e,i,v,y){const C=y.light||y,A=y.dark||y*1.5;e[i]||(e.hasOwnProperty(v)?e[i]=e[v]:i==="light"?e.light=s2(e.main,C):i==="dark"&&(e.dark=r2(e.main,A)))}function KF(e="light"){return e==="dark"?{main:_r[200],light:_r[50],dark:_r[400]}:{main:_r[700],light:_r[400],dark:_r[800]}}function QF(e="light"){return e==="dark"?{main:qr[200],light:qr[50],dark:qr[400]}:{main:qr[500],light:qr[300],dark:qr[700]}}function ZF(e="light"){return e==="dark"?{main:Jr[500],light:Jr[300],dark:Jr[700]}:{main:Jr[700],light:Jr[400],dark:Jr[800]}}function JF(e="light"){return e==="dark"?{main:ts[400],light:ts[300],dark:ts[700]}:{main:ts[700],light:ts[500],dark:ts[900]}}function qF(e="light"){return e==="dark"?{main:es[400],light:es[300],dark:es[700]}:{main:es[800],light:es[500],dark:es[900]}}function _F(e="light"){return e==="dark"?{main:wa[400],light:wa[300],dark:wa[700]}:{main:"#ed6c02",light:wa[500],dark:wa[900]}}function t4(e){const{mode:i="light",contrastThreshold:v=3,tonalOffset:y=.2}=e,C=yt(e,kF),A=e.primary||KF(i),f=e.secondary||QF(i),T=e.error||ZF(i),t=e.info||JF(i),l=e.success||qF(i),g=e.warning||_F(i);function u(r){return zF(r,Pd.text.primary)>=v?Pd.text.primary:Ky.text.primary}const o=({color:r,name:d,mainShade:s=500,lightShade:h=300,darkShade:c=700})=>{if(r=Z({},r),!r.main&&r[s]&&(r.main=r[s]),!r.hasOwnProperty("main"))throw new Error(rr(11,d?` (${d})`:"",s));if(typeof r.main!="string")throw new Error(rr(12,d?` (${d})`:"",JSON.stringify(r.main)));return Qy(r,"light",h,y),Qy(r,"dark",c,y),r.contrastText||(r.contrastText=u(r.main)),r},a={dark:Pd,light:Ky};return Si(Z({common:Z({},jo),mode:i,primary:o({color:A,name:"primary"}),secondary:o({color:f,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:o({color:T,name:"error"}),warning:o({color:g,name:"warning"}),info:o({color:t,name:"info"}),success:o({color:l,name:"success"}),grey:sw,contrastThreshold:v,getContrastText:u,augmentColor:o,tonalOffset:y},a[i]),C)}const e4=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function i4(e){return Math.round(e*1e5)/1e5}const Zy={textTransform:"uppercase"},Jy='"Roboto", "Helvetica", "Arial", sans-serif';function n4(e,i){const v=typeof i=="function"?i(e):i,{fontFamily:y=Jy,fontSize:C=14,fontWeightLight:A=300,fontWeightRegular:f=400,fontWeightMedium:T=500,fontWeightBold:t=700,htmlFontSize:l=16,allVariants:g,pxToRem:u}=v,o=yt(v,e4),a=C/14,n=u||(s=>`${s/l*a}rem`),r=(s,h,c,p,m)=>Z({fontFamily:y,fontWeight:s,fontSize:n(h),lineHeight:c},y===Jy?{letterSpacing:`${i4(p/h)}em`}:{},m,g),d={h1:r(A,96,1.167,-1.5),h2:r(A,60,1.2,-.5),h3:r(f,48,1.167,0),h4:r(f,34,1.235,.25),h5:r(f,24,1.334,0),h6:r(T,20,1.6,.15),subtitle1:r(f,16,1.75,.15),subtitle2:r(T,14,1.57,.1),body1:r(f,16,1.5,.15),body2:r(f,14,1.43,.15),button:r(T,14,1.75,.4,Zy),caption:r(f,12,1.66,.4),overline:r(f,12,2.66,1,Zy),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Si(Z({htmlFontSize:l,pxToRem:n,fontFamily:y,fontSize:C,fontWeightLight:A,fontWeightRegular:f,fontWeightMedium:T,fontWeightBold:t},d),o,{clone:!1})}const r4=.2,s4=.14,a4=.12;function te(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${r4})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${s4})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${a4})`].join(",")}const o4=["none",te(0,2,1,-1,0,1,1,0,0,1,3,0),te(0,3,1,-2,0,2,2,0,0,1,5,0),te(0,3,3,-2,0,3,4,0,0,1,8,0),te(0,2,4,-1,0,4,5,0,0,1,10,0),te(0,3,5,-1,0,5,8,0,0,1,14,0),te(0,3,5,-1,0,6,10,0,0,1,18,0),te(0,4,5,-2,0,7,10,1,0,2,16,1),te(0,5,5,-3,0,8,10,1,0,3,14,2),te(0,5,6,-3,0,9,12,1,0,3,16,2),te(0,6,6,-3,0,10,14,1,0,4,18,3),te(0,6,7,-4,0,11,15,1,0,4,20,3),te(0,7,8,-4,0,12,17,2,0,5,22,4),te(0,7,8,-4,0,13,19,2,0,5,24,4),te(0,7,9,-4,0,14,21,2,0,5,26,4),te(0,8,9,-5,0,15,22,2,0,6,28,5),te(0,8,10,-5,0,16,24,2,0,6,30,5),te(0,8,11,-5,0,17,26,2,0,6,32,5),te(0,9,11,-5,0,18,28,2,0,7,34,6),te(0,9,12,-6,0,19,29,2,0,7,36,6),te(0,10,13,-6,0,20,31,3,0,8,38,7),te(0,10,13,-6,0,21,33,3,0,8,40,7),te(0,10,14,-6,0,22,35,3,0,8,42,7),te(0,11,14,-7,0,23,36,3,0,9,44,8),te(0,11,15,-7,0,24,38,3,0,9,46,8)],l4=o4,u4=["duration","easing","delay"],h4={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},a2={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qy(e){return`${Math.round(e)}ms`}function f4(e){if(!e)return 0;const i=e/36;return Math.round((4+15*i**.25+i/5)*10)}function d4(e){const i=Z({},h4,e.easing),v=Z({},a2,e.duration);return Z({getAutoHeightDuration:f4,create:(C=["all"],A={})=>{const{duration:f=v.standard,easing:T=i.easeInOut,delay:t=0}=A;return yt(A,u4),(Array.isArray(C)?C:[C]).map(l=>`${l} ${typeof f=="string"?f:qy(f)} ${T} ${typeof t=="string"?t:qy(t)}`).join(",")}},e,{easing:i,duration:v})}const c4={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},v4=c4,p4=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function cm(e={},...i){const{mixins:v={},palette:y={},transitions:C={},typography:A={}}=e,f=yt(e,p4);if(e.vars)throw new Error(rr(18));const T=t4(y),t=lf(e);let l=Si(t,{mixins:jF(t.breakpoints,v),palette:T,shadows:l4.slice(),typography:n4(T,A),transitions:d4(C),zIndex:Z({},v4)});return l=Si(l,f),l=i.reduce((g,u)=>Si(g,u),l),l.unstable_sxConfig=Z({},af,f==null?void 0:f.unstable_sxConfig),l.unstable_sx=function(u){return of({sx:u,theme:this})},l}function m4(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function g4(e){return parseFloat(e)}const y4=cm(),ff=y4;function Pn(){const e=uf(ff);return e[fl]||e}function Lt({props:e,name:i}){return n2({props:e,name:i,defaultTheme:ff,themeId:fl})}const Yi=e=>mo(e)&&e!=="classes",x4=mo,T4=e2({themeId:fl,defaultTheme:ff,rootShouldForwardProp:Yi}),gt=T4,S4=e=>{let i;return e<1?i=5.11916*e**2:i=4.5*Math.log(e+1)+2,(i/100).toFixed(2)},_y=S4;function Vr(e){return typeof e=="string"}function ja(e,i,v){return e===void 0||Vr(e)?i:Z({},i,{ownerState:Z({},i.ownerState,v)})}const E4={disableDefaultClasses:!1},C4=Q.createContext(E4);function o2(e){const{disableDefaultClasses:i}=Q.useContext(C4);return v=>i?"":e(v)}function P4(e,i=[]){if(e===void 0)return{};const v={};return Object.keys(e).filter(y=>y.match(/^on[A-Z]/)&&typeof e[y]=="function"&&!i.includes(y)).forEach(y=>{v[y]=e[y]}),v}function uv(e,i){return typeof e=="function"?e(i):e}function tx(e){if(e===void 0)return{};const i={};return Object.keys(e).filter(v=>!(v.match(/^on[A-Z]/)&&typeof e[v]=="function")).forEach(v=>{i[v]=e[v]}),i}function R4(e){const{getSlotProps:i,additionalProps:v,externalSlotProps:y,externalForwardedProps:C,className:A}=e;if(!i){const a=xt(C==null?void 0:C.className,y==null?void 0:y.className,A,v==null?void 0:v.className),n=Z({},v==null?void 0:v.style,C==null?void 0:C.style,y==null?void 0:y.style),r=Z({},v,C,y);return a.length>0&&(r.className=a),Object.keys(n).length>0&&(r.style=n),{props:r,internalRef:void 0}}const f=P4(Z({},C,y)),T=tx(y),t=tx(C),l=i(f),g=xt(l==null?void 0:l.className,v==null?void 0:v.className,A,C==null?void 0:C.className,y==null?void 0:y.className),u=Z({},l==null?void 0:l.style,v==null?void 0:v.style,C==null?void 0:C.style,y==null?void 0:y.style),o=Z({},l,v,t,T);return g.length>0&&(o.className=g),Object.keys(u).length>0&&(o.style=u),{props:o,internalRef:l.ref}}const A4=["elementType","externalSlotProps","ownerState"];function Jo(e){var i;const{elementType:v,externalSlotProps:y,ownerState:C}=e,A=yt(e,A4),f=uv(y,C),{props:T,internalRef:t}=R4(Z({},A,{externalSlotProps:f})),l=pe(t,f==null?void 0:f.ref,(i=e.additionalProps)==null?void 0:i.ref);return ja(v,Z({},T,{ref:l}),C)}const M4=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function O4(e){const i=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(i)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:i}function w4(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const i=y=>e.ownerDocument.querySelector(`input[type="radio"]${y}`);let v=i(`[name="${e.name}"]:checked`);return v||(v=i(`[name="${e.name}"]`)),v!==e}function F4(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||w4(e))}function L4(e){const i=[],v=[];return Array.from(e.querySelectorAll(M4)).forEach((y,C)=>{const A=O4(y);A===-1||!F4(y)||(A===0?i.push(y):v.push({documentOrder:C,tabIndex:A,node:y}))}),v.sort((y,C)=>y.tabIndex===C.tabIndex?y.documentOrder-C.documentOrder:y.tabIndex-C.tabIndex).map(y=>y.node).concat(i)}function I4(){return!0}function b4(e){const{children:i,disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableRestoreFocus:C=!1,getTabbable:A=L4,isEnabled:f=I4,open:T}=e,t=Q.useRef(!1),l=Q.useRef(null),g=Q.useRef(null),u=Q.useRef(null),o=Q.useRef(null),a=Q.useRef(!1),n=Q.useRef(null),r=pe(i.ref,n),d=Q.useRef(null);Q.useEffect(()=>{!T||!n.current||(a.current=!v)},[v,T]),Q.useEffect(()=>{if(!T||!n.current)return;const c=Ge(n.current);return n.current.contains(c.activeElement)||(n.current.hasAttribute("tabIndex")||n.current.setAttribute("tabIndex","-1"),a.current&&n.current.focus()),()=>{C||(u.current&&u.current.focus&&(t.current=!0,u.current.focus()),u.current=null)}},[T]),Q.useEffect(()=>{if(!T||!n.current)return;const c=Ge(n.current),p=S=>{const{current:P}=n;if(P!==null){if(!c.hasFocus()||y||!f()||t.current){t.current=!1;return}if(!P.contains(c.activeElement)){if(S&&o.current!==S.target||c.activeElement!==o.current)o.current=null;else if(o.current!==null)return;if(!a.current)return;let M=[];if((c.activeElement===l.current||c.activeElement===g.current)&&(M=A(n.current)),M.length>0){var E,R;const O=!!((E=d.current)!=null&&E.shiftKey&&((R=d.current)==null?void 0:R.key)==="Tab"),w=M[0],L=M[M.length-1];typeof w!="string"&&typeof L!="string"&&(O?L.focus():w.focus())}else P.focus()}}},m=S=>{d.current=S,!(y||!f()||S.key!=="Tab")&&c.activeElement===n.current&&S.shiftKey&&(t.current=!0,g.current&&g.current.focus())};c.addEventListener("focusin",p),c.addEventListener("keydown",m,!0);const x=setInterval(()=>{c.activeElement&&c.activeElement.tagName==="BODY"&&p(null)},50);return()=>{clearInterval(x),c.removeEventListener("focusin",p),c.removeEventListener("keydown",m,!0)}},[v,y,C,f,T,A]);const s=c=>{u.current===null&&(u.current=c.relatedTarget),a.current=!0,o.current=c.target;const p=i.props.onFocus;p&&p(c)},h=c=>{u.current===null&&(u.current=c.relatedTarget),a.current=!0};return H.jsxs(Q.Fragment,{children:[H.jsx("div",{tabIndex:T?0:-1,onFocus:h,ref:l,"data-testid":"sentinelStart"}),Q.cloneElement(i,{ref:r,onFocus:s}),H.jsx("div",{tabIndex:T?0:-1,onFocus:h,ref:g,"data-testid":"sentinelEnd"})]})}var Je="top",Oi="bottom",wi="right",qe="left",vm="auto",ml=[Je,Oi,wi,qe],ea="start",qo="end",D4="clippingParents",l2="viewport",Ia="popper",N4="reference",ex=ml.reduce(function(e,i){return e.concat([i+"-"+ea,i+"-"+qo])},[]),u2=[].concat(ml,[vm]).reduce(function(e,i){return e.concat([i,i+"-"+ea,i+"-"+qo])},[]),B4="beforeRead",G4="read",U4="afterRead",z4="beforeMain",V4="main",W4="afterMain",X4="beforeWrite",Y4="write",H4="afterWrite",$4=[B4,G4,U4,z4,V4,W4,X4,Y4,H4];function rn(e){return e?(e.nodeName||"").toLowerCase():null}function fi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var i=e.ownerDocument;return i&&i.defaultView||window}return e}function Wr(e){var i=fi(e).Element;return e instanceof i||e instanceof Element}function Ei(e){var i=fi(e).HTMLElement;return e instanceof i||e instanceof HTMLElement}function pm(e){if(typeof ShadowRoot>"u")return!1;var i=fi(e).ShadowRoot;return e instanceof i||e instanceof ShadowRoot}function j4(e){var i=e.state;Object.keys(i.elements).forEach(function(v){var y=i.styles[v]||{},C=i.attributes[v]||{},A=i.elements[v];!Ei(A)||!rn(A)||(Object.assign(A.style,y),Object.keys(C).forEach(function(f){var T=C[f];T===!1?A.removeAttribute(f):A.setAttribute(f,T===!0?"":T)}))})}function k4(e){var i=e.state,v={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(i.elements.popper.style,v.popper),i.styles=v,i.elements.arrow&&Object.assign(i.elements.arrow.style,v.arrow),function(){Object.keys(i.elements).forEach(function(y){var C=i.elements[y],A=i.attributes[y]||{},f=Object.keys(i.styles.hasOwnProperty(y)?i.styles[y]:v[y]),T=f.reduce(function(t,l){return t[l]="",t},{});!Ei(C)||!rn(C)||(Object.assign(C.style,T),Object.keys(A).forEach(function(t){C.removeAttribute(t)}))})}}const K4={name:"applyStyles",enabled:!0,phase:"write",fn:j4,effect:k4,requires:["computeStyles"]};function en(e){return e.split("-")[0]}var Fr=Math.max,lh=Math.min,ia=Math.round;function hv(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(i){return i.brand+"/"+i.version}).join(" "):navigator.userAgent}function h2(){return!/^((?!chrome|android).)*safari/i.test(hv())}function na(e,i,v){i===void 0&&(i=!1),v===void 0&&(v=!1);var y=e.getBoundingClientRect(),C=1,A=1;i&&Ei(e)&&(C=e.offsetWidth>0&&ia(y.width)/e.offsetWidth||1,A=e.offsetHeight>0&&ia(y.height)/e.offsetHeight||1);var f=Wr(e)?fi(e):window,T=f.visualViewport,t=!h2()&&v,l=(y.left+(t&&T?T.offsetLeft:0))/C,g=(y.top+(t&&T?T.offsetTop:0))/A,u=y.width/C,o=y.height/A;return{width:u,height:o,top:g,right:l+u,bottom:g+o,left:l,x:l,y:g}}function mm(e){var i=na(e),v=e.offsetWidth,y=e.offsetHeight;return Math.abs(i.width-v)<=1&&(v=i.width),Math.abs(i.height-y)<=1&&(y=i.height),{x:e.offsetLeft,y:e.offsetTop,width:v,height:y}}function f2(e,i){var v=i.getRootNode&&i.getRootNode();if(e.contains(i))return!0;if(v&&pm(v)){var y=i;do{if(y&&e.isSameNode(y))return!0;y=y.parentNode||y.host}while(y)}return!1}function En(e){return fi(e).getComputedStyle(e)}function Q4(e){return["table","td","th"].indexOf(rn(e))>=0}function hr(e){return((Wr(e)?e.ownerDocument:e.document)||window.document).documentElement}function df(e){return rn(e)==="html"?e:e.assignedSlot||e.parentNode||(pm(e)?e.host:null)||hr(e)}function ix(e){return!Ei(e)||En(e).position==="fixed"?null:e.offsetParent}function Z4(e){var i=/firefox/i.test(hv()),v=/Trident/i.test(hv());if(v&&Ei(e)){var y=En(e);if(y.position==="fixed")return null}var C=df(e);for(pm(C)&&(C=C.host);Ei(C)&&["html","body"].indexOf(rn(C))<0;){var A=En(C);if(A.transform!=="none"||A.perspective!=="none"||A.contain==="paint"||["transform","perspective"].indexOf(A.willChange)!==-1||i&&A.willChange==="filter"||i&&A.filter&&A.filter!=="none")return C;C=C.parentNode}return null}function gl(e){for(var i=fi(e),v=ix(e);v&&Q4(v)&&En(v).position==="static";)v=ix(v);return v&&(rn(v)==="html"||rn(v)==="body"&&En(v).position==="static")?i:v||Z4(e)||i}function gm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function go(e,i,v){return Fr(e,lh(i,v))}function J4(e,i,v){var y=go(e,i,v);return y>v?v:y}function d2(){return{top:0,right:0,bottom:0,left:0}}function c2(e){return Object.assign({},d2(),e)}function v2(e,i){return i.reduce(function(v,y){return v[y]=e,v},{})}var q4=function(i,v){return i=typeof i=="function"?i(Object.assign({},v.rects,{placement:v.placement})):i,c2(typeof i!="number"?i:v2(i,ml))};function _4(e){var i,v=e.state,y=e.name,C=e.options,A=v.elements.arrow,f=v.modifiersData.popperOffsets,T=en(v.placement),t=gm(T),l=[qe,wi].indexOf(T)>=0,g=l?"height":"width";if(!(!A||!f)){var u=q4(C.padding,v),o=mm(A),a=t==="y"?Je:qe,n=t==="y"?Oi:wi,r=v.rects.reference[g]+v.rects.reference[t]-f[t]-v.rects.popper[g],d=f[t]-v.rects.reference[t],s=gl(A),h=s?t==="y"?s.clientHeight||0:s.clientWidth||0:0,c=r/2-d/2,p=u[a],m=h-o[g]-u[n],x=h/2-o[g]/2+c,S=go(p,x,m),P=t;v.modifiersData[y]=(i={},i[P]=S,i.centerOffset=S-x,i)}}function tL(e){var i=e.state,v=e.options,y=v.element,C=y===void 0?"[data-popper-arrow]":y;C!=null&&(typeof C=="string"&&(C=i.elements.popper.querySelector(C),!C)||f2(i.elements.popper,C)&&(i.elements.arrow=C))}const eL={name:"arrow",enabled:!0,phase:"main",fn:_4,effect:tL,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ra(e){return e.split("-")[1]}var iL={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nL(e,i){var v=e.x,y=e.y,C=i.devicePixelRatio||1;return{x:ia(v*C)/C||0,y:ia(y*C)/C||0}}function nx(e){var i,v=e.popper,y=e.popperRect,C=e.placement,A=e.variation,f=e.offsets,T=e.position,t=e.gpuAcceleration,l=e.adaptive,g=e.roundOffsets,u=e.isFixed,o=f.x,a=o===void 0?0:o,n=f.y,r=n===void 0?0:n,d=typeof g=="function"?g({x:a,y:r}):{x:a,y:r};a=d.x,r=d.y;var s=f.hasOwnProperty("x"),h=f.hasOwnProperty("y"),c=qe,p=Je,m=window;if(l){var x=gl(v),S="clientHeight",P="clientWidth";if(x===fi(v)&&(x=hr(v),En(x).position!=="static"&&T==="absolute"&&(S="scrollHeight",P="scrollWidth")),x=x,C===Je||(C===qe||C===wi)&&A===qo){p=Oi;var E=u&&x===m&&m.visualViewport?m.visualViewport.height:x[S];r-=E-y.height,r*=t?1:-1}if(C===qe||(C===Je||C===Oi)&&A===qo){c=wi;var R=u&&x===m&&m.visualViewport?m.visualViewport.width:x[P];a-=R-y.width,a*=t?1:-1}}var M=Object.assign({position:T},l&&iL),O=g===!0?nL({x:a,y:r},fi(v)):{x:a,y:r};if(a=O.x,r=O.y,t){var w;return Object.assign({},M,(w={},w[p]=h?"0":"",w[c]=s?"0":"",w.transform=(m.devicePixelRatio||1)<=1?"translate("+a+"px, "+r+"px)":"translate3d("+a+"px, "+r+"px, 0)",w))}return Object.assign({},M,(i={},i[p]=h?r+"px":"",i[c]=s?a+"px":"",i.transform="",i))}function rL(e){var i=e.state,v=e.options,y=v.gpuAcceleration,C=y===void 0?!0:y,A=v.adaptive,f=A===void 0?!0:A,T=v.roundOffsets,t=T===void 0?!0:T,l={placement:en(i.placement),variation:ra(i.placement),popper:i.elements.popper,popperRect:i.rects.popper,gpuAcceleration:C,isFixed:i.options.strategy==="fixed"};i.modifiersData.popperOffsets!=null&&(i.styles.popper=Object.assign({},i.styles.popper,nx(Object.assign({},l,{offsets:i.modifiersData.popperOffsets,position:i.options.strategy,adaptive:f,roundOffsets:t})))),i.modifiersData.arrow!=null&&(i.styles.arrow=Object.assign({},i.styles.arrow,nx(Object.assign({},l,{offsets:i.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:t})))),i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-placement":i.placement})}const sL={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:rL,data:{}};var Yl={passive:!0};function aL(e){var i=e.state,v=e.instance,y=e.options,C=y.scroll,A=C===void 0?!0:C,f=y.resize,T=f===void 0?!0:f,t=fi(i.elements.popper),l=[].concat(i.scrollParents.reference,i.scrollParents.popper);return A&&l.forEach(function(g){g.addEventListener("scroll",v.update,Yl)}),T&&t.addEventListener("resize",v.update,Yl),function(){A&&l.forEach(function(g){g.removeEventListener("scroll",v.update,Yl)}),T&&t.removeEventListener("resize",v.update,Yl)}}const oL={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:aL,data:{}};var lL={left:"right",right:"left",bottom:"top",top:"bottom"};function Ru(e){return e.replace(/left|right|bottom|top/g,function(i){return lL[i]})}var uL={start:"end",end:"start"};function rx(e){return e.replace(/start|end/g,function(i){return uL[i]})}function ym(e){var i=fi(e),v=i.pageXOffset,y=i.pageYOffset;return{scrollLeft:v,scrollTop:y}}function xm(e){return na(hr(e)).left+ym(e).scrollLeft}function hL(e,i){var v=fi(e),y=hr(e),C=v.visualViewport,A=y.clientWidth,f=y.clientHeight,T=0,t=0;if(C){A=C.width,f=C.height;var l=h2();(l||!l&&i==="fixed")&&(T=C.offsetLeft,t=C.offsetTop)}return{width:A,height:f,x:T+xm(e),y:t}}function fL(e){var i,v=hr(e),y=ym(e),C=(i=e.ownerDocument)==null?void 0:i.body,A=Fr(v.scrollWidth,v.clientWidth,C?C.scrollWidth:0,C?C.clientWidth:0),f=Fr(v.scrollHeight,v.clientHeight,C?C.scrollHeight:0,C?C.clientHeight:0),T=-y.scrollLeft+xm(e),t=-y.scrollTop;return En(C||v).direction==="rtl"&&(T+=Fr(v.clientWidth,C?C.clientWidth:0)-A),{width:A,height:f,x:T,y:t}}function Tm(e){var i=En(e),v=i.overflow,y=i.overflowX,C=i.overflowY;return/auto|scroll|overlay|hidden/.test(v+C+y)}function p2(e){return["html","body","#document"].indexOf(rn(e))>=0?e.ownerDocument.body:Ei(e)&&Tm(e)?e:p2(df(e))}function yo(e,i){var v;i===void 0&&(i=[]);var y=p2(e),C=y===((v=e.ownerDocument)==null?void 0:v.body),A=fi(y),f=C?[A].concat(A.visualViewport||[],Tm(y)?y:[]):y,T=i.concat(f);return C?T:T.concat(yo(df(f)))}function fv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dL(e,i){var v=na(e,!1,i==="fixed");return v.top=v.top+e.clientTop,v.left=v.left+e.clientLeft,v.bottom=v.top+e.clientHeight,v.right=v.left+e.clientWidth,v.width=e.clientWidth,v.height=e.clientHeight,v.x=v.left,v.y=v.top,v}function sx(e,i,v){return i===l2?fv(hL(e,v)):Wr(i)?dL(i,v):fv(fL(hr(e)))}function cL(e){var i=yo(df(e)),v=["absolute","fixed"].indexOf(En(e).position)>=0,y=v&&Ei(e)?gl(e):e;return Wr(y)?i.filter(function(C){return Wr(C)&&f2(C,y)&&rn(C)!=="body"}):[]}function vL(e,i,v,y){var C=i==="clippingParents"?cL(e):[].concat(i),A=[].concat(C,[v]),f=A[0],T=A.reduce(function(t,l){var g=sx(e,l,y);return t.top=Fr(g.top,t.top),t.right=lh(g.right,t.right),t.bottom=lh(g.bottom,t.bottom),t.left=Fr(g.left,t.left),t},sx(e,f,y));return T.width=T.right-T.left,T.height=T.bottom-T.top,T.x=T.left,T.y=T.top,T}function m2(e){var i=e.reference,v=e.element,y=e.placement,C=y?en(y):null,A=y?ra(y):null,f=i.x+i.width/2-v.width/2,T=i.y+i.height/2-v.height/2,t;switch(C){case Je:t={x:f,y:i.y-v.height};break;case Oi:t={x:f,y:i.y+i.height};break;case wi:t={x:i.x+i.width,y:T};break;case qe:t={x:i.x-v.width,y:T};break;default:t={x:i.x,y:i.y}}var l=C?gm(C):null;if(l!=null){var g=l==="y"?"height":"width";switch(A){case ea:t[l]=t[l]-(i[g]/2-v[g]/2);break;case qo:t[l]=t[l]+(i[g]/2-v[g]/2);break}}return t}function _o(e,i){i===void 0&&(i={});var v=i,y=v.placement,C=y===void 0?e.placement:y,A=v.strategy,f=A===void 0?e.strategy:A,T=v.boundary,t=T===void 0?D4:T,l=v.rootBoundary,g=l===void 0?l2:l,u=v.elementContext,o=u===void 0?Ia:u,a=v.altBoundary,n=a===void 0?!1:a,r=v.padding,d=r===void 0?0:r,s=c2(typeof d!="number"?d:v2(d,ml)),h=o===Ia?N4:Ia,c=e.rects.popper,p=e.elements[n?h:o],m=vL(Wr(p)?p:p.contextElement||hr(e.elements.popper),t,g,f),x=na(e.elements.reference),S=m2({reference:x,element:c,strategy:"absolute",placement:C}),P=fv(Object.assign({},c,S)),E=o===Ia?P:x,R={top:m.top-E.top+s.top,bottom:E.bottom-m.bottom+s.bottom,left:m.left-E.left+s.left,right:E.right-m.right+s.right},M=e.modifiersData.offset;if(o===Ia&&M){var O=M[C];Object.keys(R).forEach(function(w){var L=[wi,Oi].indexOf(w)>=0?1:-1,F=[Je,Oi].indexOf(w)>=0?"y":"x";R[w]+=O[F]*L})}return R}function pL(e,i){i===void 0&&(i={});var v=i,y=v.placement,C=v.boundary,A=v.rootBoundary,f=v.padding,T=v.flipVariations,t=v.allowedAutoPlacements,l=t===void 0?u2:t,g=ra(y),u=g?T?ex:ex.filter(function(n){return ra(n)===g}):ml,o=u.filter(function(n){return l.indexOf(n)>=0});o.length===0&&(o=u);var a=o.reduce(function(n,r){return n[r]=_o(e,{placement:r,boundary:C,rootBoundary:A,padding:f})[en(r)],n},{});return Object.keys(a).sort(function(n,r){return a[n]-a[r]})}function mL(e){if(en(e)===vm)return[];var i=Ru(e);return[rx(e),i,rx(i)]}function gL(e){var i=e.state,v=e.options,y=e.name;if(!i.modifiersData[y]._skip){for(var C=v.mainAxis,A=C===void 0?!0:C,f=v.altAxis,T=f===void 0?!0:f,t=v.fallbackPlacements,l=v.padding,g=v.boundary,u=v.rootBoundary,o=v.altBoundary,a=v.flipVariations,n=a===void 0?!0:a,r=v.allowedAutoPlacements,d=i.options.placement,s=en(d),h=s===d,c=t||(h||!n?[Ru(d)]:mL(d)),p=[d].concat(c).reduce(function(V,I){return V.concat(en(I)===vm?pL(i,{placement:I,boundary:g,rootBoundary:u,padding:l,flipVariations:n,allowedAutoPlacements:r}):I)},[]),m=i.rects.reference,x=i.rects.popper,S=new Map,P=!0,E=p[0],R=0;R=0,F=L?"width":"height",b=_o(i,{placement:M,boundary:g,rootBoundary:u,altBoundary:o,padding:l}),D=L?w?wi:qe:w?Oi:Je;m[F]>x[F]&&(D=Ru(D));var N=Ru(D),z=[];if(A&&z.push(b[O]<=0),T&&z.push(b[D]<=0,b[N]<=0),z.every(function(V){return V})){E=M,P=!1;break}S.set(M,z)}if(P)for(var W=n?3:1,Y=function(I){var B=p.find(function(U){var X=S.get(U);if(X)return X.slice(0,I).every(function($){return $})});if(B)return E=B,"break"},j=W;j>0;j--){var G=Y(j);if(G==="break")break}i.placement!==E&&(i.modifiersData[y]._skip=!0,i.placement=E,i.reset=!0)}}const yL={name:"flip",enabled:!0,phase:"main",fn:gL,requiresIfExists:["offset"],data:{_skip:!1}};function ax(e,i,v){return v===void 0&&(v={x:0,y:0}),{top:e.top-i.height-v.y,right:e.right-i.width+v.x,bottom:e.bottom-i.height+v.y,left:e.left-i.width-v.x}}function ox(e){return[Je,wi,Oi,qe].some(function(i){return e[i]>=0})}function xL(e){var i=e.state,v=e.name,y=i.rects.reference,C=i.rects.popper,A=i.modifiersData.preventOverflow,f=_o(i,{elementContext:"reference"}),T=_o(i,{altBoundary:!0}),t=ax(f,y),l=ax(T,C,A),g=ox(t),u=ox(l);i.modifiersData[v]={referenceClippingOffsets:t,popperEscapeOffsets:l,isReferenceHidden:g,hasPopperEscaped:u},i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":u})}const TL={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:xL};function SL(e,i,v){var y=en(e),C=[qe,Je].indexOf(y)>=0?-1:1,A=typeof v=="function"?v(Object.assign({},i,{placement:e})):v,f=A[0],T=A[1];return f=f||0,T=(T||0)*C,[qe,wi].indexOf(y)>=0?{x:T,y:f}:{x:f,y:T}}function EL(e){var i=e.state,v=e.options,y=e.name,C=v.offset,A=C===void 0?[0,0]:C,f=u2.reduce(function(g,u){return g[u]=SL(u,i.rects,A),g},{}),T=f[i.placement],t=T.x,l=T.y;i.modifiersData.popperOffsets!=null&&(i.modifiersData.popperOffsets.x+=t,i.modifiersData.popperOffsets.y+=l),i.modifiersData[y]=f}const CL={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:EL};function PL(e){var i=e.state,v=e.name;i.modifiersData[v]=m2({reference:i.rects.reference,element:i.rects.popper,strategy:"absolute",placement:i.placement})}const RL={name:"popperOffsets",enabled:!0,phase:"read",fn:PL,data:{}};function AL(e){return e==="x"?"y":"x"}function ML(e){var i=e.state,v=e.options,y=e.name,C=v.mainAxis,A=C===void 0?!0:C,f=v.altAxis,T=f===void 0?!1:f,t=v.boundary,l=v.rootBoundary,g=v.altBoundary,u=v.padding,o=v.tether,a=o===void 0?!0:o,n=v.tetherOffset,r=n===void 0?0:n,d=_o(i,{boundary:t,rootBoundary:l,padding:u,altBoundary:g}),s=en(i.placement),h=ra(i.placement),c=!h,p=gm(s),m=AL(p),x=i.modifiersData.popperOffsets,S=i.rects.reference,P=i.rects.popper,E=typeof r=="function"?r(Object.assign({},i.rects,{placement:i.placement})):r,R=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),M=i.modifiersData.offset?i.modifiersData.offset[i.placement]:null,O={x:0,y:0};if(x){if(A){var w,L=p==="y"?Je:qe,F=p==="y"?Oi:wi,b=p==="y"?"height":"width",D=x[p],N=D+d[L],z=D-d[F],W=a?-P[b]/2:0,Y=h===ea?S[b]:P[b],j=h===ea?-P[b]:-S[b],G=i.elements.arrow,V=a&&G?mm(G):{width:0,height:0},I=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:d2(),B=I[L],U=I[F],X=go(0,S[b],V[b]),$=c?S[b]/2-W-X-B-R.mainAxis:Y-X-B-R.mainAxis,k=c?-S[b]/2+W+X+U+R.mainAxis:j+X+U+R.mainAxis,K=i.elements.arrow&&gl(i.elements.arrow),J=K?p==="y"?K.clientTop||0:K.clientLeft||0:0,q=(w=M==null?void 0:M[p])!=null?w:0,_=D+$-q-J,et=D+k-q,it=go(a?lh(N,_):N,D,a?Fr(z,et):z);x[p]=it,O[p]=it-D}if(T){var tt,st=p==="x"?Je:qe,mt=p==="x"?Oi:wi,ct=x[m],ft=m==="y"?"height":"width",nt=ct+d[st],ot=ct-d[mt],ht=[Je,qe].indexOf(s)!==-1,St=(tt=M==null?void 0:M[m])!=null?tt:0,At=ht?nt:ct-S[ft]-P[ft]-St+R.altAxis,Dt=ht?ct+S[ft]+P[ft]-St-R.altAxis:ot,Pt=a&&ht?J4(At,ct,Dt):go(a?At:nt,ct,a?Dt:ot);x[m]=Pt,O[m]=Pt-ct}i.modifiersData[y]=O}}const OL={name:"preventOverflow",enabled:!0,phase:"main",fn:ML,requiresIfExists:["offset"]};function wL(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function FL(e){return e===fi(e)||!Ei(e)?ym(e):wL(e)}function LL(e){var i=e.getBoundingClientRect(),v=ia(i.width)/e.offsetWidth||1,y=ia(i.height)/e.offsetHeight||1;return v!==1||y!==1}function IL(e,i,v){v===void 0&&(v=!1);var y=Ei(i),C=Ei(i)&&LL(i),A=hr(i),f=na(e,C,v),T={scrollLeft:0,scrollTop:0},t={x:0,y:0};return(y||!y&&!v)&&((rn(i)!=="body"||Tm(A))&&(T=FL(i)),Ei(i)?(t=na(i,!0),t.x+=i.clientLeft,t.y+=i.clientTop):A&&(t.x=xm(A))),{x:f.left+T.scrollLeft-t.x,y:f.top+T.scrollTop-t.y,width:f.width,height:f.height}}function bL(e){var i=new Map,v=new Set,y=[];e.forEach(function(A){i.set(A.name,A)});function C(A){v.add(A.name);var f=[].concat(A.requires||[],A.requiresIfExists||[]);f.forEach(function(T){if(!v.has(T)){var t=i.get(T);t&&C(t)}}),y.push(A)}return e.forEach(function(A){v.has(A.name)||C(A)}),y}function DL(e){var i=bL(e);return $4.reduce(function(v,y){return v.concat(i.filter(function(C){return C.phase===y}))},[])}function NL(e){var i;return function(){return i||(i=new Promise(function(v){Promise.resolve().then(function(){i=void 0,v(e())})})),i}}function BL(e){var i=e.reduce(function(v,y){var C=v[y.name];return v[y.name]=C?Object.assign({},C,y,{options:Object.assign({},C.options,y.options),data:Object.assign({},C.data,y.data)}):y,v},{});return Object.keys(i).map(function(v){return i[v]})}var lx={placement:"bottom",modifiers:[],strategy:"absolute"};function ux(){for(var e=arguments.length,i=new Array(e),v=0;v{A||T(VL(C)||document.body)},[C,A]),Ai(()=>{if(f&&!A)return sh(v,f),()=>{sh(v,null)}},[v,f,A]),A){if(Q.isValidElement(y)){const l={ref:t};return Q.cloneElement(y,l)}return H.jsx(Q.Fragment,{children:y})}return H.jsx(Q.Fragment,{children:f&&wh.createPortal(y,f)})}),g2=WL;function XL(e){return Ot("MuiPopper",e)}wt("MuiPopper",["root"]);const YL=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],HL=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function $L(e,i){if(i==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function dv(e){return typeof e=="function"?e():e}function jL(e){return e.nodeType!==void 0}const kL=()=>Ft({root:["root"]},o2(XL)),KL={},QL=Q.forwardRef(function(i,v){var y;const{anchorEl:C,children:A,direction:f,disablePortal:T,modifiers:t,open:l,placement:g,popperOptions:u,popperRef:o,slotProps:a={},slots:n={},TransitionProps:r}=i,d=yt(i,YL),s=Q.useRef(null),h=pe(s,v),c=Q.useRef(null),p=pe(c,o),m=Q.useRef(p);Ai(()=>{m.current=p},[p]),Q.useImperativeHandle(o,()=>c.current,[]);const x=$L(g,f),[S,P]=Q.useState(x),[E,R]=Q.useState(dv(C));Q.useEffect(()=>{c.current&&c.current.forceUpdate()}),Q.useEffect(()=>{C&&R(dv(C))},[C]),Ai(()=>{if(!E||!l)return;const F=N=>{P(N.placement)};let b=[{name:"preventOverflow",options:{altBoundary:T}},{name:"flip",options:{altBoundary:T}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:N})=>{F(N)}}];t!=null&&(b=b.concat(t)),u&&u.modifiers!=null&&(b=b.concat(u.modifiers));const D=zL(E,s.current,Z({placement:x},u,{modifiers:b}));return m.current(D),()=>{D.destroy(),m.current(null)}},[E,T,t,l,u,x]);const M={placement:S};r!==null&&(M.TransitionProps=r);const O=kL(),w=(y=n.root)!=null?y:"div",L=Jo({elementType:w,externalSlotProps:a.root,externalForwardedProps:d,additionalProps:{role:"tooltip",ref:h},ownerState:i,className:O.root});return H.jsx(w,Z({},L,{children:typeof A=="function"?A(M):A}))}),ZL=Q.forwardRef(function(i,v){const{anchorEl:y,children:C,container:A,direction:f="ltr",disablePortal:T=!1,keepMounted:t=!1,modifiers:l,open:g,placement:u="bottom",popperOptions:o=KL,popperRef:a,style:n,transition:r=!1,slotProps:d={},slots:s={}}=i,h=yt(i,HL),[c,p]=Q.useState(!0),m=()=>{p(!1)},x=()=>{p(!0)};if(!t&&!g&&(!r||c))return null;let S;if(A)S=A;else if(y){const R=dv(y);S=R&&jL(R)?Ge(R).body:Ge(null).body}const P=!g&&t&&(!r||c)?"none":void 0,E=r?{in:g,onEnter:m,onExited:x}:void 0;return H.jsx(g2,{disablePortal:T,container:S,children:H.jsx(QL,Z({anchorEl:y,direction:f,disablePortal:T,modifiers:l,ref:v,open:r?!c:g,placement:u,popperOptions:o,popperRef:a,slotProps:d,slots:s},h,{style:Z({position:"fixed",top:0,left:0,display:P},n),TransitionProps:E,children:C}))})}),JL=ZL;function qL(e){const i=Ge(e);return i.body===e?sr(e).innerWidth>i.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function xo(e,i){i?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function hx(e){return parseInt(sr(e).getComputedStyle(e).paddingRight,10)||0}function _L(e){const v=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,y=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return v||y}function fx(e,i,v,y,C){const A=[i,v,...y];[].forEach.call(e.children,f=>{const T=A.indexOf(f)===-1,t=!_L(f);T&&t&&xo(f,C)})}function Rd(e,i){let v=-1;return e.some((y,C)=>i(y)?(v=C,!0):!1),v}function t9(e,i){const v=[],y=e.container;if(!i.disableScrollLock){if(qL(y)){const f=FE(Ge(y));v.push({value:y.style.paddingRight,property:"padding-right",el:y}),y.style.paddingRight=`${hx(y)+f}px`;const T=Ge(y).querySelectorAll(".mui-fixed");[].forEach.call(T,t=>{v.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${hx(t)+f}px`})}let A;if(y.parentNode instanceof DocumentFragment)A=Ge(y).body;else{const f=y.parentElement,T=sr(y);A=(f==null?void 0:f.nodeName)==="HTML"&&T.getComputedStyle(f).overflowY==="scroll"?f:y}v.push({value:A.style.overflow,property:"overflow",el:A},{value:A.style.overflowX,property:"overflow-x",el:A},{value:A.style.overflowY,property:"overflow-y",el:A}),A.style.overflow="hidden"}return()=>{v.forEach(({value:A,el:f,property:T})=>{A?f.style.setProperty(T,A):f.style.removeProperty(T)})}}function e9(e){const i=[];return[].forEach.call(e.children,v=>{v.getAttribute("aria-hidden")==="true"&&i.push(v)}),i}class i9{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(i,v){let y=this.modals.indexOf(i);if(y!==-1)return y;y=this.modals.length,this.modals.push(i),i.modalRef&&xo(i.modalRef,!1);const C=e9(v);fx(v,i.mount,i.modalRef,C,!0);const A=Rd(this.containers,f=>f.container===v);return A!==-1?(this.containers[A].modals.push(i),y):(this.containers.push({modals:[i],container:v,restore:null,hiddenSiblings:C}),y)}mount(i,v){const y=Rd(this.containers,A=>A.modals.indexOf(i)!==-1),C=this.containers[y];C.restore||(C.restore=t9(C,v))}remove(i,v=!0){const y=this.modals.indexOf(i);if(y===-1)return y;const C=Rd(this.containers,f=>f.modals.indexOf(i)!==-1),A=this.containers[C];if(A.modals.splice(A.modals.indexOf(i),1),this.modals.splice(y,1),A.modals.length===0)A.restore&&A.restore(),i.modalRef&&xo(i.modalRef,v),fx(A.container,i.mount,i.modalRef,A.hiddenSiblings,!1),this.containers.splice(C,1);else{const f=A.modals[A.modals.length-1];f.modalRef&&xo(f.modalRef,!1)}return y}isTopModal(i){return this.modals.length>0&&this.modals[this.modals.length-1]===i}}function n9(e){return Ot("MuiModal",e)}wt("MuiModal",["root","hidden","backdrop"]);const r9=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],s9=e=>{const{open:i,exited:v}=e;return Ft({root:["root",!i&&v&&"hidden"],backdrop:["backdrop"]},o2(n9))};function a9(e){return typeof e=="function"?e():e}function o9(e){return e?e.props.hasOwnProperty("in"):!1}const l9=new i9,u9=Q.forwardRef(function(i,v){var y,C;const{children:A,closeAfterTransition:f=!1,container:T,disableAutoFocus:t=!1,disableEnforceFocus:l=!1,disableEscapeKeyDown:g=!1,disablePortal:u=!1,disableRestoreFocus:o=!1,disableScrollLock:a=!1,hideBackdrop:n=!1,keepMounted:r=!1,manager:d=l9,onBackdropClick:s,onClose:h,onKeyDown:c,open:p,onTransitionEnter:m,onTransitionExited:x,slotProps:S={},slots:P={}}=i,E=yt(i,r9),R=d,[M,O]=Q.useState(!p),w=Q.useRef({}),L=Q.useRef(null),F=Q.useRef(null),b=pe(F,v),D=o9(A),N=(y=i["aria-hidden"])!=null?y:!0,z=()=>Ge(L.current),W=()=>(w.current.modalRef=F.current,w.current.mountNode=L.current,w.current),Y=()=>{R.mount(W(),{disableScrollLock:a}),F.current&&(F.current.scrollTop=0)},j=Xn(()=>{const tt=a9(T)||z().body;R.add(W(),tt),F.current&&Y()}),G=Q.useCallback(()=>R.isTopModal(W()),[R]),V=Xn(tt=>{L.current=tt,!(!tt||!F.current)&&(p&&G()?Y():xo(F.current,N))}),I=Q.useCallback(()=>{R.remove(W(),N)},[R,N]);Q.useEffect(()=>()=>{I()},[I]),Q.useEffect(()=>{p?j():(!D||!f)&&I()},[p,I,D,f,j]);const B=Z({},i,{closeAfterTransition:f,disableAutoFocus:t,disableEnforceFocus:l,disableEscapeKeyDown:g,disablePortal:u,disableRestoreFocus:o,disableScrollLock:a,exited:M,hideBackdrop:n,keepMounted:r}),U=s9(B),X=()=>{O(!1),m&&m()},$=()=>{O(!0),x&&x(),f&&I()},k=tt=>{tt.target===tt.currentTarget&&(s&&s(tt),h&&h(tt,"backdropClick"))},K=tt=>{c&&c(tt),!(tt.key!=="Escape"||!G())&&(g||(tt.stopPropagation(),h&&h(tt,"escapeKeyDown")))},J={};A.props.tabIndex===void 0&&(J.tabIndex="-1"),D&&(J.onEnter=nv(X,A.props.onEnter),J.onExited=nv($,A.props.onExited));const q=(C=P.root)!=null?C:"div",_=Jo({elementType:q,externalSlotProps:S.root,externalForwardedProps:E,additionalProps:{ref:b,role:"presentation",onKeyDown:K},className:U.root,ownerState:B}),et=P.backdrop,it=Jo({elementType:et,externalSlotProps:S.backdrop,additionalProps:{"aria-hidden":!0,onClick:k,open:p},className:U.backdrop,ownerState:B});return!r&&!p&&(!D||M)?null:H.jsx(g2,{ref:V,container:T,disablePortal:u,children:H.jsxs(q,Z({},_,{children:[!n&&et?H.jsx(et,Z({},it)):null,H.jsx(b4,{disableEnforceFocus:l,disableAutoFocus:t,disableRestoreFocus:o,isEnabled:G,open:p,children:Q.cloneElement(A,J)})]}))})}),h9=u9,f9=["onChange","maxRows","minRows","style","value"];function Hl(e){return parseInt(e,10)||0}const d9={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function dx(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const c9=Q.forwardRef(function(i,v){const{onChange:y,maxRows:C,minRows:A=1,style:f,value:T}=i,t=yt(i,f9),{current:l}=Q.useRef(T!=null),g=Q.useRef(null),u=pe(v,g),o=Q.useRef(null),a=Q.useRef(0),[n,r]=Q.useState({outerHeightStyle:0}),d=Q.useCallback(()=>{const m=g.current,S=sr(m).getComputedStyle(m);if(S.width==="0px")return{outerHeightStyle:0};const P=o.current;P.style.width=S.width,P.value=m.value||i.placeholder||"x",P.value.slice(-1)===` +`&&(P.value+=" ");const E=S.boxSizing,R=Hl(S.paddingBottom)+Hl(S.paddingTop),M=Hl(S.borderBottomWidth)+Hl(S.borderTopWidth),O=P.scrollHeight;P.value="x";const w=P.scrollHeight;let L=O;A&&(L=Math.max(Number(A)*w,L)),C&&(L=Math.min(Number(C)*w,L)),L=Math.max(L,w);const F=L+(E==="border-box"?R+M:0),b=Math.abs(L-O)<=1;return{outerHeightStyle:F,overflow:b}},[C,A,i.placeholder]),s=(m,x)=>{const{outerHeightStyle:S,overflow:P}=x;return a.current<20&&(S>0&&Math.abs((m.outerHeightStyle||0)-S)>1||m.overflow!==P)?(a.current+=1,{overflow:P,outerHeightStyle:S}):m},h=Q.useCallback(()=>{const m=d();dx(m)||r(x=>s(x,m))},[d]),c=()=>{const m=d();dx(m)||wh.flushSync(()=>{r(x=>s(x,m))})};Q.useEffect(()=>{const m=Qp(()=>{a.current=0,g.current&&c()});let x;const S=g.current,P=sr(S);return P.addEventListener("resize",m),typeof ResizeObserver<"u"&&(x=new ResizeObserver(m),x.observe(S)),()=>{m.clear(),P.removeEventListener("resize",m),x&&x.disconnect()}}),Ai(()=>{h()}),Q.useEffect(()=>{a.current=0},[T]);const p=m=>{a.current=0,l||h(),y&&y(m)};return H.jsxs(Q.Fragment,{children:[H.jsx("textarea",Z({value:T,onChange:p,ref:u,rows:A,style:Z({height:n.outerHeightStyle,overflow:n.overflow?"hidden":void 0},f)},t)),H.jsx("textarea",{"aria-hidden":!0,className:i.className,readOnly:!0,ref:o,tabIndex:-1,style:Z({},d9.shadow,f,{padding:0})})]})}),v9=c9;function p9(e){return Ot("MuiSvgIcon",e)}wt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const m9=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g9=e=>{const{color:i,fontSize:v,classes:y}=e,C={root:["root",i!=="inherit"&&`color${Rt(i)}`,`fontSize${Rt(v)}`]};return Ft(C,p9,y)},y9=gt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.root,v.color!=="inherit"&&i[`color${Rt(v.color)}`],i[`fontSize${Rt(v.fontSize)}`]]}})(({theme:e,ownerState:i})=>{var v,y,C,A,f,T,t,l,g,u,o,a,n,r,d,s,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(v=e.transitions)==null||(y=v.create)==null?void 0:y.call(v,"fill",{duration:(C=e.transitions)==null||(A=C.duration)==null?void 0:A.shorter}),fontSize:{inherit:"inherit",small:((f=e.typography)==null||(T=f.pxToRem)==null?void 0:T.call(f,20))||"1.25rem",medium:((t=e.typography)==null||(l=t.pxToRem)==null?void 0:l.call(t,24))||"1.5rem",large:((g=e.typography)==null||(u=g.pxToRem)==null?void 0:u.call(g,35))||"2.1875rem"}[i.fontSize],color:(o=(a=(e.vars||e).palette)==null||(n=a[i.color])==null?void 0:n.main)!=null?o:{action:(r=(e.vars||e).palette)==null||(d=r.action)==null?void 0:d.active,disabled:(s=(e.vars||e).palette)==null||(h=s.action)==null?void 0:h.disabled,inherit:void 0}[i.color]}}),y2=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiSvgIcon"}),{children:C,className:A,color:f="inherit",component:T="svg",fontSize:t="medium",htmlColor:l,inheritViewBox:g=!1,titleAccess:u,viewBox:o="0 0 24 24"}=y,a=yt(y,m9),n=Z({},y,{color:f,component:T,fontSize:t,instanceFontSize:i.fontSize,inheritViewBox:g,viewBox:o}),r={};g||(r.viewBox=o);const d=g9(n);return H.jsxs(y9,Z({as:T,className:xt(d.root,A),focusable:"false",color:l,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:v},r,a,{ownerState:n,children:[C,u?H.jsx("title",{children:u}):null]}))});y2.muiName="SvgIcon";const cx=y2;function yl(e,i){function v(y,C){return H.jsx(cx,Z({"data-testid":`${i}Icon`,ref:C},y,{children:e}))}return v.muiName=cx.muiName,Q.memo(Q.forwardRef(v))}const x9={configure:e=>{qp.configure(e)}},T9=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Rt,createChainedFunction:nv,createSvgIcon:yl,debounce:Qp,deprecatedPropType:aw,isMuiElement:vo,ownerDocument:Ge,ownerWindow:sr,requirePropFactory:ow,setRef:sh,unstable_ClassNameGenerator:x9,unstable_useEnhancedEffect:Ai,unstable_useId:Zp,unsupportedProp:hw,useControlled:qs,useEventCallback:Xn,useForkRef:pe,useIsFocusVisible:zh},Symbol.toStringTag,{value:"Module"}));var kt={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Sm=Symbol.for("react.element"),Em=Symbol.for("react.portal"),cf=Symbol.for("react.fragment"),vf=Symbol.for("react.strict_mode"),pf=Symbol.for("react.profiler"),mf=Symbol.for("react.provider"),gf=Symbol.for("react.context"),S9=Symbol.for("react.server_context"),yf=Symbol.for("react.forward_ref"),xf=Symbol.for("react.suspense"),Tf=Symbol.for("react.suspense_list"),Sf=Symbol.for("react.memo"),Ef=Symbol.for("react.lazy"),E9=Symbol.for("react.offscreen"),x2;x2=Symbol.for("react.module.reference");function Fi(e){if(typeof e=="object"&&e!==null){var i=e.$$typeof;switch(i){case Sm:switch(e=e.type,e){case cf:case pf:case vf:case xf:case Tf:return e;default:switch(e=e&&e.$$typeof,e){case S9:case gf:case yf:case Ef:case Sf:case mf:return e;default:return i}}case Em:return i}}}kt.ContextConsumer=gf;kt.ContextProvider=mf;kt.Element=Sm;kt.ForwardRef=yf;kt.Fragment=cf;kt.Lazy=Ef;kt.Memo=Sf;kt.Portal=Em;kt.Profiler=pf;kt.StrictMode=vf;kt.Suspense=xf;kt.SuspenseList=Tf;kt.isAsyncMode=function(){return!1};kt.isConcurrentMode=function(){return!1};kt.isContextConsumer=function(e){return Fi(e)===gf};kt.isContextProvider=function(e){return Fi(e)===mf};kt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Sm};kt.isForwardRef=function(e){return Fi(e)===yf};kt.isFragment=function(e){return Fi(e)===cf};kt.isLazy=function(e){return Fi(e)===Ef};kt.isMemo=function(e){return Fi(e)===Sf};kt.isPortal=function(e){return Fi(e)===Em};kt.isProfiler=function(e){return Fi(e)===pf};kt.isStrictMode=function(e){return Fi(e)===vf};kt.isSuspense=function(e){return Fi(e)===xf};kt.isSuspenseList=function(e){return Fi(e)===Tf};kt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===cf||e===pf||e===vf||e===xf||e===Tf||e===E9||typeof e=="object"&&e!==null&&(e.$$typeof===Ef||e.$$typeof===Sf||e.$$typeof===mf||e.$$typeof===gf||e.$$typeof===yf||e.$$typeof===x2||e.getModuleId!==void 0)};kt.typeOf=Fi;function cv(e,i){return cv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,C){return y.__proto__=C,y},cv(e,i)}function T2(e,i){e.prototype=Object.create(i.prototype),e.prototype.constructor=e,cv(e,i)}const vx={disabled:!1},uh=Ui.createContext(null);var C9=function(i){return i.scrollTop},ka="unmounted",gr="exited",yr="entering",us="entered",vv="exiting",Rn=function(e){T2(i,e);function i(y,C){var A;A=e.call(this,y,C)||this;var f=C,T=f&&!f.isMounting?y.enter:y.appear,t;return A.appearStatus=null,y.in?T?(t=gr,A.appearStatus=yr):t=us:y.unmountOnExit||y.mountOnEnter?t=ka:t=gr,A.state={status:t},A.nextCallback=null,A}i.getDerivedStateFromProps=function(C,A){var f=C.in;return f&&A.status===ka?{status:gr}:null};var v=i.prototype;return v.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},v.componentDidUpdate=function(C){var A=null;if(C!==this.props){var f=this.state.status;this.props.in?f!==yr&&f!==us&&(A=yr):(f===yr||f===us)&&(A=vv)}this.updateStatus(!1,A)},v.componentWillUnmount=function(){this.cancelNextCallback()},v.getTimeouts=function(){var C=this.props.timeout,A,f,T;return A=f=T=C,C!=null&&typeof C!="number"&&(A=C.exit,f=C.enter,T=C.appear!==void 0?C.appear:f),{exit:A,enter:f,appear:T}},v.updateStatus=function(C,A){if(C===void 0&&(C=!1),A!==null)if(this.cancelNextCallback(),A===yr){if(this.props.unmountOnExit||this.props.mountOnEnter){var f=this.props.nodeRef?this.props.nodeRef.current:Ul.findDOMNode(this);f&&C9(f)}this.performEnter(C)}else this.performExit();else this.props.unmountOnExit&&this.state.status===gr&&this.setState({status:ka})},v.performEnter=function(C){var A=this,f=this.props.enter,T=this.context?this.context.isMounting:C,t=this.props.nodeRef?[T]:[Ul.findDOMNode(this),T],l=t[0],g=t[1],u=this.getTimeouts(),o=T?u.appear:u.enter;if(!C&&!f||vx.disabled){this.safeSetState({status:us},function(){A.props.onEntered(l)});return}this.props.onEnter(l,g),this.safeSetState({status:yr},function(){A.props.onEntering(l,g),A.onTransitionEnd(o,function(){A.safeSetState({status:us},function(){A.props.onEntered(l,g)})})})},v.performExit=function(){var C=this,A=this.props.exit,f=this.getTimeouts(),T=this.props.nodeRef?void 0:Ul.findDOMNode(this);if(!A||vx.disabled){this.safeSetState({status:gr},function(){C.props.onExited(T)});return}this.props.onExit(T),this.safeSetState({status:vv},function(){C.props.onExiting(T),C.onTransitionEnd(f.exit,function(){C.safeSetState({status:gr},function(){C.props.onExited(T)})})})},v.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},v.safeSetState=function(C,A){A=this.setNextCallback(A),this.setState(C,A)},v.setNextCallback=function(C){var A=this,f=!0;return this.nextCallback=function(T){f&&(f=!1,A.nextCallback=null,C(T))},this.nextCallback.cancel=function(){f=!1},this.nextCallback},v.onTransitionEnd=function(C,A){this.setNextCallback(A);var f=this.props.nodeRef?this.props.nodeRef.current:Ul.findDOMNode(this),T=C==null&&!this.props.addEndListener;if(!f||T){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var t=this.props.nodeRef?[this.nextCallback]:[f,this.nextCallback],l=t[0],g=t[1];this.props.addEndListener(l,g)}C!=null&&setTimeout(this.nextCallback,C)},v.render=function(){var C=this.state.status;if(C===ka)return null;var A=this.props,f=A.children;A.in,A.mountOnEnter,A.unmountOnExit,A.appear,A.enter,A.exit,A.timeout,A.addEndListener,A.onEnter,A.onEntering,A.onEntered,A.onExit,A.onExiting,A.onExited,A.nodeRef;var T=yt(A,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ui.createElement(uh.Provider,{value:null},typeof f=="function"?f(C,T):Ui.cloneElement(Ui.Children.only(f),T))},i}(Ui.Component);Rn.contextType=uh;Rn.propTypes={};function is(){}Rn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:is,onEntering:is,onEntered:is,onExit:is,onExiting:is,onExited:is};Rn.UNMOUNTED=ka;Rn.EXITED=gr;Rn.ENTERING=yr;Rn.ENTERED=us;Rn.EXITING=vv;const Cm=Rn;function P9(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pm(e,i){var v=function(A){return i&&Q.isValidElement(A)?i(A):A},y=Object.create(null);return e&&Q.Children.map(e,function(C){return C}).forEach(function(C){y[C.key]=v(C)}),y}function R9(e,i){e=e||{},i=i||{};function v(g){return g in i?i[g]:e[g]}var y=Object.create(null),C=[];for(var A in e)A in i?C.length&&(y[A]=C,C=[]):C.push(A);var f,T={};for(var t in i){if(y[t])for(f=0;fe.scrollTop;function sa(e,i){var v,y;const{timeout:C,easing:A,style:f={}}=e;return{duration:(v=f.transitionDuration)!=null?v:typeof C=="number"?C:C[i.mode]||0,easing:(y=f.transitionTimingFunction)!=null?y:typeof A=="object"?A[i.mode]:A,delay:f.transitionDelay}}function L9(e){return Ot("MuiCollapse",e)}wt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const I9=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],b9=e=>{const{orientation:i,classes:v}=e,y={root:["root",`${i}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${i}`],wrapperInner:["wrapperInner",`${i}`]};return Ft(y,L9,v)},D9=gt("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.root,i[v.orientation],v.state==="entered"&&i.entered,v.state==="exited"&&!v.in&&v.collapsedSize==="0px"&&i.hidden]}})(({theme:e,ownerState:i})=>Z({height:0,overflow:"hidden",transition:e.transitions.create("height")},i.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},i.state==="entered"&&Z({height:"auto",overflow:"visible"},i.orientation==="horizontal"&&{width:"auto"}),i.state==="exited"&&!i.in&&i.collapsedSize==="0px"&&{visibility:"hidden"})),N9=gt("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,i)=>i.wrapper})(({ownerState:e})=>Z({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),B9=gt("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,i)=>i.wrapperInner})(({ownerState:e})=>Z({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),E2=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiCollapse"}),{addEndListener:C,children:A,className:f,collapsedSize:T="0px",component:t,easing:l,in:g,onEnter:u,onEntered:o,onEntering:a,onExit:n,onExited:r,onExiting:d,orientation:s="vertical",style:h,timeout:c=a2.standard,TransitionComponent:p=Cm}=y,m=yt(y,I9),x=Z({},y,{orientation:s,collapsedSize:T}),S=b9(x),P=Pn(),E=Q.useRef(),R=Q.useRef(null),M=Q.useRef(),O=typeof T=="number"?`${T}px`:T,w=s==="horizontal",L=w?"width":"height";Q.useEffect(()=>()=>{clearTimeout(E.current)},[]);const F=Q.useRef(null),b=pe(v,F),D=B=>U=>{if(B){const X=F.current;U===void 0?B(X):B(X,U)}},N=()=>R.current?R.current[w?"clientWidth":"clientHeight"]:0,z=D((B,U)=>{R.current&&w&&(R.current.style.position="absolute"),B.style[L]=O,u&&u(B,U)}),W=D((B,U)=>{const X=N();R.current&&w&&(R.current.style.position="");const{duration:$,easing:k}=sa({style:h,timeout:c,easing:l},{mode:"enter"});if(c==="auto"){const K=P.transitions.getAutoHeightDuration(X);B.style.transitionDuration=`${K}ms`,M.current=K}else B.style.transitionDuration=typeof $=="string"?$:`${$}ms`;B.style[L]=`${X}px`,B.style.transitionTimingFunction=k,a&&a(B,U)}),Y=D((B,U)=>{B.style[L]="auto",o&&o(B,U)}),j=D(B=>{B.style[L]=`${N()}px`,n&&n(B)}),G=D(r),V=D(B=>{const U=N(),{duration:X,easing:$}=sa({style:h,timeout:c,easing:l},{mode:"exit"});if(c==="auto"){const k=P.transitions.getAutoHeightDuration(U);B.style.transitionDuration=`${k}ms`,M.current=k}else B.style.transitionDuration=typeof X=="string"?X:`${X}ms`;B.style[L]=O,B.style.transitionTimingFunction=$,d&&d(B)}),I=B=>{c==="auto"&&(E.current=setTimeout(B,M.current||0)),C&&C(F.current,B)};return H.jsx(p,Z({in:g,onEnter:z,onEntered:Y,onEntering:W,onExit:j,onExited:G,onExiting:V,addEndListener:I,nodeRef:F,timeout:c==="auto"?null:c},m,{children:(B,U)=>H.jsx(D9,Z({as:t,className:xt(S.root,f,{entered:S.entered,exited:!g&&O==="0px"&&S.hidden}[B]),style:Z({[w?"minWidth":"minHeight"]:O},h),ownerState:Z({},x,{state:B}),ref:b},U,{children:H.jsx(N9,{ownerState:Z({},x,{state:B}),className:S.wrapper,ref:R,children:H.jsx(B9,{ownerState:Z({},x,{state:B}),className:S.wrapperInner,children:A})})}))}))});E2.muiSupportAuto=!0;const G9=E2;function U9(e){return Ot("MuiPaper",e)}wt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const z9=["className","component","elevation","square","variant"],V9=e=>{const{square:i,elevation:v,variant:y,classes:C}=e,A={root:["root",y,!i&&"rounded",y==="elevation"&&`elevation${v}`]};return Ft(A,U9,C)},W9=gt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.root,i[v.variant],!v.square&&i.rounded,v.variant==="elevation"&&i[`elevation${v.elevation}`]]}})(({theme:e,ownerState:i})=>{var v;return Z({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!i.square&&{borderRadius:e.shape.borderRadius},i.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},i.variant==="elevation"&&Z({boxShadow:(e.vars||e).shadows[i.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Qt("#fff",_y(i.elevation))}, ${Qt("#fff",_y(i.elevation))})`},e.vars&&{backgroundImage:(v=e.vars.overlays)==null?void 0:v[i.elevation]}))}),X9=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiPaper"}),{className:C,component:A="div",elevation:f=1,square:T=!1,variant:t="elevation"}=y,l=yt(y,z9),g=Z({},y,{component:A,elevation:f,square:T,variant:t}),u=V9(g);return H.jsx(W9,Z({as:A,ownerState:g,className:xt(u.root,C),ref:v},l))}),Kr=X9,Y9=Q.createContext({}),C2=Y9;function H9(e){return Ot("MuiAccordion",e)}const $9=wt("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),$l=$9,j9=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],k9=e=>{const{classes:i,square:v,expanded:y,disabled:C,disableGutters:A}=e;return Ft({root:["root",!v&&"rounded",y&&"expanded",C&&"disabled",!A&&"gutters"],region:["region"]},H9,i)},K9=gt(Kr,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[{[`& .${$l.region}`]:i.region},i.root,!v.square&&i.rounded,!v.disableGutters&&i.gutters]}})(({theme:e})=>{const i={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],i),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],i)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${$l.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${$l.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:i})=>Z({},!i.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!i.disableGutters&&{[`&.${$l.expanded}`]:{margin:"16px 0"}})),Q9=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiAccordion"}),{children:C,className:A,defaultExpanded:f=!1,disabled:T=!1,disableGutters:t=!1,expanded:l,onChange:g,square:u=!1,TransitionComponent:o=G9,TransitionProps:a}=y,n=yt(y,j9),[r,d]=qs({controlled:l,default:f,name:"Accordion",state:"expanded"}),s=Q.useCallback(S=>{d(!r),g&&g(S,!r)},[r,g,d]),[h,...c]=Q.Children.toArray(C),p=Q.useMemo(()=>({expanded:r,disabled:T,disableGutters:t,toggle:s}),[r,T,t,s]),m=Z({},y,{square:u,disabled:T,disableGutters:t,expanded:r}),x=k9(m);return H.jsxs(K9,Z({className:xt(x.root,A),ref:v,ownerState:m,square:u},n,{children:[H.jsx(C2.Provider,{value:p,children:h}),H.jsx(o,Z({in:r,timeout:"auto"},a,{children:H.jsx("div",{"aria-labelledby":h.props.id,id:h.props["aria-controls"],role:"region",className:x.region,children:c})}))]}))}),Ka=Q9;function Z9(e){return Ot("MuiAccordionDetails",e)}wt("MuiAccordionDetails",["root"]);const J9=["className"],q9=e=>{const{classes:i}=e;return Ft({root:["root"]},Z9,i)},_9=gt("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,i)=>i.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),t8=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiAccordionDetails"}),{className:C}=y,A=yt(y,J9),f=y,T=q9(f);return H.jsx(_9,Z({className:xt(T.root,C),ref:v,ownerState:f},A))}),Qa=t8;function e8(e){const{className:i,classes:v,pulsate:y=!1,rippleX:C,rippleY:A,rippleSize:f,in:T,onExited:t,timeout:l}=e,[g,u]=Q.useState(!1),o=xt(i,v.ripple,v.rippleVisible,y&&v.ripplePulsate),a={width:f,height:f,top:-(f/2)+A,left:-(f/2)+C},n=xt(v.child,g&&v.childLeaving,y&&v.childPulsate);return!T&&!g&&u(!0),Q.useEffect(()=>{if(!T&&t!=null){const r=setTimeout(t,l);return()=>{clearTimeout(r)}}},[t,T,l]),H.jsx("span",{className:o,style:a,children:H.jsx("span",{className:n})})}const i8=wt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),pi=i8,n8=["center","classes","className"];let Cf=e=>e,px,mx,gx,yx;const pv=550,r8=80,s8=cl(px||(px=Cf` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),a8=cl(mx||(mx=Cf` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),o8=cl(gx||(gx=Cf` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),l8=gt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),u8=gt(e8,{name:"MuiTouchRipple",slot:"Ripple"})(yx||(yx=Cf` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),pi.rippleVisible,s8,pv,({theme:e})=>e.transitions.easing.easeInOut,pi.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,pi.child,pi.childLeaving,a8,pv,({theme:e})=>e.transitions.easing.easeInOut,pi.childPulsate,o8,({theme:e})=>e.transitions.easing.easeInOut),h8=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiTouchRipple"}),{center:C=!1,classes:A={},className:f}=y,T=yt(y,n8),[t,l]=Q.useState([]),g=Q.useRef(0),u=Q.useRef(null);Q.useEffect(()=>{u.current&&(u.current(),u.current=null)},[t]);const o=Q.useRef(!1),a=Q.useRef(null),n=Q.useRef(null),r=Q.useRef(null);Q.useEffect(()=>()=>{clearTimeout(a.current)},[]);const d=Q.useCallback(p=>{const{pulsate:m,rippleX:x,rippleY:S,rippleSize:P,cb:E}=p;l(R=>[...R,H.jsx(u8,{classes:{ripple:xt(A.ripple,pi.ripple),rippleVisible:xt(A.rippleVisible,pi.rippleVisible),ripplePulsate:xt(A.ripplePulsate,pi.ripplePulsate),child:xt(A.child,pi.child),childLeaving:xt(A.childLeaving,pi.childLeaving),childPulsate:xt(A.childPulsate,pi.childPulsate)},timeout:pv,pulsate:m,rippleX:x,rippleY:S,rippleSize:P},g.current)]),g.current+=1,u.current=E},[A]),s=Q.useCallback((p={},m={},x=()=>{})=>{const{pulsate:S=!1,center:P=C||m.pulsate,fakeElement:E=!1}=m;if((p==null?void 0:p.type)==="mousedown"&&o.current){o.current=!1;return}(p==null?void 0:p.type)==="touchstart"&&(o.current=!0);const R=E?null:r.current,M=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let O,w,L;if(P||p===void 0||p.clientX===0&&p.clientY===0||!p.clientX&&!p.touches)O=Math.round(M.width/2),w=Math.round(M.height/2);else{const{clientX:F,clientY:b}=p.touches&&p.touches.length>0?p.touches[0]:p;O=Math.round(F-M.left),w=Math.round(b-M.top)}if(P)L=Math.sqrt((2*M.width**2+M.height**2)/3),L%2===0&&(L+=1);else{const F=Math.max(Math.abs((R?R.clientWidth:0)-O),O)*2+2,b=Math.max(Math.abs((R?R.clientHeight:0)-w),w)*2+2;L=Math.sqrt(F**2+b**2)}p!=null&&p.touches?n.current===null&&(n.current=()=>{d({pulsate:S,rippleX:O,rippleY:w,rippleSize:L,cb:x})},a.current=setTimeout(()=>{n.current&&(n.current(),n.current=null)},r8)):d({pulsate:S,rippleX:O,rippleY:w,rippleSize:L,cb:x})},[C,d]),h=Q.useCallback(()=>{s({},{pulsate:!0})},[s]),c=Q.useCallback((p,m)=>{if(clearTimeout(a.current),(p==null?void 0:p.type)==="touchend"&&n.current){n.current(),n.current=null,a.current=setTimeout(()=>{c(p,m)});return}n.current=null,l(x=>x.length>0?x.slice(1):x),u.current=m},[]);return Q.useImperativeHandle(v,()=>({pulsate:h,start:s,stop:c}),[h,s,c]),H.jsx(l8,Z({className:xt(pi.root,A.root,f),ref:r},T,{children:H.jsx(F9,{component:null,exit:!0,children:t})}))}),f8=h8;function d8(e){return Ot("MuiButtonBase",e)}const c8=wt("MuiButtonBase",["root","disabled","focusVisible"]),v8=c8,p8=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],m8=e=>{const{disabled:i,focusVisible:v,focusVisibleClassName:y,classes:C}=e,f=Ft({root:["root",i&&"disabled",v&&"focusVisible"]},d8,C);return v&&y&&(f.root+=` ${y}`),f},g8=gt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,i)=>i.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${v8.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),y8=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiButtonBase"}),{action:C,centerRipple:A=!1,children:f,className:T,component:t="button",disabled:l=!1,disableRipple:g=!1,disableTouchRipple:u=!1,focusRipple:o=!1,LinkComponent:a="a",onBlur:n,onClick:r,onContextMenu:d,onDragLeave:s,onFocus:h,onFocusVisible:c,onKeyDown:p,onKeyUp:m,onMouseDown:x,onMouseLeave:S,onMouseUp:P,onTouchEnd:E,onTouchMove:R,onTouchStart:M,tabIndex:O=0,TouchRippleProps:w,touchRippleRef:L,type:F}=y,b=yt(y,p8),D=Q.useRef(null),N=Q.useRef(null),z=pe(N,L),{isFocusVisibleRef:W,onFocus:Y,onBlur:j,ref:G}=zh(),[V,I]=Q.useState(!1);l&&V&&I(!1),Q.useImperativeHandle(C,()=>({focusVisible:()=>{I(!0),D.current.focus()}}),[]);const[B,U]=Q.useState(!1);Q.useEffect(()=>{U(!0)},[]);const X=B&&!g&&!l;Q.useEffect(()=>{V&&o&&!g&&B&&N.current.pulsate()},[g,o,V,B]);function $(pt,ut,Mt=u){return Xn(bt=>(ut&&ut(bt),!Mt&&N.current&&N.current[pt](bt),!0))}const k=$("start",x),K=$("stop",d),J=$("stop",s),q=$("stop",P),_=$("stop",pt=>{V&&pt.preventDefault(),S&&S(pt)}),et=$("start",M),it=$("stop",E),tt=$("stop",R),st=$("stop",pt=>{j(pt),W.current===!1&&I(!1),n&&n(pt)},!1),mt=Xn(pt=>{D.current||(D.current=pt.currentTarget),Y(pt),W.current===!0&&(I(!0),c&&c(pt)),h&&h(pt)}),ct=()=>{const pt=D.current;return t&&t!=="button"&&!(pt.tagName==="A"&&pt.href)},ft=Q.useRef(!1),nt=Xn(pt=>{o&&!ft.current&&V&&N.current&&pt.key===" "&&(ft.current=!0,N.current.stop(pt,()=>{N.current.start(pt)})),pt.target===pt.currentTarget&&ct()&&pt.key===" "&&pt.preventDefault(),p&&p(pt),pt.target===pt.currentTarget&&ct()&&pt.key==="Enter"&&!l&&(pt.preventDefault(),r&&r(pt))}),ot=Xn(pt=>{o&&pt.key===" "&&N.current&&V&&!pt.defaultPrevented&&(ft.current=!1,N.current.stop(pt,()=>{N.current.pulsate(pt)})),m&&m(pt),r&&pt.target===pt.currentTarget&&ct()&&pt.key===" "&&!pt.defaultPrevented&&r(pt)});let ht=t;ht==="button"&&(b.href||b.to)&&(ht=a);const St={};ht==="button"?(St.type=F===void 0?"button":F,St.disabled=l):(!b.href&&!b.to&&(St.role="button"),l&&(St["aria-disabled"]=l));const At=pe(v,G,D),Dt=Z({},y,{centerRipple:A,component:t,disabled:l,disableRipple:g,disableTouchRipple:u,focusRipple:o,tabIndex:O,focusVisible:V}),Pt=m8(Dt);return H.jsxs(g8,Z({as:ht,className:xt(Pt.root,T),ownerState:Dt,onBlur:st,onClick:r,onContextMenu:K,onFocus:mt,onKeyDown:nt,onKeyUp:ot,onMouseDown:k,onMouseLeave:_,onMouseUp:q,onDragLeave:J,onTouchEnd:it,onTouchMove:tt,onTouchStart:et,ref:At,tabIndex:l?-1:O,type:F},St,b,{children:[f,X?H.jsx(f8,Z({ref:z,center:A},w)):null]}))}),da=y8;function x8(e){return Ot("MuiAccordionSummary",e)}const T8=wt("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Rs=T8,S8=["children","className","expandIcon","focusVisibleClassName","onClick"],E8=e=>{const{classes:i,expanded:v,disabled:y,disableGutters:C}=e;return Ft({root:["root",v&&"expanded",y&&"disabled",!C&&"gutters"],focusVisible:["focusVisible"],content:["content",v&&"expanded",!C&&"contentGutters"],expandIconWrapper:["expandIconWrapper",v&&"expanded"]},x8,i)},C8=gt(da,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,i)=>i.root})(({theme:e,ownerState:i})=>{const v={duration:e.transitions.duration.shortest};return Z({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],v),[`&.${Rs.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Rs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Rs.disabled})`]:{cursor:"pointer"}},!i.disableGutters&&{[`&.${Rs.expanded}`]:{minHeight:64}})}),P8=gt("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,i)=>i.content})(({theme:e,ownerState:i})=>Z({display:"flex",flexGrow:1,margin:"12px 0"},!i.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Rs.expanded}`]:{margin:"20px 0"}})),R8=gt("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,i)=>i.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${Rs.expanded}`]:{transform:"rotate(180deg)"}})),A8=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiAccordionSummary"}),{children:C,className:A,expandIcon:f,focusVisibleClassName:T,onClick:t}=y,l=yt(y,S8),{disabled:g=!1,disableGutters:u,expanded:o,toggle:a}=Q.useContext(C2),n=s=>{a&&a(s),t&&t(s)},r=Z({},y,{expanded:o,disabled:g,disableGutters:u}),d=E8(r);return H.jsxs(C8,Z({focusRipple:!1,disableRipple:!0,disabled:g,component:"div","aria-expanded":o,className:xt(d.root,A),focusVisibleClassName:xt(d.focusVisible,T),onClick:n,ref:v,ownerState:r},l,{children:[H.jsx(P8,{className:d.content,ownerState:r,children:C}),f&&H.jsx(R8,{className:d.expandIconWrapper,ownerState:r,children:f})]}))}),Za=A8;function M8(e){return Ot("MuiIconButton",e)}const O8=wt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),w8=O8,F8=["edge","children","className","color","disabled","disableFocusRipple","size"],L8=e=>{const{classes:i,disabled:v,color:y,edge:C,size:A}=e,f={root:["root",v&&"disabled",y!=="default"&&`color${Rt(y)}`,C&&`edge${Rt(C)}`,`size${Rt(A)}`]};return Ft(f,M8,i)},I8=gt(da,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.root,v.color!=="default"&&i[`color${Rt(v.color)}`],v.edge&&i[`edge${Rt(v.edge)}`],i[`size${Rt(v.size)}`]]}})(({theme:e,ownerState:i})=>Z({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!i.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Qt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},i.edge==="start"&&{marginLeft:i.size==="small"?-3:-12},i.edge==="end"&&{marginRight:i.size==="small"?-3:-12}),({theme:e,ownerState:i})=>{var v;const y=(v=(e.vars||e).palette)==null?void 0:v[i.color];return Z({},i.color==="inherit"&&{color:"inherit"},i.color!=="inherit"&&i.color!=="default"&&Z({color:y==null?void 0:y.main},!i.disableRipple&&{"&:hover":Z({},y&&{backgroundColor:e.vars?`rgba(${y.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qt(y.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),i.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},i.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${w8.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),b8=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiIconButton"}),{edge:C=!1,children:A,className:f,color:T="default",disabled:t=!1,disableFocusRipple:l=!1,size:g="medium"}=y,u=yt(y,F8),o=Z({},y,{edge:C,color:T,disabled:t,disableFocusRipple:l,size:g}),a=L8(o);return H.jsx(I8,Z({className:xt(a.root,f),centerRipple:!0,focusRipple:!l,disabled:t,ref:v,ownerState:o},u,{children:A}))}),ns=b8;function D8(e){return Ot("MuiTypography",e)}wt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const N8=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],B8=e=>{const{align:i,gutterBottom:v,noWrap:y,paragraph:C,variant:A,classes:f}=e,T={root:["root",A,e.align!=="inherit"&&`align${Rt(i)}`,v&&"gutterBottom",y&&"noWrap",C&&"paragraph"]};return Ft(T,D8,f)},G8=gt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.root,v.variant&&i[v.variant],v.align!=="inherit"&&i[`align${Rt(v.align)}`],v.noWrap&&i.noWrap,v.gutterBottom&&i.gutterBottom,v.paragraph&&i.paragraph]}})(({theme:e,ownerState:i})=>Z({margin:0},i.variant&&e.typography[i.variant],i.align!=="inherit"&&{textAlign:i.align},i.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i.gutterBottom&&{marginBottom:"0.35em"},i.paragraph&&{marginBottom:16})),xx={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},U8={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},z8=e=>U8[e]||e,V8=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiTypography"}),C=z8(y.color),A=fm(Z({},y,{color:C})),{align:f="inherit",className:T,component:t,gutterBottom:l=!1,noWrap:g=!1,paragraph:u=!1,variant:o="body1",variantMapping:a=xx}=A,n=yt(A,N8),r=Z({},A,{align:f,color:C,className:T,component:t,gutterBottom:l,noWrap:g,paragraph:u,variant:o,variantMapping:a}),d=t||(u?"p":a[o]||xx[o])||"span",s=B8(r);return H.jsx(G8,Z({as:d,ref:v,ownerState:r,className:xt(s.root,T)},n))}),lt=V8;function W8(e){return Ot("MuiAppBar",e)}wt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const X8=["className","color","enableColorOnDark","position"],Y8=e=>{const{color:i,position:v,classes:y}=e,C={root:["root",`color${Rt(i)}`,`position${Rt(v)}`]};return Ft(C,W8,y)},jl=(e,i)=>e?`${e==null?void 0:e.replace(")","")}, ${i})`:i,H8=gt(Kr,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.root,i[`position${Rt(v.position)}`],i[`color${Rt(v.color)}`]]}})(({theme:e,ownerState:i})=>{const v=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return Z({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},i.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},i.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},i.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},i.position==="static"&&{position:"static"},i.position==="relative"&&{position:"relative"},!e.vars&&Z({},i.color==="default"&&{backgroundColor:v,color:e.palette.getContrastText(v)},i.color&&i.color!=="default"&&i.color!=="inherit"&&i.color!=="transparent"&&{backgroundColor:e.palette[i.color].main,color:e.palette[i.color].contrastText},i.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!i.enableColorOnDark&&{backgroundColor:null,color:null},i.color==="transparent"&&Z({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&Z({},i.color==="default"&&{"--AppBar-background":i.enableColorOnDark?e.vars.palette.AppBar.defaultBg:jl(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":i.enableColorOnDark?e.vars.palette.text.primary:jl(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},i.color&&!i.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":i.enableColorOnDark?e.vars.palette[i.color].main:jl(e.vars.palette.AppBar.darkBg,e.vars.palette[i.color].main),"--AppBar-color":i.enableColorOnDark?e.vars.palette[i.color].contrastText:jl(e.vars.palette.AppBar.darkColor,e.vars.palette[i.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:i.color==="inherit"?"inherit":"var(--AppBar-color)"},i.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),$8=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiAppBar"}),{className:C,color:A="primary",enableColorOnDark:f=!1,position:T="fixed"}=y,t=yt(y,X8),l=Z({},y,{color:A,position:T,enableColorOnDark:f}),g=Y8(l);return H.jsx(H8,Z({square:!0,component:"header",ownerState:l,elevation:4,className:xt(g.root,C,T==="fixed"&&"mui-fixed"),ref:v},t))}),j8=$8,k8=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],K8=gt(JL,{name:"MuiPopper",slot:"Root",overridesResolver:(e,i)=>i.root})({}),Q8=Q.forwardRef(function(i,v){var y;const C=hm(),A=Lt({props:i,name:"MuiPopper"}),{anchorEl:f,component:T,components:t,componentsProps:l,container:g,disablePortal:u,keepMounted:o,modifiers:a,open:n,placement:r,popperOptions:d,popperRef:s,transition:h,slots:c,slotProps:p}=A,m=yt(A,k8),x=(y=c==null?void 0:c.root)!=null?y:t==null?void 0:t.Root,S=Z({anchorEl:f,container:g,disablePortal:u,keepMounted:o,modifiers:a,open:n,placement:r,popperOptions:d,popperRef:s,transition:h},m);return H.jsx(K8,Z({as:T,direction:C==null?void 0:C.direction,slots:{root:x},slotProps:p??l},S,{ref:v}))}),P2=Q8;function Qr({props:e,states:i,muiFormControl:v}){return i.reduce((y,C)=>(y[C]=e[C],v&&typeof e[C]>"u"&&(y[C]=v[C]),y),{})}const Z8=Q.createContext(void 0),Am=Z8;function fr(){return Q.useContext(Am)}function R2(e){return H.jsx(EF,Z({},e,{defaultTheme:ff,themeId:fl}))}function Tx(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function hh(e,i=!1){return e&&(Tx(e.value)&&e.value!==""||i&&Tx(e.defaultValue)&&e.defaultValue!=="")}function J8(e){return e.startAdornment}function q8(e){return Ot("MuiInputBase",e)}const _8=wt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),aa=_8,tI=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Pf=(e,i)=>{const{ownerState:v}=e;return[i.root,v.formControl&&i.formControl,v.startAdornment&&i.adornedStart,v.endAdornment&&i.adornedEnd,v.error&&i.error,v.size==="small"&&i.sizeSmall,v.multiline&&i.multiline,v.color&&i[`color${Rt(v.color)}`],v.fullWidth&&i.fullWidth,v.hiddenLabel&&i.hiddenLabel]},Rf=(e,i)=>{const{ownerState:v}=e;return[i.input,v.size==="small"&&i.inputSizeSmall,v.multiline&&i.inputMultiline,v.type==="search"&&i.inputTypeSearch,v.startAdornment&&i.inputAdornedStart,v.endAdornment&&i.inputAdornedEnd,v.hiddenLabel&&i.inputHiddenLabel]},eI=e=>{const{classes:i,color:v,disabled:y,error:C,endAdornment:A,focused:f,formControl:T,fullWidth:t,hiddenLabel:l,multiline:g,readOnly:u,size:o,startAdornment:a,type:n}=e,r={root:["root",`color${Rt(v)}`,y&&"disabled",C&&"error",t&&"fullWidth",f&&"focused",T&&"formControl",o==="small"&&"sizeSmall",g&&"multiline",a&&"adornedStart",A&&"adornedEnd",l&&"hiddenLabel",u&&"readOnly"],input:["input",y&&"disabled",n==="search"&&"inputTypeSearch",g&&"inputMultiline",o==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",a&&"inputAdornedStart",A&&"inputAdornedEnd",u&&"readOnly"]};return Ft(r,q8,i)},Af=gt("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Pf})(({theme:e,ownerState:i})=>Z({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${aa.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},i.multiline&&Z({padding:"4px 0 5px"},i.size==="small"&&{paddingTop:1}),i.fullWidth&&{width:"100%"})),Mf=gt("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Rf})(({theme:e,ownerState:i})=>{const v=e.palette.mode==="light",y=Z({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:v?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),C={opacity:"0 !important"},A=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:v?.42:.5};return Z({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":y,"&::-moz-placeholder":y,"&:-ms-input-placeholder":y,"&::-ms-input-placeholder":y,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${aa.formControl} &`]:{"&::-webkit-input-placeholder":C,"&::-moz-placeholder":C,"&:-ms-input-placeholder":C,"&::-ms-input-placeholder":C,"&:focus::-webkit-input-placeholder":A,"&:focus::-moz-placeholder":A,"&:focus:-ms-input-placeholder":A,"&:focus::-ms-input-placeholder":A},[`&.${aa.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},i.size==="small"&&{paddingTop:1},i.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},i.type==="search"&&{MozAppearance:"textfield"})}),iI=H.jsx(R2,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),nI=Q.forwardRef(function(i,v){var y;const C=Lt({props:i,name:"MuiInputBase"}),{"aria-describedby":A,autoComplete:f,autoFocus:T,className:t,components:l={},componentsProps:g={},defaultValue:u,disabled:o,disableInjectingGlobalStyles:a,endAdornment:n,fullWidth:r=!1,id:d,inputComponent:s="input",inputProps:h={},inputRef:c,maxRows:p,minRows:m,multiline:x=!1,name:S,onBlur:P,onChange:E,onClick:R,onFocus:M,onKeyDown:O,onKeyUp:w,placeholder:L,readOnly:F,renderSuffix:b,rows:D,slotProps:N={},slots:z={},startAdornment:W,type:Y="text",value:j}=C,G=yt(C,tI),V=h.value!=null?h.value:j,{current:I}=Q.useRef(V!=null),B=Q.useRef(),U=Q.useCallback(Pt=>{},[]),X=pe(B,c,h.ref,U),[$,k]=Q.useState(!1),K=fr(),J=Qr({props:C,muiFormControl:K,states:["color","disabled","error","hiddenLabel","size","required","filled"]});J.focused=K?K.focused:$,Q.useEffect(()=>{!K&&o&&$&&(k(!1),P&&P())},[K,o,$,P]);const q=K&&K.onFilled,_=K&&K.onEmpty,et=Q.useCallback(Pt=>{hh(Pt)?q&&q():_&&_()},[q,_]);Ai(()=>{I&&et({value:V})},[V,et,I]);const it=Pt=>{if(J.disabled){Pt.stopPropagation();return}M&&M(Pt),h.onFocus&&h.onFocus(Pt),K&&K.onFocus?K.onFocus(Pt):k(!0)},tt=Pt=>{P&&P(Pt),h.onBlur&&h.onBlur(Pt),K&&K.onBlur?K.onBlur(Pt):k(!1)},st=(Pt,...pt)=>{if(!I){const ut=Pt.target||B.current;if(ut==null)throw new Error(rr(1));et({value:ut.value})}h.onChange&&h.onChange(Pt,...pt),E&&E(Pt,...pt)};Q.useEffect(()=>{et(B.current)},[]);const mt=Pt=>{B.current&&Pt.currentTarget===Pt.target&&B.current.focus(),R&&!J.disabled&&R(Pt)};let ct=s,ft=h;x&&ct==="input"&&(D?ft=Z({type:void 0,minRows:D,maxRows:D},ft):ft=Z({type:void 0,maxRows:p,minRows:m},ft),ct=v9);const nt=Pt=>{et(Pt.animationName==="mui-auto-fill-cancel"?B.current:{value:"x"})};Q.useEffect(()=>{K&&K.setAdornedStart(!!W)},[K,W]);const ot=Z({},C,{color:J.color||"primary",disabled:J.disabled,endAdornment:n,error:J.error,focused:J.focused,formControl:K,fullWidth:r,hiddenLabel:J.hiddenLabel,multiline:x,size:J.size,startAdornment:W,type:Y}),ht=eI(ot),St=z.root||l.Root||Af,At=N.root||g.root||{},Dt=z.input||l.Input||Mf;return ft=Z({},ft,(y=N.input)!=null?y:g.input),H.jsxs(Q.Fragment,{children:[!a&&iI,H.jsxs(St,Z({},At,!Vr(St)&&{ownerState:Z({},ot,At.ownerState)},{ref:v,onClick:mt},G,{className:xt(ht.root,At.className,t,F&&"MuiInputBase-readOnly"),children:[W,H.jsx(Am.Provider,{value:null,children:H.jsx(Dt,Z({ownerState:ot,"aria-invalid":J.error,"aria-describedby":A,autoComplete:f,autoFocus:T,defaultValue:u,disabled:J.disabled,id:d,onAnimationStart:nt,name:S,placeholder:L,readOnly:F,required:J.required,rows:D,value:V,onKeyDown:O,onKeyUp:w,type:Y},ft,!Vr(Dt)&&{as:ct,ownerState:Z({},ot,ft.ownerState)},{ref:X,className:xt(ht.input,ft.className,F&&"MuiInputBase-readOnly"),onBlur:tt,onChange:st,onFocus:it}))}),n,b?b(Z({},J,{startAdornment:W})):null]}))]})}),Mm=nI;function rI(e){return Ot("MuiInput",e)}const sI=Z({},aa,wt("MuiInput",["root","underline","input"])),ba=sI;function aI(e){return Ot("MuiOutlinedInput",e)}const oI=Z({},aa,wt("MuiOutlinedInput",["root","notchedOutline","input"])),On=oI;function lI(e){return Ot("MuiFilledInput",e)}const uI=Z({},aa,wt("MuiFilledInput",["root","underline","input"])),cr=uI,hI=yl(H.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),fI=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],dI={entering:{opacity:1},entered:{opacity:1}},cI=Q.forwardRef(function(i,v){const y=Pn(),C={enter:y.transitions.duration.enteringScreen,exit:y.transitions.duration.leavingScreen},{addEndListener:A,appear:f=!0,children:T,easing:t,in:l,onEnter:g,onEntered:u,onEntering:o,onExit:a,onExited:n,onExiting:r,style:d,timeout:s=C,TransitionComponent:h=Cm}=i,c=yt(i,fI),p=Q.useRef(null),m=pe(p,T.ref,v),x=L=>F=>{if(L){const b=p.current;F===void 0?L(b):L(b,F)}},S=x(o),P=x((L,F)=>{S2(L);const b=sa({style:d,timeout:s,easing:t},{mode:"enter"});L.style.webkitTransition=y.transitions.create("opacity",b),L.style.transition=y.transitions.create("opacity",b),g&&g(L,F)}),E=x(u),R=x(r),M=x(L=>{const F=sa({style:d,timeout:s,easing:t},{mode:"exit"});L.style.webkitTransition=y.transitions.create("opacity",F),L.style.transition=y.transitions.create("opacity",F),a&&a(L)}),O=x(n),w=L=>{A&&A(p.current,L)};return H.jsx(h,Z({appear:f,in:l,nodeRef:p,onEnter:P,onEntered:E,onEntering:S,onExit:M,onExited:O,onExiting:R,addEndListener:w,timeout:s},c,{children:(L,F)=>Q.cloneElement(T,Z({style:Z({opacity:0,visibility:L==="exited"&&!l?"hidden":void 0},dI[L],d,T.props.style),ref:m},F))}))}),vI=cI;function pI(e){return Ot("MuiBackdrop",e)}wt("MuiBackdrop",["root","invisible"]);const mI=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],gI=e=>{const{classes:i,invisible:v}=e;return Ft({root:["root",v&&"invisible"]},pI,i)},yI=gt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.root,v.invisible&&i.invisible]}})(({ownerState:e})=>Z({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),xI=Q.forwardRef(function(i,v){var y,C,A;const f=Lt({props:i,name:"MuiBackdrop"}),{children:T,className:t,component:l="div",components:g={},componentsProps:u={},invisible:o=!1,open:a,slotProps:n={},slots:r={},TransitionComponent:d=vI,transitionDuration:s}=f,h=yt(f,mI),c=Z({},f,{component:l,invisible:o}),p=gI(c),m=(y=n.root)!=null?y:u.root;return H.jsx(d,Z({in:a,timeout:s},h,{children:H.jsx(yI,Z({"aria-hidden":!0},m,{as:(C=(A=r.root)!=null?A:g.Root)!=null?C:l,className:xt(p.root,t,m==null?void 0:m.className),ownerState:Z({},c,m==null?void 0:m.ownerState),classes:p,ref:v,children:T}))}))}),TI=xI,SI=cm(),EI=AF({themeId:fl,defaultTheme:SI,defaultClassName:"MuiBox-root",generateClassName:qp.generate}),nn=EI;function CI(e){return Ot("MuiButton",e)}const PI=wt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),kl=PI,RI=Q.createContext({}),AI=RI,MI=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],OI=e=>{const{color:i,disableElevation:v,fullWidth:y,size:C,variant:A,classes:f}=e,T={root:["root",A,`${A}${Rt(i)}`,`size${Rt(C)}`,`${A}Size${Rt(C)}`,i==="inherit"&&"colorInherit",v&&"disableElevation",y&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Rt(C)}`],endIcon:["endIcon",`iconSize${Rt(C)}`]},t=Ft(T,CI,f);return Z({},f,t)},A2=e=>Z({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),wI=gt(da,{shouldForwardProp:e=>Yi(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.root,i[v.variant],i[`${v.variant}${Rt(v.color)}`],i[`size${Rt(v.size)}`],i[`${v.variant}Size${Rt(v.size)}`],v.color==="inherit"&&i.colorInherit,v.disableElevation&&i.disableElevation,v.fullWidth&&i.fullWidth]}})(({theme:e,ownerState:i})=>{var v,y;const C=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],A=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return Z({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Z({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Qt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},i.variant==="text"&&i.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[i.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qt(e.palette[i.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},i.variant==="outlined"&&i.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[i.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[i.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qt(e.palette[i.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},i.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:A,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},i.variant==="contained"&&i.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[i.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[i.color].main}}),"&:active":Z({},i.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${kl.focusVisible}`]:Z({},i.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${kl.disabled}`]:Z({color:(e.vars||e).palette.action.disabled},i.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},i.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},i.variant==="text"&&{padding:"6px 8px"},i.variant==="text"&&i.color!=="inherit"&&{color:(e.vars||e).palette[i.color].main},i.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},i.variant==="outlined"&&i.color!=="inherit"&&{color:(e.vars||e).palette[i.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[i.color].mainChannel} / 0.5)`:`1px solid ${Qt(e.palette[i.color].main,.5)}`},i.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(v=(y=e.palette).getContrastText)==null?void 0:v.call(y,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:C,boxShadow:(e.vars||e).shadows[2]},i.variant==="contained"&&i.color!=="inherit"&&{color:(e.vars||e).palette[i.color].contrastText,backgroundColor:(e.vars||e).palette[i.color].main},i.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},i.size==="small"&&i.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},i.size==="large"&&i.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},i.size==="small"&&i.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},i.size==="large"&&i.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},i.size==="small"&&i.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},i.size==="large"&&i.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},i.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${kl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${kl.disabled}`]:{boxShadow:"none"}}),FI=gt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.startIcon,i[`iconSize${Rt(v.size)}`]]}})(({ownerState:e})=>Z({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},A2(e))),LI=gt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.endIcon,i[`iconSize${Rt(v.size)}`]]}})(({ownerState:e})=>Z({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},A2(e))),II=Q.forwardRef(function(i,v){const y=Q.useContext(AI),C=Jp(y,i),A=Lt({props:C,name:"MuiButton"}),{children:f,color:T="primary",component:t="button",className:l,disabled:g=!1,disableElevation:u=!1,disableFocusRipple:o=!1,endIcon:a,focusVisibleClassName:n,fullWidth:r=!1,size:d="medium",startIcon:s,type:h,variant:c="text"}=A,p=yt(A,MI),m=Z({},A,{color:T,component:t,disabled:g,disableElevation:u,disableFocusRipple:o,fullWidth:r,size:d,type:h,variant:c}),x=OI(m),S=s&&H.jsx(FI,{className:x.startIcon,ownerState:m,children:s}),P=a&&H.jsx(LI,{className:x.endIcon,ownerState:m,children:a});return H.jsxs(wI,Z({ownerState:m,className:xt(y.className,x.root,l),component:t,disabled:g,focusRipple:!o,focusVisibleClassName:xt(x.focusVisible,n),ref:v,type:h},p,{classes:x,children:[S,f,P]}))}),bI=II;function DI(e){return Ot("MuiCard",e)}wt("MuiCard",["root"]);const NI=["className","raised"],BI=e=>{const{classes:i}=e;return Ft({root:["root"]},DI,i)},GI=gt(Kr,{name:"MuiCard",slot:"Root",overridesResolver:(e,i)=>i.root})(()=>({overflow:"hidden"})),UI=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiCard"}),{className:C,raised:A=!1}=y,f=yt(y,NI),T=Z({},y,{raised:A}),t=BI(T);return H.jsx(GI,Z({className:xt(t.root,C),elevation:A?8:void 0,ref:v,ownerState:T},f))}),Ja=UI;function zI(e){return Ot("MuiCardActions",e)}wt("MuiCardActions",["root","spacing"]);const VI=["disableSpacing","className"],WI=e=>{const{classes:i,disableSpacing:v}=e;return Ft({root:["root",!v&&"spacing"]},zI,i)},XI=gt("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.root,!v.disableSpacing&&i.spacing]}})(({ownerState:e})=>Z({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})),YI=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiCardActions"}),{disableSpacing:C=!1,className:A}=y,f=yt(y,VI),T=Z({},y,{disableSpacing:C}),t=WI(T);return H.jsx(XI,Z({className:xt(t.root,A),ownerState:T,ref:v},f))}),Sx=YI;function HI(e){return Ot("MuiCardContent",e)}wt("MuiCardContent",["root"]);const $I=["className","component"],jI=e=>{const{classes:i}=e;return Ft({root:["root"]},HI,i)},kI=gt("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,i)=>i.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),KI=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiCardContent"}),{className:C,component:A="div"}=y,f=yt(y,$I),T=Z({},y,{component:A}),t=jI(T);return H.jsx(kI,Z({as:A,className:xt(t.root,C),ownerState:T,ref:v},f))}),Kl=KI;function QI(e){return Ot("PrivateSwitchBase",e)}wt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const ZI=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],JI=e=>{const{classes:i,checked:v,disabled:y,edge:C}=e,A={root:["root",v&&"checked",y&&"disabled",C&&`edge${Rt(C)}`],input:["input"]};return Ft(A,QI,i)},qI=gt(da)(({ownerState:e})=>Z({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),_I=gt("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),t7=Q.forwardRef(function(i,v){const{autoFocus:y,checked:C,checkedIcon:A,className:f,defaultChecked:T,disabled:t,disableFocusRipple:l=!1,edge:g=!1,icon:u,id:o,inputProps:a,inputRef:n,name:r,onBlur:d,onChange:s,onFocus:h,readOnly:c,required:p=!1,tabIndex:m,type:x,value:S}=i,P=yt(i,ZI),[E,R]=qs({controlled:C,default:!!T,name:"SwitchBase",state:"checked"}),M=fr(),O=z=>{h&&h(z),M&&M.onFocus&&M.onFocus(z)},w=z=>{d&&d(z),M&&M.onBlur&&M.onBlur(z)},L=z=>{if(z.nativeEvent.defaultPrevented)return;const W=z.target.checked;R(W),s&&s(z,W)};let F=t;M&&typeof F>"u"&&(F=M.disabled);const b=x==="checkbox"||x==="radio",D=Z({},i,{checked:E,disabled:F,disableFocusRipple:l,edge:g}),N=JI(D);return H.jsxs(qI,Z({component:"span",className:xt(N.root,f),centerRipple:!0,focusRipple:!l,disabled:F,tabIndex:null,role:void 0,onFocus:O,onBlur:w,ownerState:D,ref:v},P,{children:[H.jsx(_I,Z({autoFocus:y,checked:C,defaultChecked:T,className:N.input,disabled:F,id:b?o:void 0,name:r,onChange:L,readOnly:c,ref:n,required:p,ownerState:D,tabIndex:m,type:x},x==="checkbox"&&S===void 0?{}:{value:S},a)),E?A:u]}))}),e7=t7,i7=yl(H.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),n7=yl(H.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),r7=yl(H.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function s7(e){return Ot("MuiCheckbox",e)}const a7=wt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),Ad=a7,o7=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],l7=e=>{const{classes:i,indeterminate:v,color:y}=e,C={root:["root",v&&"indeterminate",`color${Rt(y)}`]},A=Ft(C,s7,i);return Z({},i,A)},u7=gt(e7,{shouldForwardProp:e=>Yi(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.root,v.indeterminate&&i.indeterminate,v.color!=="default"&&i[`color${Rt(v.color)}`]]}})(({theme:e,ownerState:i})=>Z({color:(e.vars||e).palette.text.secondary},!i.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${i.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qt(i.color==="default"?e.palette.action.active:e.palette[i.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},i.color!=="default"&&{[`&.${Ad.checked}, &.${Ad.indeterminate}`]:{color:(e.vars||e).palette[i.color].main},[`&.${Ad.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),h7=H.jsx(n7,{}),f7=H.jsx(i7,{}),d7=H.jsx(r7,{}),c7=Q.forwardRef(function(i,v){var y,C;const A=Lt({props:i,name:"MuiCheckbox"}),{checkedIcon:f=h7,color:T="primary",icon:t=f7,indeterminate:l=!1,indeterminateIcon:g=d7,inputProps:u,size:o="medium",className:a}=A,n=yt(A,o7),r=l?g:t,d=l?g:f,s=Z({},A,{color:T,indeterminate:l,size:o}),h=l7(s);return H.jsx(u7,Z({type:"checkbox",inputProps:Z({"data-indeterminate":l},u),icon:Q.cloneElement(r,{fontSize:(y=r.props.fontSize)!=null?y:o}),checkedIcon:Q.cloneElement(d,{fontSize:(C=d.props.fontSize)!=null?C:o}),ownerState:s,ref:v,className:xt(h.root,a)},n,{classes:h}))}),rs=c7,v7=$F({createStyledComponent:gt("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.root,i[`maxWidth${Rt(String(v.maxWidth))}`],v.fixed&&i.fixed,v.disableGutters&&i.disableGutters]}}),useThemeProps:e=>Lt({props:e,name:"MuiContainer"})}),Xr=v7,p7=(e,i)=>Z({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},i&&!e.vars&&{colorScheme:e.palette.mode}),m7=e=>Z({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),g7=(e,i=!1)=>{var v,y;const C={};i&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([T,t])=>{var l;C[e.getColorSchemeSelector(T).replace(/\s*&/,"")]={colorScheme:(l=t.palette)==null?void 0:l.mode}});let A=Z({html:p7(e,i),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:Z({margin:0},m7(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},C);const f=(v=e.components)==null||(y=v.MuiCssBaseline)==null?void 0:y.styleOverrides;return f&&(A=[A,f]),A};function y7(e){const i=Lt({props:e,name:"MuiCssBaseline"}),{children:v,enableColorScheme:y=!1}=i;return H.jsxs(Q.Fragment,{children:[H.jsx(R2,{styles:C=>g7(C,y)}),v]})}const x7=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],T7=gt("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.root,!v.open&&v.exited&&i.hidden]}})(({theme:e,ownerState:i})=>Z({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!i.open&&i.exited&&{visibility:"hidden"})),S7=gt(TI,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,i)=>i.backdrop})({zIndex:-1}),E7=Q.forwardRef(function(i,v){var y,C,A,f,T,t;const l=Lt({name:"MuiModal",props:i}),{BackdropComponent:g=S7,BackdropProps:u,classes:o,className:a,closeAfterTransition:n=!1,children:r,container:d,component:s,components:h={},componentsProps:c={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:P=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:M=!1,onBackdropClick:O,onClose:w,open:L,slotProps:F,slots:b,theme:D}=l,N=yt(l,x7),[z,W]=Q.useState(!0),Y={container:d,closeAfterTransition:n,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:P,disableScrollLock:E,hideBackdrop:R,keepMounted:M,onBackdropClick:O,onClose:w,open:L},j=Z({},l,Y,{exited:z}),G=(y=(C=b==null?void 0:b.root)!=null?C:h.Root)!=null?y:T7,V=(A=(f=b==null?void 0:b.backdrop)!=null?f:h.Backdrop)!=null?A:g,I=(T=F==null?void 0:F.root)!=null?T:c.root,B=(t=F==null?void 0:F.backdrop)!=null?t:c.backdrop;return H.jsx(h9,Z({slots:{root:G,backdrop:V},slotProps:{root:()=>Z({},uv(I,j),!Vr(G)&&{as:s,theme:D},{className:xt(a,I==null?void 0:I.className,o==null?void 0:o.root,!j.open&&j.exited&&(o==null?void 0:o.hidden))}),backdrop:()=>Z({},u,uv(B,j),{className:xt(B==null?void 0:B.className,u==null?void 0:u.className,o==null?void 0:o.backdrop)})},onTransitionEnter:()=>W(!1),onTransitionExited:()=>W(!0),ref:v},N,Y,{children:r}))}),C7=E7;function P7(e){return Ot("MuiDivider",e)}const R7=wt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Ex=R7,A7=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],M7=e=>{const{absolute:i,children:v,classes:y,flexItem:C,light:A,orientation:f,textAlign:T,variant:t}=e;return Ft({root:["root",i&&"absolute",t,A&&"light",f==="vertical"&&"vertical",C&&"flexItem",v&&"withChildren",v&&f==="vertical"&&"withChildrenVertical",T==="right"&&f!=="vertical"&&"textAlignRight",T==="left"&&f!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",f==="vertical"&&"wrapperVertical"]},P7,y)},O7=gt("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.root,v.absolute&&i.absolute,i[v.variant],v.light&&i.light,v.orientation==="vertical"&&i.vertical,v.flexItem&&i.flexItem,v.children&&i.withChildren,v.children&&v.orientation==="vertical"&&i.withChildrenVertical,v.textAlign==="right"&&v.orientation!=="vertical"&&i.textAlignRight,v.textAlign==="left"&&v.orientation!=="vertical"&&i.textAlignLeft]}})(({theme:e,ownerState:i})=>Z({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},i.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},i.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Qt(e.palette.divider,.08)},i.variant==="inset"&&{marginLeft:72},i.variant==="middle"&&i.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},i.variant==="middle"&&i.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},i.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},i.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>Z({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:i})=>Z({},i.children&&i.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:i})=>Z({},i.children&&i.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>Z({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),w7=gt("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.wrapper,v.orientation==="vertical"&&i.wrapperVertical]}})(({theme:e,ownerState:i})=>Z({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},i.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),F7=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiDivider"}),{absolute:C=!1,children:A,className:f,component:T=A?"div":"hr",flexItem:t=!1,light:l=!1,orientation:g="horizontal",role:u=T!=="hr"?"separator":void 0,textAlign:o="center",variant:a="fullWidth"}=y,n=yt(y,A7),r=Z({},y,{absolute:C,component:T,flexItem:t,light:l,orientation:g,role:u,textAlign:o,variant:a}),d=M7(r);return H.jsx(O7,Z({as:T,className:xt(d.root,f),role:u,ref:v,ownerState:r},n,{children:A?H.jsx(w7,{className:d.wrapper,ownerState:r,children:A}):null}))}),mv=F7,L7=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],I7=e=>{const{classes:i,disableUnderline:v}=e,C=Ft({root:["root",!v&&"underline"],input:["input"]},lI,i);return Z({},i,C)},b7=gt(Af,{shouldForwardProp:e=>Yi(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[...Pf(e,i),!v.disableUnderline&&i.underline]}})(({theme:e,ownerState:i})=>{var v;const y=e.palette.mode==="light",C=y?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",A=y?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",f=y?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",T=y?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Z({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:A,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:f,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:A}},[`&.${cr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:A},[`&.${cr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:T}},!i.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(v=(e.vars||e).palette[i.color||"primary"])==null?void 0:v.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${cr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${cr.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:C}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${cr.disabled}, .${cr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${cr.disabled}:before`]:{borderBottomStyle:"dotted"}},i.startAdornment&&{paddingLeft:12},i.endAdornment&&{paddingRight:12},i.multiline&&Z({padding:"25px 12px 8px"},i.size==="small"&&{paddingTop:21,paddingBottom:4},i.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),D7=gt(Mf,{name:"MuiFilledInput",slot:"Input",overridesResolver:Rf})(({theme:e,ownerState:i})=>Z({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},i.size==="small"&&{paddingTop:21,paddingBottom:4},i.hiddenLabel&&{paddingTop:16,paddingBottom:17},i.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},i.startAdornment&&{paddingLeft:0},i.endAdornment&&{paddingRight:0},i.hiddenLabel&&i.size==="small"&&{paddingTop:8,paddingBottom:9})),M2=Q.forwardRef(function(i,v){var y,C,A,f;const T=Lt({props:i,name:"MuiFilledInput"}),{components:t={},componentsProps:l,fullWidth:g=!1,inputComponent:u="input",multiline:o=!1,slotProps:a,slots:n={},type:r="text"}=T,d=yt(T,L7),s=Z({},T,{fullWidth:g,inputComponent:u,multiline:o,type:r}),h=I7(T),c={root:{ownerState:s},input:{ownerState:s}},p=a??l?Si(a??l,c):c,m=(y=(C=n.root)!=null?C:t.Root)!=null?y:b7,x=(A=(f=n.input)!=null?f:t.Input)!=null?A:D7;return H.jsx(Mm,Z({slots:{root:m,input:x},componentsProps:p,fullWidth:g,inputComponent:u,multiline:o,ref:v,type:r},d,{classes:h}))});M2.muiName="Input";const O2=M2;function N7(e){return Ot("MuiFormControl",e)}wt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const B7=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],G7=e=>{const{classes:i,margin:v,fullWidth:y}=e,C={root:["root",v!=="none"&&`margin${Rt(v)}`,y&&"fullWidth"]};return Ft(C,N7,i)},U7=gt("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},i)=>Z({},i.root,i[`margin${Rt(e.margin)}`],e.fullWidth&&i.fullWidth)})(({ownerState:e})=>Z({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),z7=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiFormControl"}),{children:C,className:A,color:f="primary",component:T="div",disabled:t=!1,error:l=!1,focused:g,fullWidth:u=!1,hiddenLabel:o=!1,margin:a="none",required:n=!1,size:r="medium",variant:d="outlined"}=y,s=yt(y,B7),h=Z({},y,{color:f,component:T,disabled:t,error:l,fullWidth:u,hiddenLabel:o,margin:a,required:n,size:r,variant:d}),c=G7(h),[p,m]=Q.useState(()=>{let w=!1;return C&&Q.Children.forEach(C,L=>{if(!vo(L,["Input","Select"]))return;const F=vo(L,["Select"])?L.props.input:L;F&&J8(F.props)&&(w=!0)}),w}),[x,S]=Q.useState(()=>{let w=!1;return C&&Q.Children.forEach(C,L=>{vo(L,["Input","Select"])&&(hh(L.props,!0)||hh(L.props.inputProps,!0))&&(w=!0)}),w}),[P,E]=Q.useState(!1);t&&P&&E(!1);const R=g!==void 0&&!t?g:P;let M;const O=Q.useMemo(()=>({adornedStart:p,setAdornedStart:m,color:f,disabled:t,error:l,filled:x,focused:R,fullWidth:u,hiddenLabel:o,size:r,onBlur:()=>{E(!1)},onEmpty:()=>{S(!1)},onFilled:()=>{S(!0)},onFocus:()=>{E(!0)},registerEffect:M,required:n,variant:d}),[p,f,t,l,x,R,u,o,M,n,r,d]);return H.jsx(Am.Provider,{value:O,children:H.jsx(U7,Z({as:T,ownerState:h,className:xt(c.root,A),ref:v},s,{children:C}))})}),w2=z7;function V7(e){return Ot("MuiFormControlLabel",e)}const W7=wt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),qa=W7,X7=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Y7=e=>{const{classes:i,disabled:v,labelPlacement:y,error:C,required:A}=e,f={root:["root",v&&"disabled",`labelPlacement${Rt(y)}`,C&&"error",A&&"required"],label:["label",v&&"disabled"],asterisk:["asterisk",C&&"error"]};return Ft(f,V7,i)},H7=gt("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[{[`& .${qa.label}`]:i.label},i.root,i[`labelPlacement${Rt(v.labelPlacement)}`]]}})(({theme:e,ownerState:i})=>Z({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${qa.disabled}`]:{cursor:"default"}},i.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},i.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},i.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${qa.label}`]:{[`&.${qa.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),$7=gt("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,i)=>i.asterisk})(({theme:e})=>({[`&.${qa.error}`]:{color:(e.vars||e).palette.error.main}})),j7=Q.forwardRef(function(i,v){var y,C;const A=Lt({props:i,name:"MuiFormControlLabel"}),{className:f,componentsProps:T={},control:t,disabled:l,disableTypography:g,label:u,labelPlacement:o="end",required:a,slotProps:n={}}=A,r=yt(A,X7),d=fr(),s=(y=l??t.props.disabled)!=null?y:d==null?void 0:d.disabled,h=a??t.props.required,c={disabled:s,required:h};["checked","name","onChange","value","inputRef"].forEach(E=>{typeof t.props[E]>"u"&&typeof A[E]<"u"&&(c[E]=A[E])});const p=Qr({props:A,muiFormControl:d,states:["error"]}),m=Z({},A,{disabled:s,labelPlacement:o,required:h,error:p.error}),x=Y7(m),S=(C=n.typography)!=null?C:T.typography;let P=u;return P!=null&&P.type!==lt&&!g&&(P=H.jsx(lt,Z({component:"span"},S,{className:xt(x.label,S==null?void 0:S.className),children:P}))),H.jsxs(H7,Z({className:xt(x.root,f),ownerState:m,ref:v},r,{children:[Q.cloneElement(t,c),P,h&&H.jsxs($7,{ownerState:m,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]}))}),ss=j7;function k7(e){return Ot("MuiFormHelperText",e)}const K7=wt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),Cx=K7;var Px;const Q7=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Z7=e=>{const{classes:i,contained:v,size:y,disabled:C,error:A,filled:f,focused:T,required:t}=e,l={root:["root",C&&"disabled",A&&"error",y&&`size${Rt(y)}`,v&&"contained",T&&"focused",f&&"filled",t&&"required"]};return Ft(l,k7,i)},J7=gt("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.root,v.size&&i[`size${Rt(v.size)}`],v.contained&&i.contained,v.filled&&i.filled]}})(({theme:e,ownerState:i})=>Z({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Cx.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Cx.error}`]:{color:(e.vars||e).palette.error.main}},i.size==="small"&&{marginTop:4},i.contained&&{marginLeft:14,marginRight:14})),q7=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiFormHelperText"}),{children:C,className:A,component:f="p"}=y,T=yt(y,Q7),t=fr(),l=Qr({props:y,muiFormControl:t,states:["variant","size","disabled","error","filled","focused","required"]}),g=Z({},y,{component:f,contained:l.variant==="filled"||l.variant==="outlined",variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),u=Z7(g);return H.jsx(J7,Z({as:f,ownerState:g,className:xt(u.root,A),ref:v},T,{children:C===" "?Px||(Px=H.jsx("span",{className:"notranslate",children:"​"})):C}))}),_7=q7;function tb(e){return Ot("MuiFormLabel",e)}const eb=wt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),To=eb,ib=["children","className","color","component","disabled","error","filled","focused","required"],nb=e=>{const{classes:i,color:v,focused:y,disabled:C,error:A,filled:f,required:T}=e,t={root:["root",`color${Rt(v)}`,C&&"disabled",A&&"error",f&&"filled",y&&"focused",T&&"required"],asterisk:["asterisk",A&&"error"]};return Ft(t,tb,i)},rb=gt("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},i)=>Z({},i.root,e.color==="secondary"&&i.colorSecondary,e.filled&&i.filled)})(({theme:e,ownerState:i})=>Z({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${To.focused}`]:{color:(e.vars||e).palette[i.color].main},[`&.${To.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${To.error}`]:{color:(e.vars||e).palette.error.main}})),sb=gt("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,i)=>i.asterisk})(({theme:e})=>({[`&.${To.error}`]:{color:(e.vars||e).palette.error.main}})),ab=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiFormLabel"}),{children:C,className:A,component:f="label"}=y,T=yt(y,ib),t=fr(),l=Qr({props:y,muiFormControl:t,states:["color","required","focused","disabled","error","filled"]}),g=Z({},y,{color:l.color||"primary",component:f,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),u=nb(g);return H.jsxs(rb,Z({as:f,ownerState:g,className:xt(u.root,A),ref:v},T,{children:[C,l.required&&H.jsxs(sb,{ownerState:g,"aria-hidden":!0,className:u.asterisk,children:[" ","*"]})]}))}),ob=ab,lb=Q.createContext(),Rx=lb;function ub(e){return Ot("MuiGrid",e)}const hb=[0,1,2,3,4,5,6,7,8,9,10],fb=["column-reverse","column","row-reverse","row"],db=["nowrap","wrap-reverse","wrap"],Da=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],tl=wt("MuiGrid",["root","container","item","zeroMinWidth",...hb.map(e=>`spacing-xs-${e}`),...fb.map(e=>`direction-xs-${e}`),...db.map(e=>`wrap-xs-${e}`),...Da.map(e=>`grid-xs-${e}`),...Da.map(e=>`grid-sm-${e}`),...Da.map(e=>`grid-md-${e}`),...Da.map(e=>`grid-lg-${e}`),...Da.map(e=>`grid-xl-${e}`)]),cb=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Vs(e){const i=parseFloat(e);return`${i}${String(e).replace(String(i),"")||"px"}`}function vb({theme:e,ownerState:i}){let v;return e.breakpoints.keys.reduce((y,C)=>{let A={};if(i[C]&&(v=i[C]),!v)return y;if(v===!0)A={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(v==="auto")A={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const f=_h({values:i.columns,breakpoints:e.breakpoints.values}),T=typeof f=="object"?f[C]:f;if(T==null)return y;const t=`${Math.round(v/T*1e8)/1e6}%`;let l={};if(i.container&&i.item&&i.columnSpacing!==0){const g=e.spacing(i.columnSpacing);if(g!=="0px"){const u=`calc(${t} + ${Vs(g)})`;l={flexBasis:u,maxWidth:u}}}A=Z({flexBasis:t,flexGrow:0,maxWidth:t},l)}return e.breakpoints.values[C]===0?Object.assign(y,A):y[e.breakpoints.up(C)]=A,y},{})}function pb({theme:e,ownerState:i}){const v=_h({values:i.direction,breakpoints:e.breakpoints.values});return Mi({theme:e},v,y=>{const C={flexDirection:y};return y.indexOf("column")===0&&(C[`& > .${tl.item}`]={maxWidth:"none"}),C})}function F2({breakpoints:e,values:i}){let v="";Object.keys(i).forEach(C=>{v===""&&i[C]!==0&&(v=C)});const y=Object.keys(e).sort((C,A)=>e[C]-e[A]);return y.slice(0,y.indexOf(v))}function mb({theme:e,ownerState:i}){const{container:v,rowSpacing:y}=i;let C={};if(v&&y!==0){const A=_h({values:y,breakpoints:e.breakpoints.values});let f;typeof A=="object"&&(f=F2({breakpoints:e.breakpoints.values,values:A})),C=Mi({theme:e},A,(T,t)=>{var l;const g=e.spacing(T);return g!=="0px"?{marginTop:`-${Vs(g)}`,[`& > .${tl.item}`]:{paddingTop:Vs(g)}}:(l=f)!=null&&l.includes(t)?{}:{marginTop:0,[`& > .${tl.item}`]:{paddingTop:0}}})}return C}function gb({theme:e,ownerState:i}){const{container:v,columnSpacing:y}=i;let C={};if(v&&y!==0){const A=_h({values:y,breakpoints:e.breakpoints.values});let f;typeof A=="object"&&(f=F2({breakpoints:e.breakpoints.values,values:A})),C=Mi({theme:e},A,(T,t)=>{var l;const g=e.spacing(T);return g!=="0px"?{width:`calc(100% + ${Vs(g)})`,marginLeft:`-${Vs(g)}`,[`& > .${tl.item}`]:{paddingLeft:Vs(g)}}:(l=f)!=null&&l.includes(t)?{}:{width:"100%",marginLeft:0,[`& > .${tl.item}`]:{paddingLeft:0}}})}return C}function yb(e,i,v={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[v[`spacing-xs-${String(e)}`]];const y=[];return i.forEach(C=>{const A=e[C];Number(A)>0&&y.push(v[`spacing-${C}-${String(A)}`])}),y}const xb=gt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e,{container:y,direction:C,item:A,spacing:f,wrap:T,zeroMinWidth:t,breakpoints:l}=v;let g=[];y&&(g=yb(f,l,i));const u=[];return l.forEach(o=>{const a=v[o];a&&u.push(i[`grid-${o}-${String(a)}`])}),[i.root,y&&i.container,A&&i.item,t&&i.zeroMinWidth,...g,C!=="row"&&i[`direction-xs-${String(C)}`],T!=="wrap"&&i[`wrap-xs-${String(T)}`],...u]}})(({ownerState:e})=>Z({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),pb,mb,gb,vb);function Tb(e,i){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const v=[];return i.forEach(y=>{const C=e[y];if(Number(C)>0){const A=`spacing-${y}-${String(C)}`;v.push(A)}}),v}const Sb=e=>{const{classes:i,container:v,direction:y,item:C,spacing:A,wrap:f,zeroMinWidth:T,breakpoints:t}=e;let l=[];v&&(l=Tb(A,t));const g=[];t.forEach(o=>{const a=e[o];a&&g.push(`grid-${o}-${String(a)}`)});const u={root:["root",v&&"container",C&&"item",T&&"zeroMinWidth",...l,y!=="row"&&`direction-xs-${String(y)}`,f!=="wrap"&&`wrap-xs-${String(f)}`,...g]};return Ft(u,ub,i)},Eb=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiGrid"}),{breakpoints:C}=Pn(),A=fm(y),{className:f,columns:T,columnSpacing:t,component:l="div",container:g=!1,direction:u="row",item:o=!1,rowSpacing:a,spacing:n=0,wrap:r="wrap",zeroMinWidth:d=!1}=A,s=yt(A,cb),h=a||n,c=t||n,p=Q.useContext(Rx),m=g?T||12:p,x={},S=Z({},s);C.keys.forEach(R=>{s[R]!=null&&(x[R]=s[R],delete S[R])});const P=Z({},A,{columns:m,container:g,direction:u,item:o,rowSpacing:h,columnSpacing:c,wrap:r,zeroMinWidth:d,spacing:n},x,{breakpoints:C.keys}),E=Sb(P);return H.jsx(Rx.Provider,{value:m,children:H.jsx(xb,Z({ownerState:P,className:xt(E.root,f),as:l,ref:v},S))})}),It=Eb,Cb=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function gv(e){return`scale(${e}, ${e**2})`}const Pb={entering:{opacity:1,transform:gv(1)},entered:{opacity:1,transform:"none"}},Md=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),L2=Q.forwardRef(function(i,v){const{addEndListener:y,appear:C=!0,children:A,easing:f,in:T,onEnter:t,onEntered:l,onEntering:g,onExit:u,onExited:o,onExiting:a,style:n,timeout:r="auto",TransitionComponent:d=Cm}=i,s=yt(i,Cb),h=Q.useRef(),c=Q.useRef(),p=Pn(),m=Q.useRef(null),x=pe(m,A.ref,v),S=F=>b=>{if(F){const D=m.current;b===void 0?F(D):F(D,b)}},P=S(g),E=S((F,b)=>{S2(F);const{duration:D,delay:N,easing:z}=sa({style:n,timeout:r,easing:f},{mode:"enter"});let W;r==="auto"?(W=p.transitions.getAutoHeightDuration(F.clientHeight),c.current=W):W=D,F.style.transition=[p.transitions.create("opacity",{duration:W,delay:N}),p.transitions.create("transform",{duration:Md?W:W*.666,delay:N,easing:z})].join(","),t&&t(F,b)}),R=S(l),M=S(a),O=S(F=>{const{duration:b,delay:D,easing:N}=sa({style:n,timeout:r,easing:f},{mode:"exit"});let z;r==="auto"?(z=p.transitions.getAutoHeightDuration(F.clientHeight),c.current=z):z=b,F.style.transition=[p.transitions.create("opacity",{duration:z,delay:D}),p.transitions.create("transform",{duration:Md?z:z*.666,delay:Md?D:D||z*.333,easing:N})].join(","),F.style.opacity=0,F.style.transform=gv(.75),u&&u(F)}),w=S(o),L=F=>{r==="auto"&&(h.current=setTimeout(F,c.current||0)),y&&y(m.current,F)};return Q.useEffect(()=>()=>{clearTimeout(h.current)},[]),H.jsx(d,Z({appear:C,in:T,nodeRef:m,onEnter:E,onEntered:R,onEntering:P,onExit:O,onExited:w,onExiting:M,addEndListener:L,timeout:r==="auto"?null:r},s,{children:(F,b)=>Q.cloneElement(A,Z({style:Z({opacity:0,transform:gv(.75),visibility:F==="exited"&&!T?"hidden":void 0},Pb[F],n,A.props.style),ref:x},b))}))});L2.muiSupportAuto=!0;const yv=L2;function Rb(e,i,v,y,C){const[A,f]=Q.useState(()=>C&&v?v(e).matches:y?y(e).matches:i);return Ai(()=>{let T=!0;if(!v)return;const t=v(e),l=()=>{T&&f(t.matches)};return l(),t.addListener(l),()=>{T=!1,t.removeListener(l)}},[e,v]),A}const I2=Ws["useSyncExternalStore"];function Ab(e,i,v,y,C){const A=Q.useCallback(()=>i,[i]),f=Q.useMemo(()=>{if(C&&v)return()=>v(e).matches;if(y!==null){const{matches:g}=y(e);return()=>g}return A},[A,e,y,C,v]),[T,t]=Q.useMemo(()=>{if(v===null)return[A,()=>()=>{}];const g=v(e);return[()=>g.matches,u=>(g.addListener(u),()=>{g.removeListener(u)})]},[A,v,e]);return I2(t,T,f)}function Om(e,i={}){const v=hm(),y=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:C=!1,matchMedia:A=y?window.matchMedia:null,ssrMatchMedia:f=null,noSsr:T=!1}=i2({name:"MuiUseMediaQuery",props:i,theme:v});let t=typeof e=="function"?e(v):e;return t=t.replace(/^@media( ?)/m,""),(I2!==void 0?Ab:Rb)(t,C,A,f,T)}const Mb=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Ob=e=>{const{classes:i,disableUnderline:v}=e,C=Ft({root:["root",!v&&"underline"],input:["input"]},rI,i);return Z({},i,C)},wb=gt(Af,{shouldForwardProp:e=>Yi(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[...Pf(e,i),!v.disableUnderline&&i.underline]}})(({theme:e,ownerState:i})=>{let y=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(y=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Z({position:"relative"},i.formControl&&{"label + &":{marginTop:16}},!i.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[i.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ba.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ba.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${y}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ba.disabled}, .${ba.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${y}`}},[`&.${ba.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Fb=gt(Mf,{name:"MuiInput",slot:"Input",overridesResolver:Rf})({}),b2=Q.forwardRef(function(i,v){var y,C,A,f;const T=Lt({props:i,name:"MuiInput"}),{disableUnderline:t,components:l={},componentsProps:g,fullWidth:u=!1,inputComponent:o="input",multiline:a=!1,slotProps:n,slots:r={},type:d="text"}=T,s=yt(T,Mb),h=Ob(T),p={root:{ownerState:{disableUnderline:t}}},m=n??g?Si(n??g,p):p,x=(y=(C=r.root)!=null?C:l.Root)!=null?y:wb,S=(A=(f=r.input)!=null?f:l.Input)!=null?A:Fb;return H.jsx(Mm,Z({slots:{root:x,input:S},slotProps:m,fullWidth:u,inputComponent:o,multiline:a,ref:v,type:d},s,{classes:h}))});b2.muiName="Input";const D2=b2;function Lb(e){return Ot("MuiInputLabel",e)}wt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Ib=["disableAnimation","margin","shrink","variant","className"],bb=e=>{const{classes:i,formControl:v,size:y,shrink:C,disableAnimation:A,variant:f,required:T}=e,l=Ft({root:["root",v&&"formControl",!A&&"animated",C&&"shrink",y==="small"&&"sizeSmall",f],asterisk:[T&&"asterisk"]},Lb,i);return Z({},i,l)},Db=gt(ob,{shouldForwardProp:e=>Yi(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[{[`& .${To.asterisk}`]:i.asterisk},i.root,v.formControl&&i.formControl,v.size==="small"&&i.sizeSmall,v.shrink&&i.shrink,!v.disableAnimation&&i.animated,i[v.variant]]}})(({theme:e,ownerState:i})=>Z({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},i.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},i.size==="small"&&{transform:"translate(0, 17px) scale(1)"},i.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!i.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},i.variant==="filled"&&Z({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},i.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},i.shrink&&Z({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},i.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),i.variant==="outlined"&&Z({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},i.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},i.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Nb=Q.forwardRef(function(i,v){const y=Lt({name:"MuiInputLabel",props:i}),{disableAnimation:C=!1,shrink:A,className:f}=y,T=yt(y,Ib),t=fr();let l=A;typeof l>"u"&&t&&(l=t.filled||t.focused||t.adornedStart);const g=Qr({props:y,muiFormControl:t,states:["size","variant","required"]}),u=Z({},y,{disableAnimation:C,formControl:t,shrink:l,size:g.size,variant:g.variant,required:g.required}),o=bb(u);return H.jsx(Db,Z({"data-shrink":l,ownerState:u,ref:v,className:xt(o.root,f)},T,{classes:o}))}),N2=Nb;function Bb(e){return Ot("MuiLink",e)}const Gb=wt("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Ub=Gb,B2={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},zb=e=>B2[e]||e,Vb=({theme:e,ownerState:i})=>{const v=zb(i.color),y=ta(e,`palette.${v}`,!1)||i.color,C=ta(e,`palette.${v}Channel`);return"vars"in e&&C?`rgba(${C} / 0.4)`:Qt(y,.4)},Wb=Vb,Xb=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Yb=e=>{const{classes:i,component:v,focusVisible:y,underline:C}=e,A={root:["root",`underline${Rt(C)}`,v==="button"&&"button",y&&"focusVisible"]};return Ft(A,Bb,i)},Hb=gt(lt,{name:"MuiLink",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.root,i[`underline${Rt(v.underline)}`],v.component==="button"&&i.button]}})(({theme:e,ownerState:i})=>Z({},i.underline==="none"&&{textDecoration:"none"},i.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},i.underline==="always"&&Z({textDecoration:"underline"},i.color!=="inherit"&&{textDecorationColor:Wb({theme:e,ownerState:i})},{"&:hover":{textDecorationColor:"inherit"}}),i.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Ub.focusVisible}`]:{outline:"auto"}})),$b=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiLink"}),{className:C,color:A="primary",component:f="a",onBlur:T,onFocus:t,TypographyClasses:l,underline:g="always",variant:u="inherit",sx:o}=y,a=yt(y,Xb),{isFocusVisibleRef:n,onBlur:r,onFocus:d,ref:s}=zh(),[h,c]=Q.useState(!1),p=pe(v,s),m=E=>{r(E),n.current===!1&&c(!1),T&&T(E)},x=E=>{d(E),n.current===!0&&c(!0),t&&t(E)},S=Z({},y,{color:A,component:f,focusVisible:h,underline:g,variant:u}),P=Yb(S);return H.jsx(Hb,Z({color:A,className:xt(P.root,C),classes:l,component:f,onBlur:m,onFocus:x,ref:p,ownerState:S,variant:u,sx:[...Object.keys(B2).includes(A)?[]:[{color:A}],...Array.isArray(o)?o:[o]]},a))}),re=$b,jb=Q.createContext({}),mn=jb;function kb(e){return Ot("MuiList",e)}wt("MuiList",["root","padding","dense","subheader"]);const Kb=["children","className","component","dense","disablePadding","subheader"],Qb=e=>{const{classes:i,disablePadding:v,dense:y,subheader:C}=e;return Ft({root:["root",!v&&"padding",y&&"dense",C&&"subheader"]},kb,i)},Zb=gt("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.root,!v.disablePadding&&i.padding,v.dense&&i.dense,v.subheader&&i.subheader]}})(({ownerState:e})=>Z({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Jb=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiList"}),{children:C,className:A,component:f="ul",dense:T=!1,disablePadding:t=!1,subheader:l}=y,g=yt(y,Kb),u=Q.useMemo(()=>({dense:T}),[T]),o=Z({},y,{component:f,dense:T,disablePadding:t}),a=Qb(o);return H.jsx(mn.Provider,{value:u,children:H.jsxs(Zb,Z({as:f,className:xt(a.root,A),ref:v,ownerState:o},g,{children:[l,C]}))})}),Au=Jb;function qb(e){return Ot("MuiListItem",e)}const _b=wt("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),hs=_b,tD=wt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),eD=tD;function iD(e){return Ot("MuiListItemSecondaryAction",e)}wt("MuiListItemSecondaryAction",["root","disableGutters"]);const nD=["className"],rD=e=>{const{disableGutters:i,classes:v}=e;return Ft({root:["root",i&&"disableGutters"]},iD,v)},sD=gt("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.root,v.disableGutters&&i.disableGutters]}})(({ownerState:e})=>Z({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),G2=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiListItemSecondaryAction"}),{className:C}=y,A=yt(y,nD),f=Q.useContext(mn),T=Z({},y,{disableGutters:f.disableGutters}),t=rD(T);return H.jsx(sD,Z({className:xt(t.root,C),ownerState:T,ref:v},A))});G2.muiName="ListItemSecondaryAction";const aD=G2,oD=["className"],lD=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],uD=(e,i)=>{const{ownerState:v}=e;return[i.root,v.dense&&i.dense,v.alignItems==="flex-start"&&i.alignItemsFlexStart,v.divider&&i.divider,!v.disableGutters&&i.gutters,!v.disablePadding&&i.padding,v.button&&i.button,v.hasSecondaryAction&&i.secondaryAction]},hD=e=>{const{alignItems:i,button:v,classes:y,dense:C,disabled:A,disableGutters:f,disablePadding:T,divider:t,hasSecondaryAction:l,selected:g}=e;return Ft({root:["root",C&&"dense",!f&&"gutters",!T&&"padding",t&&"divider",A&&"disabled",v&&"button",i==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction",g&&"selected"],container:["container"]},qb,y)},fD=gt("div",{name:"MuiListItem",slot:"Root",overridesResolver:uD})(({theme:e,ownerState:i})=>Z({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!i.disablePadding&&Z({paddingTop:8,paddingBottom:8},i.dense&&{paddingTop:4,paddingBottom:4},!i.disableGutters&&{paddingLeft:16,paddingRight:16},!!i.secondaryAction&&{paddingRight:48}),!!i.secondaryAction&&{[`& > .${eD.root}`]:{paddingRight:48}},{[`&.${hs.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${hs.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${hs.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${hs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},i.alignItems==="flex-start"&&{alignItems:"flex-start"},i.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},i.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${hs.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},i.hasSecondaryAction&&{paddingRight:48})),dD=gt("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,i)=>i.container})({position:"relative"}),cD=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiListItem"}),{alignItems:C="center",autoFocus:A=!1,button:f=!1,children:T,className:t,component:l,components:g={},componentsProps:u={},ContainerComponent:o="li",ContainerProps:{className:a}={},dense:n=!1,disabled:r=!1,disableGutters:d=!1,disablePadding:s=!1,divider:h=!1,focusVisibleClassName:c,secondaryAction:p,selected:m=!1,slotProps:x={},slots:S={}}=y,P=yt(y.ContainerProps,oD),E=yt(y,lD),R=Q.useContext(mn),M=Q.useMemo(()=>({dense:n||R.dense||!1,alignItems:C,disableGutters:d}),[C,R.dense,n,d]),O=Q.useRef(null);Ai(()=>{A&&O.current&&O.current.focus()},[A]);const w=Q.Children.toArray(T),L=w.length&&vo(w[w.length-1],["ListItemSecondaryAction"]),F=Z({},y,{alignItems:C,autoFocus:A,button:f,dense:M.dense,disabled:r,disableGutters:d,disablePadding:s,divider:h,hasSecondaryAction:L,selected:m}),b=hD(F),D=pe(O,v),N=S.root||g.Root||fD,z=x.root||u.root||{},W=Z({className:xt(b.root,z.className,t),disabled:r},E);let Y=l||"li";return f&&(W.component=l||"div",W.focusVisibleClassName=xt(hs.focusVisible,c),Y=da),L?(Y=!W.component&&!l?"div":Y,o==="li"&&(Y==="li"?Y="div":W.component==="li"&&(W.component="div")),H.jsx(mn.Provider,{value:M,children:H.jsxs(dD,Z({as:o,className:xt(b.container,a),ref:D,ownerState:F},P,{children:[H.jsx(N,Z({},z,!Vr(N)&&{as:Y,ownerState:Z({},F,z.ownerState)},W,{children:w})),w.pop()]}))})):H.jsx(mn.Provider,{value:M,children:H.jsxs(N,Z({},z,{as:Y,ref:D},!Vr(N)&&{ownerState:Z({},F,z.ownerState)},W,{children:[w,p&&H.jsx(aD,{children:p})]}))})}),ze=cD;function vD(e){return Ot("MuiListItemIcon",e)}const pD=wt("MuiListItemIcon",["root","alignItemsFlexStart"]),Ax=pD,mD=["className"],gD=e=>{const{alignItems:i,classes:v}=e;return Ft({root:["root",i==="flex-start"&&"alignItemsFlexStart"]},vD,v)},yD=gt("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.root,v.alignItems==="flex-start"&&i.alignItemsFlexStart]}})(({theme:e,ownerState:i})=>Z({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},i.alignItems==="flex-start"&&{marginTop:8})),xD=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiListItemIcon"}),{className:C}=y,A=yt(y,mD),f=Q.useContext(mn),T=Z({},y,{alignItems:f.alignItems}),t=gD(T);return H.jsx(yD,Z({className:xt(t.root,C),ownerState:T,ref:v},A))}),Ve=xD;function TD(e){return Ot("MuiListItemText",e)}const SD=wt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),fh=SD,ED=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],CD=e=>{const{classes:i,inset:v,primary:y,secondary:C,dense:A}=e;return Ft({root:["root",v&&"inset",A&&"dense",y&&C&&"multiline"],primary:["primary"],secondary:["secondary"]},TD,i)},PD=gt("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[{[`& .${fh.primary}`]:i.primary},{[`& .${fh.secondary}`]:i.secondary},i.root,v.inset&&i.inset,v.primary&&v.secondary&&i.multiline,v.dense&&i.dense]}})(({ownerState:e})=>Z({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),RD=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiListItemText"}),{children:C,className:A,disableTypography:f=!1,inset:T=!1,primary:t,primaryTypographyProps:l,secondary:g,secondaryTypographyProps:u}=y,o=yt(y,ED),{dense:a}=Q.useContext(mn);let n=t??C,r=g;const d=Z({},y,{disableTypography:f,inset:T,primary:!!n,secondary:!!r,dense:a}),s=CD(d);return n!=null&&n.type!==lt&&!f&&(n=H.jsx(lt,Z({variant:a?"body2":"body1",className:s.primary,component:l!=null&&l.variant?void 0:"span",display:"block"},l,{children:n}))),r!=null&&r.type!==lt&&!f&&(r=H.jsx(lt,Z({variant:"body2",className:s.secondary,color:"text.secondary",display:"block"},u,{children:r}))),H.jsxs(PD,Z({className:xt(s.root,A),ownerState:d,ref:v},o,{children:[n,r]}))}),vr=RD,AD=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Od(e,i,v){return e===i?e.firstChild:i&&i.nextElementSibling?i.nextElementSibling:v?null:e.firstChild}function Mx(e,i,v){return e===i?v?e.firstChild:e.lastChild:i&&i.previousElementSibling?i.previousElementSibling:v?null:e.lastChild}function U2(e,i){if(i===void 0)return!0;let v=e.innerText;return v===void 0&&(v=e.textContent),v=v.trim().toLowerCase(),v.length===0?!1:i.repeating?v[0]===i.keys[0]:v.indexOf(i.keys.join(""))===0}function Na(e,i,v,y,C,A){let f=!1,T=C(e,i,i?v:!1);for(;T;){if(T===e.firstChild){if(f)return!1;f=!0}const t=y?!1:T.disabled||T.getAttribute("aria-disabled")==="true";if(!T.hasAttribute("tabindex")||!U2(T,A)||t)T=C(e,T,v);else return T.focus(),!0}return!1}const MD=Q.forwardRef(function(i,v){const{actions:y,autoFocus:C=!1,autoFocusItem:A=!1,children:f,className:T,disabledItemsFocusable:t=!1,disableListWrap:l=!1,onKeyDown:g,variant:u="selectedMenu"}=i,o=yt(i,AD),a=Q.useRef(null),n=Q.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ai(()=>{C&&a.current.focus()},[C]),Q.useImperativeHandle(y,()=>({adjustStyleForScrollbar:(c,p)=>{const m=!a.current.style.width;if(c.clientHeight{const p=a.current,m=c.key,x=Ge(p).activeElement;if(m==="ArrowDown")c.preventDefault(),Na(p,x,l,t,Od);else if(m==="ArrowUp")c.preventDefault(),Na(p,x,l,t,Mx);else if(m==="Home")c.preventDefault(),Na(p,null,l,t,Od);else if(m==="End")c.preventDefault(),Na(p,null,l,t,Mx);else if(m.length===1){const S=n.current,P=m.toLowerCase(),E=performance.now();S.keys.length>0&&(E-S.lastTime>500?(S.keys=[],S.repeating=!0,S.previousKeyMatched=!0):S.repeating&&P!==S.keys[0]&&(S.repeating=!1)),S.lastTime=E,S.keys.push(P);const R=x&&!S.repeating&&U2(x,S);S.previousKeyMatched&&(R||Na(p,x,!1,t,Od,S))?c.preventDefault():S.previousKeyMatched=!1}g&&g(c)},d=pe(a,v);let s=-1;Q.Children.forEach(f,(c,p)=>{if(!Q.isValidElement(c)){s===p&&(s+=1,s>=f.length&&(s=-1));return}c.props.disabled||(u==="selectedMenu"&&c.props.selected||s===-1)&&(s=p),s===p&&(c.props.disabled||c.props.muiSkipListHighlight||c.type.muiSkipListHighlight)&&(s+=1,s>=f.length&&(s=-1))});const h=Q.Children.map(f,(c,p)=>{if(p===s){const m={};return A&&(m.autoFocus=!0),c.props.tabIndex===void 0&&u==="selectedMenu"&&(m.tabIndex=0),Q.cloneElement(c,m)}return c});return H.jsx(Au,Z({role:"menu",ref:d,className:T,onKeyDown:r,tabIndex:C?0:-1},o,{children:h}))}),OD=MD;function wD(e){return Ot("MuiPopover",e)}wt("MuiPopover",["root","paper"]);const FD=["onEntering"],LD=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"],ID=["slotProps"];function Ox(e,i){let v=0;return typeof i=="number"?v=i:i==="center"?v=e.height/2:i==="bottom"&&(v=e.height),v}function wx(e,i){let v=0;return typeof i=="number"?v=i:i==="center"?v=e.width/2:i==="right"&&(v=e.width),v}function Fx(e){return[e.horizontal,e.vertical].map(i=>typeof i=="number"?`${i}px`:i).join(" ")}function wd(e){return typeof e=="function"?e():e}const bD=e=>{const{classes:i}=e;return Ft({root:["root"],paper:["paper"]},wD,i)},DD=gt(C7,{name:"MuiPopover",slot:"Root",overridesResolver:(e,i)=>i.root})({}),z2=gt(Kr,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,i)=>i.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),ND=Q.forwardRef(function(i,v){var y,C,A;const f=Lt({props:i,name:"MuiPopover"}),{action:T,anchorEl:t,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:g,anchorReference:u="anchorEl",children:o,className:a,container:n,elevation:r=8,marginThreshold:d=16,open:s,PaperProps:h={},slots:c,slotProps:p,transformOrigin:m={vertical:"top",horizontal:"left"},TransitionComponent:x=yv,transitionDuration:S="auto",TransitionProps:{onEntering:P}={}}=f,E=yt(f.TransitionProps,FD),R=yt(f,LD),M=(y=p==null?void 0:p.paper)!=null?y:h,O=Q.useRef(),w=pe(O,M.ref),L=Z({},f,{anchorOrigin:l,anchorReference:u,elevation:r,marginThreshold:d,externalPaperSlotProps:M,transformOrigin:m,TransitionComponent:x,transitionDuration:S,TransitionProps:E}),F=bD(L),b=Q.useCallback(()=>{if(u==="anchorPosition")return g;const J=wd(t),_=(J&&J.nodeType===1?J:Ge(O.current).body).getBoundingClientRect();return{top:_.top+Ox(_,l.vertical),left:_.left+wx(_,l.horizontal)}},[t,l.horizontal,l.vertical,g,u]),D=Q.useCallback(J=>({vertical:Ox(J,m.vertical),horizontal:wx(J,m.horizontal)}),[m.horizontal,m.vertical]),N=Q.useCallback(J=>{const q={width:J.offsetWidth,height:J.offsetHeight},_=D(q);if(u==="none")return{top:null,left:null,transformOrigin:Fx(_)};const et=b();let it=et.top-_.vertical,tt=et.left-_.horizontal;const st=it+q.height,mt=tt+q.width,ct=sr(wd(t)),ft=ct.innerHeight-d,nt=ct.innerWidth-d;if(itft){const ot=st-ft;it-=ot,_.vertical+=ot}if(ttnt){const ot=mt-nt;tt-=ot,_.horizontal+=ot}return{top:`${Math.round(it)}px`,left:`${Math.round(tt)}px`,transformOrigin:Fx(_)}},[t,u,b,D,d]),[z,W]=Q.useState(s),Y=Q.useCallback(()=>{const J=O.current;if(!J)return;const q=N(J);q.top!==null&&(J.style.top=q.top),q.left!==null&&(J.style.left=q.left),J.style.transformOrigin=q.transformOrigin,W(!0)},[N]),j=(J,q)=>{P&&P(J,q),Y()},G=()=>{W(!1)};Q.useEffect(()=>{s&&Y()}),Q.useImperativeHandle(T,()=>s?{updatePosition:()=>{Y()}}:null,[s,Y]),Q.useEffect(()=>{if(!s)return;const J=Qp(()=>{Y()}),q=sr(t);return q.addEventListener("resize",J),()=>{J.clear(),q.removeEventListener("resize",J)}},[t,s,Y]);let V=S;S==="auto"&&!x.muiSupportAuto&&(V=void 0);const I=n||(t?Ge(wd(t)).body:void 0),B=(C=c==null?void 0:c.root)!=null?C:DD,U=(A=c==null?void 0:c.paper)!=null?A:z2,X=Jo({elementType:U,externalSlotProps:Z({},M,{style:z?M.style:Z({},M.style,{opacity:0})}),additionalProps:{elevation:r,ref:w},ownerState:L,className:xt(F.paper,M==null?void 0:M.className)}),$=Jo({elementType:B,externalSlotProps:(p==null?void 0:p.root)||{},externalForwardedProps:R,additionalProps:{ref:v,slotProps:{backdrop:{invisible:!0}},container:I,open:s},ownerState:L,className:xt(F.root,a)}),{slotProps:k}=$,K=yt($,ID);return H.jsx(B,Z({},K,!Vr(B)&&{slotProps:k},{children:H.jsx(x,Z({appear:!0,in:s,onEntering:j,onExited:G,timeout:V},E,{children:H.jsx(U,Z({},X,{children:o}))}))}))}),BD=ND;function GD(e){return Ot("MuiMenu",e)}wt("MuiMenu",["root","paper","list"]);const UD=["onEntering"],zD=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],VD={vertical:"top",horizontal:"right"},WD={vertical:"top",horizontal:"left"},XD=e=>{const{classes:i}=e;return Ft({root:["root"],paper:["paper"],list:["list"]},GD,i)},YD=gt(BD,{shouldForwardProp:e=>Yi(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,i)=>i.root})({}),HD=gt(z2,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,i)=>i.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),$D=gt(OD,{name:"MuiMenu",slot:"List",overridesResolver:(e,i)=>i.list})({outline:0}),jD=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiMenu"}),{autoFocus:C=!0,children:A,disableAutoFocusItem:f=!1,MenuListProps:T={},onClose:t,open:l,PaperProps:g={},PopoverClasses:u,transitionDuration:o="auto",TransitionProps:{onEntering:a}={},variant:n="selectedMenu"}=y,r=yt(y.TransitionProps,UD),d=yt(y,zD),s=Pn(),h=s.direction==="rtl",c=Z({},y,{autoFocus:C,disableAutoFocusItem:f,MenuListProps:T,onEntering:a,PaperProps:g,transitionDuration:o,TransitionProps:r,variant:n}),p=XD(c),m=C&&!f&&l,x=Q.useRef(null),S=(R,M)=>{x.current&&x.current.adjustStyleForScrollbar(R,s),a&&a(R,M)},P=R=>{R.key==="Tab"&&(R.preventDefault(),t&&t(R,"tabKeyDown"))};let E=-1;return Q.Children.map(A,(R,M)=>{Q.isValidElement(R)&&(R.props.disabled||(n==="selectedMenu"&&R.props.selected||E===-1)&&(E=M))}),H.jsx(YD,Z({onClose:t,anchorOrigin:{vertical:"bottom",horizontal:h?"right":"left"},transformOrigin:h?VD:WD,slots:{paper:HD},slotProps:{paper:Z({},g,{classes:Z({},g.classes,{root:p.paper})})},className:p.root,open:l,ref:v,transitionDuration:o,TransitionProps:Z({onEntering:S},r),ownerState:c},d,{classes:u,children:H.jsx($D,Z({onKeyDown:P,actions:x,autoFocus:C&&(E===-1||f),autoFocusItem:m,variant:n},T,{className:xt(p.list,T.className),children:A}))}))}),kD=jD;function KD(e){return Ot("MuiMenuItem",e)}const QD=wt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ba=QD,ZD=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],JD=(e,i)=>{const{ownerState:v}=e;return[i.root,v.dense&&i.dense,v.divider&&i.divider,!v.disableGutters&&i.gutters]},qD=e=>{const{disabled:i,dense:v,divider:y,disableGutters:C,selected:A,classes:f}=e,t=Ft({root:["root",v&&"dense",i&&"disabled",!C&&"gutters",y&&"divider",A&&"selected"]},KD,f);return Z({},f,t)},_D=gt(da,{shouldForwardProp:e=>Yi(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:JD})(({theme:e,ownerState:i})=>Z({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!i.disableGutters&&{paddingLeft:16,paddingRight:16},i.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ba.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ba.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ba.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ba.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ba.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ex.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ex.inset}`]:{marginLeft:52},[`& .${fh.root}`]:{marginTop:0,marginBottom:0},[`& .${fh.inset}`]:{paddingLeft:36},[`& .${Ax.root}`]:{minWidth:36}},!i.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},i.dense&&Z({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Ax.root} svg`]:{fontSize:"1.25rem"}}))),tN=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiMenuItem"}),{autoFocus:C=!1,component:A="li",dense:f=!1,divider:T=!1,disableGutters:t=!1,focusVisibleClassName:l,role:g="menuitem",tabIndex:u,className:o}=y,a=yt(y,ZD),n=Q.useContext(mn),r=Q.useMemo(()=>({dense:f||n.dense||!1,disableGutters:t}),[n.dense,f,t]),d=Q.useRef(null);Ai(()=>{C&&d.current&&d.current.focus()},[C]);const s=Z({},y,{dense:r.dense,divider:T,disableGutters:t}),h=qD(y),c=pe(d,v);let p;return y.disabled||(p=u!==void 0?u:-1),H.jsx(mn.Provider,{value:r,children:H.jsx(_D,Z({ref:c,role:g,tabIndex:p,component:A,focusVisibleClassName:xt(h.focusVisible,l),className:xt(h.root,o)},a,{ownerState:s,classes:h}))})}),V2=tN;function eN(e){return Ot("MuiNativeSelect",e)}const iN=wt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),wm=iN,nN=["className","disabled","error","IconComponent","inputRef","variant"],rN=e=>{const{classes:i,variant:v,disabled:y,multiple:C,open:A,error:f}=e,T={select:["select",v,y&&"disabled",C&&"multiple",f&&"error"],icon:["icon",`icon${Rt(v)}`,A&&"iconOpen",y&&"disabled"]};return Ft(T,eN,i)},W2=({ownerState:e,theme:i})=>Z({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Z({},i.vars?{backgroundColor:`rgba(${i.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:i.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${wm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(i.vars||i).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(i.vars||i).shape.borderRadius,"&:focus":{borderRadius:(i.vars||i).shape.borderRadius},"&&&":{paddingRight:32}}),sN=gt("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Yi,overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.select,i[v.variant],v.error&&i.error,{[`&.${wm.multiple}`]:i.multiple}]}})(W2),X2=({ownerState:e,theme:i})=>Z({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(i.vars||i).palette.action.active,[`&.${wm.disabled}`]:{color:(i.vars||i).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),aN=gt("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.icon,v.variant&&i[`icon${Rt(v.variant)}`],v.open&&i.iconOpen]}})(X2),oN=Q.forwardRef(function(i,v){const{className:y,disabled:C,error:A,IconComponent:f,inputRef:T,variant:t="standard"}=i,l=yt(i,nN),g=Z({},i,{disabled:C,variant:t,error:A}),u=rN(g);return H.jsxs(Q.Fragment,{children:[H.jsx(sN,Z({ownerState:g,className:xt(u.select,y),disabled:C,ref:T||v},l)),i.multiple?null:H.jsx(aN,{as:f,ownerState:g,className:u.icon})]})}),lN=oN;var Lx;const uN=["children","classes","className","label","notched"],hN=gt("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),fN=gt("legend")(({ownerState:e,theme:i})=>Z({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:i.transitions.create("width",{duration:150,easing:i.transitions.easing.easeOut})},e.withLabel&&Z({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:i.transitions.create("max-width",{duration:50,easing:i.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:i.transitions.create("max-width",{duration:100,easing:i.transitions.easing.easeOut,delay:50})})));function dN(e){const{className:i,label:v,notched:y}=e,C=yt(e,uN),A=v!=null&&v!=="",f=Z({},e,{notched:y,withLabel:A});return H.jsx(hN,Z({"aria-hidden":!0,className:i,ownerState:f},C,{children:H.jsx(fN,{ownerState:f,children:A?H.jsx("span",{children:v}):Lx||(Lx=H.jsx("span",{className:"notranslate",children:"​"}))})}))}const cN=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],vN=e=>{const{classes:i}=e,y=Ft({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},aI,i);return Z({},i,y)},pN=gt(Af,{shouldForwardProp:e=>Yi(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Pf})(({theme:e,ownerState:i})=>{const v=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Z({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${On.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${On.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:v}},[`&.${On.focused} .${On.notchedOutline}`]:{borderColor:(e.vars||e).palette[i.color].main,borderWidth:2},[`&.${On.error} .${On.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${On.disabled} .${On.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},i.startAdornment&&{paddingLeft:14},i.endAdornment&&{paddingRight:14},i.multiline&&Z({padding:"16.5px 14px"},i.size==="small"&&{padding:"8.5px 14px"}))}),mN=gt(dN,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,i)=>i.notchedOutline})(({theme:e})=>{const i=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:i}}),gN=gt(Mf,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Rf})(({theme:e,ownerState:i})=>Z({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},i.size==="small"&&{padding:"8.5px 14px"},i.multiline&&{padding:0},i.startAdornment&&{paddingLeft:0},i.endAdornment&&{paddingRight:0})),Y2=Q.forwardRef(function(i,v){var y,C,A,f,T;const t=Lt({props:i,name:"MuiOutlinedInput"}),{components:l={},fullWidth:g=!1,inputComponent:u="input",label:o,multiline:a=!1,notched:n,slots:r={},type:d="text"}=t,s=yt(t,cN),h=vN(t),c=fr(),p=Qr({props:t,muiFormControl:c,states:["required"]}),m=Z({},t,{color:p.color||"primary",disabled:p.disabled,error:p.error,focused:p.focused,formControl:c,fullWidth:g,hiddenLabel:p.hiddenLabel,multiline:a,size:p.size,type:d}),x=(y=(C=r.root)!=null?C:l.Root)!=null?y:pN,S=(A=(f=r.input)!=null?f:l.Input)!=null?A:gN;return H.jsx(Mm,Z({slots:{root:x,input:S},renderSuffix:P=>H.jsx(mN,{ownerState:m,className:h.notchedOutline,label:o!=null&&o!==""&&p.required?T||(T=H.jsxs(Q.Fragment,{children:[o," ","*"]})):o,notched:typeof n<"u"?n:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:g,inputComponent:u,multiline:a,ref:v,type:d},s,{classes:Z({},h,{notchedOutline:null})}))});Y2.muiName="Input";const H2=Y2;function yN(e){return Ot("MuiSelect",e)}const xN=wt("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ga=xN;var Ix;const TN=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],SN=gt("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[{[`&.${Ga.select}`]:i.select},{[`&.${Ga.select}`]:i[v.variant]},{[`&.${Ga.error}`]:i.error},{[`&.${Ga.multiple}`]:i.multiple}]}})(W2,{[`&.${Ga.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),EN=gt("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.icon,v.variant&&i[`icon${Rt(v.variant)}`],v.open&&i.iconOpen]}})(X2),CN=gt("input",{shouldForwardProp:e=>x4(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,i)=>i.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function bx(e,i){return typeof i=="object"&&i!==null?e===i:String(e)===String(i)}function PN(e){return e==null||typeof e=="string"&&!e.trim()}const RN=e=>{const{classes:i,variant:v,disabled:y,multiple:C,open:A,error:f}=e,T={select:["select",v,y&&"disabled",C&&"multiple",f&&"error"],icon:["icon",`icon${Rt(v)}`,A&&"iconOpen",y&&"disabled"],nativeInput:["nativeInput"]};return Ft(T,yN,i)},AN=Q.forwardRef(function(i,v){const{"aria-describedby":y,"aria-label":C,autoFocus:A,autoWidth:f,children:T,className:t,defaultOpen:l,defaultValue:g,disabled:u,displayEmpty:o,error:a=!1,IconComponent:n,inputRef:r,labelId:d,MenuProps:s={},multiple:h,name:c,onBlur:p,onChange:m,onClose:x,onFocus:S,onOpen:P,open:E,readOnly:R,renderValue:M,SelectDisplayProps:O={},tabIndex:w,value:L,variant:F="standard"}=i,b=yt(i,TN),[D,N]=qs({controlled:L,default:g,name:"Select"}),[z,W]=qs({controlled:E,default:l,name:"Select"}),Y=Q.useRef(null),j=Q.useRef(null),[G,V]=Q.useState(null),{current:I}=Q.useRef(E!=null),[B,U]=Q.useState(),X=pe(v,r),$=Q.useCallback(ut=>{j.current=ut,ut&&V(ut)},[]),k=G==null?void 0:G.parentNode;Q.useImperativeHandle(X,()=>({focus:()=>{j.current.focus()},node:Y.current,value:D}),[D]),Q.useEffect(()=>{l&&z&&G&&!I&&(U(f?null:k.clientWidth),j.current.focus())},[G,f]),Q.useEffect(()=>{A&&j.current.focus()},[A]),Q.useEffect(()=>{if(!d)return;const ut=Ge(j.current).getElementById(d);if(ut){const Mt=()=>{getSelection().isCollapsed&&j.current.focus()};return ut.addEventListener("click",Mt),()=>{ut.removeEventListener("click",Mt)}}},[d]);const K=(ut,Mt)=>{ut?P&&P(Mt):x&&x(Mt),I||(U(f?null:k.clientWidth),W(ut))},J=ut=>{ut.button===0&&(ut.preventDefault(),j.current.focus(),K(!0,ut))},q=ut=>{K(!1,ut)},_=Q.Children.toArray(T),et=ut=>{const Mt=_.find(bt=>bt.props.value===ut.target.value);Mt!==void 0&&(N(Mt.props.value),m&&m(ut,Mt))},it=ut=>Mt=>{let bt;if(Mt.currentTarget.hasAttribute("tabindex")){if(h){bt=Array.isArray(D)?D.slice():[];const Yt=D.indexOf(ut.props.value);Yt===-1?bt.push(ut.props.value):bt.splice(Yt,1)}else bt=ut.props.value;if(ut.props.onClick&&ut.props.onClick(Mt),D!==bt&&(N(bt),m)){const Yt=Mt.nativeEvent||Mt,Zt=new Yt.constructor(Yt.type,Yt);Object.defineProperty(Zt,"target",{writable:!0,value:{value:bt,name:c}}),m(Zt,ut)}h||K(!1,Mt)}},tt=ut=>{R||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ut.key)!==-1&&(ut.preventDefault(),K(!0,ut))},st=G!==null&&z,mt=ut=>{!st&&p&&(Object.defineProperty(ut,"target",{writable:!0,value:{value:D,name:c}}),p(ut))};delete b["aria-invalid"];let ct,ft;const nt=[];let ot=!1;(hh({value:D})||o)&&(M?ct=M(D):ot=!0);const ht=_.map(ut=>{if(!Q.isValidElement(ut))return null;let Mt;if(h){if(!Array.isArray(D))throw new Error(rr(2));Mt=D.some(bt=>bx(bt,ut.props.value)),Mt&&ot&&nt.push(ut.props.children)}else Mt=bx(D,ut.props.value),Mt&&ot&&(ft=ut.props.children);return Q.cloneElement(ut,{"aria-selected":Mt?"true":"false",onClick:it(ut),onKeyUp:bt=>{bt.key===" "&&bt.preventDefault(),ut.props.onKeyUp&&ut.props.onKeyUp(bt)},role:"option",selected:Mt,value:void 0,"data-value":ut.props.value})});ot&&(h?nt.length===0?ct=null:ct=nt.reduce((ut,Mt,bt)=>(ut.push(Mt),bt{const{classes:i}=e;return i},Fm={name:"MuiSelect",overridesResolver:(e,i)=>i.root,shouldForwardProp:e=>Yi(e)&&e!=="variant",slot:"Root"},FN=gt(D2,Fm)(""),LN=gt(H2,Fm)(""),IN=gt(O2,Fm)(""),$2=Q.forwardRef(function(i,v){const y=Lt({name:"MuiSelect",props:i}),{autoWidth:C=!1,children:A,classes:f={},className:T,defaultOpen:t=!1,displayEmpty:l=!1,IconComponent:g=hI,id:u,input:o,inputProps:a,label:n,labelId:r,MenuProps:d,multiple:s=!1,native:h=!1,onClose:c,onOpen:p,open:m,renderValue:x,SelectDisplayProps:S,variant:P="outlined"}=y,E=yt(y,ON),R=h?lN:MN,M=fr(),O=Qr({props:y,muiFormControl:M,states:["variant","error"]}),w=O.variant||P,L=Z({},y,{variant:w,classes:f}),F=wN(L),b=o||{standard:H.jsx(FN,{ownerState:L}),outlined:H.jsx(LN,{label:n,ownerState:L}),filled:H.jsx(IN,{ownerState:L})}[w],D=pe(v,b.ref);return H.jsx(Q.Fragment,{children:Q.cloneElement(b,Z({inputComponent:R,inputProps:Z({children:A,error:O.error,IconComponent:g,variant:w,type:void 0,multiple:s},h?{id:u}:{autoWidth:C,defaultOpen:t,displayEmpty:l,labelId:r,MenuProps:d,onClose:c,onOpen:p,open:m,renderValue:x,SelectDisplayProps:Z({id:u},S)},a,{classes:a?Si(F,a.classes):F},o?o.props.inputProps:{})},s&&h&&w==="outlined"?{notched:!0}:{},{ref:D,className:xt(b.props.className,T)},!o&&{variant:w},E))})});$2.muiName="Select";const Lm=$2;function bN(e){return Ot("MuiSkeleton",e)}wt("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const DN=["animation","className","component","height","style","variant","width"];let dh=e=>e,Dx,Nx,Bx,Gx;const NN=e=>{const{classes:i,variant:v,animation:y,hasChildren:C,width:A,height:f}=e;return Ft({root:["root",v,y,C&&"withChildren",C&&!A&&"fitContent",C&&!f&&"heightAuto"]},bN,i)},BN=cl(Dx||(Dx=dh` + 0% { + opacity: 1; + } + + 50% { + opacity: 0.4; + } + + 100% { + opacity: 1; + } +`)),GN=cl(Nx||(Nx=dh` + 0% { + transform: translateX(-100%); + } + + 50% { + /* +0.5s of delay between each loop */ + transform: translateX(100%); + } + + 100% { + transform: translateX(100%); + } +`)),UN=gt("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.root,i[v.variant],v.animation!==!1&&i[v.animation],v.hasChildren&&i.withChildren,v.hasChildren&&!v.width&&i.fitContent,v.hasChildren&&!v.height&&i.heightAuto]}})(({theme:e,ownerState:i})=>{const v=m4(e.shape.borderRadius)||"px",y=g4(e.shape.borderRadius);return Z({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:Qt(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},i.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${y}${v}/${Math.round(y/.6*10)/10}${v}`,"&:empty:before":{content:'"\\00a0"'}},i.variant==="circular"&&{borderRadius:"50%"},i.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},i.hasChildren&&{"& > *":{visibility:"hidden"}},i.hasChildren&&!i.width&&{maxWidth:"fit-content"},i.hasChildren&&!i.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&ov(Bx||(Bx=dh` + animation: ${0} 1.5s ease-in-out 0.5s infinite; + `),BN),({ownerState:e,theme:i})=>e.animation==="wave"&&ov(Gx||(Gx=dh` + position: relative; + overflow: hidden; + + /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */ + -webkit-mask-image: -webkit-radial-gradient(white, black); + + &::after { + animation: ${0} 1.6s linear 0.5s infinite; + background: linear-gradient( + 90deg, + transparent, + ${0}, + transparent + ); + content: ''; + position: absolute; + transform: translateX(-100%); /* Avoid flash during server-side hydration */ + bottom: 0; + left: 0; + right: 0; + top: 0; + } + `),GN,(i.vars||i).palette.action.hover)),zN=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiSkeleton"}),{animation:C="pulse",className:A,component:f="span",height:T,style:t,variant:l="text",width:g}=y,u=yt(y,DN),o=Z({},y,{animation:C,component:f,variant:l,hasChildren:!!u.children}),a=NN(o);return H.jsx(UN,Z({as:f,ref:v,className:xt(a.root,A),ownerState:o},u,{style:Z({width:g,height:T},t)}))}),VN=zN;function WN(e){return Ot("MuiTooltip",e)}const XN=wt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),cn=XN,YN=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function HN(e){return Math.round(e*1e5)/1e5}const $N=e=>{const{classes:i,disableInteractive:v,arrow:y,touch:C,placement:A}=e,f={popper:["popper",!v&&"popperInteractive",y&&"popperArrow"],tooltip:["tooltip",y&&"tooltipArrow",C&&"touch",`tooltipPlacement${Rt(A.split("-")[0])}`],arrow:["arrow"]};return Ft(f,WN,i)},jN=gt(P2,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.popper,!v.disableInteractive&&i.popperInteractive,v.arrow&&i.popperArrow,!v.open&&i.popperClose]}})(({theme:e,ownerState:i,open:v})=>Z({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!i.disableInteractive&&{pointerEvents:"auto"},!v&&{pointerEvents:"none"},i.arrow&&{[`&[data-popper-placement*="bottom"] .${cn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${cn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${cn.arrow}`]:Z({},i.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${cn.arrow}`]:Z({},i.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),kN=gt("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.tooltip,v.touch&&i.touch,v.arrow&&i.tooltipArrow,i[`tooltipPlacement${Rt(v.placement.split("-")[0])}`]]}})(({theme:e,ownerState:i})=>Z({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Qt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},i.arrow&&{position:"relative",margin:0},i.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${HN(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${cn.popper}[data-popper-placement*="left"] &`]:Z({transformOrigin:"right center"},i.isRtl?Z({marginLeft:"14px"},i.touch&&{marginLeft:"24px"}):Z({marginRight:"14px"},i.touch&&{marginRight:"24px"})),[`.${cn.popper}[data-popper-placement*="right"] &`]:Z({transformOrigin:"left center"},i.isRtl?Z({marginRight:"14px"},i.touch&&{marginRight:"24px"}):Z({marginLeft:"14px"},i.touch&&{marginLeft:"24px"})),[`.${cn.popper}[data-popper-placement*="top"] &`]:Z({transformOrigin:"center bottom",marginBottom:"14px"},i.touch&&{marginBottom:"24px"}),[`.${cn.popper}[data-popper-placement*="bottom"] &`]:Z({transformOrigin:"center top",marginTop:"14px"},i.touch&&{marginTop:"24px"})})),KN=gt("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,i)=>i.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Qt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Ql=!1,Fd=null,Ua={x:0,y:0};function Zl(e,i){return v=>{i&&i(v),e(v)}}const QN=Q.forwardRef(function(i,v){var y,C,A,f,T,t,l,g,u,o,a,n,r,d,s,h,c,p,m;const x=Lt({props:i,name:"MuiTooltip"}),{arrow:S=!1,children:P,components:E={},componentsProps:R={},describeChild:M=!1,disableFocusListener:O=!1,disableHoverListener:w=!1,disableInteractive:L=!1,disableTouchListener:F=!1,enterDelay:b=100,enterNextDelay:D=0,enterTouchDelay:N=700,followCursor:z=!1,id:W,leaveDelay:Y=0,leaveTouchDelay:j=1500,onClose:G,onOpen:V,open:I,placement:B="bottom",PopperComponent:U,PopperProps:X={},slotProps:$={},slots:k={},title:K,TransitionComponent:J=yv,TransitionProps:q}=x,_=yt(x,YN),et=Pn(),it=et.direction==="rtl",[tt,st]=Q.useState(),[mt,ct]=Q.useState(null),ft=Q.useRef(!1),nt=L||z,ot=Q.useRef(),ht=Q.useRef(),St=Q.useRef(),At=Q.useRef(),[Dt,Pt]=qs({controlled:I,default:!1,name:"Tooltip",state:"open"});let pt=Dt;const ut=Zp(W),Mt=Q.useRef(),bt=Q.useCallback(()=>{Mt.current!==void 0&&(document.body.style.WebkitUserSelect=Mt.current,Mt.current=void 0),clearTimeout(At.current)},[]);Q.useEffect(()=>()=>{clearTimeout(ot.current),clearTimeout(ht.current),clearTimeout(St.current),bt()},[bt]);const Yt=Nt=>{clearTimeout(Fd),Ql=!0,Pt(!0),V&&!pt&&V(Nt)},Zt=Xn(Nt=>{clearTimeout(Fd),Fd=setTimeout(()=>{Ql=!1},800+Y),Pt(!1),G&&pt&&G(Nt),clearTimeout(ot.current),ot.current=setTimeout(()=>{ft.current=!1},et.transitions.duration.shortest)}),Me=Nt=>{ft.current&&Nt.type!=="touchstart"||(tt&&tt.removeAttribute("title"),clearTimeout(ht.current),clearTimeout(St.current),b||Ql&&D?ht.current=setTimeout(()=>{Yt(Nt)},Ql?D:b):Yt(Nt))},Hi=Nt=>{clearTimeout(ht.current),clearTimeout(St.current),St.current=setTimeout(()=>{Zt(Nt)},Y)},{isFocusVisibleRef:$i,onBlur:sn,onFocus:an,ref:on}=zh(),[,qm]=Q.useState(!1),_m=Nt=>{sn(Nt),$i.current===!1&&(qm(!1),Hi(Nt))},t0=Nt=>{tt||st(Nt.currentTarget),an(Nt),$i.current===!0&&(qm(!0),Me(Nt))},e0=Nt=>{ft.current=!0;const ni=P.props;ni.onTouchStart&&ni.onTouchStart(Nt)},i0=Me,n0=Hi,pC=Nt=>{e0(Nt),clearTimeout(St.current),clearTimeout(ot.current),bt(),Mt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",At.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Mt.current,Me(Nt)},N)},mC=Nt=>{P.props.onTouchEnd&&P.props.onTouchEnd(Nt),bt(),clearTimeout(St.current),St.current=setTimeout(()=>{Zt(Nt)},j)};Q.useEffect(()=>{if(!pt)return;function Nt(ni){(ni.key==="Escape"||ni.key==="Esc")&&Zt(ni)}return document.addEventListener("keydown",Nt),()=>{document.removeEventListener("keydown",Nt)}},[Zt,pt]);const gC=pe(P.ref,on,st,v);!K&&K!==0&&(pt=!1);const Ff=Q.useRef(),yC=Nt=>{const ni=P.props;ni.onMouseMove&&ni.onMouseMove(Nt),Ua={x:Nt.clientX,y:Nt.clientY},Ff.current&&Ff.current.update()},ca={},Lf=typeof K=="string";M?(ca.title=!pt&&Lf&&!w?K:null,ca["aria-describedby"]=pt?ut:null):(ca["aria-label"]=Lf?K:null,ca["aria-labelledby"]=pt&&!Lf?ut:null);const Li=Z({},ca,_,P.props,{className:xt(_.className,P.props.className),onTouchStart:e0,ref:gC},z?{onMouseMove:yC}:{}),va={};F||(Li.onTouchStart=pC,Li.onTouchEnd=mC),w||(Li.onMouseOver=Zl(i0,Li.onMouseOver),Li.onMouseLeave=Zl(n0,Li.onMouseLeave),nt||(va.onMouseOver=i0,va.onMouseLeave=n0)),O||(Li.onFocus=Zl(t0,Li.onFocus),Li.onBlur=Zl(_m,Li.onBlur),nt||(va.onFocus=t0,va.onBlur=_m));const xC=Q.useMemo(()=>{var Nt;let ni=[{name:"arrow",enabled:!!mt,options:{element:mt,padding:4}}];return(Nt=X.popperOptions)!=null&&Nt.modifiers&&(ni=ni.concat(X.popperOptions.modifiers)),Z({},X.popperOptions,{modifiers:ni})},[mt,X]),pa=Z({},x,{isRtl:it,arrow:S,disableInteractive:nt,placement:B,PopperComponentProp:U,touch:ft.current}),If=$N(pa),r0=(y=(C=k.popper)!=null?C:E.Popper)!=null?y:jN,s0=(A=(f=(T=k.transition)!=null?T:E.Transition)!=null?f:J)!=null?A:yv,a0=(t=(l=k.tooltip)!=null?l:E.Tooltip)!=null?t:kN,o0=(g=(u=k.arrow)!=null?u:E.Arrow)!=null?g:KN,TC=ja(r0,Z({},X,(o=$.popper)!=null?o:R.popper,{className:xt(If.popper,X==null?void 0:X.className,(a=(n=$.popper)!=null?n:R.popper)==null?void 0:a.className)}),pa),SC=ja(s0,Z({},q,(r=$.transition)!=null?r:R.transition),pa),EC=ja(a0,Z({},(d=$.tooltip)!=null?d:R.tooltip,{className:xt(If.tooltip,(s=(h=$.tooltip)!=null?h:R.tooltip)==null?void 0:s.className)}),pa),CC=ja(o0,Z({},(c=$.arrow)!=null?c:R.arrow,{className:xt(If.arrow,(p=(m=$.arrow)!=null?m:R.arrow)==null?void 0:p.className)}),pa);return H.jsxs(Q.Fragment,{children:[Q.cloneElement(P,Li),H.jsx(r0,Z({as:U??P2,placement:B,anchorEl:z?{getBoundingClientRect:()=>({top:Ua.y,left:Ua.x,right:Ua.x,bottom:Ua.y,width:0,height:0})}:tt,popperRef:Ff,open:tt?pt:!1,id:ut,transition:!0},va,TC,{popperOptions:xC,children:({TransitionProps:Nt})=>H.jsx(s0,Z({timeout:et.transitions.duration.shorter},Nt,SC,{children:H.jsxs(a0,Z({},EC,{children:[K,S?H.jsx(o0,Z({},CC,{ref:ct})):null]}))}))}))]})}),ZN=QN,JN=Q.createContext(),j2=JN;function qN(e){return Ot("MuiTable",e)}wt("MuiTable",["root","stickyHeader"]);const _N=["className","component","padding","size","stickyHeader"],tB=e=>{const{classes:i,stickyHeader:v}=e;return Ft({root:["root",v&&"stickyHeader"]},qN,i)},eB=gt("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.root,v.stickyHeader&&i.stickyHeader]}})(({theme:e,ownerState:i})=>Z({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Z({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},i.stickyHeader&&{borderCollapse:"separate"})),Ux="table",iB=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiTable"}),{className:C,component:A=Ux,padding:f="normal",size:T="medium",stickyHeader:t=!1}=y,l=yt(y,_N),g=Z({},y,{component:A,padding:f,size:T,stickyHeader:t}),u=tB(g),o=Q.useMemo(()=>({padding:f,size:T,stickyHeader:t}),[f,T,t]);return H.jsx(j2.Provider,{value:o,children:H.jsx(eB,Z({as:A,role:A===Ux?null:"table",ref:v,className:xt(u.root,C),ownerState:g},l))})}),nB=iB,rB=Q.createContext(),Of=rB;function sB(e){return Ot("MuiTableBody",e)}wt("MuiTableBody",["root"]);const aB=["className","component"],oB=e=>{const{classes:i}=e;return Ft({root:["root"]},sB,i)},lB=gt("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,i)=>i.root})({display:"table-row-group"}),uB={variant:"body"},zx="tbody",hB=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiTableBody"}),{className:C,component:A=zx}=y,f=yt(y,aB),T=Z({},y,{component:A}),t=oB(T);return H.jsx(Of.Provider,{value:uB,children:H.jsx(lB,Z({className:xt(t.root,C),as:A,ref:v,role:A===zx?null:"rowgroup",ownerState:T},f))})}),fB=hB;function dB(e){return Ot("MuiTableCell",e)}const cB=wt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),vB=cB,pB=["align","className","component","padding","scope","size","sortDirection","variant"],mB=e=>{const{classes:i,variant:v,align:y,padding:C,size:A,stickyHeader:f}=e,T={root:["root",v,f&&"stickyHeader",y!=="inherit"&&`align${Rt(y)}`,C!=="normal"&&`padding${Rt(C)}`,`size${Rt(A)}`]};return Ft(T,dB,i)},gB=gt("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.root,i[v.variant],i[`size${Rt(v.size)}`],v.padding!=="normal"&&i[`padding${Rt(v.padding)}`],v.align!=="inherit"&&i[`align${Rt(v.align)}`],v.stickyHeader&&i.stickyHeader]}})(({theme:e,ownerState:i})=>Z({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?s2(Qt(e.palette.divider,1),.88):r2(Qt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},i.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},i.variant==="body"&&{color:(e.vars||e).palette.text.primary},i.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},i.size==="small"&&{padding:"6px 16px",[`&.${vB.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},i.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},i.padding==="none"&&{padding:0},i.align==="left"&&{textAlign:"left"},i.align==="center"&&{textAlign:"center"},i.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},i.align==="justify"&&{textAlign:"justify"},i.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),yB=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiTableCell"}),{align:C="inherit",className:A,component:f,padding:T,scope:t,size:l,sortDirection:g,variant:u}=y,o=yt(y,pB),a=Q.useContext(j2),n=Q.useContext(Of),r=n&&n.variant==="head";let d;f?d=f:d=r?"th":"td";let s=t;d==="td"?s=void 0:!s&&r&&(s="col");const h=u||n&&n.variant,c=Z({},y,{align:C,component:d,padding:T||(a&&a.padding?a.padding:"normal"),size:l||(a&&a.size?a.size:"medium"),sortDirection:g,stickyHeader:h==="head"&&a&&a.stickyHeader,variant:h}),p=mB(c);let m=null;return g&&(m=g==="asc"?"ascending":"descending"),H.jsx(gB,Z({as:d,ref:v,className:xt(p.root,A),"aria-sort":m,scope:s,ownerState:c},o))}),Jl=yB;function xB(e){return Ot("MuiTableContainer",e)}wt("MuiTableContainer",["root"]);const TB=["className","component"],SB=e=>{const{classes:i}=e;return Ft({root:["root"]},xB,i)},EB=gt("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,i)=>i.root})({width:"100%",overflowX:"auto"}),CB=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiTableContainer"}),{className:C,component:A="div"}=y,f=yt(y,TB),T=Z({},y,{component:A}),t=SB(T);return H.jsx(EB,Z({ref:v,as:A,className:xt(t.root,C),ownerState:T},f))}),PB=CB;function RB(e){return Ot("MuiTableHead",e)}wt("MuiTableHead",["root"]);const AB=["className","component"],MB=e=>{const{classes:i}=e;return Ft({root:["root"]},RB,i)},OB=gt("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,i)=>i.root})({display:"table-header-group"}),wB={variant:"head"},Vx="thead",FB=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiTableHead"}),{className:C,component:A=Vx}=y,f=yt(y,AB),T=Z({},y,{component:A}),t=MB(T);return H.jsx(Of.Provider,{value:wB,children:H.jsx(OB,Z({as:A,className:xt(t.root,C),ref:v,role:A===Vx?null:"rowgroup",ownerState:T},f))})}),LB=FB;function IB(e){return Ot("MuiToolbar",e)}wt("MuiToolbar",["root","gutters","regular","dense"]);const bB=["className","component","disableGutters","variant"],DB=e=>{const{classes:i,disableGutters:v,variant:y}=e;return Ft({root:["root",!v&&"gutters",y]},IB,i)},NB=gt("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.root,!v.disableGutters&&i.gutters,i[v.variant]]}})(({theme:e,ownerState:i})=>Z({position:"relative",display:"flex",alignItems:"center"},!i.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},i.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:i})=>i.variant==="regular"&&e.mixins.toolbar),BB=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiToolbar"}),{className:C,component:A="div",disableGutters:f=!1,variant:T="regular"}=y,t=yt(y,bB),l=Z({},y,{component:A,disableGutters:f,variant:T}),g=DB(l);return H.jsx(NB,Z({as:A,className:xt(g.root,C),ref:v,ownerState:l},t))}),GB=BB;function UB(e){return Ot("MuiTableRow",e)}const zB=wt("MuiTableRow",["root","selected","hover","head","footer"]),Wx=zB,VB=["className","component","hover","selected"],WB=e=>{const{classes:i,selected:v,hover:y,head:C,footer:A}=e;return Ft({root:["root",v&&"selected",y&&"hover",C&&"head",A&&"footer"]},UB,i)},XB=gt("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:v}=e;return[i.root,v.head&&i.head,v.footer&&i.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Wx.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Wx.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),Xx="tr",YB=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiTableRow"}),{className:C,component:A=Xx,hover:f=!1,selected:T=!1}=y,t=yt(y,VB),l=Q.useContext(Of),g=Z({},y,{component:A,hover:f,selected:T,head:l&&l.variant==="head",footer:l&&l.variant==="footer"}),u=WB(g);return H.jsx(XB,Z({as:A,ref:v,className:xt(u.root,C),role:A===Xx?null:"row",ownerState:g},t))}),Yx=YB;function HB(e){return Ot("MuiTextField",e)}wt("MuiTextField",["root"]);const $B=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],jB={standard:D2,filled:O2,outlined:H2},kB=e=>{const{classes:i}=e;return Ft({root:["root"]},HB,i)},KB=gt(w2,{name:"MuiTextField",slot:"Root",overridesResolver:(e,i)=>i.root})({}),QB=Q.forwardRef(function(i,v){const y=Lt({props:i,name:"MuiTextField"}),{autoComplete:C,autoFocus:A=!1,children:f,className:T,color:t="primary",defaultValue:l,disabled:g=!1,error:u=!1,FormHelperTextProps:o,fullWidth:a=!1,helperText:n,id:r,InputLabelProps:d,inputProps:s,InputProps:h,inputRef:c,label:p,maxRows:m,minRows:x,multiline:S=!1,name:P,onBlur:E,onChange:R,onClick:M,onFocus:O,placeholder:w,required:L=!1,rows:F,select:b=!1,SelectProps:D,type:N,value:z,variant:W="outlined"}=y,Y=yt(y,$B),j=Z({},y,{autoFocus:A,color:t,disabled:g,error:u,fullWidth:a,multiline:S,required:L,select:b,variant:W}),G=kB(j),V={};W==="outlined"&&(d&&typeof d.shrink<"u"&&(V.notched=d.shrink),V.label=p),b&&((!D||!D.native)&&(V.id=void 0),V["aria-describedby"]=void 0);const I=Zp(r),B=n&&I?`${I}-helper-text`:void 0,U=p&&I?`${I}-label`:void 0,X=jB[W],$=H.jsx(X,Z({"aria-describedby":B,autoComplete:C,autoFocus:A,defaultValue:l,fullWidth:a,multiline:S,name:P,rows:F,maxRows:m,minRows:x,type:N,value:z,id:I,inputRef:c,onBlur:E,onChange:R,onFocus:O,onClick:M,placeholder:w,inputProps:s},V,h));return H.jsxs(KB,Z({className:xt(G.root,T),disabled:g,error:u,fullWidth:a,ref:v,required:L,color:t,variant:W,ownerState:j},Y,{children:[p!=null&&p!==""&&H.jsx(N2,Z({htmlFor:I,id:U},d,{children:p})),b?H.jsx(Lm,Z({"aria-describedby":B,id:I,labelId:U,value:z,input:$},D,{children:f})):$,n&&H.jsx(_7,Z({id:B},o,{children:n}))]}))}),ZB=QB,Hx=e=>e<10?`0${e}`:e.toString(),$x=e=>Math.max(9/Math.max((e==null?void 0:e.length)??0,9),.6);function Im(e){if(!e)return"";const i=new Date(e);return`${Hx(i.getDate())}/${Hx(i.getMonth()+1)}/${i.getFullYear().toString().slice(2)}`}function jx(e){return e?`Modified at ${Im(e.getTime())}`:""}function As(e,i,v=!1){return e.forms.reduce((y,C)=>!C.portraits.required&&!v?y:Math.max(y,Pr(C,i)),0)}function Pr(e,i){const{exists:v,full:y,incomplete:C}=e[i].bounty??{};return Math.max(v||0,y||0,C||0)}function JB(e,i){return e.reduce((v,y)=>{const C=i(y);return(v[C]=v[C]||[]).push(y),v},{})}function k2(e,i){return!(i!=null&&i.fullName)||e.name==i.fullName?e.name:`${e.name} ${i.fullName}`}function Fn(e,i){return v=>(i?v.set(e,i.toString()):v.delete(e),v)}function qB({form:{form:e,monster:i,formIndex:v},infoKey:y,isSpeciesThumbnail:C,creditedMonsRef:A}){var x,S,P,E,R;const{toggleState:f,miscState:T}=Q.useContext(Tl),{creditsMode:t,showFormName:l}=T,g=k2(i,e),u=Om(Pn().breakpoints.down("md"))?.75:1,o=80*u,{index:a,spriteAuthor:n,portraitAuthor:r,lastModification:d,portraitBounty:s,spriteBounty:h}=Object.fromEntries(f),c={width:o,height:25*u},p=M=>({...c,fontSize:`${$x(M)*u}em`,lineHeight:`${1.2/$x(M)*u}em`}),m=H.jsxs(Kr,{sx:{minWidth:o},elevation:2,children:[(x=e.portraits.previewEmotion)!=null&&x.url?H.jsx("img",{src:e.portraits.previewEmotion.url,style:{height:o,imageRendering:"pixelated"},loading:"lazy"}):H.jsx(lt,{variant:"h4",align:"center",sx:{height:o,display:"grid",marginBottom:13/15,placeItems:"center"},children:"?"}),H.jsx(lt,{align:"center",color:"GrayText",noWrap:!0,sx:p(i.name),children:i.name}),l&&H.jsx(lt,{color:"GrayText",align:"center",noWrap:!0,sx:p(e.fullName),children:e.fullName}),a&&H.jsx(lt,{align:"center",color:"GrayText",noWrap:!0,sx:{width:o,height:25},children:y}),r&&H.jsx(lt,{align:"center",color:"GrayText",noWrap:!0,sx:p((S=e.portraits.creditPrimary)==null?void 0:S.name),children:((P=e.portraits.creditPrimary)==null?void 0:P.name)??"N/A"}),n&&H.jsx(lt,{align:"center",color:"GrayText",noWrap:!0,sx:p((E=e.sprites.creditPrimary)==null?void 0:E.name),children:((R=e.sprites.creditPrimary)==null?void 0:R.name)??"N/A"}),d&&H.jsx(lt,{align:"center",color:"GrayText",noWrap:!0,sx:c,fontSize:16*u,children:Im(Math.max(e.portraits.modifiedDate&&new Date(e.portraits.modifiedDate).getTime()||0,e.sprites.modifiedDate&&new Date(e.sprites.modifiedDate).getTime()||0))}),s&&H.jsxs(lt,{color:"GrayText",align:"center",noWrap:!0,sx:c,fontSize:16*u,children:[C?As(i,"portraits"):Pr(e,"portraits")," gp"]}),h&&H.jsxs(lt,{color:"GrayText",align:"center",noWrap:!0,sx:c,fontSize:16*u,children:[C?As(i,"sprites"):Pr(e,"sprites")," gp"]})]});return t?H.jsx("div",{className:"credit-label",children:H.jsxs("label",{htmlFor:g,style:{cursor:"pointer"},children:[H.jsx("input",{type:"checkbox",name:g,id:g,ref:M=>A.current[g]=M}),m]})}):H.jsx(Gs,{to:`/${y}?form=${v}`,style:{transform:"scale(0.5)"},children:m})}async function _B(e,i){const v=new Set(Object.keys(i).filter(f=>{var T;return(T=i[f])==null?void 0:T.checked}));if(!e){window.alert("No monster data found!");return}let y=`All custom graphics not originating from official PMD games are licensed under Attribution-NonCommercial 4.0 International http://creativecommons.org/licenses/by/4.0/. +All graphics referred to in this file can be found in http://sprites.pmdcollab.org/ + +`;const C={};for(const{form:f,monster:T}of e){const t=k2(T,f);if(v.has(t)){for(const l of f.portraits.history){if(l.obsolete||!l.credit)continue;const g=kx(l.credit);C[g]||(C[g]={sprites:{},portraits:{}});const u=C[g].portraits;u[t]?u[t].push(...l.modifications):u[t]=[...l.modifications]}for(const l of f.sprites.history){if(l.obsolete||!l.credit)continue;const g=kx(l.credit);C[g]||(C[g]={sprites:{},portraits:{}});const u=C[g].sprites;u[t]?u[t].push(...l.modifications):u[t]=[...l.modifications]}}}for(const[f,T]of Object.entries(C).sort(Kx)){y+=`${f} +`;for(const[t,l]of Object.entries(T).sort(Kx))if(Object.keys(l).length){t=="sprites"?y+=` Sprite: +`:y+=` Portrait: +`;for(const[g,u]of Object.entries(l))y+=` ${g}: ${[...new Set(u)].join(",")} +`}}const A=URL.createObjectURL(new Blob([y],{type:"text/plain"}));window.open(A,"_blank")}function kx(e){const i=[];return e.name&&i.push(e.name),e.id&&i.push(`Discord:<@!${e.id}>`),e.contact&&i.push(`Contact:${e.contact}`),i.join(" ")}const Kx=([e],[i])=>e.localeCompare(i);function K2(){return H.jsxs(nn,{textAlign:"center",alignItems:"center",children:[H.jsx("h1",{children:"Uh Oh!"}),H.jsx(lt,{children:"Looks like the server ran into an error. This typically happens when our sprite server is down, and we'll try to get it back up as soon as possible."}),H.jsxs(lt,{children:["If this problem still occurs, check server uptime at ",H.jsx(re,{href:"https://status.pmdcollab.org/",children:"PMDCollab Status"}),"."]})]})}function xv(e){const i=e.endsWith("Sprites")?"sprites":"portraits";switch(!0){case e.startsWith("fullyFeatured"):return{type:i,phase:Su.Full};case e.startsWith("existing"):return{type:i,phase:Su.Exists};case e.startsWith("incomplete"):return{type:i,phase:Su.Incomplete};default:return{type:i,phase:null}}}function tG(e,i,v){switch(e){case ce.POKEDEX_NUMBER:return(y,C)=>y.monster.id-C.monster.id;case ce.LAST_MODIFICATION:return(y,C)=>{const{portraits:{modifiedDate:A},sprites:{modifiedDate:f}}=y.form,{portraits:{modifiedDate:T},sprites:{modifiedDate:t}}=C.form;return Math.max(new Date(T??0).getTime(),new Date(t??0).getTime())-Math.max(new Date(A??0).getTime(),new Date(f??0).getTime())};case ce.NAME:return(y,C)=>y.monster.name.localeCompare(C.monster.name);case ce.PORTRAIT_AUTHOR:return(y,C)=>{var T,t;const A=(T=y.form.portraits.creditPrimary)==null?void 0:T.name,f=(t=C.form.portraits.creditPrimary)==null?void 0:t.name;return!A||!f?A?-1:1:A.localeCompare(f)};case ce.SPRITE_AUTHOR:return(y,C)=>{var T,t;const A=(T=y.form.sprites.creditPrimary)==null?void 0:T.name,f=(t=C.form.sprites.creditPrimary)==null?void 0:t.name;return!A||!f?A?-1:1:A.localeCompare(f)};case ce.PORTRAIT_BOUNTY:return(y,C)=>i?Pr(C.form,"portraits")-Pr(y.form,"portraits"):As(C.monster,"portraits",v)-As(y.monster,"portraits",v);case ce.SPRITE_BOUNTY:return(y,C)=>i?Pr(C.form,"sprites")-Pr(y.form,"sprites"):As(C.monster,"sprites",v)-As(y.monster,"sprites",v)}}function eG(e,i,v,y,C,A){const f=y.toLowerCase();f&&(i?e=e.filter(({monster:{name:g,id:u},form:{portraits:o,sprites:a}})=>{var n,r,d,s;return g.toLowerCase().includes(f)||((r=(n=o.creditPrimary)==null?void 0:n.name)==null?void 0:r.toLowerCase().includes(f))||o.creditSecondary.some(({name:h})=>h==null?void 0:h.toLowerCase().includes(f))||((s=(d=a.creditPrimary)==null?void 0:d.name)==null?void 0:s.toLowerCase().includes(f))||a.creditSecondary.some(({name:h})=>h==null?void 0:h.toLowerCase().includes(f))||u.toString().includes(f)}):e=e.filter(({monster:{name:g,forms:u,id:o}})=>g.toLowerCase().includes(f)||u.some(({portraits:{creditPrimary:a,creditSecondary:n},sprites:{creditPrimary:r,creditSecondary:d}})=>{var s,h;return((s=a==null?void 0:a.name)==null?void 0:s.toLowerCase().includes(f))||((h=r==null?void 0:r.name)==null?void 0:h.toLowerCase().includes(f))||n.some(({name:c})=>c==null?void 0:c.toLowerCase().includes(f))||d.some(({name:c})=>c==null?void 0:c.toLowerCase().includes(f))})||o.toString().includes(f)));const{portraits:T=[],sprites:t=[]}=JB([...C.entries()].filter(([g,u])=>u).map(([g])=>xv(g)),g=>g.type),l=g=>({phase:u})=>{var o,a;return u!==null?u===g.phase:"previewEmotion"in g?!((o=g.previewEmotion)!=null&&o.url):!((a=g.actions)!=null&&a.length)};return(T.length||t.length)&&(i?e=e.filter(({form:g})=>(!T.length||T.some(l(g.portraits)))&&(!t.length||t.some(l(g.sprites)))):e=e.filter(({monster:{forms:g}})=>(!T.length||T.some(({phase:u})=>g.some(o=>(v||o.portraits.required)&&l(o.portraits)({phase:u}))))&&(!t.length||t.some(({phase:u})=>g.some(o=>(v||o.sprites.required)&&l(o.sprites)({phase:u})))))),e.filter(({form:{portraits:g,sprites:u}})=>!i||g.required||u.required||v).sort(tG(A,i,v))}function iG({currentText:e,ids:i}){const{filterState:v,toggleState:y,miscState:C,rankState:[A]}=Q.useContext(Tl),[f,T]=Q.useState(!0),t=Q.useRef({});window.x=t;const{portraitAuthor:l,spriteAuthor:g,portraitBounty:u,spriteBounty:o,lastModification:a}=Object.fromEntries(y),{splitForms:n,creditsMode:r,showUnnecessary:d}=C,s=[...v.entries()].some(([P,E])=>E&&xv(P).type=="portraits"),h=[...v.entries()].some(([P,E])=>E&&xv(P).type=="sprites"),c=l||g||!!e||n,{loading:p,error:m,data:x}=$3({variables:{ids:i,withPortraitBounty:u||A==ce.PORTRAIT_BOUNTY,withSpriteBounty:o||A==ce.SPRITE_BOUNTY,withModifiedDate:a||A==ce.LAST_MODIFICATION,withPortraitPhases:s,withSpritePhases:h,withSplitForms:n,withCredits:c||A==ce.PORTRAIT_AUTHOR||A==ce.SPRITE_AUTHOR||n||r,withForms:c||s||h||u||o||r,withCreditableHistory:r,withSpriteActions:v.get("missingSprites")}});Q.useEffect(()=>{T(p&&(x??!0)&&f)},[x]);const S=Q.useMemo(()=>{const P=(x==null?void 0:x.monster.flatMap(R=>{var M;return n?((M=R.forms)==null?void 0:M.map((O,w)=>({form:O,monster:R,formIndex:w})))??[]:R.manual?{form:R.manual,monster:R,formIndex:0}:{}}))??[];return eG(P,n,d,e,v,A)},[x,n,e,v,A]);return m?H.jsx(K2,{}):H.jsxs(H.Fragment,{children:[r&&H.jsxs("div",{children:[!n&&H.jsx("h3",{children:"WARNING: Split Forms is not enabled. You will only generate credits for the main form of each sprite. (i.e. shinies not included)"}),H.jsx(bI,{variant:"contained",onClick:()=>_B(S,t.current),style:{margin:"10px"},children:"Download Credits!"})]}),H.jsx(It,{container:!0,spacing:2,justifyContent:"center",children:p?Array.from({length:100},(P,E)=>H.jsx(It,{item:!0,children:H.jsx(VN,{width:80,height:111,variant:"rectangular"})},E)):S.map((P,E)=>(!f||E<151)&&H.jsx(It,{item:!0,children:H.jsx(qB,{infoKey:P.monster.rawId,form:P,isSpeciesThumbnail:!n,creditedMonsRef:t})},E))})]})}function nG({textState:[e,i]}){return H.jsx(ZB,{sx:{backgroundColor:"white"},fullWidth:!0,label:"Mewtwo... Emmuffin... 151...",value:e,onChange:async({target:{value:v}})=>i(v)})}const rG=["index","portraitAuthor","spriteAuthor","lastModification","portraitBounty","spriteBounty"],sG={[ce.POKEDEX_NUMBER]:"index",[ce.PORTRAIT_AUTHOR]:"portraitAuthor",[ce.SPRITE_AUTHOR]:"spriteAuthor",[ce.LAST_MODIFICATION]:"lastModification",[ce.PORTRAIT_BOUNTY]:"portraitBounty",[ce.SPRITE_BOUNTY]:"spriteBounty"},aG={index:"Index",portraitAuthor:"Portrait Author",spriteAuthor:"Sprite Author",lastModification:"Last Change",portraitBounty:"Portrait Bounty",spriteBounty:"Sprite Bounty"},oG=["fullyFeaturedPortraits","existingPortraits","incompletePortraits","missingPortraits","fullyFeaturedSprites","existingSprites","incompleteSprites","missingSprites"],lG={fullyFeaturedPortraits:"Fully-Featured",existingPortraits:"Existing",incompletePortraits:"Incomplete",missingPortraits:"Missing",fullyFeaturedSprites:"Fully-Featured",existingSprites:"Existing",incompleteSprites:"Incomplete",missingSprites:"Missing"},uG=["creditsMode","splitForms","showUnnecessary","showFormName"];function Qx(e,i,v){return new Map(i.map(y=>[y,v(e.get(y))]))}function hG(e,i,v){return i.reduce((y,C)=>(y[C]=v(e.get(C)),y),{})}function fG(){const{searchParamsState:[e,i],toggleState:v,filterState:y,miscState:C}=Q.useContext(Tl),{splitForms:A,showUnnecessary:f,showFormName:T}=C;return H.jsxs(It,{container:!0,spacing:2,children:[H.jsxs(It,{item:!0,xs:12,children:[H.jsxs(lt,{sx:{fontWeight:"bold"},children:["Credits ",H.jsx(re,{href:"https://github.com/PMDCollab/PMD-collab-wiki/pull/100",children:"(New!)"})]}),H.jsx(ss,{label:H.jsx(lt,{color:"text.secondary",children:"Credits Mode"}),control:H.jsx(rs,{checked:C.creditsMode,onChange:async t=>i(Fn("creditsMode",t.target.checked))})})]},0),H.jsxs(It,{item:!0,xs:12,children:[H.jsx(lt,{sx:{fontWeight:"bold"},children:"Forms View"}),H.jsx(ss,{label:H.jsx(lt,{color:"text.secondary",children:"Split Forms"}),control:H.jsx(rs,{checked:A,onChange:async t=>{i(Fn("showFormName",t.target.checked)),i(Fn("splitForms",t.target.checked))}})}),H.jsx(ss,{label:H.jsx(lt,{color:"text.secondary",children:"Show Unnecessary Forms"}),control:H.jsx(rs,{checked:f,onChange:async t=>i(Fn("showUnnecessary",t.target.checked))})}),H.jsx(ss,{label:H.jsx(lt,{color:"text.secondary",children:"Show Form Name"}),control:H.jsx(rs,{disabled:!A,checked:T&&A,onChange:async t=>i(Fn("showFormName",t.target.checked))})})]},1),H.jsxs(It,{item:!0,xs:12,children:[H.jsx(lt,{sx:{fontWeight:"bold"},children:"Toggles"}),[...v.entries()].map(([t,l])=>H.jsx(ss,{label:H.jsx(lt,{color:"text.secondary",children:aG[t]}),control:H.jsx(rs,{checked:l,onChange:async g=>i(Fn(t,g.target.checked))})},t))]},2),H.jsxs(It,{item:!0,xs:12,children:[H.jsx(lt,{sx:{fontWeight:"bold"},children:"Filters"}),"Portraits:  ",[...y.entries()].map(([t,l],g)=>H.jsxs(Q.Fragment,{children:[g==4&&H.jsxs(H.Fragment,{children:[H.jsx("br",{}),"Sprites:  "]}),H.jsx(ss,{label:H.jsx(lt,{color:"text.secondary",children:lG[t]}),control:H.jsx(rs,{checked:l,onChange:async u=>i(Fn(t,u.target.checked))})})]},t))]},3)]})}function dG(){const{searchParamsState:[e,i],rankState:[v,y]}=Q.useContext(Tl);return H.jsxs(w2,{sx:{mt:2},fullWidth:!0,children:[H.jsx(N2,{id:"rank-by-label",children:"Rank by"}),H.jsx(Lm,{label:"Rank by",labelId:"rank-by-label",id:"rank-by",value:v,onChange:async C=>{const A=C.target.value;if(y(A),A==ce.NAME)return;const f=sG[A];i(Fn(f,!0))},children:Object.values(ce).map(C=>H.jsx(V2,{value:C,children:C},C))})]})}var bm={},Q2={exports:{}};(function(e){function i(v){return v&&v.__esModule?v:{default:v}}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(Q2);var ei=Q2.exports,Ld={};const cG=wC(T9);var Zx;function ii(){return Zx||(Zx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i.createSvgIcon}});var i=cG}(Ld)),Ld}var vG=ei;Object.defineProperty(bm,"__esModule",{value:!0});var Z2=bm.default=void 0,pG=vG(ii()),mG=H,gG=(0,pG.default)((0,mG.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");Z2=bm.default=gG;var Dm={},yG=ei;Object.defineProperty(Dm,"__esModule",{value:!0});var J2=Dm.default=void 0,xG=yG(ii()),TG=H,SG=(0,xG.default)((0,TG.jsx)("path",{d:"m21.58 16.09-1.09-7.66C20.21 6.46 18.52 5 16.53 5H7.47C5.48 5 3.79 6.46 3.51 8.43l-1.09 7.66C2.2 17.63 3.39 19 4.94 19c.68 0 1.32-.27 1.8-.75L9 16h6l2.25 2.25c.48.48 1.13.75 1.8.75 1.56 0 2.75-1.37 2.53-2.91zM11 11H9v2H8v-2H6v-1h2V8h1v2h2v1zm4-1c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm2 3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"}),"SportsEsports");J2=Dm.default=SG;var Nm={},EG=ei;Object.defineProperty(Nm,"__esModule",{value:!0});var q2=Nm.default=void 0;RG(Q);var CG=EG(ii()),PG=H;function _2(e){if(typeof WeakMap!="function")return null;var i=new WeakMap,v=new WeakMap;return(_2=function(y){return y?v:i})(e)}function RG(e,i){if(!i&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var v=_2(i);if(v&&v.has(e))return v.get(e);var y={},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A)){var f=C?Object.getOwnPropertyDescriptor(e,A):null;f&&(f.get||f.set)?Object.defineProperty(y,A,f):y[A]=e[A]}return y.default=e,v&&v.set(e,y),y}var AG=(0,CG.default)((0,PG.jsx)("path",{d:"M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z"}),"Twitter");q2=Nm.default=AG;var Bm={},MG=ei;Object.defineProperty(Bm,"__esModule",{value:!0});var tC=Bm.default=void 0;FG(Q);var OG=MG(ii()),wG=H;function eC(e){if(typeof WeakMap!="function")return null;var i=new WeakMap,v=new WeakMap;return(eC=function(y){return y?v:i})(e)}function FG(e,i){if(!i&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var v=eC(i);if(v&&v.has(e))return v.get(e);var y={},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A)){var f=C?Object.getOwnPropertyDescriptor(e,A):null;f&&(f.get||f.set)?Object.defineProperty(y,A,f):y[A]=e[A]}return y.default=e,v&&v.set(e,y),y}var LG=(0,OG.default)((0,wG.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");tC=Bm.default=LG;var Gm={},IG=ei;Object.defineProperty(Gm,"__esModule",{value:!0});var iC=Gm.default=void 0,bG=IG(ii()),DG=H,NG=(0,bG.default)((0,DG.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");iC=Gm.default=NG;var Um={},BG=ei;Object.defineProperty(Um,"__esModule",{value:!0});var nC=Um.default=void 0,GG=BG(ii()),UG=H,zG=(0,GG.default)((0,UG.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"}),"Group");nC=Um.default=zG;function xl(){const e=Pn(),i=Om(e.breakpoints.down("md"));return H.jsx(j8,{position:"relative",children:H.jsxs(GB,{children:[H.jsx(Gs,{to:"/",children:H.jsxs(ns,{size:"large",color:"inherit",children:[H.jsx(Z2,{}),!i&&H.jsx(lt,{variant:"h6",ml:.5,children:"SpriteCollab"})]})}),H.jsxs(ns,{size:"large",color:"inherit",href:"https://discord.gg/skytemple",children:[H.jsx(J2,{}),!i&&H.jsx(lt,{variant:"h6",ml:.5,children:"Discord"})]}),H.jsxs(ns,{size:"large",color:"inherit",href:"https://twitter.com/PMD_Spritebot",children:[H.jsx(q2,{}),!i&&H.jsx(lt,{variant:"h6",ml:.5,children:"Twitter"})]}),H.jsxs(ns,{size:"large",color:"inherit",href:"https://github.com/PMDCollab/SpriteCollab",children:[H.jsx(tC,{}),!i&&H.jsx(lt,{variant:"h6",ml:.5,children:"Github"})]}),H.jsx(Gs,{to:"/About",children:H.jsxs(ns,{size:"large",color:"inherit",children:[H.jsx(iC,{}),!i&&H.jsx(lt,{variant:"h6",ml:.5,children:"About"})]})}),H.jsx(Gs,{to:"/Contributors",children:H.jsxs(ns,{size:"large",color:"inherit",children:[H.jsx(nC,{}),!i&&H.jsx(lt,{variant:"h6",ml:.5,children:"Contributors"})]})})]})})}function VG({meta:{assetsUpdateDate:e,updateCheckedDate:i,assetsCommit:v}}){return H.jsx(Xr,{component:"footer",sx:{mt:4},children:H.jsxs(It,{container:!0,spacing:2,justifyContent:"space-around",children:[H.jsx(It,{item:!0,children:H.jsxs(lt,{color:"GrayText",children:["Last update: ",new Date(e).toLocaleString()]})}),H.jsx(It,{item:!0,children:H.jsxs(lt,{color:"GrayText",children:["Last Check for updates: ",new Date(i).toLocaleString()]})}),H.jsx(It,{item:!0,children:H.jsx(re,{target:"_blank",href:`https://github.com/PMDCollab/SpriteCollab/commit/${v}`,children:"Last Commit"})})]})})}var zm={},WG=ei;Object.defineProperty(zm,"__esModule",{value:!0});var Ms=zm.default=void 0,XG=WG(ii()),YG=H,HG=(0,XG.default)((0,YG.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");Ms=zm.default=HG;const Tl=Q.createContext(null);function $G({ids:e,meta:i}){const v=Q.useState(""),[y]=v,C=Q.useState(ce.POKEDEX_NUMBER),A=OE(),[f]=A,T=Qx(f,rG,Boolean),t=Qx(f,oG,Boolean),l=hG(f,uG,Boolean),g=Pn(),u=Om(g.breakpoints.down("md"));return H.jsx(Tl.Provider,{value:{searchParamsState:A,toggleState:T,filterState:t,miscState:l,rankState:C},children:H.jsxs(nn,{children:[H.jsx(xl,{}),H.jsxs(Xr,{maxWidth:"xl",sx:{backgroundColor:"rgba(255,255,255,.9)"},children:[H.jsxs(lt,{variant:u?"subtitle2":"h5",align:"center",color:"text.secondary",gutterBottom:!0,children:["Free to use ",H.jsx("strong",{children:H.jsx(re,{href:"#/About",className:"with-credit",children:"WITH CREDIT"})})," for ROMhacks, fangames, etc. Don't use for commercial projects."]}),H.jsxs(Xr,{maxWidth:"md",sx:{mt:4,mb:4},children:[H.jsx(lt,{variant:u?"subtitle2":"h5",align:"center",color:"text.secondary",gutterBottom:!0,children:"Search for a pokemon, artist or pokedex number ..."}),H.jsx(nG,{textState:v}),H.jsxs(Ka,{sx:{mt:2},children:[H.jsx(Za,{expandIcon:H.jsx(Ms,{}),children:H.jsx(lt,{color:"text.secondary",children:"Searching options"})}),H.jsxs(Qa,{children:[H.jsx(fG,{}),H.jsx(dG,{})]})]})]}),H.jsx(iG,{currentText:y,ids:e}),H.jsx(VG,{meta:i})]})]})})}function Jx({primary:e}){return e?H.jsxs("div",{style:{display:"flex",gap:"8px"},children:[H.jsx(lt,{children:"by"}),H.jsx(Vm,{credit:e})]}):null}function qx(e){return H.jsxs("div",{style:{display:"flex",gap:"8px"},children:[H.jsx(lt,{children:"Others"}),e.secondary.map((i,v)=>H.jsx(Vm,{credit:i},v))]})}function Vm({credit:e}){return H.jsx(nn,{children:e!=null&&e.name?H.jsx(re,{href:(e==null?void 0:e.contact)??"",target:"_blank",children:e==null?void 0:e.name}):H.jsx(lt,{children:e==null?void 0:e.discordHandle})},e==null?void 0:e.id)}var Wm={},jG=ei;Object.defineProperty(Wm,"__esModule",{value:!0});var rC=Wm.default=void 0,kG=jG(ii()),KG=H,QG=(0,kG.default)((0,KG.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");rC=Wm.default=QG;function sC({locked:e,history:i}){return H.jsx(gz,{title:H.jsxs(H.Fragment,{children:[i.map((v,y)=>H.jsxs("div",{style:{display:"flex",gap:"10px"},children:[H.jsx(lt,{children:Im(v.modifiedDate)}),":",H.jsx(Vm,{credit:v.credit})]},y)),H.jsx(lt,{children:e?"This is locked and requires special permissions to be updated":"This is unlocked, updates do not require special permissions"})]}),children:H.jsx(rC,{color:e?"error":"success",fontSize:"small"})})}function ZG({emotions:e,history:i}){return H.jsx(It,{container:!0,spacing:2,sx:{mt:3},children:[...e].sort((v,y)=>v.emotion.localeCompare(y.emotion)).map(({emotion:v,url:y,locked:C})=>H.jsx(It,{item:!0,children:H.jsxs(Kr,{elevation:2,children:[H.jsx("img",{src:y,style:{height:"80px",imageRendering:"pixelated"}}),H.jsxs(It,{container:!0,justifyContent:"center",alignItems:"start",sx:{maxWidth:"80px"},children:[H.jsx(sC,{locked:C,history:i.filter(A=>A.modifications.includes(v))}),H.jsx(lt,{align:"center",color:"grayText",noWrap:!0,sx:{width:"60px"},children:v})]})]})},v))})}var aC={exports:{}};(function(e,i){(function(y,C){e.exports=C()})(OC,()=>(()=>{var v={6659:f=>{var T=Object.prototype.hasOwnProperty,t="~";function l(){}Object.create&&(l.prototype=Object.create(null),new l().__proto__||(t=!1));function g(n,r,d){this.fn=n,this.context=r,this.once=d||!1}function u(n,r,d,s,h){if(typeof d!="function")throw new TypeError("The listener must be a function");var c=new g(d,s||n,h),p=t?t+r:r;return n._events[p]?n._events[p].fn?n._events[p]=[n._events[p],c]:n._events[p].push(c):(n._events[p]=c,n._eventsCount++),n}function o(n,r){--n._eventsCount===0?n._events=new l:delete n._events[r]}function a(){this._events=new l,this._eventsCount=0}a.prototype.eventNames=function(){var r=[],d,s;if(this._eventsCount===0)return r;for(s in d=this._events)T.call(d,s)&&r.push(t?s.slice(1):s);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(d)):r},a.prototype.listeners=function(r){var d=t?t+r:r,s=this._events[d];if(!s)return[];if(s.fn)return[s.fn];for(var h=0,c=s.length,p=new Array(c);h{/** + * @author samme + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(82590),g=function(u,o,a,n){for(var r=u[0],d=1;d{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(6124),g=function(u,o,a,n,r){return l(u,"angle",o,a,n,r)};f.exports=g},22015:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){for(var u=0;u{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){g===void 0&&(g=0);for(var u=g;u{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){g===void 0&&(g=0);for(var u=g;u{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(40327),g=t(84093),u=t(72632),o=t(72283),a=t(71030),n=new a({sys:{queueDepthSort:o,events:{once:o}}},0,0,1,1).setOrigin(0,0),r=function(d,s){s===void 0&&(s={});var h=s.hasOwnProperty("width"),c=s.hasOwnProperty("height"),p=u(s,"width",-1),m=u(s,"height",-1),x=u(s,"cellWidth",1),S=u(s,"cellHeight",x),P=u(s,"position",g.TOP_LEFT),E=u(s,"x",0),R=u(s,"y",0),M=0,O=0,w=p*x,L=m*S;n.setPosition(E,R),n.setSize(x,S);for(var F=0;F{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(6124),g=function(u,o,a,n,r){return l(u,"alpha",o,a,n,r)};f.exports=g},3877:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(6124),g=function(u,o,a,n,r){return l(u,"x",o,a,n,r)};f.exports=g},71020:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(6124),g=function(u,o,a,n,r,d,s){return a==null&&(a=o),l(u,"x",o,n,d,s),l(u,"y",a,r,d,s)};f.exports=g},28970:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(6124),g=function(u,o,a,n,r){return l(u,"y",o,a,n,r)};f.exports=g},82249:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){g===void 0&&(g=0),u===void 0&&(u=6.28);for(var o=g,a=(u-g)/t.length,n=l.x,r=l.y,d=l.radius,s=0;s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){g===void 0&&(g=0),u===void 0&&(u=6.28);for(var o=g,a=(u-g)/t.length,n=l.width/2,r=l.height/2,d=0;d{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(8570),g=function(u,o){for(var a=l(o,u.length),n=0;n{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(40053),g=t(77640),u=t(38487),o=function(a,n,r){r===void 0&&(r=0);var d=l(n,!1,a.length);r>0?g(d,r):r<0&&u(d,Math.abs(r));for(var s=0;s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(58813),g=function(u,o,a){var n=l({x1:o.x1,y1:o.y1,x2:o.x2,y2:o.y2},a),r=l({x1:o.x2,y1:o.y2,x2:o.x3,y2:o.y3},a),d=l({x1:o.x3,y1:o.y3,x2:o.x1,y2:o.y1},a);n.pop(),r.pop(),d.pop(),n=n.concat(r,d);for(var s=n.length/u.length,h=0,c=0;c{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){for(var u=0;u{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u,o,a){u===void 0&&(u=0),o===void 0&&(o=0),a===void 0&&(a=1);var n,r=0,d=t.length;if(a===1)for(n=o;n=0;n--)t[n][l]+=g+r*u,r++;return t};f.exports=T},23646:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u,o,a){u===void 0&&(u=0),o===void 0&&(o=0),a===void 0&&(a=1);var n,r=0,d=t.length;if(a===1)for(n=o;n=0;n--)t[n][l]=g+r*u,r++;return t};f.exports=T},4392:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(30977),g=function(u,o){for(var a=0;a{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72006),g=function(u,o){for(var a=0;a{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(74077),g=function(u,o){for(var a=0;a{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(30001),g=function(u,o){for(var a=0;a{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(99761),g=function(u,o){for(var a=0;a{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(6124),g=function(u,o,a,n,r){return l(u,"rotation",o,a,n,r)};f.exports=g},87299:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72395),g=t(53996),u=function(o,a,n){for(var r=a.x,d=a.y,s=0;s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72395),g=function(u,o,a,n){var r=o.x,d=o.y;if(n===0)return u;for(var s=0;s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(6124),g=function(u,o,a,n,r){return l(u,"scaleX",o,a,n,r)};f.exports=g},51449:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(6124),g=function(u,o,a,n,r,d,s){return a==null&&(a=o),l(u,"scaleX",o,n,d,s),l(u,"scaleY",a,r,d,s)};f.exports=g},64895:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(6124),g=function(u,o,a,n,r){return l(u,"scaleY",o,a,n,r)};f.exports=g},30329:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(23646),g=function(u,o,a,n,r){return l(u,"alpha",o,a,n,r)};f.exports=g},43954:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(23646),g=function(u,o,a,n){return l(u,"blendMode",o,0,a,n)};f.exports=g},70688:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(23646),g=function(u,o,a,n,r){return l(u,"depth",o,a,n,r)};f.exports=g},8314:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){for(var u=0;u{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(23646),g=function(u,o,a,n,r,d,s){return a==null&&(a=o),l(u,"originX",o,n,d,s),l(u,"originY",a,r,d,s),u.forEach(function(h){h.updateDisplayOrigin()}),u};f.exports=g},38767:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(23646),g=function(u,o,a,n,r){return l(u,"rotation",o,a,n,r)};f.exports=g},18584:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(23646),g=function(u,o,a,n,r,d,s){return a==null&&(a=o),l(u,"scaleX",o,n,d,s),l(u,"scaleY",a,r,d,s)};f.exports=g},17381:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(23646),g=function(u,o,a,n,r){return l(u,"scaleX",o,a,n,r)};f.exports=g},74370:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(23646),g=function(u,o,a,n,r){return l(u,"scaleY",o,a,n,r)};f.exports=g},27773:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(23646),g=function(u,o,a,n,r,d,s){return a==null&&(a=o),l(u,"scrollFactorX",o,n,d,s),l(u,"scrollFactorY",a,r,d,s)};f.exports=g},75257:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(23646),g=function(u,o,a,n,r){return l(u,"scrollFactorX",o,a,n,r)};f.exports=g},54512:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(23646),g=function(u,o,a,n,r){return l(u,"scrollFactorY",o,a,n,r)};f.exports=g},69423:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u,o){for(var a=0;a{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(23646),g=function(u,o,a,n){return l(u,"visible",o,0,a,n)};f.exports=g},94833:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(23646),g=function(u,o,a,n,r){return l(u,"x",o,a,n,r)};f.exports=g},14284:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(23646),g=function(u,o,a,n,r,d,s){return a==null&&(a=o),l(u,"x",o,n,d,s),l(u,"y",a,r,d,s)};f.exports=g},96574:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(23646),g=function(u,o,a,n,r){return l(u,"y",o,a,n,r)};f.exports=g},74086:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(93736),g=function(u,o,a,n,r){n===void 0&&(n=0),r===void 0&&(r=new l);var d,s,h=u.length;if(h===1)d=u[0].x,s=u[0].y,u[0].x=o,u[0].y=a;else{var c=1,p=0;n===0&&(p=h-1,c=h-2),d=u[p].x,s=u[p].y,u[p].x=o,u[p].y=a;for(var m=0;m=h||c===-1)){var x=u[c],S=x.x,P=x.y;x.x=d,x.y=s,d=S,s=P,n===0?c--:c++}}return r.x=d,r.y=s,r};f.exports=g},86347:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(18592),g=function(u){return l(u)};f.exports=g},1558:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(5514),g=function(u,o,a,n,r){r===void 0&&(r=!1);var d=Math.abs(n-a)/u.length,s;if(r)for(s=0;s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(87736),g=function(u,o,a,n,r){r===void 0&&(r=!1);var d=Math.abs(n-a)/u.length,s;if(r)for(s=0;s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u,o){if(o===void 0&&(o=!1),t.length===0)return t;if(t.length===1)return o?t[0][l]+=(u+g)/2:t[0][l]=(u+g)/2,t;var a=Math.abs(u-g)/(t.length-1),n;if(o)for(n=0;n{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){for(var l=0;l{/** + * @author Richard Davey + * @author samme + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(1071),g=function(u,o,a){a===void 0&&(a=0);for(var n=0;n{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={AlignTo:t(62270),Angle:t(61148),Call:t(22015),GetFirst:t(31060),GetLast:t(52367),GridAlign:t(12673),IncAlpha:t(691),IncX:t(3877),IncXY:t(71020),IncY:t(28970),PlaceOnCircle:t(82249),PlaceOnEllipse:t(30285),PlaceOnLine:t(61557),PlaceOnRectangle:t(63549),PlaceOnTriangle:t(51629),PlayAnimation:t(1045),PropertyValueInc:t(6124),PropertyValueSet:t(23646),RandomCircle:t(4392),RandomEllipse:t(94985),RandomLine:t(63305),RandomRectangle:t(90739),RandomTriangle:t(91417),Rotate:t(26182),RotateAround:t(87299),RotateAroundDistance:t(92194),ScaleX:t(30363),ScaleXY:t(51449),ScaleY:t(64895),SetAlpha:t(30329),SetBlendMode:t(43954),SetDepth:t(70688),SetHitArea:t(8314),SetOrigin:t(12894),SetRotation:t(38767),SetScale:t(18584),SetScaleX:t(17381),SetScaleY:t(74370),SetScrollFactor:t(27773),SetScrollFactorX:t(75257),SetScrollFactorY:t(54512),SetTint:t(69423),SetVisible:t(58291),SetX:t(94833),SetXY:t(14284),SetY:t(96574),ShiftPosition:t(74086),Shuffle:t(86347),SmootherStep:t(9938),SmoothStep:t(1558),Spread:t(71060),ToggleVisible:t(11207),WrapInRectangle:t(24404)}},85463:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(82897),g=t(56694),u=t(16938),o=t(2406),a=t(71519),n=t(10850),r=t(28834),d=new g({initialize:function(h,c,p){this.manager=h,this.key=c,this.type="frame",this.frames=this.getFrames(h.textureManager,n(p,"frames",[]),n(p,"defaultTextureKey",null),n(p,"sortFrames",!0)),this.frameRate=n(p,"frameRate",null),this.duration=n(p,"duration",null),this.msPerFrame,this.skipMissedFrames=n(p,"skipMissedFrames",!0),this.delay=n(p,"delay",0),this.repeat=n(p,"repeat",0),this.repeatDelay=n(p,"repeatDelay",0),this.yoyo=n(p,"yoyo",!1),this.showBeforeDelay=n(p,"showBeforeDelay",!1),this.showOnStart=n(p,"showOnStart",!1),this.hideOnComplete=n(p,"hideOnComplete",!1),this.paused=!1,this.calculateDuration(this,this.getTotalFrames(),this.duration,this.frameRate),this.manager.on&&(this.manager.on(u.PAUSE_ALL,this.pause,this),this.manager.on(u.RESUME_ALL,this.resume,this))},getTotalFrames:function(){return this.frames.length},calculateDuration:function(s,h,c,p){c===null&&p===null?(s.frameRate=24,s.duration=24/h*1e3):c&&p===null?(s.duration=c,s.frameRate=h/(c/1e3)):(s.frameRate=p,s.duration=h/p*1e3),s.msPerFrame=1e3/s.frameRate},addFrame:function(s){return this.addFrameAt(this.frames.length,s)},addFrameAt:function(s,h){var c=this.getFrames(this.manager.textureManager,h);if(c.length>0){if(s===0)this.frames=c.concat(this.frames);else if(s===this.frames.length)this.frames=this.frames.concat(c);else{var p=this.frames.slice(0,s),m=this.frames.slice(s);this.frames=p.concat(c,m)}this.updateFrameSequence()}return this},checkFrame:function(s){return s>=0&&s0){S.isLast=!0,S.nextFrame=m[0],m[0].prevFrame=S;var D=1/(m.length-1);for(E=0;E0?s.inReverse&&s.forward?s.forward=!1:this.repeatAnimation(s):s.complete():this.updateAndGetNextTick(s,h.nextFrame)},handleYoyoFrame:function(s,h){if(h||(h=!1),s.inReverse===!h&&s.repeatCounter>0){(s.repeatDelay===0||s.pendingRepeat)&&(s.forward=h),this.repeatAnimation(s);return}if(s.inReverse!==h&&s.repeatCounter===0){s.complete();return}s.forward=h;var c=h?s.currentFrame.nextFrame:s.currentFrame.prevFrame;this.updateAndGetNextTick(s,c)},getLastFrame:function(){return this.frames[this.frames.length-1]},previousFrame:function(s){var h=s.currentFrame;h.isFirst?s.yoyo?this.handleYoyoFrame(s,!0):s.repeatCounter>0?s.inReverse&&!s.forward?this.repeatAnimation(s):(s.forward=!0,this.repeatAnimation(s)):s.complete():this.updateAndGetNextTick(s,h.prevFrame)},updateAndGetNextTick:function(s,h){s.setCurrentFrame(h),this.getNextTick(s)},removeFrame:function(s){var h=this.frames.indexOf(s);return h!==-1&&this.removeFrameAt(h),this},removeFrameAt:function(s){return this.frames.splice(s,1),this.updateFrameSequence(),this},repeatAnimation:function(s){if(s._pendingStop===2){if(s._pendingStopValue===0)return s.stop();s._pendingStopValue--}s.repeatDelay>0&&!s.pendingRepeat?(s.pendingRepeat=!0,s.accumulator-=s.nextTick,s.nextTick+=s.repeatDelay):(s.repeatCounter--,s.forward?s.setCurrentFrame(s.currentFrame.nextFrame):s.setCurrentFrame(s.currentFrame.prevFrame),s.isPlaying&&(this.getNextTick(s),s.handleRepeat()))},toJSON:function(){var s={key:this.key,type:this.type,frames:[],frameRate:this.frameRate,duration:this.duration,skipMissedFrames:this.skipMissedFrames,delay:this.delay,repeat:this.repeat,repeatDelay:this.repeatDelay,yoyo:this.yoyo,showBeforeDelay:this.showBeforeDelay,showOnStart:this.showOnStart,hideOnComplete:this.hideOnComplete};return this.frames.forEach(function(h){s.frames.push(h.toJSON())}),s},updateFrameSequence:function(){for(var s=this.frames.length,h=1/(s-1),c,p=0;p1?(c.isLast=!0,c.prevFrame=this.frames[s-2],c.nextFrame=this.frames[0]):s>1&&(c.prevFrame=this.frames[p-1],c.nextFrame=this.frames[p+1]);return this},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this},destroy:function(){this.manager.off&&(this.manager.off(u.PAUSE_ALL,this.pause,this),this.manager.off(u.RESUME_ALL,this.resume,this)),this.manager.remove(this.key);for(var s=0;s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=new l({initialize:function(o,a,n,r,d){d===void 0&&(d=!1),this.textureKey=o,this.textureFrame=a,this.index=n,this.frame=r,this.isFirst=!1,this.isLast=!1,this.prevFrame=null,this.nextFrame=null,this.duration=0,this.progress=0,this.isKeyFrame=d},toJSON:function(){return{key:this.textureKey,frame:this.textureFrame,duration:this.duration,keyframe:this.isKeyFrame}},destroy:function(){this.frame=void 0}});f.exports=g},90249:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(85463),g=t(56694),u=t(33885),o=t(6659),a=t(16938),n=t(97081),r=t(72632),d=t(10850),s=t(83392),h=t(13401),c=t(76400),p=new g({Extends:o,initialize:function(x){o.call(this),this.game=x,this.textureManager=null,this.globalTimeScale=1,this.anims=new u,this.mixes=new u,this.paused=!1,this.name="AnimationManager",x.events.once(n.BOOT,this.boot,this)},boot:function(){this.textureManager=this.game.textures,this.game.events.once(n.DESTROY,this.destroy,this)},addMix:function(m,x,S){var P=this.anims,E=this.mixes,R=typeof m=="string"?m:m.key,M=typeof x=="string"?x:x.key;if(P.has(R)&&P.has(M)){var O=E.get(R);O||(O={}),O[M]=S,E.set(R,O)}return this},removeMix:function(m,x){var S=this.mixes,P=typeof m=="string"?m:m.key,E=S.get(P);if(E)if(x){var R=typeof x=="string"?x:x.key;E.hasOwnProperty(R)&&delete E[R]}else x||S.delete(P);return this},getMix:function(m,x){var S=this.mixes,P=typeof m=="string"?m:m.key,E=typeof x=="string"?x:x.key,R=S.get(P);return R&&R.hasOwnProperty(E)?R[E]:0},add:function(m,x){return this.anims.has(m)?(console.warn("Animation key exists: "+m),this):(x.key=m,this.anims.set(m,x),this.emit(a.ADD_ANIMATION,m,x),this)},exists:function(m){return this.anims.has(m)},createFromAseprite:function(m,x,S){var P=[],E=this.game.cache.json.get(m);if(!E)return console.warn("No Aseprite data found for: "+m),P;var R=this,M=d(E,"meta",null),O=d(E,"frames",null);if(M&&O){var w=d(M,"frameTags",[]);w.forEach(function(L){var F=[],b=r(L,"name",null),D=r(L,"from",0),N=r(L,"to",0),z=r(L,"direction","forward");if(b&&(!x||x&&x.indexOf(b)>-1)){for(var W=0,Y=D;Y<=N;Y++){var j=Y.toString(),G=O[j];if(G){var V=r(G,"duration",s.MAX_SAFE_INTEGER);F.push({key:m,frame:j,duration:V}),W+=V}}var I=W/F.length;F.forEach(function(X){X.duration-=I}),z==="reverse"&&(F=F.reverse());var B={key:b,frames:F,duration:W,yoyo:z==="pingpong"},U;S?S.anims&&(U=S.anims.create(B)):U=R.create(B),U&&P.push(U)}})}return P},create:function(m){var x=m.key,S=!1;return x&&(S=this.get(x),S?console.warn("AnimationManager key already exists: "+x):(S=new l(this,x,m),this.anims.set(x,S),this.emit(a.ADD_ANIMATION,x,S))),S},fromJSON:function(m,x){x===void 0&&(x=!1),x&&this.anims.clear(),typeof m=="string"&&(m=JSON.parse(m));var S=[];if(m.hasOwnProperty("anims")&&Array.isArray(m.anims)){for(var P=0;P{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(33885),u=t(72632),o=t(16938),a=t(85463),n=new l({initialize:function(d){this.parent=d,this.animationManager=d.scene.sys.anims,this.animationManager.on(o.REMOVE_ANIMATION,this.globalRemove,this),this.textureManager=this.animationManager.textureManager,this.anims=null,this.isPlaying=!1,this.hasStarted=!1,this.currentAnim=null,this.currentFrame=null,this.nextAnim=null,this.nextAnimsQueue=[],this.timeScale=1,this.frameRate=0,this.duration=0,this.msPerFrame=0,this.skipMissedFrames=!0,this.delay=0,this.repeat=0,this.repeatDelay=0,this.yoyo=!1,this.showBeforeDelay=!1,this.showOnStart=!1,this.hideOnComplete=!1,this.forward=!0,this.inReverse=!1,this.accumulator=0,this.nextTick=0,this.delayCounter=0,this.repeatCounter=0,this.pendingRepeat=!1,this._paused=!1,this._wasPlaying=!1,this._pendingStop=0,this._pendingStopValue},chain:function(r){var d=this.parent;if(r===void 0)return this.nextAnimsQueue.length=0,this.nextAnim=null,d;Array.isArray(r)||(r=[r]);for(var s=0;sh.getTotalFrames()&&(x=0);var S=h.frames[x];x===0&&!this.forward&&(S=h.getLastFrame()),this.currentFrame=S}return this.parent},pause:function(r){return this._paused||(this._paused=!0,this._wasPlaying=this.isPlaying,this.isPlaying=!1),r!==void 0&&this.setCurrentFrame(r),this.parent},resume:function(r){return this._paused&&(this._paused=!1,this.isPlaying=this._wasPlaying),r!==void 0&&this.setCurrentFrame(r),this.parent},playAfterDelay:function(r,d){if(!this.isPlaying)this.delayCounter=d,this.play(r,!0);else{var s=this.nextAnim,h=this.nextAnimsQueue;s&&h.unshift(s),this.nextAnim=r,this._pendingStop=1,this._pendingStopValue=d}return this.parent},playAfterRepeat:function(r,d){if(d===void 0&&(d=1),!this.isPlaying)this.play(r);else{var s=this.nextAnim,h=this.nextAnimsQueue;s&&h.unshift(s),this.repeatCounter!==-1&&d>this.repeatCounter&&(d=this.repeatCounter),this.nextAnim=r,this._pendingStop=2,this._pendingStopValue=d}return this.parent},play:function(r,d){d===void 0&&(d=!1);var s=this.currentAnim,h=this.parent,c=typeof r=="string"?r:r.key;if(d&&this.isPlaying&&s.key===c)return h;if(s&&this.isPlaying){var p=this.animationManager.getMix(s.key,r);if(p>0)return this.playAfterDelay(r,p)}return this.forward=!0,this.inReverse=!1,this._paused=!1,this._wasPlaying=!0,this.startAnimation(r)},playReverse:function(r,d){d===void 0&&(d=!1);var s=typeof r=="string"?r:r.key;return d&&this.isPlaying&&this.currentAnim.key===s?this.parent:(this.forward=!1,this.inReverse=!0,this._paused=!1,this._wasPlaying=!0,this.startAnimation(r))},startAnimation:function(r){this.load(r);var d=this.currentAnim,s=this.parent;return d&&(this.repeatCounter=this.repeat===-1?Number.MAX_VALUE:this.repeat,d.getFirstTick(this),this.isPlaying=!0,this.pendingRepeat=!1,this.hasStarted=!1,this._pendingStop=0,this._pendingStopValue=0,this._paused=!1,this.delayCounter+=this.delay,this.delayCounter===0?this.handleStart():this.showBeforeDelay&&this.setCurrentFrame(this.currentFrame)),s},handleStart:function(){this.showOnStart&&this.parent.setVisible(!0),this.setCurrentFrame(this.currentFrame),this.hasStarted=!0,this.emitEvents(o.ANIMATION_START)},handleRepeat:function(){this.pendingRepeat=!1,this.emitEvents(o.ANIMATION_REPEAT)},handleStop:function(){this._pendingStop=0,this.isPlaying=!1,this.emitEvents(o.ANIMATION_STOP)},handleComplete:function(){this._pendingStop=0,this.isPlaying=!1,this.hideOnComplete&&this.parent.setVisible(!1),this.emitEvents(o.ANIMATION_COMPLETE,o.ANIMATION_COMPLETE_KEY)},emitEvents:function(r,d){var s=this.currentAnim;if(s){var h=this.currentFrame,c=this.parent,p=h.textureFrame;c.emit(r,s,h,c,p),d&&c.emit(d+s.key,s,h,c,p)}},reverse:function(){return this.isPlaying&&(this.inReverse=!this.inReverse,this.forward=!this.forward),this.parent},getProgress:function(){var r=this.currentFrame;if(!r)return 0;var d=r.progress;return this.inReverse&&(d*=-1),d},setProgress:function(r){return this.forward||(r=1-r),this.setCurrentFrame(this.currentAnim.getFrameByProgress(r)),this.parent},setRepeat:function(r){return this.repeatCounter=r===-1?Number.MAX_VALUE:r,this.parent},globalRemove:function(r,d){d===void 0&&(d=this.currentAnim),this.isPlaying&&d.key===this.currentAnim.key&&(this.stop(),this.setCurrentFrame(this.currentAnim.frames[0]))},restart:function(r,d){r===void 0&&(r=!1),d===void 0&&(d=!1);var s=this.currentAnim,h=this.parent;return s?(d&&(this.repeatCounter=this.repeat===-1?Number.MAX_VALUE:this.repeat),s.getFirstTick(this),this.emitEvents(o.ANIMATION_RESTART),this.isPlaying=!0,this.pendingRepeat=!1,this.hasStarted=!r,this._pendingStop=0,this._pendingStopValue=0,this._paused=!1,this.setCurrentFrame(s.frames[0]),this.parent):h},complete:function(){if(this._pendingStop=0,this.isPlaying=!1,this.currentAnim&&this.handleComplete(),this.nextAnim){var r=this.nextAnim;this.nextAnim=this.nextAnimsQueue.length>0?this.nextAnimsQueue.shift():null,this.play(r)}return this.parent},stop:function(){if(this._pendingStop=0,this.isPlaying=!1,this.delayCounter=0,this.currentAnim&&this.handleStop(),this.nextAnim){var r=this.nextAnim;this.nextAnim=this.nextAnimsQueue.shift(),this.play(r)}return this.parent},stopAfterDelay:function(r){return this._pendingStop=1,this._pendingStopValue=r,this.parent},stopAfterRepeat:function(r){return r===void 0&&(r=1),this.repeatCounter!==-1&&r>this.repeatCounter&&(r=this.repeatCounter),this._pendingStop=2,this._pendingStopValue=r,this.parent},stopOnFrame:function(r){return this._pendingStop=3,this._pendingStopValue=r,this.parent},getTotalFrames:function(){return this.currentAnim?this.currentAnim.getTotalFrames():0},update:function(r,d){var s=this.currentAnim;if(!(!this.isPlaying||!s||s.paused)){if(this.accumulator+=d*this.timeScale,this._pendingStop===1&&(this._pendingStopValue-=d,this._pendingStopValue<=0))return this.stop();if(!this.hasStarted)this.accumulator>=this.delayCounter&&(this.accumulator-=this.delayCounter,this.handleStart());else if(this.accumulator>=this.nextTick&&(this.forward?s.nextFrame(this):s.previousFrame(this),this.isPlaying&&this._pendingStop===0&&this.skipMissedFrames&&this.accumulator>this.nextTick)){var h=0;do this.forward?s.nextFrame(this):s.previousFrame(this),h++;while(this.isPlaying&&this.accumulator>this.nextTick&&h<60)}}},setCurrentFrame:function(r){var d=this.parent;return this.currentFrame=r,d.texture=r.frame.texture,d.frame=r.frame,d.isCropped&&d.frame.updateCropUVs(d._crop,d.flipX,d.flipY),r.setAlpha&&(d.alpha=r.alpha),d.setSizeToFrame(),d._originComponent&&(r.frame.customPivot?d.setOrigin(r.frame.pivotX,r.frame.pivotY):d.updateDisplayOrigin()),this.isPlaying&&this.hasStarted&&(this.emitEvents(o.ANIMATION_UPDATE),this._pendingStop===3&&this._pendingStopValue===r&&this.stop()),d},nextFrame:function(){return this.currentAnim&&this.currentAnim.nextFrame(this),this.parent},previousFrame:function(){return this.currentAnim&&this.currentAnim.previousFrame(this),this.parent},get:function(r){return this.anims?this.anims.get(r):null},exists:function(r){return this.anims?this.anims.has(r):!1},create:function(r){var d=r.key,s=!1;return d&&(s=this.get(d),s?console.warn("Animation key already exists: "+d):(s=new a(this,d,r),this.anims||(this.anims=new g),this.anims.set(d,s))),s},createFromAseprite:function(r,d){return this.animationManager.createFromAseprite(r,d,this.parent)},generateFrameNames:function(r,d){return this.animationManager.generateFrameNames(r,d)},generateFrameNumbers:function(r,d){return this.animationManager.generateFrameNumbers(r,d)},remove:function(r){var d=this.get(r);return d&&(this.currentAnim===d&&this.stop(),this.anims.delete(r)),d},destroy:function(){this.animationManager.off(o.REMOVE_ANIMATION,this.globalRemove,this),this.anims&&this.anims.clear(),this.animationManager=null,this.parent=null,this.nextAnim=null,this.nextAnimsQueue.length=0,this.currentAnim=null,this.currentFrame=null},isPaused:{get:function(){return this._paused}}});f.exports=n},44509:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="add"},84563:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="animationcomplete"},61586:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="animationcomplete-"},72175:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="animationrepeat"},568:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="animationrestart"},37690:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="animationstart"},58525:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="animationstop"},5243:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="animationupdate"},10598:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pauseall"},4860:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="remove"},31865:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="resumeall"},16938:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={ADD_ANIMATION:t(44509),ANIMATION_COMPLETE:t(84563),ANIMATION_COMPLETE_KEY:t(61586),ANIMATION_REPEAT:t(72175),ANIMATION_RESTART:t(568),ANIMATION_START:t(37690),ANIMATION_STOP:t(58525),ANIMATION_UPDATE:t(5243),PAUSE_ALL:t(10598),REMOVE_ANIMATION:t(4860),RESUME_ALL:t(31865)}},13517:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Animation:t(85463),AnimationFrame:t(71519),AnimationManager:t(90249),AnimationState:t(16569),Events:t(16938)}},23740:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(33885),u=t(6659),o=t(69773),a=new l({initialize:function(){this.entries=new g,this.events=new u},add:function(n,r){return this.entries.set(n,r),this.events.emit(o.ADD,this,n,r),this},has:function(n){return this.entries.has(n)},exists:function(n){return this.entries.has(n)},get:function(n){return this.entries.get(n)},remove:function(n){var r=this.get(n);return r&&(this.entries.delete(n),this.events.emit(o.REMOVE,this,n,r.data)),this},getKeys:function(){return this.entries.keys()},destroy:function(){this.entries.clear(),this.events.removeAllListeners(),this.entries=null,this.events=null}});f.exports=a},43474:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(23740),g=t(56694),u=t(97081),o=new g({initialize:function(n){this.game=n,this.binary=new l,this.bitmapFont=new l,this.json=new l,this.physics=new l,this.shader=new l,this.audio=new l,this.video=new l,this.text=new l,this.html=new l,this.obj=new l,this.tilemap=new l,this.xml=new l,this.custom={},this.game.events.once(u.DESTROY,this.destroy,this)},addCustom:function(a){return this.custom.hasOwnProperty(a)||(this.custom[a]=new l),this.custom[a]},destroy:function(){for(var a=["binary","bitmapFont","json","physics","shader","audio","video","text","html","obj","tilemap","xml"],n=0;n{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="add"},75968:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="remove"},69773:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={ADD:t(94762),REMOVE:t(75968)}},45820:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={BaseCache:t(23740),CacheManager:t(43474),Events:t(69773)}},51052:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(64937),u=t(75606),o=t(6659),a=t(89787),n=t(74118),r=t(69360),d=t(93222),s=t(93736),h=new l({Extends:o,Mixins:[g.AlphaSingle,g.Visible],initialize:function(p,m,x,S){p===void 0&&(p=0),m===void 0&&(m=0),x===void 0&&(x=0),S===void 0&&(S=0),o.call(this),this.scene,this.sceneManager,this.scaleManager,this.cameraManager,this.id=0,this.name="",this.roundPixels=!1,this.useBounds=!1,this.worldView=new n,this.dirty=!0,this._x=p,this._y=m,this._width=x,this._height=S,this._bounds=new n,this._scrollX=0,this._scrollY=0,this._zoomX=1,this._zoomY=1,this._rotation=0,this.matrix=new r,this.transparent=!0,this.backgroundColor=d("rgba(0,0,0,0)"),this.disableCull=!1,this.culledObjects=[],this.midPoint=new s(x/2,S/2),this.originX=.5,this.originY=.5,this._customViewport=!1,this.mask=null,this._maskCamera=null,this.renderList=[],this.isSceneCamera=!0},addToRenderList:function(c){this.renderList.push(c)},setOrigin:function(c,p){return c===void 0&&(c=.5),p===void 0&&(p=c),this.originX=c,this.originY=p,this},getScroll:function(c,p,m){m===void 0&&(m=new s);var x=this.width*.5,S=this.height*.5;return m.x=c-x,m.y=p-S,this.useBounds&&(m.x=this.clampX(m.x),m.y=this.clampY(m.y)),m},centerOnX:function(c){var p=this.width*.5;return this.midPoint.x=c,this.scrollX=c-p,this.useBounds&&(this.scrollX=this.clampX(this.scrollX)),this},centerOnY:function(c){var p=this.height*.5;return this.midPoint.y=c,this.scrollY=c-p,this.useBounds&&(this.scrollY=this.clampY(this.scrollY)),this},centerOn:function(c,p){return this.centerOnX(c),this.centerOnY(p),this},centerToBounds:function(){if(this.useBounds){var c=this._bounds,p=this.width*.5,m=this.height*.5;this.midPoint.set(c.centerX,c.centerY),this.scrollX=c.centerX-p,this.scrollY=c.centerY-m}return this},centerToSize:function(){return this.scrollX=this.width*.5,this.scrollY=this.height*.5,this},cull:function(c){if(this.disableCull)return c;var p=this.matrix.matrix,m=p[0],x=p[1],S=p[2],P=p[3],E=m*P-x*S;if(!E)return c;var R=p[4],M=p[5],O=this.scrollX,w=this.scrollY,L=this.width,F=this.height,b=this.y,D=b+F,N=this.x,z=N+L,W=this.culledObjects,Y=c.length;E=1/E,W.length=0;for(var j=0;jN&&Xb&&$S&&(c=S),c},clampY:function(c){var p=this._bounds,m=this.displayHeight,x=p.y+(m-this.height)/2,S=Math.max(x,x+p.height-m);return cS&&(c=S),c},removeBounds:function(){return this.useBounds=!1,this.dirty=!0,this._bounds.setEmpty(),this},setAngle:function(c){return c===void 0&&(c=0),this.rotation=u(c),this},setBackgroundColor:function(c){return c===void 0&&(c="rgba(0,0,0,0)"),this.backgroundColor=d(c),this.transparent=this.backgroundColor.alpha===0,this},setBounds:function(c,p,m,x,S){return S===void 0&&(S=!1),this._bounds.setTo(c,p,m,x),this.dirty=!0,this.useBounds=!0,S?this.centerToBounds():(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},getBounds:function(c){c===void 0&&(c=new n);var p=this._bounds;return c.setTo(p.x,p.y,p.width,p.height),c},setName:function(c){return c===void 0&&(c=""),this.name=c,this},setPosition:function(c,p){return p===void 0&&(p=c),this.x=c,this.y=p,this},setRotation:function(c){return c===void 0&&(c=0),this.rotation=c,this},setRoundPixels:function(c){return this.roundPixels=c,this},setScene:function(c,p){p===void 0&&(p=!0),this.scene&&this._customViewport&&this.sceneManager.customViewports--,this.scene=c,this.isSceneCamera=p;var m=c.sys;return this.sceneManager=m.game.scene,this.scaleManager=m.scale,this.cameraManager=m.cameras,this.updateSystem(),this},setScroll:function(c,p){return p===void 0&&(p=c),this.scrollX=c,this.scrollY=p,this},setSize:function(c,p){return p===void 0&&(p=c),this.width=c,this.height=p,this},setViewport:function(c,p,m,x){return this.x=c,this.y=p,this.width=m,this.height=x,this},setZoom:function(c,p){return c===void 0&&(c=1),p===void 0&&(p=c),c===0&&(c=.001),p===0&&(p=.001),this.zoomX=c,this.zoomY=p,this},setMask:function(c,p){return p===void 0&&(p=!0),this.mask=c,this._maskCamera=p?this.cameraManager.default:this,this},clearMask:function(c){return c===void 0&&(c=!1),c&&this.mask&&this.mask.destroy(),this.mask=null,this},toJSON:function(){var c={name:this.name,x:this.x,y:this.y,width:this.width,height:this.height,zoom:this.zoom,rotation:this.rotation,roundPixels:this.roundPixels,scrollX:this.scrollX,scrollY:this.scrollY,backgroundColor:this.backgroundColor.rgba};return this.useBounds&&(c.bounds={x:this._bounds.x,y:this._bounds.y,width:this._bounds.width,height:this._bounds.height}),c},update:function(){},setIsSceneCamera:function(c){return this.isSceneCamera=c,this},updateSystem:function(){if(!(!this.scaleManager||!this.isSceneCamera)){var c=this._x!==0||this._y!==0||this.scaleManager.width!==this._width||this.scaleManager.height!==this._height,p=this.sceneManager;c&&!this._customViewport?p.customViewports++:!c&&this._customViewport&&p.customViewports--,this.dirty=!0,this._customViewport=c}},destroy:function(){this.emit(a.DESTROY,this),this.removeAllListeners(),this.matrix.destroy(),this.culledObjects=[],this._customViewport&&this.sceneManager.customViewports--,this.renderList=[],this._bounds=null,this.scene=null,this.scaleManager=null,this.sceneManager=null,this.cameraManager=null},x:{get:function(){return this._x},set:function(c){this._x=c,this.updateSystem()}},y:{get:function(){return this._y},set:function(c){this._y=c,this.updateSystem()}},width:{get:function(){return this._width},set:function(c){this._width=c,this.updateSystem()}},height:{get:function(){return this._height},set:function(c){this._height=c,this.updateSystem()}},scrollX:{get:function(){return this._scrollX},set:function(c){c!==this._scrollX&&(this._scrollX=c,this.dirty=!0)}},scrollY:{get:function(){return this._scrollY},set:function(c){c!==this._scrollY&&(this._scrollY=c,this.dirty=!0)}},zoom:{get:function(){return(this._zoomX+this._zoomY)/2},set:function(c){this._zoomX=c,this._zoomY=c,this.dirty=!0}},zoomX:{get:function(){return this._zoomX},set:function(c){this._zoomX=c,this.dirty=!0}},zoomY:{get:function(){return this._zoomY},set:function(c){this._zoomY=c,this.dirty=!0}},rotation:{get:function(){return this._rotation},set:function(c){this._rotation=c,this.dirty=!0}},centerX:{get:function(){return this.x+.5*this.width}},centerY:{get:function(){return this.y+.5*this.height}},displayWidth:{get:function(){return this.width/this.zoomX}},displayHeight:{get:function(){return this.height/this.zoomY}}});f.exports=h},47751:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(51052),g=t(79993),u=t(82897),o=t(56694),a=t(64937),n=t(53030),r=t(89787),d=t(42798),s=t(74118),h=t(93736),c=new o({Extends:l,Mixins:[a.PostPipeline],initialize:function(m,x,S,P){l.call(this,m,x,S,P),this.initPostPipeline(),this.inputEnabled=!0,this.fadeEffect=new n.Fade(this),this.flashEffect=new n.Flash(this),this.shakeEffect=new n.Shake(this),this.panEffect=new n.Pan(this),this.rotateToEffect=new n.RotateTo(this),this.zoomEffect=new n.Zoom(this),this.lerp=new h(1,1),this.followOffset=new h,this.deadzone=null,this._follow=null},setDeadzone:function(p,m){if(p===void 0)this.deadzone=null;else{if(this.deadzone?(this.deadzone.width=p,this.deadzone.height=m):this.deadzone=new s(0,0,p,m),this._follow){var x=this.width/2,S=this.height/2,P=this._follow.x-this.followOffset.x,E=this._follow.y-this.followOffset.y;this.midPoint.set(P,E),this.scrollX=P-x,this.scrollY=E-S}g(this.deadzone,this.midPoint.x,this.midPoint.y)}return this},fadeIn:function(p,m,x,S,P,E){return this.fadeEffect.start(!1,p,m,x,S,!0,P,E)},fadeOut:function(p,m,x,S,P,E){return this.fadeEffect.start(!0,p,m,x,S,!0,P,E)},fadeFrom:function(p,m,x,S,P,E,R){return this.fadeEffect.start(!1,p,m,x,S,P,E,R)},fade:function(p,m,x,S,P,E,R){return this.fadeEffect.start(!0,p,m,x,S,P,E,R)},flash:function(p,m,x,S,P,E,R){return this.flashEffect.start(p,m,x,S,P,E,R)},shake:function(p,m,x,S,P){return this.shakeEffect.start(p,m,x,S,P)},pan:function(p,m,x,S,P,E,R){return this.panEffect.start(p,m,x,S,P,E,R)},rotateTo:function(p,m,x,S,P,E,R){return this.rotateToEffect.start(p,m,x,S,P,E,R)},zoomTo:function(p,m,x,S,P,E){return this.zoomEffect.start(p,m,x,S,P,E)},preRender:function(){this.renderList.length=0;var p=this.width,m=this.height,x=p*.5,S=m*.5,P=this.zoom,E=this.matrix,R=p*this.originX,M=m*this.originY,O=this._follow,w=this.deadzone,L=this.scrollX,F=this.scrollY;w&&g(w,this.midPoint.x,this.midPoint.y);var b=!1;if(this.roundPixels&&(R=Math.floor(R),M=Math.floor(M)),O&&!this.panEffect.isRunning){var D=this.lerp,N=O.x-this.followOffset.x,z=O.y-this.followOffset.y;this.roundPixels&&(N=Math.floor(N),z=Math.floor(z)),w?(Nw.right&&(L=d(L,L+(N-w.right),D.x)),zw.bottom&&(F=d(F,F+(z-w.bottom),D.y))):(L=d(L,N-R,D.x),F=d(F,z-M,D.y)),b=!0}this.useBounds&&(L=this.clampX(L),F=this.clampY(F)),this.roundPixels&&(L=Math.floor(L),F=Math.floor(F)),this.scrollX=L,this.scrollY=F;var W=L+x,Y=F+S;this.midPoint.set(W,Y);var j=p/P,G=m/P,V=W-j/2,I=Y-G/2;this.roundPixels&&(V=Math.floor(V),I=Math.floor(I)),this.worldView.setTo(V,I,j,G),E.applyITRS(Math.floor(this.x+R),Math.floor(this.y+M),this.rotation,P,P),E.translate(-R,-M),this.shakeEffect.preRender(),b&&this.emit(r.FOLLOW_UPDATE,this,O)},setLerp:function(p,m){return p===void 0&&(p=1),m===void 0&&(m=p),this.lerp.set(p,m),this},setFollowOffset:function(p,m){return p===void 0&&(p=0),m===void 0&&(m=0),this.followOffset.set(p,m),this},startFollow:function(p,m,x,S,P,E){m===void 0&&(m=!1),x===void 0&&(x=1),S===void 0&&(S=x),P===void 0&&(P=0),E===void 0&&(E=P),this._follow=p,this.roundPixels=m,x=u(x,0,1),S=u(S,0,1),this.lerp.set(x,S),this.followOffset.set(P,E);var R=this.width/2,M=this.height/2,O=p.x-P,w=p.y-E;return this.midPoint.set(O,w),this.scrollX=O-R,this.scrollY=w-M,this.useBounds&&(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},stopFollow:function(){return this._follow=null,this},resetFX:function(){return this.rotateToEffect.reset(),this.panEffect.reset(),this.shakeEffect.reset(),this.flashEffect.reset(),this.fadeEffect.reset(),this},update:function(p,m){this.visible&&(this.rotateToEffect.update(p,m),this.panEffect.update(p,m),this.zoomEffect.update(p,m),this.shakeEffect.update(p,m),this.flashEffect.update(p,m),this.fadeEffect.update(p,m))},destroy:function(){this.resetFX(),l.prototype.destroy.call(this),this._follow=null,this.deadzone=null}});f.exports=c},62382:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(47751),g=t(56694),u=t(72632),o=t(91963),a=t(94287),n=t(40444),r=t(7599),d=new g({initialize:function(h){this.scene=h,this.systems=h.sys,this.roundPixels=h.sys.game.config.roundPixels,this.cameras=[],this.main,this.default,h.sys.events.once(r.BOOT,this.boot,this),h.sys.events.on(r.START,this.start,this)},boot:function(){var s=this.systems;s.settings.cameras?this.fromJSON(s.settings.cameras):this.add(),this.main=this.cameras[0],this.default=new l(0,0,s.scale.width,s.scale.height).setScene(this.scene),s.game.scale.on(n.RESIZE,this.onResize,this),this.systems.events.once(r.DESTROY,this.destroy,this)},start:function(){if(!this.main){var s=this.systems;s.settings.cameras?this.fromJSON(s.settings.cameras):this.add(),this.main=this.cameras[0]}var h=this.systems.events;h.on(r.UPDATE,this.update,this),h.once(r.SHUTDOWN,this.shutdown,this)},add:function(s,h,c,p,m,x){s===void 0&&(s=0),h===void 0&&(h=0),c===void 0&&(c=this.scene.sys.scale.width),p===void 0&&(p=this.scene.sys.scale.height),m===void 0&&(m=!1),x===void 0&&(x="");var S=new l(s,h,c,p);return S.setName(x),S.setScene(this.scene),S.setRoundPixels(this.roundPixels),S.id=this.getNextID(),this.cameras.push(S),m&&(this.main=S),S},addExisting:function(s,h){h===void 0&&(h=!1);var c=this.cameras.indexOf(s);return c===-1?(s.id=this.getNextID(),s.setRoundPixels(this.roundPixels),this.cameras.push(s),h&&(this.main=s),s):null},getNextID:function(){for(var s=this.cameras,h=1,c=0;c<32;c++){for(var p=!1,m=0;m0){x.preRender();var S=this.getVisibleChildren(h.getChildren(),x);s.render(c,S,x)}}},getVisibleChildren:function(s,h){return s.filter(function(c){return c.willRender(h)})},resetAll:function(){for(var s=0;s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(82897),g=t(56694),u=t(89787),o=new g({initialize:function(n){this.camera=n,this.isRunning=!1,this.isComplete=!1,this.direction=!0,this.duration=0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(a,n,r,d,s,h,c,p){if(a===void 0&&(a=!0),n===void 0&&(n=1e3),r===void 0&&(r=0),d===void 0&&(d=0),s===void 0&&(s=0),h===void 0&&(h=!1),c===void 0&&(c=null),p===void 0&&(p=this.camera.scene),!h&&this.isRunning)return this.camera;this.isRunning=!0,this.isComplete=!1,this.duration=n,this.direction=a,this.progress=0,this.red=r,this.green=d,this.blue=s,this.alpha=a?Number.MIN_VALUE:1,this._elapsed=0,this._onUpdate=c,this._onUpdateScope=p;var m=a?u.FADE_OUT_START:u.FADE_IN_START;return this.camera.emit(m,this.camera,this,n,r,d,s),this.camera},update:function(a,n){this.isRunning&&(this._elapsed+=n,this.progress=l(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(82897),g=t(56694),u=t(89787),o=new g({initialize:function(n){this.camera=n,this.isRunning=!1,this.duration=0,this.red=0,this.green=0,this.blue=0,this.alpha=1,this.progress=0,this._elapsed=0,this._alpha,this._onUpdate,this._onUpdateScope},start:function(a,n,r,d,s,h,c){return a===void 0&&(a=250),n===void 0&&(n=255),r===void 0&&(r=255),d===void 0&&(d=255),s===void 0&&(s=!1),h===void 0&&(h=null),c===void 0&&(c=this.camera.scene),!s&&this.isRunning?this.camera:(this.isRunning=!0,this.duration=a,this.progress=0,this.red=n,this.green=r,this.blue=d,this._alpha=this.alpha,this._elapsed=0,this._onUpdate=h,this._onUpdateScope=c,this.camera.emit(u.FLASH_START,this.camera,this,a,n,r,d),this.camera)},update:function(a,n){this.isRunning&&(this._elapsed+=n,this.progress=l(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(82897),g=t(56694),u=t(35060),o=t(89787),a=t(93736),n=new g({initialize:function(d){this.camera=d,this.isRunning=!1,this.duration=0,this.source=new a,this.current=new a,this.destination=new a,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(r,d,s,h,c,p,m){s===void 0&&(s=1e3),h===void 0&&(h=u.Linear),c===void 0&&(c=!1),p===void 0&&(p=null),m===void 0&&(m=this.camera.scene);var x=this.camera;return!c&&this.isRunning||(this.isRunning=!0,this.duration=s,this.progress=0,this.source.set(x.scrollX,x.scrollY),this.destination.set(r,d),x.getScroll(r,d,this.current),typeof h=="string"&&u.hasOwnProperty(h)?this.ease=u[h]:typeof h=="function"&&(this.ease=h),this._elapsed=0,this._onUpdate=p,this._onUpdateScope=m,this.camera.emit(o.PAN_START,this.camera,this,s,r,d)),x},update:function(r,d){if(this.isRunning){this._elapsed+=d;var s=l(this._elapsed/this.duration,0,1);this.progress=s;var h=this.camera;if(this._elapsed{/** + * @author Jason Nicholls + * @copyright 2018 Photon Storm Ltd. + * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} + */var l=t(82897),g=t(56694),u=t(89787),o=t(35060),a=new g({initialize:function(r){this.camera=r,this.isRunning=!1,this.duration=0,this.source=0,this.current=0,this.destination=0,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope,this.clockwise=!0,this.shortestPath=!1},start:function(n,r,d,s,h,c,p){d===void 0&&(d=1e3),s===void 0&&(s=o.Linear),h===void 0&&(h=!1),c===void 0&&(c=null),p===void 0&&(p=this.camera.scene),r===void 0&&(r=!1),this.shortestPath=r;var m=n;n<0?(m=-1*n,this.clockwise=!1):this.clockwise=!0;var x=360*Math.PI/180;m=m-Math.floor(m/x)*x;var S=this.camera;if(!h&&this.isRunning)return S;if(this.isRunning=!0,this.duration=d,this.progress=0,this.source=S.rotation,this.destination=m,typeof s=="string"&&o.hasOwnProperty(s)?this.ease=o[s]:typeof s=="function"&&(this.ease=s),this._elapsed=0,this._onUpdate=c,this._onUpdateScope=p,this.shortestPath){var P=0,E=0;this.destination>this.source?P=Math.abs(this.destination-this.source):P=Math.abs(this.destination+x)-this.source,this.source>this.destination?E=Math.abs(this.source-this.destination):E=Math.abs(this.source+x)-this.destination,PE&&(this.clockwise=!1)}return this.camera.emit(u.ROTATE_START,this.camera,this,d,m),S},update:function(n,r){if(this.isRunning){this._elapsed+=r;var d=l(this._elapsed/this.duration,0,1);this.progress=d;var s=this.camera;if(this._elapsed=x?c=Math.abs(m-x):c=Math.abs(m+p)-x;var S=0;this.clockwise?S=s.rotation+c*h:S=s.rotation-c*h,s.rotation=S,this._onUpdate&&this._onUpdate.call(this._onUpdateScope,s,d,S)}else s.rotation=this.destination,this._onUpdate&&this._onUpdate.call(this._onUpdateScope,s,d,this.destination),this.effectComplete()}},effectComplete:function(){this._onUpdate=null,this._onUpdateScope=null,this.isRunning=!1,this.camera.emit(u.ROTATE_COMPLETE,this.camera,this)},reset:function(){this.isRunning=!1,this._onUpdate=null,this._onUpdateScope=null},destroy:function(){this.reset(),this.camera=null,this.source=null,this.destination=null}});f.exports=a},3241:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(82897),g=t(56694),u=t(89787),o=t(93736),a=new g({initialize:function(r){this.camera=r,this.isRunning=!1,this.duration=0,this.intensity=new o,this.progress=0,this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate,this._onUpdateScope},start:function(n,r,d,s,h){return n===void 0&&(n=100),r===void 0&&(r=.05),d===void 0&&(d=!1),s===void 0&&(s=null),h===void 0&&(h=this.camera.scene),!d&&this.isRunning?this.camera:(this.isRunning=!0,this.duration=n,this.progress=0,typeof r=="number"?this.intensity.set(r):this.intensity.set(r.x,r.y),this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate=s,this._onUpdateScope=h,this.camera.emit(u.SHAKE_START,this.camera,this,n,r),this.camera)},preRender:function(){this.isRunning&&this.camera.matrix.translate(this._offsetX,this._offsetY)},update:function(n,r){if(this.isRunning)if(this._elapsed+=r,this.progress=l(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(82897),g=t(56694),u=t(35060),o=t(89787),a=new g({initialize:function(r){this.camera=r,this.isRunning=!1,this.duration=0,this.source=1,this.destination=1,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(n,r,d,s,h,c){r===void 0&&(r=1e3),d===void 0&&(d=u.Linear),s===void 0&&(s=!1),h===void 0&&(h=null),c===void 0&&(c=this.camera.scene);var p=this.camera;return!s&&this.isRunning||(this.isRunning=!0,this.duration=r,this.progress=0,this.source=p.zoom,this.destination=n,typeof d=="string"&&u.hasOwnProperty(d)?this.ease=u[d]:typeof d=="function"&&(this.ease=d),this._elapsed=0,this._onUpdate=h,this._onUpdateScope=c,this.camera.emit(o.ZOOM_START,this.camera,this,r,n)),p},update:function(n,r){this.isRunning&&(this._elapsed+=r,this.progress=l(this._elapsed/this.duration,0,1),this._elapsed{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Fade:t(92522),Flash:t(22151),Pan:t(37551),Shake:t(3241),RotateTo:t(1771),Zoom:t(13383)}},39577:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="cameradestroy"},85373:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="camerafadeincomplete"},92057:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="camerafadeinstart"},1903:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="camerafadeoutcomplete"},96131:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="camerafadeoutstart"},85409:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="cameraflashcomplete"},25500:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="cameraflashstart"},44071:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="followupdate"},19818:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="camerapancomplete"},80002:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="camerapanstart"},87966:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="postrender"},74217:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="prerender"},34805:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="camerarotatecomplete"},30408:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="camerarotatestart"},49856:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="camerashakecomplete"},69189:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="camerashakestart"},67657:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="camerazoomcomplete"},14229:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="camerazoomstart"},89787:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={DESTROY:t(39577),FADE_IN_COMPLETE:t(85373),FADE_IN_START:t(92057),FADE_OUT_COMPLETE:t(1903),FADE_OUT_START:t(96131),FLASH_COMPLETE:t(85409),FLASH_START:t(25500),FOLLOW_UPDATE:t(44071),PAN_COMPLETE:t(19818),PAN_START:t(80002),POST_RENDER:t(87966),PRE_RENDER:t(74217),ROTATE_COMPLETE:t(34805),ROTATE_START:t(30408),SHAKE_COMPLETE:t(49856),SHAKE_START:t(69189),ZOOM_COMPLETE:t(67657),ZOOM_START:t(14229)}},32356:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Camera:t(47751),BaseCamera:t(51052),CameraManager:t(62382),Effects:t(53030),Events:t(89787)}},84219:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(10850),u=new l({initialize:function(a){this.camera=g(a,"camera",null),this.left=g(a,"left",null),this.right=g(a,"right",null),this.up=g(a,"up",null),this.down=g(a,"down",null),this.zoomIn=g(a,"zoomIn",null),this.zoomOut=g(a,"zoomOut",null),this.zoomSpeed=g(a,"zoomSpeed",.01),this.minZoom=g(a,"minZoom",.001),this.maxZoom=g(a,"maxZoom",1e3),this.speedX=0,this.speedY=0;var n=g(a,"speed",null);typeof n=="number"?(this.speedX=n,this.speedY=n):(this.speedX=g(a,"speed.x",0),this.speedY=g(a,"speed.y",0)),this._zoom=0,this.active=this.camera!==null},start:function(){return this.active=this.camera!==null,this},stop:function(){return this.active=!1,this},setCamera:function(o){return this.camera=o,this},update:function(o){if(this.active){o===void 0&&(o=1);var a=this.camera;this.up&&this.up.isDown?a.scrollY-=this.speedY*o|0:this.down&&this.down.isDown&&(a.scrollY+=this.speedY*o|0),this.left&&this.left.isDown?a.scrollX-=this.speedX*o|0:this.right&&this.right.isDown&&(a.scrollX+=this.speedX*o|0),this.zoomIn&&this.zoomIn.isDown?(a.zoom-=this.zoomSpeed,a.zoomthis.maxZoom&&(a.zoom=this.maxZoom))}},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});f.exports=u},69370:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(10850),u=new l({initialize:function(a){this.camera=g(a,"camera",null),this.left=g(a,"left",null),this.right=g(a,"right",null),this.up=g(a,"up",null),this.down=g(a,"down",null),this.zoomIn=g(a,"zoomIn",null),this.zoomOut=g(a,"zoomOut",null),this.zoomSpeed=g(a,"zoomSpeed",.01),this.minZoom=g(a,"minZoom",.001),this.maxZoom=g(a,"maxZoom",1e3),this.accelX=0,this.accelY=0;var n=g(a,"acceleration",null);typeof n=="number"?(this.accelX=n,this.accelY=n):(this.accelX=g(a,"acceleration.x",0),this.accelY=g(a,"acceleration.y",0)),this.dragX=0,this.dragY=0;var r=g(a,"drag",null);typeof r=="number"?(this.dragX=r,this.dragY=r):(this.dragX=g(a,"drag.x",0),this.dragY=g(a,"drag.y",0)),this.maxSpeedX=0,this.maxSpeedY=0;var d=g(a,"maxSpeed",null);typeof d=="number"?(this.maxSpeedX=d,this.maxSpeedY=d):(this.maxSpeedX=g(a,"maxSpeed.x",0),this.maxSpeedY=g(a,"maxSpeed.y",0)),this._speedX=0,this._speedY=0,this._zoom=0,this.active=this.camera!==null},start:function(){return this.active=this.camera!==null,this},stop:function(){return this.active=!1,this},setCamera:function(o){return this.camera=o,this},update:function(o){if(this.active){o===void 0&&(o=1);var a=this.camera;this._speedX>0?(this._speedX-=this.dragX*o,this._speedX<0&&(this._speedX=0)):this._speedX<0&&(this._speedX+=this.dragX*o,this._speedX>0&&(this._speedX=0)),this._speedY>0?(this._speedY-=this.dragY*o,this._speedY<0&&(this._speedY=0)):this._speedY<0&&(this._speedY+=this.dragY*o,this._speedY>0&&(this._speedY=0)),this.up&&this.up.isDown?(this._speedY+=this.accelY,this._speedY>this.maxSpeedY&&(this._speedY=this.maxSpeedY)):this.down&&this.down.isDown&&(this._speedY-=this.accelY,this._speedY<-this.maxSpeedY&&(this._speedY=-this.maxSpeedY)),this.left&&this.left.isDown?(this._speedX+=this.accelX,this._speedX>this.maxSpeedX&&(this._speedX=this.maxSpeedX)):this.right&&this.right.isDown&&(this._speedX-=this.accelX,this._speedX<-this.maxSpeedX&&(this._speedX=-this.maxSpeedX)),this.zoomIn&&this.zoomIn.isDown?this._zoom=-this.zoomSpeed:this.zoomOut&&this.zoomOut.isDown?this._zoom=this.zoomSpeed:this._zoom=0,this._speedX!==0&&(a.scrollX-=this._speedX*o|0),this._speedY!==0&&(a.scrollY-=this._speedY*o|0),this._zoom!==0&&(a.zoom+=this._zoom,a.zoomthis.maxZoom&&(a.zoom=this.maxZoom))}},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});f.exports=u},6524:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={FixedKeyControl:t(84219),SmoothedKeyControl:t(69370)}},44143:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Controls:t(6524),Scene2D:t(32356)}},86459:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l={VERSION:"3.60.0",BlendModes:t(95723),ScaleModes:t(27394),AUTO:0,CANVAS:1,WEBGL:2,HEADLESS:3,FOREVER:-1,NONE:4,UP:5,DOWN:6,LEFT:7,RIGHT:8};f.exports=l},14033:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(86459),u=t(18360),o=t(77290),a=t(72632),n=t(10850),r=t(42911),d=t(72283),s=t(5923),h=t(65641),c=t(93222),p=new l({initialize:function(x){x===void 0&&(x={});var S=["#ff0000","#ffff00","#00ff00","#00ffff","#000000"],P="#ffffff",E=n(x,"scale",null);this.width=n(E,"width",1024,x),this.height=n(E,"height",768,x),this.zoom=n(E,"zoom",1,x),this.parent=n(E,"parent",void 0,x),this.scaleMode=n(E,E?"mode":"scaleMode",0,x),this.expandParent=n(E,"expandParent",!0,x),this.autoRound=n(E,"autoRound",!1,x),this.autoCenter=n(E,"autoCenter",0,x),this.resizeInterval=n(E,"resizeInterval",500,x),this.fullscreenTarget=n(E,"fullscreenTarget",null,x),this.minWidth=n(E,"minWidth",0,x),this.maxWidth=n(E,"maxWidth",0,x),this.minHeight=n(E,"minHeight",0,x),this.maxHeight=n(E,"maxHeight",0,x),this.renderType=n(x,"type",g.AUTO),this.canvas=n(x,"canvas",null),this.context=n(x,"context",null),this.canvasStyle=n(x,"canvasStyle",null),this.customEnvironment=n(x,"customEnvironment",!1),this.sceneConfig=n(x,"scene",null),this.seed=n(x,"seed",[(Date.now()*Math.random()).toString()]),s.RND=new s.RandomDataGenerator(this.seed),this.gameTitle=n(x,"title",""),this.gameURL=n(x,"url","https://phaser.io"),this.gameVersion=n(x,"version",""),this.autoFocus=n(x,"autoFocus",!0),this.stableSort=n(x,"stableSort",-1),this.stableSort===-1&&(this.stableSort=o.browser.es2019?1:0),o.features.stableSort=this.stableSort,this.domCreateContainer=n(x,"dom.createContainer",!1),this.domPointerEvents=n(x,"dom.pointerEvents","none"),this.inputKeyboard=n(x,"input.keyboard",!0),this.inputKeyboardEventTarget=n(x,"input.keyboard.target",window),this.inputKeyboardCapture=n(x,"input.keyboard.capture",[]),this.inputMouse=n(x,"input.mouse",!0),this.inputMouseEventTarget=n(x,"input.mouse.target",null),this.inputMousePreventDefaultDown=n(x,"input.mouse.preventDefaultDown",!0),this.inputMousePreventDefaultUp=n(x,"input.mouse.preventDefaultUp",!0),this.inputMousePreventDefaultMove=n(x,"input.mouse.preventDefaultMove",!0),this.inputMousePreventDefaultWheel=n(x,"input.mouse.preventDefaultWheel",!0),this.inputTouch=n(x,"input.touch",o.input.touch),this.inputTouchEventTarget=n(x,"input.touch.target",null),this.inputTouchCapture=n(x,"input.touch.capture",!0),this.inputActivePointers=n(x,"input.activePointers",1),this.inputSmoothFactor=n(x,"input.smoothFactor",0),this.inputWindowEvents=n(x,"input.windowEvents",!0),this.inputGamepad=n(x,"input.gamepad",!1),this.inputGamepadEventTarget=n(x,"input.gamepad.target",window),this.disableContextMenu=n(x,"disableContextMenu",!1),this.audio=n(x,"audio",{}),this.hideBanner=n(x,"banner",null)===!1,this.hidePhaser=n(x,"banner.hidePhaser",!1),this.bannerTextColor=n(x,"banner.text",P),this.bannerBackgroundColor=n(x,"banner.background",S),this.gameTitle===""&&this.hidePhaser&&(this.hideBanner=!0),this.fps=n(x,"fps",null);var R=n(x,"render",null);this.pipeline=n(R,"pipeline",null,x),this.autoMobilePipeline=n(R,"autoMobilePipeline",!0,x),this.defaultPipeline=n(R,"defaultPipeline",h.MULTI_PIPELINE,x),this.antialias=n(R,"antialias",!0,x),this.antialiasGL=n(R,"antialiasGL",!0,x),this.mipmapFilter=n(R,"mipmapFilter","",x),this.desynchronized=n(R,"desynchronized",!1,x),this.roundPixels=n(R,"roundPixels",!1,x),this.pixelArt=n(R,"pixelArt",this.zoom!==1,x),this.pixelArt&&(this.antialias=!1,this.antialiasGL=!1,this.roundPixels=!0),this.transparent=n(R,"transparent",!1,x),this.clearBeforeRender=n(R,"clearBeforeRender",!0,x),this.preserveDrawingBuffer=n(R,"preserveDrawingBuffer",!1,x),this.premultipliedAlpha=n(R,"premultipliedAlpha",!0,x),this.failIfMajorPerformanceCaveat=n(R,"failIfMajorPerformanceCaveat",!1,x),this.powerPreference=n(R,"powerPreference","default",x),this.batchSize=n(R,"batchSize",4096,x),this.maxTextures=n(R,"maxTextures",-1,x),this.maxLights=n(R,"maxLights",10,x);var M=n(x,"backgroundColor",0);this.backgroundColor=c(M),this.transparent&&(this.backgroundColor=c(0),this.backgroundColor.alpha=0),this.preBoot=n(x,"callbacks.preBoot",d),this.postBoot=n(x,"callbacks.postBoot",d),this.physics=n(x,"physics",{}),this.defaultPhysicsSystem=n(this.physics,"default",!1),this.loaderBaseURL=n(x,"loader.baseURL",""),this.loaderPath=n(x,"loader.path",""),this.loaderMaxParallelDownloads=n(x,"loader.maxParallelDownloads",o.os.android?6:32),this.loaderCrossOrigin=n(x,"loader.crossOrigin",void 0),this.loaderResponseType=n(x,"loader.responseType",""),this.loaderAsync=n(x,"loader.async",!0),this.loaderUser=n(x,"loader.user",""),this.loaderPassword=n(x,"loader.password",""),this.loaderTimeout=n(x,"loader.timeout",0),this.loaderWithCredentials=n(x,"loader.withCredentials",!1),this.loaderImageLoadType=n(x,"loader.imageLoadType","XHR"),this.loaderLocalScheme=n(x,"loader.localScheme",["file://","capacitor://"]),this.glowFXQuality=n(x,"fx.glow.quality",.1),this.glowFXDistance=n(x,"fx.glow.distance",10),this.installGlobalPlugins=[],this.installScenePlugins=[];var O=n(x,"plugins",null),w=u.DefaultScene;O&&(Array.isArray(O)?this.defaultPlugins=O:r(O)&&(this.installGlobalPlugins=a(O,"global",[]),this.installScenePlugins=a(O,"scene",[]),Array.isArray(O.default)?w=O.default:Array.isArray(O.defaultMerge)&&(w=w.concat(O.defaultMerge)))),this.defaultPlugins=w;var L="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAg";this.defaultImage=n(x,"images.default",L+"AQMAAABJtOi3AAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAABVJREFUeF7NwIEAAAAAgKD9qdeocAMAoAABm3DkcAAAAABJRU5ErkJggg=="),this.missingImage=n(x,"images.missing",L+"CAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJ9JREFUeNq01ssOwyAMRFG46v//Mt1ESmgh+DFmE2GPOBARKb2NVjo+17PXLD8a1+pl5+A+wSgFygymWYHBb0FtsKhJDdZlncG2IzJ4ayoMDv20wTmSMzClEgbWYNTAkQ0Z+OJ+A/eWnAaR9+oxCF4Os0H8htsMUp+pwcgBBiMNnAwF8GqIgL2hAzaGFFgZauDPKABmowZ4GL369/0rwACp2yA/ttmvsQAAAABJRU5ErkJggg=="),this.whiteImage=n(x,"images.white","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABdJREFUeNpi/P//PwMMMDEgAdwcgAADAJZuAwXJYZOzAAAAAElFTkSuQmCC"),window&&(window.FORCE_WEBGL?this.renderType=g.WEBGL:window.FORCE_CANVAS&&(this.renderType=g.CANVAS))}});f.exports=p},50150:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(70616),g=t(61068),u=t(86459),o=t(90185),a=function(n){var r=n.config;if((r.customEnvironment||r.canvas)&&r.renderType===u.AUTO)throw new Error("Must set explicit renderType in custom environment");if(!r.customEnvironment&&!r.canvas&&r.renderType!==u.HEADLESS)if(r.renderType===u.AUTO&&(r.renderType=o.webGL?u.WEBGL:u.CANVAS),r.renderType===u.WEBGL){if(!o.webGL)throw new Error("Cannot create WebGL context, aborting.")}else if(r.renderType===u.CANVAS){if(!o.canvas)throw new Error("Cannot create Canvas context, aborting.")}else throw new Error("Unknown value for renderer type: "+r.renderType);r.antialias||g.disableSmoothing();var d=n.scale.baseSize,s=d.width,h=d.height;if(r.canvas?(n.canvas=r.canvas,n.canvas.width=s,n.canvas.height=h):n.canvas=g.create(n,s,h,r.renderType),r.canvasStyle&&(n.canvas.style=r.canvasStyle),r.antialias||l.setCrisp(n.canvas),r.renderType!==u.HEADLESS){var c,p;c=t(91135),p=t(11857),r.renderType===u.WEBGL?n.renderer=new p(n):(n.renderer=new c(n),n.context=n.renderer.gameContext)}};f.exports=a},77291:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(86459),g=function(u){var o=u.config;if(!o.hideBanner){var a="WebGL";o.renderType===l.CANVAS?a="Canvas":o.renderType===l.HEADLESS&&(a="Headless");var n=o.audio,r=u.device.audio,d;if(r.webAudio&&!n.disableWebAudio?d="Web Audio":n.noAudio||!r.webAudio&&!r.audioData?d="No Audio":d="HTML5 Audio",u.device.browser.ie)window.console&&console.log("Phaser v"+l.VERSION+" / https://phaser.io");else{var s="",h=[s];if(Array.isArray(o.bannerBackgroundColor)){var c;o.bannerBackgroundColor.forEach(function(m){s=s.concat("%c "),h.push("background: "+m),c=m}),h[h.length-1]="color: "+o.bannerTextColor+"; background: "+c}else s=s.concat("%c "),h.push("color: "+o.bannerTextColor+"; background: "+o.bannerBackgroundColor);h.push("background: transparent"),o.gameTitle&&(s=s.concat(o.gameTitle),o.gameVersion&&(s=s.concat(" v"+o.gameVersion)),o.hidePhaser||(s=s.concat(" / ")));var p="";o.hidePhaser||(s=s.concat("Phaser v"+l.VERSION+p+" ("+a+" | "+d+")")),s=s.concat(" %c "+o.gameURL),h[0]=s,console.log.apply(console,h)}}};f.exports=g},15213:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(99584),g=t(90249),u=t(43474),o=t(61068),a=t(56694),n=t(14033),r=t(85178),d=t(50150),s=t(81078),h=t(77291),c=t(77290),p=t(21546),m=t(6659),x=t(97081),S=t(69898),P=t(91963),E=t(49274),R=t(756),M=t(13553),O=t(38203),w=t(6237),L=t(26617),F=t(26493),b=t(84191),D=new a({initialize:function(z){this.config=new n(z),this.renderer=null,this.domContainer=null,this.canvas=null,this.context=null,this.isBooted=!1,this.isRunning=!1,this.events=new m,this.anims=new g(this),this.textures=new w(this),this.cache=new u(this),this.registry=new s(this,new m),this.input=new S(this,this.config),this.scene=new M(this,this.config.sceneConfig),this.device=c,this.scale=new R(this,this.config),this.sound=null,this.sound=b.create(this),this.loop=new L(this,this.config.fps),this.plugins=new E(this,this.config),this.pendingDestroy=!1,this.removeCanvas=!1,this.noReturn=!1,this.hasFocus=!1,this.isPaused=!1,p(this.boot.bind(this))},boot:function(){if(!P.hasCore("EventEmitter")){console.warn("Aborting. Core Plugins missing.");return}this.isBooted=!0,this.config.preBoot(this),this.scale.preBoot(),d(this),r(this),h(this),l(this.canvas,this.config.parent),this.textures.once(O.READY,this.texturesReady,this),this.events.emit(x.BOOT)},texturesReady:function(){this.events.emit(x.READY),this.start()},start:function(){this.isRunning=!0,this.config.postBoot(this),this.renderer?this.loop.start(this.step.bind(this)):this.loop.start(this.headlessStep.bind(this)),F(this);var N=this.events;N.on(x.HIDDEN,this.onHidden,this),N.on(x.VISIBLE,this.onVisible,this),N.on(x.BLUR,this.onBlur,this),N.on(x.FOCUS,this.onFocus,this)},step:function(N,z){if(this.pendingDestroy)return this.runDestroy();if(!this.isPaused){var W=this.events;W.emit(x.PRE_STEP,N,z),W.emit(x.STEP,N,z),this.scene.update(N,z),W.emit(x.POST_STEP,N,z);var Y=this.renderer;Y.preRender(),W.emit(x.PRE_RENDER,Y,N,z),this.scene.render(Y),Y.postRender(),W.emit(x.POST_RENDER,Y,N,z)}},headlessStep:function(N,z){if(this.pendingDestroy)return this.runDestroy();if(!this.isPaused){var W=this.events;W.emit(x.PRE_STEP,N,z),W.emit(x.STEP,N,z),this.scene.update(N,z),W.emit(x.POST_STEP,N,z),this.scene.isProcessing=!1,W.emit(x.PRE_RENDER,null,N,z),W.emit(x.POST_RENDER,null,N,z)}},onHidden:function(){this.loop.pause(),this.events.emit(x.PAUSE)},pause:function(){var N=this.isPaused;this.isPaused=!0,N||this.events.emit(x.PAUSE)},onVisible:function(){this.loop.resume(),this.events.emit(x.RESUME)},resume:function(){var N=this.isPaused;this.isPaused=!1,N&&this.events.emit(x.RESUME)},onBlur:function(){this.hasFocus=!1,this.loop.blur()},onFocus:function(){this.hasFocus=!0,this.loop.focus()},getFrame:function(){return this.loop.frame},getTime:function(){return this.loop.now},destroy:function(N,z){z===void 0&&(z=!1),this.pendingDestroy=!0,this.removeCanvas=N,this.noReturn=z},runDestroy:function(){this.scene.destroy(),this.events.emit(x.DESTROY),this.events.removeAllListeners(),this.renderer&&this.renderer.destroy(),this.removeCanvas&&this.canvas&&(o.remove(this.canvas),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)),this.domContainer&&this.domContainer.parentNode.removeChild(this.domContainer),this.loop.destroy(),this.pendingDestroy=!1}});f.exports=D},26617:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(10850),u=t(72283),o=t(27385),a=new l({initialize:function(r,d){this.game=r,this.raf=new o,this.started=!1,this.running=!1,this.minFps=g(d,"min",5),this.targetFps=g(d,"target",60),this.fpsLimit=g(d,"limit",0),this.hasFpsLimit=this.fpsLimit>0,this._limitRate=this.hasFpsLimit?1e3/this.fpsLimit:0,this._min=1e3/this.minFps,this._target=1e3/this.targetFps,this.actualFps=this.targetFps,this.nextFpsUpdate=0,this.framesThisSecond=0,this.callback=u,this.forceSetTimeOut=g(d,"forceSetTimeOut",!1),this.time=0,this.startTime=0,this.lastTime=0,this.frame=0,this.inFocus=!0,this._pauseTime=0,this._coolDown=0,this.delta=0,this.deltaIndex=0,this.deltaHistory=[],this.deltaSmoothingMax=g(d,"deltaHistory",10),this.panicMax=g(d,"panicMax",120),this.rawDelta=0,this.now=0,this.smoothStep=g(d,"smoothStep",!0)},blur:function(){this.inFocus=!1},focus:function(){this.inFocus=!0,this.resetDelta()},pause:function(){this._pauseTime=window.performance.now()},resume:function(){this.resetDelta(),this.startTime+=this.time-this._pauseTime},resetDelta:function(){var n=window.performance.now();this.time=n,this.lastTime=n,this.nextFpsUpdate=n+1e3,this.framesThisSecond=0;for(var r=0;r0||!this.inFocus)&&(this._coolDown--,n=Math.min(n,this._target)),n>this._min&&(n=d[r],n=Math.min(n,this._min)),d[r]=n,this.deltaIndex++,this.deltaIndex>=s&&(this.deltaIndex=0);for(var h=0,c=0;c=this.nextFpsUpdate&&this.updateFPS(n),this.framesThisSecond++,this.delta>=this._limitRate&&(this.callback(n,this.delta),this.delta=0),this.lastTime=n,this.frame++},step:function(n){this.now=n;var r=Math.max(0,n-this.lastTime);this.rawDelta=r,this.time+=this.rawDelta,this.smoothStep&&(r=this.smoothDelta(r)),this.delta=r,n>=this.nextFpsUpdate&&this.updateFPS(n),this.framesThisSecond++,this.callback(n,r),this.lastTime=n,this.frame++},tick:function(){var n=window.performance.now();this.hasFpsLimit?this.stepLimitFPS(n):this.step(n)},sleep:function(){this.running&&(this.raf.stop(),this.running=!1)},wake:function(n){n===void 0&&(n=!1);var r=window.performance.now();if(!this.running){n&&(this.startTime+=-this.lastTime+(this.lastTime+r));var d=this.hasFpsLimit?this.stepLimitFPS.bind(this):this.step.bind(this);this.raf.start(d,this.forceSetTimeOut,this._target),this.running=!0,this.nextFpsUpdate=r+1e3,this.framesThisSecond=0,this.fpsLimitTriggered=!1,this.tick()}},getDuration:function(){return Math.round(this.lastTime-this.startTime)/1e3},getDurationMS:function(){return Math.round(this.lastTime-this.startTime)},stop:function(){return this.running=!1,this.started=!1,this.raf.stop(),this},destroy:function(){this.stop(),this.raf.destroy(),this.raf=null,this.game=null,this.callback=null}});f.exports=a},26493:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(97081),g=function(u){var o,a=u.events;if(document.hidden!==void 0)o="visibilitychange";else{var n=["webkit","moz","ms"];n.forEach(function(d){document[d+"Hidden"]!==void 0&&(document.hidden=function(){return document[d+"Hidden"]},o=d+"visibilitychange")})}var r=function(d){document.hidden||d.type==="pause"?a.emit(l.HIDDEN):a.emit(l.VISIBLE)};o&&document.addEventListener(o,r,!1),window.onblur=function(){a.emit(l.BLUR)},window.onfocus=function(){a.emit(l.FOCUS)},window.focus&&u.config.autoFocus&&window.focus()};f.exports=g},41651:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="blur"},5520:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="boot"},51673:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="contextlost"},25055:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="destroy"},23767:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="focus"},57564:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="hidden"},38327:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pause"},43807:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="postrender"},73652:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="poststep"},780:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="prerender"},13781:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="prestep"},38247:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="ready"},29129:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="resume"},34994:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="step"},98704:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="visible"},97081:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={BLUR:t(41651),BOOT:t(5520),CONTEXT_LOST:t(51673),DESTROY:t(25055),FOCUS:t(23767),HIDDEN:t(57564),PAUSE:t(38327),POST_RENDER:t(43807),POST_STEP:t(73652),PRE_RENDER:t(780),PRE_STEP:t(13781),READY:t(38247),RESUME:t(29129),STEP:t(34994),VISIBLE:t(98704)}},80293:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Config:t(14033),CreateRenderer:t(50150),DebugHeader:t(77291),Events:t(97081),TimeStep:t(26617),VisibilityHandler:t(26493)}},52780:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(81543),g=t(61068),u=t(10850),o=function(a){var n=u(a,"data",[]),r=u(a,"canvas",null),d=u(a,"palette",l),s=u(a,"pixelWidth",1),h=u(a,"pixelHeight",s),c=u(a,"resizeCanvas",!0),p=u(a,"clearCanvas",!0),m=u(a,"preRender",null),x=u(a,"postRender",null),S=Math.floor(Math.abs(n[0].length*s)),P=Math.floor(Math.abs(n.length*h));r||(r=g.create2D(this,S,P),c=!1,p=!1),c&&(r.width=S,r.height=P);var E=r.getContext("2d",{willReadFrequently:!0});p&&E.clearRect(0,0,S,P),m&&m(r,E);for(var R=0;R{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={GenerateTexture:t(52780),Palettes:t(25235)}},81543:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={0:"#000",1:"#9D9D9D",2:"#FFF",3:"#BE2633",4:"#E06F8B",5:"#493C2B",6:"#A46422",7:"#EB8931",8:"#F7E26B",9:"#2F484E",A:"#44891A",B:"#A3CE27",C:"#1B2632",D:"#005784",E:"#31A2F2",F:"#B2DCEF"}},75846:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={0:"#000",1:"#fff",2:"#8b4131",3:"#7bbdc5",4:"#8b41ac",5:"#6aac41",6:"#3931a4",7:"#d5de73",8:"#945a20",9:"#5a4100",A:"#bd736a",B:"#525252",C:"#838383",D:"#acee8b",E:"#7b73de",F:"#acacac"}},83206:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={0:"#000",1:"#2234d1",2:"#0c7e45",3:"#44aacc",4:"#8a3622",5:"#5c2e78",6:"#aa5c3d",7:"#b5b5b5",8:"#5e606e",9:"#4c81fb",A:"#6cd947",B:"#7be2f9",C:"#eb8a60",D:"#e23d69",E:"#ffd93f",F:"#fff"}},13194:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#f5f4eb"}},50686:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#fff"}},25235:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={ARNE16:t(81543),C64:t(75846),CGA:t(83206),JMP:t(13194),MSX:t(50686)}},63120:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(34631),u=t(38517),o=t(93736),a=new l({Extends:u,initialize:function(r,d,s,h){u.call(this,"CubicBezierCurve"),Array.isArray(r)&&(h=new o(r[6],r[7]),s=new o(r[4],r[5]),d=new o(r[2],r[3]),r=new o(r[0],r[1])),this.p0=r,this.p1=d,this.p2=s,this.p3=h},getStartPoint:function(n){return n===void 0&&(n=new o),n.copy(this.p0)},getResolution:function(n){return n},getPoint:function(n,r){r===void 0&&(r=new o);var d=this.p0,s=this.p1,h=this.p2,c=this.p3;return r.set(g(n,d.x,s.x,h.x,c.x),g(n,d.y,s.y,h.y,c.y))},draw:function(n,r){r===void 0&&(r=32);var d=this.getPoints(r);n.beginPath(),n.moveTo(this.p0.x,this.p0.y);for(var s=1;s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(80222),u=t(74118),o=t(93736),a=new l({initialize:function(r){this.type=r,this.defaultDivisions=5,this.arcLengthDivisions=100,this.cacheArcLengths=[],this.needsUpdate=!0,this.active=!0,this._tmpVec2A=new o,this._tmpVec2B=new o},draw:function(n,r){return r===void 0&&(r=32),n.strokePoints(this.getPoints(r))},getBounds:function(n,r){n||(n=new u),r===void 0&&(r=16);var d=this.getLength();r>d&&(r=d/2);var s=Math.max(1,Math.round(d/r));return g(this.getSpacedPoints(s),n)},getDistancePoints:function(n){var r=this.getLength(),d=Math.max(1,r/n);return this.getSpacedPoints(d)},getEndPoint:function(n){return n===void 0&&(n=new o),this.getPointAt(1,n)},getLength:function(){var n=this.getLengths();return n[n.length-1]},getLengths:function(n){if(n===void 0&&(n=this.arcLengthDivisions),this.cacheArcLengths.length===n+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var r=[],d,s=this.getPoint(0,this._tmpVec2A),h=0;r.push(0);for(var c=1;c<=n;c++)d=this.getPoint(c/n,this._tmpVec2B),h+=d.distance(s),r.push(h),s.copy(d);return this.cacheArcLengths=r,r},getPointAt:function(n,r){var d=this.getUtoTmapping(n);return this.getPoint(d,r)},getPoints:function(n,r,d){d===void 0&&(d=[]),n||(r?n=this.getLength()/r:n=this.defaultDivisions);for(var s=0;s<=n;s++)d.push(this.getPoint(s/n));return d},getRandomPoint:function(n){return n===void 0&&(n=new o),this.getPoint(Math.random(),n)},getSpacedPoints:function(n,r,d){d===void 0&&(d=[]),n||(r?n=this.getLength()/r:n=this.defaultDivisions);for(var s=0;s<=n;s++){var h=this.getUtoTmapping(s/n,null,n);d.push(this.getPoint(h))}return d},getStartPoint:function(n){return n===void 0&&(n=new o),this.getPointAt(0,n)},getTangent:function(n,r){r===void 0&&(r=new o);var d=1e-4,s=n-d,h=n+d;return s<0&&(s=0),h>1&&(h=1),this.getPoint(s,this._tmpVec2A),this.getPoint(h,r),r.subtract(this._tmpVec2A).normalize()},getTangentAt:function(n,r){var d=this.getUtoTmapping(n);return this.getTangent(d,r)},getTFromDistance:function(n,r){return n<=0?0:this.getUtoTmapping(0,n,r)},getUtoTmapping:function(n,r,d){var s=this.getLengths(d),h=0,c=s.length,p;r?p=Math.min(r,s[c-1]):p=n*s[c-1];for(var m=0,x=c-1,S;m<=x;)if(h=Math.floor(m+(x-m)/2),S=s[h]-p,S<0)m=h+1;else if(S>0)x=h-1;else{x=h;break}if(h=x,s[h]===p)return h/(c-1);var P=s[h],E=s[h+1],R=E-P,M=(p-P)/R;return(h+M)/(c-1)},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()}});f.exports=a},48835:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(38517),u=t(75606),o=t(10850),a=t(23701),n=t(93736),r=new l({Extends:g,initialize:function(s,h,c,p,m,x,S,P){if(typeof s=="object"){var E=s;s=o(E,"x",0),h=o(E,"y",0),c=o(E,"xRadius",0),p=o(E,"yRadius",c),m=o(E,"startAngle",0),x=o(E,"endAngle",360),S=o(E,"clockwise",!1),P=o(E,"rotation",0)}else p===void 0&&(p=c),m===void 0&&(m=0),x===void 0&&(x=360),S===void 0&&(S=!1),P===void 0&&(P=0);g.call(this,"EllipseCurve"),this.p0=new n(s,h),this._xRadius=c,this._yRadius=p,this._startAngle=u(m),this._endAngle=u(x),this._clockwise=S,this._rotation=u(P)},getStartPoint:function(d){return d===void 0&&(d=new n),this.getPoint(0,d)},getResolution:function(d){return d*2},getPoint:function(d,s){s===void 0&&(s=new n);for(var h=Math.PI*2,c=this._endAngle-this._startAngle,p=Math.abs(c)h;)c-=h;c{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(38517),u=t(80222),o=t(74118),a=t(93736),n=new l({Extends:g,initialize:function(d,s){g.call(this,"LineCurve"),Array.isArray(d)&&(s=new a(d[2],d[3]),d=new a(d[0],d[1])),this.p0=d,this.p1=s,this.arcLengthDivisions=1},getBounds:function(r){return r===void 0&&(r=new o),u([this.p0,this.p1],r)},getStartPoint:function(r){return r===void 0&&(r=new a),r.copy(this.p0)},getResolution:function(r){return r===void 0&&(r=1),r},getPoint:function(r,d){return d===void 0&&(d=new a),r===1?d.copy(this.p1):(d.copy(this.p1).subtract(this.p0).scale(r).add(this.p0),d)},getPointAt:function(r,d){return this.getPoint(r,d)},getTangent:function(r,d){return d===void 0&&(d=new a),d.copy(this.p1).subtract(this.p0).normalize(),d},getUtoTmapping:function(r,d,s){var h;if(d){var c=this.getLengths(s),p=c[c.length-1],m=Math.min(d,p);h=m/p}else h=r;return h},draw:function(r){return r.lineBetween(this.p0.x,this.p0.y,this.p1.x,this.p1.y),r},toJSON:function(){return{type:this.type,points:[this.p0.x,this.p0.y,this.p1.x,this.p1.y]}}});n.fromJSON=function(r){var d=r.points,s=new a(d[0],d[1]),h=new a(d[2],d[3]);return new n(s,h)},f.exports=n},64761:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(38517),u=t(16252),o=t(93736),a=new l({Extends:g,initialize:function(r,d,s){g.call(this,"QuadraticBezierCurve"),Array.isArray(r)&&(s=new o(r[4],r[5]),d=new o(r[2],r[3]),r=new o(r[0],r[1])),this.p0=r,this.p1=d,this.p2=s},getStartPoint:function(n){return n===void 0&&(n=new o),n.copy(this.p0)},getResolution:function(n){return n},getPoint:function(n,r){r===void 0&&(r=new o);var d=this.p0,s=this.p1,h=this.p2;return r.set(u(n,d.x,s.x,h.x),u(n,d.y,s.y,h.y))},draw:function(n,r){r===void 0&&(r=32);var d=this.getPoints(r);n.beginPath(),n.moveTo(this.p0.x,this.p0.y);for(var s=1;s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(14976),g=t(56694),u=t(38517),o=t(93736),a=new g({Extends:u,initialize:function(r){r===void 0&&(r=[]),u.call(this,"SplineCurve"),this.points=[],this.addPoints(r)},addPoints:function(n){for(var r=0;rd.length-2?d.length-1:h+1],S=d[h>d.length-3?d.length-1:h+2];return r.set(l(c,p.x,m.x,x.x,S.x),l(c,p.y,m.y,x.y,S.y))},toJSON:function(){for(var n=[],r=0;r{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Path:t(12822),MoveTo:t(53639),CubicBezier:t(63120),Curve:t(38517),Ellipse:t(48835),Line:t(58084),QuadraticBezier:t(64761),Spline:t(11956)}},53639:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(93736),u=new l({initialize:function(a,n){this.active=!1,this.p0=new g(a,n)},getPoint:function(o,a){return a===void 0&&(a=new g),a.copy(this.p0)},getPointAt:function(o,a){return this.getPoint(o,a)},getResolution:function(){return 1},getLength:function(){return 0},toJSON:function(){return{type:"MoveTo",points:[this.p0.x,this.p0.y]}}});f.exports=u},12822:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(63120),u=t(48835),o=t(61286),a=t(58084),n=t(53639),r=t(64761),d=t(74118),s=t(11956),h=t(93736),c=t(83392),p=new l({initialize:function(x,S){x===void 0&&(x=0),S===void 0&&(S=0),this.name="",this.curves=[],this.cacheLengths=[],this.autoClose=!1,this.startPoint=new h,this._tmpVec2A=new h,this._tmpVec2B=new h,typeof x=="object"?this.fromJSON(x):this.startPoint.set(x,S)},add:function(m){return this.curves.push(m),this},circleTo:function(m,x,S){return x===void 0&&(x=!1),this.ellipseTo(m,m,0,360,x,S)},closePath:function(){var m=this.curves[0].getPoint(0),x=this.curves[this.curves.length-1].getPoint(1);return m.equals(x)||this.curves.push(new a(x,m)),this},cubicBezierTo:function(m,x,S,P,E,R){var M=this.getEndPoint(),O,w,L;return m instanceof h?(O=m,w=x,L=S):(O=new h(S,P),w=new h(E,R),L=new h(m,x)),this.add(new g(M,O,w,L))},quadraticBezierTo:function(m,x,S,P){var E=this.getEndPoint(),R,M;return m instanceof h?(R=m,M=x):(R=new h(S,P),M=new h(m,x)),this.add(new r(E,R,M))},draw:function(m,x){for(var S=0;S=x)return this.curves[P];P++}return null},getEndPoint:function(m){return m===void 0&&(m=new h),this.curves.length>0?this.curves[this.curves.length-1].getPoint(1,m):m.copy(this.startPoint),m},getLength:function(){var m=this.getCurveLengths();return m[m.length-1]},getPoint:function(m,x){x===void 0&&(x=new h);for(var S=m*this.getLength(),P=this.getCurveLengths(),E=0;E=S){var R=P[E]-S,M=this.curves[E],O=M.getLength(),w=O===0?0:1-R/O;return M.getPointAt(w,x)}E++}return null},getPoints:function(m){m===void 0&&(m=12);for(var x=[],S,P=0;P1&&!x[x.length-1].equals(x[0])&&x.push(x[0]),x},getRandomPoint:function(m){return m===void 0&&(m=new h),this.getPoint(Math.random(),m)},getSpacedPoints:function(m){m===void 0&&(m=40);for(var x=[],S=0;S<=m;S++)x.push(this.getPoint(S/m));return this.autoClose&&x.push(x[0]),x},getStartPoint:function(m){return m===void 0&&(m=new h),m.copy(this.startPoint)},getTangent:function(m,x){x===void 0&&(x=new h);for(var S=m*this.getLength(),P=this.getCurveLengths(),E=0;E=S){var R=P[E]-S,M=this.curves[E],O=M.getLength(),w=O===0?0:1-R/O;return M.getTangentAt(w,x)}E++}return null},lineTo:function(m,x){m instanceof h?this._tmpVec2B.copy(m):this._tmpVec2B.set(m,x);var S=this.getEndPoint(this._tmpVec2A);return this.add(new a([S.x,S.y,this._tmpVec2B.x,this._tmpVec2B.y]))},splineTo:function(m){return m.unshift(this.getEndPoint()),this.add(new s(m))},moveTo:function(m,x){return m instanceof h?this.add(new n(m.x,m.y)):this.add(new n(m,x))},toJSON:function(){for(var m=[],x=0;x{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(35026),u=new l({initialize:function(a,n){this.parent=a,this.events=n,n||(this.events=a.events?a.events:a),this.list={},this.values={},this._frozen=!1,!a.hasOwnProperty("sys")&&this.events&&this.events.once(g.DESTROY,this.destroy,this)},get:function(o){var a=this.list;if(Array.isArray(o)){for(var n=[],r=0;r{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(81078),u=t(91963),o=t(7599),a=new l({Extends:g,initialize:function(r){g.call(this,r,r.sys.events),this.scene=r,this.systems=r.sys,r.sys.events.once(o.BOOT,this.boot,this),r.sys.events.on(o.START,this.start,this)},boot:function(){this.events=this.systems.events,this.events.once(o.DESTROY,this.destroy,this)},start:function(){this.events.once(o.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.systems.events.off(o.SHUTDOWN,this.shutdown,this)},destroy:function(){g.prototype.destroy.call(this),this.events.off(o.START,this.start,this),this.scene=null,this.systems=null}});u.register("DataManagerPlugin",a,"data"),f.exports=a},73569:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="changedata"},15590:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="changedata-"},37669:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="destroy"},87090:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="removedata"},90142:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="setdata"},35026:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={CHANGE_DATA:t(73569),CHANGE_DATA_KEY:t(15590),DESTROY:t(37669),REMOVE_DATA:t(87090),SET_DATA:t(90142)}},1999:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={DataManager:t(81078),DataManagerPlugin:t(76508),Events:t(35026)}},10720:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(1350),g={flac:!1,aac:!1,audioData:!1,dolby:!1,m4a:!1,mp3:!1,ogg:!1,opus:!1,wav:!1,webAudio:!1,webm:!1};function u(){if(typeof importScripts=="function")return g;g.audioData=!!window.Audio,g.webAudio=!!(window.AudioContext||window.webkitAudioContext);var o=document.createElement("audio"),a=!!o.canPlayType;try{if(a){var n=function(s,h){var c=o.canPlayType("audio/"+s).replace(/^no$/,"");return h?!!(c||o.canPlayType("audio/"+h).replace(/^no$/,"")):!!c};if(g.ogg=n('ogg; codecs="vorbis"'),g.opus=n('ogg; codecs="opus"',"opus"),g.mp3=n("mpeg"),g.wav=n("wav"),g.m4a=n("x-m4a"),g.aac=n("aac"),g.flac=n("flac","x-flac"),g.webm=n('webm; codecs="vorbis"'),o.canPlayType('audio/mp4; codecs="ec-3"')!==""){if(l.edge)g.dolby=!0;else if(l.safari&&l.safariVersion>=9&&/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent)){var r=parseInt(RegExp.$1,10),d=parseInt(RegExp.$2,10);(r===10&&d>=11||r>10)&&(g.dolby=!0)}}}}catch{}return g}f.exports=u()},1350:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(36580),g={chrome:!1,chromeVersion:0,edge:!1,firefox:!1,firefoxVersion:0,ie:!1,ieVersion:0,mobileSafari:!1,opera:!1,safari:!1,safariVersion:0,silk:!1,trident:!1,tridentVersion:0,es2019:!1};function u(){var o=navigator.userAgent;return/Edg\/\d+/.test(o)?(g.edge=!0,g.es2019=!0):/OPR/.test(o)?(g.opera=!0,g.es2019=!0):/Chrome\/(\d+)/.test(o)&&!l.windowsPhone?(g.chrome=!0,g.chromeVersion=parseInt(RegExp.$1,10),g.es2019=g.chromeVersion>69):/Firefox\D+(\d+)/.test(o)?(g.firefox=!0,g.firefoxVersion=parseInt(RegExp.$1,10),g.es2019=g.firefoxVersion>10):/AppleWebKit/.test(o)&&l.iOS?g.mobileSafari=!0:/MSIE (\d+\.\d+);/.test(o)?(g.ie=!0,g.ieVersion=parseInt(RegExp.$1,10)):/Version\/(\d+\.\d+) Safari/.test(o)&&!l.windowsPhone?(g.safari=!0,g.safariVersion=parseInt(RegExp.$1,10),g.es2019=g.safariVersion>10):/Trident\/(\d+\.\d+)(.*)rv:(\d+\.\d+)/.test(o)&&(g.ie=!0,g.trident=!0,g.tridentVersion=parseInt(RegExp.$1,10),g.ieVersion=parseInt(RegExp.$3,10)),/Silk/.test(o)&&(g.silk=!0),g}f.exports=u()},98581:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(61068),g={supportInverseAlpha:!1,supportNewBlendModes:!1};function u(){var n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/",r="AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",d=new Image;return d.onload=function(){var s=new Image;s.onload=function(){var h=l.create2D(s,6),c=h.getContext("2d",{willReadFrequently:!0});if(c.globalCompositeOperation="multiply",c.drawImage(d,0,0),c.drawImage(s,2,0),!c.getImageData(2,0,1,1))return!1;var p=c.getImageData(2,0,1,1).data;l.remove(s),g.supportNewBlendModes=p[0]===255&&p[1]===0&&p[2]===0},s.src=n+"/wCKxvRF"+r},d.src=n+"AP804Oa6"+r,!1}function o(){var n=l.create2D(this,2),r=n.getContext("2d",{willReadFrequently:!0});r.fillStyle="rgba(10, 20, 30, 0.5)",r.fillRect(0,0,1,1);var d=r.getImageData(0,0,1,1);if(d===null)return!1;r.putImageData(d,1,0);var s=r.getImageData(1,0,1,1),h=s.data[0]===d.data[0]&&s.data[1]===d.data[1]&&s.data[2]===d.data[2]&&s.data[3]===d.data[3];return l.remove(this),h}function a(){return typeof importScripts!="function"&&document!==void 0&&(g.supportNewBlendModes=u(),g.supportInverseAlpha=o()),g}f.exports=a()},90185:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(36580),g=t(1350),u=t(61068),o={canvas:!1,canvasBitBltShift:null,file:!1,fileSystem:!1,getUserMedia:!0,littleEndian:!1,localStorage:!1,pointerLock:!1,stableSort:!1,support32bit:!1,vibration:!1,webGL:!1,worker:!1};function a(){var r=new ArrayBuffer(4),d=new Uint8Array(r),s=new Uint32Array(r);return d[0]=161,d[1]=178,d[2]=195,d[3]=212,s[0]===3569595041?!0:s[0]===2712847316?!1:null}function n(){if(typeof importScripts=="function")return o;o.canvas=!!window.CanvasRenderingContext2D;try{o.localStorage=!!localStorage.getItem}catch{o.localStorage=!1}o.file=!!window.File&&!!window.FileReader&&!!window.FileList&&!!window.Blob,o.fileSystem=!!window.requestFileSystem;var r=!1,d=function(){if(window.WebGLRenderingContext)try{var s=u.createWebGL(this),h=s.getContext("webgl")||s.getContext("experimental-webgl"),c=u.create2D(this),p=c.getContext("2d",{willReadFrequently:!0}),m=p.createImageData(1,1);return r=m.data instanceof Uint8ClampedArray,u.remove(s),u.remove(c),!!h}catch{return!1}return!1};return o.webGL=d(),o.worker=!!window.Worker,o.pointerLock="pointerLockElement"in document||"mozPointerLockElement"in document||"webkitPointerLockElement"in document,navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia||navigator.oGetUserMedia,window.URL=window.URL||window.webkitURL||window.mozURL||window.msURL,o.getUserMedia=o.getUserMedia&&!!navigator.getUserMedia&&!!window.URL,g.firefox&&g.firefoxVersion<21&&(o.getUserMedia=!1),!l.iOS&&(g.ie||g.firefox||g.chrome)&&(o.canvasBitBltShift=!0),(g.safari||g.mobileSafari)&&(o.canvasBitBltShift=!1),navigator.vibrate=navigator.vibrate||navigator.webkitVibrate||navigator.mozVibrate||navigator.msVibrate,navigator.vibrate&&(o.vibration=!0),typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint32Array<"u"&&(o.littleEndian=a()),o.support32bit=typeof ArrayBuffer<"u"&&typeof Uint8ClampedArray<"u"&&typeof Int32Array<"u"&&o.littleEndian!==null&&r,o}f.exports=n()},33553:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={available:!1,cancel:"",keyboard:!1,request:""};function t(){if(typeof importScripts=="function")return T;var l,g="Fullscreen",u="FullScreen",o=["request"+g,"request"+u,"webkitRequest"+g,"webkitRequest"+u,"msRequest"+g,"msRequest"+u,"mozRequest"+u,"mozRequest"+g];for(l=0;l{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(1350),g={gamepads:!1,mspointer:!1,touch:!1,wheelEvent:null};function u(){return typeof importScripts=="function"||(("ontouchstart"in document.documentElement||navigator.maxTouchPoints&&navigator.maxTouchPoints>=1)&&(g.touch=!0),(navigator.msPointerEnabled||navigator.pointerEnabled)&&(g.mspointer=!0),navigator.getGamepads&&(g.gamepads=!0),"onwheel"in window||l.ie&&"WheelEvent"in window?g.wheelEvent="wheel":"onmousewheel"in window?g.wheelEvent="mousewheel":l.firefox&&"MouseScrollEvent"in window&&(g.wheelEvent="DOMMouseScroll")),g}f.exports=u()},36580:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={android:!1,chromeOS:!1,cordova:!1,crosswalk:!1,desktop:!1,ejecta:!1,electron:!1,iOS:!1,iOSVersion:0,iPad:!1,iPhone:!1,kindle:!1,linux:!1,macOS:!1,node:!1,nodeWebkit:!1,pixelRatio:1,webApp:!1,windows:!1,windowsPhone:!1};function t(){if(typeof importScripts=="function")return T;var l=navigator.userAgent;/Windows/.test(l)?T.windows=!0:/Mac OS/.test(l)&&!/like Mac OS/.test(l)?navigator.maxTouchPoints&&navigator.maxTouchPoints>2?(T.iOS=!0,T.iPad=!0,navigator.appVersion.match(/Version\/(\d+)/),T.iOSVersion=parseInt(RegExp.$1,10)):T.macOS=!0:/Android/.test(l)?T.android=!0:/Linux/.test(l)?T.linux=!0:/iP[ao]d|iPhone/i.test(l)?(T.iOS=!0,navigator.appVersion.match(/OS (\d+)/),T.iOSVersion=parseInt(RegExp.$1,10),T.iPhone=l.toLowerCase().indexOf("iphone")!==-1,T.iPad=l.toLowerCase().indexOf("ipad")!==-1):/Kindle/.test(l)||/\bKF[A-Z][A-Z]+/.test(l)||/Silk.*Mobile Safari/.test(l)?T.kindle=!0:/CrOS/.test(l)&&(T.chromeOS=!0),(/Windows Phone/i.test(l)||/IEMobile/i.test(l))&&(T.android=!1,T.iOS=!1,T.macOS=!1,T.windows=!0,T.windowsPhone=!0);var g=/Silk/.test(l);return(T.windows||T.macOS||T.linux&&!g||T.chromeOS)&&(T.desktop=!0),(T.windowsPhone||/Windows NT/i.test(l)&&/Touch/i.test(l))&&(T.desktop=!1),navigator.standalone&&(T.webApp=!0),typeof importScripts!="function"&&(window.cordova!==void 0&&(T.cordova=!0),window.ejecta!==void 0&&(T.ejecta=!0)),typeof process<"u"&&process.versions&&process.versions.node&&(T.node=!0),T.node&&typeof process.versions=="object"&&(T.nodeWebkit=!!process.versions["node-webkit"],T.electron=!!process.versions.electron),/Crosswalk/.test(l)&&(T.crosswalk=!0),T.pixelRatio=window.devicePixelRatio||1,T}f.exports=t()},53861:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72632),g={h264:!1,hls:!1,mp4:!1,m4v:!1,ogg:!1,vp9:!1,webm:!1,hasRequestVideoFrame:!1};function u(){if(typeof importScripts=="function")return g;var o=document.createElement("video"),a=!!o.canPlayType,n=/^no$/;try{a&&(o.canPlayType('video/ogg; codecs="theora"').replace(n,"")&&(g.ogg=!0),o.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(n,"")&&(g.h264=!0,g.mp4=!0),o.canPlayType("video/x-m4v").replace(n,"")&&(g.m4v=!0),o.canPlayType('video/webm; codecs="vp8, vorbis"').replace(n,"")&&(g.webm=!0),o.canPlayType('video/webm; codecs="vp9"').replace(n,"")&&(g.vp9=!0),o.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(n,"")&&(g.hls=!0))}catch{}return o.parentNode&&o.parentNode.removeChild(o),g.getVideoURL=function(r){Array.isArray(r)||(r=[r]);for(var d=0;d{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={os:t(36580),browser:t(1350),features:t(90185),input:t(95872),audio:t(10720),video:t(53861),fullscreen:t(33553),canvasFeatures:t(98581)}},65246:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=new Float32Array(20),u=new l({initialize:function(){this._matrix=new Float32Array(20),this.alpha=1,this._dirty=!0,this._data=new Float32Array(20),this.reset()},set:function(o){return this._matrix.set(o),this._dirty=!0,this},reset:function(){var o=this._matrix;return o.fill(0),o[0]=1,o[6]=1,o[12]=1,o[18]=1,this.alpha=1,this._dirty=!0,this},getData:function(){var o=this._data;return this._dirty&&(o.set(this._matrix),o[4]/=255,o[9]/=255,o[14]/=255,o[19]/=255,this._dirty=!1),o},brightness:function(o,a){o===void 0&&(o=0),a===void 0&&(a=!1);var n=o;return this.multiply([n,0,0,0,0,0,n,0,0,0,0,0,n,0,0,0,0,0,1,0],a)},saturate:function(o,a){o===void 0&&(o=0),a===void 0&&(a=!1);var n=o*2/3+1,r=(n-1)*-.5;return this.multiply([n,r,r,0,0,r,n,r,0,0,r,r,n,0,0,0,0,0,1,0],a)},desaturate:function(o){return o===void 0&&(o=!1),this.saturate(-1,o)},hue:function(o,a){o===void 0&&(o=0),a===void 0&&(a=!1),o=o/180*Math.PI;var n=Math.cos(o),r=Math.sin(o),d=.213,s=.715,h=.072;return this.multiply([d+n*(1-d)+r*-d,s+n*-s+r*-s,h+n*-h+r*(1-h),0,0,d+n*-d+r*.143,s+n*(1-s)+r*.14,h+n*-h+r*-.283,0,0,d+n*-d+r*-(1-d),s+n*-s+r*s,h+n*(1-h)+r*h,0,0,0,0,0,1,0],a)},grayscale:function(o,a){return o===void 0&&(o=1),a===void 0&&(a=!1),this.saturate(-o,a)},blackWhite:function(o){return o===void 0&&(o=!1),this.multiply(u.BLACK_WHITE,o)},contrast:function(o,a){o===void 0&&(o=0),a===void 0&&(a=!1);var n=o+1,r=-.5*(n-1);return this.multiply([n,0,0,0,r,0,n,0,0,r,0,0,n,0,r,0,0,0,1,0],a)},negative:function(o){return o===void 0&&(o=!1),this.multiply(u.NEGATIVE,o)},desaturateLuminance:function(o){return o===void 0&&(o=!1),this.multiply(u.DESATURATE_LUMINANCE,o)},sepia:function(o){return o===void 0&&(o=!1),this.multiply(u.SEPIA,o)},night:function(o,a){return o===void 0&&(o=.1),a===void 0&&(a=!1),this.multiply([o*-2,-o,0,0,0,-o,0,o,0,0,0,o,o*2,0,0,0,0,0,1,0],a)},lsd:function(o){return o===void 0&&(o=!1),this.multiply(u.LSD,o)},brown:function(o){return o===void 0&&(o=!1),this.multiply(u.BROWN,o)},vintagePinhole:function(o){return o===void 0&&(o=!1),this.multiply(u.VINTAGE,o)},kodachrome:function(o){return o===void 0&&(o=!1),this.multiply(u.KODACHROME,o)},technicolor:function(o){return o===void 0&&(o=!1),this.multiply(u.TECHNICOLOR,o)},polaroid:function(o){return o===void 0&&(o=!1),this.multiply(u.POLAROID,o)},shiftToBGR:function(o){return o===void 0&&(o=!1),this.multiply(u.SHIFT_BGR,o)},multiply:function(o,a){a===void 0&&(a=!1),a||this.reset();var n=this._matrix,r=g;return r.set(n),n.set([r[0]*o[0]+r[1]*o[5]+r[2]*o[10]+r[3]*o[15],r[0]*o[1]+r[1]*o[6]+r[2]*o[11]+r[3]*o[16],r[0]*o[2]+r[1]*o[7]+r[2]*o[12]+r[3]*o[17],r[0]*o[3]+r[1]*o[8]+r[2]*o[13]+r[3]*o[18],r[0]*o[4]+r[1]*o[9]+r[2]*o[14]+r[3]*o[19]+r[4],r[5]*o[0]+r[6]*o[5]+r[7]*o[10]+r[8]*o[15],r[5]*o[1]+r[6]*o[6]+r[7]*o[11]+r[8]*o[16],r[5]*o[2]+r[6]*o[7]+r[7]*o[12]+r[8]*o[17],r[5]*o[3]+r[6]*o[8]+r[7]*o[13]+r[8]*o[18],r[5]*o[4]+r[6]*o[9]+r[7]*o[14]+r[8]*o[19]+r[9],r[10]*o[0]+r[11]*o[5]+r[12]*o[10]+r[13]*o[15],r[10]*o[1]+r[11]*o[6]+r[12]*o[11]+r[13]*o[16],r[10]*o[2]+r[11]*o[7]+r[12]*o[12]+r[13]*o[17],r[10]*o[3]+r[11]*o[8]+r[12]*o[13]+r[13]*o[18],r[10]*o[4]+r[11]*o[9]+r[12]*o[14]+r[13]*o[19]+r[14],r[15]*o[0]+r[16]*o[5]+r[17]*o[10]+r[18]*o[15],r[15]*o[1]+r[16]*o[6]+r[17]*o[11]+r[18]*o[16],r[15]*o[2]+r[16]*o[7]+r[17]*o[12]+r[18]*o[17],r[15]*o[3]+r[16]*o[8]+r[17]*o[13]+r[18]*o[18],r[15]*o[4]+r[16]*o[9]+r[17]*o[14]+r[18]*o[19]+r[19]]),this._dirty=!0,this}});u.BLACK_WHITE=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0],u.NEGATIVE=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0],u.DESATURATE_LUMINANCE=[.2764723,.929708,.0938197,0,-37.1,.2764723,.929708,.0938197,0,-37.1,.2764723,.929708,.0938197,0,-37.1,0,0,0,1,0],u.SEPIA=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0],u.LSD=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],u.BROWN=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0],u.VINTAGE=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0],u.KODACHROME=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0],u.TECHNICOLOR=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0],u.POLAROID=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],u.SHIFT_BGR=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],f.exports=u},39298:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(72283),u=new l({initialize:function(a,n,r){this._rgb=[0,0,0],this.onChangeCallback=g,this.dirty=!1,this.set(a,n,r)},set:function(o,a,n){return o===void 0&&(o=0),a===void 0&&(a=0),n===void 0&&(n=0),this._rgb=[o,a,n],this.onChange(),this},equals:function(o,a,n){var r=this._rgb;return r[0]===o&&r[1]===a&&r[2]===n},onChange:function(){this.dirty=!0;var o=this._rgb;this.onChangeCallback.call(this,o[0],o[1],o[2])},r:{get:function(){return this._rgb[0]},set:function(o){this._rgb[0]=o,this.onChange()}},g:{get:function(){return this._rgb[1]},set:function(o){this._rgb[1]=o,this.onChange()}},b:{get:function(){return this._rgb[2]},set:function(o){this._rgb[2]=o,this.onChange()}},destroy:function(){this.onChangeCallback=null}});f.exports=u},84093:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={TOP_LEFT:0,TOP_CENTER:1,TOP_RIGHT:2,LEFT_TOP:3,LEFT_CENTER:4,LEFT_BOTTOM:5,CENTER:6,RIGHT_TOP:7,RIGHT_CENTER:8,RIGHT_BOTTOM:9,BOTTOM_LEFT:10,BOTTOM_CENTER:11,BOTTOM_RIGHT:12};f.exports=T},32058:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(97328),g=t(59994),u=t(73174),o=t(28417),a=function(n,r,d,s){return d===void 0&&(d=0),s===void 0&&(s=0),o(n,g(r)+d),u(n,l(r)+s),n};f.exports=a},85535:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(97328),g=t(40163),u=t(73174),o=t(74465),a=function(n,r,d,s){return d===void 0&&(d=0),s===void 0&&(s=0),o(n,g(r)-d),u(n,l(r)+s),n};f.exports=a},9605:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(97328),g=t(70271),u=t(73174),o=t(19298),a=function(n,r,d,s){return d===void 0&&(d=0),s===void 0&&(s=0),o(n,g(r)+d),u(n,l(r)+s),n};f.exports=a},22529:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(21843),g=t(59994),u=t(29568),o=function(a,n,r,d){return r===void 0&&(r=0),d===void 0&&(d=0),l(a,g(n)+r,u(n)+d),a};f.exports=o},5739:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(29568),g=t(40163),u=t(81711),o=t(74465),a=function(n,r,d,s){return d===void 0&&(d=0),s===void 0&&(s=0),o(n,g(r)-d),u(n,l(r)+s),n};f.exports=a},40327:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(84093),g=[];g[l.BOTTOM_CENTER]=t(32058),g[l.BOTTOM_LEFT]=t(85535),g[l.BOTTOM_RIGHT]=t(9605),g[l.CENTER]=t(22529),g[l.LEFT_CENTER]=t(5739),g[l.RIGHT_CENTER]=t(27683),g[l.TOP_CENTER]=t(96439),g[l.TOP_LEFT]=t(81447),g[l.TOP_RIGHT]=t(47888),g[l.LEFT_BOTTOM]=g[l.BOTTOM_LEFT],g[l.LEFT_TOP]=g[l.TOP_LEFT],g[l.RIGHT_BOTTOM]=g[l.BOTTOM_RIGHT],g[l.RIGHT_TOP]=g[l.TOP_RIGHT];var u=function(o,a,n,r,d){return g[n](o,a,r,d)};f.exports=u},27683:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(29568),g=t(70271),u=t(81711),o=t(19298),a=function(n,r,d,s){return d===void 0&&(d=0),s===void 0&&(s=0),o(n,g(r)+d),u(n,l(r)+s),n};f.exports=a},96439:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(59994),g=t(47196),u=t(28417),o=t(84349),a=function(n,r,d,s){return d===void 0&&(d=0),s===void 0&&(s=0),u(n,l(r)+d),o(n,g(r)-s),n};f.exports=a},81447:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(40163),g=t(47196),u=t(74465),o=t(84349),a=function(n,r,d,s){return d===void 0&&(d=0),s===void 0&&(s=0),u(n,l(r)-d),o(n,g(r)-s),n};f.exports=a},47888:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(70271),g=t(47196),u=t(19298),o=t(84349),a=function(n,r,d,s){return d===void 0&&(d=0),s===void 0&&(s=0),u(n,l(r)+d),o(n,g(r)-s),n};f.exports=a},46997:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={BottomCenter:t(32058),BottomLeft:t(85535),BottomRight:t(9605),Center:t(22529),LeftCenter:t(5739),QuickSet:t(40327),RightCenter:t(27683),TopCenter:t(96439),TopLeft:t(81447),TopRight:t(47888)}},93545:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(84093),g=t(98611),u={In:t(46997),To:t(86639)};u=g(!1,u,l),f.exports=u},27118:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(97328),g=t(59994),u=t(28417),o=t(84349),a=function(n,r,d,s){return d===void 0&&(d=0),s===void 0&&(s=0),u(n,g(r)+d),o(n,l(r)+s),n};f.exports=a},84469:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(97328),g=t(40163),u=t(74465),o=t(84349),a=function(n,r,d,s){return d===void 0&&(d=0),s===void 0&&(s=0),u(n,g(r)-d),o(n,l(r)+s),n};f.exports=a},51577:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(97328),g=t(70271),u=t(19298),o=t(84349),a=function(n,r,d,s){return d===void 0&&(d=0),s===void 0&&(s=0),u(n,g(r)+d),o(n,l(r)+s),n};f.exports=a},90271:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(97328),g=t(40163),u=t(73174),o=t(19298),a=function(n,r,d,s){return d===void 0&&(d=0),s===void 0&&(s=0),o(n,g(r)-d),u(n,l(r)+s),n};f.exports=a},30466:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(29568),g=t(40163),u=t(81711),o=t(19298),a=function(n,r,d,s){return d===void 0&&(d=0),s===void 0&&(s=0),o(n,g(r)-d),u(n,l(r)+s),n};f.exports=a},50087:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(40163),g=t(47196),u=t(19298),o=t(84349),a=function(n,r,d,s){return d===void 0&&(d=0),s===void 0&&(s=0),u(n,l(r)-d),o(n,g(r)-s),n};f.exports=a},82590:(f,T,t)=>{/** + * @author samme + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(84093),g=[];g[l.BOTTOM_CENTER]=t(27118),g[l.BOTTOM_LEFT]=t(84469),g[l.BOTTOM_RIGHT]=t(51577),g[l.LEFT_BOTTOM]=t(90271),g[l.LEFT_CENTER]=t(30466),g[l.LEFT_TOP]=t(50087),g[l.RIGHT_BOTTOM]=t(13555),g[l.RIGHT_CENTER]=t(99049),g[l.RIGHT_TOP]=t(67788),g[l.TOP_CENTER]=t(78170),g[l.TOP_LEFT]=t(54145),g[l.TOP_RIGHT]=t(75548);var u=function(o,a,n,r,d){return g[n](o,a,r,d)};f.exports=u},13555:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(97328),g=t(70271),u=t(73174),o=t(74465),a=function(n,r,d,s){return d===void 0&&(d=0),s===void 0&&(s=0),o(n,g(r)+d),u(n,l(r)+s),n};f.exports=a},99049:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(29568),g=t(70271),u=t(81711),o=t(74465),a=function(n,r,d,s){return d===void 0&&(d=0),s===void 0&&(s=0),o(n,g(r)+d),u(n,l(r)+s),n};f.exports=a},67788:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(70271),g=t(47196),u=t(74465),o=t(84349),a=function(n,r,d,s){return d===void 0&&(d=0),s===void 0&&(s=0),u(n,l(r)+d),o(n,g(r)-s),n};f.exports=a},78170:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(59994),g=t(47196),u=t(73174),o=t(28417),a=function(n,r,d,s){return d===void 0&&(d=0),s===void 0&&(s=0),o(n,l(r)+d),u(n,g(r)-s),n};f.exports=a},54145:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(40163),g=t(47196),u=t(73174),o=t(74465),a=function(n,r,d,s){return d===void 0&&(d=0),s===void 0&&(s=0),o(n,l(r)-d),u(n,g(r)-s),n};f.exports=a},75548:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(70271),g=t(47196),u=t(73174),o=t(19298),a=function(n,r,d,s){return d===void 0&&(d=0),s===void 0&&(s=0),o(n,l(r)+d),u(n,g(r)-s),n};f.exports=a},86639:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={BottomCenter:t(27118),BottomLeft:t(84469),BottomRight:t(51577),LeftBottom:t(90271),LeftCenter:t(30466),LeftTop:t(50087),QuickSet:t(82590),RightBottom:t(13555),RightCenter:t(99049),RightTop:t(67788),TopCenter:t(78170),TopLeft:t(54145),TopRight:t(75548)}},21843:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(28417),g=t(81711),u=function(o,a,n){return l(o,a),g(o,n)};f.exports=u},97328:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t.y+t.height-t.height*t.originY};f.exports=T},7126:(f,T,t)=>{/** + * @author samme + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(97328),g=t(40163),u=t(70271),o=t(47196),a=t(74118),n=function(r,d){d===void 0&&(d=new a);var s=g(r),h=o(r);return d.x=s,d.y=h,d.width=u(r)-s,d.height=l(r)-h,d};f.exports=n},59994:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t.x-t.width*t.originX+t.width*.5};f.exports=T},29568:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t.y-t.height*t.originY+t.height*.5};f.exports=T},40163:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t.x-t.width*t.originX};f.exports=T},52088:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t.width*t.originX};f.exports=T},23379:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t.height*t.originY};f.exports=T},70271:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t.x+t.width-t.width*t.originX};f.exports=T},47196:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t.y-t.height*t.originY};f.exports=T},73174:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return t.y=l-t.height+t.height*t.originY,t};f.exports=T},28417:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){var g=t.width*t.originX;return t.x=l+g-t.width*.5,t};f.exports=T},81711:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){var g=t.height*t.originY;return t.y=l+g-t.height*.5,t};f.exports=T},74465:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return t.x=l+t.width*t.originX,t};f.exports=T},19298:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return t.x=l-t.width+t.width*t.originX,t};f.exports=T},84349:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return t.y=l+t.height*t.originY,t};f.exports=T},15252:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={CenterOn:t(21843),GetBottom:t(97328),GetBounds:t(7126),GetCenterX:t(59994),GetCenterY:t(29568),GetLeft:t(40163),GetOffsetX:t(52088),GetOffsetY:t(23379),GetRight:t(70271),GetTop:t(47196),SetBottom:t(73174),SetCenterX:t(28417),SetCenterY:t(81711),SetLeft:t(74465),SetRight:t(19298),SetTop:t(84349)}},70616:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={setCrisp:function(t){var l=["optimizeSpeed","-moz-crisp-edges","-o-crisp-edges","-webkit-optimize-contrast","optimize-contrast","crisp-edges","pixelated"];return l.forEach(function(g){t.style["image-rendering"]=g}),t.style.msInterpolationMode="nearest-neighbor",t},setBicubic:function(t){return t.style["image-rendering"]="auto",t.style.msInterpolationMode="bicubic",t}};f.exports=T},61068:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(86459),g=t(8213),u=[],o=!1,a=function(){var n=function(S,P,E,R,M){P===void 0&&(P=1),E===void 0&&(E=1),R===void 0&&(R=l.CANVAS),M===void 0&&(M=!1);var O,w=s(R);return w===null?(w={parent:S,canvas:document.createElement("canvas"),type:R},R===l.CANVAS&&u.push(w),O=w.canvas):(w.parent=S,O=w.canvas),M&&(w.parent=O),O.width=P,O.height=E,o&&R===l.CANVAS&&g.disable(O.getContext("2d",{willReadFrequently:!1})),O},r=function(S,P,E){return n(S,P,E,l.CANVAS)},d=function(S,P,E){return n(S,P,E,l.WEBGL)},s=function(S){if(S===void 0&&(S=l.CANVAS),S===l.WEBGL)return null;for(var P=0;P{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T="",t=function(){var l=function(a){for(var n=["i","webkitI","msI","mozI","oI"],r=0;r{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return l===void 0&&(l="none"),t.style.msTouchAction=l,t.style["ms-touch-action"]=l,t.style["touch-action"]=l,t};f.exports=T},36505:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){l===void 0&&(l="none");var g=["-webkit-","-khtml-","-moz-","-ms-",""];return g.forEach(function(u){t.style[u+"user-select"]=l}),t.style["-webkit-touch-callout"]=l,t.style["-webkit-tap-highlight-color"]="rgba(0, 0, 0, 0)",t};f.exports=T},23514:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={CanvasInterpolation:t(70616),CanvasPool:t(61068),Smoothing:t(8213),TouchAction:t(59271),UserSelect:t(36505)}},27119:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(22946),u=t(5657),o=t(24650),a=t(68033),n=new l({initialize:function(d,s,h,c){d===void 0&&(d=0),s===void 0&&(s=0),h===void 0&&(h=0),c===void 0&&(c=255),this.r=0,this.g=0,this.b=0,this.a=255,this._h=0,this._s=0,this._v=0,this._locked=!1,this.gl=[0,0,0,1],this._color=0,this._color32=0,this._rgba="",this.setTo(d,s,h,c)},transparent:function(){return this._locked=!0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this._locked=!1,this.update(!0)},setTo:function(r,d,s,h,c){return h===void 0&&(h=255),c===void 0&&(c=!0),this._locked=!0,this.red=r,this.green=d,this.blue=s,this.alpha=h,this._locked=!1,this.update(c)},setGLTo:function(r,d,s,h){return h===void 0&&(h=1),this._locked=!0,this.redGL=r,this.greenGL=d,this.blueGL=s,this.alphaGL=h,this._locked=!1,this.update(!0)},setFromRGB:function(r){return this._locked=!0,this.red=r.r,this.green=r.g,this.blue=r.b,r.hasOwnProperty("a")&&(this.alpha=r.a),this._locked=!1,this.update(!0)},setFromHSV:function(r,d,s){return o(r,d,s,this)},update:function(r){if(r===void 0&&(r=!1),this._locked)return this;var d=this.r,s=this.g,h=this.b,c=this.a;return this._color=g(d,s,h),this._color32=u(d,s,h,c),this._rgba="rgba("+d+","+s+","+h+","+c/255+")",r&&a(d,s,h,this),this},updateHSV:function(){var r=this.r,d=this.g,s=this.b;return a(r,d,s,this),this},clone:function(){return new n(this.r,this.g,this.b,this.a)},gray:function(r){return this.setTo(r,r,r)},random:function(r,d){r===void 0&&(r=0),d===void 0&&(d=255);var s=Math.floor(r+Math.random()*(d-r)),h=Math.floor(r+Math.random()*(d-r)),c=Math.floor(r+Math.random()*(d-r));return this.setTo(s,h,c)},randomGray:function(r,d){r===void 0&&(r=0),d===void 0&&(d=255);var s=Math.floor(r+Math.random()*(d-r));return this.setTo(s,s,s)},saturate:function(r){return this.s+=r/100,this},desaturate:function(r){return this.s-=r/100,this},lighten:function(r){return this.v+=r/100,this},darken:function(r){return this.v-=r/100,this},brighten:function(r){var d=this.r,s=this.g,h=this.b;return d=Math.max(0,Math.min(255,d-Math.round(255*-(r/100)))),s=Math.max(0,Math.min(255,s-Math.round(255*-(r/100)))),h=Math.max(0,Math.min(255,h-Math.round(255*-(r/100)))),this.setTo(d,s,h)},color:{get:function(){return this._color}},color32:{get:function(){return this._color32}},rgba:{get:function(){return this._rgba}},redGL:{get:function(){return this.gl[0]},set:function(r){this.gl[0]=Math.min(Math.abs(r),1),this.r=Math.floor(this.gl[0]*255),this.update(!0)}},greenGL:{get:function(){return this.gl[1]},set:function(r){this.gl[1]=Math.min(Math.abs(r),1),this.g=Math.floor(this.gl[1]*255),this.update(!0)}},blueGL:{get:function(){return this.gl[2]},set:function(r){this.gl[2]=Math.min(Math.abs(r),1),this.b=Math.floor(this.gl[2]*255),this.update(!0)}},alphaGL:{get:function(){return this.gl[3]},set:function(r){this.gl[3]=Math.min(Math.abs(r),1),this.a=Math.floor(this.gl[3]*255),this.update()}},red:{get:function(){return this.r},set:function(r){r=Math.floor(Math.abs(r)),this.r=Math.min(r,255),this.gl[0]=r/255,this.update(!0)}},green:{get:function(){return this.g},set:function(r){r=Math.floor(Math.abs(r)),this.g=Math.min(r,255),this.gl[1]=r/255,this.update(!0)}},blue:{get:function(){return this.b},set:function(r){r=Math.floor(Math.abs(r)),this.b=Math.min(r,255),this.gl[2]=r/255,this.update(!0)}},alpha:{get:function(){return this.a},set:function(r){r=Math.floor(Math.abs(r)),this.a=Math.min(r,255),this.gl[3]=r/255,this.update()}},h:{get:function(){return this._h},set:function(r){this._h=r,o(r,this._s,this._v,this)}},s:{get:function(){return this._s},set:function(r){this._s=r,o(this._h,r,this._v,this)}},v:{get:function(){return this._v},set:function(r){this._v=r,o(this._h,this._s,r,this)}}});f.exports=n},30245:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(22946),g=function(u){u===void 0&&(u=1024);var o=[],a=255,n,r=255,d=0,s=0;for(n=0;n<=a;n++)o.push({r,g:n,b:s,color:l(r,n,s)});for(d=255,n=a;n>=0;n--)o.push({r:n,g:d,b:s,color:l(n,d,s)});for(r=0,n=0;n<=a;n++,d--)o.push({r,g:d,b:n,color:l(r,d,n)});for(d=0,s=255,n=0;n<=a;n++,s--,r++)o.push({r,g:d,b:s,color:l(r,d,s)});if(u===1024)return o;var h=[],c=0,p=1024/u;for(n=0;n{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){var l={r:t>>16&255,g:t>>8&255,b:t&255,a:255};return t>16777215&&(l.a=t>>>24),l};f.exports=T},25409:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){var l=t.toString(16);return l.length===1?"0"+l:l};f.exports=T},22946:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){return t<<16|l<<8|g};f.exports=T},5657:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){return u<<24|t<<16|l<<8|g};f.exports=T},74777:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(27119),g=t(59998),u=function(o,a,n){var r=n,d=n,s=n;if(a!==0){var h=n<.5?n*(1+a):n+a-n*a,c=2*n-h;r=g(c,h,o+1/3),d=g(c,h,o),s=g(c,h,o-1/3)}var p=new l;return p.setGLTo(r,d,s,1)};f.exports=u},89263:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(24650),g=function(u,o){u===void 0&&(u=1),o===void 0&&(o=1);for(var a=[],n=0;n<=359;n++)a.push(l(n/359,u,o));return a};f.exports=g},24650:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(22946);function g(o,a,n,r){var d=(o+a*6)%6,s=Math.min(d,4-d,1);return Math.round(255*(r-r*n*Math.max(0,s)))}var u=function(o,a,n,r){a===void 0&&(a=1),n===void 0&&(n=1);var d=g(5,o,a,n),s=g(3,o,a,n),h=g(1,o,a,n);return r?r.setTo?r.setTo(d,s,h,r.alpha,!0):(r.r=d,r.g=s,r.b=h,r.color=l(d,s,h),r):{r:d,g:s,b:h,color:l(d,s,h)}};f.exports=u},91487:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(27119),g=function(u){var o=new l;u=u.replace(/^(?:#|0x)?([a-f\d])([a-f\d])([a-f\d])$/i,function(s,h,c,p){return h+h+c+c+p+p});var a=/^(?:#|0x)?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(u);if(a){var n=parseInt(a[1],16),r=parseInt(a[2],16),d=parseInt(a[3],16);o.setTo(n,r,d)}return o};f.exports=g},59998:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){return g<0&&(g+=1),g>1&&(g-=1),g<.16666666666666666?t+(l-t)*6*g:g<.5?l:g<.6666666666666666?t+(l-t)*(.6666666666666666-g)*6:t};f.exports=T},74853:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(27119),g=t(15978),u=function(o){var a=g(o);return new l(a.r,a.g,a.b,a.a)};f.exports=u},15978:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t>16777215?{a:t>>>24,r:t>>16&255,g:t>>8&255,b:t&255}:{a:255,r:t>>16&255,g:t>>8&255,b:t&255}};f.exports=T},53756:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(42798),g=function(a,n,r,d,s,h,c,p){c===void 0&&(c=100),p===void 0&&(p=0);var m=p/c;return{r:l(a,d,m),g:l(n,s,m),b:l(r,h,m)}},u=function(a,n,r,d){return r===void 0&&(r=100),d===void 0&&(d=0),g(a.r,a.g,a.b,n.r,n.g,n.b,r,d)},o=function(a,n,r,d,s,h){return s===void 0&&(s=100),h===void 0&&(h=0),g(a.r,a.g,a.b,n,r,d,s,h)};f.exports={RGBWithRGB:g,ColorWithRGB:o,ColorWithColor:u}},73904:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(27119),g=function(u){return new l(u.r,u.g,u.b,u.a)};f.exports=g},26841:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(27119),g=function(u){var o=new l,a=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+(?:\.\d+)?))?\s*\)$/.exec(u.toLowerCase());if(a){var n=parseInt(a[1],10),r=parseInt(a[2],10),d=parseInt(a[3],10),s=a[4]!==void 0?parseFloat(a[4]):1;o.setTo(n,r,d,s*255)}return o};f.exports=g},68033:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){u===void 0&&(u={h:0,s:0,v:0}),t/=255,l/=255,g/=255;var o=Math.min(t,l,g),a=Math.max(t,l,g),n=a-o,r=0,d=a===0?0:n/a,s=a;return a!==o&&(a===t?r=(l-g)/n+(l{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(25409),g=function(u,o,a,n,r){return n===void 0&&(n=255),r===void 0&&(r="#"),r==="#"?"#"+((1<<24)+(u<<16)+(o<<8)+a).toString(16).slice(1,7):"0x"+l(n)+l(u)+l(o)+l(a)};f.exports=g},37243:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(17489),g=t(27119),u=function(o,a){return o===void 0&&(o=0),a===void 0&&(a=255),new g(l(o,a),l(o,a),l(o,a))};f.exports=u},93222:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(91487),g=t(74853),u=t(73904),o=t(26841),a=function(n){var r=typeof n;switch(r){case"string":return n.substr(0,3).toLowerCase()==="rgb"?o(n):l(n);case"number":return g(n);case"object":return u(n)}};f.exports=a},95509:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(27119);l.ColorSpectrum=t(30245),l.ColorToRGBA=t(86672),l.ComponentToHex=t(25409),l.GetColor=t(22946),l.GetColor32=t(5657),l.HexStringToColor=t(91487),l.HSLToColor=t(74777),l.HSVColorWheel=t(89263),l.HSVToRGB=t(24650),l.HueToComponent=t(59998),l.IntegerToColor=t(74853),l.IntegerToRGB=t(15978),l.Interpolate=t(53756),l.ObjectToColor=t(73904),l.RandomRGB=t(37243),l.RGBStringToColor=t(26841),l.RGBToHSV=t(68033),l.RGBToString=t(4880),l.ValueToColor=t(93222),f.exports=l},24816:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Align:t(93545),BaseShader:t(31053),Bounds:t(15252),Canvas:t(23514),Color:t(95509),ColorMatrix:t(65246),Masks:t(93310),RGB:t(39298)}},76756:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(61286),u=new l({initialize:function(a,n,r,d,s,h){n||(n=a.sys.make.image({x:r,y:d,key:s,frame:h,add:!1})),this.bitmapMask=n,this.invertAlpha=!1,this.isStencil=!1},setBitmap:function(o){this.bitmapMask=o},preRenderWebGL:function(o,a,n){o.pipelines.BITMAPMASK_PIPELINE.beginMask(this,a,n)},postRenderWebGL:function(o,a,n){o.pipelines.BITMAPMASK_PIPELINE.endMask(this,a,n)},preRenderCanvas:function(){},postRenderCanvas:function(){},destroy:function(){this.bitmapMask=null}});g.register("bitmapMask",function(o,a,n,r,d){return new u(this.scene,o,a,n,r,d)}),f.exports=u},63037:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=new l({initialize:function(o,a){this.geometryMask=a,this.invertAlpha=!1,this.isStencil=!0,this.level=0},setShape:function(u){return this.geometryMask=u,this},setInvertAlpha:function(u){return u===void 0&&(u=!0),this.invertAlpha=u,this},preRenderWebGL:function(u,o,a){var n=u.gl;u.flush(),u.maskStack.length===0&&(n.enable(n.STENCIL_TEST),n.clear(n.STENCIL_BUFFER_BIT),u.maskCount=0),u.currentCameraMask.mask!==this&&(u.currentMask.mask=this),u.maskStack.push({mask:this,camera:a}),this.applyStencil(u,a,!0),u.maskCount++},applyStencil:function(u,o,a){var n=u.gl,r=this.geometryMask,d=u.maskCount,s=255;n.colorMask(!1,!1,!1,!1),a?(n.stencilFunc(n.EQUAL,d,s),n.stencilOp(n.KEEP,n.KEEP,n.INCR),d++):(n.stencilFunc(n.EQUAL,d+1,s),n.stencilOp(n.KEEP,n.KEEP,n.DECR)),this.level=d,r.renderWebGL(u,r,o),u.flush(),n.colorMask(!0,!0,!0,!0),n.stencilOp(n.KEEP,n.KEEP,n.KEEP),this.invertAlpha?n.stencilFunc(n.NOTEQUAL,d,s):n.stencilFunc(n.EQUAL,d,s)},postRenderWebGL:function(u){var o=u.gl;u.maskStack.pop(),u.maskCount--,u.flush();var a=u.currentMask;if(u.maskStack.length===0)a.mask=null,o.disable(o.STENCIL_TEST);else{var n=u.maskStack[u.maskStack.length-1];n.mask.applyStencil(u,n.camera,!1),u.currentCameraMask.mask!==n.mask?(a.mask=n.mask,a.camera=n.camera):a.mask=null}},preRenderCanvas:function(u,o,a){var n=this.geometryMask;u.currentContext.save(),n.renderCanvas(u,n,a,null,null,!0),u.currentContext.clip()},postRenderCanvas:function(u){u.currentContext.restore()},destroy:function(){this.geometryMask=null}});f.exports=g},93310:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={BitmapMask:t(76756),GeometryMask:t(63037)}},31053:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=new l({initialize:function(o,a,n,r){(!a||a==="")&&(a=["precision mediump float;","uniform vec2 resolution;","varying vec2 fragCoord;","void main () {"," vec2 uv = fragCoord / resolution.xy;"," gl_FragColor = vec4(uv.xyx, 1.0);","}"].join(` +`)),(!n||n==="")&&(n=["precision mediump float;","uniform mat4 uProjectionMatrix;","uniform mat4 uViewMatrix;","uniform vec2 uResolution;","attribute vec2 inPosition;","varying vec2 fragCoord;","varying vec2 outTexCoord;","void main () {"," gl_Position = uProjectionMatrix * uViewMatrix * vec4(inPosition, 1.0, 1.0);"," fragCoord = vec2(inPosition.x, uResolution.y - inPosition.y);"," outTexCoord = vec2(inPosition.x / uResolution.x, fragCoord.y / uResolution.y);","}"].join(` +`)),r===void 0&&(r=null),this.key=o,this.fragmentSrc=a,this.vertexSrc=n,this.uniforms=r}});f.exports=g},99584:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){var g;if(l)typeof l=="string"?g=document.getElementById(l):typeof l=="object"&&l.nodeType===1&&(g=l);else if(t.parentElement||l===null)return t;return g||(g=document.body),g.appendChild(t),t};f.exports=T},85178:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(99584),g=function(u){var o=u.config;if(!(!o.parent||!o.domCreateContainer)){var a=document.createElement("div");a.style.cssText=["display: block;","width: "+u.scale.width+"px;","height: "+u.scale.height+"px;","padding: 0; margin: 0;","position: absolute;","overflow: hidden;","pointer-events: "+o.domPointerEvents+";","transform: scale(1);","transform-origin: left top;"].join(" "),u.domContainer=a,l(a,o.parent)}};f.exports=g},21546:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(36580),g=function(u){if(document.readyState==="complete"||document.readyState==="interactive"){u();return}var o=function(){document.removeEventListener("deviceready",o,!0),document.removeEventListener("DOMContentLoaded",o,!0),window.removeEventListener("load",o,!0),u()};document.body?l.cordova?document.addEventListener("deviceready",o,!1):(document.addEventListener("DOMContentLoaded",o,!0),window.addEventListener("load",o,!0)):window.setTimeout(o,20)};f.exports=g},74181:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){if(!t)return window.innerHeight;var l=Math.abs(window.orientation),g={w:0,h:0},u=document.createElement("div");return u.setAttribute("style","position: fixed; height: 100vh; width: 0; top: 0"),document.documentElement.appendChild(u),g.w=l===90?u.offsetHeight:window.innerWidth,g.h=l===90?window.innerWidth:u.offsetHeight,document.documentElement.removeChild(u),u=null,Math.abs(window.orientation)!==90?g.h:g.w};f.exports=T},9229:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(55301),g=function(u,o){var a=window.screen,n=a?a.orientation||a.mozOrientation||a.msOrientation:!1;if(n&&typeof n.type=="string")return n.type;if(typeof n=="string")return n;if(typeof window.orientation=="number")return window.orientation===0||window.orientation===180?l.ORIENTATION.PORTRAIT:l.ORIENTATION.LANDSCAPE;if(window.matchMedia){if(window.matchMedia("(orientation: portrait)").matches)return l.ORIENTATION.PORTRAIT;if(window.matchMedia("(orientation: landscape)").matches)return l.ORIENTATION.LANDSCAPE}else return o>u?l.ORIENTATION.PORTRAIT:l.ORIENTATION.LANDSCAPE};f.exports=g},2893:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){var l;return t!==""&&(typeof t=="string"?l=document.getElementById(t):t&&t.nodeType===1&&(l=t)),l||(l=document.body),l};f.exports=T},89200:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){var l="";try{if(window.DOMParser){var g=new DOMParser;l=g.parseFromString(t,"text/xml")}else l=new ActiveXObject("Microsoft.XMLDOM"),l.loadXML(t)}catch{l=null}return!l||!l.documentElement||l.getElementsByTagName("parsererror").length?null:l};f.exports=T},55638:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){t.parentNode&&t.parentNode.removeChild(t)};f.exports=T},27385:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(72283),u=new l({initialize:function(){this.isRunning=!1,this.callback=g,this.isSetTimeOut=!1,this.timeOutID=null,this.delay=0;var a=this;this.step=function n(r){a.callback(r),a.isRunning&&(a.timeOutID=window.requestAnimationFrame(n))},this.stepTimeout=function n(){a.isRunning&&(a.timeOutID=window.setTimeout(n,a.delay)),a.callback(window.performance.now())}},start:function(o,a,n){this.isRunning||(this.callback=o,this.isSetTimeOut=a,this.delay=n,this.isRunning=!0,this.timeOutID=a?window.setTimeout(this.stepTimeout,0):window.requestAnimationFrame(this.step))},stop:function(){this.isRunning=!1,this.isSetTimeOut?clearTimeout(this.timeOutID):window.cancelAnimationFrame(this.timeOutID)},destroy:function(){this.stop(),this.callback=g}});f.exports=u},3590:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l={AddToDOM:t(99584),DOMContentLoaded:t(21546),GetInnerHeight:t(74181),GetScreenOrientation:t(9229),GetTarget:t(2893),ParseXML:t(89200),RemoveFromDOM:t(55638),RequestAnimationFrame:t(27385)};f.exports=l},78491:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(6659),u=t(91963),o=new l({Extends:g,initialize:function(){g.call(this)},shutdown:function(){this.removeAllListeners()},destroy:function(){this.removeAllListeners()}});u.register("EventEmitter",o,"events"),f.exports=o},95146:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={EventEmitter:t(78491)}},20170:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(47551),u=t(47406),o=new l({Extends:g,initialize:function(n,r){r===void 0&&(r=1),g.call(this,u.BARREL,n),this.amount=r}});f.exports=o},51182:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(47551),u=t(47406),o=new l({Extends:g,initialize:function(n,r,d,s,h,c,p){d===void 0&&(d=1),s===void 0&&(s=1),h===void 0&&(h=1),c===void 0&&(c=1),p===void 0&&(p=4),g.call(this,u.BLOOM,n),this.steps=p,this.offsetX=d,this.offsetY=s,this.blurStrength=h,this.strength=c,this.glcolor=[1,1,1],r!=null&&(this.color=r)},color:{get:function(){var a=this.glcolor;return(a[0]*255<<16)+(a[1]*255<<8)+(a[2]*255|0)},set:function(a){var n=this.glcolor;n[0]=(a>>16&255)/255,n[1]=(a>>8&255)/255,n[2]=(a&255)/255}}});f.exports=o},51498:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(47551),u=t(47406),o=new l({Extends:g,initialize:function(n,r,d,s,h,c,p){d===void 0&&(d=2),s===void 0&&(s=2),h===void 0&&(h=1),p===void 0&&(p=4),g.call(this,u.BLUR,n),this.quality=0,this.x=d,this.y=s,this.steps=p,this.strength=h,this.glcolor=[1,1,1],c!=null&&(this.color=c)},color:{get:function(){var a=this.glcolor;return(a[0]*255<<16)+(a[1]*255<<8)+(a[2]*255|0)},set:function(a){var n=this.glcolor;n[0]=(a>>16&255)/255,n[1]=(a>>8&255)/255,n[2]=(a&255)/255}}});f.exports=o},12042:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(47551),u=t(47406),o=new l({Extends:g,initialize:function(n,r,d,s,h,c,p,m){r===void 0&&(r=.5),d===void 0&&(d=1),s===void 0&&(s=.2),h===void 0&&(h=!1),c===void 0&&(c=1),p===void 0&&(p=1),m===void 0&&(m=1),g.call(this,u.BOKEH,n),this.radius=r,this.amount=d,this.contrast=s,this.isTiltShift=h,this.strength=m,this.blurX=c,this.blurY=p}});f.exports=o},69900:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(47551),u=t(47406),o=new l({Extends:g,initialize:function(n,r,d,s,h,c){r===void 0&&(r=8),h===void 0&&(h=1),c===void 0&&(c=.005),g.call(this,u.CIRCLE,n),this.scale=h,this.feather=c,this.thickness=r,this.glcolor=[1,.2,.7],this.glcolor2=[1,0,0,.4],d!=null&&(this.color=d),s!=null&&(this.backgroundColor=s)},color:{get:function(){var a=this.glcolor;return(a[0]*255<<16)+(a[1]*255<<8)+(a[2]*255|0)},set:function(a){var n=this.glcolor;n[0]=(a>>16&255)/255,n[1]=(a>>8&255)/255,n[2]=(a&255)/255}},backgroundColor:{get:function(){var a=this.glcolor2;return(a[0]*255<<16)+(a[1]*255<<8)+(a[2]*255|0)},set:function(a){var n=this.glcolor2;n[0]=(a>>16&255)/255,n[1]=(a>>8&255)/255,n[2]=(a&255)/255}}});f.exports=o},48991:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(65246),u=t(47406),o=new l({Extends:g,initialize:function(n){g.call(this),this.type=u.COLOR_MATRIX,this.gameObject=n,this.active=!0},destroy:function(){this.gameObject=null,this._matrix=null,this._data=null}});f.exports=o},47551:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=new l({initialize:function(o,a){this.type=o,this.gameObject=a,this.active=!0},setActive:function(u){return this.active=u,this},destroy:function(){this.gameObject=null,this.active=!1}});f.exports=g},47909:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(47551),u=t(47406),o=new l({Extends:g,initialize:function(n,r,d,s){r===void 0&&(r="__WHITE"),d===void 0&&(d=.005),s===void 0&&(s=.005),g.call(this,u.DISPLACEMENT,n),this.x=d,this.y=s,this.glTexture,this.setTexture(r)},setTexture:function(a){var n=this.gameObject.scene.sys.textures.getFrame(a);return n&&(this.glTexture=n.glTexture),this}});f.exports=o},18919:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(47551),u=t(47406),o=new l({Extends:g,initialize:function(n,r,d,s,h){d===void 0&&(d=4),s===void 0&&(s=0),h===void 0&&(h=!1),g.call(this,u.GLOW,n),this.outerStrength=d,this.innerStrength=s,this.knockout=h,this.glcolor=[1,1,1,1],r!==void 0&&(this.color=r)},color:{get:function(){var a=this.glcolor;return(a[0]*255<<16)+(a[1]*255<<8)+(a[2]*255|0)},set:function(a){var n=this.glcolor;n[0]=(a>>16&255)/255,n[1]=(a>>8&255)/255,n[2]=(a&255)/255}}});f.exports=o},62494:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(47551),u=t(47406),o=new l({Extends:g,initialize:function(n,r,d,s,h,c,p,m,x){s===void 0&&(s=.2),h===void 0&&(h=0),c===void 0&&(c=0),p===void 0&&(p=0),m===void 0&&(m=1),x===void 0&&(x=0),g.call(this,u.GRADIENT,n),this.alpha=s,this.size=x,this.fromX=h,this.fromY=c,this.toX=p,this.toY=m,this.glcolor1=[255,0,0],this.glcolor2=[0,255,0],r!=null&&(this.color1=r),d!=null&&(this.color2=d)},color1:{get:function(){var a=this.glcolor1;return(a[0]<<16)+(a[1]<<8)+(a[2]|0)},set:function(a){var n=this.glcolor1;n[0]=a>>16&255,n[1]=a>>8&255,n[2]=a&255}},color2:{get:function(){var a=this.glcolor2;return(a[0]<<16)+(a[1]<<8)+(a[2]|0)},set:function(a){var n=this.glcolor2;n[0]=a>>16&255,n[1]=a>>8&255,n[2]=a&255}}});f.exports=o},68897:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(47551),u=t(47406),o=new l({Extends:g,initialize:function(n,r){r===void 0&&(r=1),g.call(this,u.PIXELATE,n),this.amount=r}});f.exports=o},58575:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(47551),u=t(47406),o=new l({Extends:g,initialize:function(n,r,d,s,h,c,p,m){r===void 0&&(r=0),d===void 0&&(d=0),s===void 0&&(s=.1),h===void 0&&(h=1),p===void 0&&(p=6),m===void 0&&(m=1),g.call(this,u.SHADOW,n),this.x=r,this.y=d,this.decay=s,this.power=h,this.glcolor=[0,0,0,1],this.samples=p,this.intensity=m,c!==void 0&&(this.color=c)},color:{get:function(){var a=this.glcolor;return(a[0]*255<<16)+(a[1]*255<<8)+(a[2]*255|0)},set:function(a){var n=this.glcolor;n[0]=(a>>16&255)/255,n[1]=(a>>8&255)/255,n[2]=(a&255)/255}}});f.exports=o},33755:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(47551),u=t(47406),o=new l({Extends:g,initialize:function(n,r,d,s,h){r===void 0&&(r=.5),d===void 0&&(d=.5),s===void 0&&(s=3),h===void 0&&(h=!1),g.call(this,u.SHINE,n),this.speed=r,this.lineWidth=d,this.gradient=s,this.reveal=h}});f.exports=o},24949:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(47551),u=t(47406),o=new l({Extends:g,initialize:function(n,r,d,s,h){r===void 0&&(r=.5),d===void 0&&(d=.5),s===void 0&&(s=.5),h===void 0&&(h=.5),g.call(this,u.VIGNETTE,n),this.x=r,this.y=d,this.radius=s,this.strength=h}});f.exports=o},66241:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(47551),u=t(47406),o=new l({Extends:g,initialize:function(n,r,d,s,h){r===void 0&&(r=.1),d===void 0&&(d=0),s===void 0&&(s=0),h===void 0&&(h=!1),g.call(this,u.WIPE,n),this.progress=0,this.wipeWidth=r,this.direction=d,this.axis=s,this.reveal=h}});f.exports=o},47406:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={GLOW:4,SHADOW:5,PIXELATE:6,VIGNETTE:7,SHINE:8,BLUR:9,GRADIENT:12,BLOOM:13,COLOR_MATRIX:14,CIRCLE:15,BARREL:16,DISPLACEMENT:17,WIPE:18,BOKEH:19};f.exports=T},96910:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(98611),g=t(47406),u={Barrel:t(20170),Controller:t(47551),Bloom:t(51182),Blur:t(51498),Bokeh:t(12042),Circle:t(69900),ColorMatrix:t(48991),Displacement:t(47909),Glow:t(18919),Gradient:t(62494),Pixelate:t(68897),Shadow:t(58575),Shine:t(33755),Vignette:t(24949),Wipe:t(66241)};u=l(!1,u,g),f.exports=u},88933:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(95723),g=t(20494),u=function(o,a,n){a.x=g(n,"x",0),a.y=g(n,"y",0),a.depth=g(n,"depth",0),a.flipX=g(n,"flipX",!1),a.flipY=g(n,"flipY",!1);var r=g(n,"scale",null);typeof r=="number"?a.setScale(r):r!==null&&(a.scaleX=g(r,"x",1),a.scaleY=g(r,"y",1));var d=g(n,"scrollFactor",null);typeof d=="number"?a.setScrollFactor(d):d!==null&&(a.scrollFactorX=g(d,"x",1),a.scrollFactorY=g(d,"y",1)),a.rotation=g(n,"rotation",0);var s=g(n,"angle",null);s!==null&&(a.angle=s),a.alpha=g(n,"alpha",1);var h=g(n,"origin",null);if(typeof h=="number")a.setOrigin(h);else if(h!==null){var c=g(h,"x",.5),p=g(h,"y",.5);a.setOrigin(c,p)}a.blendMode=g(n,"blendMode",l.NORMAL),a.visible=g(n,"visible",!0);var m=g(n,"add",!0);return m&&o.sys.displayList.add(a),a.preUpdate&&o.sys.updateList.add(a),a};f.exports=u},32291:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(20494),g=function(u,o){var a=l(o,"anims",null);if(a===null)return u;if(typeof a=="string")u.anims.play(a);else if(typeof a=="object"){var n=u.anims,r=l(a,"key",void 0);if(r){var d=l(a,"startFrame",void 0),s=l(a,"delay",0),h=l(a,"repeat",0),c=l(a,"repeatDelay",0),p=l(a,"yoyo",!1),m=l(a,"play",!1),x=l(a,"delayedPlay",0),S={key:r,delay:s,repeat:h,repeatDelay:c,yoyo:p,startFrame:d};m?n.play(S):x>0?n.playAfterDelay(S,x):n.load(S)}}return u};f.exports=g},91713:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(71207),u=t(91963),o=t(56631),a=t(7599),n=t(17922),r=new l({Extends:g,initialize:function(s){g.call(this,s),this.sortChildrenFlag=!1,this.scene=s,this.systems=s.sys,this.events=s.sys.events,this.addCallback=this.addChildCallback,this.removeCallback=this.removeChildCallback,this.events.once(a.BOOT,this.boot,this),this.events.on(a.START,this.start,this)},boot:function(){this.events.once(a.DESTROY,this.destroy,this)},addChildCallback:function(d){d.displayList&&d.displayList!==this&&d.removeFromDisplayList(),d.parentContainer&&d.parentContainer.remove(d),d.displayList||(this.queueDepthSort(),d.displayList=this,d.emit(o.ADDED_TO_SCENE,d,this.scene),this.events.emit(a.ADDED_TO_SCENE,d,this.scene))},removeChildCallback:function(d){this.queueDepthSort(),d.displayList=null,d.emit(o.REMOVED_FROM_SCENE,d,this.scene),this.events.emit(a.REMOVED_FROM_SCENE,d,this.scene)},start:function(){this.events.once(a.SHUTDOWN,this.shutdown,this)},queueDepthSort:function(){this.sortChildrenFlag=!0},depthSort:function(){this.sortChildrenFlag&&(n(this.list,this.sortByDepth),this.sortChildrenFlag=!1)},sortByDepth:function(d,s){return d._depth-s._depth},getChildren:function(){return this.list},shutdown:function(){for(var d=this.list;d.length;)d[0].destroy(!0);this.events.off(a.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(a.START,this.start,this),this.scene=null,this.systems=null,this.events=null}});u.register("DisplayList",r,"displayList"),f.exports=r},89980:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(48129),u=t(81078),o=t(6659),a=t(56631),n=t(7599),r=new l({Extends:o,initialize:function(s,h){o.call(this),this.scene=s,this.displayList=null,this.type=h,this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,this.on(a.ADDED_TO_SCENE,this.addedToScene,this),this.on(a.REMOVED_FROM_SCENE,this.removedFromScene,this),s.sys.queueDepthSort()},setActive:function(d){return this.active=d,this},setName:function(d){return this.name=d,this},setState:function(d){return this.state=d,this},setDataEnabled:function(){return this.data||(this.data=new u(this)),this},setData:function(d,s){return this.data||(this.data=new u(this)),this.data.set(d,s),this},incData:function(d,s){return this.data||(this.data=new u(this)),this.data.inc(d,s),this},toggleData:function(d){return this.data||(this.data=new u(this)),this.data.toggle(d),this},getData:function(d){return this.data||(this.data=new u(this)),this.data.get(d)},setInteractive:function(d,s,h){return this.scene.sys.input.enable(this,d,s,h),this},disableInteractive:function(){return this.scene.sys.input.disable(this),this},removeInteractive:function(){return this.scene.sys.input.clear(this),this.input=void 0,this},addedToScene:function(){},removedFromScene:function(){},update:function(){},toJSON:function(){return g(this)},willRender:function(d){var s=this.displayList&&this.displayList.active?this.displayList.willRender(d):!0;return!(!s||r.RENDER_MASK!==this.renderFlags||this.cameraFilter!==0&&this.cameraFilter&d.id)},getIndexList:function(){for(var d=this,s=this.parentContainer,h=[];s&&(h.unshift(s.getIndex(d)),d=s,s.parentContainer);)s=s.parentContainer;return this.displayList?h.unshift(this.displayList.getIndex(d)):h.unshift(this.scene.sys.displayList.getIndex(d)),h},addToDisplayList:function(d){return d===void 0&&(d=this.scene.sys.displayList),this.displayList&&this.displayList!==d&&this.removeFromDisplayList(),d.exists(this)||(this.displayList=d,d.add(this,!0),d.queueDepthSort(),this.emit(a.ADDED_TO_SCENE,this,this.scene),d.events.emit(n.ADDED_TO_SCENE,this,this.scene)),this},addToUpdateList:function(){return this.scene&&this.preUpdate&&this.scene.sys.updateList.add(this),this},removeFromDisplayList:function(){var d=this.displayList||this.scene.sys.displayList;return d&&d.exists(this)&&(d.remove(this,!0),d.queueDepthSort(),this.displayList=null,this.emit(a.REMOVED_FROM_SCENE,this,this.scene),d.events.emit(n.REMOVED_FROM_SCENE,this,this.scene)),this},removeFromUpdateList:function(){return this.scene&&this.preUpdate&&this.scene.sys.updateList.remove(this),this},destroy:function(d){!this.scene||this.ignoreDestroy||(d===void 0&&(d=!1),this.preDestroy&&this.preDestroy.call(this),this.emit(a.DESTROY,this,d),this.removeAllListeners(),this.postPipelines&&this.resetPostPipeline(!0),this.removeFromDisplayList(),this.removeFromUpdateList(),this.input&&(this.scene.sys.input.clear(this),this.input=void 0),this.data&&(this.data.destroy(),this.data=void 0),this.body&&(this.body.destroy(),this.body=void 0),this.preFX&&(this.preFX.destroy(),this.preFX=void 0),this.postFX&&(this.postFX.destroy(),this.postFX=void 0),this.active=!1,this.visible=!1,this.scene=void 0,this.parentContainer=void 0)}});r.RENDER_MASK=15,f.exports=r},99325:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(91963),u=t(7599),o=new l({initialize:function(n){this.scene=n,this.systems=n.sys,this.events=n.sys.events,this.displayList,this.updateList,this.events.once(u.BOOT,this.boot,this),this.events.on(u.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.events.once(u.DESTROY,this.destroy,this)},start:function(){this.events.once(u.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.events.off(u.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(u.START,this.start,this),this.scene=null,this.systems=null,this.events=null,this.displayList=null,this.updateList=null}});o.register=function(a,n){o.prototype.hasOwnProperty(a)||(o.prototype[a]=n)},o.remove=function(a){o.prototype.hasOwnProperty(a)&&delete o.prototype[a]},g.register("GameObjectCreator",o,"make"),f.exports=o},61286:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(91963),u=t(7599),o=new l({initialize:function(n){this.scene=n,this.systems=n.sys,this.events=n.sys.events,this.displayList,this.updateList,this.events.once(u.BOOT,this.boot,this),this.events.on(u.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.events.once(u.DESTROY,this.destroy,this)},start:function(){this.events.once(u.SHUTDOWN,this.shutdown,this)},existing:function(a){return(a.renderCanvas||a.renderWebGL)&&this.displayList.add(a),a.preUpdate&&this.updateList.add(a),a},shutdown:function(){this.events.off(u.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(u.START,this.start,this),this.scene=null,this.systems=null,this.events=null,this.displayList=null,this.updateList=null}});o.register=function(a,n){o.prototype.hasOwnProperty(a)||(o.prototype[a]=n)},o.remove=function(a){o.prototype.hasOwnProperty(a)&&delete o.prototype[a]},g.register("GameObjectFactory",o,"add"),f.exports=o},73329:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(69360),g=new l,u=new l,o=new l,a={camera:g,sprite:u,calc:o},n=function(r,d,s){var h=g,c=u,p=o;return c.applyITRS(r.x,r.y,r.rotation,r.scaleX,r.scaleY),h.copyFrom(d.matrix),s?(h.multiplyWithOffset(s,-d.scrollX*r.scrollFactorX,-d.scrollY*r.scrollFactorY),c.e=r.x,c.f=r.y):(c.e-=d.scrollX*r.scrollFactorX,c.f-=d.scrollY*r.scrollFactorY),h.multiply(c,p),a};f.exports=n},92034:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(74623),u=t(91963),o=t(7599),a=new l({Extends:g,initialize:function(r){g.call(this),this.checkQueue=!0,this.scene=r,this.systems=r.sys,r.sys.events.once(o.BOOT,this.boot,this),r.sys.events.on(o.START,this.start,this)},boot:function(){this.systems.events.once(o.DESTROY,this.destroy,this)},start:function(){var n=this.systems.events;n.on(o.PRE_UPDATE,this.update,this),n.on(o.UPDATE,this.sceneUpdate,this),n.once(o.SHUTDOWN,this.shutdown,this)},sceneUpdate:function(n,r){for(var d=this._active,s=d.length,h=0;h{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u,o,a,n,r,d,s,h,c,p,m,x){var S=g.x-l.displayOriginX+o,P=g.y-l.displayOriginY+a,E=S+g.w,R=P+g.h,M=n.getXRound(S,P,r),O=n.getYRound(S,P,r),w=n.getXRound(S,R,r),L=n.getYRound(S,R,r),F=n.getXRound(E,R,r),b=n.getYRound(E,R,r),D=n.getXRound(E,P,r),N=n.getYRound(E,P,r);t.batchQuad(l,M,O,w,L,F,b,D,N,u.u0,u.v0,u.u1,u.v1,d,s,h,c,p,m,x)};f.exports=T},82173:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){if(g===void 0&&(g=!1),u===void 0)return u={local:{x:0,y:0,width:0,height:0},global:{x:0,y:0,width:0,height:0},lines:{shortest:0,longest:0,lengths:null,height:0},wrappedText:"",words:[],characters:[],scaleX:0,scaleY:0},u;var o=t.text,a=o.length,n=t.maxWidth,r=t.wordWrapCharCode,d=Number.MAX_VALUE,s=Number.MAX_VALUE,h=0,c=0,p=t.fontData.chars,m=t.fontData.lineHeight,x=t.letterSpacing,S=t.lineSpacing,P=0,E=0,R=0,M=null,O=t._align,w=0,L=0,F=t.fontSize/t.fontData.size,b=F*t.scaleX,D=F*t.scaleY,N=null,z=0,W=[],Y=Number.MAX_VALUE,j=0,G=0,V=0,I,B=[],U=[],X=null;if(n>0){for(I=0;In||st>n?(J.push(q.i-1),q.cr?(J.push(q.i+q.word.length),K=0,k=null):k=q):q.cr&&(J.push(q.i+q.word.length),K=0,k=null)}var mt=function(bt,Yt,Zt){return bt.substr(0,Yt)+Zt+bt.substr(Yt+1)};for(I=J.length-1;I>=0;I--)o=mt(o,J[I],` +`);u.wrappedText=o,a=o.length,B=[],X=null}var ct=0;for(I=0;Ij&&(j=V),Vw&&(d=w),s>L&&(s=L);var nt=w+M.xAdvance,ot=L+m;hj&&(j=V),V0)for(var St=0;St{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(31476),g=function(u,o,a,n,r,d,s){var h=u.sys.textures.get(a),c=h.get(n),p=u.sys.cache.xml.get(r);if(c&&p){var m=l(p,c,d,s,h);return u.sys.cache.bitmapFont.add(o,{data:m,texture:a,frame:n,fromAtlas:!0}),!0}else return!1};f.exports=g},39860:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(10850),g=function(u,o){var a=o.width,n=o.height,r=Math.floor(a/2),d=Math.floor(n/2),s=l(o,"chars","");if(s!==""){var h=l(o,"image",""),c=u.sys.textures.getFrame(h),p=c.cutX,m=c.cutY,x=c.source.width,S=c.source.height,P=l(o,"offset.x",0),E=l(o,"offset.y",0),R=l(o,"spacing.x",0),M=l(o,"spacing.y",0),O=l(o,"lineSpacing",0),w=l(o,"charsPerRow",null);w===null&&(w=x/a,w>s.length&&(w=s.length));for(var L=P,F=E,b={retroFont:!0,font:h,size:a,lineHeight:n+O,chars:{}},D=0,N=0;N{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */function T(l,g){return parseInt(l.getAttribute(g),10)}var t=function(l,g,u,o,a){u===void 0&&(u=0),o===void 0&&(o=0);var n=g.cutX,r=g.cutY,d=g.source.width,s=g.source.height,h=g.sourceIndex,c={},p=l.getElementsByTagName("info")[0],m=l.getElementsByTagName("common")[0];c.font=p.getAttribute("face"),c.size=T(p,"size"),c.lineHeight=T(m,"lineHeight")+o,c.chars={};var x=l.getElementsByTagName("char"),S=g!==void 0&&g.trimmed;if(S)var P=g.height,E=g.width;for(var R=0;R{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(66863),g=t(98611),u={Parse:t(39860)};u=g(!1,u,l),f.exports=u},66863:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={TEXT_SET1:" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~",TEXT_SET2:` !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ`,TEXT_SET3:"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",TEXT_SET4:"ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789",TEXT_SET5:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,/() '!?-*:0123456789",TEXT_SET6:`ABCDEFGHIJKLMNOPQRSTUVWXYZ!?:;0123456789"(),-.' `,TEXT_SET7:`AGMSY+:4BHNTZ!;5CIOU.?06DJPV,(17EKQW")28FLRX-'39`,TEXT_SET8:"0123456789 .ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET9:`ABCDEFGHIJKLMNOPQRSTUVWXYZ()-0123456789.:,'"?!`,TEXT_SET10:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET11:`ABCDEFGHIJKLMNOPQRSTUVWXYZ.,"-+!?()':;0123456789`};f.exports=T},13468:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(44616),g=t(56694),u=t(88899),o=new g({Extends:l,Mixins:[u],initialize:function(n,r,d,s,h,c,p){l.call(this,n,r,d,s,h,c,p),this.type="DynamicBitmapText",this.scrollX=0,this.scrollY=0,this.cropWidth=0,this.cropHeight=0,this.displayCallback,this.callbackData={parent:this,color:0,tint:{topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},index:0,charCode:0,x:0,y:0,scale:0,rotation:0,data:0}},setSize:function(a,n){return this.cropWidth=a,this.cropHeight=n,this},setDisplayCallback:function(a){return this.displayCallback=a,this},setScrollX:function(a){return this.scrollX=a,this},setScrollY:function(a){return this.scrollY=a,this}});f.exports=o},93438:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(49584),g=function(u,o,a,n){var r=o._text,d=r.length,s=u.currentContext;if(!(d===0||!l(u,s,o,a,n))){a.addToRenderList(o);var h=o.fromAtlas?o.frame:o.texture.frames.__BASE,c=o.displayCallback,p=o.callbackData,m=o.fontData.chars,x=o.fontData.lineHeight,S=o._letterSpacing,P=0,E=0,R=0,M=null,O=0,w=0,L=0,F=0,b=0,D=0,N=null,z=0,W=o.frame.source.image,Y=h.cutX,j=h.cutY,G=0,V=0,I=o._fontSize/o.fontData.size,B=o._align,U=0,X=0;o.getTextBounds(!1);var $=o._bounds.lines;B===1?X=($.longest-$.lengths[0])/2:B===2&&(X=$.longest-$.lengths[0]),s.translate(-o.displayOriginX,-o.displayOriginY);var k=a.roundPixels;o.cropWidth>0&&o.cropHeight>0&&(s.beginPath(),s.rect(0,0,o.cropWidth,o.cropHeight),s.clip());for(var K=0;K{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(13468),g=t(88933),u=t(99325),o=t(20494);u.register("dynamicBitmapText",function(a,n){a===void 0&&(a={});var r=o(a,"font",""),d=o(a,"text",""),s=o(a,"size",!1),h=new l(this.scene,0,0,r,d,s);return n!==void 0&&(a.add=n),g(this.scene,h,a),h})},94145:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(13468),g=t(61286);g.register("dynamicBitmapText",function(u,o,a,n,r){return this.displayList.add(new l(this.scene,u,o,a,n,r))})},88899:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(16873),u=t(93438),f.exports={renderWebGL:g,renderCanvas:u}},16873:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(73329),g=t(69360),u=t(75512),o=new g,a=function(n,r,d,s){var h=r.text,c=h.length;if(c!==0){d.addToRenderList(r);var p=n.pipelines.set(r.pipeline,r),m=l(r,d,s);n.pipelines.preBatch(r);var x=m.sprite,S=m.calc,P=o,E=r.cropWidth>0||r.cropHeight>0;E&&(p.flush(),n.pushScissor(S.tx,S.ty,r.cropWidth*S.scaleX,r.cropHeight*S.scaleY));var R=r.frame,M=R.glTexture,O=r.tintFill,w=u.getTintAppendFloatAlpha(r.tintTopLeft,d.alpha*r._alphaTL),L=u.getTintAppendFloatAlpha(r.tintTopRight,d.alpha*r._alphaTR),F=u.getTintAppendFloatAlpha(r.tintBottomLeft,d.alpha*r._alphaBL),b=u.getTintAppendFloatAlpha(r.tintBottomRight,d.alpha*r._alphaBR),D=p.setGameObject(r),N=0,z=0,W=0,Y=0,j=r.letterSpacing,G,V=0,I=0,B,U=r.scrollX,X=r.scrollY,$=r.fontData,k=$.chars,K=$.lineHeight,J=r.fontSize/$.size,q=0,_=r._align,et=0,it=0,tt=r.getTextBounds(!1);r.maxWidth>0&&(h=tt.wrappedText,c=h.length);var st=r._bounds.lines;_===1?it=(st.longest-st.lengths[0])/2:_===2&&(it=st.longest-st.lengths[0]);for(var mt=d.roundPixels,ct=r.displayCallback,ft=r.callbackData,nt=0;nt{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(82897),u=t(64937),o=t(89980),a=t(82173),n=t(68298),r=t(31476),d=t(74118),s=t(84557),h=new l({Extends:o,Mixins:[u.Alpha,u.BlendMode,u.Depth,u.GetBounds,u.Mask,u.Origin,u.Pipeline,u.PostPipeline,u.ScrollFactor,u.Texture,u.Tint,u.Transform,u.Visible,s],initialize:function(p,m,x,S,P,E,R){P===void 0&&(P=""),R===void 0&&(R=0),o.call(this,p,"BitmapText"),this.font=S;var M=this.scene.sys.cache.bitmapFont.get(S);M||console.warn("Invalid BitmapText key: "+S),this.fontData=M.data,this._text="",this._fontSize=E||this.fontData.size,this._letterSpacing=0,this._lineSpacing=0,this._align=R,this._bounds=a(),this._dirty=!0,this._maxWidth=0,this.wordWrapCharCode=32,this.charColors=[],this.dropShadowX=0,this.dropShadowY=0,this.dropShadowColor=0,this.dropShadowAlpha=.5,this.fromAtlas=M.fromAtlas,this.setTexture(M.texture,M.frame),this.setPosition(m,x),this.setOrigin(0,0),this.initPipeline(),this.initPostPipeline(),this.setText(P)},setLeftAlign:function(){return this._align=h.ALIGN_LEFT,this._dirty=!0,this},setCenterAlign:function(){return this._align=h.ALIGN_CENTER,this._dirty=!0,this},setRightAlign:function(){return this._align=h.ALIGN_RIGHT,this._dirty=!0,this},setFontSize:function(c){return this._fontSize=c,this._dirty=!0,this},setLetterSpacing:function(c){return c===void 0&&(c=0),this._letterSpacing=c,this._dirty=!0,this},setLineSpacing:function(c){return c===void 0&&(c=0),this.lineSpacing=c,this},setText:function(c){return!c&&c!==0&&(c=""),Array.isArray(c)&&(c=c.join(` +`)),c!==this.text&&(this._text=c.toString(),this._dirty=!0,this.updateDisplayOrigin()),this},setDropShadow:function(c,p,m,x){return c===void 0&&(c=0),p===void 0&&(p=0),m===void 0&&(m=0),x===void 0&&(x=.5),this.dropShadowX=c,this.dropShadowY=p,this.dropShadowColor=m,this.dropShadowAlpha=x,this},setCharacterTint:function(c,p,m,x,S,P,E){c===void 0&&(c=0),p===void 0&&(p=1),m===void 0&&(m=!1),x===void 0&&(x=-1),S===void 0&&(S=x,P=x,E=x);var R=this.text.length;p===-1&&(p=R),c<0&&(c=R+c),c=g(c,0,R-1);for(var M=g(c+p,c,R),O=this.charColors,w=c;w{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(49584),g=function(u,o,a,n){var r=o._text,d=r.length,s=u.currentContext;if(!(d===0||!l(u,s,o,a,n))){a.addToRenderList(o);var h=o.fromAtlas?o.frame:o.texture.frames.__BASE,c=o.fontData.chars,p=o.fontData.lineHeight,m=o._letterSpacing,x=o._lineSpacing,S=0,P=0,E=0,R=null,M=0,O=0,w=0,L=0,F=0,b=0,D=null,N=0,z=h.source.image,W=h.cutX,Y=h.cutY,j=o._fontSize/o.fontData.size,G=o._align,V=0,I=0,B=o.getTextBounds(!1);o.maxWidth>0&&(r=B.wrappedText,d=r.length);var U=o._bounds.lines;G===1?I=(U.longest-U.lengths[0])/2:G===2&&(I=U.longest-U.lengths[0]),s.translate(-o.displayOriginX,-o.displayOriginY);for(var X=a.roundPixels,$=0;${/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(44616),g=t(88933),u=t(99325),o=t(20494),a=t(10850);u.register("bitmapText",function(n,r){n===void 0&&(n={});var d=a(n,"font",""),s=o(n,"text",""),h=o(n,"size",!1),c=a(n,"align",0),p=new l(this.scene,0,0,d,s,h,c);return r!==void 0&&(n.add=r),g(this.scene,p,n),p})},21797:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(44616),g=t(61286);g.register("bitmapText",function(u,o,a,n,r,d){return this.displayList.add(new l(this.scene,u,o,a,n,r,d))})},84557:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(26372),u=t(97545),f.exports={renderWebGL:g,renderCanvas:u}},26372:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(8810),g=t(73329),u=t(75512),o=function(a,n,r,d){var s=n._text,h=s.length;if(h!==0){r.addToRenderList(n);var c=a.pipelines.set(n.pipeline,n),p=g(n,r,d).calc;a.pipelines.preBatch(n);var m=r.roundPixels,x=r.alpha,S=n.charColors,P=n.tintFill,E=u.getTintAppendFloatAlpha,R=E(n.tintTopLeft,x*n._alphaTL),M=E(n.tintTopRight,x*n._alphaTR),O=E(n.tintBottomLeft,x*n._alphaBL),w=E(n.tintBottomRight,x*n._alphaBR),L=n.frame.glTexture,F=c.setGameObject(n),b=n.getTextBounds(!1),D,N,z,W=b.characters,Y=n.dropShadowX,j=n.dropShadowY,G=Y!==0||j!==0;if(G){var V=n.dropShadowColor,I=n.dropShadowAlpha,B=E(V,x*I*n._alphaTL),U=E(V,x*I*n._alphaTR),X=E(V,x*I*n._alphaBL),$=E(V,x*I*n._alphaBR);for(D=0;D{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(92246),g=t(41664),u=t(56694),o=t(64937),a=t(82047),n=t(89980),r=t(71207),d=new u({Extends:n,Mixins:[o.Alpha,o.BlendMode,o.Depth,o.Mask,o.Pipeline,o.PostPipeline,o.ScrollFactor,o.Size,o.Texture,o.Transform,o.Visible,l],initialize:function(h,c,p,m,x){n.call(this,h,"Blitter"),this.setTexture(m,x),this.setPosition(c,p),this.initPipeline(),this.initPostPipeline(),this.children=new r,this.renderList=[],this.dirty=!1},create:function(s,h,c,p,m){p===void 0&&(p=!0),m===void 0&&(m=this.children.length),c===void 0?c=this.frame:c instanceof a||(c=this.texture.get(c));var x=new g(this,s,h,c,p);return this.children.addAt(x,m,!1),this.dirty=!0,x},createFromCallback:function(s,h,c,p){for(var m=this.createMultiple(h,c,p),x=0;x0},getRenderList:function(){return this.dirty&&(this.renderList=this.children.list.filter(this.childCanRender,this),this.dirty=!1),this.renderList},clear:function(){this.children.removeAll(),this.dirty=!0},preDestroy:function(){this.children.destroy(),this.renderList=[]}});f.exports=d},33177:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){var o=l.getRenderList();if(o.length!==0){var a=t.currentContext,n=g.alpha*l.alpha;if(n!==0){g.addToRenderList(l),a.globalCompositeOperation=t.blendModes[l.blendMode],a.imageSmoothingEnabled=!l.frame.source.scaleMode;var r=l.x-g.scrollX*l.scrollFactorX,d=l.y-g.scrollY*l.scrollFactorY;a.save(),u&&u.copyToContext(a);for(var s=g.roundPixels,h=0;h0&&x.height>0&&(a.save(),a.translate(c.x+r,c.y+d),a.scale(E,R),a.drawImage(m.source.image,x.x,x.y,x.width,x.height,S,P,x.width,x.height),a.restore())):(s&&(S=Math.round(S),P=Math.round(P)),x.width>0&&x.height>0&&a.drawImage(m.source.image,x.x,x.y,x.width,x.height,S+c.x+r,P+c.y+d,x.width,x.height)))}a.restore()}}};f.exports=T},68452:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(52816),g=t(88933),u=t(99325),o=t(20494);u.register("blitter",function(a,n){a===void 0&&(a={});var r=o(a,"key",null),d=o(a,"frame",null),s=new l(this.scene,0,0,r,d);return n!==void 0&&(a.add=n),g(this.scene,s,a),s})},38906:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(52816),g=t(61286);g.register("blitter",function(u,o,a,n){return this.displayList.add(new l(this.scene,u,o,a,n))})},92246:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(89165),u=t(33177),f.exports={renderWebGL:g,renderCanvas:u}},89165:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(69360),g=t(75512),u=new l,o=function(a,n,r,d){var s=n.getRenderList(),h=r.alpha*n.alpha;if(!(s.length===0||h===0)){r.addToRenderList(n);var c=a.pipelines.set(this.pipeline,n),p=r.scrollX*n.scrollFactorX,m=r.scrollY*n.scrollFactorY,x=u.copyFrom(r.matrix);d&&(x.multiplyWithOffset(d,-p,-m),p=0,m=0);var S=n.x-p,P=n.y-m,E=-1,R=!1,M=r.roundPixels;a.pipelines.preBatch(n);for(var O=0;O{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(82047),u=new l({initialize:function(a,n,r,d,s){this.parent=a,this.x=n,this.y=r,this.frame=d,this.data={},this.tint=16777215,this._visible=s,this._alpha=1,this.flipX=!1,this.flipY=!1,this.hasTransformComponent=!0},setFrame:function(o){return o===void 0?this.frame=this.parent.frame:o instanceof g&&o.texture===this.parent.texture?this.frame=o:this.frame=this.parent.texture.get(o),this},resetFlip:function(){return this.flipX=!1,this.flipY=!1,this},reset:function(o,a,n){return this.x=o,this.y=a,this.flipX=!1,this.flipY=!1,this._alpha=1,this._visible=!0,this.parent.dirty=!0,n&&this.setFrame(n),this},setPosition:function(o,a){return this.x=o,this.y=a,this},setFlipX:function(o){return this.flipX=o,this},setFlipY:function(o){return this.flipY=o,this},setFlip:function(o,a){return this.flipX=o,this.flipY=a,this},setVisible:function(o){return this.visible=o,this},setAlpha:function(o){return this.alpha=o,this},setTint:function(o){return this.tint=o,this},destroy:function(){this.parent.dirty=!0,this.parent.children.remove(this),this.parent=void 0,this.frame=void 0,this.data=void 0},visible:{get:function(){return this._visible},set:function(o){this.parent.dirty|=this._visible!==o,this._visible=o}},alpha:{get:function(){return this._alpha},set:function(o){this.parent.dirty|=this._alpha>0!=o>0,this._alpha=o}}});f.exports=u},97123:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(82897),g=2,u={_alpha:1,_alphaTL:1,_alphaTR:1,_alphaBL:1,_alphaBR:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(o,a,n,r){return o===void 0&&(o=1),a===void 0?this.alpha=o:(this._alphaTL=l(o,0,1),this._alphaTR=l(a,0,1),this._alphaBL=l(n,0,1),this._alphaBR=l(r,0,1)),this},alpha:{get:function(){return this._alpha},set:function(o){var a=l(o,0,1);this._alpha=a,this._alphaTL=a,this._alphaTR=a,this._alphaBL=a,this._alphaBR=a,a===0?this.renderFlags&=~g:this.renderFlags|=g}},alphaTopLeft:{get:function(){return this._alphaTL},set:function(o){var a=l(o,0,1);this._alphaTL=a,a!==0&&(this.renderFlags|=g)}},alphaTopRight:{get:function(){return this._alphaTR},set:function(o){var a=l(o,0,1);this._alphaTR=a,a!==0&&(this.renderFlags|=g)}},alphaBottomLeft:{get:function(){return this._alphaBL},set:function(o){var a=l(o,0,1);this._alphaBL=a,a!==0&&(this.renderFlags|=g)}},alphaBottomRight:{get:function(){return this._alphaBR},set:function(o){var a=l(o,0,1);this._alphaBR=a,a!==0&&(this.renderFlags|=g)}}};f.exports=u},15720:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(82897),g=2,u={_alpha:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(o){return o===void 0&&(o=1),this.alpha=o,this},alpha:{get:function(){return this._alpha},set:function(o){var a=l(o,0,1);this._alpha=a,a===0?this.renderFlags&=~g:this.renderFlags|=g}}};f.exports=u},69732:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(95723),g={_blendMode:l.NORMAL,blendMode:{get:function(){return this._blendMode},set:function(u){typeof u=="string"&&(u=l[u]),u|=0,u>=-1&&(this._blendMode=u)}},setBlendMode:function(u){return this.blendMode=u,this}};f.exports=g},28284:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={width:0,height:0,displayWidth:{get:function(){return this.scaleX*this.width},set:function(t){this.scaleX=t/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(t){this.scaleY=t/this.height}},setSize:function(t,l){return this.width=t,this.height=l,this},setDisplaySize:function(t,l){return this.displayWidth=t,this.displayHeight=l,this}};f.exports=T},85293:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={texture:null,frame:null,isCropped:!1,setCrop:function(t,l,g,u){if(t===void 0)this.isCropped=!1;else if(this.frame){if(typeof t=="number")this.frame.setCropUVs(this._crop,t,l,g,u,this.flipX,this.flipY);else{var o=t;this.frame.setCropUVs(this._crop,o.x,o.y,o.width,o.height,this.flipX,this.flipY)}this.isCropped=!0}return this},resetCropObject:function(){return{u0:0,v0:0,u1:0,v1:0,width:0,height:0,x:0,y:0,flipX:!1,flipY:!1,cx:0,cy:0,cw:0,ch:0}}};f.exports=T},14975:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={_depth:0,depth:{get:function(){return this._depth},set:function(t){this.displayList&&this.displayList.queueDepthSort(),this._depth=t}},setDepth:function(t){return t===void 0&&(t=0),this.depth=t,this}};f.exports=T},88677:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(96910),u=t(72677),o=new l({initialize:function(n,r){this.gameObject=n,this.isPost=r,this.enabled=!1,this.list=[],this.padding=0},setPadding:function(a){return a===void 0&&(a=0),this.padding=a,this.gameObject},onFXCopy:function(){},onFX:function(){},enable:function(a){if(!this.isPost){var n=this.gameObject.scene.sys.renderer;n&&n.pipelines?(this.gameObject.pipeline=n.pipelines.FX_PIPELINE,a!==void 0&&(this.padding=a),this.enabled=!0):this.enabled=!1}},clear:function(){if(this.isPost)this.gameObject.resetPostPipeline(!0);else{for(var a=this.list,n=0;n{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={flipX:!1,flipY:!1,toggleFlipX:function(){return this.flipX=!this.flipX,this},toggleFlipY:function(){return this.flipY=!this.flipY,this},setFlipX:function(t){return this.flipX=t,this},setFlipY:function(t){return this.flipY=t,this},setFlip:function(t,l){return this.flipX=t,this.flipY=l,this},resetFlip:function(){return this.flipX=!1,this.flipY=!1,this}};f.exports=T},80693:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(74118),g=t(2386),u=t(93736),o={prepareBoundsOutput:function(a,n){if(n===void 0&&(n=!1),this.rotation!==0&&g(a,this.x,this.y,this.rotation),n&&this.parentContainer){var r=this.parentContainer.getBoundsTransformMatrix();r.transformPoint(a.x,a.y,a)}return a},getCenter:function(a,n){return a===void 0&&(a=new u),a.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,a.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(a,n)},getTopLeft:function(a,n){return a||(a=new u),a.x=this.x-this.displayWidth*this.originX,a.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(a,n)},getTopCenter:function(a,n){return a||(a=new u),a.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,a.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(a,n)},getTopRight:function(a,n){return a||(a=new u),a.x=this.x-this.displayWidth*this.originX+this.displayWidth,a.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(a,n)},getLeftCenter:function(a,n){return a||(a=new u),a.x=this.x-this.displayWidth*this.originX,a.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(a,n)},getRightCenter:function(a,n){return a||(a=new u),a.x=this.x-this.displayWidth*this.originX+this.displayWidth,a.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(a,n)},getBottomLeft:function(a,n){return a||(a=new u),a.x=this.x-this.displayWidth*this.originX,a.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(a,n)},getBottomCenter:function(a,n){return a||(a=new u),a.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,a.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(a,n)},getBottomRight:function(a,n){return a||(a=new u),a.x=this.x-this.displayWidth*this.originX+this.displayWidth,a.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(a,n)},getBounds:function(a){a===void 0&&(a=new l);var n,r,d,s,h,c,p,m;if(this.parentContainer){var x=this.parentContainer.getBoundsTransformMatrix();this.getTopLeft(a),x.transformPoint(a.x,a.y,a),n=a.x,r=a.y,this.getTopRight(a),x.transformPoint(a.x,a.y,a),d=a.x,s=a.y,this.getBottomLeft(a),x.transformPoint(a.x,a.y,a),h=a.x,c=a.y,this.getBottomRight(a),x.transformPoint(a.x,a.y,a),p=a.x,m=a.y}else this.getTopLeft(a),n=a.x,r=a.y,this.getTopRight(a),d=a.x,s=a.y,this.getBottomLeft(a),h=a.x,c=a.y,this.getBottomRight(a),p=a.x,m=a.y;return a.x=Math.min(n,d,h,p),a.y=Math.min(r,s,c,m),a.width=Math.max(n,d,h,p)-a.x,a.height=Math.max(r,s,c,m)-a.y,a}};f.exports=o},39171:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(76756),g=t(63037),u={mask:null,setMask:function(o){return this.mask=o,this},clearMask:function(o){return o===void 0&&(o=!1),o&&this.mask&&this.mask.destroy(),this.mask=null,this},createBitmapMask:function(o,a,n,r,d){return o===void 0&&(this.texture||this.shader||this.geom)&&(o=this),new l(this.scene,o,a,n,r,d)},createGeometryMask:function(o){return o===void 0&&(this.type==="Graphics"||this.geom)&&(o=this),new g(this.scene,o)}};f.exports=u},28072:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={_originComponent:!0,originX:.5,originY:.5,_displayOriginX:0,_displayOriginY:0,displayOriginX:{get:function(){return this._displayOriginX},set:function(t){this._displayOriginX=t,this.originX=t/this.width}},displayOriginY:{get:function(){return this._displayOriginY},set:function(t){this._displayOriginY=t,this.originY=t/this.height}},setOrigin:function(t,l){return t===void 0&&(t=.5),l===void 0&&(l=t),this.originX=t,this.originY=l,this.updateDisplayOrigin()},setOriginFromFrame:function(){return!this.frame||!this.frame.customPivot?this.setOrigin():(this.originX=this.frame.pivotX,this.originY=this.frame.pivotY,this.updateDisplayOrigin())},setDisplayOrigin:function(t,l){return t===void 0&&(t=0),l===void 0&&(l=t),this.displayOriginX=t,this.displayOriginY=l,this},updateDisplayOrigin:function(){return this._displayOriginX=this.originX*this.width,this._displayOriginY=this.originY*this.height,this}};f.exports=T},54211:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(75606),g=t(63130),u=t(10850),o=t(55303),a=t(93736),n={path:null,rotateToPath:!1,pathRotationOffset:0,pathOffset:null,pathVector:null,pathDelta:null,pathTween:null,pathConfig:null,_prevDirection:o.PLAYING_FORWARD,setPath:function(r,d){d===void 0&&(d=this.pathConfig);var s=this.pathTween;return s&&s.isPlaying()&&s.stop(),this.path=r,d&&this.startFollow(d),this},setRotateToPath:function(r,d){return d===void 0&&(d=0),this.rotateToPath=r,this.pathRotationOffset=d,this},isFollowing:function(){var r=this.pathTween;return r&&r.isPlaying()},startFollow:function(r,d){r===void 0&&(r={}),d===void 0&&(d=0);var s=this.pathTween;s&&s.isPlaying()&&s.stop(),typeof r=="number"&&(r={duration:r}),r.from=u(r,"from",0),r.to=u(r,"to",1);var h=g(r,"positionOnPath",!1);this.rotateToPath=g(r,"rotateToPath",!1),this.pathRotationOffset=u(r,"rotationOffset",0);var c=u(r,"startAt",d);if(c&&(r.onStart=function(m){var x=m.data[0];x.progress=c,x.elapsed=x.duration*c;var S=x.ease(x.progress);x.current=x.start+(x.end-x.start)*S,x.setTargetValue()}),this.pathOffset||(this.pathOffset=new a(this.x,this.y)),this.pathVector||(this.pathVector=new a),this.pathDelta||(this.pathDelta=new a),this.pathDelta.reset(),r.persist=!0,this.pathTween=this.scene.sys.tweens.addCounter(r),this.path.getStartPoint(this.pathOffset),h&&(this.x=this.pathOffset.x,this.y=this.pathOffset.y),this.pathOffset.x=this.x-this.pathOffset.x,this.pathOffset.y=this.y-this.pathOffset.y,this._prevDirection=o.PLAYING_FORWARD,this.rotateToPath){var p=this.path.getPoint(.1);this.rotation=Math.atan2(p.y-this.y,p.x-this.x)+l(this.pathRotationOffset)}return this.pathConfig=r,this},pauseFollow:function(){var r=this.pathTween;return r&&r.isPlaying()&&r.pause(),this},resumeFollow:function(){var r=this.pathTween;return r&&r.isPaused()&&r.resume(),this},stopFollow:function(){var r=this.pathTween;return r&&r.isPlaying()&&r.stop(),this},pathUpdate:function(){var r=this.pathTween;if(r){var d=r.data[0],s=this.pathDelta,h=this.pathVector;if(s.copy(h).negate(),d.state===o.COMPLETE){this.path.getPoint(d.end,h),s.add(h),h.add(this.pathOffset),this.setPosition(h.x,h.y);return}else if(d.state!==o.PLAYING_FORWARD&&d.state!==o.PLAYING_BACKWARD)return;this.path.getPoint(r.getValue(),h),s.add(h),h.add(this.pathOffset);var c=this.x,p=this.y;this.setPosition(h.x,h.y);var m=this.x-c,x=this.y-p;if(m===0&&x===0)return;if(d.state!==this._prevDirection){this._prevDirection=d.state;return}this.rotateToPath&&(this.rotation=Math.atan2(x,m)+l(this.pathRotationOffset))}}};f.exports=n},58210:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(28699),g={defaultPipeline:null,pipeline:null,pipelineData:null,initPipeline:function(u){this.pipelineData={};var o=this.scene.sys.renderer;if(!o)return!1;var a=o.pipelines;if(a){u===void 0&&(u=a.default);var n=a.get(u);if(n)return this.defaultPipeline=n,this.pipeline=n,!0}return!1},setPipeline:function(u,o,a){var n=this.scene.sys.renderer;if(!n)return this;var r=n.pipelines;if(r){var d=r.get(u);d&&(this.pipeline=d),o&&(this.pipelineData=a?l(o):o)}return this},setPipelineData:function(u,o){var a=this.pipelineData;return o===void 0?delete a[u]:a[u]=o,this},resetPipeline:function(u){return u===void 0&&(u=!1),this.pipeline=this.defaultPipeline,u&&(this.pipelineData={}),this.pipeline!==null},getPipelineName:function(){return this.pipeline.name}};f.exports=g},44086:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(28699),g=t(88677),u=t(72677),o={hasPostPipeline:!1,postPipelines:null,postPipelineData:null,preFX:null,postFX:null,initPostPipeline:function(a){this.postPipelines=[],this.postPipelineData={},this.postFX=new g(this,!0),a&&(this.preFX=new g(this,!1))},setPostPipeline:function(a,n,r){var d=this.scene.sys.renderer;if(!d)return this;var s=d.pipelines;if(s){Array.isArray(a)||(a=[a]);for(var h=0;h0,this},setPostPipelineData:function(a,n){var r=this.postPipelineData;return n===void 0?delete r[a]:r[a]=n,this},getPostPipeline:function(a){for(var n=typeof a=="string",r=this.postPipelines,d=[],s=0;s=0;d--){var s=r[d];(n&&s.name===a||!n&&s===a)&&(s.destroy(),u(r,d))}return this.hasPostPipeline=this.postPipelines.length>0,this},clearFX:function(){return this.preFX&&this.preFX.clear(),this.postFX&&this.postFX.clear(),this}};f.exports=o},45900:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={scrollFactorX:1,scrollFactorY:1,setScrollFactor:function(t,l){return l===void 0&&(l=t),this.scrollFactorX=t,this.scrollFactorY=l,this}};f.exports=T},31654:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={_sizeComponent:!0,width:0,height:0,displayWidth:{get:function(){return Math.abs(this.scaleX*this.frame.realWidth)},set:function(t){this.scaleX=t/this.frame.realWidth}},displayHeight:{get:function(){return Math.abs(this.scaleY*this.frame.realHeight)},set:function(t){this.scaleY=t/this.frame.realHeight}},setSizeToFrame:function(t){t||(t=this.frame),this.width=t.realWidth,this.height=t.realHeight;var l=this.input;return l&&!l.customHitArea&&(l.hitArea.width=this.width,l.hitArea.height=this.height),this},setSize:function(t,l){return this.width=t,this.height=l,this},setDisplaySize:function(t,l){return this.displayWidth=t,this.displayHeight=l,this}};f.exports=T},82081:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(82047),g=8,u={texture:null,frame:null,isCropped:!1,setTexture:function(o,a){return this.texture=this.scene.sys.textures.get(o),this.setFrame(a)},setFrame:function(o,a,n){return a===void 0&&(a=!0),n===void 0&&(n=!0),o instanceof l?(this.texture=this.scene.sys.textures.get(o.texture.key),this.frame=o):this.frame=this.texture.get(o),!this.frame.cutWidth||!this.frame.cutHeight?this.renderFlags&=~g:this.renderFlags|=g,this._sizeComponent&&a&&this.setSizeToFrame(),this._originComponent&&n&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this}};f.exports=u},21850:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(82047),g=8,u={texture:null,frame:null,isCropped:!1,setCrop:function(o,a,n,r){if(o===void 0)this.isCropped=!1;else if(this.frame){if(typeof o=="number")this.frame.setCropUVs(this._crop,o,a,n,r,this.flipX,this.flipY);else{var d=o;this.frame.setCropUVs(this._crop,d.x,d.y,d.width,d.height,this.flipX,this.flipY)}this.isCropped=!0}return this},setTexture:function(o,a){return this.texture=this.scene.sys.textures.get(o),this.setFrame(a)},setFrame:function(o,a,n){return a===void 0&&(a=!0),n===void 0&&(n=!0),o instanceof l?(this.texture=this.scene.sys.textures.get(o.texture.key),this.frame=o):this.frame=this.texture.get(o),!this.frame.cutWidth||!this.frame.cutHeight?this.renderFlags&=~g:this.renderFlags|=g,this._sizeComponent&&a&&this.setSizeToFrame(),this._originComponent&&n&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this.isCropped&&this.frame.updateCropUVs(this._crop,this.flipX,this.flipY),this},resetCropObject:function(){return{u0:0,v0:0,u1:0,v1:0,width:0,height:0,x:0,y:0,flipX:!1,flipY:!1,cx:0,cy:0,cw:0,ch:0}}};f.exports=u},58072:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={tintTopLeft:16777215,tintTopRight:16777215,tintBottomLeft:16777215,tintBottomRight:16777215,tintFill:!1,clearTint:function(){return this.setTint(16777215),this},setTint:function(t,l,g,u){return t===void 0&&(t=16777215),l===void 0&&(l=t,g=t,u=t),this.tintTopLeft=t,this.tintTopRight=l,this.tintBottomLeft=g,this.tintBottomRight=u,this.tintFill=!1,this},setTintFill:function(t,l,g,u){return this.setTint(t,l,g,u),this.tintFill=!0,this},tint:{set:function(t){this.setTint(t,t,t,t)}},isTinted:{get:function(){var t=16777215;return this.tintFill||this.tintTopLeft!==t||this.tintTopRight!==t||this.tintBottomLeft!==t||this.tintBottomRight!==t}}};f.exports=T},48129:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){var l={name:t.name,type:t.type,x:t.x,y:t.y,depth:t.depth,scale:{x:t.scaleX,y:t.scaleY},origin:{x:t.originX,y:t.originY},flipX:t.flipX,flipY:t.flipY,rotation:t.rotation,alpha:t.alpha,visible:t.visible,blendMode:t.blendMode,textureKey:"",frameKey:"",data:{}};return t.texture&&(l.textureKey=t.texture.key,l.frameKey=t.frame.name),l};f.exports=T},56584:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(83392),g=t(69360),u=t(64462),o=t(35786),a=t(62138),n=t(93736),r=4,d={hasTransformComponent:!0,_scaleX:1,_scaleY:1,_rotation:0,x:0,y:0,z:0,w:0,scale:{get:function(){return(this._scaleX+this._scaleY)/2},set:function(s){this._scaleX=s,this._scaleY=s,s===0?this.renderFlags&=~r:this.renderFlags|=r}},scaleX:{get:function(){return this._scaleX},set:function(s){this._scaleX=s,s===0?this.renderFlags&=~r:this._scaleY!==0&&(this.renderFlags|=r)}},scaleY:{get:function(){return this._scaleY},set:function(s){this._scaleY=s,s===0?this.renderFlags&=~r:this._scaleX!==0&&(this.renderFlags|=r)}},angle:{get:function(){return a(this._rotation*l.RAD_TO_DEG)},set:function(s){this.rotation=a(s)*l.DEG_TO_RAD}},rotation:{get:function(){return this._rotation},set:function(s){this._rotation=o(s)}},setPosition:function(s,h,c,p){return s===void 0&&(s=0),h===void 0&&(h=s),c===void 0&&(c=0),p===void 0&&(p=0),this.x=s,this.y=h,this.z=c,this.w=p,this},copyPosition:function(s){return s.x!==void 0&&(this.x=s.x),s.y!==void 0&&(this.y=s.y),s.z!==void 0&&(this.z=s.z),s.w!==void 0&&(this.w=s.w),this},setRandomPosition:function(s,h,c,p){return s===void 0&&(s=0),h===void 0&&(h=0),c===void 0&&(c=this.scene.sys.scale.width),p===void 0&&(p=this.scene.sys.scale.height),this.x=s+Math.random()*c,this.y=h+Math.random()*p,this},setRotation:function(s){return s===void 0&&(s=0),this.rotation=s,this},setAngle:function(s){return s===void 0&&(s=0),this.angle=s,this},setScale:function(s,h){return s===void 0&&(s=1),h===void 0&&(h=s),this.scaleX=s,this.scaleY=h,this},setX:function(s){return s===void 0&&(s=0),this.x=s,this},setY:function(s){return s===void 0&&(s=0),this.y=s,this},setZ:function(s){return s===void 0&&(s=0),this.z=s,this},setW:function(s){return s===void 0&&(s=0),this.w=s,this},getLocalTransformMatrix:function(s){return s===void 0&&(s=new g),s.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY)},getWorldTransformMatrix:function(s,h){s===void 0&&(s=new g);var c=this.parentContainer;if(!c)return this.getLocalTransformMatrix(s);for(h||(h=new g),s.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY);c;)h.applyITRS(c.x,c.y,c._rotation,c._scaleX,c._scaleY),h.multiply(s,s),c=c.parentContainer;return s},getLocalPoint:function(s,h,c,p){c||(c=new n),p||(p=this.scene.sys.cameras.main);var m=p.scrollX,x=p.scrollY,S=s+m*this.scrollFactorX-m,P=h+x*this.scrollFactorY-x;return this.parentContainer?this.getWorldTransformMatrix().applyInverse(S,P,c):u(S,P,this.x,this.y,this.rotation,this.scaleX,this.scaleY,c),this._originComponent&&(c.x+=this._displayOriginX,c.y+=this._displayOriginY),c},getParentRotation:function(){for(var s=0,h=this.parentContainer;h;)s+=h.rotation,h=h.parentContainer;return s}};f.exports=d},69360:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(83392),u=t(93736),o=new l({initialize:function(n,r,d,s,h,c){n===void 0&&(n=1),r===void 0&&(r=0),d===void 0&&(d=0),s===void 0&&(s=1),h===void 0&&(h=0),c===void 0&&(c=0),this.matrix=new Float32Array([n,r,d,s,h,c,0,0,1]),this.decomposedMatrix={translateX:0,translateY:0,scaleX:1,scaleY:1,rotation:0},this.quad=new Float32Array(8)},a:{get:function(){return this.matrix[0]},set:function(a){this.matrix[0]=a}},b:{get:function(){return this.matrix[1]},set:function(a){this.matrix[1]=a}},c:{get:function(){return this.matrix[2]},set:function(a){this.matrix[2]=a}},d:{get:function(){return this.matrix[3]},set:function(a){this.matrix[3]=a}},e:{get:function(){return this.matrix[4]},set:function(a){this.matrix[4]=a}},f:{get:function(){return this.matrix[5]},set:function(a){this.matrix[5]=a}},tx:{get:function(){return this.matrix[4]},set:function(a){this.matrix[4]=a}},ty:{get:function(){return this.matrix[5]},set:function(a){this.matrix[5]=a}},rotation:{get:function(){return Math.acos(this.a/this.scaleX)*(Math.atan(-this.c/this.a)<0?-1:1)}},rotationNormalized:{get:function(){var a=this.matrix,n=a[0],r=a[1],d=a[2],s=a[3];return n||r?r>0?Math.acos(n/this.scaleX):-Math.acos(n/this.scaleX):d||s?g.TAU-(s>0?Math.acos(-d/this.scaleY):-Math.acos(d/this.scaleY)):0}},scaleX:{get:function(){return Math.sqrt(this.a*this.a+this.b*this.b)}},scaleY:{get:function(){return Math.sqrt(this.c*this.c+this.d*this.d)}},loadIdentity:function(){var a=this.matrix;return a[0]=1,a[1]=0,a[2]=0,a[3]=1,a[4]=0,a[5]=0,this},translate:function(a,n){var r=this.matrix;return r[4]=r[0]*a+r[2]*n+r[4],r[5]=r[1]*a+r[3]*n+r[5],this},scale:function(a,n){var r=this.matrix;return r[0]*=a,r[1]*=a,r[2]*=n,r[3]*=n,this},rotate:function(a){var n=Math.sin(a),r=Math.cos(a),d=this.matrix,s=d[0],h=d[1],c=d[2],p=d[3];return d[0]=s*r+c*n,d[1]=h*r+p*n,d[2]=s*-n+c*r,d[3]=h*-n+p*r,this},multiply:function(a,n){var r=this.matrix,d=a.matrix,s=r[0],h=r[1],c=r[2],p=r[3],m=r[4],x=r[5],S=d[0],P=d[1],E=d[2],R=d[3],M=d[4],O=d[5],w=n===void 0?r:n.matrix;return w[0]=S*s+P*c,w[1]=S*h+P*p,w[2]=E*s+R*c,w[3]=E*h+R*p,w[4]=M*s+O*c+m,w[5]=M*h+O*p+x,w},multiplyWithOffset:function(a,n,r){var d=this.matrix,s=a.matrix,h=d[0],c=d[1],p=d[2],m=d[3],x=d[4],S=d[5],P=n*h+r*p+x,E=n*c+r*m+S,R=s[0],M=s[1],O=s[2],w=s[3],L=s[4],F=s[5];return d[0]=R*h+M*p,d[1]=R*c+M*m,d[2]=O*h+w*p,d[3]=O*c+w*m,d[4]=L*h+F*p+P,d[5]=L*c+F*m+E,this},transform:function(a,n,r,d,s,h){var c=this.matrix,p=c[0],m=c[1],x=c[2],S=c[3],P=c[4],E=c[5];return c[0]=a*p+n*x,c[1]=a*m+n*S,c[2]=r*p+d*x,c[3]=r*m+d*S,c[4]=s*p+h*x+P,c[5]=s*m+h*S+E,this},transformPoint:function(a,n,r){r===void 0&&(r={x:0,y:0});var d=this.matrix,s=d[0],h=d[1],c=d[2],p=d[3],m=d[4],x=d[5];return r.x=a*s+n*c+m,r.y=a*h+n*p+x,r},invert:function(){var a=this.matrix,n=a[0],r=a[1],d=a[2],s=a[3],h=a[4],c=a[5],p=n*s-r*d;return a[0]=s/p,a[1]=-r/p,a[2]=-d/p,a[3]=n/p,a[4]=(d*c-s*h)/p,a[5]=-(n*c-r*h)/p,this},copyFrom:function(a){var n=this.matrix;return n[0]=a.a,n[1]=a.b,n[2]=a.c,n[3]=a.d,n[4]=a.e,n[5]=a.f,this},copyFromArray:function(a){var n=this.matrix;return n[0]=a[0],n[1]=a[1],n[2]=a[2],n[3]=a[3],n[4]=a[4],n[5]=a[5],this},copyToContext:function(a){var n=this.matrix;return a.transform(n[0],n[1],n[2],n[3],n[4],n[5]),a},setToContext:function(a){var n=this.matrix;return a.setTransform(n[0],n[1],n[2],n[3],n[4],n[5]),a},copyToArray:function(a){var n=this.matrix;return a===void 0?a=[n[0],n[1],n[2],n[3],n[4],n[5]]:(a[0]=n[0],a[1]=n[1],a[2]=n[2],a[3]=n[3],a[4]=n[4],a[5]=n[5]),a},setTransform:function(a,n,r,d,s,h){var c=this.matrix;return c[0]=a,c[1]=n,c[2]=r,c[3]=d,c[4]=s,c[5]=h,this},decomposeMatrix:function(){var a=this.decomposedMatrix,n=this.matrix,r=n[0],d=n[1],s=n[2],h=n[3],c=r*h-d*s;if(a.translateX=n[4],a.translateY=n[5],r||d){var p=Math.sqrt(r*r+d*d);a.rotation=d>0?Math.acos(r/p):-Math.acos(r/p),a.scaleX=p,a.scaleY=c/p}else if(s||h){var m=Math.sqrt(s*s+h*h);a.rotation=Math.PI*.5-(h>0?Math.acos(-s/m):-Math.acos(s/m)),a.scaleX=c/m,a.scaleY=m}else a.rotation=0,a.scaleX=0,a.scaleY=0;return a},applyITRS:function(a,n,r,d,s){var h=this.matrix,c=Math.sin(r),p=Math.cos(r);return h[4]=a,h[5]=n,h[0]=p*d,h[1]=c*d,h[2]=-c*s,h[3]=p*s,this},applyInverse:function(a,n,r){r===void 0&&(r=new u);var d=this.matrix,s=d[0],h=d[1],c=d[2],p=d[3],m=d[4],x=d[5],S=1/(s*p+c*-h);return r.x=p*S*a+-c*S*n+(x*c-m*p)*S,r.y=s*S*n+-h*S*a+(-x*s+m*h)*S,r},setQuad:function(a,n,r,d,s,h){h===void 0&&(h=this.quad);var c=this.matrix,p=c[0],m=c[1],x=c[2],S=c[3],P=c[4],E=c[5];return h[0]=a*p+n*x+P,h[1]=a*m+n*S+E,h[2]=a*p+d*x+P,h[3]=a*m+d*S+E,h[4]=r*p+d*x+P,h[5]=r*m+d*S+E,h[6]=r*p+n*x+P,h[7]=r*m+n*S+E,s&&h.forEach(function(R,M){h[M]=Math.round(R)}),h},getX:function(a,n){return a*this.a+n*this.c+this.e},getY:function(a,n){return a*this.b+n*this.d+this.f},getXRound:function(a,n,r){var d=this.getX(a,n);return r&&(d=Math.round(d)),d},getYRound:function(a,n,r){var d=this.getY(a,n);return r&&(d=Math.round(d)),d},getCSSMatrix:function(){var a=this.matrix;return"matrix("+a[0]+","+a[1]+","+a[2]+","+a[3]+","+a[4]+","+a[5]+")"},destroy:function(){this.matrix=null,this.quad=null,this.decomposedMatrix=null}});f.exports=o},59694:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=1,t={_visible:!0,visible:{get:function(){return this._visible},set:function(l){l?(this._visible=!0,this.renderFlags|=T):(this._visible=!1,this.renderFlags&=~T)}},setVisible:function(l){return this.visible=l,this}};f.exports=t},64937:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Alpha:t(97123),AlphaSingle:t(15720),BlendMode:t(69732),ComputedSize:t(28284),Crop:t(85293),Depth:t(14975),Flip:t(92972),FX:t(88677),GetBounds:t(80693),Mask:t(39171),Origin:t(28072),PathFollower:t(54211),Pipeline:t(58210),PostPipeline:t(44086),ScrollFactor:t(45900),Size:t(31654),Texture:t(82081),TextureCrop:t(21850),Tint:t(58072),ToJSON:t(48129),Transform:t(56584),TransformMatrix:t(69360),Visible:t(59694)}},70339:(f,T,t)=>{/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(59959),g=t(95723),u=t(56694),o=t(64937),a=t(56631),n=t(89980),r=t(74118),d=t(98524),s=t(58795),h=t(93736),c=new u({Extends:n,Mixins:[o.AlphaSingle,o.BlendMode,o.ComputedSize,o.Depth,o.Mask,o.PostPipeline,o.Transform,o.Visible,d],initialize:function(m,x,S,P){n.call(this,m,"Container"),this.list=[],this.exclusive=!0,this.maxSize=-1,this.position=0,this.localTransform=new o.TransformMatrix,this.tempTransformMatrix=new o.TransformMatrix,this._sortKey="",this._sysEvents=m.sys.events,this.scrollFactorX=1,this.scrollFactorY=1,this.initPostPipeline(),this.setPosition(x,S),this.setBlendMode(g.SKIP_CHECK),P&&this.add(P)},originX:{get:function(){return .5}},originY:{get:function(){return .5}},displayOriginX:{get:function(){return this.width*.5}},displayOriginY:{get:function(){return this.height*.5}},setExclusive:function(p){return p===void 0&&(p=!0),this.exclusive=p,this},getBounds:function(p){if(p===void 0&&(p=new r),p.setTo(this.x,this.y,0,0),this.parentContainer){var m=this.parentContainer.getBoundsTransformMatrix(),x=m.transformPoint(this.x,this.y);p.setTo(x.x,x.y,0,0)}if(this.list.length>0){var S=this.list,P=new r,E=!1;p.setEmpty();for(var R=0;R-1},setAll:function(p,m,x,S){return l.SetAll(this.list,p,m,x,S),this},each:function(p,m){var x=[null],S,P=this.list.slice(),E=P.length;for(S=2;S0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}},preDestroy:function(){this.removeAll(!!this.exclusive),this.localTransform.destroy(),this.tempTransformMatrix.destroy(),this.list=[]}});f.exports=c},13916:f=>{/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){g.addToRenderList(l);var o=l.list;if(o.length!==0){var a=l.localTransform;u?(a.loadIdentity(),a.multiply(u),a.translate(l.x,l.y),a.rotate(l.rotation),a.scale(l.scaleX,l.scaleY)):a.applyITRS(l.x,l.y,l.rotation,l.scaleX,l.scaleY);var n=l.blendMode!==-1;n||t.setBlendMode(0);var r=l._alpha,d=l.scrollFactorX,s=l.scrollFactorY;l.mask&&l.mask.preRenderCanvas(t,null,g);for(var h=0;h{/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(88933),g=t(70339),u=t(99325),o=t(20494);u.register("container",function(a,n){a===void 0&&(a={});var r=o(a,"x",0),d=o(a,"y",0),s=o(a,"children",null),h=new g(this.scene,r,d,s);return n!==void 0&&(a.add=n),l(this.scene,h,a),h})},23400:(f,T,t)=>{/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(70339),g=t(61286);g.register("container",function(u,o,a){return this.displayList.add(new l(this.scene,u,o,a))})},98524:(f,T,t)=>{/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(36934),u=t(13916),f.exports={renderWebGL:g,renderCanvas:u}},36934:f=>{/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){g.addToRenderList(l);var o=l.list,a=o.length;if(a!==0){var n=l.localTransform;u?(n.loadIdentity(),n.multiply(u),n.translate(l.x,l.y),n.rotate(l.rotation),n.scale(l.scaleX,l.scaleY)):n.applyITRS(l.x,l.y,l.rotation,l.scaleX,l.scaleY),t.pipelines.preBatch(l);var r=l.blendMode!==-1;r||t.setBlendMode(0);for(var d=l.alpha,s=l.scrollFactorX,h=l.scrollFactorY,c=0;c{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports=["normal","multiply","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},38943:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(64937),u=t(11603),o=t(89980),a=t(42911),n=t(55638),r=t(7599),d=t(51729),s=new l({Extends:o,Mixins:[g.AlphaSingle,g.BlendMode,g.Depth,g.Origin,g.ScrollFactor,g.Transform,g.Visible,u],initialize:function(c,p,m,x,S,P){o.call(this,c,"DOMElement"),this.parent=c.sys.game.domContainer,this.cache=c.sys.cache.html,this.node,this.transformOnly=!1,this.skewX=0,this.skewY=0,this.rotate3d=new d,this.rotate3dAngle="deg",this.pointerEvents="auto",this.width=0,this.height=0,this.displayWidth=0,this.displayHeight=0,this.handler=this.dispatchNativeEvent.bind(this),this.setPosition(p,m),typeof x=="string"?x[0]==="#"?this.setElement(x.substr(1),S,P):this.createElement(x,S,P):x&&this.setElement(x,S,P),c.sys.events.on(r.SLEEP,this.handleSceneEvent,this),c.sys.events.on(r.WAKE,this.handleSceneEvent,this),c.sys.events.on(r.PRE_RENDER,this.preRender,this)},handleSceneEvent:function(h){var c=this.node,p=c.style;c&&(p.display=h.settings.visible?"block":"none")},setSkew:function(h,c){return h===void 0&&(h=0),c===void 0&&(c=h),this.skewX=h,this.skewY=c,this},setPerspective:function(h){return this.parent.style.perspective=h+"px",this},perspective:{get:function(){return parseFloat(this.parent.style.perspective)},set:function(h){this.parent.style.perspective=h+"px"}},addListener:function(h){if(this.node){h=h.split(" ");for(var c=0;c{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(2452),g=t(89980),u=t(69360),o=new u,a=new u,n=new u,r=function(d,s,h,c){if(s.node){var p=s.node.style,m=s.scene.sys.settings;if(!p||!m.visible||g.RENDER_MASK!==s.renderFlags||s.cameraFilter!==0&&s.cameraFilter&h.id||s.parentContainer&&!s.parentContainer.willRender()){p.display="none";return}var x=s.parentContainer,S=h.alpha*s.alpha;x&&(S*=x.alpha);var P=o,E=a,R=n,M=0,O=0,w="0%",L="0%";c?(M=s.width*s.scaleX*s.originX,O=s.height*s.scaleY*s.originY,E.applyITRS(s.x-M,s.y-O,s.rotation,s.scaleX,s.scaleY),P.copyFrom(h.matrix),P.multiplyWithOffset(c,-h.scrollX*s.scrollFactorX,-h.scrollY*s.scrollFactorY),E.e=s.x-M,E.f=s.y-O,P.multiply(E,R)):(M=s.width*s.originX,O=s.height*s.originY,E.applyITRS(s.x-M,s.y-O,s.rotation,s.scaleX,s.scaleY),P.copyFrom(h.matrix),w=100*s.originX+"%",L=100*s.originY+"%",E.e-=h.scrollX*s.scrollFactorX,E.f-=h.scrollY*s.scrollFactorY,P.multiply(E,R)),s.transformOnly||(p.display="block",p.opacity=S,p.zIndex=s._depth,p.pointerEvents=s.pointerEvents,p.mixBlendMode=l[s._blendMode]),p.transform=R.getCSSMatrix()+" skew("+s.skewX+"rad, "+s.skewY+"rad) rotate3d("+s.rotate3d.x+","+s.rotate3d.y+","+s.rotate3d.z+","+s.rotate3d.w+s.rotate3dAngle+")",p.transformOrigin=w+" "+L}};f.exports=r},66788:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(38943),g=t(61286);g.register("dom",function(u,o,a,n,r){var d=new l(this.scene,u,o,a,n,r);return this.displayList.add(d),d})},11603:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(66070),u=t(66070),f.exports={renderWebGL:g,renderCanvas:u}},65492:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="addedtoscene"},98398:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="destroy"},40239:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="removedfromscene"},17286:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="complete"},31496:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="created"},89587:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="error"},59792:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="locked"},96342:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="loop"},6017:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="playing"},49614:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="play"},24418:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="seeked"},87318:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="seeking"},50009:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="stalled"},61922:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="stop"},79501:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="textureready"},4052:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="unlocked"},54857:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="unsupported"},56631:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={ADDED_TO_SCENE:t(65492),DESTROY:t(98398),REMOVED_FROM_SCENE:t(40239),VIDEO_COMPLETE:t(17286),VIDEO_CREATED:t(31496),VIDEO_ERROR:t(89587),VIDEO_LOCKED:t(59792),VIDEO_LOOP:t(96342),VIDEO_PLAY:t(49614),VIDEO_PLAYING:t(6017),VIDEO_SEEKED:t(24418),VIDEO_SEEKING:t(87318),VIDEO_STALLED:t(50009),VIDEO_STOP:t(61922),VIDEO_TEXTURE:t(79501),VIDEO_UNLOCKED:t(4052),VIDEO_UNSUPPORTED:t(54857)}},39419:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(64937),u=t(89980),o=t(79394),a=new l({Extends:u,Mixins:[g.Alpha,g.BlendMode,g.Depth,g.Flip,g.Origin,g.ScrollFactor,g.Size,g.Texture,g.Tint,g.Transform,g.Visible,o],initialize:function(r){u.call(this,r,"Extern")},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(){},render:function(){}});f.exports=a},96699:()=>{},41155:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(39419),g=t(61286);g.register("extern",function(){var u=new l(this.scene);return this.displayList.add(u),u})},79394:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(81410),u=t(96699),f.exports={renderWebGL:g,renderCanvas:u}},81410:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(73329),g=function(u,o,a,n){u.pipelines.clear();var r=l(o,a,n).calc;o.render.call(o,u,a,r),u.pipelines.rebind()};f.exports=g},36266:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={ARC:0,BEGIN_PATH:1,CLOSE_PATH:2,FILL_RECT:3,LINE_TO:4,MOVE_TO:5,LINE_STYLE:6,FILL_STYLE:7,FILL_PATH:8,STROKE_PATH:9,FILL_TRIANGLE:10,STROKE_TRIANGLE:11,SAVE:14,RESTORE:15,TRANSLATE:16,SCALE:17,ROTATE:18,GRADIENT_FILL_STYLE:21,GRADIENT_LINE_STYLE:22}},33182:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(51052),g=t(56694),u=t(36266),o=t(64937),a=t(95669),n=t(89980),r=t(72632),d=t(10850),s=t(83392),h=t(60898),c=new g({Extends:n,Mixins:[o.AlphaSingle,o.BlendMode,o.Depth,o.Mask,o.Pipeline,o.PostPipeline,o.Transform,o.Visible,o.ScrollFactor,h],initialize:function(m,x){var S=d(x,"x",0),P=d(x,"y",0);n.call(this,m,"Graphics"),this.setPosition(S,P),this.initPipeline(),this.initPostPipeline(),this.displayOriginX=0,this.displayOriginY=0,this.commandBuffer=[],this.defaultFillColor=-1,this.defaultFillAlpha=1,this.defaultStrokeWidth=1,this.defaultStrokeColor=-1,this.defaultStrokeAlpha=1,this._lineWidth=1,this.setDefaultStyles(x)},setDefaultStyles:function(p){return d(p,"lineStyle",null)&&(this.defaultStrokeWidth=d(p,"lineStyle.width",1),this.defaultStrokeColor=d(p,"lineStyle.color",16777215),this.defaultStrokeAlpha=d(p,"lineStyle.alpha",1),this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha)),d(p,"fillStyle",null)&&(this.defaultFillColor=d(p,"fillStyle.color",16777215),this.defaultFillAlpha=d(p,"fillStyle.alpha",1),this.fillStyle(this.defaultFillColor,this.defaultFillAlpha)),this},lineStyle:function(p,m,x){return x===void 0&&(x=1),this.commandBuffer.push(u.LINE_STYLE,p,m,x),this._lineWidth=p,this},fillStyle:function(p,m){return m===void 0&&(m=1),this.commandBuffer.push(u.FILL_STYLE,p,m),this},fillGradientStyle:function(p,m,x,S,P,E,R,M){return P===void 0&&(P=1),E===void 0&&(E=P),R===void 0&&(R=P),M===void 0&&(M=P),this.commandBuffer.push(u.GRADIENT_FILL_STYLE,P,E,R,M,p,m,x,S),this},lineGradientStyle:function(p,m,x,S,P,E){return E===void 0&&(E=1),this.commandBuffer.push(u.GRADIENT_LINE_STYLE,p,E,m,x,S,P),this},beginPath:function(){return this.commandBuffer.push(u.BEGIN_PATH),this},closePath:function(){return this.commandBuffer.push(u.CLOSE_PATH),this},fillPath:function(){return this.commandBuffer.push(u.FILL_PATH),this},fill:function(){return this.commandBuffer.push(u.FILL_PATH),this},strokePath:function(){return this.commandBuffer.push(u.STROKE_PATH),this},stroke:function(){return this.commandBuffer.push(u.STROKE_PATH),this},fillCircleShape:function(p){return this.fillCircle(p.x,p.y,p.radius)},strokeCircleShape:function(p){return this.strokeCircle(p.x,p.y,p.radius)},fillCircle:function(p,m,x){return this.beginPath(),this.arc(p,m,x,0,s.PI2),this.fillPath(),this},strokeCircle:function(p,m,x){return this.beginPath(),this.arc(p,m,x,0,s.PI2),this.strokePath(),this},fillRectShape:function(p){return this.fillRect(p.x,p.y,p.width,p.height)},strokeRectShape:function(p){return this.strokeRect(p.x,p.y,p.width,p.height)},fillRect:function(p,m,x,S){return this.commandBuffer.push(u.FILL_RECT,p,m,x,S),this},strokeRect:function(p,m,x,S){var P=this._lineWidth/2,E=p-P,R=p+P;return this.beginPath(),this.moveTo(p,m),this.lineTo(p,m+S),this.strokePath(),this.beginPath(),this.moveTo(p+x,m),this.lineTo(p+x,m+S),this.strokePath(),this.beginPath(),this.moveTo(E,m),this.lineTo(R+x,m),this.strokePath(),this.beginPath(),this.moveTo(E,m+S),this.lineTo(R+x,m+S),this.strokePath(),this},fillRoundedRect:function(p,m,x,S,P){P===void 0&&(P=20);var E=P,R=P,M=P,O=P;typeof P!="number"&&(E=r(P,"tl",20),R=r(P,"tr",20),M=r(P,"bl",20),O=r(P,"br",20));var w=E>=0,L=R>=0,F=M>=0,b=O>=0;return E=Math.abs(E),R=Math.abs(R),M=Math.abs(M),O=Math.abs(O),this.beginPath(),this.moveTo(p+E,m),this.lineTo(p+x-R,m),L?this.arc(p+x-R,m+R,R,-s.TAU,0):this.arc(p+x,m,R,Math.PI,s.TAU,!0),this.lineTo(p+x,m+S-O),b?this.arc(p+x-O,m+S-O,O,0,s.TAU):this.arc(p+x,m+S,O,-s.TAU,Math.PI,!0),this.lineTo(p+M,m+S),F?this.arc(p+M,m+S-M,M,s.TAU,Math.PI):this.arc(p,m+S,M,0,-s.TAU,!0),this.lineTo(p,m+E),w?this.arc(p+E,m+E,E,-Math.PI,-s.TAU):this.arc(p,m,E,s.TAU,0,!0),this.fillPath(),this},strokeRoundedRect:function(p,m,x,S,P){P===void 0&&(P=20);var E=P,R=P,M=P,O=P,w=Math.min(x,S)/2;typeof P!="number"&&(E=r(P,"tl",20),R=r(P,"tr",20),M=r(P,"bl",20),O=r(P,"br",20));var L=E>=0,F=R>=0,b=M>=0,D=O>=0;return E=Math.min(Math.abs(E),w),R=Math.min(Math.abs(R),w),M=Math.min(Math.abs(M),w),O=Math.min(Math.abs(O),w),this.beginPath(),this.moveTo(p+E,m),this.lineTo(p+x-R,m),this.moveTo(p+x-R,m),F?this.arc(p+x-R,m+R,R,-s.TAU,0):this.arc(p+x,m,R,Math.PI,s.TAU,!0),this.lineTo(p+x,m+S-O),this.moveTo(p+x,m+S-O),D?this.arc(p+x-O,m+S-O,O,0,s.TAU):this.arc(p+x,m+S,O,-s.TAU,Math.PI,!0),this.lineTo(p+M,m+S),this.moveTo(p+M,m+S),b?this.arc(p+M,m+S-M,M,s.TAU,Math.PI):this.arc(p,m+S,M,0,-s.TAU,!0),this.lineTo(p,m+E),this.moveTo(p,m+E),L?this.arc(p+E,m+E,E,-Math.PI,-s.TAU):this.arc(p,m,E,s.TAU,0,!0),this.strokePath(),this},fillPointShape:function(p,m){return this.fillPoint(p.x,p.y,m)},fillPoint:function(p,m,x){return!x||x<1?x=1:(p-=x/2,m-=x/2),this.commandBuffer.push(u.FILL_RECT,p,m,x,x),this},fillTriangleShape:function(p){return this.fillTriangle(p.x1,p.y1,p.x2,p.y2,p.x3,p.y3)},strokeTriangleShape:function(p){return this.strokeTriangle(p.x1,p.y1,p.x2,p.y2,p.x3,p.y3)},fillTriangle:function(p,m,x,S,P,E){return this.commandBuffer.push(u.FILL_TRIANGLE,p,m,x,S,P,E),this},strokeTriangle:function(p,m,x,S,P,E){return this.commandBuffer.push(u.STROKE_TRIANGLE,p,m,x,S,P,E),this},strokeLineShape:function(p){return this.lineBetween(p.x1,p.y1,p.x2,p.y2)},lineBetween:function(p,m,x,S){return this.beginPath(),this.moveTo(p,m),this.lineTo(x,S),this.strokePath(),this},lineTo:function(p,m){return this.commandBuffer.push(u.LINE_TO,p,m),this},moveTo:function(p,m){return this.commandBuffer.push(u.MOVE_TO,p,m),this},strokePoints:function(p,m,x,S){m===void 0&&(m=!1),x===void 0&&(x=!1),S===void 0&&(S=p.length),this.beginPath(),this.moveTo(p[0].x,p[0].y);for(var P=1;P-1&&this.fillStyle(this.defaultFillColor,this.defaultFillAlpha),this.defaultStrokeColor>-1&&this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha),this},generateTexture:function(p,m,x){var S=this.scene.sys,P=S.game.renderer;m===void 0&&(m=S.scale.width),x===void 0&&(x=S.scale.height),c.TargetCamera.setScene(this.scene),c.TargetCamera.setViewport(0,0,m,x),c.TargetCamera.scrollX=this.x,c.TargetCamera.scrollY=this.y;var E,R,M={willReadFrequently:!0};if(typeof p=="string")if(S.textures.exists(p)){E=S.textures.get(p);var O=E.getSourceImage();O instanceof HTMLCanvasElement&&(R=O.getContext("2d",M))}else E=S.textures.createCanvas(p,m,x),R=E.getSourceImage().getContext("2d",M);else p instanceof HTMLCanvasElement&&(R=p.getContext("2d",M));return R&&(this.renderCanvas(P,this,c.TargetCamera,null,R,!1),E&&E.refresh()),this},preDestroy:function(){this.commandBuffer=[]}});c.TargetCamera=new l,f.exports=c},91543:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(36266),g=t(49584),u=function(o,a,n,r,d,s){var h=a.commandBuffer,c=h.length,p=d||o.currentContext;if(!(c===0||!g(o,p,a,n,r))){n.addToRenderList(a);var m=1,x=1,S=0,P=0,E=1,R=0,M=0,O=0;p.beginPath();for(var w=0;w>>16,M=(S&65280)>>>8,O=S&255,p.strokeStyle="rgba("+R+","+M+","+O+","+m+")",p.lineWidth=E,w+=3;break;case l.FILL_STYLE:P=h[w+1],x=h[w+2],R=(P&16711680)>>>16,M=(P&65280)>>>8,O=P&255,p.fillStyle="rgba("+R+","+M+","+O+","+x+")",w+=2;break;case l.BEGIN_PATH:p.beginPath();break;case l.CLOSE_PATH:p.closePath();break;case l.FILL_PATH:s||p.fill();break;case l.STROKE_PATH:s||p.stroke();break;case l.FILL_RECT:s?p.rect(h[w+1],h[w+2],h[w+3],h[w+4]):p.fillRect(h[w+1],h[w+2],h[w+3],h[w+4]),w+=4;break;case l.FILL_TRIANGLE:p.beginPath(),p.moveTo(h[w+1],h[w+2]),p.lineTo(h[w+3],h[w+4]),p.lineTo(h[w+5],h[w+6]),p.closePath(),s||p.fill(),w+=6;break;case l.STROKE_TRIANGLE:p.beginPath(),p.moveTo(h[w+1],h[w+2]),p.lineTo(h[w+3],h[w+4]),p.lineTo(h[w+5],h[w+6]),p.closePath(),s||p.stroke(),w+=6;break;case l.LINE_TO:p.lineTo(h[w+1],h[w+2]),w+=2;break;case l.MOVE_TO:p.moveTo(h[w+1],h[w+2]),w+=2;break;case l.LINE_FX_TO:p.lineTo(h[w+1],h[w+2]),w+=5;break;case l.MOVE_FX_TO:p.moveTo(h[w+1],h[w+2]),w+=5;break;case l.SAVE:p.save();break;case l.RESTORE:p.restore();break;case l.TRANSLATE:p.translate(h[w+1],h[w+2]),w+=2;break;case l.SCALE:p.scale(h[w+1],h[w+2]),w+=2;break;case l.ROTATE:p.rotate(h[w+1]),w+=1;break;case l.GRADIENT_FILL_STYLE:w+=5;break;case l.GRADIENT_LINE_STYLE:w+=6;break}}p.restore()}};f.exports=u},41286:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(99325),g=t(33182);l.register("graphics",function(u,o){u===void 0&&(u={}),o!==void 0&&(u.add=o);var a=new g(this.scene,u);return u.add&&this.scene.sys.displayList.add(a),a})},13122:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(33182),g=t(61286);g.register("graphics",function(u){return this.displayList.add(new l(this.scene,u))})},60898:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(34429),u=t(91543),u=t(91543),f.exports={renderWebGL:g,renderCanvas:u}},34429:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(36266),g=t(73329),u=t(69360),o=t(75512),a=function(h,c,p){this.x=h,this.y=c,this.width=p},n=function(h,c,p){this.points=[],this.pointsLength=1,this.points[0]=new a(h,c,p)},r=[],d=new u,s=function(h,c,p,m){if(c.commandBuffer.length!==0){p.addToRenderList(c);var x=h.pipelines.set(c.pipeline,c);h.pipelines.preBatch(c);for(var S=g(c,p,m).calc,P=d.loadIdentity(),E=c.commandBuffer,R=p.alpha*c.alpha,M=1,O=x.fillTint,w=x.strokeTint,L=0,F=0,b=0,D=.01,N=Math.PI*2,z,W=[],Y=0,j=!0,G=null,V=o.getTintAppendFloatAlpha,I=0;I0&&(nt=-N+nt%N):nt>N?nt=N:nt<0&&(nt=N+nt%N),G===null&&(G=new n(st+Math.cos(ft)*ct,mt+Math.sin(ft)*ct,M),W.push(G),tt+=D);tt<1+ht;)b=nt*tt+ft,L=st+Math.cos(b)*ct,F=mt+Math.sin(b)*ct,G.points.push(new a(L,F,M)),tt+=D;b=nt+ft,L=st+Math.cos(b)*ct,F=mt+Math.sin(b)*ct,G.points.push(new a(L,F,M));break}case l.FILL_RECT:{x.batchFillRect(E[++I],E[++I],E[++I],E[++I],P,S);break}case l.FILL_TRIANGLE:{x.batchFillTriangle(E[++I],E[++I],E[++I],E[++I],E[++I],E[++I],P,S);break}case l.STROKE_TRIANGLE:{x.batchStrokeTriangle(E[++I],E[++I],E[++I],E[++I],E[++I],E[++I],M,P,S);break}case l.LINE_TO:{G!==null?G.points.push(new a(E[++I],E[++I],M)):(G=new n(E[++I],E[++I],M),W.push(G));break}case l.MOVE_TO:{G=new n(E[++I],E[++I],M),W.push(G);break}case l.SAVE:{r.push(P.copyToArray());break}case l.RESTORE:{P.copyFromArray(r.pop());break}case l.TRANSLATE:{st=E[++I],mt=E[++I],P.translate(st,mt);break}case l.SCALE:{st=E[++I],mt=E[++I],P.scale(st,mt);break}case l.ROTATE:{P.rotate(E[++I]);break}}h.pipelines.postBatch(c)}};f.exports=s},59192:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(83979),g=t(56694),u=t(56631),o=t(6659),a=t(71608),n=t(72632),r=t(10850),d=t(19256),s=t(42911),h=t(75757),c=t(58403),p=t(13747),m=new g({Extends:o,initialize:function(S,P,E){o.call(this),E?P&&!Array.isArray(P)&&(P=[P]):Array.isArray(P)?s(P[0])&&(E=P,P=null):s(P)&&(E=P,P=null),this.scene=S,this.children=new c,this.isParent=!0,this.type="Group",this.classType=n(E,"classType",p),this.name=n(E,"name",""),this.active=n(E,"active",!0),this.maxSize=n(E,"maxSize",-1),this.defaultKey=n(E,"defaultKey",null),this.defaultFrame=n(E,"defaultFrame",null),this.runChildUpdate=n(E,"runChildUpdate",!1),this.createCallback=n(E,"createCallback",null),this.removeCallback=n(E,"removeCallback",null),this.createMultipleCallback=n(E,"createMultipleCallback",null),this.internalCreateCallback=n(E,"internalCreateCallback",null),this.internalRemoveCallback=n(E,"internalRemoveCallback",null),P&&this.addMultiple(P),E&&this.createMultiple(E),this.on(u.ADDED_TO_SCENE,this.addedToScene,this),this.on(u.REMOVED_FROM_SCENE,this.removedFromScene,this)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},create:function(x,S,P,E,R,M){if(x===void 0&&(x=0),S===void 0&&(S=0),P===void 0&&(P=this.defaultKey),E===void 0&&(E=this.defaultFrame),R===void 0&&(R=!0),M===void 0&&(M=!0),this.isFull())return null;var O=new this.classType(this.scene,x,S,P,E);return O.addToDisplayList(this.scene.sys.displayList),O.addToUpdateList(),O.visible=R,O.setActive(M),this.add(O),O},createMultiple:function(x){if(this.isFull())return[];Array.isArray(x)||(x=[x]);var S=[];if(x[0].key)for(var P=0;P=0;b--)if(F=N[b],F.active===P){if(D++,D===S)break}else F=null;return F?(typeof R=="number"&&(F.x=R),typeof M=="number"&&(F.y=M),F):E?this.create(R,M,O,w,L):null},get:function(x,S,P,E,R){return this.getFirst(!1,!0,x,S,P,E,R)},getFirstAlive:function(x,S,P,E,R,M){return this.getFirst(!0,x,S,P,E,R,M)},getFirstDead:function(x,S,P,E,R,M){return this.getFirst(!1,x,S,P,E,R,M)},playAnimation:function(x,S){return l.PlayAnimation(this.children.entries,x,S),this},isFull:function(){return this.maxSize===-1?!1:this.children.size>=this.maxSize},countActive:function(x){x===void 0&&(x=!0);for(var S=0,P=0;P{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(99325),g=t(59192);l.register("group",function(u){return new g(this.scene,null,u)})},62598:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(59192),g=t(61286);g.register("group",function(u,o){return this.updateList.add(new l(this.scene,u,o))})},1539:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(64937),u=t(89980),o=t(57322),a=new l({Extends:u,Mixins:[g.Alpha,g.BlendMode,g.Depth,g.Flip,g.GetBounds,g.Mask,g.Origin,g.Pipeline,g.PostPipeline,g.ScrollFactor,g.Size,g.TextureCrop,g.Tint,g.Transform,g.Visible,o],initialize:function(r,d,s,h,c){u.call(this,r,"Image"),this._crop=this.resetCropObject(),this.setTexture(h,c),this.setPosition(d,s),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)}});f.exports=a},57786:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){g.addToRenderList(l),t.batchSprite(l,l.frame,g,u)};f.exports=T},83556:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(88933),g=t(99325),u=t(20494),o=t(1539);g.register("image",function(a,n){a===void 0&&(a={});var r=u(a,"key",null),d=u(a,"frame",null),s=new o(this.scene,0,0,r,d);return n!==void 0&&(a.add=n),l(this.scene,s,a),s})},20927:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(1539),g=t(61286);g.register("image",function(u,o,a,n){return this.displayList.add(new l(this.scene,u,o,a,n))})},57322:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(59390),u=t(57786),f.exports={renderWebGL:g,renderCanvas:u}},59390:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){g.addToRenderList(l),this.pipeline.batchSprite(l,g,u)};f.exports=T},48013:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l={Events:t(56631),DisplayList:t(91713),GameObjectCreator:t(99325),GameObjectFactory:t(61286),UpdateList:t(92034),Components:t(64937),GetCalcMatrix:t(73329),BuildGameObject:t(88933),BuildGameObjectAnimation:t(32291),GameObject:t(89980),BitmapText:t(44616),Blitter:t(52816),Bob:t(41664),Container:t(70339),DOMElement:t(38943),DynamicBitmapText:t(13468),Extern:t(39419),Graphics:t(33182),Group:t(59192),Image:t(1539),Layer:t(85305),Particles:t(27684),PathFollower:t(29598),RenderTexture:t(15996),RetroFont:t(55873),Rope:t(79968),Sprite:t(13747),Text:t(76555),GetTextSize:t(32979),MeasureText:t(27030),TextStyle:t(74744),TileSprite:t(35856),Zone:t(71030),Video:t(8630),Shape:t(91461),Arc:t(28593),Curve:t(15220),Ellipse:t(28591),Grid:t(39169),IsoBox:t(4415),IsoTriangle:t(65159),Line:t(579),Polygon:t(91249),Rectangle:t(517),Star:t(77843),Triangle:t(21873),Factories:{Blitter:t(38906),Container:t(23400),DOMElement:t(66788),DynamicBitmapText:t(94145),Extern:t(41155),Graphics:t(13122),Group:t(62598),Image:t(20927),Layer:t(17676),Particles:t(81212),PathFollower:t(19626),RenderTexture:t(29599),Rope:t(31982),Sprite:t(66135),StaticBitmapText:t(21797),Text:t(94627),TileSprite:t(20509),Zone:t(34546),Video:t(215),Arc:t(10369),Curve:t(10147),Ellipse:t(99869),Grid:t(9326),IsoBox:t(88154),IsoTriangle:t(67765),Line:t(85665),Polygon:t(88203),Rectangle:t(94355),Star:t(23962),Triangle:t(79296)},Creators:{Blitter:t(68452),Container:t(44516),DynamicBitmapText:t(67513),Graphics:t(41286),Group:t(61295),Image:t(83556),Layer:t(56378),Particles:t(765),RenderTexture:t(85692),Rope:t(96027),Sprite:t(89219),StaticBitmapText:t(95499),Text:t(75397),TileSprite:t(63950),Zone:t(24067),Video:t(65601)}};l.Shader=t(27902),l.Mesh=t(83321),l.NineSlice=t(44139),l.PointLight=t(13171),l.Plane=t(33412),l.Factories.Shader=t(51979),l.Factories.Mesh=t(8767),l.Factories.NineSlice=t(53778),l.Factories.PointLight=t(91201),l.Factories.Plane=t(58322),l.Creators.Shader=t(13908),l.Creators.Mesh=t(41839),l.Creators.NineSlice=t(40964),l.Creators.PointLight=t(162),l.Creators.Plane=t(10912),l.Light=t(14455),l.LightsManager=t(26193),l.LightsPlugin=t(50296),f.exports=l},85305:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(95723),g=t(56694),u=t(64937),o=t(48129),a=t(81078),n=t(6659),r=t(56631),d=t(71207),s=t(58010),h=t(7599),c=t(17922),p=new g({Extends:d,Mixins:[u.AlphaSingle,u.BlendMode,u.Depth,u.Mask,u.PostPipeline,u.Visible,n,s],initialize:function(x,S){d.call(this,x),n.call(this),this.scene=x,this.displayList=null,this.type="Layer",this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,this.systems=x.sys,this.events=x.sys.events,this.sortChildrenFlag=!1,this.addCallback=this.addChildCallback,this.removeCallback=this.removeChildCallback,this.initPostPipeline(),this.clearAlpha(),this.setBlendMode(l.SKIP_CHECK),S&&this.add(S),x.sys.queueDepthSort()},setActive:function(m){return this.active=m,this},setName:function(m){return this.name=m,this},setState:function(m){return this.state=m,this},setDataEnabled:function(){return this.data||(this.data=new a(this)),this},setData:function(m,x){return this.data||(this.data=new a(this)),this.data.set(m,x),this},incData:function(m,x){return this.data||(this.data=new a(this)),this.data.inc(m,x),this},toggleData:function(m){return this.data||(this.data=new a(this)),this.data.toggle(m),this},getData:function(m){return this.data||(this.data=new a(this)),this.data.get(m)},setInteractive:function(){return this},disableInteractive:function(){return this},removeInteractive:function(){return this},addedToScene:function(){},removedFromScene:function(){},update:function(){},toJSON:function(){return o(this)},willRender:function(m){return!(this.renderFlags!==15||this.list.length===0||this.cameraFilter!==0&&this.cameraFilter&m.id)},getIndexList:function(){for(var m=this,x=this.parentContainer,S=[];x&&(S.unshift(x.getIndex(m)),m=x,x.parentContainer);)x=x.parentContainer;return S.unshift(this.displayList.getIndex(m)),S},addChildCallback:function(m){m.displayList&&m.displayList!==this&&m.removeFromDisplayList(),m.displayList||(this.queueDepthSort(),m.displayList=this,m.emit(r.ADDED_TO_SCENE,m,this.scene),this.events.emit(h.ADDED_TO_SCENE,m,this.scene))},removeChildCallback:function(m){this.queueDepthSort(),m.displayList=null,m.emit(r.REMOVED_FROM_SCENE,m,this.scene),this.events.emit(h.REMOVED_FROM_SCENE,m,this.scene)},queueDepthSort:function(){this.sortChildrenFlag=!0},depthSort:function(){this.sortChildrenFlag&&(c(this.list,this.sortByDepth),this.sortChildrenFlag=!1)},sortByDepth:function(m,x){return m._depth-x._depth},getChildren:function(){return this.list},addToDisplayList:function(m){return m===void 0&&(m=this.scene.sys.displayList),this.displayList&&this.displayList!==m&&this.removeFromDisplayList(),m.exists(this)||(this.displayList=m,m.add(this,!0),m.queueDepthSort(),this.emit(r.ADDED_TO_SCENE,this,this.scene),m.events.emit(h.ADDED_TO_SCENE,this,this.scene)),this},removeFromDisplayList:function(){var m=this.displayList||this.scene.sys.displayList;return m.exists(this)&&(m.remove(this,!0),m.queueDepthSort(),this.displayList=null,this.emit(r.REMOVED_FROM_SCENE,this,this.scene),m.events.emit(h.REMOVED_FROM_SCENE,this,this.scene)),this},destroy:function(m){if(!(!this.scene||this.ignoreDestroy)){this.emit(r.DESTROY,this);for(var x=this.list;x.length;)x[0].destroy(m);this.removeAllListeners(),this.resetPostPipeline(!0),this.displayList&&(this.displayList.remove(this,!0),this.displayList.queueDepthSort()),this.data&&(this.data.destroy(),this.data=void 0),this.active=!1,this.visible=!1,this.list=void 0,this.scene=void 0,this.displayList=void 0,this.systems=void 0,this.events=void 0}}});f.exports=p},834:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){var u=l.list;if(u.length!==0){l.depthSort();var o=l.blendMode!==-1;o||t.setBlendMode(0);var a=l._alpha;l.mask&&l.mask.preRenderCanvas(t,null,g);for(var n=0;n{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(88933),g=t(85305),u=t(99325),o=t(20494);u.register("layer",function(a,n){a===void 0&&(a={});var r=o(a,"children",null),d=new g(this.scene,r);return n!==void 0&&(a.add=n),l(this.scene,d,a),d})},17676:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(85305),g=t(61286);g.register("layer",function(u){return this.displayList.add(new l(this.scene,u))})},58010:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(17576),u=t(834),f.exports={renderWebGL:g,renderCanvas:u}},17576:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){var u=l.list,o=u.length;if(o!==0){l.depthSort(),t.pipelines.preBatch(l);var a=l.blendMode!==-1;a||t.setBlendMode(0);for(var n=l.alpha,r=0;r{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(26673),g=t(56694),u=t(64937),o=t(39298),a=t(75512),n=new g({Extends:l,Mixins:[u.Origin,u.ScrollFactor,u.Transform,u.Visible],initialize:function(d,s,h,c,p,m,x){l.call(this,d,s,h),this.color=new o(c,p,m),this.intensity=x,this.renderFlags=15,this.cameraFilter=0,this.setScrollFactor(1,1),this.setOrigin(),this.setDisplayOrigin(h)},displayWidth:{get:function(){return this.diameter},set:function(r){this.diameter=r}},displayHeight:{get:function(){return this.diameter},set:function(r){this.diameter=r}},width:{get:function(){return this.diameter},set:function(r){this.diameter=r}},height:{get:function(){return this.diameter},set:function(r){this.diameter=r}},willRender:function(r){return!(n.RENDER_MASK!==this.renderFlags||this.cameraFilter!==0&&this.cameraFilter&r.id)},setColor:function(r){var d=a.getFloatsFromUintRGB(r);return this.color.set(d[0],d[1],d[2]),this},setIntensity:function(r){return this.intensity=r,this},setRadius:function(r){return this.radius=r,this}});n.RENDER_MASK=15,f.exports=n},26193:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(26535),g=t(56694),u=t(53996),o=t(14455),a=t(13171),n=t(39298),r=t(72677),d=t(17922),s=t(75512),h=new g({initialize:function(){this.lights=[],this.ambientColor=new n(.1,.1,.1),this.active=!1,this.maxLights=-1,this.visibleLights=0},addPointLight:function(c,p,m,x,S,P){return this.systems.displayList.add(new a(this.scene,c,p,m,x,S,P))},enable:function(){return this.maxLights===-1&&(this.maxLights=this.systems.renderer.config.maxLights),this.active=!0,this},disable:function(){return this.active=!1,this},getLights:function(c){for(var p=this.lights,m=c.worldView,x=[],S=0;Sthis.maxLights&&(d(x,this.sortByDistance),x=x.slice(0,this.maxLights)),this.visibleLights=x.length,x},sortByDistance:function(c,p){return c.distance>=p.distance},setAmbientColor:function(c){var p=s.getFloatsFromUintRGB(c);return this.ambientColor.set(p[0],p[1],p[2]),this},getMaxVisibleLights:function(){return this.maxLights},getLightCount:function(){return this.lights.length},addLight:function(c,p,m,x,S){c===void 0&&(c=0),p===void 0&&(p=0),m===void 0&&(m=128),x===void 0&&(x=16777215),S===void 0&&(S=1);var P=s.getFloatsFromUintRGB(x),E=new o(c,p,m,P[0],P[1],P[2],S);return this.lights.push(E),E},removeLight:function(c){var p=this.lights.indexOf(c);return p>=0&&r(this.lights,p),this},shutdown:function(){this.lights.length=0},destroy:function(){this.shutdown()}});f.exports=h},50296:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(26193),u=t(91963),o=t(7599),a=new l({Extends:g,initialize:function(r){this.scene=r,this.systems=r.sys,r.sys.settings.isBooted||r.sys.events.once(o.BOOT,this.boot,this),g.call(this)},boot:function(){var n=this.systems.events;n.on(o.SHUTDOWN,this.shutdown,this),n.on(o.DESTROY,this.destroy,this)},destroy:function(){this.shutdown(),this.scene=void 0,this.systems=void 0}});u.register("LightsPlugin",a,"lights"),f.exports=a},83321:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(64937),u=t(75606),o=t(18693),a=t(89980),n=t(53267),r=t(67623),d=t(73329),s=t(16650),h=t(23464),c=t(23701),p=t(17922),m=t(70015),x=t(85769),S=new l({Extends:a,Mixins:[g.AlphaSingle,g.BlendMode,g.Depth,g.Mask,g.Pipeline,g.PostPipeline,g.ScrollFactor,g.Size,g.Texture,g.Transform,g.Visible,h],initialize:function(E,R,M,O,w,L,F,b,D,N,z,W){R===void 0&&(R=0),M===void 0&&(M=0),O===void 0&&(O="__WHITE"),a.call(this,E,"Mesh"),this.faces=[],this.vertices=[],this.tintFill=!1,this.debugCallback=null,this.debugGraphic=null,this.hideCCW=!0,this.modelPosition=new m,this.modelScale=new m(1,1,1),this.modelRotation=new m,this.dirtyCache=[0,0,0,0,0,0,0,0,0,0,0,0],this.transformMatrix=new s,this.viewPosition=new m,this.viewMatrix=new s,this.projectionMatrix=new s,this.totalRendered=0,this.totalFrame=0,this.ignoreDirtyCache=!1,this.fov,this.displayOriginX=0,this.displayOriginY=0;var Y=E.sys.renderer;this.setPosition(R,M),this.setTexture(O,w),this.setSize(Y.width,Y.height),this.initPipeline(),this.initPostPipeline(),this.setPerspective(Y.width,Y.height),L&&this.addVertices(L,F,b,D,N,z,W)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},panX:function(P){return this.viewPosition.addScale(m.LEFT,P),this.dirtyCache[10]=1,this},panY:function(P){return this.viewPosition.y+=m.DOWN.y*P,this.dirtyCache[10]=1,this},panZ:function(P){return this.viewPosition.z+=P,this.dirtyCache[10]=1,this},setPerspective:function(P,E,R,M,O){return R===void 0&&(R=45),M===void 0&&(M=.01),O===void 0&&(O=1e3),this.fov=R,this.projectionMatrix.perspective(u(R),P/E,M,O),this.dirtyCache[10]=1,this.dirtyCache[11]=0,this},setOrtho:function(P,E,R,M){return P===void 0&&(P=this.scene.sys.renderer.getAspectRatio()),E===void 0&&(E=1),R===void 0&&(R=-1e3),M===void 0&&(M=1e3),this.fov=0,this.projectionMatrix.ortho(-P,P,-E,E,R,M),this.dirtyCache[10]=1,this.dirtyCache[11]=1,this},clear:function(){return this.faces.forEach(function(P){P.destroy()}),this.faces=[],this.vertices=[],this},addVerticesFromObj:function(P,E,R,M,O,w,L,F,b){var D=this.scene.sys.cache.obj.get(P),N;return D&&(N=n(D,this,E,R,M,O,w,L,F,b)),(!N||N.verts.length===0)&&console.warn("Mesh.addVerticesFromObj data empty:",P),this},sortByDepth:function(P,E){return P.depth-E.depth},depthSort:function(){return p(this.faces,this.sortByDepth),this},addVertex:function(P,E,R,M,O,w,L){var F=new x(P,E,R,M,O,w,L);return this.vertices.push(F),F},addFace:function(P,E,R){var M=new o(P,E,R);return this.faces.push(M),this.dirtyCache[9]=-1,M},addVertices:function(P,E,R,M,O,w,L){var F=r(P,E,R,M,O,w,L);return F?(this.faces=this.faces.concat(F.faces),this.vertices=this.vertices.concat(F.vertices)):console.warn("Mesh.addVertices data empty or invalid"),this.dirtyCache[9]=-1,this},getFaceCount:function(){return this.faces.length},getVertexCount:function(){return this.vertices.length},getFace:function(P){return this.faces[P]},hasFaceAt:function(P,E,R){R===void 0&&(R=this.scene.sys.cameras.main);for(var M=d(this,R).calc,O=this.faces,w=0;w{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(){};f.exports=T},41839:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(88933),g=t(99325),u=t(20494),o=t(10850),a=t(83321);g.register("mesh",function(n,r){n===void 0&&(n={});var d=u(n,"key",null),s=u(n,"frame",null),h=o(n,"vertices",[]),c=o(n,"uvs",[]),p=o(n,"indicies",[]),m=o(n,"containsZ",!1),x=o(n,"normals",[]),S=o(n,"colors",16777215),P=o(n,"alphas",1),E=new a(this.scene,0,0,d,s,h,c,p,m,x,S,P);return r!==void 0&&(n.add=r),l(this.scene,E,n),E})},8767:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(83321),g=t(61286);g.register("mesh",function(u,o,a,n,r,d,s,h,c,p,m){return this.displayList.add(new l(this.scene,u,o,a,n,r,d,s,h,c,p,m))})},23464:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(57410),u=t(6317),f.exports={renderWebGL:g,renderCanvas:u}},57410:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(73329),g=function(u,o,a,n){var r=o.faces,d=r.length;if(d!==0){a.addToRenderList(o);var s=u.pipelines.set(o.pipeline,o),h=l(o,a,n).calc;u.pipelines.preBatch(o);for(var c=s.setGameObject(o),p=s.vertexViewF32,m=s.vertexViewU32,x=s.vertexCount*s.currentShader.vertexComponentCount-1,S=o.tintFill,P=[],E=o.debugCallback,R=h.a,M=h.b,O=h.c,w=h.d,L=h.e,F=h.f,b=o.viewPosition.z,D=o.hideCCW,N=a.roundPixels,z=a.alpha*o.alpha,W=0,Y=0;Y{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(64937),u=t(89980),o=t(94456),a=t(85769),n=new l({Extends:u,Mixins:[g.AlphaSingle,g.BlendMode,g.Depth,g.GetBounds,g.Mask,g.Origin,g.Pipeline,g.PostPipeline,g.ScrollFactor,g.Texture,g.Transform,g.Visible,o],initialize:function(d,s,h,c,p,m,x,S,P,E,R){m===void 0&&(m=256),x===void 0&&(x=256),S===void 0&&(S=10),P===void 0&&(P=10),E===void 0&&(E=0),R===void 0&&(R=0),u.call(this,d,"NineSlice"),this._width,this._height,this._originX=.5,this._originY=.5,this._sizeComponent=!0,this.vertices=[],this.leftWidth,this.rightWidth,this.topHeight,this.bottomHeight,this.tint=16777215,this.tintFill=!1,this.is3Slice=E===0&&R===0;for(var M=this.is3Slice?18:54,O=0;O{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(88933),g=t(99325),u=t(20494),o=t(10850),a=t(44139);g.register("nineslice",function(n,r){n===void 0&&(n={});var d=u(n,"key",null),s=u(n,"frame",null),h=o(n,"width",256),c=o(n,"height",256),p=o(n,"leftWidth",10),m=o(n,"rightWidth",10),x=o(n,"topHeight",0),S=o(n,"bottomHeight",0),P=new a(this.scene,0,0,d,s,h,c,p,m,x,S);return r!==void 0&&(n.add=r),l(this.scene,P,n),P})},53778:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(44139),g=t(61286);g.register("nineslice",function(u,o,a,n,r,d,s,h,c,p){return this.displayList.add(new l(this.scene,u,o,a,n,r,d,s,h,c,p))})},94456:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(27420),f.exports={renderWebGL:g,renderCanvas:u}},27420:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(73329),g=t(75512),u=function(o,a,n,r){var d=a.vertices,s=d.length;if(s!==0){n.addToRenderList(a);var h=o.pipelines.set(a.pipeline,a),c=l(a,n,r,!1).calc;o.pipelines.preBatch(a);var p=h.setGameObject(a),m=h.vertexViewF32,x=h.vertexViewU32,S=h.vertexCount*h.currentShader.vertexComponentCount-1,P=n.roundPixels,E=a.tintFill,R=n.alpha*a.alpha,M=g.getTintAppendFloatAlpha(a.tint,R),O=h.vertexAvailable(),w=-1;O{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(93025),u=t(22946),o=t(21902),a=t(4840),n=t(15978),r=new l({Extends:g,initialize:function(s){g.call(this,s,null,!1),this.active=!1,this.easeName="Linear",this.r=[],this.g=[],this.b=[]},getMethod:function(){return this.propertyValue===null?0:9},setMethods:function(){var d=this.propertyValue,s=d,h=this.defaultEmit,c=this.defaultUpdate;if(this.method===9){this.start=d[0],this.ease=o("Linear"),this.interpolation=a("linear"),h=this.easedValueEmit,c=this.easeValueUpdate,s=d[0],this.active=!0;for(var p=0;p{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(17489),g=t(82897),u=t(56694),o=t(61616),a=t(21902),n=t(72632),r=t(4840),d=t(88462),s=t(1071),h=new u({initialize:function(p,m,x){x===void 0&&(x=!1),this.propertyKey=p,this.propertyValue=m,this.defaultValue=m,this.steps=0,this.counter=0,this.yoyo=!1,this.direction=0,this.start=0,this.current=0,this.end=0,this.ease=null,this.interpolation=null,this.emitOnly=x,this.onEmit=this.defaultEmit,this.onUpdate=this.defaultUpdate,this.active=!0,this.method=0,this._onEmit,this._onUpdate},loadConfig:function(c,p){c===void 0&&(c={}),p&&(this.propertyKey=p),this.propertyValue=n(c,this.propertyKey,this.defaultValue),this.method=this.getMethod(),this.setMethods(),this.emitOnly&&(this.onUpdate=this.defaultUpdate)},toJSON:function(){return JSON.stringify(this.propertyValue)},onChange:function(c){var p;switch(this.method){case 1:case 3:case 8:p=c;break;case 2:this.propertyValue.indexOf(c)>=0&&(p=c);break;case 4:var m=(this.end-this.start)/this.steps;p=d(c,m),this.counter=p;break;case 5:case 6:case 7:p=g(c,this.start,this.end);break;case 9:p=this.start[0];break}return this.current=p,this},getMethod:function(){var c=this.propertyValue;if(c===null)return 0;var p=typeof c;if(p==="number")return 1;if(Array.isArray(c))return 2;if(p==="function")return 3;if(p==="object"){if(this.hasBoth(c,"start","end"))return this.has(c,"steps")?4:5;if(this.hasBoth(c,"min","max"))return 6;if(this.has(c,"random"))return 7;if(this.hasEither(c,"onEmit","onUpdate"))return 8;if(this.has(c,"interpolation"))return 9}return 0},setMethods:function(){var c=this.propertyValue,p=c,m=this.defaultEmit,x=this.defaultUpdate;switch(this.method){case 1:m=this.staticValueEmit;break;case 2:m=this.randomStaticValueEmit,p=c[0];break;case 3:this._onEmit=c,m=this.proxyEmit;break;case 4:this.start=c.start,this.end=c.end,this.steps=c.steps,this.counter=this.start,this.yoyo=this.has(c,"yoyo")?c.yoyo:!1,this.direction=0,m=this.steppedEmit,p=this.start;break;case 5:this.start=c.start,this.end=c.end;var S=this.has(c,"ease")?c.ease:"Linear";this.ease=a(S,c.easeParams),m=this.has(c,"random")&&c.random?this.randomRangedValueEmit:this.easedValueEmit,x=this.easeValueUpdate,p=this.start;break;case 6:this.start=c.min,this.end=c.max,m=this.has(c,"int")&&c.int?this.randomRangedIntEmit:this.randomRangedValueEmit,p=this.start;break;case 7:var P=c.random;Array.isArray(P)&&(this.start=P[0],this.end=P[1]),m=this.randomRangedIntEmit,p=this.start;break;case 8:this._onEmit=this.has(c,"onEmit")?c.onEmit:this.defaultEmit,this._onUpdate=this.has(c,"onUpdate")?c.onUpdate:this.defaultUpdate,m=this.proxyEmit,x=this.proxyUpdate;break;case 9:this.start=c.values;var E=this.has(c,"ease")?c.ease:"Linear";this.ease=a(E,c.easeParams),this.interpolation=r(c.interpolation),m=this.easedValueEmit,x=this.easeValueUpdate,p=this.start[0];break}return this.onEmit=m,this.onUpdate=x,this.current=p,this},has:function(c,p){return c.hasOwnProperty(p)},hasBoth:function(c,p,m){return c.hasOwnProperty(p)&&c.hasOwnProperty(m)},hasEither:function(c,p,m){return c.hasOwnProperty(p)||c.hasOwnProperty(m)},defaultEmit:function(c,p,m){return m},defaultUpdate:function(c,p,m,x){return x},proxyEmit:function(c,p,m){var x=this._onEmit(c,p,m);return this.current=x,x},proxyUpdate:function(c,p,m,x){var S=this._onUpdate(c,p,m,x);return this.current=S,S},staticValueEmit:function(){return this.current},staticValueUpdate:function(){return this.current},randomStaticValueEmit:function(){var c=Math.floor(Math.random()*this.propertyValue.length);return this.current=this.propertyValue[c],this.current},randomRangedValueEmit:function(c,p){var m=o(this.start,this.end);return c&&c.data[p]&&(c.data[p].min=m,c.data[p].max=this.end),this.current=m,m},randomRangedIntEmit:function(c,p){var m=l(this.start,this.end);return c&&c.data[p]&&(c.data[p].min=m,c.data[p].max=this.end),this.current=m,m},steppedEmit:function(){var c=this.counter,p=c,m=(this.end-this.start)/this.steps;if(this.yoyo){var x;this.direction===0?(p+=m,p>=this.end&&(x=p-this.end,p=this.end-x,this.direction=1)):(p-=m,p<=this.start&&(x=this.start-p,p=this.start+x,this.direction=0)),this.counter=p}else this.counter=s(p+m,this.start,this.end);return this.current=c,c},easedValueEmit:function(c,p){if(c&&c.data[p]){var m=c.data[p];m.min=this.start,m.max=this.end}return this.current=this.start,this.start},easeValueUpdate:function(c,p,m){var x=c.data[p],S,P=this.ease(m);return this.interpolation?S=this.interpolation(this.start,P):S=(x.max-x.min)*P+x.min,this.current=S,S},destroy:function(){this.propertyValue=null,this.defaultValue=null,this.ease=null,this.interpolation=null,this._onEmit=null,this._onUpdate=null}});f.exports=h},87811:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(72632),u=t(30891),o=new l({Extends:u,initialize:function(n,r,d,s,h){if(typeof n=="object"){var c=n;n=g(c,"x",0),r=g(c,"y",0),d=g(c,"power",0),s=g(c,"epsilon",100),h=g(c,"gravity",50)}else n===void 0&&(n=0),r===void 0&&(r=0),d===void 0&&(d=0),s===void 0&&(s=100),h===void 0&&(h=50);u.call(this,n,r,!0),this._gravity=h,this._power=d*h,this._epsilon=s*s},update:function(a,n){var r=this.x-a.x,d=this.y-a.y,s=r*r+d*d;if(s!==0){var h=Math.sqrt(s);s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(16569),g=t(82897),u=t(56694),o=t(75606),a=t(74118),n=t(2386),r=t(93736),d=new u({initialize:function(h){this.emitter=h,this.texture=null,this.frame=null,this.x=0,this.y=0,this.worldPosition=new r,this.velocityX=0,this.velocityY=0,this.accelerationX=0,this.accelerationY=0,this.maxVelocityX=1e4,this.maxVelocityY=1e4,this.bounce=0,this.scaleX=1,this.scaleY=1,this.alpha=1,this.angle=0,this.rotation=0,this.tint=16777215,this.life=1e3,this.lifeCurrent=1e3,this.delayCurrent=0,this.holdCurrent=0,this.lifeT=0,this.data={tint:{min:16777215,max:16777215},alpha:{min:1,max:1},rotate:{min:0,max:0},scaleX:{min:1,max:1},scaleY:{min:1,max:1},x:{min:0,max:0},y:{min:0,max:0},accelerationX:{min:0,max:0},accelerationY:{min:0,max:0},maxVelocityX:{min:0,max:0},maxVelocityY:{min:0,max:0},moveToX:{min:0,max:0},moveToY:{min:0,max:0},bounce:{min:0,max:0}},this.isCropped=!1,this.scene=h.scene,this.anims=new l(this),this.bounds=new a},emit:function(s,h,c,p,m,x){return this.emitter.emit(s,h,c,p,m,x)},isAlive:function(){return this.lifeCurrent>0},kill:function(){this.lifeCurrent=0},setPosition:function(s,h){s===void 0&&(s=0),h===void 0&&(h=0),this.x=s,this.y=h},fire:function(s,h){var c=this.emitter,p=c.ops,m=c.getAnim();if(m?this.anims.play(m):(this.frame=c.getFrame(),this.texture=this.frame.texture),!this.frame)throw new Error("Particle has no texture frame");if(c.getEmitZone(this),s===void 0?this.x+=p.x.onEmit(this,"x"):p.x.steps>0?this.x+=s+p.x.onEmit(this,"x"):this.x+=s,h===void 0?this.y+=p.y.onEmit(this,"y"):p.y.steps>0?this.y+=h+p.y.onEmit(this,"y"):this.y+=h,this.life=p.lifespan.onEmit(this,"lifespan"),this.lifeCurrent=this.life,this.lifeT=0,this.delayCurrent=p.delay.onEmit(this,"delay"),this.holdCurrent=p.hold.onEmit(this,"hold"),this.scaleX=p.scaleX.onEmit(this,"scaleX"),this.scaleY=p.scaleY.active?p.scaleY.onEmit(this,"scaleY"):this.scaleX,this.angle=p.rotate.onEmit(this,"rotate"),this.rotation=o(this.angle),c.worldMatrix.transformPoint(this.x,this.y,this.worldPosition),this.delayCurrent===0&&c.getDeathZone(this))return this.lifeCurrent=0,!1;var x=p.speedX.onEmit(this,"speedX"),S=p.speedY.active?p.speedY.onEmit(this,"speedY"):x;if(c.radial){var P=o(p.angle.onEmit(this,"angle"));this.velocityX=Math.cos(P)*Math.abs(x),this.velocityY=Math.sin(P)*Math.abs(S)}else if(c.moveTo){var E=p.moveToX.onEmit(this,"moveToX"),R=p.moveToY.onEmit(this,"moveToY"),M=this.life/1e3;this.velocityX=(E-this.x)/M,this.velocityY=(R-this.y)/M}else this.velocityX=x,this.velocityY=S;return c.acceleration&&(this.accelerationX=p.accelerationX.onEmit(this,"accelerationX"),this.accelerationY=p.accelerationY.onEmit(this,"accelerationY")),this.maxVelocityX=p.maxVelocityX.onEmit(this,"maxVelocityX"),this.maxVelocityY=p.maxVelocityY.onEmit(this,"maxVelocityY"),this.bounce=p.bounce.onEmit(this,"bounce"),this.alpha=p.alpha.onEmit(this,"alpha"),p.color.active?this.tint=p.color.onEmit(this,"tint"):this.tint=p.tint.onEmit(this,"tint"),!0},update:function(s,h,c){if(this.lifeCurrent<=0)return this.holdCurrent>0?(this.holdCurrent-=s,this.holdCurrent<=0):!0;if(this.delayCurrent>0)return this.delayCurrent-=s,!1;this.anims.update(0,s);var p=this.emitter,m=p.ops,x=1-this.lifeCurrent/this.life;if(this.lifeT=x,this.x=m.x.onUpdate(this,"x",x,this.x),this.y=m.y.onUpdate(this,"y",x,this.y),p.moveTo){var S=m.moveToX.onUpdate(this,"moveToX",x,p.moveToX),P=m.moveToY.onUpdate(this,"moveToY",x,p.moveToY),E=this.lifeCurrent/1e3;this.velocityX=(S-this.x)/E,this.velocityY=(P-this.y)/E}return this.computeVelocity(p,s,h,c,x),this.scaleX=m.scaleX.onUpdate(this,"scaleX",x,this.scaleX),this.scaleY=this.scaleX,m.scaleY.active&&(this.scaleY=m.scaleY.onUpdate(this,"scaleY",x,this.scaleY)),this.angle=m.rotate.onUpdate(this,"rotate",x,this.angle),this.rotation=o(this.angle),p.getDeathZone(this)?(this.lifeCurrent=0,!0):(this.alpha=m.alpha.onUpdate(this,"alpha",x,this.alpha),m.color.active?this.tint=m.color.onUpdate(this,"color",x,this.tint):this.tint=m.tint.onUpdate(this,"tint",x,this.tint),this.lifeCurrent-=s,this.lifeCurrent<=0&&this.holdCurrent<=0)},computeVelocity:function(s,h,c,p,m){var x=s.ops,S=this.velocityX,P=this.velocityY,E=x.accelerationX.onUpdate(this,"accelerationX",m,this.accelerationX),R=x.accelerationY.onUpdate(this,"accelerationY",m,this.accelerationY),M=x.maxVelocityX.onUpdate(this,"maxVelocityX",m,this.maxVelocityX),O=x.maxVelocityY.onUpdate(this,"maxVelocityY",m,this.maxVelocityY);this.bounce=x.bounce.onUpdate(this,"bounce",m,this.bounce),S+=s.gravityX*c+E*c,P+=s.gravityY*c+R*c,S=g(S,-M,M),P=g(P,-O,O),this.velocityX=S,this.velocityY=P,this.x+=S*c,this.y+=P*c,s.worldMatrix.transformPoint(this.x,this.y,this.worldPosition);for(var w=0;w{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(30891),u=t(74118),o=new l({Extends:g,initialize:function(n,r,d,s,h,c,p,m){h===void 0&&(h=!0),c===void 0&&(c=!0),p===void 0&&(p=!0),m===void 0&&(m=!0),g.call(this,n,r,!0),this.bounds=new u(n,r,d,s),this.collideLeft=h,this.collideRight=c,this.collideTop=p,this.collideBottom=m},update:function(a){var n=this.bounds,r=-a.bounce,d=a.worldPosition;d.xn.right&&this.collideRight&&(a.x-=d.x-n.right,a.velocityX*=r),d.yn.bottom&&this.collideBottom&&(a.y-=d.y-n.bottom,a.velocityY*=r)}});f.exports=o},9216:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(64937),u=t(48129),o=t(29538),a=t(69361),n=t(54213),r=t(19737),d=t(93025),s=t(40629),h=t(89980),c=t(72632),p=t(72861),m=t(87811),x=t(53523),S=t(19256),P=t(7782),E=t(71207),R=t(14655),M=t(14909),O=t(68433),w=t(74118),L=t(90205),F=t(66458),b=t(69116),D=t(17922),N=t(69360),z=t(93736),W=t(1071),Y=t(73106),j=["active","advance","blendMode","colorEase","deathCallback","deathCallbackScope","duration","emitCallback","emitCallbackScope","follow","frequency","gravityX","gravityY","maxAliveParticles","maxParticles","name","emitting","particleBringToTop","particleClass","radial","sortCallback","sortOrderAsc","sortProperty","stopAfter","tintFill","timeScale","trackVisible","visible"],G=["accelerationX","accelerationY","alpha","angle","bounce","color","delay","hold","lifespan","maxVelocityX","maxVelocityY","moveToX","moveToY","quantity","rotate","scaleX","scaleY","speedX","speedY","tint","x","y"],V=new l({Extends:h,Mixins:[g.AlphaSingle,g.BlendMode,g.Depth,g.Mask,g.Pipeline,g.PostPipeline,g.ScrollFactor,g.Texture,g.Transform,g.Visible,b],initialize:function(B,U,X,$,k){h.call(this,B,"ParticleEmitter"),this.particleClass=M,this.ops={accelerationX:new d("accelerationX",0),accelerationY:new d("accelerationY",0),alpha:new d("alpha",1),angle:new d("angle",{min:0,max:360},!0),bounce:new d("bounce",0),color:new r("color"),delay:new d("delay",0,!0),hold:new d("hold",0,!0),lifespan:new d("lifespan",1e3,!0),maxVelocityX:new d("maxVelocityX",1e4),maxVelocityY:new d("maxVelocityY",1e4),moveToX:new d("moveToX",0),moveToY:new d("moveToY",0),quantity:new d("quantity",1,!0),rotate:new d("rotate",0),scaleX:new d("scaleX",1),scaleY:new d("scaleY",1),speedX:new d("speedX",0,!0),speedY:new d("speedY",0,!0),tint:new d("tint",16777215),x:new d("x",0),y:new d("y",0)},this.radial=!0,this.gravityX=0,this.gravityY=0,this.acceleration=!1,this.moveTo=!1,this.emitCallback=null,this.emitCallbackScope=null,this.deathCallback=null,this.deathCallbackScope=null,this.maxParticles=0,this.maxAliveParticles=0,this.stopAfter=0,this.duration=0,this.frequency=0,this.emitting=!0,this.particleBringToTop=!0,this.timeScale=1,this.emitZones=[],this.deathZones=[],this.viewBounds=null,this.follow=null,this.followOffset=new z,this.trackVisible=!1,this.frames=[],this.randomFrame=!0,this.frameQuantity=1,this.anims=[],this.randomAnim=!0,this.animQuantity=1,this.dead=[],this.alive=[],this.counters=new Float32Array(10),this.skipping=!1,this.worldMatrix=new N,this.sortProperty="",this.sortOrderAsc=!0,this.sortCallback=this.depthSortCallback,this.processors=new E(this),this.tintFill=!1,this.initPipeline(),this.initPostPipeline(),this.setPosition(U,X),this.setTexture($),k&&this.setConfig(k)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},setConfig:function(I){if(!I)return this;var B=0,U="",X=this.ops;for(B=0;B=this.animQuantity&&(this.animCounter=0,this.currentAnim=W(this.currentAnim+1,0,B-1)),U},setAnim:function(I,B,U){B===void 0&&(B=!0),U===void 0&&(U=1),this.randomAnim=B,this.animQuantity=U,this.currentAnim=0;var X=typeof I;if(this.anims.length=0,Array.isArray(I))this.anims=this.anims.concat(I);else if(X==="string")this.anims.push(I);else if(X==="object"){var $=I;I=c($,"anims",null),I&&(this.anims=this.anims.concat(I));var k=c($,"cycle",!1);this.randomAnim=!k,this.animQuantity=c($,"quantity",U)}return this.anims.length===1&&(this.animQuantity=1,this.randomAnim=!1),this},setRadial:function(I){return I===void 0&&(I=!0),this.radial=I,this},addParticleBounds:function(I,B,U,X,$,k,K,J){if(typeof I=="object"){var q=I;I=q.x,B=q.y,U=S(q,"w")?q.w:q.width,X=S(q,"h")?q.h:q.height}return this.addParticleProcessor(new Y(I,B,U,X,$,k,K,J))},setParticleSpeed:function(I,B){return B===void 0&&(B=I),this.ops.speedX.onChange(I),I===B?this.ops.speedY.active=!1:this.ops.speedY.onChange(B),this.radial=!0,this},setParticleScale:function(I,B){return I===void 0&&(I=1),B===void 0&&(B=I),this.ops.scaleX.onChange(I),this.ops.scaleY.onChange(B),this},setParticleGravity:function(I,B){return this.gravityX=I,this.gravityY=B,this},setParticleAlpha:function(I){return this.ops.alpha.onChange(I),this},setParticleTint:function(I){return this.ops.tint.onChange(I),this},setEmitterAngle:function(I){return this.ops.angle.onChange(I),this},setParticleLifespan:function(I){return this.ops.lifespan.onChange(I),this},setQuantity:function(I){return this.quantity=I,this},setFrequency:function(I,B){return this.frequency=I,this.flowCounter=I>0?I:0,B&&(this.quantity=B),this},addDeathZone:function(I){Array.isArray(I)||(I=[I]);for(var B,U=this.deathZones,X=0;X-1&&(this.zoneTotal++,this.zoneTotal===X.total&&(this.zoneTotal=0,this.zoneIndex++,this.zoneIndex===U&&(this.zoneIndex=0)))}},getDeathZone:function(I){for(var B=this.deathZones,U=0;U=0&&(this.zoneIndex=B),this},addParticleProcessor:function(I){return this.processors.exists(I)||(I.emitter&&I.emitter.removeParticleProcessor(I),this.processors.add(I),I.emitter=this),I},removeParticleProcessor:function(I){return this.processors.exists(I)&&(this.processors.remove(I,!0),I.emitter=null),I},getProcessors:function(){return this.processors.getAll("active",!0)},createGravityWell:function(I){return this.addParticleProcessor(new m(I))},reserve:function(I){var B=this.dead;if(this.maxParticles>0){var U=this.getParticleCount();U+I>this.maxParticles&&(I=this.maxParticles-(U+I))}for(var X=0;X0&&this.getParticleCount()>=this.maxParticles?!0:this.maxAliveParticles>0&&this.getAliveParticleCount()>=this.maxAliveParticles},onParticleEmit:function(I,B){return I===void 0?(this.emitCallback=null,this.emitCallbackScope=null):typeof I=="function"&&(this.emitCallback=I,B&&(this.emitCallbackScope=B)),this},onParticleDeath:function(I,B){return I===void 0?(this.deathCallback=null,this.deathCallbackScope=null):typeof I=="function"&&(this.deathCallback=I,B&&(this.deathCallbackScope=B)),this},killAll:function(){for(var I=this.dead,B=this.alive;B.length>0;)I.push(B.pop());return this},forEachAlive:function(I,B){for(var U=this.alive,X=U.length,$=0;$0&&this.fastForward(I),this.emitting=!0,this.resetCounters(this.frequency,!0),B!==void 0&&(this.duration=Math.abs(B)),this.emit(s.START,this)),this},stop:function(I){return I===void 0&&(I=!1),this.emitting&&(this.emitting=!1,I&&this.killAll(),this.emit(s.STOP,this)),this},pause:function(){return this.active=!1,this},resume:function(){return this.active=!0,this},setSortProperty:function(I,B){return I===void 0&&(I=""),B===void 0&&(B=this.true),this.sortProperty=I,this.sortOrderAsc=B,this.sortCallback=this.depthSortCallback,this},setSortCallback:function(I){return this.sortProperty!==""?I=this.depthSortCallback:I=null,this.sortCallback=I,this},depthSort:function(){return D(this.alive,this.sortCallback.bind(this)),this},depthSortCallback:function(I,B){var U=this.sortProperty;return this.sortOrderAsc?I[U]-B[U]:B[U]-I[U]},flow:function(I,B,U){return B===void 0&&(B=1),this.emitting=!1,this.frequency=I,this.quantity=B,U!==void 0&&(this.stopAfter=U),this.start()},explode:function(I,B,U){this.frequency=-1,this.resetCounters(-1,!0);var X=this.emitParticle(I,B,U);return this.emit(s.EXPLODE,this,X),X},emitParticleAt:function(I,B,U){return this.emitParticle(U,I,B)},emitParticle:function(I,B,U){if(!this.atLimit()){I===void 0&&(I=this.ops.quantity.onEmit());for(var X=this.dead,$=this.stopAfter,k=this.follow?this.follow.x+this.followOffset.x:B,K=this.follow?this.follow.y+this.followOffset.y:U,J=0;J0&&(this.stopCounter++,this.stopCounter>=$)||this.atLimit())break}return q}},fastForward:function(I,B){B===void 0&&(B=1e3/60);var U=0;for(this.skipping=!0;U0){var et=this.deathCallback,it=this.deathCallbackScope;for(K=q-1;K>=0;K--){var tt=J[K];$.splice(tt.index,1),k.push(tt.particle),et&&et.call(it,tt.particle),tt.particle.setPosition()}}if(!this.emitting&&!this.skipping){this.completeFlag===1&&$.length===0&&(this.completeFlag=0,this.emit(s.COMPLETE,this));return}if(this.frequency===0)this.emitParticle();else if(this.frequency>0)for(this.flowCounter-=B;this.flowCounter<=0;)this.emitParticle(),this.flowCounter+=this.frequency;this.skipping||(this.duration>0&&(this.elapsed+=B,this.elapsed>=this.duration&&this.stop()),this.stopAfter>0&&this.stopCounter>=this.stopAfter&&this.stop())},overlap:function(I){for(var B=this.getWorldTransformMatrix(),U=this.alive,X=U.length,$=[],k=0;k0){var _=0;for(this.skipping=!0;_0&&P(X,I,I),X},createEmitter:function(){throw new Error("createEmitter removed. See ParticleEmitter docs for info")},particleX:{get:function(){return this.ops.x.current},set:function(I){this.ops.x.onChange(I)}},particleY:{get:function(){return this.ops.y.current},set:function(I){this.ops.y.onChange(I)}},accelerationX:{get:function(){return this.ops.accelerationX.current},set:function(I){this.ops.accelerationX.onChange(I)}},accelerationY:{get:function(){return this.ops.accelerationY.current},set:function(I){this.ops.accelerationY.onChange(I)}},maxVelocityX:{get:function(){return this.ops.maxVelocityX.current},set:function(I){this.ops.maxVelocityX.onChange(I)}},maxVelocityY:{get:function(){return this.ops.maxVelocityY.current},set:function(I){this.ops.maxVelocityY.onChange(I)}},speed:{get:function(){return this.ops.speedX.current},set:function(I){this.ops.speedX.onChange(I),this.ops.speedY.onChange(I)}},speedX:{get:function(){return this.ops.speedX.current},set:function(I){this.ops.speedX.onChange(I)}},speedY:{get:function(){return this.ops.speedY.current},set:function(I){this.ops.speedY.onChange(I)}},moveToX:{get:function(){return this.ops.moveToX.current},set:function(I){this.ops.moveToX.onChange(I)}},moveToY:{get:function(){return this.ops.moveToY.current},set:function(I){this.ops.moveToY.onChange(I)}},bounce:{get:function(){return this.ops.bounce.current},set:function(I){this.ops.bounce.onChange(I)}},particleScaleX:{get:function(){return this.ops.scaleX.current},set:function(I){this.ops.scaleX.onChange(I)}},particleScaleY:{get:function(){return this.ops.scaleY.current},set:function(I){this.ops.scaleY.onChange(I)}},particleColor:{get:function(){return this.ops.color.current},set:function(I){this.ops.color.onChange(I)}},colorEase:{get:function(){return this.ops.color.easeName},set:function(I){this.ops.color.setEase(I)}},particleTint:{get:function(){return this.ops.tint.current},set:function(I){this.ops.tint.onChange(I)}},particleAlpha:{get:function(){return this.ops.alpha.current},set:function(I){this.ops.alpha.onChange(I)}},lifespan:{get:function(){return this.ops.lifespan.current},set:function(I){this.ops.lifespan.onChange(I)}},particleAngle:{get:function(){return this.ops.angle.current},set:function(I){this.ops.angle.onChange(I)}},particleRotate:{get:function(){return this.ops.rotate.current},set:function(I){this.ops.rotate.onChange(I)}},quantity:{get:function(){return this.ops.quantity.current},set:function(I){this.ops.quantity.onChange(I)}},delay:{get:function(){return this.ops.delay.current},set:function(I){this.ops.delay.onChange(I)}},hold:{get:function(){return this.ops.hold.current},set:function(I){this.ops.hold.onChange(I)}},flowCounter:{get:function(){return this.counters[0]},set:function(I){this.counters[0]=I}},frameCounter:{get:function(){return this.counters[1]},set:function(I){this.counters[1]=I}},animCounter:{get:function(){return this.counters[2]},set:function(I){this.counters[2]=I}},elapsed:{get:function(){return this.counters[3]},set:function(I){this.counters[3]=I}},stopCounter:{get:function(){return this.counters[4]},set:function(I){this.counters[4]=I}},completeFlag:{get:function(){return this.counters[5]},set:function(I){this.counters[5]=I}},zoneIndex:{get:function(){return this.counters[6]},set:function(I){this.counters[6]=I}},zoneTotal:{get:function(){return this.counters[7]},set:function(I){this.counters[7]=I}},currentFrame:{get:function(){return this.counters[8]},set:function(I){this.counters[8]=I}},currentAnim:{get:function(){return this.counters[9]},set:function(I){this.counters[9]=I}},preDestroy:function(){this.texture=null,this.frames=null,this.anims=null,this.emitCallback=null,this.emitCallbackScope=null,this.deathCallback=null,this.deathCallbackScope=null,this.emitZones=null,this.deathZones=null,this.bounds=null,this.follow=null,this.counters=null;var I,B=this.ops;for(I=0;I{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(90205),g=t(69360),u=new g,o=new g,a=new g,n=new g,r=function(d,s,h,c){var p=u,m=o,x=a,S=n;c?(S.loadIdentity(),S.multiply(c),S.translate(s.x,s.y),S.rotate(s.rotation),S.scale(s.scaleX,s.scaleY)):S.applyITRS(s.x,s.y,s.rotation,s.scaleX,s.scaleY);var P=d.currentContext,E=h.roundPixels,R=h.alpha,M=s.alpha,O=s.alive,w=O.length,L=s.viewBounds;if(!(!s.visible||w===0||L&&!l(L,h.worldView))){s.sortCallback&&s.depthSort(),h.addToRenderList(s);var F=s.scrollFactorX,b=s.scrollFactorY;P.save(),P.globalCompositeOperation=d.blendModes[s.blendMode];for(var D=0;D0&&Y.height>0){var j=-W.halfWidth,G=-W.halfHeight;P.globalAlpha=z,P.save(),m.setToContext(P),E&&(j=Math.round(j),G=Math.round(G)),P.imageSmoothingEnabled=!W.source.scaleMode,P.drawImage(W.source.image,Y.x,Y.y,Y.width,Y.height,j,G,Y.width,Y.height),P.restore()}}}P.restore()}};f.exports=r},765:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(88933),g=t(99325),u=t(20494),o=t(72632),a=t(9216);g.register("particles",function(n,r){n===void 0&&(n={});var d=u(n,"key",null),s=o(n,"config",null),h=new a(this.scene,0,0,d);return r!==void 0&&(n.add=r),l(this.scene,h,n),s&&h.setConfig(s),h})},81212:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(61286),g=t(9216);l.register("particles",function(u,o,a,n){return u!==void 0&&typeof u=="string"&&console.warn("ParticleEmitterManager was removed in Phaser 3.60. See documentation for details"),this.displayList.add(new g(this.scene,u,o,a,n))})},69116:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(10275),u=t(10456),f.exports={renderWebGL:g,renderCanvas:u}},10275:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(90205),g=t(69360),u=t(75512),o=new g,a=new g,n=new g,r=new g,d=function(s,h,c,p){var m=s.pipelines.set(h.pipeline),x=o,S=a,P=n,E=r;p?(E.loadIdentity(),E.multiply(p),E.translate(h.x,h.y),E.rotate(h.rotation),E.scale(h.scaleX,h.scaleY)):E.applyITRS(h.x,h.y,h.rotation,h.scaleX,h.scaleY);var R=c.roundPixels,M=u.getTintAppendFloatAlpha,O=c.alpha,w=h.alpha,L=h.frame.glTexture;s.pipelines.preBatch(h);var F=h.alive,b=F.length,D=h.viewBounds;if(!(b===0||D&&!l(D,c.worldView))){h.sortCallback&&h.depthSort();var N=m.setGameObject(h,h.frame);c.addToRenderList(h),x.copyFrom(c.matrix),x.multiplyWithOffset(E,-c.scrollX*h.scrollFactorX,-c.scrollY*h.scrollFactorY),s.setBlendMode(h.blendMode),h.mask&&(h.mask.preRenderWebGL(s,h,c),s.pipelines.set(h.pipeline));for(var z=h.tintFill,W=0;W{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=new l({initialize:function(o,a,n){o===void 0&&(o=0),a===void 0&&(a=0),n===void 0&&(n=!0),this.emitter,this.x=o,this.y=a,this.active=n},update:function(){},destroy:function(){this.emitter=null}});f.exports=g},76100:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="complete"},26677:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="deathzone"},62736:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="explode"},56490:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="start"},85715:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="stop"},40629:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={COMPLETE:t(76100),DEATH_ZONE:t(26677),EXPLODE:t(62736),START:t(56490),STOP:t(85715)}},27684:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={EmitterColorOp:t(19737),EmitterOp:t(93025),Events:t(40629),GravityWell:t(87811),Particle:t(14909),ParticleBounds:t(73106),ParticleEmitter:t(9216),ParticleProcessor:t(30891),Zones:t(25962)}},69361:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=new l({initialize:function(o,a){this.source=o,this.killOnEnter=a},willKill:function(u){var o=u.worldPosition,a=this.source.contains(o.x,o.y);return a&&this.killOnEnter||!a&&!this.killOnEnter}});f.exports=g},54213:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=new l({initialize:function(o,a,n,r,d,s){r===void 0&&(r=!1),d===void 0&&(d=!0),s===void 0&&(s=-1),this.source=o,this.points=[],this.quantity=a,this.stepRate=n,this.yoyo=r,this.counter=-1,this.seamless=d,this._length=0,this._direction=0,this.total=s,this.updateSource()},updateSource:function(){if(this.points=this.source.getPoints(this.quantity,this.stepRate),this.seamless){var u=this.points[0],o=this.points[this.points.length-1];u.x===o.x&&u.y===o.y&&this.points.pop()}var a=this._length;return this._length=this.points.length,this._lengththis._length&&(this.counter=this._length-1),this},changeSource:function(u){return this.source=u,this.updateSource()},getPoint:function(u){this._direction===0?(this.counter++,this.counter>=this._length&&(this.yoyo?(this._direction=1,this.counter=this._length-1):this.counter=0)):(this.counter--,this.counter===-1&&(this.yoyo?(this._direction=0,this.counter=0):this.counter=this._length-1));var o=this.points[this.counter];o&&(u.x=o.x,u.y=o.y)}});f.exports=g},68433:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(93736),u=new l({initialize:function(a){this.source=a,this._tempVec=new g,this.total=-1},getPoint:function(o){var a=this._tempVec;this.source.getRandomPoint(a),o.x=a.x,o.y=a.y}});f.exports=u},25962:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={DeathZone:t(69361),EdgeZone:t(54213),RandomZone:t(68433)}},29598:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(64937),u=t(13747),o=new l({Extends:u,Mixins:[g.PathFollower],initialize:function(n,r,d,s,h,c){u.call(this,n,d,s,h,c),this.path=r},preUpdate:function(a,n){this.anims.update(a,n),this.pathUpdate(a)}});f.exports=o},19626:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(61286),g=t(29598);l.register("follower",function(u,o,a,n,r){var d=new g(this.scene,u,o,a,n,r);return this.displayList.add(d),this.updateList.add(d),d})},33412:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(16569),g=t(56694),u=t(99425),o=t(15978),a=t(83321),n=t(76583),r=new g({Extends:a,initialize:function(s,h,c,p,m,x,S,P){p||(p="__DEFAULT"),a.call(this,s,h,c,p,m),this.type="Plane",this.anims=new l(this),this.gridWidth,this.gridHeight,this.isTiled,this._checkerboard=null,this.hideCCW=!1,this.setGridSize(x,S,P),this.setSizeToFrame(!1),this.setViewHeight()},setGridSize:function(d,s,h){d===void 0&&(d=8),s===void 0&&(s=8),h===void 0&&(h=!1);var c=!1;return h&&(c=!0),this.gridWidth=d,this.gridHeight=s,this.isTiled=h,this.clear(),u({mesh:this,widthSegments:d,heightSegments:s,isOrtho:!1,tile:h,flipY:c}),this},setSizeToFrame:function(d){d===void 0&&(d=!0);var s=this.frame;if(this.setPerspective(this.width/s.width,this.height/s.height),this._checkerboard&&this._checkerboard!==this.texture&&this.removeCheckerboard(),!d)return this;var h=this.gridWidth,c=this.gridHeight,p=this.vertices,m=s.u0,x=s.u1,S=s.v0,P=s.v1,E,R,M=0;if(this.isTiled)for(S=s.v1,P=s.v0,R=0;R7&&M>7?E.push(S.r,S.g,S.b,h):E.push(P.r,P.g,P.b,c);m.texImage2D(m.TEXTURE_2D,0,m.RGBA,16,16,0,m.RGBA,m.UNSIGNED_BYTE,new Uint8Array(E)),x.isAlphaPremultiplied=!0,x.isRenderTexture=!1,x.width=16,x.height=16;var O=this.scene.sys.textures.addGLTexture(n(),x,16,16);return this.removeCheckerboard(),this._checkerboard=O,m.bindTexture(m.TEXTURE_2D,null),this.setTexture(O),this.setSizeToFrame(),this.setViewHeight(p),this},removeCheckerboard:function(){this._checkerboard&&(this._checkerboard.destroy(),this._checkerboard=null)},play:function(d,s){return this.anims.play(d,s)},playReverse:function(d,s){return this.anims.playReverse(d,s)},playAfterDelay:function(d,s){return this.anims.playAfterDelay(d,s)},playAfterRepeat:function(d,s){return this.anims.playAfterRepeat(d,s)},stop:function(){return this.anims.stop()},stopAfterDelay:function(d){return this.anims.stopAfterDelay(d)},stopAfterRepeat:function(d){return this.anims.stopAfterRepeat(d)},stopOnFrame:function(d){return this.anims.stopOnFrame(d)},preUpdate:function(d,s){a.prototype.preUpdate.call(this,d,s),this.anims.update(d,s)},preDestroy:function(){this.clear(),this.removeCheckerboard(),this.anims.destroy(),this.anims=void 0,this.debugCallback=null,this.debugGraphic=null}});f.exports=r},10912:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(88933),g=t(32291),u=t(99325),o=t(20494),a=t(10850),n=t(33412);u.register("plane",function(r,d){r===void 0&&(r={});var s=o(r,"key",null),h=o(r,"frame",null),c=a(r,"width",8),p=a(r,"height",8),m=a(r,"tile",!1),x=new n(this.scene,0,0,s,h,c,p,m);d!==void 0&&(r.add=d);var S=a(r,"checkerboard",null);if(S){var P=a(S,"color1",16777215),E=a(S,"color2",255),R=a(S,"alpha1",255),M=a(S,"alpha2",255),O=a(S,"height",128);x.createCheckerboard(P,E,R,M,O)}return l(this.scene,x,r),g(x,r),x})},58322:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(33412),g=t(61286);g.register("plane",function(u,o,a,n,r,d,s){return this.displayList.add(new l(this.scene,u,o,a,n,r,d,s))})},13171:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(64937),u=t(89980),o=t(74853),a=t(65641),n=t(71606),r=new l({Extends:u,Mixins:[g.AlphaSingle,g.BlendMode,g.Depth,g.Mask,g.Pipeline,g.PostPipeline,g.ScrollFactor,g.Transform,g.Visible,n],initialize:function(s,h,c,p,m,x,S){p===void 0&&(p=16777215),m===void 0&&(m=128),x===void 0&&(x=1),S===void 0&&(S=.1),u.call(this,s,"PointLight"),this.initPipeline(a.POINTLIGHT_PIPELINE),this.initPostPipeline(),this.setPosition(h,c),this.color=o(p),this.intensity=x,this.attenuation=S,this.width=m*2,this.height=m*2,this._radius=m},radius:{get:function(){return this._radius},set:function(d){this._radius=d,this.width=d*2,this.height=d*2}},originX:{get:function(){return .5}},originY:{get:function(){return .5}},displayOriginX:{get:function(){return this._radius}},displayOriginY:{get:function(){return this._radius}}});f.exports=r},162:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(88933),g=t(99325),u=t(20494),o=t(13171);g.register("pointlight",function(a,n){a===void 0&&(a={});var r=u(a,"color",16777215),d=u(a,"radius",128),s=u(a,"intensity",1),h=u(a,"attenuation",.1),c=new o(this.scene,0,0,r,d,s,h);return n!==void 0&&(a.add=n),l(this.scene,c,a),c})},91201:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(61286),g=t(13171);l.register("pointlight",function(u,o,a,n,r,d){return this.displayList.add(new g(this.scene,u,o,a,n,r,d))})},71606:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(80590),f.exports={renderWebGL:g,renderCanvas:u}},80590:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(73329),g=function(u,o,a,n){a.addToRenderList(o);var r=u.pipelines.set(o.pipeline),d=l(o,a,n).calc,s=o.width,h=o.height,c=-o._radius,p=-o._radius,m=c+s,x=p+h,S=d.getX(0,0),P=d.getY(0,0),E=d.getX(c,p),R=d.getY(c,p),M=d.getX(c,x),O=d.getY(c,x),w=d.getX(m,x),L=d.getY(m,x),F=d.getX(m,p),b=d.getY(m,p);u.pipelines.preBatch(o),r.batchPointLight(o,a,E,R,M,O,w,L,F,b,S,P),u.pipelines.postBatch(o)};f.exports=g},15996:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(845),u=t(1539),o=new l({Extends:u,initialize:function(n,r,d,s,h){r===void 0&&(r=0),d===void 0&&(d=0),s===void 0&&(s=32),h===void 0&&(h=32);var c=new g(n.sys.textures,"",s,h);u.call(this,n,r,d,c),this.type="RenderTexture",this.camera=this.texture.camera,this._saved=!1},setSize:function(a,n){this.width=a,this.height=n,this.texture.setSize(a,n),this.updateDisplayOrigin();var r=this.input;return r&&!r.customHitArea&&(r.hitArea.width=a,r.hitArea.height=n),this},resize:function(a,n){return this.setSize(a,n),this},saveTexture:function(a){var n=this.texture;return n.key=a,n.manager.addDynamicTexture(n)&&(this._saved=!0),n},fill:function(a,n,r,d,s,h){return this.texture.fill(a,n,r,d,s,h),this},clear:function(){return this.texture.clear(),this},stamp:function(a,n,r,d,s){return this.texture.stamp(a,n,r,d,s),this},erase:function(a,n,r){return this.texture.erase(a,n,r),this},draw:function(a,n,r,d,s){return this.texture.draw(a,n,r,d,s),this},drawFrame:function(a,n,r,d,s,h){return this.texture.drawFrame(a,n,r,d,s,h),this},repeat:function(a,n,r,d,s,h,c,p,m){return this.texture.repeat(a,n,r,d,s,h,c,p,m),this},beginDraw:function(){return this.texture.beginDraw(),this},batchDraw:function(a,n,r,d,s){return this.texture.batchDraw(a,n,r,d,s),this},batchDrawFrame:function(a,n,r,d,s,h){return this.texture.batchDrawFrame(a,n,r,d,s,h),this},endDraw:function(a){return this.texture.endDraw(a),this},snapshotArea:function(a,n,r,d,s,h,c){return this.texture.snapshotArea(a,n,r,d,s,h,c),this},snapshot:function(a,n,r){return this.snapshotArea(0,0,this.width,this.height,a,n,r)},snapshotPixel:function(a,n,r){return this.snapshotArea(a,n,1,1,r,"pixel")},preDestroy:function(){this._saved||this.texture.destroy()}});f.exports=o},85692:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(88933),g=t(99325),u=t(20494),o=t(15996);g.register("renderTexture",function(a,n){a===void 0&&(a={});var r=u(a,"x",0),d=u(a,"y",0),s=u(a,"width",32),h=u(a,"height",32),c=new o(this.scene,r,d,s,h);return n!==void 0&&(a.add=n),l(this.scene,c,a),c})},29599:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(61286),g=t(15996);l.register("renderTexture",function(u,o,a,n){return this.displayList.add(new g(this.scene,u,o,a,n))})},79968:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(16569),g=t(56694),u=t(64937),o=t(89980),a=t(65641),n=t(58912),r=t(93736),d=new g({Extends:o,Mixins:[u.AlphaSingle,u.BlendMode,u.Depth,u.Flip,u.Mask,u.Pipeline,u.PostPipeline,u.Size,u.Texture,u.Transform,u.Visible,u.ScrollFactor,n],initialize:function(h,c,p,m,x,S,P,E,R){m===void 0&&(m="__DEFAULT"),S===void 0&&(S=2),P===void 0&&(P=!0),o.call(this,h,"Rope"),this.anims=new l(this),this.points=S,this.vertices,this.uv,this.colors,this.alphas,this.tintFill=m==="__DEFAULT",this.dirty=!1,this.horizontal=P,this._flipX=!1,this._flipY=!1,this._perp=new r,this.debugCallback=null,this.debugGraphic=null,this.setTexture(m,x),this.setPosition(c,p),this.setSizeToFrame(),this.initPipeline(a.ROPE_PIPELINE),Array.isArray(S)&&this.resizeArrays(S.length),this.setPoints(S,E,R),this.updateVertices()},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(s,h){var c=this.anims.currentFrame;this.anims.update(s,h),this.anims.currentFrame!==c&&(this.updateUVs(),this.updateVertices())},play:function(s,h,c){return this.anims.play(s,h,c),this},setDirty:function(){return this.dirty=!0,this},setHorizontal:function(s,h,c){return s===void 0&&(s=this.points.length),this.horizontal?this:(this.horizontal=!0,this.setPoints(s,h,c))},setVertical:function(s,h,c){return s===void 0&&(s=this.points.length),this.horizontal?(this.horizontal=!1,this.setPoints(s,h,c)):this},setTintFill:function(s){return s===void 0&&(s=!1),this.tintFill=s,this},setAlphas:function(s,h){var c=this.points.length;if(c<1)return this;var p=this.alphas;s===void 0?s=[1]:!Array.isArray(s)&&h===void 0&&(s=[s]);var m,x=0;if(h!==void 0)for(m=0;mx&&(S=s[x]),p[x]=S,s.length>x+1&&(S=s[x+1]),p[x+1]=S}return this},setColors:function(s){var h=this.points.length;if(h<1)return this;var c=this.colors;s===void 0?s=[16777215]:Array.isArray(s)||(s=[s]);var p,m=0;if(s.length===h)for(p=0;pm&&(x=s[m]),c[m]=x,s.length>m+1&&(x=s[m+1]),c[m+1]=x}return this},setPoints:function(s,h,c){if(s===void 0&&(s=2),typeof s=="number"){var p=s;p<2&&(p=2),s=[];var m,x,S;if(this.horizontal)for(S=-this.frame.halfWidth,x=this.frame.width/(p-1),m=0;m{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(){};f.exports=T},96027:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(88933),g=t(99325),u=t(20494),o=t(10850),a=t(79968);g.register("rope",function(n,r){n===void 0&&(n={});var d=u(n,"key",null),s=u(n,"frame",null),h=u(n,"horizontal",!0),c=o(n,"points",void 0),p=o(n,"colors",void 0),m=o(n,"alphas",void 0),x=new a(this.scene,0,0,d,s,c,h,p,m);return r!==void 0&&(n.add=r),l(this.scene,x,n),x})},31982:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79968),g=t(61286);g.register("rope",function(u,o,a,n,r,d,s,h){return this.displayList.add(new l(this.scene,u,o,a,n,r,d,s,h))})},58912:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(49489),u=t(44598),f.exports={renderWebGL:g,renderCanvas:u}},49489:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(73329),g=t(75512),u=function(o,a,n,r){n.addToRenderList(a);var d=o.pipelines.set(a.pipeline,a),s=l(a,n,r).calc,h=a.vertices,c=a.uv,p=a.colors,m=a.alphas,x=a.alpha,S=g.getTintAppendFloatAlpha,P=n.roundPixels,E=h.length,R=Math.floor(E*.5);d.flush(),o.pipelines.preBatch(a);var M=d.setGameObject(a),O=d.vertexViewF32,w=d.vertexViewU32,L=d.vertexCount*d.currentShader.vertexComponentCount-1,F=0,b=a.tintFill;a.dirty&&a.updateVertices();for(var D=a.debugCallback,N=[],z=0;z{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(64937),u=t(89980),o=t(72632),a=t(98611),n=t(22440),r=t(24252),d=t(69360),s=new l({Extends:u,Mixins:[g.ComputedSize,g.Depth,g.GetBounds,g.Mask,g.Origin,g.ScrollFactor,g.Transform,g.Visible,r],initialize:function(c,p,m,x,S,P,E,R){m===void 0&&(m=0),x===void 0&&(x=0),S===void 0&&(S=128),P===void 0&&(P=128),u.call(this,c,"Shader"),this.blendMode=-1,this.shader;var M=c.sys.renderer;this.renderer=M,this.gl=M.gl,this.vertexData=new ArrayBuffer(6*(Float32Array.BYTES_PER_ELEMENT*2)),this.vertexBuffer=M.createVertexBuffer(this.vertexData.byteLength,this.gl.STREAM_DRAW),this.program=null,this.bytes=new Uint8Array(this.vertexData),this.vertexViewF32=new Float32Array(this.vertexData),this._tempMatrix1=new d,this._tempMatrix2=new d,this._tempMatrix3=new d,this.viewMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.projectionMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.uniforms={},this.pointer=null,this._rendererWidth=M.width,this._rendererHeight=M.height,this._textureCount=0,this.framebuffer=null,this.glTexture=null,this.renderToTexture=!1,this.texture=null,this.setPosition(m,x),this.setSize(S,P),this.setOrigin(.5,.5),this.setShader(p,E,R)},willRender:function(h){return this.renderToTexture?!0:!(u.RENDER_MASK!==this.renderFlags||this.cameraFilter!==0&&this.cameraFilter&h.id)},setRenderToTexture:function(h,c){if(c===void 0&&(c=!1),!this.renderToTexture){var p=this.width,m=this.height,x=this.renderer;this.glTexture=x.createTextureFromSource(null,p,m,0),this.glTexture.flipY=c,this.framebuffer=x.createFramebuffer(p,m,this.glTexture,!1),this._rendererWidth=p,this._rendererHeight=m,this.renderToTexture=!0,this.projOrtho(0,this.width,this.height,0),h&&(this.texture=this.scene.sys.textures.addGLTexture(h,this.glTexture,p,m))}return this.shader&&(x.pipelines.clear(),this.load(),this.flush(),x.pipelines.rebind()),this},setShader:function(h,c,p){if(c===void 0&&(c=[]),typeof h=="string"){var m=this.scene.sys.cache.shader;if(!m.has(h))return console.warn("Shader missing: "+h),this;this.shader=m.get(h)}else this.shader=h;var x=this.gl,S=this.renderer;this.program&&x.deleteProgram(this.program);var P=S.createProgram(this.shader.vertexSrc,this.shader.fragmentSrc);x.uniformMatrix4fv(x.getUniformLocation(P,"uViewMatrix"),!1,this.viewMatrix),x.uniformMatrix4fv(x.getUniformLocation(P,"uProjectionMatrix"),!1,this.projectionMatrix),x.uniform2f(x.getUniformLocation(P,"uResolution"),this.width,this.height),this.program=P;var E=new Date,R={resolution:{type:"2f",value:{x:this.width,y:this.height}},time:{type:"1f",value:0},mouse:{type:"2f",value:{x:this.width/2,y:this.height/2}},date:{type:"4fv",value:[E.getFullYear(),E.getMonth(),E.getDate(),E.getHours()*60*60+E.getMinutes()*60+E.getSeconds()]},sampleRate:{type:"1f",value:44100},iChannel0:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel1:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel2:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel3:{type:"sampler2D",value:null,textureData:{repeat:!0}}};this.shader.uniforms?this.uniforms=a(!0,{},this.shader.uniforms,R):this.uniforms=R;for(var M=0;M<4;M++)c[M]&&this.setSampler2D("iChannel"+M,c[M],M,p);return this.initUniforms(),this.projOrtho(0,this._rendererWidth,this._rendererHeight,0),this},setPointer:function(h){return this.pointer=h,this},projOrtho:function(h,c,p,m){var x=-1e3,S=1e3,P=1/(h-c),E=1/(p-m),R=1/(x-S),M=this.projectionMatrix;M[0]=-2*P,M[5]=-2*E,M[10]=2*R,M[12]=(h+c)*P,M[13]=(m+p)*E,M[14]=(S+x)*R;var O=this.program,w=this.gl,L=this.renderer;L.setProgram(O),w.uniformMatrix4fv(w.getUniformLocation(O,"uProjectionMatrix"),!1,this.projectionMatrix),this._rendererWidth=c,this._rendererHeight=p},initUniforms:function(){var h=this.gl,c=this.renderer.glFuncMap,p=this.program;this._textureCount=0;for(var m in this.uniforms){var x=this.uniforms[m],S=x.type,P=c[S];x.uniformLocation=h.getUniformLocation(p,m),S!=="sampler2D"&&(x.glMatrix=P.matrix,x.glValueLength=P.length,x.glFunc=P.func)}},setSampler2DBuffer:function(h,c,p,m,x,S){x===void 0&&(x=0),S===void 0&&(S={});var P=this.uniforms[h];return P.value=c,S.width=p,S.height=m,P.textureData=S,this._textureCount=x,this.initSampler2D(P),this},setSampler2D:function(h,c,p,m){p===void 0&&(p=0);var x=this.scene.sys.textures;if(x.exists(c)){var S=x.getFrame(c);if(S.glTexture&&S.glTexture.isRenderTexture)return this.setSampler2DBuffer(h,S.glTexture,S.width,S.height,p,m);var P=this.uniforms[h],E=S.source;P.textureKey=c,P.source=E.image,P.value=S.glTexture,E.isGLTexture&&(m||(m={}),m.width=E.width,m.height=E.height),m&&(P.textureData=m),this._textureCount=p,this.initSampler2D(P)}return this},setUniform:function(h,c){return n(this.uniforms,h,c),this},getUniform:function(h){return o(this.uniforms,h,null)},setChannel0:function(h,c){return this.setSampler2D("iChannel0",h,0,c)},setChannel1:function(h,c){return this.setSampler2D("iChannel1",h,1,c)},setChannel2:function(h,c){return this.setSampler2D("iChannel2",h,2,c)},setChannel3:function(h,c){return this.setSampler2D("iChannel3",h,3,c)},initSampler2D:function(h){if(h.value){var c=this.gl;c.activeTexture(c.TEXTURE0+this._textureCount),c.bindTexture(c.TEXTURE_2D,h.value);var p=h.textureData;if(p&&!h.value.isRenderTexture){var m=c[o(p,"magFilter","linear").toUpperCase()],x=c[o(p,"minFilter","linear").toUpperCase()],S=c[o(p,"wrapS","repeat").toUpperCase()],P=c[o(p,"wrapT","repeat").toUpperCase()],E=c[o(p,"format","rgba").toUpperCase()];if(p.repeat&&(S=c.REPEAT,P=c.REPEAT),c.pixelStorei(c.UNPACK_FLIP_Y_WEBGL,!!p.flipY),p.width){var R=o(p,"width",512),M=o(p,"height",2),O=o(p,"border",0);c.texImage2D(c.TEXTURE_2D,0,E,R,M,O,E,c.UNSIGNED_BYTE,null)}else c.texImage2D(c.TEXTURE_2D,0,E,c.RGBA,c.UNSIGNED_BYTE,h.source);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,m),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,x),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,S),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,P)}this.renderer.setProgram(this.program),c.uniform1i(h.uniformLocation,this._textureCount),this._textureCount++}},syncUniforms:function(){var h=this.gl,c=this.uniforms,p,m,x,S,P,E=0;for(var R in c)p=c[R],x=p.glFunc,m=p.glValueLength,S=p.uniformLocation,P=p.value,P!==null&&(m===1?p.glMatrix?x.call(h,S,p.transpose,P):x.call(h,S,P):m===2?x.call(h,S,P.x,P.y):m===3?x.call(h,S,P.x,P.y,P.z):m===4?x.call(h,S,P.x,P.y,P.z,P.w):p.type==="sampler2D"&&(h.activeTexture(h.TEXTURE0+E),h.bindTexture(h.TEXTURE_2D,P),h.uniform1i(S,E),E++))},load:function(h){var c=this.gl,p=this.width,m=this.height,x=this.renderer,S=this.program,P=this.viewMatrix;if(!this.renderToTexture){var E=-this._displayOriginX,R=-this._displayOriginY;P[0]=h[0],P[1]=h[1],P[4]=h[2],P[5]=h[3],P[8]=h[4],P[9]=h[5],P[12]=P[0]*E+P[4]*R,P[13]=P[1]*E+P[5]*R}c.useProgram(S),c.uniformMatrix4fv(c.getUniformLocation(S,"uViewMatrix"),!1,P),c.uniform2f(c.getUniformLocation(S,"uResolution"),this.width,this.height);var M=this.uniforms,O=M.resolution;O.value.x=p,O.value.y=m,M.time.value=x.game.loop.getDuration();var w=this.pointer;if(w){var L=M.mouse,F=w.x/p,b=1-w.y/m;L.value.x=F.toFixed(2),L.value.y=b.toFixed(2)}this.syncUniforms()},flush:function(){var h=this.width,c=this.height,p=this.program,m=this.gl,x=this.vertexBuffer,S=this.renderer,P=Float32Array.BYTES_PER_ELEMENT*2;this.renderToTexture&&(S.setFramebuffer(this.framebuffer),m.clearColor(0,0,0,0),m.clear(m.COLOR_BUFFER_BIT)),m.bindBuffer(m.ARRAY_BUFFER,x);var E=m.getAttribLocation(p,"inPosition");E!==-1&&(m.enableVertexAttribArray(E),m.vertexAttribPointer(E,2,m.FLOAT,!1,P,0));var R=this.vertexViewF32;R[3]=c,R[4]=h,R[5]=c,R[8]=h,R[9]=c,R[10]=h;var M=6;m.bufferSubData(m.ARRAY_BUFFER,0,this.bytes.subarray(0,M*P)),m.drawArrays(m.TRIANGLES,0,M),this.renderToTexture&&S.setFramebuffer(null,!1)},setAlpha:function(){},setBlendMode:function(){},preDestroy:function(){var h=this.gl;h.deleteProgram(this.program),h.deleteBuffer(this.vertexBuffer),this.renderToTexture&&(this.renderer.deleteFramebuffer(this.framebuffer),this.texture.destroy(),this.framebuffer=null,this.glTexture=null,this.texture=null)}});f.exports=s},10612:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(){};f.exports=T},13908:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(88933),g=t(99325),u=t(20494),o=t(27902);g.register("shader",function(a,n){a===void 0&&(a={});var r=u(a,"key",null),d=u(a,"x",0),s=u(a,"y",0),h=u(a,"width",128),c=u(a,"height",128),p=new o(this.scene,r,d,s,h,c);return n!==void 0&&(a.add=n),l(this.scene,p,a),p})},51979:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(27902),g=t(61286);g.register("shader",function(u,o,a,n,r,d,s){return this.displayList.add(new l(this.scene,u,o,a,n,r,d,s))})},24252:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(19782),u=t(10612),f.exports={renderWebGL:g,renderCanvas:u}},19782:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(73329),g=function(u,o,a,n){if(o.shader){if(a.addToRenderList(o),u.pipelines.clear(),o.renderToTexture)o.load(),o.flush();else{var r=l(o,a,n).calc;(u.width!==o._rendererWidth||u.height!==o._rendererHeight)&&o.projOrtho(0,u.width,u.height,0),o.load(r.matrix),o.flush()}u.pipelines.rebind()}};f.exports=g},19543:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(75512),g=function(u,o,a,n,r,d){for(var s=l.getTintAppendFloatAlpha(a.fillColor,a.fillAlpha*n),h=a.pathData,c=a.pathIndexes,p=0;p{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){var o=g||l.fillColor,a=u||l.fillAlpha,n=(o&16711680)>>>16,r=(o&65280)>>>8,d=o&255;t.fillStyle="rgba("+n+","+r+","+d+","+a+")"};f.exports=T},17876:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){var o=g||l.strokeColor,a=u||l.strokeAlpha,n=(o&16711680)>>>16,r=(o&65280)>>>8,d=o&255;t.strokeStyle="rgba("+n+","+r+","+d+","+a+")",t.lineWidth=l.lineWidth};f.exports=T},91461:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(64937),u=t(89980),o=t(88829),a=new l({Extends:u,Mixins:[g.AlphaSingle,g.BlendMode,g.Depth,g.GetBounds,g.Mask,g.Origin,g.Pipeline,g.PostPipeline,g.ScrollFactor,g.Transform,g.Visible],initialize:function(r,d,s){d===void 0&&(d="Shape"),u.call(this,r,d),this.geom=s,this.pathData=[],this.pathIndexes=[],this.fillColor=16777215,this.fillAlpha=1,this.strokeColor=16777215,this.strokeAlpha=1,this.lineWidth=1,this.isFilled=!1,this.isStroked=!1,this.closePath=!0,this._tempLine=new o,this.width=0,this.height=0,this.initPipeline(),this.initPostPipeline()},setFillStyle:function(n,r){return r===void 0&&(r=1),n===void 0?this.isFilled=!1:(this.fillColor=n,this.fillAlpha=r,this.isFilled=!0),this},setStrokeStyle:function(n,r,d){return d===void 0&&(d=1),n===void 0?this.isStroked=!1:(this.lineWidth=n,this.strokeColor=r,this.strokeAlpha=d,this.isStroked=!0),this},setClosePath:function(n){return this.closePath=n,this},setSize:function(n,r){return this.width=n,this.height=r,this},setDisplaySize:function(n,r){return this.displayWidth=n,this.displayHeight=r,this},preDestroy:function(){this.geom=null,this._tempLine=null,this.pathData=[],this.pathIndexes=[]},displayWidth:{get:function(){return this.scaleX*this.width},set:function(n){this.scaleX=n/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(n){this.scaleY=n/this.height}}});f.exports=a},50262:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(75512),g=function(u,o,a,n,r){var d=u.strokeTint,s=l.getTintAppendFloatAlpha(o.strokeColor,o.strokeAlpha*a);d.TL=s,d.TR=s,d.BL=s,d.BR=s;var h=o.pathData,c=h.length-1,p=o.lineWidth,m=p/2,x=h[0]-n,S=h[1]-r;o.closePath||(c-=2);for(var P=2;P{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(2213),g=t(56694),u=t(75606),o=t(11117),a=t(26673),n=t(83392),r=t(91461),d=new g({Extends:r,Mixins:[l],initialize:function(h,c,p,m,x,S,P,E,R){c===void 0&&(c=0),p===void 0&&(p=0),m===void 0&&(m=128),x===void 0&&(x=0),S===void 0&&(S=360),P===void 0&&(P=!1),r.call(this,h,"Arc",new a(0,0,m)),this._startAngle=x,this._endAngle=S,this._anticlockwise=P,this._iterations=.01,this.setPosition(c,p);var M=this.geom.radius*2;this.setSize(M,M),E!==void 0&&this.setFillStyle(E,R),this.updateDisplayOrigin(),this.updateData()},iterations:{get:function(){return this._iterations},set:function(s){this._iterations=s,this.updateData()}},radius:{get:function(){return this.geom.radius},set:function(s){this.geom.radius=s;var h=s*2;this.setSize(h,h),this.updateDisplayOrigin(),this.updateData()}},startAngle:{get:function(){return this._startAngle},set:function(s){this._startAngle=s,this.updateData()}},endAngle:{get:function(){return this._endAngle},set:function(s){this._endAngle=s,this.updateData()}},anticlockwise:{get:function(){return this._anticlockwise},set:function(s){this._anticlockwise=s,this.updateData()}},setRadius:function(s){return this.radius=s,this},setIterations:function(s){return s===void 0&&(s=.01),this.iterations=s,this},setStartAngle:function(s,h){return this._startAngle=s,h!==void 0&&(this._anticlockwise=h),this.updateData()},setEndAngle:function(s,h){return this._endAngle=s,h!==void 0&&(this._anticlockwise=h),this.updateData()},updateData:function(){var s=this._iterations,h=s,c=this.geom.radius,p=u(this._startAngle),m=u(this._endAngle),x=this._anticlockwise,S=c,P=c;m-=p,x?m<-n.PI2?m=-n.PI2:m>0&&(m=-n.PI2+m%n.PI2):m>n.PI2?m=n.PI2:m<0&&(m=n.PI2+m%n.PI2);for(var E=[S+Math.cos(p)*c,P+Math.sin(p)*c],R;h<1;)R=m*h+p,E.push(S+Math.cos(R)*c,P+Math.sin(R)*c),h+=s;return R=m+p,E.push(S+Math.cos(R)*c,P+Math.sin(R)*c),E.push(S+Math.cos(p)*c,P+Math.sin(p)*c),this.pathIndexes=o(E),this.pathData=E,this}});f.exports=d},23560:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(75606),g=t(15608),u=t(17876),o=t(49584),a=function(n,r,d,s){d.addToRenderList(r);var h=n.currentContext;if(o(n,h,r,d,s)){var c=r.radius;h.beginPath(),h.arc(c-r.originX*(c*2),c-r.originY*(c*2),c,l(r._startAngle),l(r._endAngle),r.anticlockwise),r.closePath&&h.closePath(),r.isFilled&&(g(h,r),h.fill()),r.isStroked&&(u(h,r),h.stroke()),h.restore()}};f.exports=a},10369:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(28593),g=t(61286);g.register("arc",function(u,o,a,n,r,d,s,h){return this.displayList.add(new l(this.scene,u,o,a,n,r,d,s,h))}),g.register("circle",function(u,o,a,n,r){return this.displayList.add(new l(this.scene,u,o,a,0,360,!1,n,r))})},2213:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(58356),u=t(23560),f.exports={renderWebGL:g,renderCanvas:u}},58356:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(73329),g=t(19543),u=t(50262),o=function(a,n,r,d){r.addToRenderList(n);var s=a.pipelines.set(n.pipeline),h=l(n,r,d),c=s.calcMatrix.copyFrom(h.calc),p=n._displayOriginX,m=n._displayOriginY,x=r.alpha*n.alpha;a.pipelines.preBatch(n),n.isFilled&&g(s,c,n,x,p,m),n.isStroked&&u(s,n,x,p,m),a.pipelines.postBatch(n)};f.exports=o},15220:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(87203),u=t(11117),o=t(74118),a=t(91461),n=new l({Extends:a,Mixins:[g],initialize:function(d,s,h,c,p,m){s===void 0&&(s=0),h===void 0&&(h=0),a.call(this,d,"Curve",c),this._smoothness=32,this._curveBounds=new o,this.closePath=!1,this.setPosition(s,h),p!==void 0&&this.setFillStyle(p,m),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(r){this._smoothness=r,this.updateData()}},setSmoothness:function(r){return this._smoothness=r,this.updateData()},updateData:function(){var r=this._curveBounds,d=this._smoothness;this.geom.getBounds(r,d),this.setSize(r.width,r.height),this.updateDisplayOrigin();for(var s=[],h=this.geom.getPoints(d),c=0;c{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(15608),g=t(17876),u=t(49584),o=function(a,n,r,d){r.addToRenderList(n);var s=a.currentContext;if(u(a,s,n,r,d)){var h=n._displayOriginX+n._curveBounds.x,c=n._displayOriginY+n._curveBounds.y,p=n.pathData,m=p.length-1,x=p[0]-h,S=p[1]-c;s.beginPath(),s.moveTo(x,S),n.closePath||(m-=2);for(var P=2;P{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(61286),g=t(15220);l.register("curve",function(u,o,a,n,r){return this.displayList.add(new g(this.scene,u,o,a,n,r))})},87203:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(82958),u=t(4024),f.exports={renderWebGL:g,renderCanvas:u}},82958:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(19543),g=t(73329),u=t(50262),o=function(a,n,r,d){r.addToRenderList(n);var s=a.pipelines.set(n.pipeline),h=g(n,r,d),c=s.calcMatrix.copyFrom(h.calc),p=n._displayOriginX+n._curveBounds.x,m=n._displayOriginY+n._curveBounds.y,x=r.alpha*n.alpha;a.pipelines.preBatch(n),n.isFilled&&l(s,c,n,x,p,m),n.isStroked&&u(s,n,x,p,m),a.pipelines.postBatch(n)};f.exports=o},28591:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(11117),u=t(84171),o=t(95669),a=t(91461),n=new l({Extends:a,Mixins:[u],initialize:function(d,s,h,c,p,m,x){s===void 0&&(s=0),h===void 0&&(h=0),c===void 0&&(c=128),p===void 0&&(p=128),a.call(this,d,"Ellipse",new o(c/2,p/2,c,p)),this._smoothness=64,this.setPosition(s,h),this.width=c,this.height=p,m!==void 0&&this.setFillStyle(m,x),this.updateDisplayOrigin(),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(r){this._smoothness=r,this.updateData()}},setSize:function(r,d){return this.width=r,this.height=d,this.geom.setPosition(r/2,d/2),this.geom.setSize(r,d),this.updateData()},setSmoothness:function(r){return this._smoothness=r,this.updateData()},updateData:function(){for(var r=[],d=this.geom.getPoints(this._smoothness),s=0;s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(15608),g=t(17876),u=t(49584),o=function(a,n,r,d){r.addToRenderList(n);var s=a.currentContext;if(u(a,s,n,r,d)){var h=n._displayOriginX,c=n._displayOriginY,p=n.pathData,m=p.length-1,x=p[0]-h,S=p[1]-c;s.beginPath(),s.moveTo(x,S),n.closePath||(m-=2);for(var P=2;P{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(28591),g=t(61286);g.register("ellipse",function(u,o,a,n,r,d){return this.displayList.add(new l(this.scene,u,o,a,n,r,d))})},84171:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(17554),u=t(55881),f.exports={renderWebGL:g,renderCanvas:u}},17554:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(19543),g=t(73329),u=t(50262),o=function(a,n,r,d){r.addToRenderList(n);var s=a.pipelines.set(n.pipeline),h=g(n,r,d),c=s.calcMatrix.copyFrom(h.calc),p=n._displayOriginX,m=n._displayOriginY,x=r.alpha*n.alpha;a.pipelines.preBatch(n),n.isFilled&&l(s,c,n,x,p,m),n.isStroked&&u(s,n,x,p,m),a.pipelines.postBatch(n)};f.exports=o},39169:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(91461),u=t(88059),o=new l({Extends:g,Mixins:[u],initialize:function(n,r,d,s,h,c,p,m,x,S,P){r===void 0&&(r=0),d===void 0&&(d=0),s===void 0&&(s=128),h===void 0&&(h=128),c===void 0&&(c=32),p===void 0&&(p=32),g.call(this,n,"Grid",null),this.cellWidth=c,this.cellHeight=p,this.showCells=!0,this.outlineFillColor=0,this.outlineFillAlpha=0,this.showOutline=!0,this.showAltCells=!1,this.altFillColor,this.altFillAlpha,this.setPosition(r,d),this.setSize(s,h),this.setFillStyle(m,x),S!==void 0&&this.setOutlineStyle(S,P),this.updateDisplayOrigin()},setFillStyle:function(a,n){return n===void 0&&(n=1),a===void 0?this.showCells=!1:(this.fillColor=a,this.fillAlpha=n,this.showCells=!0),this},setAltFillStyle:function(a,n){return n===void 0&&(n=1),a===void 0?this.showAltCells=!1:(this.altFillColor=a,this.altFillAlpha=n,this.showAltCells=!0),this},setOutlineStyle:function(a,n){return n===void 0&&(n=1),a===void 0?this.showOutline=!1:(this.outlineFillColor=a,this.outlineFillAlpha=n,this.showOutline=!0),this}});f.exports=o},95525:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(15608),g=t(17876),u=t(49584),o=function(a,n,r,d){r.addToRenderList(n);var s=a.currentContext;if(u(a,s,n,r,d)){var h=-n._displayOriginX,c=-n._displayOriginY,p=r.alpha*n.alpha,m=n.width,x=n.height,S=n.cellWidth,P=n.cellHeight,E=Math.ceil(m/S),R=Math.ceil(x/P),M=S,O=P,w=S-(E*S-m),L=P-(R*P-x),F=n.showCells,b=n.showAltCells,D=n.showOutline,N=0,z=0,W=0,Y=0,j=0;if(D&&(M--,O--,w===S&&w--,L===P&&L--),F&&n.fillAlpha>0)for(l(s,n),z=0;z0)for(l(s,n,n.altFillColor,n.altFillAlpha*p),z=0;z0){for(g(s,n,n.outlineFillColor,n.outlineFillAlpha*p),N=1;N{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(61286),g=t(39169);l.register("grid",function(u,o,a,n,r,d,s,h,c,p){return this.displayList.add(new g(this.scene,u,o,a,n,r,d,s,h,c,p))})},88059:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(50639),u=t(95525),f.exports={renderWebGL:g,renderCanvas:u}},50639:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(73329),g=t(75512),u=function(o,a,n,r){n.addToRenderList(a);var d=o.pipelines.set(a.pipeline),s=l(a,n,r),h=d.calcMatrix.copyFrom(s.calc);h.translate(-a._displayOriginX,-a._displayOriginY);var c=n.alpha*a.alpha,p=a.width,m=a.height,x=a.cellWidth,S=a.cellHeight,P=Math.ceil(p/x),E=Math.ceil(m/S),R=x,M=S,O=x-(P*x-p),w=S-(E*S-m),L,F,b=a.showCells,D=a.showAltCells,N=a.showOutline,z=0,W=0,Y=0,j=0,G=0;if(N&&(R--,M--,O===x&&O--,w===S&&w--),o.pipelines.preBatch(a),b&&a.fillAlpha>0)for(L=d.fillTint,F=g.getTintAppendFloatAlpha(a.fillColor,a.fillAlpha*c),L.TL=F,L.TR=F,L.BL=F,L.BR=F,W=0;W0)for(L=d.fillTint,F=g.getTintAppendFloatAlpha(a.altFillColor,a.altFillAlpha*c),L.TL=F,L.TR=F,L.BL=F,L.BR=F,W=0;W0){var V=d.strokeTint,I=g.getTintAppendFloatAlpha(a.outlineFillColor,a.outlineFillAlpha*c);for(V.TL=I,V.TR=I,V.BL=I,V.BR=I,z=1;z{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72296),g=t(56694),u=t(91461),o=new g({Extends:u,Mixins:[l],initialize:function(n,r,d,s,h,c,p,m){r===void 0&&(r=0),d===void 0&&(d=0),s===void 0&&(s=48),h===void 0&&(h=32),c===void 0&&(c=15658734),p===void 0&&(p=10066329),m===void 0&&(m=13421772),u.call(this,n,"IsoBox",null),this.projection=4,this.fillTop=c,this.fillLeft=p,this.fillRight=m,this.showTop=!0,this.showLeft=!0,this.showRight=!0,this.isFilled=!0,this.setPosition(r,d),this.setSize(s,h),this.updateDisplayOrigin()},setProjection:function(a){return this.projection=a,this},setFaces:function(a,n,r){return a===void 0&&(a=!0),n===void 0&&(n=!0),r===void 0&&(r=!0),this.showTop=a,this.showLeft=n,this.showRight=r,this},setFillStyle:function(a,n,r){return this.fillTop=a,this.fillLeft=n,this.fillRight=r,this.isFilled=!0,this}});f.exports=o},32884:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(15608),g=t(49584),u=function(o,a,n,r){n.addToRenderList(a);var d=o.currentContext;if(g(o,d,a,n,r)&&a.isFilled){var s=a.width,h=a.height,c=s/2,p=s/a.projection;a.showTop&&(l(d,a,a.fillTop),d.beginPath(),d.moveTo(-c,-h),d.lineTo(0,-p-h),d.lineTo(c,-h),d.lineTo(c,-1),d.lineTo(0,p-1),d.lineTo(-c,-1),d.lineTo(-c,-h),d.fill()),a.showLeft&&(l(d,a,a.fillLeft),d.beginPath(),d.moveTo(-c,0),d.lineTo(0,p),d.lineTo(0,p-h),d.lineTo(-c,-h),d.lineTo(-c,0),d.fill()),a.showRight&&(l(d,a,a.fillRight),d.beginPath(),d.moveTo(c,0),d.lineTo(0,p),d.lineTo(0,p-h),d.lineTo(c,-h),d.lineTo(c,0),d.fill()),d.restore()}};f.exports=u},88154:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(61286),g=t(4415);l.register("isobox",function(u,o,a,n,r,d,s){return this.displayList.add(new g(this.scene,u,o,a,n,r,d,s))})},72296:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(33101),u=t(32884),f.exports={renderWebGL:g,renderCanvas:u}},33101:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(73329),g=t(75512),u=function(o,a,n,r){n.addToRenderList(a);var d=o.pipelines.set(a.pipeline),s=l(a,n,r),h=d.calcMatrix.copyFrom(s.calc),c=a.width,p=a.height,m=c/2,x=c/a.projection,S=n.alpha*a.alpha;if(a.isFilled){var P,E,R,M,O,w,L,F,b;o.pipelines.preBatch(a),a.showTop&&(P=g.getTintAppendFloatAlpha(a.fillTop,S),E=h.getX(-m,-p),R=h.getY(-m,-p),M=h.getX(0,-x-p),O=h.getY(0,-x-p),w=h.getX(m,-p),L=h.getY(m,-p),F=h.getX(0,x-p),b=h.getY(0,x-p),d.batchQuad(a,E,R,M,O,w,L,F,b,0,0,1,1,P,P,P,P,2)),a.showLeft&&(P=g.getTintAppendFloatAlpha(a.fillLeft,S),E=h.getX(-m,0),R=h.getY(-m,0),M=h.getX(0,x),O=h.getY(0,x),w=h.getX(0,x-p),L=h.getY(0,x-p),F=h.getX(-m,-p),b=h.getY(-m,-p),d.batchQuad(a,E,R,M,O,w,L,F,b,0,0,1,1,P,P,P,P,2)),a.showRight&&(P=g.getTintAppendFloatAlpha(a.fillRight,S),E=h.getX(m,0),R=h.getY(m,0),M=h.getX(0,x),O=h.getY(0,x),w=h.getX(0,x-p),L=h.getY(0,x-p),F=h.getX(m,-p),b=h.getY(m,-p),d.batchQuad(a,E,R,M,O,w,L,F,b,0,0,1,1,P,P,P,P,2)),o.pipelines.postBatch(a)}};f.exports=u},65159:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(93387),u=t(91461),o=new l({Extends:u,Mixins:[g],initialize:function(n,r,d,s,h,c,p,m,x){r===void 0&&(r=0),d===void 0&&(d=0),s===void 0&&(s=48),h===void 0&&(h=32),c===void 0&&(c=!1),p===void 0&&(p=15658734),m===void 0&&(m=10066329),x===void 0&&(x=13421772),u.call(this,n,"IsoTriangle",null),this.projection=4,this.fillTop=p,this.fillLeft=m,this.fillRight=x,this.showTop=!0,this.showLeft=!0,this.showRight=!0,this.isReversed=c,this.isFilled=!0,this.setPosition(r,d),this.setSize(s,h),this.updateDisplayOrigin()},setProjection:function(a){return this.projection=a,this},setReversed:function(a){return this.isReversed=a,this},setFaces:function(a,n,r){return a===void 0&&(a=!0),n===void 0&&(n=!0),r===void 0&&(r=!0),this.showTop=a,this.showLeft=n,this.showRight=r,this},setFillStyle:function(a,n,r){return this.fillTop=a,this.fillLeft=n,this.fillRight=r,this.isFilled=!0,this}});f.exports=o},9923:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(15608),g=t(49584),u=function(o,a,n,r){n.addToRenderList(a);var d=o.currentContext;if(g(o,d,a,n,r)&&a.isFilled){var s=a.width,h=a.height,c=s/2,p=s/a.projection,m=a.isReversed;a.showTop&&m&&(l(d,a,a.fillTop),d.beginPath(),d.moveTo(-c,-h),d.lineTo(0,-p-h),d.lineTo(c,-h),d.lineTo(0,p-h),d.fill()),a.showLeft&&(l(d,a,a.fillLeft),d.beginPath(),m?(d.moveTo(-c,-h),d.lineTo(0,p),d.lineTo(0,p-h)):(d.moveTo(-c,0),d.lineTo(0,p),d.lineTo(0,p-h)),d.fill()),a.showRight&&(l(d,a,a.fillRight),d.beginPath(),m?(d.moveTo(c,-h),d.lineTo(0,p),d.lineTo(0,p-h)):(d.moveTo(c,0),d.lineTo(0,p),d.lineTo(0,p-h)),d.fill()),d.restore()}};f.exports=u},67765:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(61286),g=t(65159);l.register("isotriangle",function(u,o,a,n,r,d,s,h){return this.displayList.add(new g(this.scene,u,o,a,n,r,d,s,h))})},93387:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(54946),u=t(9923),f.exports={renderWebGL:g,renderCanvas:u}},54946:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(73329),g=t(75512),u=function(o,a,n,r){n.addToRenderList(a);var d=o.pipelines.set(a.pipeline),s=l(a,n,r),h=d.calcMatrix.copyFrom(s.calc),c=a.width,p=a.height,m=c/2,x=c/a.projection,S=a.isReversed,P=n.alpha*a.alpha;if(a.isFilled){o.pipelines.preBatch(a);var E,R,M,O,w,L,F;if(a.showTop&&S){E=g.getTintAppendFloatAlpha(a.fillTop,P),R=h.getX(-m,-p),M=h.getY(-m,-p),O=h.getX(0,-x-p),w=h.getY(0,-x-p),L=h.getX(m,-p),F=h.getY(m,-p);var b=h.getX(0,x-p),D=h.getY(0,x-p);d.batchQuad(a,R,M,O,w,L,F,b,D,0,0,1,1,E,E,E,E,2)}a.showLeft&&(E=g.getTintAppendFloatAlpha(a.fillLeft,P),S?(R=h.getX(-m,-p),M=h.getY(-m,-p),O=h.getX(0,x),w=h.getY(0,x),L=h.getX(0,x-p),F=h.getY(0,x-p)):(R=h.getX(-m,0),M=h.getY(-m,0),O=h.getX(0,x),w=h.getY(0,x),L=h.getX(0,x-p),F=h.getY(0,x-p)),d.batchTri(a,R,M,O,w,L,F,0,0,1,1,E,E,E,2)),a.showRight&&(E=g.getTintAppendFloatAlpha(a.fillRight,P),S?(R=h.getX(m,-p),M=h.getY(m,-p),O=h.getX(0,x),w=h.getY(0,x),L=h.getX(0,x-p),F=h.getY(0,x-p)):(R=h.getX(m,0),M=h.getY(m,0),O=h.getX(0,x),w=h.getY(0,x),L=h.getX(0,x-p),F=h.getY(0,x-p)),d.batchTri(a,R,M,O,w,L,F,0,0,1,1,E,E,E,2)),o.pipelines.postBatch(a)}};f.exports=u},579:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(91461),u=t(88829),o=t(52660),a=new l({Extends:g,Mixins:[o],initialize:function(r,d,s,h,c,p,m,x,S){d===void 0&&(d=0),s===void 0&&(s=0),h===void 0&&(h=0),c===void 0&&(c=0),p===void 0&&(p=128),m===void 0&&(m=0),g.call(this,r,"Line",new u(h,c,p,m));var P=Math.max(1,this.geom.right-this.geom.left),E=Math.max(1,this.geom.bottom-this.geom.top);this.lineWidth=1,this._startWidth=1,this._endWidth=1,this.setPosition(d,s),this.setSize(P,E),x!==void 0&&this.setStrokeStyle(1,x,S),this.updateDisplayOrigin()},setLineWidth:function(n,r){return r===void 0&&(r=n),this._startWidth=n,this._endWidth=r,this.lineWidth=n,this},setTo:function(n,r,d,s){return this.geom.setTo(n,r,d,s),this}});f.exports=a},52044:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(17876),g=t(49584),u=function(o,a,n,r){n.addToRenderList(a);var d=o.currentContext;if(g(o,d,a,n,r)){var s=a._displayOriginX,h=a._displayOriginY;a.isStroked&&(l(d,a),d.beginPath(),d.moveTo(a.geom.x1-s,a.geom.y1-h),d.lineTo(a.geom.x2-s,a.geom.y2-h),d.stroke()),d.restore()}};f.exports=u},85665:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(61286),g=t(579);l.register("line",function(u,o,a,n,r,d,s,h){return this.displayList.add(new g(this.scene,u,o,a,n,r,d,s,h))})},52660:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(46952),u=t(52044),f.exports={renderWebGL:g,renderCanvas:u}},46952:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(73329),g=t(75512),u=function(o,a,n,r){n.addToRenderList(a);var d=o.pipelines.set(a.pipeline),s=l(a,n,r);d.calcMatrix.copyFrom(s.calc);var h=a._displayOriginX,c=a._displayOriginY,p=n.alpha*a.alpha;if(o.pipelines.preBatch(a),a.isStroked){var m=d.strokeTint,x=g.getTintAppendFloatAlpha(a.strokeColor,a.strokeAlpha*p);m.TL=x,m.TR=x,m.BL=x,m.BR=x;var S=a._startWidth,P=a._endWidth;d.batchLine(a.geom.x1-h,a.geom.y1-c,a.geom.x2-h,a.geom.y2-c,S,P,1,0,!1,s.sprite,s.camera)}o.pipelines.postBatch(a)};f.exports=u},91249:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(70573),g=t(56694),u=t(11117),o=t(14045),a=t(8580),n=t(91461),r=t(18974),d=new g({Extends:n,Mixins:[l],initialize:function(h,c,p,m,x,S){c===void 0&&(c=0),p===void 0&&(p=0),n.call(this,h,"Polygon",new a(m));var P=o(this.geom);this.setPosition(c,p),this.setSize(P.width,P.height),x!==void 0&&this.setFillStyle(x,S),this.updateDisplayOrigin(),this.updateData()},smooth:function(s){s===void 0&&(s=1);for(var h=0;h{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(15608),g=t(17876),u=t(49584),o=function(a,n,r,d){r.addToRenderList(n);var s=a.currentContext;if(u(a,s,n,r,d)){var h=n._displayOriginX,c=n._displayOriginY,p=n.pathData,m=p.length-1,x=p[0]-h,S=p[1]-c;s.beginPath(),s.moveTo(x,S),n.closePath||(m-=2);for(var P=2;P{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(61286),g=t(91249);l.register("polygon",function(u,o,a,n,r){return this.displayList.add(new g(this.scene,u,o,a,n,r))})},70573:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(72841),u=t(40834),f.exports={renderWebGL:g,renderCanvas:u}},72841:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(19543),g=t(73329),u=t(50262),o=function(a,n,r,d){r.addToRenderList(n);var s=a.pipelines.set(n.pipeline),h=g(n,r,d),c=s.calcMatrix.copyFrom(h.calc),p=n._displayOriginX,m=n._displayOriginY,x=r.alpha*n.alpha;a.pipelines.preBatch(n),n.isFilled&&l(s,c,n,x,p,m),n.isStroked&&u(s,n,x,p,m),a.pipelines.postBatch(n)};f.exports=o},517:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(74118),u=t(91461),o=t(37673),a=new l({Extends:u,Mixins:[o],initialize:function(r,d,s,h,c,p,m){d===void 0&&(d=0),s===void 0&&(s=0),h===void 0&&(h=128),c===void 0&&(c=128),u.call(this,r,"Rectangle",new g(0,0,h,c)),this.setPosition(d,s),this.setSize(h,c),p!==void 0&&this.setFillStyle(p,m),this.updateDisplayOrigin(),this.updateData()},setSize:function(n,r){this.width=n,this.height=r,this.geom.setSize(n,r),this.updateData(),this.updateDisplayOrigin();var d=this.input;return d&&!d.customHitArea&&(d.hitArea.width=n,d.hitArea.height=r),this},updateData:function(){var n=[],r=this.geom,d=this._tempLine;return r.getLineA(d),n.push(d.x1,d.y1,d.x2,d.y2),r.getLineB(d),n.push(d.x2,d.y2),r.getLineC(d),n.push(d.x2,d.y2),r.getLineD(d),n.push(d.x2,d.y2),this.pathData=n,this}});f.exports=a},4091:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(15608),g=t(17876),u=t(49584),o=function(a,n,r,d){r.addToRenderList(n);var s=a.currentContext;if(u(a,s,n,r,d)){var h=n._displayOriginX,c=n._displayOriginY;n.isFilled&&(l(s,n),s.fillRect(-h,-c,n.width,n.height)),n.isStroked&&(g(s,n),s.beginPath(),s.rect(-h,-c,n.width,n.height),s.stroke()),s.restore()}};f.exports=o},94355:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(61286),g=t(517);l.register("rectangle",function(u,o,a,n,r,d){return this.displayList.add(new g(this.scene,u,o,a,n,r,d))})},37673:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(43532),u=t(4091),f.exports={renderWebGL:g,renderCanvas:u}},43532:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(73329),g=t(50262),u=t(75512),o=function(a,n,r,d){r.addToRenderList(n);var s=a.pipelines.set(n.pipeline),h=l(n,r,d);s.calcMatrix.copyFrom(h.calc);var c=n._displayOriginX,p=n._displayOriginY,m=r.alpha*n.alpha;if(a.pipelines.preBatch(n),n.isFilled){var x=s.fillTint,S=u.getTintAppendFloatAlpha(n.fillColor,n.fillAlpha*m);x.TL=S,x.TR=S,x.BL=S,x.BR=S,s.batchFillRect(-c,-p,n.width,n.height)}n.isStroked&&g(s,n,m,c,p),a.pipelines.postBatch(n)};f.exports=o},77843:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(87956),g=t(56694),u=t(11117),o=t(91461),a=new g({Extends:o,Mixins:[l],initialize:function(r,d,s,h,c,p,m,x){d===void 0&&(d=0),s===void 0&&(s=0),h===void 0&&(h=5),c===void 0&&(c=32),p===void 0&&(p=64),o.call(this,r,"Star",null),this._points=h,this._innerRadius=c,this._outerRadius=p,this.setPosition(d,s),this.setSize(p*2,p*2),m!==void 0&&this.setFillStyle(m,x),this.updateDisplayOrigin(),this.updateData()},setPoints:function(n){return this._points=n,this.updateData()},setInnerRadius:function(n){return this._innerRadius=n,this.updateData()},setOuterRadius:function(n){return this._outerRadius=n,this.updateData()},points:{get:function(){return this._points},set:function(n){this._points=n,this.updateData()}},innerRadius:{get:function(){return this._innerRadius},set:function(n){this._innerRadius=n,this.updateData()}},outerRadius:{get:function(){return this._outerRadius},set:function(n){this._outerRadius=n,this.updateData()}},updateData:function(){var n=[],r=this._points,d=this._innerRadius,s=this._outerRadius,h=Math.PI/2*3,c=Math.PI/r,p=s,m=s;n.push(p,m+-s);for(var x=0;x{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(15608),g=t(17876),u=t(49584),o=function(a,n,r,d){r.addToRenderList(n);var s=a.currentContext;if(u(a,s,n,r,d)){var h=n._displayOriginX,c=n._displayOriginY,p=n.pathData,m=p.length-1,x=p[0]-h,S=p[1]-c;s.beginPath(),s.moveTo(x,S),n.closePath||(m-=2);for(var P=2;P{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(77843),g=t(61286);g.register("star",function(u,o,a,n,r,d,s){return this.displayList.add(new l(this.scene,u,o,a,n,r,d,s))})},87956:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(12037),u=t(11401),f.exports={renderWebGL:g,renderCanvas:u}},12037:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(19543),g=t(73329),u=t(50262),o=function(a,n,r,d){r.addToRenderList(n);var s=a.pipelines.set(n.pipeline),h=g(n,r,d),c=s.calcMatrix.copyFrom(h.calc),p=n._displayOriginX,m=n._displayOriginY,x=r.alpha*n.alpha;a.pipelines.preBatch(n),n.isFilled&&l(s,c,n,x,p,m),n.isStroked&&u(s,n,x,p,m),a.pipelines.postBatch(n)};f.exports=o},21873:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(91461),u=t(66349),o=t(70498),a=new l({Extends:g,Mixins:[o],initialize:function(r,d,s,h,c,p,m,x,S,P,E){d===void 0&&(d=0),s===void 0&&(s=0),h===void 0&&(h=0),c===void 0&&(c=128),p===void 0&&(p=64),m===void 0&&(m=0),x===void 0&&(x=128),S===void 0&&(S=128),g.call(this,r,"Triangle",new u(h,c,p,m,x,S));var R=this.geom.right-this.geom.left,M=this.geom.bottom-this.geom.top;this.setPosition(d,s),this.setSize(R,M),P!==void 0&&this.setFillStyle(P,E),this.updateDisplayOrigin(),this.updateData()},setTo:function(n,r,d,s,h,c){return this.geom.setTo(n,r,d,s,h,c),this.updateData()},updateData:function(){var n=[],r=this.geom,d=this._tempLine;return r.getLineA(d),n.push(d.x1,d.y1,d.x2,d.y2),r.getLineB(d),n.push(d.x2,d.y2),r.getLineC(d),n.push(d.x2,d.y2),this.pathData=n,this}});f.exports=a},60213:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(15608),g=t(17876),u=t(49584),o=function(a,n,r,d){r.addToRenderList(n);var s=a.currentContext;if(u(a,s,n,r,d)){var h=n._displayOriginX,c=n._displayOriginY,p=n.geom.x1-h,m=n.geom.y1-c,x=n.geom.x2-h,S=n.geom.y2-c,P=n.geom.x3-h,E=n.geom.y3-c;s.beginPath(),s.moveTo(p,m),s.lineTo(x,S),s.lineTo(P,E),s.closePath(),n.isFilled&&(l(s,n),s.fill()),n.isStroked&&(g(s,n),s.stroke()),s.restore()}};f.exports=o},79296:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(61286),g=t(21873);l.register("triangle",function(u,o,a,n,r,d,s,h,c,p){return this.displayList.add(new g(this.scene,u,o,a,n,r,d,s,h,c,p))})},70498:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(72291),u=t(60213),f.exports={renderWebGL:g,renderCanvas:u}},72291:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(73329),g=t(50262),u=t(75512),o=function(a,n,r,d){r.addToRenderList(n);var s=a.pipelines.set(n.pipeline),h=l(n,r,d);s.calcMatrix.copyFrom(h.calc);var c=n._displayOriginX,p=n._displayOriginY,m=r.alpha*n.alpha;if(a.pipelines.preBatch(n),n.isFilled){var x=s.fillTint,S=u.getTintAppendFloatAlpha(n.fillColor,n.fillAlpha*m);x.TL=S,x.TR=S,x.BL=S,x.BR=S;var P=n.geom.x1-c,E=n.geom.y1-p,R=n.geom.x2-c,M=n.geom.y2-p,O=n.geom.x3-c,w=n.geom.y3-p;s.batchFillTriangle(P,E,R,M,O,w,h.sprite,h.camera)}n.isStroked&&g(s,n,m,c,p),a.pipelines.postBatch(n)};f.exports=o},13747:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(16569),g=t(56694),u=t(64937),o=t(89980),a=t(20791),n=new g({Extends:o,Mixins:[u.Alpha,u.BlendMode,u.Depth,u.Flip,u.GetBounds,u.Mask,u.Origin,u.Pipeline,u.PostPipeline,u.ScrollFactor,u.Size,u.TextureCrop,u.Tint,u.Transform,u.Visible,a],initialize:function(d,s,h,c,p){o.call(this,d,"Sprite"),this._crop=this.resetCropObject(),this.anims=new l(this),this.setTexture(c,p),this.setPosition(s,h),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(r,d){this.anims.update(r,d)},play:function(r,d){return this.anims.play(r,d)},playReverse:function(r,d){return this.anims.playReverse(r,d)},playAfterDelay:function(r,d){return this.anims.playAfterDelay(r,d)},playAfterRepeat:function(r,d){return this.anims.playAfterRepeat(r,d)},chain:function(r){return this.anims.chain(r)},stop:function(){return this.anims.stop()},stopAfterDelay:function(r){return this.anims.stopAfterDelay(r)},stopAfterRepeat:function(r){return this.anims.stopAfterRepeat(r)},stopOnFrame:function(r){return this.anims.stopOnFrame(r)},toJSON:function(){return u.ToJSON(this)},preDestroy:function(){this.anims.destroy(),this.anims=void 0}});f.exports=n},27573:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){g.addToRenderList(l),t.batchSprite(l,l.frame,g,u)};f.exports=T},89219:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(88933),g=t(32291),u=t(99325),o=t(20494),a=t(13747);u.register("sprite",function(n,r){n===void 0&&(n={});var d=o(n,"key",null),s=o(n,"frame",null),h=new a(this.scene,0,0,d,s);return r!==void 0&&(n.add=r),l(this.scene,h,n),g(h,n),h})},66135:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(61286),g=t(13747);l.register("sprite",function(u,o,a,n){return this.displayList.add(new g(this.scene,u,o,a,n))})},20791:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(21034),u=t(27573),f.exports={renderWebGL:g,renderCanvas:u}},21034:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){g.addToRenderList(l),l.pipeline.batchSprite(l,g,u)};f.exports=T},32979:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){var u=t.canvas,o=t.context,a=t.style,n=[],r=0,d=g.length;a.maxLines>0&&a.maxLines1&&(p+=m*(d-1)),{width:r,height:p,lines:d,lineWidths:n,lineSpacing:m,lineHeight:c}};f.exports=T},27030:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(61068),g=function(u){var o=l.create(this),a=o.getContext("2d",{willReadFrequently:!0});u.syncFont(o,a);var n=a.measureText(u.testString);if("actualBoundingBoxAscent"in n){var r=n.actualBoundingBoxAscent,d=n.actualBoundingBoxDescent;return l.remove(o),{ascent:r,descent:d,fontSize:r+d}}var s=Math.ceil(n.width*u.baselineX),h=s,c=2*h;h=h*u.baselineY|0,o.width=s,o.height=c,a.fillStyle="#f00",a.fillRect(0,0,s,c),a.font=u._font,a.textBaseline="alphabetic",a.fillStyle="#000",a.fillText(u.testString,0,h);var p={ascent:0,descent:0,fontSize:0},m=a.getImageData(0,0,s,c);if(!m)return p.ascent=h,p.descent=h+6,p.fontSize=p.ascent+p.descent,l.remove(o),p;var x=m.data,S=x.length,P=s*4,E,R,M=0,O=!1;for(E=0;Eh;E--){for(R=0;R{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(99584),g=t(61068),u=t(56694),o=t(64937),a=t(89980),n=t(32979),r=t(10850),d=t(55638),s=t(80032),h=t(74744),c=new u({Extends:a,Mixins:[o.Alpha,o.BlendMode,o.ComputedSize,o.Crop,o.Depth,o.Flip,o.GetBounds,o.Mask,o.Origin,o.Pipeline,o.PostPipeline,o.ScrollFactor,o.Tint,o.Transform,o.Visible,s],initialize:function(m,x,S,P,E){x===void 0&&(x=0),S===void 0&&(S=0),a.call(this,m,"Text"),this.renderer=m.sys.renderer,this.setPosition(x,S),this.setOrigin(0,0),this.initPipeline(),this.initPostPipeline(!0),this.canvas=g.create(this),this.context=this.canvas.getContext("2d",{willReadFrequently:!0}),this.style=new h(this,E),this.autoRound=!0,this.splitRegExp=/(?:\r\n|\r|\n)/,this._text=void 0,this.padding={left:0,right:0,top:0,bottom:0},this.width=1,this.height=1,this.lineSpacing=0,this.dirty=!1,this.style.resolution===0&&(this.style.resolution=1),this._crop=this.resetCropObject(),this.texture=m.sys.textures.addCanvas(null,this.canvas,!0),this.frame=this.texture.get(),this.frame.source.resolution=this.style.resolution,this.renderer&&this.renderer.gl&&(this.renderer.deleteTexture(this.frame.source.glTexture),this.frame.source.glTexture=null),this.initRTL(),this.setText(P),E&&E.padding&&this.setPadding(E.padding),E&&E.lineSpacing&&this.setLineSpacing(E.lineSpacing)},initRTL:function(){this.style.rtl&&(this.canvas.dir="rtl",this.context.direction="rtl",this.canvas.style.display="none",l(this.canvas,this.scene.sys.canvas),this.originX=1)},runWordWrap:function(p){var m=this.style;if(m.wordWrapCallback){var x=m.wordWrapCallback.call(m.wordWrapCallbackScope,p,this);return Array.isArray(x)&&(x=x.join(` +`)),x}else return m.wordWrapWidth?m.wordWrapUseAdvanced?this.advancedWordWrap(p,this.context,this.style.wordWrapWidth):this.basicWordWrap(p,this.context,this.style.wordWrapWidth):p},advancedWordWrap:function(p,m,x){for(var S="",P=p.replace(/ +/gi," ").split(this.splitRegExp),E=P.length,R=0;RL){if(b===0){for(var W=N;W.length&&(W=W.slice(0,-1),z=m.measureText(W).width,!(z<=L)););if(!W.length)throw new Error("wordWrapWidth < a single character");var Y=D.substr(W.length);F[b]=Y,O+=W}var j=F[b].length?b:b+1,G=F.slice(j).join(" ").replace(/[ \n]*$/gi,"");P.splice(R+1,0,G),E=P.length;break}else O+=N,L-=z}S+=O.replace(/[ \n]*$/gi,"")+` +`}return S=S.replace(/[\s|\n]*$/gi,""),S},basicWordWrap:function(p,m,x){for(var S="",P=p.split(this.splitRegExp),E=P.length-1,R=m.measureText(" ").width,M=0;M<=E;M++){for(var O=x,w=P[M].split(" "),L=w.length-1,F=0;F<=L;F++){var b=w[F],D=m.measureText(b).width,N=D;FO&&F>0&&(S+=` +`,O=x),S+=b,F0&&(D+=M.lineSpacing*N),x.rtl)b=L-b-O.left-O.right;else if(x.align==="right")b+=w-M.lineWidths[N];else if(x.align==="center")b+=(w-M.lineWidths[N])/2;else if(x.align==="justify"){var z=.85;if(M.lineWidths[N]/M.width>=z){var W=M.width-M.lineWidths[N],Y=m.measureText(" ").width,j=R[N].trim(),G=j.split(" ");W+=(R[N].length-j.length)*Y;for(var V=Math.floor(W/Y),I=0;V>0;)G[I]+=" ",I=(I+1)%(G.length-1||1),--V;R[N]=G.join(" ")}}this.autoRound&&(b=Math.round(b),D=Math.round(D)),x.strokeThickness&&(x.syncShadow(m,x.shadowStroke),m.strokeText(R[N],b,D)),x.color&&(x.syncShadow(m,x.shadowFill),m.fillText(R[N],b,D))}m.restore(),this.renderer&&this.renderer.gl&&(this.frame.source.glTexture=this.renderer.canvasToTexture(p,this.frame.source.glTexture,!0),this.frame.glTexture=this.frame.source.glTexture),this.dirty=!0;var B=this.input;return B&&!B.customHitArea&&(B.hitArea.width=this.width,B.hitArea.height=this.height),this},getTextMetrics:function(){return this.style.getTextMetrics()},text:{get:function(){return this._text},set:function(p){this.setText(p)}},toJSON:function(){var p=o.ToJSON(this),m={autoRound:this.autoRound,text:this._text,style:this.style.toJSON(),padding:{left:this.padding.left,right:this.padding.right,top:this.padding.top,bottom:this.padding.bottom}};return p.data=m,p},preDestroy:function(){this.style.rtl&&d(this.canvas),g.remove(this.canvas),this.texture.destroy()}});f.exports=c},71649:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){l.width===0||l.height===0||(g.addToRenderList(l),t.batchSprite(l,l.frame,g,u))};f.exports=T},75397:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(88933),g=t(99325),u=t(20494),o=t(76555);g.register("text",function(a,n){a===void 0&&(a={});var r=u(a,"text",""),d=u(a,"style",null),s=u(a,"padding",null);s!==null&&(d.padding=s);var h=new o(this.scene,0,0,r,d);return n!==void 0&&(a.add=n),l(this.scene,h,a),h.autoRound=u(a,"autoRound",!0),h.resolution=u(a,"resolution",1),h})},94627:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(76555),g=t(61286);g.register("text",function(u,o,a,n){return this.displayList.add(new l(this.scene,u,o,a,n))})},80032:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(76128),u=t(71649),f.exports={renderWebGL:g,renderCanvas:u}},74744:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(20494),u=t(10850),o=t(27030),a={fontFamily:["fontFamily","Courier"],fontSize:["fontSize","16px"],fontStyle:["fontStyle",""],backgroundColor:["backgroundColor",null],color:["color","#fff"],stroke:["stroke","#fff"],strokeThickness:["strokeThickness",0],shadowOffsetX:["shadow.offsetX",0],shadowOffsetY:["shadow.offsetY",0],shadowColor:["shadow.color","#000"],shadowBlur:["shadow.blur",0],shadowStroke:["shadow.stroke",!1],shadowFill:["shadow.fill",!1],align:["align","left"],maxLines:["maxLines",0],fixedWidth:["fixedWidth",0],fixedHeight:["fixedHeight",0],resolution:["resolution",0],rtl:["rtl",!1],testString:["testString","|MÉqgy"],baselineX:["baselineX",1.2],baselineY:["baselineY",1.4],wordWrapWidth:["wordWrap.width",null],wordWrapCallback:["wordWrap.callback",null],wordWrapCallbackScope:["wordWrap.callbackScope",null],wordWrapUseAdvanced:["wordWrap.useAdvancedWrap",!1]},n=new l({initialize:function(d,s){this.parent=d,this.fontFamily,this.fontSize,this.fontStyle,this.backgroundColor,this.color,this.stroke,this.strokeThickness,this.shadowOffsetX,this.shadowOffsetY,this.shadowColor,this.shadowBlur,this.shadowStroke,this.shadowFill,this.align,this.maxLines,this.fixedWidth,this.fixedHeight,this.resolution,this.rtl,this.testString,this.baselineX,this.baselineY,this.wordWrapWidth,this.wordWrapCallback,this.wordWrapCallbackScope,this.wordWrapUseAdvanced,this._font,this.setStyle(s,!1,!0)},setStyle:function(r,d,s){d===void 0&&(d=!0),s===void 0&&(s=!1),r&&r.hasOwnProperty("fontSize")&&typeof r.fontSize=="number"&&(r.fontSize=r.fontSize.toString()+"px");for(var h in a){var c=s?a[h][1]:this[h];h==="wordWrapCallback"||h==="wordWrapCallbackScope"?this[h]=u(r,a[h][0],c):this[h]=g(r,a[h][0],c)}var p=u(r,"font",null);p!==null&&this.setFont(p,!1),this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim();var m=u(r,"fill",null);m!==null&&(this.color=m);var x=u(r,"metrics",!1);return x?this.metrics={ascent:u(x,"ascent",0),descent:u(x,"descent",0),fontSize:u(x,"fontSize",0)}:(d||!this.metrics)&&(this.metrics=o(this)),d?this.parent.updateText():this.parent},syncFont:function(r,d){d.font=this._font},syncStyle:function(r,d){d.textBaseline="alphabetic",d.fillStyle=this.color,d.strokeStyle=this.stroke,d.lineWidth=this.strokeThickness,d.lineCap="round",d.lineJoin="round"},syncShadow:function(r,d){d?(r.shadowOffsetX=this.shadowOffsetX,r.shadowOffsetY=this.shadowOffsetY,r.shadowColor=this.shadowColor,r.shadowBlur=this.shadowBlur):(r.shadowOffsetX=0,r.shadowOffsetY=0,r.shadowColor=0,r.shadowBlur=0)},update:function(r){return r&&(this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim(),this.metrics=o(this)),this.parent.updateText()},setFont:function(r,d){d===void 0&&(d=!0);var s=r,h="",c="";if(typeof r!="string")s=u(r,"fontFamily","Courier"),h=u(r,"fontSize","16px"),c=u(r,"fontStyle","");else{var p=r.split(" "),m=0;c=p.length>2?p[m++]:"",h=p[m++]||"16px",s=p[m++]||"Courier"}return(s!==this.fontFamily||h!==this.fontSize||c!==this.fontStyle)&&(this.fontFamily=s,this.fontSize=h,this.fontStyle=c,d&&this.update(!0)),this.parent},setFontFamily:function(r){return this.fontFamily!==r&&(this.fontFamily=r,this.update(!0)),this.parent},setFontStyle:function(r){return this.fontStyle!==r&&(this.fontStyle=r,this.update(!0)),this.parent},setFontSize:function(r){return typeof r=="number"&&(r=r.toString()+"px"),this.fontSize!==r&&(this.fontSize=r,this.update(!0)),this.parent},setTestString:function(r){return this.testString=r,this.update(!0)},setFixedSize:function(r,d){return this.fixedWidth=r,this.fixedHeight=d,r&&(this.parent.width=r),d&&(this.parent.height=d),this.update(!1)},setBackgroundColor:function(r){return this.backgroundColor=r,this.update(!1)},setFill:function(r){return this.color=r,this.update(!1)},setColor:function(r){return this.color=r,this.update(!1)},setResolution:function(r){return this.resolution=r,this.update(!1)},setStroke:function(r,d){return d===void 0&&(d=this.strokeThickness),r===void 0&&this.strokeThickness!==0?(this.strokeThickness=0,this.update(!0)):(this.stroke!==r||this.strokeThickness!==d)&&(this.stroke=r,this.strokeThickness=d,this.update(!0)),this.parent},setShadow:function(r,d,s,h,c,p){return r===void 0&&(r=0),d===void 0&&(d=0),s===void 0&&(s="#000"),h===void 0&&(h=0),c===void 0&&(c=!1),p===void 0&&(p=!0),this.shadowOffsetX=r,this.shadowOffsetY=d,this.shadowColor=s,this.shadowBlur=h,this.shadowStroke=c,this.shadowFill=p,this.update(!1)},setShadowOffset:function(r,d){return r===void 0&&(r=0),d===void 0&&(d=r),this.shadowOffsetX=r,this.shadowOffsetY=d,this.update(!1)},setShadowColor:function(r){return r===void 0&&(r="#000"),this.shadowColor=r,this.update(!1)},setShadowBlur:function(r){return r===void 0&&(r=0),this.shadowBlur=r,this.update(!1)},setShadowStroke:function(r){return this.shadowStroke=r,this.update(!1)},setShadowFill:function(r){return this.shadowFill=r,this.update(!1)},setWordWrapWidth:function(r,d){return d===void 0&&(d=!1),this.wordWrapWidth=r,this.wordWrapUseAdvanced=d,this.update(!1)},setWordWrapCallback:function(r,d){return d===void 0&&(d=null),this.wordWrapCallback=r,this.wordWrapCallbackScope=d,this.update(!1)},setAlign:function(r){return r===void 0&&(r="left"),this.align=r,this.update(!1)},setMaxLines:function(r){return r===void 0&&(r=0),this.maxLines=r,this.update(!1)},getTextMetrics:function(){var r=this.metrics;return{ascent:r.ascent,descent:r.descent,fontSize:r.fontSize}},toJSON:function(){var r={};for(var d in a)r[d]=this[d];return r.metrics=this.getTextMetrics(),r},destroy:function(){this.parent=void 0}});f.exports=n},76128:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(75512),g=function(u,o,a,n){if(!(o.width===0||o.height===0)){a.addToRenderList(o);var r=o.frame,d=r.width,s=r.height,h=l.getTintAppendFloatAlpha,c=u.pipelines.set(o.pipeline,o),p=c.setTexture2D(r.glTexture,o);c.batchTexture(o,r.glTexture,d,s,o.x,o.y,d/o.style.resolution,s/o.style.resolution,o.scaleX,o.scaleY,o.rotation,o.flipX,o.flipY,o.scrollFactorX,o.scrollFactorY,o.displayOriginX,o.displayOriginY,0,0,d,s,h(o.tintTopLeft,a.alpha*o._alphaTL),h(o.tintTopRight,a.alpha*o._alphaTR),h(o.tintBottomLeft,a.alpha*o._alphaBL),h(o.tintBottomRight,a.alpha*o._alphaBR),o.tintFill,0,0,a,n,!1,p)}};f.exports=g},35856:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(61068),g=t(56694),u=t(64937),o=t(89980),a=t(3504),n=t(8213),r=t(9271),d=t(93736),s=8,h=new g({Extends:o,Mixins:[u.Alpha,u.BlendMode,u.ComputedSize,u.Crop,u.Depth,u.Flip,u.GetBounds,u.Mask,u.Origin,u.Pipeline,u.PostPipeline,u.ScrollFactor,u.Tint,u.Transform,u.Visible,r],initialize:function(p,m,x,S,P,E,R){var M=p.sys.renderer;o.call(this,p,"TileSprite");var O=p.sys.textures.get(E),w=O.get(R);w.source.compressionAlgorithm&&(console.warn("TileSprite cannot use compressed texture"),O=p.sys.textures.get("__MISSING"),w=O.get()),O.type==="DynamicTexture"&&(console.warn("TileSprite cannot use Dynamic Texture"),O=p.sys.textures.get("__MISSING"),w=O.get()),!S||!P?(S=w.width,P=w.height):(S=Math.floor(S),P=Math.floor(P)),this._tilePosition=new d,this._tileScale=new d(1,1),this.dirty=!1,this.renderer=M,this.canvas=l.create(this,S,P),this.context=this.canvas.getContext("2d",{willReadFrequently:!1}),this.displayTexture=O,this.displayFrame=w,this._crop=this.resetCropObject(),this.texture=p.sys.textures.addCanvas(null,this.canvas,!0),this.frame=this.texture.get(),this.potWidth=a(w.width),this.potHeight=a(w.height),this.fillCanvas=l.create2D(this,this.potWidth,this.potHeight),this.fillContext=this.fillCanvas.getContext("2d",{willReadFrequently:!1}),this.fillPattern=null,this.setPosition(m,x),this.setSize(S,P),this.setFrame(R),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)},setTexture:function(c,p){return this.displayTexture=this.scene.sys.textures.get(c),this.setFrame(p)},setFrame:function(c){var p=this.displayTexture.get(c);return this.potWidth=a(p.width),this.potHeight=a(p.height),this.canvas.width=0,!p.cutWidth||!p.cutHeight?this.renderFlags&=~s:this.renderFlags|=s,this.displayFrame=p,this.dirty=!0,this.updateTileTexture(),this},setTilePosition:function(c,p){return c!==void 0&&(this.tilePositionX=c),p!==void 0&&(this.tilePositionY=p),this},setTileScale:function(c,p){return c===void 0&&(c=this.tileScaleX),p===void 0&&(p=c),this.tileScaleX=c,this.tileScaleY=p,this},updateTileTexture:function(){if(!(!this.dirty||!this.renderer)){var c=this.displayFrame;if(c.source.isRenderTexture||c.source.isGLTexture){console.warn("TileSprites can only use Image or Canvas based textures"),this.dirty=!1;return}var p=this.fillContext,m=this.fillCanvas,x=this.potWidth,S=this.potHeight;(!this.renderer||!this.renderer.gl)&&(x=c.cutWidth,S=c.cutHeight),p.clearRect(0,0,x,S),m.width=x,m.height=S,p.drawImage(c.source.image,c.cutX,c.cutY,c.cutWidth,c.cutHeight,0,0,x,S),this.renderer&&this.renderer.gl?this.fillPattern=this.renderer.canvasToTexture(m,this.fillPattern):this.fillPattern=p.createPattern(m,"repeat"),this.updateCanvas(),this.dirty=!1}},updateCanvas:function(){var c=this.canvas;if((c.width!==this.width||c.height!==this.height)&&(c.width=this.width,c.height=this.height,this.frame.setSize(this.width,this.height),this.updateDisplayOrigin(),this.dirty=!0),!this.dirty||this.renderer&&this.renderer.gl){this.dirty=!1;return}var p=this.context;this.scene.sys.game.config.antialias||n.disable(p);var m=this._tileScale.x,x=this._tileScale.y,S=this._tilePosition.x,P=this._tilePosition.y;p.clearRect(0,0,this.width,this.height),p.save(),p.scale(m,x),p.translate(-S,-P),p.fillStyle=this.fillPattern,p.fillRect(S,P,this.width/m,this.height/x),p.restore(),this.dirty=!1},preDestroy:function(){this.renderer&&this.renderer.gl&&this.renderer.deleteTexture(this.fillPattern),l.remove(this.canvas),l.remove(this.fillCanvas),this.fillPattern=null,this.fillContext=null,this.fillCanvas=null,this.displayTexture=null,this.displayFrame=null,this.texture.destroy(),this.renderer=null},tilePositionX:{get:function(){return this._tilePosition.x},set:function(c){this._tilePosition.x=c,this.dirty=!0}},tilePositionY:{get:function(){return this._tilePosition.y},set:function(c){this._tilePosition.y=c,this.dirty=!0}},tileScaleX:{get:function(){return this._tileScale.x},set:function(c){this._tileScale.x=c,this.dirty=!0}},tileScaleY:{get:function(){return this._tileScale.y},set:function(c){this._tileScale.y=c,this.dirty=!0}}});f.exports=h},93305:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){l.updateCanvas(),g.addToRenderList(l),t.batchSprite(l,l.frame,g,u)};f.exports=T},63950:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(88933),g=t(99325),u=t(20494),o=t(35856);g.register("tileSprite",function(a,n){a===void 0&&(a={});var r=u(a,"x",0),d=u(a,"y",0),s=u(a,"width",512),h=u(a,"height",512),c=u(a,"key",""),p=u(a,"frame",""),m=new o(this.scene,r,d,s,h,c,p);return n!==void 0&&(a.add=n),l(this.scene,m,a),m})},20509:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(35856),g=t(61286);g.register("tileSprite",function(u,o,a,n,r,d){return this.displayList.add(new l(this.scene,u,o,a,n,r,d))})},9271:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(74287),u=t(93305),f.exports={renderWebGL:g,renderCanvas:u}},74287:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(75512),g=function(u,o,a,n){o.updateCanvas();var r=o.width,d=o.height;if(!(r===0||d===0)){a.addToRenderList(o);var s=l.getTintAppendFloatAlpha,h=u.pipelines.set(o.pipeline,o),c=h.setTexture2D(o.fillPattern,o);h.batchTexture(o,o.fillPattern,o.displayFrame.width*o.tileScaleX,o.displayFrame.height*o.tileScaleY,o.x,o.y,r,d,o.scaleX,o.scaleY,o.rotation,o.flipX,o.flipY,o.scrollFactorX,o.scrollFactorY,o.originX*r,o.originY*d,0,0,r,d,s(o.tintTopLeft,a.alpha*o._alphaTL),s(o.tintTopRight,a.alpha*o._alphaTR),s(o.tintBottomLeft,a.alpha*o._alphaBL),s(o.tintBottomRight,a.alpha*o._alphaBR),o.tintFill,o.tilePositionX%o.displayFrame.width/o.displayFrame.width,o.tilePositionY%o.displayFrame.height/o.displayFrame.height,a,n,!1,c)}};f.exports=g},8630:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(82897),g=t(56694),u=t(64937),o=t(56631),a=t(97081),n=t(89980),r=t(83392),d=t(76038),s=t(76583),h=t(77974),c=new g({Extends:n,Mixins:[u.Alpha,u.BlendMode,u.Depth,u.Flip,u.GetBounds,u.Mask,u.Origin,u.Pipeline,u.PostPipeline,u.ScrollFactor,u.Size,u.TextureCrop,u.Tint,u.Transform,u.Visible,h],initialize:function(m,x,S,P){n.call(this,m,"Video"),this.video,this.videoTexture,this.videoTextureSource,this.snapshotTexture,this.flipY=!1,this._key=s(),this.touchLocked=!1,this.playWhenUnlocked=!1,this.frameReady=!1,this.isStalled=!1,this.failedPlayAttempts=0,this.metadata,this.retry=0,this.retryInterval=500,this._systemMuted=!1,this._codeMuted=!1,this._systemPaused=!1,this._codePaused=!1,this._callbacks={ended:this.completeHandler.bind(this),legacy:this.legacyPlayHandler.bind(this),playing:this.playingHandler.bind(this),seeked:this.seekedHandler.bind(this),seeking:this.seekingHandler.bind(this),stalled:this.stalledHandler.bind(this),suspend:this.stalledHandler.bind(this),waiting:this.stalledHandler.bind(this)},this._loadCallbackHandler=this.loadErrorHandler.bind(this),this._crop=this.resetCropObject(),this.markers={},this._markerIn=0,this._markerOut=0,this._playingMarker=!1,this._lastUpdate=0,this.cacheKey="",this.isSeeking=!1,this._playCalled=!1,this._rfvCallbackId=0;var E=m.sys.game;this._device=E.device.video,this.setPosition(x,S),this.setSize(256,256),this.initPipeline(),this.initPostPipeline(!0),E.events.on(a.PAUSE,this.globalPause,this),E.events.on(a.RESUME,this.globalResume,this);var R=m.sys.sound;R&&R.on(d.GLOBAL_MUTE,this.globalMute,this),P&&this.load(P)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},load:function(p){var m=this.scene.sys.cache.video.get(p);return m?(this.cacheKey=p,this.loadHandler(m.url,m.noAudio,m.crossOrigin)):console.warn("No video in cache for key: "+p),this},changeSource:function(p,m,x,S,P){m===void 0&&(m=!0),x===void 0&&(x=!1),this.cacheKey!==p&&(this.load(p),m&&this.play(x,S,P))},getVideoKey:function(){return this.cacheKey},loadURL:function(p,m,x){m===void 0&&(m=!1);var S=this._device.getVideoURL(p);return S?(this.cacheKey="",this.loadHandler(S.url,m,x)):console.warn("No supported video format found for "+p),this},loadMediaStream:function(p,m,x){return this.loadHandler(null,m,x,p)},loadHandler:function(p,m,x,S){m||(m=!1);var P=this.video;if(P?(this.removeLoadEventHandlers(),this.stop()):(P=document.createElement("video"),P.controls=!1,P.setAttribute("playsinline","playsinline"),P.setAttribute("preload","auto"),P.setAttribute("disablePictureInPicture","true")),m?(P.muted=!0,P.defaultMuted=!0,P.setAttribute("autoplay","autoplay")):(P.muted=!1,P.defaultMuted=!1,P.removeAttribute("autoplay")),x?P.setAttribute("crossorigin",x):P.removeAttribute("crossorigin"),S)if("srcObject"in P)try{P.srcObject=S}catch(E){if(E.name!=="TypeError")throw E;P.src=URL.createObjectURL(S)}else P.src=URL.createObjectURL(S);else P.src=p;return this.addLoadEventHandlers(),this.retry=0,this.video=P,this._playCalled=!1,P.load(),this},requestVideoFrame:function(p,m){var x=this.video;if(x){var S=m.width,P=m.height,E=this.videoTexture,R=this.videoTextureSource,M=!E||R.source!==x;M?(this._codePaused=x.paused,this._codeMuted=x.muted,E?(R.source=x,R.width=S,R.height=P,E.get().setSize(S,P)):(E=this.scene.sys.textures.create(this._key,x,S,P),E.add("__BASE",0,0,0,S,P),this.setTexture(E),this.videoTexture=E,this.videoTextureSource=E.source[0],this.videoTextureSource.setFlipY(this.flipY),this.emit(o.VIDEO_TEXTURE,this,E)),this.setSizeToFrame(),this.updateDisplayOrigin()):R.update(),this.isStalled=!1,this.metadata=m;var O=m.mediaTime;M&&(this._lastUpdate=O,this.emit(o.VIDEO_CREATED,this,S,P),this.frameReady||(this.frameReady=!0,this.emit(o.VIDEO_PLAY,this))),this._playingMarker?O>=this._markerOut&&(x.loop?(x.currentTime=this._markerIn,this.emit(o.VIDEO_LOOP,this)):(this.stop(!1),this.emit(o.VIDEO_COMPLETE,this))):O-1&&x>m&&x=0&&!isNaN(x)&&x>m&&(this.markers[p]=[m,x]),this},playMarker:function(p,m){var x=this.markers[p];return x&&this.play(m,x[0],x[1]),this},removeMarker:function(p){return delete this.markers[p],this},snapshot:function(p,m){return p===void 0&&(p=this.width),m===void 0&&(m=this.height),this.snapshotArea(0,0,this.width,this.height,p,m)},snapshotArea:function(p,m,x,S,P,E){p===void 0&&(p=0),m===void 0&&(m=0),x===void 0&&(x=this.width),S===void 0&&(S=this.height),P===void 0&&(P=x),E===void 0&&(E=S);var R=this.video,M=this.snapshotTexture;return M?(M.setSize(P,E),R&&M.context.drawImage(R,p,m,x,S,0,0,P,E)):(M=this.scene.sys.textures.createCanvas(s(),P,E),this.snapshotTexture=M,R&&M.context.drawImage(R,p,m,x,S,0,0,P,E)),M.update()},saveSnapshotTexture:function(p){return this.snapshotTexture?this.scene.sys.textures.renameTexture(this.snapshotTexture.key,p):this.snapshotTexture=this.scene.sys.textures.createCanvas(p,this.width,this.height),this.snapshotTexture},playSuccess:function(){if(this._playCalled){this.addEventHandlers(),this._codePaused=!1,this.touchLocked&&(this.touchLocked=!1,this.emit(o.VIDEO_UNLOCKED,this));var p=this.scene.sys.sound;p&&p.mute&&this.setMute(!0),this._markerIn>-1&&(this.video.currentTime=this._markerIn)}},playError:function(p){var m=p.name;m==="NotAllowedError"?(this.touchLocked=!0,this.playWhenUnlocked=!0,this.failedPlayAttempts=1,this.emit(o.VIDEO_LOCKED,this)):m==="NotSupportedError"?(this.stop(!1),this.emit(o.VIDEO_UNSUPPORTED,this,p)):(this.stop(!1),this.emit(o.VIDEO_ERROR,this,p))},legacyPlayHandler:function(){var p=this.video;p&&(this.playSuccess(),p.removeEventListener("playing",this._callbacks.legacy))},playingHandler:function(){this.isStalled=!1,this.emit(o.VIDEO_PLAYING,this)},loadErrorHandler:function(p){this.stop(!1),this.emit(o.VIDEO_ERROR,this,p)},stalledHandler:function(p){this.isStalled=!0,this.emit(o.VIDEO_STALLED,this,p)},completeHandler:function(){this._playCalled=!1,this.emit(o.VIDEO_COMPLETE,this)},preUpdate:function(p,m){var x=this.video;!x||!this._playCalled||this.touchLocked&&this.playWhenUnlocked&&(this.retry+=m,this.retry>=this.retryInterval&&(this.createPlayPromise(!1),this.retry=0))},seekTo:function(p){var m=this.video;if(m){var x=m.duration;if(x!==1/0&&!isNaN(x)){var S=x*p;this.setCurrentTime(S)}}return this},getCurrentTime:function(){return this.video?this.video.currentTime:0},setCurrentTime:function(p){var m=this.video;if(m){if(typeof p=="string"){var x=p[0],S=parseFloat(p.substr(1));x==="+"?p=m.currentTime+S:x==="-"&&(p=m.currentTime-S)}m.currentTime=p}return this},seekingHandler:function(){this.isSeeking=!0,this.emit(o.VIDEO_SEEKING,this)},seekedHandler:function(){this.isSeeking=!1,this.emit(o.VIDEO_SEEKED,this)},getProgress:function(){var p=this.video;if(p){var m=p.duration;if(m!==1/0&&!isNaN(m))return p.currentTime/m}return-1},getDuration:function(){return this.video?this.video.duration:0},setMute:function(p){p===void 0&&(p=!0),this._codeMuted=p;var m=this.video;return m&&(m.muted=this._systemMuted?!0:p),this},isMuted:function(){return this._codeMuted},globalMute:function(p,m){this._systemMuted=m;var x=this.video;x&&(x.muted=this._codeMuted?!0:m)},globalPause:function(){this._systemPaused=!0,this.video&&!this.video.ended&&(this.removeEventHandlers(),this.video.pause())},globalResume:function(){this._systemPaused=!1,this.video&&!this._codePaused&&!this.video.ended&&this.createPlayPromise()},setPaused:function(p){p===void 0&&(p=!0);var m=this.video;return this._codePaused=p,m&&!m.ended&&(p?m.paused||(this.removeEventHandlers(),m.pause()):p||(this._playCalled?m.paused&&!this._systemPaused&&this.createPlayPromise():this.play())),this},pause:function(){return this.setPaused(!0)},resume:function(){return this.setPaused(!1)},getVolume:function(){return this.video?this.video.volume:1},setVolume:function(p){return p===void 0&&(p=1),this.video&&(this.video.volume=l(p,0,1)),this},getPlaybackRate:function(){return this.video?this.video.playbackRate:1},setPlaybackRate:function(p){return this.video&&(this.video.playbackRate=p),this},getLoop:function(){return this.video?this.video.loop:!1},setLoop:function(p){return p===void 0&&(p=!0),this.video&&(this.video.loop=p),this},isPlaying:function(){return this.video?!(this.video.paused||this.video.ended):!1},isPaused:function(){return this.video&&this._playCalled&&this.video.paused||this._codePaused||this._systemPaused},saveTexture:function(p,m){return m===void 0&&(m=!1),this.videoTexture&&(this.scene.sys.textures.renameTexture(this._key,p),this.videoTextureSource.setFlipY(m)),this._key=p,this.flipY=m,!!this.videoTexture},stop:function(p){p===void 0&&(p=!0);var m=this.video;return m&&(this.removeEventHandlers(),m.cancelVideoFrameCallback(this._rfvCallbackId),m.pause()),this.retry=0,this._playCalled=!1,p&&this.emit(o.VIDEO_STOP,this),this},removeVideoElement:function(){var p=this.video;if(p){for(p.parentNode&&p.parentNode.removeChild(p);p.hasChildNodes();)p.removeChild(p.firstChild);p.removeAttribute("autoplay"),p.removeAttribute("src"),this.video=null}},preDestroy:function(){this.stop(!1),this.removeLoadEventHandlers(),this.removeVideoElement();var p=this.scene.sys.game.events;p.off(a.PAUSE,this.globalPause,this),p.off(a.RESUME,this.globalResume,this);var m=this.scene.sys.sound;m&&m.off(d.GLOBAL_MUTE,this.globalMute,this)}});f.exports=c},56933:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){l.videoTexture&&(g.addToRenderList(l),t.batchSprite(l,l.frame,g,u))};f.exports=T},65601:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(88933),g=t(99325),u=t(20494),o=t(8630);g.register("video",function(a,n){a===void 0&&(a={});var r=u(a,"key",null),d=new o(this.scene,0,0,r);return n!==void 0&&(a.add=n),l(this.scene,d,a),d})},215:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(8630),g=t(61286);g.register("video",function(u,o,a){return this.displayList.add(new l(this.scene,u,o,a))})},77974:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(83572),u=t(56933),f.exports={renderWebGL:g,renderCanvas:u}},83572:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){l.videoTexture&&(g.addToRenderList(l),l.pipeline.batchSprite(l,g,u))};f.exports=T},71030:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(95723),g=t(26673),u=t(65650),o=t(56694),a=t(64937),n=t(89980),r=t(74118),d=t(94287),s=new o({Extends:n,Mixins:[a.Depth,a.GetBounds,a.Origin,a.Transform,a.ScrollFactor,a.Visible],initialize:function(c,p,m,x,S){x===void 0&&(x=1),S===void 0&&(S=x),n.call(this,c,"Zone"),this.setPosition(p,m),this.width=x,this.height=S,this.blendMode=l.NORMAL,this.updateDisplayOrigin()},displayWidth:{get:function(){return this.scaleX*this.width},set:function(h){this.scaleX=h/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(h){this.scaleY=h/this.height}},setSize:function(h,c,p){p===void 0&&(p=!0),this.width=h,this.height=c,this.updateDisplayOrigin();var m=this.input;return p&&m&&!m.customHitArea&&(m.hitArea.width=h,m.hitArea.height=c),this},setDisplaySize:function(h,c){return this.displayWidth=h,this.displayHeight=c,this},setCircleDropZone:function(h){return this.setDropZone(new g(0,0,h),u)},setRectangleDropZone:function(h,c){return this.setDropZone(new r(0,0,h,c),d)},setDropZone:function(h,c){return this.input||this.setInteractive(h,c,!0),this},setAlpha:function(){},setBlendMode:function(){},renderCanvas:function(h,c,p){p.addToRenderList(c)},renderWebGL:function(h,c,p){p.addToRenderList(c)}});f.exports=s},24067:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(99325),g=t(20494),u=t(71030);l.register("zone",function(o){var a=g(o,"x",0),n=g(o,"y",0),r=g(o,"width",1),d=g(o,"height",r);return new u(this.scene,a,n,r,d)})},34546:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(71030),g=t(61286);g.register("zone",function(u,o,a,n){return this.displayList.add(new l(this.scene,u,o,a,n))})},95847:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t.radius>0?Math.PI*t.radius*t.radius:0};f.exports=T},26673:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(65650),u=t(94026),o=t(62941),a=t(52394),n=t(30977),r=new l({initialize:function(s,h,c){s===void 0&&(s=0),h===void 0&&(h=0),c===void 0&&(c=0),this.type=a.CIRCLE,this.x=s,this.y=h,this._radius=c,this._diameter=c*2},contains:function(d,s){return g(this,d,s)},getPoint:function(d,s){return u(this,d,s)},getPoints:function(d,s,h){return o(this,d,s,h)},getRandomPoint:function(d){return n(this,d)},setTo:function(d,s,h){return this.x=d,this.y=s,this._radius=h,this._diameter=h*2,this},setEmpty:function(){return this._radius=0,this._diameter=0,this},setPosition:function(d,s){return s===void 0&&(s=d),this.x=d,this.y=s,this},isEmpty:function(){return this._radius<=0},radius:{get:function(){return this._radius},set:function(d){this._radius=d,this._diameter=d*2}},diameter:{get:function(){return this._diameter},set:function(d){this._diameter=d,this._radius=d*.5}},left:{get:function(){return this.x-this._radius},set:function(d){this.x=d+this._radius}},right:{get:function(){return this.x+this._radius},set:function(d){this.x=d-this._radius}},top:{get:function(){return this.y-this._radius},set:function(d){this.y=d+this._radius}},bottom:{get:function(){return this.y+this._radius},set:function(d){this.y=d-this._radius}}});f.exports=r},37964:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return 2*(Math.PI*t.radius)};f.exports=T},72233:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=function(u,o,a){return a===void 0&&(a=new l),a.x=u.x+u.radius*Math.cos(o),a.y=u.y+u.radius*Math.sin(o),a};f.exports=g},61761:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(26673),g=function(u){return new l(u.x,u.y,u.radius)};f.exports=g},65650:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){if(t.radius>0&&l>=t.left&&l<=t.right&&g>=t.top&&g<=t.bottom){var u=(t.x-l)*(t.x-l),o=(t.y-g)*(t.y-g);return u+o<=t.radius*t.radius}else return!1};f.exports=T},39187:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(65650),g=function(u,o){return l(u,o.x,o.y)};f.exports=g},58672:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(65650),g=function(u,o){return l(u,o.x,o.y)&&l(u,o.right,o.y)&&l(u,o.x,o.bottom)&&l(u,o.right,o.bottom)};f.exports=g},42997:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return l.setTo(t.x,t.y,t.radius)};f.exports=T},94894:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return t.x===l.x&&t.y===l.y&&t.radius===l.radius};f.exports=T},48027:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(74118),g=function(u,o){return o===void 0&&(o=new l),o.x=u.left,o.y=u.top,o.width=u.diameter,o.height=u.diameter,o};f.exports=g},94026:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72233),g=t(91806),u=t(83392),o=t(79967),a=function(n,r,d){d===void 0&&(d=new o);var s=g(r,0,u.PI2);return l(n,s,d)};f.exports=a},62941:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(37964),g=t(72233),u=t(91806),o=t(83392),a=function(n,r,d,s){s===void 0&&(s=[]),!r&&d>0&&(r=l(n)/d);for(var h=0;h{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){return t.x+=l,t.y+=g,t};f.exports=T},88665:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return t.x+=l.x,t.y+=l.y,t};f.exports=T},30977:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=function(u,o){o===void 0&&(o=new l);var a=2*Math.PI*Math.random(),n=Math.random()+Math.random(),r=n>1?2-n:n,d=r*Math.cos(a),s=r*Math.sin(a);return o.x=u.x+d*u.radius,o.y=u.y+s*u.radius,o};f.exports=g},6112:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(26673);l.Area=t(95847),l.Circumference=t(37964),l.CircumferencePoint=t(72233),l.Clone=t(61761),l.Contains=t(65650),l.ContainsPoint=t(39187),l.ContainsRect=t(58672),l.CopyFrom=t(42997),l.Equals=t(94894),l.GetBounds=t(48027),l.GetPoint=t(94026),l.GetPoints=t(62941),l.Offset=t(34585),l.OffsetPoint=t(88665),l.Random=t(30977),f.exports=l},52394:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={CIRCLE:0,ELLIPSE:1,LINE:2,POINT:3,POLYGON:4,RECTANGLE:5,TRIANGLE:6};f.exports=T},58605:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t.isEmpty()?0:t.getMajorRadius()*t.getMinorRadius()*Math.PI};f.exports=T},39507:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){var l=t.width/2,g=t.height/2,u=Math.pow(l-g,2)/Math.pow(l+g,2);return Math.PI*(l+g)*(1+3*u/(10+Math.sqrt(4-3*u)))};f.exports=T},86998:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=function(u,o,a){a===void 0&&(a=new l);var n=u.width/2,r=u.height/2;return a.x=u.x+n*Math.cos(o),a.y=u.y+r*Math.sin(o),a};f.exports=g},81773:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(95669),g=function(u){return new l(u.x,u.y,u.width,u.height)};f.exports=g},72313:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){if(t.width<=0||t.height<=0)return!1;var u=(l-t.x)/t.width,o=(g-t.y)/t.height;return u*=u,o*=o,u+o<.25};f.exports=T},34368:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72313),g=function(u,o){return l(u,o.x,o.y)};f.exports=g},71431:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72313),g=function(u,o){return l(u,o.x,o.y)&&l(u,o.right,o.y)&&l(u,o.x,o.bottom)&&l(u,o.right,o.bottom)};f.exports=g},75459:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return l.setTo(t.x,t.y,t.width,t.height)};f.exports=T},95669:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(72313),u=t(95340),o=t(54978),a=t(52394),n=t(72006),r=new l({initialize:function(s,h,c,p){s===void 0&&(s=0),h===void 0&&(h=0),c===void 0&&(c=0),p===void 0&&(p=0),this.type=a.ELLIPSE,this.x=s,this.y=h,this.width=c,this.height=p},contains:function(d,s){return g(this,d,s)},getPoint:function(d,s){return u(this,d,s)},getPoints:function(d,s,h){return o(this,d,s,h)},getRandomPoint:function(d){return n(this,d)},setTo:function(d,s,h,c){return this.x=d,this.y=s,this.width=h,this.height=c,this},setEmpty:function(){return this.width=0,this.height=0,this},setPosition:function(d,s){return s===void 0&&(s=d),this.x=d,this.y=s,this},setSize:function(d,s){return s===void 0&&(s=d),this.width=d,this.height=s,this},isEmpty:function(){return this.width<=0||this.height<=0},getMinorRadius:function(){return Math.min(this.width,this.height)/2},getMajorRadius:function(){return Math.max(this.width,this.height)/2},left:{get:function(){return this.x-this.width/2},set:function(d){this.x=d+this.width/2}},right:{get:function(){return this.x+this.width/2},set:function(d){this.x=d-this.width/2}},top:{get:function(){return this.y-this.height/2},set:function(d){this.y=d+this.height/2}},bottom:{get:function(){return this.y+this.height/2},set:function(d){this.y=d-this.height/2}}});f.exports=r},98068:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return t.x===l.x&&t.y===l.y&&t.width===l.width&&t.height===l.height};f.exports=T},72897:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(74118),g=function(u,o){return o===void 0&&(o=new l),o.x=u.left,o.y=u.top,o.width=u.width,o.height=u.height,o};f.exports=g},95340:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(86998),g=t(91806),u=t(83392),o=t(79967),a=function(n,r,d){d===void 0&&(d=new o);var s=g(r,0,u.PI2);return l(n,s,d)};f.exports=a},54978:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(39507),g=t(86998),u=t(91806),o=t(83392),a=function(n,r,d,s){s===void 0&&(s=[]),!r&&d>0&&(r=l(n)/d);for(var h=0;h{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){return t.x+=l,t.y+=g,t};f.exports=T},36233:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return t.x+=l.x,t.y+=l.y,t};f.exports=T},72006:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=function(u,o){o===void 0&&(o=new l);var a=Math.random()*Math.PI*2,n=Math.sqrt(Math.random());return o.x=u.x+n*Math.cos(a)*u.width/2,o.y=u.y+n*Math.sin(a)*u.height/2,o};f.exports=g},40652:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(95669);l.Area=t(58605),l.Circumference=t(39507),l.CircumferencePoint=t(86998),l.Clone=t(81773),l.Contains=t(72313),l.ContainsPoint=t(34368),l.ContainsRect=t(71431),l.CopyFrom=t(75459),l.Equals=t(98068),l.GetBounds=t(72897),l.GetPoint=t(95340),l.GetPoints=t(54978),l.Offset=t(77951),l.OffsetPoint=t(36233),l.Random=t(72006),f.exports=l},84068:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(52394),g=t(98611),u={Circle:t(6112),Ellipse:t(40652),Intersects:t(7563),Line:t(28482),Mesh:t(14293),Point:t(63472),Polygon:t(44359),Rectangle:t(66658),Triangle:t(87619)};u=g(!1,u,l),f.exports=u},22184:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(53996),g=function(u,o){return l(u.x,u.y,o.x,o.y)<=u.radius+o.radius};f.exports=g},26535:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){var g=l.width/2,u=l.height/2,o=Math.abs(t.x-l.x-g),a=Math.abs(t.y-l.y-u),n=g+t.radius,r=u+t.radius;if(o>n||a>r)return!1;if(o<=g||a<=u)return!0;var d=o-g,s=a-u,h=d*d,c=s*s,p=t.radius*t.radius;return h+c<=p};f.exports=T},71145:(f,T,t)=>{/** + * @author Florian Vazelle + * @author Geoffrey Glaive + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=t(22184),u=function(o,a,n){if(n===void 0&&(n=[]),g(o,a)){var r=o.x,d=o.y,s=o.radius,h=a.x,c=a.y,p=a.radius,m,x,S,P,E;if(d===c)E=(p*p-s*s-h*h+r*r)/(2*(r-h)),m=1,x=-2*c,S=h*h+E*E-2*h*E+c*c-p*p,P=x*x-4*m*S,P===0?n.push(new l(E,-x/(2*m))):P>0&&(n.push(new l(E,(-x+Math.sqrt(P))/(2*m))),n.push(new l(E,(-x-Math.sqrt(P))/(2*m))));else{var R=(r-h)/(d-c),M=(p*p-s*s-h*h+r*r-c*c+d*d)/(2*(d-c));m=R*R+1,x=2*d*R-2*M*R-2*r,S=r*r+d*d+M*M-s*s-2*d*M,P=x*x-4*m*S,P===0?(E=-x/(2*m),n.push(new l(E,M-E*R))):P>0&&(E=(-x+Math.sqrt(P))/(2*m),n.push(new l(E,M-E*R)),E=(-x-Math.sqrt(P))/(2*m),n.push(new l(E,M-E*R)))}}return n};f.exports=u},62508:(f,T,t)=>{/** + * @author Florian Vazelle + * @author Geoffrey Glaive + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(26111),g=t(26535),u=function(o,a,n){if(n===void 0&&(n=[]),g(o,a)){var r=a.getLineA(),d=a.getLineB(),s=a.getLineC(),h=a.getLineD();l(r,o,n),l(d,o,n),l(s,o,n),l(h,o,n)}return n};f.exports=u},26111:(f,T,t)=>{/** + * @author Florian Vazelle + * @author Geoffrey Glaive + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=t(61472),u=function(o,a,n){if(n===void 0&&(n=[]),g(o,a)){var r=o.x1,d=o.y1,s=o.x2,h=o.y2,c=a.x,p=a.y,m=a.radius,x=s-r,S=h-d,P=r-c,E=d-p,R=x*x+S*S,M=2*(x*P+S*E),O=P*P+E*E-m*m,w=M*M-4*R*O,L,F;if(w===0){var b=-M/(2*R);L=r+b*x,F=d+b*S,b>=0&&b<=1&&n.push(new l(L,F))}else if(w>0){var D=(-M-Math.sqrt(w))/(2*R);L=r+D*x,F=d+D*S,D>=0&&D<=1&&n.push(new l(L,F));var N=(-M+Math.sqrt(w))/(2*R);L=r+N*x,F=d+N*S,N>=0&&N<=1&&n.push(new l(L,F))}}return n};f.exports=u},96537:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(70015),g=function(u,o,a,n){a===void 0&&(a=!1);var r=u.x1,d=u.y1,s=u.x2,h=u.y2,c=o.x1,p=o.y1,m=o.x2,x=o.y2,S=s-r,P=h-d,E=m-c,R=x-p,M=S*R-P*E;if(M===0)return null;var O,w,L;if(a){if(O=(S*(p-d)+P*(r-c))/(E*P-R*S),w=(c+E*O-r)/S,w<0||O<0||O>1)return null;L=w}else{if(O=((c-r)*R-(p-d)*E)/M,w=((d-p)*S-(r-c)*P)/M,O<0||O>1||w<0||w>1)return null;L=O}return n===void 0&&(n=new l),n.set(r+S*L,d+P*L,L)};f.exports=g},17647:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(96537),g=t(88829),u=t(70015),o=new g,a=new u,n=function(r,d,s,h){s===void 0&&(s=!1),h===void 0&&(h=new u);var c=!1;h.set(),a.set();for(var p=d[0],m=1;m{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(70015),g=t(51729),u=t(17647),o=new l,a=function(n,r,d,s){s===void 0&&(s=new g),Array.isArray(r)||(r=[r]);var h=!1;s.set(),o.set();for(var c=0;c{/** + * @author Florian Vazelle + * @author Geoffrey Glaive + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=t(25227),u=t(47910),o=function(a,n,r){if(r===void 0&&(r=[]),u(a,n))for(var d=n.getLineA(),s=n.getLineB(),h=n.getLineC(),c=n.getLineD(),p=[new l,new l,new l,new l],m=[g(d,a,p[0]),g(s,a,p[1]),g(h,a,p[2]),g(c,a,p[3])],x=0;x<4;x++)m[x]&&r.push(p[x]);return r};f.exports=o},7449:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(51729),g=t(68439),u=t(88829),o=new u;function a(d,s,h,c,p){var m=Math.cos(d),x=Math.sin(d);o.setTo(s,h,s+m,h+x);var S=g(o,c,!0);S&&p.push(new l(S.x,S.y,d,S.w))}function n(d,s){return d.z-s.z}var r=function(d,s,h){Array.isArray(h)||(h=[h]);for(var c=[],p=[],m=0;m{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(74118),g=t(90205),u=function(o,a,n){return n===void 0&&(n=new l),g(o,a)&&(n.x=Math.max(o.x,a.x),n.y=Math.max(o.y,a.y),n.width=Math.min(o.right,a.right)-n.x,n.height=Math.min(o.bottom,a.bottom)-n.y),n};f.exports=u},1946:(f,T,t)=>{/** + * @author Florian Vazelle + * @author Geoffrey Glaive + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(9569),g=t(90205),u=function(o,a,n){if(n===void 0&&(n=[]),g(o,a)){var r=o.getLineA(),d=o.getLineB(),s=o.getLineC(),h=o.getLineD();l(r,a,n),l(d,a,n),l(s,a,n),l(h,a,n)}return n};f.exports=u},34211:(f,T,t)=>{/** + * @author Florian Vazelle + * @author Geoffrey Glaive + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(20370),g=t(9569),u=function(o,a,n){if(n===void 0&&(n=[]),l(o,a)){var r=a.getLineA(),d=a.getLineB(),s=a.getLineC();g(r,o,n),g(d,o,n),g(s,o,n)}return n};f.exports=u},80511:(f,T,t)=>{/** + * @author Florian Vazelle + * @author Geoffrey Glaive + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(26111),g=t(48411),u=function(o,a,n){if(n===void 0&&(n=[]),g(o,a)){var r=o.getLineA(),d=o.getLineB(),s=o.getLineC();l(r,a,n),l(d,a,n),l(s,a,n)}return n};f.exports=u},31343:(f,T,t)=>{/** + * @author Florian Vazelle + * @author Geoffrey Glaive + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=t(86117),u=t(25227),o=function(a,n,r){if(r===void 0&&(r=[]),g(a,n))for(var d=a.getLineA(),s=a.getLineB(),h=a.getLineC(),c=[new l,new l,new l],p=[u(d,n,c[0]),u(s,n,c[1]),u(h,n,c[2])],m=0;m<3;m++)p[m]&&r.push(c[m]);return r};f.exports=o},70534:(f,T,t)=>{/** + * @author Florian Vazelle + * @author Geoffrey Glaive + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(23589),g=t(31343),u=function(o,a,n){if(n===void 0&&(n=[]),l(o,a)){var r=a.getLineA(),d=a.getLineB(),s=a.getLineC();g(o,r,n),g(o,d,n),g(o,s,n)}return n};f.exports=u},61472:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(65650),g=t(79967),u=new g,o=function(a,n,r){if(r===void 0&&(r=u),l(n,a.x1,a.y1))return r.x=a.x1,r.y=a.y1,!0;if(l(n,a.x2,a.y2))return r.x=a.x2,r.y=a.y2,!0;var d=a.x2-a.x1,s=a.y2-a.y1,h=n.x-a.x1,c=n.y-a.y1,p=d*d+s*s,m=d,x=s;if(p>0){var S=(h*d+c*s)/p;m*=S,x*=S}r.x=a.x1+m,r.y=a.y1+x;var P=m*m+x*x;return P<=p&&m*d+x*s>=0&&l(n,r.x,r.y)};f.exports=o},25227:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){var u=t.x1,o=t.y1,a=t.x2,n=t.y2,r=l.x1,d=l.y1,s=l.x2,h=l.y2;if(u===a&&o===n||r===s&&d===h)return!1;var c=(h-d)*(a-u)-(s-r)*(n-o);if(c===0)return!1;var p=((s-r)*(o-d)-(h-d)*(u-r))/c,m=((a-u)*(o-d)-(n-o)*(u-r))/c;return p<0||p>1||m<0||m>1?!1:(g&&(g.x=u+p*(a-u),g.y=o+p*(n-o)),!0)};f.exports=T},47910:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){var g=t.x1,u=t.y1,o=t.x2,a=t.y2,n=l.x,r=l.y,d=l.right,s=l.bottom,h=0;if(g>=n&&g<=d&&u>=r&&u<=s||o>=n&&o<=d&&a>=r&&a<=s)return!0;if(g=n){if(h=u+(a-u)*(n-g)/(o-g),h>r&&h<=s)return!0}else if(g>d&&o<=d&&(h=u+(a-u)*(d-g)/(o-g),h>=r&&h<=s))return!0;if(u=r){if(h=g+(o-g)*(r-u)/(a-u),h>=n&&h<=d)return!0}else if(u>s&&a<=s&&(h=g+(o-g)*(s-u)/(a-u),h>=n&&h<=d))return!0;return!1};f.exports=T},34426:f=>{/** + * @author Richard Davey + * @author Florian Mertens + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){g===void 0&&(g=1);var u=l.x1,o=l.y1,a=l.x2,n=l.y2,r=t.x,d=t.y,s=(a-u)*(a-u)+(n-o)*(n-o);if(s===0)return!1;var h=((r-u)*(a-u)+(d-o)*(n-o))/s;if(h<0)return Math.sqrt((u-r)*(u-r)+(o-d)*(o-d))<=g;if(h>=0&&h<=1){var c=((o-d)*(a-u)-(u-r)*(n-o))/s;return Math.abs(c)*Math.sqrt(s)<=g}else return Math.sqrt((a-r)*(a-r)+(n-d)*(n-d))<=g};f.exports=T},81414:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(34426),g=function(u,o){if(!l(u,o))return!1;var a=Math.min(o.x1,o.x2),n=Math.max(o.x1,o.x2),r=Math.min(o.y1,o.y2),d=Math.max(o.y1,o.y2);return u.x>=a&&u.x<=n&&u.y>=r&&u.y<=d};f.exports=g},90205:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return t.width<=0||t.height<=0||l.width<=0||l.height<=0?!1:!(t.rightl.right||t.y>l.bottom)};f.exports=T},20370:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(25227),g=t(94287),u=t(86875),o=t(87279),a=function(n,r){if(r.left>n.right||r.rightn.bottom||r.bottom0};f.exports=a},8786:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u,o,a){return a===void 0&&(a=0),!(l>t.right+a||gt.bottom+a||o{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(61472),g=t(60689),u=function(o,a){return o.left>a.right||o.righta.bottom||o.bottom{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(25227),g=function(u,o){return!!(u.contains(o.x1,o.y1)||u.contains(o.x2,o.y2)||l(u.getLineA(),o)||l(u.getLineB(),o)||l(u.getLineC(),o))};f.exports=g},23589:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(86875),g=t(18680),u=t(25227),o=function(a,n){if(a.left>n.right||a.rightn.bottom||a.bottom0||(m=g(n),x=l(a,m,!0),x.length>0)};f.exports=o},7563:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={CircleToCircle:t(22184),CircleToRectangle:t(26535),GetCircleToCircle:t(71145),GetCircleToRectangle:t(62508),GetLineToCircle:t(26111),GetLineToLine:t(96537),GetLineToPoints:t(17647),GetLineToPolygon:t(68439),GetLineToRectangle:t(9569),GetRaysFromPointToPolygon:t(7449),GetRectangleIntersection:t(82931),GetRectangleToRectangle:t(1946),GetRectangleToTriangle:t(34211),GetTriangleToCircle:t(80511),GetTriangleToLine:t(31343),GetTriangleToTriangle:t(70534),LineToCircle:t(61472),LineToLine:t(25227),LineToRectangle:t(47910),PointToLine:t(34426),PointToLineSegment:t(81414),RectangleToRectangle:t(90205),RectangleToTriangle:t(20370),RectangleToValues:t(8786),TriangleToCircle:t(48411),TriangleToLine:t(86117),TriangleToTriangle:t(23589)}},50599:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return Math.atan2(t.y2-t.y1,t.x2-t.x1)};f.exports=T},58813:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){l===void 0&&(l=1),g===void 0&&(g=[]);var u=Math.round(t.x1),o=Math.round(t.y1),a=Math.round(t.x2),n=Math.round(t.y2),r=Math.abs(a-u),d=Math.abs(n-o),s=u-d&&(c-=d,u+=s),m{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){var u=l-(t.x1+t.x2)/2,o=g-(t.y1+t.y2)/2;return t.x1+=u,t.y1+=o,t.x2+=u,t.y2+=o,t};f.exports=T},26718:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(88829),g=function(u){return new l(u.x1,u.y1,u.x2,u.y2)};f.exports=g},88930:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return l.setTo(t.x1,t.y1,t.x2,t.y2)};f.exports=T},90656:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return t.x1===l.x1&&t.y1===l.y1&&t.x2===l.x2&&t.y2===l.y2};f.exports=T},30897:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(16028),g=function(u,o,a){a===void 0&&(a=o);var n=l(u),r=u.x2-u.x1,d=u.y2-u.y1;return o&&(u.x1=u.x1-r/n*o,u.y1=u.y1-d/n*o),a&&(u.x2=u.x2+r/n*a,u.y2=u.y2+d/n*a),u};f.exports=g},30684:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(92951),g=t(21902),u=t(79967),o=function(a,n,r,d,s){d===void 0&&(d=0),s===void 0&&(s=[]);var h=[],c=a.x1,p=a.y1,m=a.x2-c,x=a.y2-p,S=g(n,s),P,E,R=r-1;for(P=0;P0){var M=h[0],O=[M];for(P=1;P=d&&(O.push(w),M=w)}var L=h[h.length-1];return l(M,L){/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=function(u,o){return o===void 0&&(o=new l),o.x=(u.x1+u.x2)/2,o.y=(u.y1+u.y2)/2,o};f.exports=g},11222:(f,T,t)=>{/** + * @author Richard Davey + * @author Florian Mertens + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=function(u,o,a){a===void 0&&(a=new l);var n=u.x1,r=u.y1,d=u.x2,s=u.y2,h=(d-n)*(d-n)+(s-r)*(s-r);if(h===0)return a;var c=((o.x-n)*(d-n)+(o.y-r)*(s-r))/h;return a.x=n+c*(d-n),a.y=r+c*(s-r),a};f.exports=g},7377:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(83392),g=t(50599),u=t(79967),o=function(a,n){n===void 0&&(n=new u);var r=g(a)-l.TAU;return n.x=Math.cos(r),n.y=Math.sin(r),n};f.exports=o},66464:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=function(u,o,a){return a===void 0&&(a=new l),a.x=u.x1+(u.x2-u.x1)*o,a.y=u.y1+(u.y2-u.y1)*o,a};f.exports=g},8570:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(16028),g=t(79967),u=function(o,a,n,r){r===void 0&&(r=[]),!a&&n>0&&(a=l(o)/n);for(var d=o.x1,s=o.y1,h=o.x2,c=o.y2,p=0;p{/** + * @author Richard Davey + * @author Florian Mertens + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){var g=t.x1,u=t.y1,o=t.x2,a=t.y2,n=(o-g)*(o-g)+(a-u)*(a-u);if(n===0)return!1;var r=((u-l.y)*(o-g)-(g-l.x)*(a-u))/n;return Math.abs(r)*Math.sqrt(n)};f.exports=T},82996:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return Math.abs(t.y1-t.y2)};f.exports=T},16028:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return Math.sqrt((t.x2-t.x1)*(t.x2-t.x1)+(t.y2-t.y1)*(t.y2-t.y1))};f.exports=T},88829:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(66464),u=t(8570),o=t(52394),a=t(74077),n=t(93736),r=new l({initialize:function(s,h,c,p){s===void 0&&(s=0),h===void 0&&(h=0),c===void 0&&(c=0),p===void 0&&(p=0),this.type=o.LINE,this.x1=s,this.y1=h,this.x2=c,this.y2=p},getPoint:function(d,s){return g(this,d,s)},getPoints:function(d,s,h){return u(this,d,s,h)},getRandomPoint:function(d){return a(this,d)},setTo:function(d,s,h,c){return d===void 0&&(d=0),s===void 0&&(s=0),h===void 0&&(h=0),c===void 0&&(c=0),this.x1=d,this.y1=s,this.x2=h,this.y2=c,this},getPointA:function(d){return d===void 0&&(d=new n),d.set(this.x1,this.y1),d},getPointB:function(d){return d===void 0&&(d=new n),d.set(this.x2,this.y2),d},left:{get:function(){return Math.min(this.x1,this.x2)},set:function(d){this.x1<=this.x2?this.x1=d:this.x2=d}},right:{get:function(){return Math.max(this.x1,this.x2)},set:function(d){this.x1>this.x2?this.x1=d:this.x2=d}},top:{get:function(){return Math.min(this.y1,this.y2)},set:function(d){this.y1<=this.y2?this.y1=d:this.y2=d}},bottom:{get:function(){return Math.max(this.y1,this.y2)},set:function(d){this.y1>this.y2?this.y1=d:this.y2=d}}});f.exports=r},73273:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(83392),g=t(1071),u=t(50599),o=function(a){var n=u(a)-l.TAU;return g(n,-Math.PI,Math.PI)};f.exports=o},96936:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(83392),g=t(50599),u=function(o){return Math.cos(g(o)-l.TAU)};f.exports=u},43581:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(83392),g=t(50599),u=function(o){return Math.sin(g(o)-l.TAU)};f.exports=u},13990:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){return t.x1+=l,t.y1+=g,t.x2+=l,t.y2+=g,t};f.exports=T},1298:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return-((t.x2-t.x1)/(t.y2-t.y1))};f.exports=T},74077:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=function(u,o){o===void 0&&(o=new l);var a=Math.random();return o.x=u.x1+a*(u.x2-u.x1),o.y=u.y1+a*(u.y2-u.y1),o};f.exports=g},30473:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(50599),g=t(73273),u=function(o,a){return 2*g(a)-Math.PI-l(o)};f.exports=u},25968:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(1809),g=function(u,o){var a=(u.x1+u.x2)/2,n=(u.y1+u.y2)/2;return l(u,a,n,o)};f.exports=g},24296:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(1809),g=function(u,o,a){return l(u,o.x,o.y,a)};f.exports=g},1809:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){var o=Math.cos(u),a=Math.sin(u),n=t.x1-l,r=t.y1-g;return t.x1=n*o-r*a+l,t.y1=n*a+r*o+g,n=t.x2-l,r=t.y2-g,t.x2=n*o-r*a+l,t.y2=n*a+r*o+g,t};f.exports=T},88171:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u,o){return t.x1=l,t.y1=g,t.x2=l+Math.cos(u)*o,t.y2=g+Math.sin(u)*o,t};f.exports=T},82797:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return(t.y2-t.y1)/(t.x2-t.x1)};f.exports=T},41067:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return Math.abs(t.x1-t.x2)};f.exports=T},28482:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(88829);l.Angle=t(50599),l.BresenhamPoints=t(58813),l.CenterOn=t(88513),l.Clone=t(26718),l.CopyFrom=t(88930),l.Equals=t(90656),l.Extend=t(30897),l.GetEasedPoints=t(30684),l.GetMidPoint=t(20487),l.GetNearestPoint=t(11222),l.GetNormal=t(7377),l.GetPoint=t(66464),l.GetPoints=t(8570),l.GetShortestDistance=t(65269),l.Height=t(82996),l.Length=t(16028),l.NormalAngle=t(73273),l.NormalX=t(96936),l.NormalY=t(43581),l.Offset=t(13990),l.PerpSlope=t(1298),l.Random=t(74077),l.ReflectAngle=t(30473),l.Rotate=t(25968),l.RotateAroundPoint=t(24296),l.RotateAroundXY=t(1809),l.SetToAngle=t(88171),l.Slope=t(82797),l.Width=t(41067),f.exports=l},18693:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(74118),u=t(93736);function o(n,r,d,s){var h=n-d,c=r-s,p=h*h+c*c;return Math.sqrt(p)}var a=new l({initialize:function(r,d,s){this.vertex1=r,this.vertex2=d,this.vertex3=s,this.bounds=new g,this._inCenter=new u},getInCenter:function(n){n===void 0&&(n=!0);var r=this.vertex1,d=this.vertex2,s=this.vertex3,h,c,p,m,x,S;n?(h=r.x,c=r.y,p=d.x,m=d.y,x=s.x,S=s.y):(h=r.vx,c=r.vy,p=d.vx,m=d.vy,x=s.vx,S=s.vy);var P=o(x,S,p,m),E=o(h,c,x,S),R=o(p,m,h,c),M=P+E+R;return this._inCenter.set((h*P+p*E+x*R)/M,(c*P+m*E+S*R)/M)},contains:function(n,r,d){var s=this.vertex1,h=this.vertex2,c=this.vertex3,p=s.vx,m=s.vy,x=h.vx,S=h.vy,P=c.vx,E=c.vy;if(d){var R=d.a,M=d.b,O=d.c,w=d.d,L=d.e,F=d.f;p=s.vx*R+s.vy*O+L,m=s.vx*M+s.vy*w+F,x=h.vx*R+h.vy*O+L,S=h.vx*M+h.vy*w+F,P=c.vx*R+c.vy*O+L,E=c.vx*M+c.vy*w+F}var b=P-p,D=E-m,N=x-p,z=S-m,W=n-p,Y=r-m,j=b*b+D*D,G=b*N+D*z,V=b*W+D*Y,I=N*N+z*z,B=N*W+z*Y,U=j*I-G*G,X=U===0?0:1/U,$=(I*V-G*B)*X,k=(j*B-G*V)*X;return $>=0&&k>=0&&$+k<1},isCounterClockwise:function(n){var r=this.vertex1,d=this.vertex2,s=this.vertex3,h=(d.vx-r.vx)*(s.vy-r.vy)-(d.vy-r.vy)*(s.vx-r.vx);return n<=0?h>=0:h<0},load:function(n,r,d,s,h){return d=this.vertex1.load(n,r,d,s,h),d=this.vertex2.load(n,r,d,s,h),d=this.vertex3.load(n,r,d,s,h),d},transformCoordinatesLocal:function(n,r,d,s){return this.vertex1.transformCoordinatesLocal(n,r,d,s),this.vertex2.transformCoordinatesLocal(n,r,d,s),this.vertex3.transformCoordinatesLocal(n,r,d,s),this},updateBounds:function(){var n=this.vertex1,r=this.vertex2,d=this.vertex3,s=this.bounds;return s.x=Math.min(n.vx,r.vx,d.vx),s.y=Math.min(n.vy,r.vy,d.vy),s.width=Math.max(n.vx,r.vx,d.vx)-s.x,s.height=Math.max(n.vy,r.vy,d.vy)-s.y,this},isInView:function(n,r,d,s,h,c,p,m,x,S,P){this.update(s,h,c,p,m,x,S,P);var E=this.vertex1,R=this.vertex2,M=this.vertex3;if(E.ta<=0&&R.ta<=0&&M.ta<=0||r&&!this.isCounterClockwise(d))return!1;var O=this.bounds;O.x=Math.min(E.tx,R.tx,M.tx),O.y=Math.min(E.ty,R.ty,M.ty),O.width=Math.max(E.tx,R.tx,M.tx)-O.x,O.height=Math.max(E.ty,R.ty,M.ty)-O.y;var w=n.x+n.width,L=n.y+n.height;return O.width<=0||O.height<=0||n.width<=0||n.height<=0?!1:!(O.rightw||O.y>L)},scrollUV:function(n,r){return this.vertex1.scrollUV(n,r),this.vertex2.scrollUV(n,r),this.vertex3.scrollUV(n,r),this},scaleUV:function(n,r){return this.vertex1.scaleUV(n,r),this.vertex2.scaleUV(n,r),this.vertex3.scaleUV(n,r),this},setColor:function(n){return this.vertex1.color=n,this.vertex2.color=n,this.vertex3.color=n,this},update:function(n,r,d,s,h,c,p,m){return this.vertex1.update(r,d,s,h,c,p,m,n),this.vertex2.update(r,d,s,h,c,p,m,n),this.vertex3.update(r,d,s,h,c,p,m,n),this},translate:function(n,r){r===void 0&&(r=0);var d=this.vertex1,s=this.vertex2,h=this.vertex3;return d.x+=n,d.y+=r,s.x+=n,s.y+=r,h.x+=n,h.y+=r,this},x:{get:function(){return this.getInCenter().x},set:function(n){var r=this.getInCenter();this.translate(n-r.x,0)}},y:{get:function(){return this.getInCenter().y},set:function(n){var r=this.getInCenter();this.translate(0,n-r.y)}},alpha:{get:function(){var n=this.vertex1,r=this.vertex2,d=this.vertex3;return(n.alpha+r.alpha+d.alpha)/3},set:function(n){this.vertex1.alpha=n,this.vertex2.alpha=n,this.vertex3.alpha=n}},depth:{get:function(){var n=this.vertex1,r=this.vertex2,d=this.vertex3;return(n.vz+r.vz+d.vz)/3}},destroy:function(){this.vertex1=null,this.vertex2=null,this.vertex3=null}});f.exports=a},99425:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(18693),g=t(72632),u=t(16650),o=t(70015),a=t(85769),n=new o,r=new o,d=new u,s=function(h){var c=g(h,"mesh"),p=g(h,"texture",null),m=g(h,"frame"),x=g(h,"width",1),S=g(h,"height",x),P=g(h,"widthSegments",1),E=g(h,"heightSegments",P),R=g(h,"x",0),M=g(h,"y",0),O=g(h,"z",0),w=g(h,"rotateX",0),L=g(h,"rotateY",0),F=g(h,"rotateZ",0),b=g(h,"zIsUp",!0),D=g(h,"isOrtho",c?c.dirtyCache[11]:!1),N=g(h,"colors",[16777215]),z=g(h,"alphas",[1]),W=g(h,"tile",!1),Y=g(h,"flipY",!1),j=g(h,"width",null),G={faces:[],verts:[]};n.set(R,M,O),r.set(w,L,F),d.fromRotationXYTranslation(r,n,b);var V;if(!p&&c)p=c.texture,m||(V=c.frame);else if(c&&typeof p=="string")p=c.scene.sys.textures.get(p);else if(!p)return G;V||(V=p.get(m)),!j&&D&&p&&c&&(x=V.width/c.height,S=V.height/c.height);var I=x/2,B=S/2,U=Math.floor(P),X=Math.floor(E),$=U+1,k=X+1,K=x/U,J=S/X,q=[],_=[],et,it,tt=0,st=1,mt=0,ct=1;V&&(tt=V.u0,st=V.u1,Y?(mt=V.v1,ct=V.v0):(mt=V.v0,ct=V.v1));var ft=st-tt,nt=ct-mt;for(it=0;it{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(18693),g=t(16650),u=t(70015),o=t(85769),a=new u,n=new u,r=new g,d=function(s,h,c,p,m,x,S,P,E,R){c===void 0&&(c=1),p===void 0&&(p=0),m===void 0&&(m=0),x===void 0&&(x=0),S===void 0&&(S=0),P===void 0&&(P=0),E===void 0&&(E=0),R===void 0&&(R=!0);var M={faces:[],verts:[]},O=s.materials;a.set(p,m,x),n.set(S,P,E),r.fromRotationXYTranslation(n,a,R);for(var w=0;w{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(18693),g=t(85769),u=function(o,a,n,r,d,s,h,c){if(r===void 0&&(r=!1),s===void 0&&(s=16777215),h===void 0&&(h=1),c===void 0&&(c=!1),o.length!==a.length&&!r){console.warn("GenerateVerts: vertices and uvs count not equal");return}var p={faces:[],vertices:[]},m,x,S,P,E,R,M,O,w,L,F,b=r?3:2,D=Array.isArray(s),N=Array.isArray(h);if(Array.isArray(n)&&n.length>0)for(m=0;m{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=!0,t="untitled",l="",g="";function u(x){var S=x.indexOf("#");return S>-1?x.substring(0,S):x}function o(x){return x.models.length===0&&x.models.push({faces:[],name:t,textureCoords:[],vertexNormals:[],vertices:[]}),l="",x.models[x.models.length-1]}function a(x,S){var P=x.length>=2?x[1]:t;S.models.push({faces:[],name:P,textureCoords:[],vertexNormals:[],vertices:[]}),l=""}function n(x){x.length===2&&(l=x[1])}function r(x,S){var P=x.length,E=P>=2?parseFloat(x[1]):0,R=P>=3?parseFloat(x[2]):0,M=P>=4?parseFloat(x[3]):0;o(S).vertices.push({x:E,y:R,z:M})}function d(x,S){var P=x.length,E=P>=2?parseFloat(x[1]):0,R=P>=3?parseFloat(x[2]):0,M=P>=4?parseFloat(x[3]):0;isNaN(E)&&(E=0),isNaN(R)&&(R=0),isNaN(M)&&(M=0),T&&(R=1-R),o(S).textureCoords.push({u:E,v:R,w:M})}function s(x,S){var P=x.length,E=P>=2?parseFloat(x[1]):0,R=P>=3?parseFloat(x[2]):0,M=P>=4?parseFloat(x[3]):0;o(S).vertexNormals.push({x:E,y:R,z:M})}function h(x,S){var P=x.length-1;if(!(P<3)){for(var E={group:l,material:g,vertices:[]},R=0;R3)){var L=0,F=0,b=0;L=parseInt(O[0],10),w>1&&O[1]!==""&&(F=parseInt(O[1],10)),w>2&&(b=parseInt(O[2],10)),L!==0&&(L<0&&(L=o(S).vertices.length+1+L),F-=1,L-=1,b-=1,E.vertices.push({textureCoordsIndex:F,vertexIndex:L,vertexNormalIndex:b}))}}o(S).faces.push(E)}}function c(x,S){x.length>=2&&S.materialLibraries.push(x[1])}function p(x){x.length>=2&&(g=x[1])}var m=function(x,S){S===void 0&&(S=!0),T=S;var P={materials:{},materialLibraries:[],models:[]};l="",g="";for(var E=x.split(` +`),R=0;R{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(22946),g=function(u){for(var o={},a=u.split(` +`),n="",r=0;r=2?Math.floor(s[2]*255):h,p=s.length>=3?Math.floor(s[3]*255):h;o[n]=l(h,c,p);break}}}}return o};f.exports=g},15313:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){var o,a;if(g===void 0&&u===void 0){var n=t.getInCenter();o=n.x,a=n.y}var r=Math.cos(l),d=Math.sin(l),s=t.vertex1,h=t.vertex2,c=t.vertex3,p=s.x-o,m=s.y-a;s.set(p*r-m*d+o,p*d+m*r+a),p=h.x-o,m=h.y-a,h.set(p*r-m*d+o,p*d+m*r+a),p=c.x-o,m=c.y-a,c.set(p*r-m*d+o,p*d+m*r+a)};f.exports=T},85769:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(75512),u=t(70015),o=new l({Extends:u,initialize:function(n,r,d,s,h,c,p,m,x,S){c===void 0&&(c=16777215),p===void 0&&(p=1),m===void 0&&(m=0),x===void 0&&(x=0),S===void 0&&(S=0),u.call(this,n,r,d),this.vx=0,this.vy=0,this.vz=0,this.nx=m,this.ny=x,this.nz=S,this.u=s,this.v=h,this.color=c,this.alpha=p,this.tx=0,this.ty=0,this.ta=0,this.tu=s,this.tv=h},setUVs:function(a,n){return this.u=a,this.v=n,this.tu=a,this.tv=n,this},scrollUV:function(a,n){return this.tu+=a,this.tv+=n,this},scaleUV:function(a,n){return this.tu=this.u*a,this.tv=this.v*n,this},transformCoordinatesLocal:function(a,n,r,d){var s=this.x,h=this.y,c=this.z,p=a.val,m=s*p[0]+h*p[4]+c*p[8]+p[12],x=s*p[1]+h*p[5]+c*p[9]+p[13],S=s*p[2]+h*p[6]+c*p[10]+p[14],P=s*p[3]+h*p[7]+c*p[11]+p[15];this.vx=m/P*n,this.vy=-(x/P)*r,d<=0?this.vz=S/P:this.vz=-(S/P)},resize:function(a,n,r,d,s,h){return this.x=a,this.y=n,this.vx=this.x*r,this.vy=-this.y*d,this.vz=0,s<.5?this.vx+=r*(.5-s):s>.5&&(this.vx-=r*(s-.5)),h<.5?this.vy+=d*(.5-h):h>.5&&(this.vy-=d*(h-.5)),this},update:function(a,n,r,d,s,h,c,p){var m=this.vx*a+this.vy*r+s,x=this.vx*n+this.vy*d+h;return c&&(m=Math.round(m),x=Math.round(x)),this.tx=m,this.ty=x,this.ta=this.alpha*p,this},load:function(a,n,r,d,s){return a[++r]=this.tx,a[++r]=this.ty,a[++r]=this.tu,a[++r]=this.tv,a[++r]=d,a[++r]=s,n[++r]=g.getTintAppendFloatAlpha(this.color,this.ta),r}});f.exports=o},14293:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l={Face:t(18693),GenerateGridVerts:t(99425),GenerateObjVerts:t(53267),GenerateVerts:t(67623),ParseObj:t(27291),ParseObjMaterial:t(76799),RotateFace:t(15313),Vertex:t(85769)};f.exports=l},77601:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t.setTo(Math.ceil(t.x),Math.ceil(t.y))};f.exports=T},38933:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=function(u){return new l(u.x,u.y)};f.exports=g},47103:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return l.setTo(t.x,t.y)};f.exports=T},13625:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return t.x===l.x&&t.y===l.y};f.exports=T},12536:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t.setTo(Math.floor(t.x),Math.floor(t.y))};f.exports=T},54205:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=function(u,o){if(o===void 0&&(o=new l),!Array.isArray(u))throw new Error("GetCentroid points argument must be an array");var a=u.length;if(a<1)throw new Error("GetCentroid points array must not be empty");if(a===1)o.x=u[0].x,o.y=u[0].y;else{for(var n=0;n{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)};f.exports=T},82712:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t.x*t.x+t.y*t.y};f.exports=T},20052:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(74118),g=function(u,o){o===void 0&&(o=new l);for(var a=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY,d=Number.POSITIVE_INFINITY,s=0;sa&&(a=h.x),h.xr&&(r=h.y),h.y{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=function(u,o,a,n){return a===void 0&&(a=0),n===void 0&&(n=new l),n.x=u.x+(o.x-u.x)*a,n.y=u.y+(o.y-u.y)*a,n};f.exports=g},42397:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t.setTo(t.y,t.x)};f.exports=T},59464:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=function(u,o){return o===void 0&&(o=new l),o.setTo(-u.x,-u.y)};f.exports=g},79967:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(52394),u=new l({initialize:function(a,n){a===void 0&&(a=0),n===void 0&&(n=a),this.type=g.POINT,this.x=a,this.y=n},setTo:function(o,a){return o===void 0&&(o=0),a===void 0&&(a=o),this.x=o,this.y=a,this}});f.exports=u},53581:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=t(82712),u=function(o,a,n){n===void 0&&(n=new l);var r=o.x*a.x+o.y*a.y,d=r/g(a);return d!==0&&(n.x=d*a.x,n.y=d*a.y),n};f.exports=u},50817:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=function(u,o,a){a===void 0&&(a=new l);var n=u.x*o.x+u.y*o.y;return n!==0&&(a.x=n*o.x,a.y=n*o.y),a};f.exports=g},40525:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(50083),g=function(u,o){if(u.x!==0||u.y!==0){var a=l(u);u.x/=a,u.y/=a}return u.x*=o,u.y*=o,u};f.exports=g},63472:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967);l.Ceil=t(77601),l.Clone=t(38933),l.CopyFrom=t(47103),l.Equals=t(13625),l.Floor=t(12536),l.GetCentroid=t(54205),l.GetMagnitude=t(50083),l.GetMagnitudeSq=t(82712),l.GetRectangleFromPoints=t(20052),l.Interpolate=t(77154),l.Invert=t(42397),l.Negative=t(59464),l.Project=t(53581),l.ProjectUnit=t(50817),l.SetMagnitude=t(40525),f.exports=l},19631:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(8580),g=function(u){return new l(u.points)};f.exports=g},45604:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){for(var u=!1,o=-1,a=t.points.length-1;++o{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(45604),g=function(u,o){return l(u,o.x,o.y)};f.exports=g},11117:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */function T(G,V,I){I=I||2;var B=V&&V.length,U=B?V[0]*I:G.length,X=t(G,0,U,I,!0),$=[];if(!X||X.next===X.prev)return $;var k,K,J,q,_,et,it;if(B&&(X=r(G,V,X,I)),G.length>80*I){k=J=G[0],K=q=G[1];for(var tt=I;ttJ&&(J=_),et>q&&(q=et);it=Math.max(J-k,q-K),it=it!==0?32767/it:0}return g(X,$,I,k,K,it,0),$}function t(G,V,I,B,U){var X,$;if(U===j(G,V,I,B)>0)for(X=V;X=V;X-=B)$=z(X,G[X],G[X+1],$);return $&&M($,$.next)&&(W($),$=$.next),$}function l(G,V){if(!G)return G;V||(V=G);var I=G,B;do if(B=!1,!I.steiner&&(M(I,I.next)||R(I.prev,I,I.next)===0)){if(W(I),I=V=I.prev,I===I.next)break;B=!0}else I=I.next;while(B||I!==V);return V}function g(G,V,I,B,U,X,$){if(G){!$&&X&&p(G,B,U,X);for(var k=G,K,J;G.prev!==G.next;){if(K=G.prev,J=G.next,X?o(G,B,U,X):u(G)){V.push(K.i/I|0),V.push(G.i/I|0),V.push(J.i/I|0),W(G),G=J.next,k=J.next;continue}if(G=J,G===k){$?$===1?(G=a(l(G),V,I),g(G,V,I,B,U,X,2)):$===2&&n(G,V,I,B,U,X):g(l(G),V,I,B,U,X,1);break}}}}function u(G){var V=G.prev,I=G,B=G.next;if(R(V,I,B)>=0)return!1;for(var U=V.x,X=I.x,$=B.x,k=V.y,K=I.y,J=B.y,q=UX?U>$?U:$:X>$?X:$,it=k>K?k>J?k:J:K>J?K:J,tt=B.next;tt!==V;){if(tt.x>=q&&tt.x<=et&&tt.y>=_&&tt.y<=it&&P(U,k,X,K,$,J,tt.x,tt.y)&&R(tt.prev,tt,tt.next)>=0)return!1;tt=tt.next}return!0}function o(G,V,I,B){var U=G.prev,X=G,$=G.next;if(R(U,X,$)>=0)return!1;for(var k=U.x,K=X.x,J=$.x,q=U.y,_=X.y,et=$.y,it=kK?k>J?k:J:K>J?K:J,mt=q>_?q>et?q:et:_>et?_:et,ct=x(it,tt,V,I,B),ft=x(st,mt,V,I,B),nt=G.prevZ,ot=G.nextZ;nt&&nt.z>=ct&&ot&&ot.z<=ft;){if(nt.x>=it&&nt.x<=st&&nt.y>=tt&&nt.y<=mt&&nt!==U&&nt!==$&&P(k,q,K,_,J,et,nt.x,nt.y)&&R(nt.prev,nt,nt.next)>=0||(nt=nt.prevZ,ot.x>=it&&ot.x<=st&&ot.y>=tt&&ot.y<=mt&&ot!==U&&ot!==$&&P(k,q,K,_,J,et,ot.x,ot.y)&&R(ot.prev,ot,ot.next)>=0))return!1;ot=ot.nextZ}for(;nt&&nt.z>=ct;){if(nt.x>=it&&nt.x<=st&&nt.y>=tt&&nt.y<=mt&&nt!==U&&nt!==$&&P(k,q,K,_,J,et,nt.x,nt.y)&&R(nt.prev,nt,nt.next)>=0)return!1;nt=nt.prevZ}for(;ot&&ot.z<=ft;){if(ot.x>=it&&ot.x<=st&&ot.y>=tt&&ot.y<=mt&&ot!==U&&ot!==$&&P(k,q,K,_,J,et,ot.x,ot.y)&&R(ot.prev,ot,ot.next)>=0)return!1;ot=ot.nextZ}return!0}function a(G,V,I){var B=G;do{var U=B.prev,X=B.next.next;!M(U,X)&&O(U,B,B.next,X)&&b(U,X)&&b(X,U)&&(V.push(U.i/I|0),V.push(B.i/I|0),V.push(X.i/I|0),W(B),W(B.next),B=G=X),B=B.next}while(B!==G);return l(B)}function n(G,V,I,B,U,X){var $=G;do{for(var k=$.next.next;k!==$.prev;){if($.i!==k.i&&E($,k)){var K=N($,k);$=l($,$.next),K=l(K,K.next),g($,V,I,B,U,X,0),g(K,V,I,B,U,X,0);return}k=k.next}$=$.next}while($!==G)}function r(G,V,I,B){var U=[],X,$,k,K,J;for(X=0,$=V.length;X<$;X++)k=V[X]*B,K=X<$-1?V[X+1]*B:G.length,J=t(G,k,K,B,!1),J===J.next&&(J.steiner=!0),U.push(S(J));for(U.sort(d),X=0;X=I.next.y&&I.next.y!==I.y){var k=I.x+(U-I.y)*(I.next.x-I.x)/(I.next.y-I.y);if(k<=B&&k>X&&(X=k,$=I.x=I.x&&I.x>=J&&B!==I.x&&P(U$.x||I.x===$.x&&c($,I)))&&($=I,_=et)),I=I.next;while(I!==K);return $}function c(G,V){return R(G.prev,G,V.prev)<0&&R(V.next,G,G.next)<0}function p(G,V,I,B){var U=G;do U.z===0&&(U.z=x(U.x,U.y,V,I,B)),U.prevZ=U.prev,U.nextZ=U.next,U=U.next;while(U!==G);U.prevZ.nextZ=null,U.prevZ=null,m(U)}function m(G){var V,I,B,U,X,$,k,K,J=1;do{for(I=G,G=null,X=null,$=0;I;){for($++,B=I,k=0,V=0;V0||K>0&&B;)k!==0&&(K===0||!B||I.z<=B.z)?(U=I,I=I.nextZ,k--):(U=B,B=B.nextZ,K--),X?X.nextZ=U:G=U,U.prevZ=X,X=U;I=B}X.nextZ=null,J*=2}while($>1);return G}function x(G,V,I,B,U){return G=(G-I)*U|0,V=(V-B)*U|0,G=(G|G<<8)&16711935,G=(G|G<<4)&252645135,G=(G|G<<2)&858993459,G=(G|G<<1)&1431655765,V=(V|V<<8)&16711935,V=(V|V<<4)&252645135,V=(V|V<<2)&858993459,V=(V|V<<1)&1431655765,G|V<<1}function S(G){var V=G,I=G;do(V.x=(G-$)*(X-k)&&(G-$)*(B-k)>=(I-$)*(V-k)&&(I-$)*(X-k)>=(U-$)*(B-k)}function E(G,V){return G.next.i!==V.i&&G.prev.i!==V.i&&!F(G,V)&&(b(G,V)&&b(V,G)&&D(G,V)&&(R(G.prev,G,V.prev)||R(G,V.prev,V))||M(G,V)&&R(G.prev,G,G.next)>0&&R(V.prev,V,V.next)>0)}function R(G,V,I){return(V.y-G.y)*(I.x-V.x)-(V.x-G.x)*(I.y-V.y)}function M(G,V){return G.x===V.x&&G.y===V.y}function O(G,V,I,B){var U=L(R(G,V,I)),X=L(R(G,V,B)),$=L(R(I,B,G)),k=L(R(I,B,V));return!!(U!==X&&$!==k||U===0&&w(G,I,V)||X===0&&w(G,B,V)||$===0&&w(I,G,B)||k===0&&w(I,V,B))}function w(G,V,I){return V.x<=Math.max(G.x,I.x)&&V.x>=Math.min(G.x,I.x)&&V.y<=Math.max(G.y,I.y)&&V.y>=Math.min(G.y,I.y)}function L(G){return G>0?1:G<0?-1:0}function F(G,V){var I=G;do{if(I.i!==G.i&&I.next.i!==G.i&&I.i!==V.i&&I.next.i!==V.i&&O(I,I.next,G,V))return!0;I=I.next}while(I!==G);return!1}function b(G,V){return R(G.prev,G,G.next)<0?R(G,V,G.next)>=0&&R(G,G.prev,V)>=0:R(G,V,G.prev)<0||R(G,G.next,V)<0}function D(G,V){var I=G,B=!1,U=(G.x+V.x)/2,X=(G.y+V.y)/2;do I.y>X!=I.next.y>X&&I.next.y!==I.y&&U<(I.next.x-I.x)*(X-I.y)/(I.next.y-I.y)+I.x&&(B=!B),I=I.next;while(I!==G);return B}function N(G,V){var I=new Y(G.i,G.x,G.y),B=new Y(V.i,V.x,V.y),U=G.next,X=V.prev;return G.next=V,V.prev=G,I.next=U,U.prev=I,B.next=I,I.prev=B,X.next=B,B.prev=X,B}function z(G,V,I,B){var U=new Y(G,V,I);return B?(U.next=B.next,U.prev=B,B.next.prev=U,B.next=U):(U.prev=U,U.next=U),U}function W(G){G.next.prev=G.prev,G.prev.next=G.next,G.prevZ&&(G.prevZ.nextZ=G.nextZ),G.nextZ&&(G.nextZ.prevZ=G.prevZ)}function Y(G,V,I){this.i=G,this.x=V,this.y=I,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}T.deviation=function(G,V,I,B){var U=V&&V.length,X=U?V[0]*I:G.length,$=Math.abs(j(G,0,X,I));if(U)for(var k=0,K=V.length;k0&&(B+=G[U-1].length,I.holes.push(B))}return I},f.exports=T},14045:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(74118),g=function(u,o){o===void 0&&(o=new l);for(var a=1/0,n=1/0,r=-a,d=-n,s,h=0;h{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){l===void 0&&(l=[]);for(var g=0;g{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(16028),g=t(88829),u=t(5159),o=function(a,n,r,d){d===void 0&&(d=[]);var s=a.points,h=u(a);!n&&r>0&&(n=h/r);for(var c=0;cm+R){m+=R;continue}var M=E.getPoint((p-m)/R);d.push(M);break}return d};f.exports=o},5159:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(16028),g=t(88829),u=function(o){for(var a=o.points,n=0,r=0;r{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(45604),u=t(89294),o=t(52394),a=new l({initialize:function(r){this.type=o.POLYGON,this.area=0,this.points=[],r&&this.setTo(r)},contains:function(n,r){return g(this,n,r)},setTo:function(n){if(this.area=0,this.points=[],typeof n=="string"&&(n=n.split(" ")),!Array.isArray(n))return this;for(var r,d=Number.MAX_VALUE,s=0;s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t.points.reverse(),t};f.exports=T},95874:f=>{function T(a,n){var r=a.x-n.x,d=a.y-n.y;return r*r+d*d}function t(a,n,r){var d=n.x,s=n.y,h=r.x-d,c=r.y-s;if(h!==0||c!==0){var p=((a.x-d)*h+(a.y-s)*c)/(h*h+c*c);p>1?(d=r.x,s=r.y):p>0&&(d+=h*p,s+=c*p)}return h=a.x-d,c=a.y-s,h*h+c*c}function l(a,n){for(var r=a[0],d=[r],s,h=1,c=a.length;hn&&(d.push(s),r=s);return r!==s&&d.push(s),d}function g(a,n,r,d,s){for(var h=d,c,p=n+1;ph&&(c=p,h=m)}h>d&&(c-n>1&&g(a,n,c,d,s),s.push(a[c]),r-c>1&&g(a,c,r,d,s))}function u(a,n){var r=a.length-1,d=[a[0]];return g(a,0,r,n,d),d.push(a[r]),d}var o=function(a,n,r){n===void 0&&(n=1),r===void 0&&(r=!1);var d=a.points;if(d.length>2){var s=n*n;r||(d=l(d,s)),a.setTo(u(d,s))}return a};f.exports=o},18974:f=>{/** + * @author Richard Davey + * @author Igor Ognichenko + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(l,g){return l[0]=g[0],l[1]=g[1],l},t=function(l){var g,u=[],o=l.points;for(g=0;g0&&a.push(T([0,0],u[0])),g=0;g1&&a.push(T([0,0],u[u.length-1])),l.setTo(a)};f.exports=t},23490:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){for(var u=t.points,o=0;o{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(8580);l.Clone=t(19631),l.Contains=t(45604),l.ContainsPoint=t(87289),l.Earcut=t(11117),l.GetAABB=t(14045),l.GetNumberArray=t(98286),l.GetPoints=t(89294),l.Perimeter=t(5159),l.Reverse=t(32244),l.Simplify=t(95874),l.Smooth=t(18974),l.Translate=t(23490),f.exports=l},1653:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t.width*t.height};f.exports=T},33943:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t.x=Math.ceil(t.x),t.y=Math.ceil(t.y),t};f.exports=T},58662:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t.x=Math.ceil(t.x),t.y=Math.ceil(t.y),t.width=Math.ceil(t.width),t.height=Math.ceil(t.height),t};f.exports=T},79993:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){return t.x=l-t.width/2,t.y=g-t.height/2,t};f.exports=T},81572:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(74118),g=function(u){return new l(u.x,u.y,u.width,u.height)};f.exports=g},94287:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){return t.width<=0||t.height<=0?!1:t.x<=l&&t.x+t.width>=l&&t.y<=g&&t.y+t.height>=g};f.exports=T},28687:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(94287),g=function(u,o){return l(u,o.x,o.y)};f.exports=g},73222:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return l.width*l.height>t.width*t.height?!1:l.x>t.x&&l.xt.x&&l.rightt.y&&l.yt.y&&l.bottom{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return l.setTo(t.x,t.y,t.width,t.height)};f.exports=T},87279:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return l===void 0&&(l=[]),l.push({x:t.x,y:t.y}),l.push({x:t.right,y:t.y}),l.push({x:t.right,y:t.bottom}),l.push({x:t.x,y:t.bottom}),l};f.exports=T},19989:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return t.x===l.x&&t.y===l.y&&t.width===l.width&&t.height===l.height};f.exports=T},92628:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(6700),g=function(u,o){var a=l(u);return a{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(6700),g=function(u,o){var a=l(u);return a>l(o)?u.setSize(o.height*a,o.height):u.setSize(o.width,o.width/a),u.setPosition(o.centerX-u.width/2,o.centerY-u.height/2)};f.exports=g},71356:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t};f.exports=T},21687:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t.width=Math.floor(t.width),t.height=Math.floor(t.height),t};f.exports=T},80222:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(74118),g=t(83392),u=function(o,a){if(a===void 0&&(a=new l),o.length===0)return a;for(var n=Number.MAX_VALUE,r=Number.MAX_VALUE,d=g.MIN_SAFE_INTEGER,s=g.MIN_SAFE_INTEGER,h,c,p,m=0;m{/** + * @author samme + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(74118),g=function(u,o,a,n,r){return r===void 0&&(r=new l),r.setTo(Math.min(u,a),Math.min(o,n),Math.abs(u-a),Math.abs(o-n))};f.exports=g},6700:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t.height===0?NaN:t.width/t.height};f.exports=T},35242:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=function(u,o){return o===void 0&&(o=new l),o.x=u.centerX,o.y=u.centerY,o};f.exports=g},47698:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(85876),g=t(79967),u=function(o,a,n){if(n===void 0&&(n=new g),a<=0||a>=1)return n.x=o.x,n.y=o.y,n;var r=l(o)*a;return a>.5?(r-=o.width+o.height,r<=o.width?(n.x=o.right-r,n.y=o.bottom):(n.x=o.x,n.y=o.bottom-(r-o.width))):r<=o.width?(n.x=o.x+r,n.y=o.y):(n.x=o.right,n.y=o.y+(r-o.width)),n};f.exports=u},54932:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(47698),g=t(85876),u=function(o,a,n,r){r===void 0&&(r=[]),!a&&n>0&&(a=g(o)/n);for(var d=0;d{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=function(u,o){return o===void 0&&(o=new l),o.x=u.width,o.y=u.height,o};f.exports=g},7782:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79993),g=function(u,o,a){var n=u.centerX,r=u.centerY;return u.setSize(u.width+o*2,u.height+a*2),l(u,n,r)};f.exports=g},66217:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(74118),g=t(90205),u=function(o,a,n){return n===void 0&&(n=new l),g(o,a)?(n.x=Math.max(o.x,a.x),n.y=Math.max(o.y,a.y),n.width=Math.min(o.right,a.right)-n.x,n.height=Math.min(o.bottom,a.bottom)-n.y):n.setEmpty(),n};f.exports=u},40053:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(85876),g=t(79967),u=function(o,a,n,r){if(r===void 0&&(r=[]),!a&&!n)return r;a?n=Math.round(l(o)/a):a=l(o)/n;for(var d=o.x,s=o.y,h=0,c=0;c=o.right&&(h=1,s+=d-o.right,d=o.right);break;case 1:s+=a,s>=o.bottom&&(h=2,d-=s-o.bottom,s=o.bottom);break;case 2:d-=a,d<=o.left&&(h=3,s-=o.left-d,d=o.left);break;case 3:s-=a,s<=o.top&&(h=0,s=o.top);break}return r};f.exports=u},86673:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){for(var g=t.x,u=t.right,o=t.y,a=t.bottom,n=0;n{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){var g=Math.min(t.x,l.x),u=Math.max(t.right,l.right);t.x=g,t.width=u-g;var o=Math.min(t.y,l.y),a=Math.max(t.bottom,l.bottom);return t.y=o,t.height=a-o,t};f.exports=T},44755:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){var u=Math.min(t.x,l),o=Math.max(t.right,l);t.x=u,t.width=o-u;var a=Math.min(t.y,g),n=Math.max(t.bottom,g);return t.y=a,t.height=n-a,t};f.exports=T},74466:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){return t.x+=l,t.y+=g,t};f.exports=T},55946:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return t.x+=l.x,t.y+=l.y,t};f.exports=T},97474:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return t.xl.x&&t.yl.y};f.exports=T},85876:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return 2*(t.width+t.height)};f.exports=T},20243:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=t(75606),u=function(o,a,n){n===void 0&&(n=new l),a=g(a);var r=Math.sin(a),d=Math.cos(a),s=d>0?o.width/2:o.width/-2,h=r>0?o.height/2:o.height/-2;return Math.abs(s*r){/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=function(u,o){return o===void 0&&(o=new l),o.x=u.x+Math.random()*u.width,o.y=u.y+Math.random()*u.height,o};f.exports=g},97691:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(17489),g=t(73222),u=t(79967),o=function(a,n,r){if(r===void 0&&(r=new u),g(a,n))switch(l(0,3)){case 0:r.x=a.x+Math.random()*(n.right-a.x),r.y=a.y+Math.random()*(n.top-a.y);break;case 1:r.x=n.x+Math.random()*(a.right-n.x),r.y=n.bottom+Math.random()*(a.bottom-n.bottom);break;case 2:r.x=a.x+Math.random()*(n.x-a.x),r.y=n.y+Math.random()*(a.bottom-n.y);break;case 3:r.x=n.right+Math.random()*(a.right-n.right),r.y=a.y+Math.random()*(n.bottom-a.y);break}return r};f.exports=o},74118:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(94287),u=t(47698),o=t(54932),a=t(52394),n=t(88829),r=t(30001),d=new l({initialize:function(h,c,p,m){h===void 0&&(h=0),c===void 0&&(c=0),p===void 0&&(p=0),m===void 0&&(m=0),this.type=a.RECTANGLE,this.x=h,this.y=c,this.width=p,this.height=m},contains:function(s,h){return g(this,s,h)},getPoint:function(s,h){return u(this,s,h)},getPoints:function(s,h,c){return o(this,s,h,c)},getRandomPoint:function(s){return r(this,s)},setTo:function(s,h,c,p){return this.x=s,this.y=h,this.width=c,this.height=p,this},setEmpty:function(){return this.setTo(0,0,0,0)},setPosition:function(s,h){return h===void 0&&(h=s),this.x=s,this.y=h,this},setSize:function(s,h){return h===void 0&&(h=s),this.width=s,this.height=h,this},isEmpty:function(){return this.width<=0||this.height<=0},getLineA:function(s){return s===void 0&&(s=new n),s.setTo(this.x,this.y,this.right,this.y),s},getLineB:function(s){return s===void 0&&(s=new n),s.setTo(this.right,this.y,this.right,this.bottom),s},getLineC:function(s){return s===void 0&&(s=new n),s.setTo(this.right,this.bottom,this.x,this.bottom),s},getLineD:function(s){return s===void 0&&(s=new n),s.setTo(this.x,this.bottom,this.x,this.y),s},left:{get:function(){return this.x},set:function(s){s>=this.right?this.width=0:this.width=this.right-s,this.x=s}},right:{get:function(){return this.x+this.width},set:function(s){s<=this.x?this.width=0:this.width=s-this.x}},top:{get:function(){return this.y},set:function(s){s>=this.bottom?this.height=0:this.height=this.bottom-s,this.y=s}},bottom:{get:function(){return this.y+this.height},set:function(s){s<=this.y?this.height=0:this.height=s-this.y}},centerX:{get:function(){return this.x+this.width/2},set:function(s){this.x=s-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(s){this.y=s-this.height/2}}});f.exports=d},51828:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return t.width===l.width&&t.height===l.height};f.exports=T},5691:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){return g===void 0&&(g=l),t.width*=l,t.height*=g,t};f.exports=T},58795:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(74118),g=function(u,o,a){a===void 0&&(a=new l);var n=Math.min(u.x,o.x),r=Math.min(u.y,o.y),d=Math.max(u.right,o.right)-n,s=Math.max(u.bottom,o.bottom)-r;return a.setTo(n,r,d,s)};f.exports=g},66658:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(74118);l.Area=t(1653),l.Ceil=t(33943),l.CeilAll=t(58662),l.CenterOn=t(79993),l.Clone=t(81572),l.Contains=t(94287),l.ContainsPoint=t(28687),l.ContainsRect=t(73222),l.CopyFrom=t(29538),l.Decompose=t(87279),l.Equals=t(19989),l.FitInside=t(92628),l.FitOutside=t(85028),l.Floor=t(71356),l.FloorAll=t(21687),l.FromPoints=t(80222),l.FromXY=t(75785),l.GetAspectRatio=t(6700),l.GetCenter=t(35242),l.GetPoint=t(47698),l.GetPoints=t(54932),l.GetSize=t(31591),l.Inflate=t(7782),l.Intersection=t(66217),l.MarchingAnts=t(40053),l.MergePoints=t(86673),l.MergeRect=t(14655),l.MergeXY=t(44755),l.Offset=t(74466),l.OffsetPoint=t(55946),l.Overlaps=t(97474),l.Perimeter=t(85876),l.PerimeterPoint=t(20243),l.Random=t(30001),l.RandomOutside=t(97691),l.SameDimensions=t(51828),l.Scale=t(5691),l.Union=t(58795),f.exports=l},19108:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){var l=t.x1,g=t.y1,u=t.x2,o=t.y2,a=t.x3,n=t.y3;return Math.abs(((a-l)*(o-g)-(u-l)*(n-g))/2)};f.exports=T},41199:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(66349),g=function(u,o,a){var n=a*(Math.sqrt(3)/2),r=u,d=o,s=u+a/2,h=o+n,c=u-a/2,p=o+n;return new l(r,d,s,h,c,p)};f.exports=g},88730:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(11117),g=t(66349),u=function(o,a,n,r,d){a===void 0&&(a=null),n===void 0&&(n=1),r===void 0&&(r=1),d===void 0&&(d=[]);for(var s=l(o,a),h,c,p,m,x,S,P,E,R,M=0;M{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(66349),g=function(u,o,a,n){n===void 0&&(n=a);var r=u,d=o,s=u,h=o-n,c=u+a,p=o;return new l(r,d,s,h,c,p)};f.exports=g},1882:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56595),g=t(9640),u=function(o,a,n,r){r===void 0&&(r=l);var d=r(o),s=a-d.x,h=n-d.y;return g(o,s,h)};f.exports=u},56595:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=function(u,o){return o===void 0&&(o=new l),o.x=(u.x1+u.x2+u.x3)/3,o.y=(u.y1+u.y2+u.y3)/3,o};f.exports=g},91835:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(93736);function g(o,a,n,r){return o*r-a*n}var u=function(o,a){a===void 0&&(a=new l);var n=o.x3,r=o.y3,d=o.x1-n,s=o.y1-r,h=o.x2-n,c=o.y2-r,p=2*g(d,s,h,c),m=g(s,d*d+s*s,c,h*h+c*c),x=g(d,d*d+s*s,h,h*h+c*c);return a.x=n-m/p,a.y=r+x/p,a};f.exports=u},97073:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(26673),g=function(u,o){o===void 0&&(o=new l);var a=u.x1,n=u.y1,r=u.x2,d=u.y2,s=u.x3,h=u.y3,c=r-a,p=d-n,m=s-a,x=h-n,S=c*(a+r)+p*(n+d),P=m*(a+s)+x*(n+h),E=2*(c*(h-d)-p*(s-r)),R,M;if(Math.abs(E)<1e-6){var O=Math.min(a,r,s),w=Math.min(n,d,h);R=(Math.max(a,r,s)-O)*.5,M=(Math.max(n,d,h)-w)*.5,o.x=O+R,o.y=w+M,o.radius=Math.sqrt(R*R+M*M)}else o.x=(x*S-p*P)/E,o.y=(c*P-m*S)/E,R=o.x-a,M=o.y-n,o.radius=Math.sqrt(R*R+M*M);return o};f.exports=g},75974:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(66349),g=function(u){return new l(u.x1,u.y1,u.x2,u.y2,u.x3,u.y3)};f.exports=g},60689:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){var u=t.x3-t.x1,o=t.y3-t.y1,a=t.x2-t.x1,n=t.y2-t.y1,r=l-t.x1,d=g-t.y1,s=u*u+o*o,h=u*a+o*n,c=u*r+o*d,p=a*a+n*n,m=a*r+n*d,x=s*p-h*h,S=x===0?0:1/x,P=(p*c-h*m)*S,E=(s*m-h*c)*S;return P>=0&&E>=0&&P+E<1};f.exports=T},86875:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){g===void 0&&(g=!1),u===void 0&&(u=[]);for(var o=t.x3-t.x1,a=t.y3-t.y1,n=t.x2-t.x1,r=t.y2-t.y1,d=o*o+a*a,s=o*n+a*r,h=n*n+r*r,c=d*h-s*s,p=c===0?0:1/c,m,x,S,P,E,R,M=t.x1,O=t.y1,w=0;w=0&&x>=0&&m+x<1&&(u.push({x:l[w].x,y:l[w].y}),g)));w++);return u};f.exports=T},51532:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(60689),g=function(u,o){return l(u,o.x,o.y)};f.exports=g},42538:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return l.setTo(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)};f.exports=T},18680:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return l===void 0&&(l=[]),l.push({x:t.x1,y:t.y1}),l.push({x:t.x2,y:t.y2}),l.push({x:t.x3,y:t.y3}),l};f.exports=T},29977:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return t.x1===l.x1&&t.y1===l.y1&&t.x2===l.x2&&t.y2===l.y2&&t.x3===l.x3&&t.y3===l.y3};f.exports=T},56088:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=t(16028),u=function(o,a,n){n===void 0&&(n=new l);var r=o.getLineA(),d=o.getLineB(),s=o.getLineC();if(a<=0||a>=1)return n.x=r.x1,n.y=r.y1,n;var h=g(r),c=g(d),p=g(s),m=h+c+p,x=m*a,S=0;return xh+c?(x-=h+c,S=x/p,n.x=s.x1+(s.x2-s.x1)*S,n.y=s.y1+(s.y2-s.y1)*S):(x-=h,S=x/c,n.x=d.x1+(d.x2-d.x1)*S,n.y=d.y1+(d.y2-d.y1)*S),n};f.exports=u},24402:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(16028),g=t(79967),u=function(o,a,n,r){r===void 0&&(r=[]);var d=o.getLineA(),s=o.getLineB(),h=o.getLineC(),c=l(d),p=l(s),m=l(h),x=c+p+m;!a&&n>0&&(a=x/n);for(var S=0;Sc+p?(P-=c+p,E=P/m,R.x=h.x1+(h.x2-h.x1)*E,R.y=h.y1+(h.y2-h.y1)*E):(P-=c,E=P/p,R.x=s.x1+(s.x2-s.x1)*E,R.y=s.y1+(s.y2-s.y1)*E),r.push(R)}return r};f.exports=u},83648:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967);function g(o,a,n,r){var d=o-n,s=a-r,h=d*d+s*s;return Math.sqrt(h)}var u=function(o,a){a===void 0&&(a=new l);var n=o.x1,r=o.y1,d=o.x2,s=o.y2,h=o.x3,c=o.y3,p=g(h,c,d,s),m=g(n,r,h,c),x=g(d,s,n,r),S=p+m+x;return a.x=(n*p+d*m+h*x)/S,a.y=(r*p+s*m+c*x)/S,a};f.exports=u},9640:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){return t.x1+=l,t.y1+=g,t.x2+=l,t.y2+=g,t.x3+=l,t.y3+=g,t};f.exports=T},95290:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(16028),g=function(u){var o=u.getLineA(),a=u.getLineB(),n=u.getLineC();return l(o)+l(a)+l(n)};f.exports=g},99761:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(79967),g=function(u,o){o===void 0&&(o=new l);var a=u.x2-u.x1,n=u.y2-u.y1,r=u.x3-u.x1,d=u.y3-u.y1,s=Math.random(),h=Math.random();return s+h>=1&&(s=1-s,h=1-h),o.x=u.x1+(a*s+r*h),o.y=u.y1+(n*s+d*h),o};f.exports=g},21934:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(19211),g=t(83648),u=function(o,a){var n=g(o);return l(o,n.x,n.y,a)};f.exports=u},68454:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(19211),g=function(u,o,a){return l(u,o.x,o.y,a)};f.exports=g},19211:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){var o=Math.cos(u),a=Math.sin(u),n=t.x1-l,r=t.y1-g;return t.x1=n*o-r*a+l,t.y1=n*a+r*o+g,n=t.x2-l,r=t.y2-g,t.x2=n*o-r*a+l,t.y2=n*a+r*o+g,n=t.x3-l,r=t.y3-g,t.x3=n*o-r*a+l,t.y3=n*a+r*o+g,t};f.exports=T},66349:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(60689),u=t(56088),o=t(24402),a=t(52394),n=t(88829),r=t(99761),d=new l({initialize:function(h,c,p,m,x,S){h===void 0&&(h=0),c===void 0&&(c=0),p===void 0&&(p=0),m===void 0&&(m=0),x===void 0&&(x=0),S===void 0&&(S=0),this.type=a.TRIANGLE,this.x1=h,this.y1=c,this.x2=p,this.y2=m,this.x3=x,this.y3=S},contains:function(s,h){return g(this,s,h)},getPoint:function(s,h){return u(this,s,h)},getPoints:function(s,h,c){return o(this,s,h,c)},getRandomPoint:function(s){return r(this,s)},setTo:function(s,h,c,p,m,x){return s===void 0&&(s=0),h===void 0&&(h=0),c===void 0&&(c=0),p===void 0&&(p=0),m===void 0&&(m=0),x===void 0&&(x=0),this.x1=s,this.y1=h,this.x2=c,this.y2=p,this.x3=m,this.y3=x,this},getLineA:function(s){return s===void 0&&(s=new n),s.setTo(this.x1,this.y1,this.x2,this.y2),s},getLineB:function(s){return s===void 0&&(s=new n),s.setTo(this.x2,this.y2,this.x3,this.y3),s},getLineC:function(s){return s===void 0&&(s=new n),s.setTo(this.x3,this.y3,this.x1,this.y1),s},left:{get:function(){return Math.min(this.x1,this.x2,this.x3)},set:function(s){var h=0;this.x1<=this.x2&&this.x1<=this.x3?h=this.x1-s:this.x2<=this.x1&&this.x2<=this.x3?h=this.x2-s:h=this.x3-s,this.x1-=h,this.x2-=h,this.x3-=h}},right:{get:function(){return Math.max(this.x1,this.x2,this.x3)},set:function(s){var h=0;this.x1>=this.x2&&this.x1>=this.x3?h=this.x1-s:this.x2>=this.x1&&this.x2>=this.x3?h=this.x2-s:h=this.x3-s,this.x1-=h,this.x2-=h,this.x3-=h}},top:{get:function(){return Math.min(this.y1,this.y2,this.y3)},set:function(s){var h=0;this.y1<=this.y2&&this.y1<=this.y3?h=this.y1-s:this.y2<=this.y1&&this.y2<=this.y3?h=this.y2-s:h=this.y3-s,this.y1-=h,this.y2-=h,this.y3-=h}},bottom:{get:function(){return Math.max(this.y1,this.y2,this.y3)},set:function(s){var h=0;this.y1>=this.y2&&this.y1>=this.y3?h=this.y1-s:this.y2>=this.y1&&this.y2>=this.y3?h=this.y2-s:h=this.y3-s,this.y1-=h,this.y2-=h,this.y3-=h}}});f.exports=d},87619:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(66349);l.Area=t(19108),l.BuildEquilateral=t(41199),l.BuildFromPolygon=t(88730),l.BuildRight=t(3635),l.CenterOn=t(1882),l.Centroid=t(56595),l.CircumCenter=t(91835),l.CircumCircle=t(97073),l.Clone=t(75974),l.Contains=t(60689),l.ContainsArray=t(86875),l.ContainsPoint=t(51532),l.CopyFrom=t(42538),l.Decompose=t(18680),l.Equals=t(29977),l.GetPoint=t(56088),l.GetPoints=t(24402),l.InCenter=t(83648),l.Perimeter=t(95290),l.Offset=t(9640),l.Random=t(99761),l.Rotate=t(21934),l.RotateAroundPoint=t(68454),l.RotateAroundXY=t(19211),f.exports=l},27395:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){return{gameObject:t,enabled:!0,draggable:!1,dropZone:!1,cursor:!1,target:null,camera:null,hitArea:l,hitAreaCallback:g,hitAreaDebug:null,customHitArea:!1,localX:0,localY:0,dragState:0,dragStartX:0,dragStartY:0,dragStartXGlobal:0,dragStartYGlobal:0,dragX:0,dragY:0}};f.exports=T},18104:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return function(g,u,o,a){var n=t.getPixelAlpha(u,o,a.texture.key,a.frame.name);return n&&n>=l}};f.exports=T},69898:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(72687),u=t(6659),o=t(33963),a=t(97081),n=t(71064),r=t(7905),d=t(40398),s=t(37579),h=t(69360),c=t(64462),p=new l({initialize:function(x,S){this.game=x,this.scaleManager,this.canvas,this.config=S,this.enabled=!0,this.events=new u,this.isOver=!0,this.defaultCursor="",this.keyboard=S.inputKeyboard?new n(this):null,this.mouse=S.inputMouse?new r(this):null,this.touch=S.inputTouch?new s(this):null,this.pointers=[],this.pointersTotal=S.inputActivePointers,S.inputTouch&&this.pointersTotal===1&&(this.pointersTotal=2);for(var P=0;P<=this.pointersTotal;P++){var E=new d(this,P);E.smoothFactor=S.inputSmoothFactor,this.pointers.push(E)}this.mousePointer=S.inputMouse?this.pointers[0]:null,this.activePointer=this.pointers[0],this.globalTopOnly=!0,this.time=0,this._tempPoint={x:0,y:0},this._tempHitTest=[],this._tempMatrix=new h,this._tempMatrix2=new h,this._tempSkip=!1,this.mousePointerContainer=[this.mousePointer],x.events.once(a.BOOT,this.boot,this)},boot:function(){var m=this.game,x=m.events;this.canvas=m.canvas,this.scaleManager=m.scale,this.events.emit(o.MANAGER_BOOT),x.on(a.PRE_RENDER,this.preRender,this),x.once(a.DESTROY,this.destroy,this)},setCanvasOver:function(m){this.isOver=!0,this.events.emit(o.GAME_OVER,m)},setCanvasOut:function(m){this.isOver=!1,this.events.emit(o.GAME_OUT,m)},preRender:function(){var m=this.game.loop.now,x=this.game.loop.delta,S=this.game.scene.getScenes(!0,!0);this.time=m,this.events.emit(o.MANAGER_UPDATE);for(var P=0;P10&&(m=10-this.pointersTotal);for(var S=0;S{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(26673),g=t(65650),u=t(56694),o=t(72687),a=t(27395),n=t(18104),r=t(53996),d=t(95669),s=t(72313),h=t(33963),c=t(6659),p=t(72632),m=t(52394),x=t(63399),S=t(42911),P=t(91963),E=t(74118),R=t(94287),M=t(7599),O=t(66349),w=t(60689),L=new u({Extends:c,initialize:function(b){c.call(this),this.scene=b,this.systems=b.sys,this.settings=b.sys.settings,this.manager=b.sys.game.input,this.pluginEvents=new c,this.enabled=!0,this.displayList,this.cameras,x.install(this),this.mouse=this.manager.mouse,this.topOnly=!0,this.pollRate=-1,this._pollTimer=0;var D={cancelled:!1};this._eventContainer={stopPropagation:function(){D.cancelled=!0}},this._eventData=D,this.dragDistanceThreshold=0,this.dragTimeThreshold=0,this._temp=[],this._tempZones=[],this._list=[],this._pendingInsertion=[],this._pendingRemoval=[],this._draggable=[],this._drag={0:[],1:[],2:[],3:[],4:[],5:[],6:[],7:[],8:[],9:[],10:[]},this._dragState=[],this._over={0:[],1:[],2:[],3:[],4:[],5:[],6:[],7:[],8:[],9:[],10:[]},this._validTypes=["onDown","onUp","onOver","onOut","onMove","onDragStart","onDrag","onDragEnd","onDragEnter","onDragLeave","onDragOver","onDrop"],this._updatedThisFrame=!1,b.sys.events.once(M.BOOT,this.boot,this),b.sys.events.on(M.START,this.start,this)},boot:function(){this.cameras=this.systems.cameras,this.displayList=this.systems.displayList,this.systems.events.once(M.DESTROY,this.destroy,this),this.pluginEvents.emit(h.BOOT)},start:function(){var F=this.systems.events;F.on(M.TRANSITION_START,this.transitionIn,this),F.on(M.TRANSITION_OUT,this.transitionOut,this),F.on(M.TRANSITION_COMPLETE,this.transitionComplete,this),F.on(M.PRE_UPDATE,this.preUpdate,this),F.once(M.SHUTDOWN,this.shutdown,this),this.manager.events.on(h.GAME_OUT,this.onGameOut,this),this.manager.events.on(h.GAME_OVER,this.onGameOver,this),this.enabled=!0,this._dragState=[0,0,0,0,0,0,0,0,0,0],this.pluginEvents.emit(h.START)},onGameOver:function(F){this.isActive()&&this.emit(h.GAME_OVER,F.timeStamp,F)},onGameOut:function(F){this.isActive()&&this.emit(h.GAME_OUT,F.timeStamp,F)},preUpdate:function(){this.pluginEvents.emit(h.PRE_UPDATE);var F=this._pendingRemoval,b=this._pendingInsertion,D=F.length,N=b.length;if(!(D===0&&N===0)){for(var z=this._list,W=0;W-1&&(z.splice(j,1),this.clear(Y,!0))}this._pendingRemoval.length=0,this._list=z.concat(b.splice(0))}},isActive:function(){return this.enabled&&this.scene.sys.canInput()},updatePoll:function(F,b){if(!this.isActive())return!1;if(this.pluginEvents.emit(h.UPDATE,F,b),this._updatedThisFrame)return this._updatedThisFrame=!1,!1;var D,N=this.manager,z=N.pointers,W=N.pointersTotal;for(D=0;D0)if(this._pollTimer-=b,this._pollTimer<0)this._pollTimer=this.pollRate;else return!1;var j=!1;for(D=0;D0&&(j=!0)}return j},update:function(F,b){if(!this.isActive())return!1;for(var D=b.length,N=!1,z=0;z0&&(N=!0)}return this._updatedThisFrame=!0,N},clear:function(F,b){b===void 0&&(b=!1),this.disable(F);var D=F.input;D&&(this.removeDebug(F),D.gameObject=void 0,D.target=void 0,D.hitArea=void 0,D.hitAreaCallback=void 0,D.callbackContext=void 0,F.input=null),b||this.queueForRemoval(F);var N=this._draggable.indexOf(F);return N>-1&&this._draggable.splice(N,1),F},disable:function(F){var b=F.input;b&&(b.enabled=!1,b.dragState=0);var D=this._temp,N=this._drag,z=this._over,W=this.manager,Y=D.indexOf(F);Y>-1&&D.splice(Y,1);for(var j=0;j-1&&N[j].splice(Y,1),Y=z[j].indexOf(F),Y>-1&&(z[j].splice(Y,1),W.resetCursor(b));return this},enable:function(F,b,D,N){return N===void 0&&(N=!1),F.input?F.input.enabled=!0:this.setHitArea(F,b,D),F.input&&N&&!F.input.dropZone&&(F.input.dropZone=N),this},hitTestPointer:function(F){for(var b=this.cameras.getCamerasBelowPointer(F),D=0;D0)return F.camera=N,z}return F.camera=b[0],[]},processDownEvents:function(F){var b=0,D=this._temp,N=this._eventData,z=this._eventContainer;N.cancelled=!1;for(var W=!1,Y=0;Y0&&r(F.x,F.y,F.downX,F.downY)>=z||N>0&&b>=F.downTime+N)&&(D=!0),D)return this.setDragState(F,3),this.processDragStartList(F)},processDragStartList:function(F){if(this.getDragState(F)!==3)return 0;for(var b=this._drag[F.id],D=0;D1&&(this.sortGameObjects(D,F),this.topOnly&&D.splice(1)),this._drag[F.id]=D,this.dragDistanceThreshold===0&&this.dragTimeThreshold===0?(this.setDragState(F,3),this.processDragStartList(F)):(this.setDragState(F,2),0))},processDragMoveEvent:function(F){if(this.getDragState(F)===2&&this.processDragThresholdEvent(F,this.manager.game.loop.now),this.getDragState(F)!==4)return 0;for(var b=this._tempZones,D=this._drag[F.id],N=0;N0?(z.emit(h.GAMEOBJECT_DRAG_LEAVE,F,Y),this.emit(h.DRAG_LEAVE,F,z,Y),W.target=b[0],Y=W.target,z.emit(h.GAMEOBJECT_DRAG_ENTER,F,Y),this.emit(h.DRAG_ENTER,F,z,Y)):(z.emit(h.GAMEOBJECT_DRAG_LEAVE,F,Y),this.emit(h.DRAG_LEAVE,F,z,Y),b[0]?(W.target=b[0],Y=W.target,z.emit(h.GAMEOBJECT_DRAG_ENTER,F,Y),this.emit(h.DRAG_ENTER,F,z,Y)):W.target=null)}else!Y&&b[0]&&(W.target=b[0],Y=W.target,z.emit(h.GAMEOBJECT_DRAG_ENTER,F,Y),this.emit(h.DRAG_ENTER,F,z,Y));var G,V;if(!z.parentContainer)G=F.worldX-W.dragX,V=F.worldY-W.dragY;else{var I=F.worldX-W.dragStartXGlobal,B=F.worldY-W.dragStartYGlobal,U=z.getParentRotation(),X=I*Math.cos(U)+B*Math.sin(U),$=B*Math.cos(U)-I*Math.sin(U);X*=1/z.parentContainer.scaleX,$*=1/z.parentContainer.scaleY,G=X+W.dragStartX,V=$+W.dragStartY}z.emit(h.GAMEOBJECT_DRAG,F,G,V),this.emit(h.DRAG,F,z,G,V)}return D.length},processDragUpEvent:function(F){for(var b=this._drag[F.id],D=0;D0){var W=this.manager,Y=this._eventData,j=this._eventContainer;Y.cancelled=!1;for(var G=!1,V=0;V0){var z=this.manager,W=this._eventData,Y=this._eventContainer;W.cancelled=!1;var j=!1;this.sortGameObjects(b,F);for(var G=0;G0){for(this.sortGameObjects(z,F),D=0;D0){for(this.sortGameObjects(W,F),D=0;D-1&&this._draggable.splice(z,1)}return this},makePixelPerfect:function(F){F===void 0&&(F=1);var b=this.systems.textures;return n(b,F)},setHitArea:function(F,b,D){if(b===void 0)return this.setHitAreaFromTexture(F);Array.isArray(F)||(F=[F]);var N=!1,z=!1,W=!1,Y=!1,j=!1,G=!0;if(S(b)){var V=b;b=p(V,"hitArea",null),D=p(V,"hitAreaCallback",null),N=p(V,"draggable",!1),z=p(V,"dropZone",!1),W=p(V,"cursor",!1),Y=p(V,"useHandCursor",!1),j=p(V,"pixelPerfect",!1);var I=p(V,"alphaTolerance",1);j&&(b={},D=this.makePixelPerfect(I)),(!b||!D)&&(this.setHitAreaFromTexture(F),G=!1)}else typeof b=="function"&&!D&&(D=b,b={});for(var B=0;B{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(10850),g={},u={};u.register=function(o,a,n,r,d){g[o]={plugin:a,mapping:n,settingsKey:r,configKey:d}},u.getPlugin=function(o){return g[o]},u.install=function(o){var a=o.scene.sys,n=a.settings.input,r=a.game.config;for(var d in g){var s=g[d].plugin,h=g[d].mapping,c=g[d].settingsKey,p=g[d].configKey;l(n,c,r[p])&&(o[h]=new s(o))}},u.remove=function(o){g.hasOwnProperty(o)&&delete g[o]},f.exports=u},40398:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(90447),g=t(56694),u=t(53996),o=t(88456),a=t(44521),n=t(93736),r=t(36580),d=new g({initialize:function(h,c){this.manager=h,this.id=c,this.event,this.downElement,this.upElement,this.camera=null,this.button=0,this.buttons=0,this.position=new n,this.prevPosition=new n,this.midPoint=new n(-1,-1),this.velocity=new n,this.angle=0,this.distance=0,this.smoothFactor=0,this.motionFactor=.2,this.worldX=0,this.worldY=0,this.moveTime=0,this.downX=0,this.downY=0,this.downTime=0,this.upX=0,this.upY=0,this.upTime=0,this.primaryDown=!1,this.isDown=!1,this.wasTouch=!1,this.wasCanceled=!1,this.movementX=0,this.movementY=0,this.identifier=0,this.pointerId=null,this.active=c===0,this.locked=!1,this.deltaX=0,this.deltaY=0,this.deltaZ=0},updateWorldPoint:function(s){var h=s.getWorldPoint(this.x,this.y);return this.worldX=h.x,this.worldY=h.y,this},positionToCamera:function(s,h){return s.getWorldPoint(this.x,this.y,h)},updateMotion:function(){var s=this.position.x,h=this.position.y,c=this.midPoint.x,p=this.midPoint.y;if(!(s===c&&h===p)){var m=a(this.motionFactor,c,s),x=a(this.motionFactor,p,h);o(m,s,.1)&&(m=s),o(x,h,.1)&&(x=h),this.midPoint.set(m,x);var S=s-m,P=h-x;this.velocity.set(S,P),this.angle=l(m,x,s,h),this.distance=Math.sqrt(S*S+P*P)}},up:function(s){"buttons"in s&&(this.buttons=s.buttons),this.event=s,this.button=s.button,this.upElement=s.target,this.manager.transformPointer(this,s.pageX,s.pageY,!1),s.button===0&&(this.primaryDown=!1,this.upX=this.x,this.upY=this.y),this.buttons===0&&(this.isDown=!1,this.upTime=s.timeStamp,this.wasTouch=!1)},down:function(s){"buttons"in s&&(this.buttons=s.buttons),this.event=s,this.button=s.button,this.downElement=s.target,this.manager.transformPointer(this,s.pageX,s.pageY,!1),s.button===0&&(this.primaryDown=!0,this.downX=this.x,this.downY=this.y),r.macOS&&s.ctrlKey&&(this.buttons=2,this.primaryDown=!1),this.isDown||(this.isDown=!0,this.downTime=s.timeStamp),this.wasTouch=!1},move:function(s){"buttons"in s&&(this.buttons=s.buttons),this.event=s,this.manager.transformPointer(this,s.pageX,s.pageY,!0),this.locked&&(this.movementX=s.movementX||s.mozMovementX||s.webkitMovementX||0,this.movementY=s.movementY||s.mozMovementY||s.webkitMovementY||0),this.moveTime=s.timeStamp,this.wasTouch=!1},wheel:function(s){"buttons"in s&&(this.buttons=s.buttons),this.event=s,this.manager.transformPointer(this,s.pageX,s.pageY,!1),this.deltaX=s.deltaX,this.deltaY=s.deltaY,this.deltaZ=s.deltaZ,this.wasTouch=!1},touchstart:function(s,h){s.pointerId&&(this.pointerId=s.pointerId),this.identifier=s.identifier,this.target=s.target,this.active=!0,this.buttons=1,this.event=h,this.downElement=s.target,this.manager.transformPointer(this,s.pageX,s.pageY,!1),this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=h.timeStamp,this.isDown=!0,this.wasTouch=!0,this.wasCanceled=!1,this.updateMotion()},touchmove:function(s,h){this.event=h,this.manager.transformPointer(this,s.pageX,s.pageY,!0),this.moveTime=h.timeStamp,this.wasTouch=!0,this.updateMotion()},touchend:function(s,h){this.buttons=0,this.event=h,this.upElement=s.target,this.manager.transformPointer(this,s.pageX,s.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=h.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!1,this.active=!1,this.updateMotion()},touchcancel:function(s,h){this.buttons=0,this.event=h,this.upElement=s.target,this.manager.transformPointer(this,s.pageX,s.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=h.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!0,this.active=!1},noButtonDown:function(){return this.buttons===0},leftButtonDown:function(){return!!(this.buttons&1)},rightButtonDown:function(){return!!(this.buttons&2)},middleButtonDown:function(){return!!(this.buttons&4)},backButtonDown:function(){return!!(this.buttons&8)},forwardButtonDown:function(){return!!(this.buttons&16)},leftButtonReleased:function(){return this.button===0&&!this.isDown},rightButtonReleased:function(){return this.button===2&&!this.isDown},middleButtonReleased:function(){return this.button===1&&!this.isDown},backButtonReleased:function(){return this.button===3&&!this.isDown},forwardButtonReleased:function(){return this.button===4&&!this.isDown},getDistance:function(){return this.isDown?u(this.downX,this.downY,this.x,this.y):u(this.downX,this.downY,this.upX,this.upY)},getDistanceX:function(){return this.isDown?Math.abs(this.downX-this.x):Math.abs(this.downX-this.upX)},getDistanceY:function(){return this.isDown?Math.abs(this.downY-this.y):Math.abs(this.downY-this.upY)},getDuration:function(){return this.isDown?this.manager.time-this.downTime:this.upTime-this.downTime},getAngle:function(){return this.isDown?l(this.downX,this.downY,this.x,this.y):l(this.downX,this.downY,this.upX,this.upY)},getInterpolatedPosition:function(s,h){s===void 0&&(s=10),h===void 0&&(h=[]);for(var c=this.prevPosition.x,p=this.prevPosition.y,m=this.position.x,x=this.position.y,S=0;S{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={MOUSE_DOWN:0,MOUSE_MOVE:1,MOUSE_UP:2,TOUCH_START:3,TOUCH_MOVE:4,TOUCH_END:5,POINTER_LOCK_CHANGE:6,TOUCH_CANCEL:7,MOUSE_WHEEL:8};f.exports=T},14874:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="boot"},54168:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="destroy"},526:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="dragend"},81623:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="dragenter"},94472:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="drag"},9304:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="dragleave"},34265:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="dragover"},50151:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="dragstart"},98134:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="drop"},56773:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="gameobjectdown"},45824:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="dragend"},39578:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="dragenter"},72072:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="drag"},82569:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="dragleave"},70833:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="dragover"},81442:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="dragstart"},32936:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="drop"},99658:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="gameobjectmove"},60515:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="gameobjectout"},55254:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="gameobjectover"},34782:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pointerdown"},41769:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pointermove"},65588:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pointerout"},61640:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pointerover"},49342:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pointerup"},82662:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="wheel"},13058:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="gameobjectup"},52426:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="gameobjectwheel"},78072:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="gameout"},1545:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="gameover"},67137:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="boot"},27678:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="process"},22257:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="update"},90379:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pointerlockchange"},88909:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pointerdown"},36548:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pointerdownoutside"},18483:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pointermove"},22355:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pointerout"},7997:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pointerover"},66318:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pointerup"},94812:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pointerupoutside"},37310:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="wheel"},24196:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="preupdate"},27053:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="shutdown"},29413:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="start"},25165:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="update"},33963:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={BOOT:t(14874),DESTROY:t(54168),DRAG_END:t(526),DRAG_ENTER:t(81623),DRAG:t(94472),DRAG_LEAVE:t(9304),DRAG_OVER:t(34265),DRAG_START:t(50151),DROP:t(98134),GAME_OUT:t(78072),GAME_OVER:t(1545),GAMEOBJECT_DOWN:t(56773),GAMEOBJECT_DRAG_END:t(45824),GAMEOBJECT_DRAG_ENTER:t(39578),GAMEOBJECT_DRAG:t(72072),GAMEOBJECT_DRAG_LEAVE:t(82569),GAMEOBJECT_DRAG_OVER:t(70833),GAMEOBJECT_DRAG_START:t(81442),GAMEOBJECT_DROP:t(32936),GAMEOBJECT_MOVE:t(99658),GAMEOBJECT_OUT:t(60515),GAMEOBJECT_OVER:t(55254),GAMEOBJECT_POINTER_DOWN:t(34782),GAMEOBJECT_POINTER_MOVE:t(41769),GAMEOBJECT_POINTER_OUT:t(65588),GAMEOBJECT_POINTER_OVER:t(61640),GAMEOBJECT_POINTER_UP:t(49342),GAMEOBJECT_POINTER_WHEEL:t(82662),GAMEOBJECT_UP:t(13058),GAMEOBJECT_WHEEL:t(52426),MANAGER_BOOT:t(67137),MANAGER_PROCESS:t(27678),MANAGER_UPDATE:t(22257),POINTER_DOWN:t(88909),POINTER_DOWN_OUTSIDE:t(36548),POINTER_MOVE:t(18483),POINTER_OUT:t(22355),POINTER_OVER:t(7997),POINTER_UP:t(66318),POINTER_UP_OUTSIDE:t(94812),POINTER_WHEEL:t(37310),POINTERLOCK_CHANGE:t(90379),PRE_UPDATE:t(24196),SHUTDOWN:t(27053),START:t(29413),UPDATE:t(25165)}},70848:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=new l({initialize:function(o,a){this.pad=o,this.events=o.events,this.index=a,this.value=0,this.threshold=.1},update:function(u){this.value=u},getValue:function(){return Math.abs(this.value){/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(43200),u=new l({initialize:function(a,n){this.pad=a,this.events=a.manager,this.index=n,this.value=0,this.threshold=1,this.pressed=!1},update:function(o){this.value=o;var a=this.pad,n=this.index;o>=this.threshold?this.pressed||(this.pressed=!0,this.events.emit(g.BUTTON_DOWN,a,this,o),this.pad.emit(g.GAMEPAD_BUTTON_DOWN,n,o,this)):this.pressed&&(this.pressed=!1,this.events.emit(g.BUTTON_UP,a,this,o),this.pad.emit(g.GAMEPAD_BUTTON_UP,n,o,this))},destroy:function(){this.pad=null,this.events=null}});f.exports=u},75956:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(70848),g=t(21274),u=t(56694),o=t(6659),a=t(93736),n=new u({Extends:o,initialize:function(d,s){o.call(this),this.manager=d,this.pad=s,this.id=s.id,this.index=s.index;for(var h=[],c=0;c=2&&(this.leftStick.set(p[0].getValue(),p[1].getValue()),c>=4&&this.rightStick.set(p[2].getValue(),p[3].getValue()))}},destroy:function(){this.removeAllListeners(),this.manager=null,this.pad=null;var r;for(r=0;r{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(6659),u=t(43200),o=t(75956),a=t(10850),n=t(63399),r=t(33963),d=new l({Extends:g,initialize:function(h){g.call(this),this.scene=h.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=h,this.enabled=!0,this.target,this.gamepads=[],this.queue=[],this.onGamepadHandler,this._pad1,this._pad2,this._pad3,this._pad4,h.pluginEvents.once(r.BOOT,this.boot,this),h.pluginEvents.on(r.START,this.start,this)},boot:function(){var s=this.scene.sys.game,h=this.settings.input,c=s.config;this.enabled=a(h,"gamepad",c.inputGamepad)&&s.device.input.gamepads,this.target=a(h,"gamepad.target",c.inputGamepadEventTarget),this.sceneInputPlugin.pluginEvents.once(r.DESTROY,this.destroy,this)},start:function(){this.enabled&&(this.startListeners(),this.refreshPads()),this.sceneInputPlugin.pluginEvents.once(r.SHUTDOWN,this.shutdown,this)},isActive:function(){return this.enabled&&this.scene.sys.isActive()},startListeners:function(){var s=this,h=this.target,c=function(p){p.defaultPrevented||!s.isActive()||(s.refreshPads(),s.queue.push(p))};this.onGamepadHandler=c,h.addEventListener("gamepadconnected",c,!1),h.addEventListener("gamepaddisconnected",c,!1),this.sceneInputPlugin.pluginEvents.on(r.UPDATE,this.update,this)},stopListeners:function(){this.target.removeEventListener("gamepadconnected",this.onGamepadHandler),this.target.removeEventListener("gamepaddisconnected",this.onGamepadHandler),this.sceneInputPlugin.pluginEvents.off(r.UPDATE,this.update);for(var s=0;s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={UP:12,DOWN:13,LEFT:14,RIGHT:15,SELECT:8,START:9,B:0,A:1,Y:2,X:3,LEFT_SHOULDER:4,RIGHT_SHOULDER:5}},74982:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={UP:12,DOWN:13,LEFT:14,RIGHT:15,SHARE:8,OPTIONS:9,PS:16,TOUCHBAR:17,X:0,CIRCLE:1,SQUARE:2,TRIANGLE:3,L1:4,R1:5,L2:6,R2:7,L3:10,R3:11,LEFT_STICK_H:0,LEFT_STICK_V:1,RIGHT_STICK_H:2,RIGHT_STICK_V:3}},43247:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={UP:12,DOWN:13,LEFT:14,RIGHT:15,MENU:16,A:0,B:1,X:2,Y:3,LB:4,RB:5,LT:6,RT:7,BACK:8,START:9,LS:10,RS:11,LEFT_STICK_H:0,LEFT_STICK_V:1,RIGHT_STICK_H:2,RIGHT_STICK_V:3}},4898:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={DUALSHOCK_4:t(74982),SNES_USB:t(33171),XBOX_360:t(43247)}},17344:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="down"},36635:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="up"},85724:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="connected"},55832:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="disconnected"},772:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="down"},33608:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="up"},43200:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={BUTTON_DOWN:t(17344),BUTTON_UP:t(36635),CONNECTED:t(85724),DISCONNECTED:t(55832),GAMEPAD_BUTTON_DOWN:t(772),GAMEPAD_BUTTON_UP:t(33608)}},92636:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Axis:t(70848),Button:t(21274),Events:t(43200),Gamepad:t(75956),GamepadPlugin:t(1379),Configs:t(4898)}},20873:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72687),g=t(98611),u={CreatePixelPerfectHandler:t(18104),CreateInteractiveObject:t(27395),Events:t(33963),Gamepad:t(92636),InputManager:t(69898),InputPlugin:t(12499),InputPluginCache:t(63399),Keyboard:t(28388),Mouse:t(11343),Pointer:t(40398),Touch:t(77423)};u=g(!1,u,l),f.exports=u},71064:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(66458),g=t(56694),u=t(97081),o=t(33963),a=t(11873),n=t(72283),r=new g({initialize:function(s){this.manager=s,this.queue=[],this.preventDefault=!0,this.captures=[],this.enabled=!1,this.target,this.onKeyDown=n,this.onKeyUp=n,s.events.once(o.MANAGER_BOOT,this.boot,this)},boot:function(){var d=this.manager.config;this.enabled=d.inputKeyboard,this.target=d.inputKeyboardEventTarget,this.addCapture(d.inputKeyboardCapture),!this.target&&window&&(this.target=window),this.enabled&&this.target&&this.startListeners(),this.manager.game.events.on(u.POST_STEP,this.postUpdate,this)},startListeners:function(){var d=this;this.onKeyDown=function(h){if(!(h.defaultPrevented||!d.enabled||!d.manager)){d.queue.push(h),d.manager.events.emit(o.MANAGER_PROCESS);var c=h.altKey||h.ctrlKey||h.shiftKey||h.metaKey;d.preventDefault&&!c&&d.captures.indexOf(h.keyCode)>-1&&h.preventDefault()}},this.onKeyUp=function(h){if(!(h.defaultPrevented||!d.enabled||!d.manager)){d.queue.push(h),d.manager.events.emit(o.MANAGER_PROCESS);var c=h.altKey||h.ctrlKey||h.shiftKey||h.metaKey;d.preventDefault&&!c&&d.captures.indexOf(h.keyCode)>-1&&h.preventDefault()}};var s=this.target;s&&(s.addEventListener("keydown",this.onKeyDown,!1),s.addEventListener("keyup",this.onKeyUp,!1),this.enabled=!0)},stopListeners:function(){var d=this.target;d.removeEventListener("keydown",this.onKeyDown,!1),d.removeEventListener("keyup",this.onKeyUp,!1),this.enabled=!1},postUpdate:function(){this.queue=[]},addCapture:function(d){typeof d=="string"&&(d=d.split(",")),Array.isArray(d)||(d=[d]);for(var s=this.captures,h=0;h0},removeCapture:function(d){typeof d=="string"&&(d=d.split(",")),Array.isArray(d)||(d=[d]);for(var s=this.captures,h=0;h0},clearCaptures:function(){this.captures=[],this.preventDefault=!1},destroy:function(){this.stopListeners(),this.clearCaptures(),this.queue=[],this.manager.game.events.off(u.POST_RENDER,this.postUpdate,this),this.target=null,this.enabled=!1,this.manager=null}});f.exports=r},89666:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(6659),u=t(94030),o=t(97081),a=t(10850),n=t(33963),r=t(63399),d=t(50165),s=t(11873),h=t(95625),c=t(48044),p=t(7599),m=t(84314),x=new l({Extends:g,initialize:function(P){g.call(this),this.game=P.systems.game,this.scene=P.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=P,this.manager=P.manager.keyboard,this.enabled=!0,this.keys=[],this.combos=[],this.prevCode=null,this.prevTime=0,this.prevType=null,P.pluginEvents.once(n.BOOT,this.boot,this),P.pluginEvents.on(n.START,this.start,this)},boot:function(){var S=this.settings.input;this.enabled=a(S,"keyboard",!0);var P=a(S,"keyboard.capture",null);P&&this.addCaptures(P),this.sceneInputPlugin.pluginEvents.once(n.DESTROY,this.destroy,this)},start:function(){this.sceneInputPlugin.manager.events.on(n.MANAGER_PROCESS,this.update,this),this.sceneInputPlugin.pluginEvents.once(n.SHUTDOWN,this.shutdown,this),this.game.events.on(o.BLUR,this.resetKeys,this),this.scene.sys.events.on(p.PAUSE,this.resetKeys,this),this.scene.sys.events.on(p.SLEEP,this.resetKeys,this)},isActive:function(){return this.enabled&&this.scene.sys.canInput()},addCapture:function(S){return this.manager.addCapture(S),this},removeCapture:function(S){return this.manager.removeCapture(S),this},getCaptures:function(){return this.manager.captures},enableGlobalCapture:function(){return this.manager.preventDefault=!0,this},disableGlobalCapture:function(){return this.manager.preventDefault=!1,this},clearCaptures:function(){return this.manager.clearCaptures(),this},createCursorKeys:function(){return this.addKeys({up:s.UP,down:s.DOWN,left:s.LEFT,right:s.RIGHT,space:s.SPACE,shift:s.SHIFT})},addKeys:function(S,P,E){P===void 0&&(P=!0),E===void 0&&(E=!1);var R={};if(typeof S=="string"){S=S.split(",");for(var M=0;M-1?R[M]=S:R[S.keyCode]=S,P&&this.addCapture(S.keyCode),S.setEmitOnRepeat(E),S}return typeof S=="string"&&(S=s[S.toUpperCase()]),R[S]||(R[S]=new d(this,S),P&&this.addCapture(S),R[S].setEmitOnRepeat(E)),R[S]},removeKey:function(S,P,E){P===void 0&&(P=!1),E===void 0&&(E=!1);var R=this.keys,M;if(S instanceof d){var O=R.indexOf(S);O>-1&&(M=this.keys[O],this.keys[O]=void 0)}else typeof S=="string"&&(S=s[S.toUpperCase()]);return R[S]&&(M=R[S],R[S]=void 0),M&&(M.plugin=null,E&&this.removeCapture(M.keyCode),P&&M.destroy()),this},removeAllKeys:function(S,P){S===void 0&&(S=!1),P===void 0&&(P=!1);for(var E=this.keys,R=0;RS._tick)return S._tick=E,!0}return!1},update:function(){var S=this.manager.queue,P=S.length;if(!(!this.isActive()||P===0))for(var E=this.keys,R=0;R{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return l.timeLastMatched=t.timeStamp,l.index++,l.index===l.size?!0:(l.current=l.keyCodes[l.index],!1)};f.exports=T},95625:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(94030),u=t(72632),o=t(2544),a=t(88754),n=new l({initialize:function(d,s,h){if(h===void 0&&(h={}),s.length<2)return!1;this.manager=d,this.enabled=!0,this.keyCodes=[];for(var c=0;c{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(60258),g=function(u,o){if(o.matched)return!0;var a=!1,n=!1;if(u.keyCode===o.current)if(o.index>0&&o.maxKeyDelay>0){var r=o.timeLastMatched+o.maxKeyDelay;u.timeStamp<=r&&(n=!0,a=l(u,o))}else n=!0,a=l(u,o);return!n&&o.resetOnWrongKey&&(o.index=0,o.current=o.keyCodes[0]),a&&(o.timeLastMatched=u.timeStamp,o.matched=!0,o.timeMatched=u.timeStamp),a};f.exports=g},88754:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t.current=t.keyCodes[0],t.index=0,t.timeLastMatched=0,t.matched=!1,t.timeMatched=0,t};f.exports=T},5044:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="keydown"},40813:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="keyup"},89319:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="keycombomatch"},43267:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="down"},78595:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="keydown-"},30056:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="keyup-"},81939:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="up"},94030:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={ANY_KEY_DOWN:t(5044),ANY_KEY_UP:t(40813),COMBO_MATCH:t(89319),DOWN:t(43267),KEY_DOWN:t(78595),KEY_UP:t(30056),UP:t(81939)}},28388:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Events:t(94030),KeyboardManager:t(71064),KeyboardPlugin:t(89666),Key:t(50165),KeyCodes:t(11873),KeyCombo:t(95625),AdvanceKeyCombo:t(60258),ProcessKeyCombo:t(2544),ResetKeyCombo:t(88754),JustDown:t(42460),JustUp:t(53162),DownDuration:t(64964),UpDuration:t(70331)}},64964:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){l===void 0&&(l=50);var g=t.plugin.game.loop.time-t.timeDown;return t.isDown&&g{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t._justDown?(t._justDown=!1,!0):!1};f.exports=T},53162:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t._justUp?(t._justUp=!1,!0):!1};f.exports=T},50165:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(6659),u=t(94030),o=new l({Extends:g,initialize:function(n,r){g.call(this),this.plugin=n,this.keyCode=r,this.originalEvent=void 0,this.enabled=!0,this.isDown=!1,this.isUp=!0,this.altKey=!1,this.ctrlKey=!1,this.shiftKey=!1,this.metaKey=!1,this.location=0,this.timeDown=0,this.duration=0,this.timeUp=0,this.emitOnRepeat=!1,this.repeats=0,this._justDown=!1,this._justUp=!1,this._tick=-1},setEmitOnRepeat:function(a){return this.emitOnRepeat=a,this},onDown:function(a){this.originalEvent=a,this.enabled&&(this.altKey=a.altKey,this.ctrlKey=a.ctrlKey,this.shiftKey=a.shiftKey,this.metaKey=a.metaKey,this.location=a.location,this.repeats++,this.isDown?this.emitOnRepeat&&this.emit(u.DOWN,this,a):(this.isDown=!0,this.isUp=!1,this.timeDown=a.timeStamp,this.duration=0,this._justDown=!0,this._justUp=!1,this.emit(u.DOWN,this,a)))},onUp:function(a){this.originalEvent=a,this.enabled&&(this.isDown=!1,this.isUp=!0,this.timeUp=a.timeStamp,this.duration=this.timeUp-this.timeDown,this.repeats=0,this._justDown=!1,this._justUp=!0,this._tick=-1,this.emit(u.UP,this,a))},reset:function(){return this.isDown=!1,this.isUp=!0,this.altKey=!1,this.ctrlKey=!1,this.shiftKey=!1,this.metaKey=!1,this.timeDown=0,this.duration=0,this.timeUp=0,this.repeats=0,this._justDown=!1,this._justUp=!1,this._tick=-1,this},getDuration:function(){return this.isDown?this.plugin.game.loop.time-this.timeDown:0},destroy:function(){this.removeAllListeners(),this.originalEvent=null,this.plugin=null}});f.exports=o},11873:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:42,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,NUMPAD_ZERO:96,NUMPAD_ONE:97,NUMPAD_TWO:98,NUMPAD_THREE:99,NUMPAD_FOUR:100,NUMPAD_FIVE:101,NUMPAD_SIX:102,NUMPAD_SEVEN:103,NUMPAD_EIGHT:104,NUMPAD_NINE:105,NUMPAD_ADD:107,NUMPAD_SUBTRACT:109,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,PLUS:187,COMMA:188,MINUS:189,PERIOD:190,FORWARD_SLASH:191,BACK_SLASH:220,QUOTES:222,BACKTICK:192,OPEN_BRACKET:219,CLOSED_BRACKET:221,SEMICOLON_FIREFOX:59,COLON:58,COMMA_FIREFOX_WINDOWS:60,COMMA_FIREFOX:62,BRACKET_RIGHT_FIREFOX:174,BRACKET_LEFT_FIREFOX:175};f.exports=T},48044:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(11873),g={};for(var u in l)g[l[u]]=u;f.exports=g},70331:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){l===void 0&&(l=50);var g=t.plugin.game.loop.time-t.timeUp;return t.isUp&&g{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(90185),u=t(33963),o=t(72283),a=new l({initialize:function(r){this.manager=r,this.preventDefaultDown=!0,this.preventDefaultUp=!0,this.preventDefaultMove=!0,this.preventDefaultWheel=!1,this.enabled=!1,this.target,this.locked=!1,this.onMouseMove=o,this.onMouseDown=o,this.onMouseUp=o,this.onMouseDownWindow=o,this.onMouseUpWindow=o,this.onMouseOver=o,this.onMouseOut=o,this.onMouseWheel=o,this.pointerLockChange=o,this.isTop=!0,r.events.once(u.MANAGER_BOOT,this.boot,this)},boot:function(){var n=this.manager.config;this.enabled=n.inputMouse,this.target=n.inputMouseEventTarget,this.passive=n.inputMousePassive,this.preventDefaultDown=n.inputMousePreventDefaultDown,this.preventDefaultUp=n.inputMousePreventDefaultUp,this.preventDefaultMove=n.inputMousePreventDefaultMove,this.preventDefaultWheel=n.inputMousePreventDefaultWheel,this.target?typeof this.target=="string"&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,n.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return this.target.addEventListener("contextmenu",function(n){return n.preventDefault(),!1}),this},requestPointerLock:function(){if(g.pointerLock){var n=this.target;n.requestPointerLock=n.requestPointerLock||n.mozRequestPointerLock||n.webkitRequestPointerLock,n.requestPointerLock()}},releasePointerLock:function(){g.pointerLock&&(document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock,document.exitPointerLock())},startListeners:function(){var n=this.target;if(n){var r=this,d=this.manager,s=d.canvas,h=window&&window.focus&&d.game.config.autoFocus;this.onMouseMove=function(p){!p.defaultPrevented&&r.enabled&&d&&d.enabled&&(d.onMouseMove(p),r.preventDefaultMove&&p.preventDefault())},this.onMouseDown=function(p){h&&window.focus(),!p.defaultPrevented&&r.enabled&&d&&d.enabled&&(d.onMouseDown(p),r.preventDefaultDown&&p.target===s&&p.preventDefault())},this.onMouseDownWindow=function(p){!p.defaultPrevented&&r.enabled&&d&&d.enabled&&p.target!==s&&d.onMouseDown(p)},this.onMouseUp=function(p){!p.defaultPrevented&&r.enabled&&d&&d.enabled&&(d.onMouseUp(p),r.preventDefaultUp&&p.target===s&&p.preventDefault())},this.onMouseUpWindow=function(p){!p.defaultPrevented&&r.enabled&&d&&d.enabled&&p.target!==s&&d.onMouseUp(p)},this.onMouseOver=function(p){!p.defaultPrevented&&r.enabled&&d&&d.enabled&&d.setCanvasOver(p)},this.onMouseOut=function(p){!p.defaultPrevented&&r.enabled&&d&&d.enabled&&d.setCanvasOut(p)},this.onMouseWheel=function(p){!p.defaultPrevented&&r.enabled&&d&&d.enabled&&d.onMouseWheel(p),r.preventDefaultWheel&&p.target===s&&p.preventDefault()};var c={passive:!0};if(n.addEventListener("mousemove",this.onMouseMove),n.addEventListener("mousedown",this.onMouseDown),n.addEventListener("mouseup",this.onMouseUp),n.addEventListener("mouseover",this.onMouseOver,c),n.addEventListener("mouseout",this.onMouseOut,c),this.preventDefaultWheel?n.addEventListener("wheel",this.onMouseWheel,{passive:!1}):n.addEventListener("wheel",this.onMouseWheel,c),window&&d.game.config.inputWindowEvents)try{window.top.addEventListener("mousedown",this.onMouseDownWindow,c),window.top.addEventListener("mouseup",this.onMouseUpWindow,c)}catch{window.addEventListener("mousedown",this.onMouseDownWindow,c),window.addEventListener("mouseup",this.onMouseUpWindow,c),this.isTop=!1}g.pointerLock&&(this.pointerLockChange=function(p){var m=r.target;r.locked=document.pointerLockElement===m||document.mozPointerLockElement===m||document.webkitPointerLockElement===m,d.onPointerLockChange(p)},document.addEventListener("pointerlockchange",this.pointerLockChange,!0),document.addEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.addEventListener("webkitpointerlockchange",this.pointerLockChange,!0)),this.enabled=!0}},stopListeners:function(){var n=this.target;n.removeEventListener("mousemove",this.onMouseMove),n.removeEventListener("mousedown",this.onMouseDown),n.removeEventListener("mouseup",this.onMouseUp),n.removeEventListener("mouseover",this.onMouseOver),n.removeEventListener("mouseout",this.onMouseOut),window&&(n=this.isTop?window.top:window,n.removeEventListener("mousedown",this.onMouseDownWindow),n.removeEventListener("mouseup",this.onMouseUpWindow)),g.pointerLock&&(document.removeEventListener("pointerlockchange",this.pointerLockChange,!0),document.removeEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.removeEventListener("webkitpointerlockchange",this.pointerLockChange,!0))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});f.exports=a},11343:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={MouseManager:t(7905)}},37579:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(33963),u=t(72283),o=new l({initialize:function(n){this.manager=n,this.capture=!0,this.enabled=!1,this.target,this.onTouchStart=u,this.onTouchStartWindow=u,this.onTouchMove=u,this.onTouchEnd=u,this.onTouchEndWindow=u,this.onTouchCancel=u,this.onTouchCancelWindow=u,this.isTop=!0,n.events.once(g.MANAGER_BOOT,this.boot,this)},boot:function(){var a=this.manager.config;this.enabled=a.inputTouch,this.target=a.inputTouchEventTarget,this.capture=a.inputTouchCapture,this.target?typeof this.target=="string"&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,a.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return this.target.addEventListener("contextmenu",function(a){return a.preventDefault(),!1}),this},startListeners:function(){var a=this.target;if(a){var n=this,r=this.manager,d=r.canvas,s=window&&window.focus&&r.game.config.autoFocus;this.onTouchMove=function(m){!m.defaultPrevented&&n.enabled&&r&&r.enabled&&(r.onTouchMove(m),n.capture&&m.cancelable&&m.preventDefault())},this.onTouchStart=function(m){s&&window.focus(),!m.defaultPrevented&&n.enabled&&r&&r.enabled&&(r.onTouchStart(m),n.capture&&m.cancelable&&m.target===d&&m.preventDefault())},this.onTouchStartWindow=function(m){!m.defaultPrevented&&n.enabled&&r&&r.enabled&&m.target!==d&&r.onTouchStart(m)},this.onTouchEnd=function(m){!m.defaultPrevented&&n.enabled&&r&&r.enabled&&(r.onTouchEnd(m),n.capture&&m.cancelable&&m.target===d&&m.preventDefault())},this.onTouchEndWindow=function(m){!m.defaultPrevented&&n.enabled&&r&&r.enabled&&m.target!==d&&r.onTouchEnd(m)},this.onTouchCancel=function(m){!m.defaultPrevented&&n.enabled&&r&&r.enabled&&(r.onTouchCancel(m),n.capture&&m.preventDefault())},this.onTouchCancelWindow=function(m){!m.defaultPrevented&&n.enabled&&r&&r.enabled&&r.onTouchCancel(m)};var h=this.capture,c={passive:!0},p={passive:!1};if(a.addEventListener("touchstart",this.onTouchStart,h?p:c),a.addEventListener("touchmove",this.onTouchMove,h?p:c),a.addEventListener("touchend",this.onTouchEnd,h?p:c),a.addEventListener("touchcancel",this.onTouchCancel,h?p:c),window&&r.game.config.inputWindowEvents)try{window.top.addEventListener("touchstart",this.onTouchStartWindow,p),window.top.addEventListener("touchend",this.onTouchEndWindow,p),window.top.addEventListener("touchcancel",this.onTouchCancelWindow,p)}catch{window.addEventListener("touchstart",this.onTouchStartWindow,p),window.addEventListener("touchend",this.onTouchEndWindow,p),window.addEventListener("touchcancel",this.onTouchCancelWindow,p),this.isTop=!1}this.enabled=!0}},stopListeners:function(){var a=this.target;a.removeEventListener("touchstart",this.onTouchStart),a.removeEventListener("touchmove",this.onTouchMove),a.removeEventListener("touchend",this.onTouchEnd),a.removeEventListener("touchcancel",this.onTouchCancel),window&&(a=this.isTop?window.top:window,a.removeEventListener("touchstart",this.onTouchStartWindow),a.removeEventListener("touchend",this.onTouchEndWindow),a.removeEventListener("touchcancel",this.onTouchCancelWindow))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});f.exports=o},77423:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={TouchManager:t(37579)}},98035:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(12117),u=t(683),o=t(72632),a=t(30750),n=t(43531),r=t(88490),d=t(33868),s=new l({initialize:function(c,p){if(this.loader=c,this.cache=o(p,"cache",!1),this.type=o(p,"type",!1),!this.type)throw new Error("Invalid File type: "+this.type);this.key=o(p,"key",!1);var m=this.key;if(c.prefix&&c.prefix!==""&&(this.key=c.prefix+m),!this.key)throw new Error("Invalid File key: "+this.key);var x=o(p,"url");x===void 0?x=c.path+m+"."+o(p,"extension",""):typeof x=="string"&&!x.match(/^(?:blob:|data:|capacitor:\/\/|http:\/\/|https:\/\/|\/\/)/)&&(x=c.path+x),this.url=x,this.src="",this.xhrSettings=d(o(p,"responseType",void 0)),o(p,"xhrSettings",!1)&&(this.xhrSettings=n(this.xhrSettings,o(p,"xhrSettings",{}))),this.xhrLoader=null,this.state=typeof this.url=="function"?g.FILE_POPULATED:g.FILE_PENDING,this.bytesTotal=0,this.bytesLoaded=-1,this.percentComplete=-1,this.crossOrigin=void 0,this.data=void 0,this.config=o(p,"config",{}),this.multiFile,this.linkFile},setLink:function(h){this.linkFile=h,h.linkFile=this},resetXHR:function(){this.xhrLoader&&(this.xhrLoader.onload=void 0,this.xhrLoader.onerror=void 0,this.xhrLoader.onprogress=void 0)},load:function(){this.state===g.FILE_POPULATED?this.loader.nextFile(this,!0):(this.state=g.FILE_LOADING,this.src=a(this,this.loader.baseURL),this.src.indexOf("data:")===0?console.warn("Local data URIs are not supported: "+this.key):this.xhrLoader=r(this,this.loader.xhr))},onLoad:function(h,c){var p=h.responseURL&&this.loader.localSchemes.some(function(S){return h.responseURL.indexOf(S)===0}),m=p&&c.target.status===0,x=!(c.target&&c.target.status!==200)||m;h.readyState===4&&h.status>=400&&h.status<=599&&(x=!1),this.state=g.FILE_LOADED,this.resetXHR(),this.loader.nextFile(this,x)},onError:function(){this.resetXHR(),this.loader.nextFile(this,!1)},onProgress:function(h){h.lengthComputable&&(this.bytesLoaded=h.loaded,this.bytesTotal=h.total,this.percentComplete=Math.min(this.bytesLoaded/this.bytesTotal,1),this.loader.emit(u.FILE_PROGRESS,this,this.percentComplete))},onProcess:function(){this.state=g.FILE_PROCESSING,this.onProcessComplete()},onProcessComplete:function(){this.state=g.FILE_COMPLETE,this.multiFile&&this.multiFile.onFileComplete(this),this.loader.fileProcessComplete(this)},onProcessError:function(){console.error('Failed to process file: %s "%s"',this.type,this.key),this.state=g.FILE_ERRORED,this.multiFile&&this.multiFile.onFileFailed(this),this.loader.fileProcessComplete(this)},hasCacheConflict:function(){return this.cache&&this.cache.exists(this.key)},addToCache:function(){this.cache&&this.data&&this.cache.add(this.key,this.data)},pendingDestroy:function(h){if(this.state!==g.FILE_PENDING_DESTROY){h===void 0&&(h=this.data);var c=this.key,p=this.type;this.loader.emit(u.FILE_COMPLETE,c,p,h),this.loader.emit(u.FILE_KEY_COMPLETE+p+"-"+c,c,p,h),this.loader.flagForRemoval(this),this.state=g.FILE_PENDING_DESTROY}},destroy:function(){this.loader=null,this.cache=null,this.xhrSettings=null,this.multiFile=null,this.linkFile=null,this.data=null}});s.createObjectURL=function(h,c,p){if(typeof URL=="function")h.src=URL.createObjectURL(c);else{var m=new FileReader;m.onload=function(){h.removeAttribute("crossOrigin"),h.src="data:"+(c.type||p)+";base64,"+m.result.split(",")[1]},m.onerror=h.onerror,m.readAsDataURL(c)}},s.revokeObjectURL=function(h){typeof URL=="function"&&URL.revokeObjectURL(h.src)},f.exports=s},76846:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={},t={install:function(l){for(var g in T)l[g]=T[g]},register:function(l,g){T[l]=g},destroy:function(){T={}}};f.exports=t},30750:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return t.url?t.url.match(/^(?:blob:|data:|capacitor:\/\/|http:\/\/|https:\/\/|\/\/)/)?t.url:l+t.url:!1};f.exports=T},67285:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(12117),u=t(58403),o=t(6659),a=t(683),n=t(76846),r=t(72632),d=t(10850),s=t(91963),h=t(7599),c=t(33868),p=new l({Extends:o,initialize:function(x){o.call(this);var S=x.sys.game.config,P=x.sys.settings.loader;this.scene=x,this.systems=x.sys,this.cacheManager=x.sys.cache,this.textureManager=x.sys.textures,this.sceneManager=x.sys.game.scene,n.install(this),this.prefix="",this.path="",this.baseURL="",this.setBaseURL(r(P,"baseURL",S.loaderBaseURL)),this.setPath(r(P,"path",S.loaderPath)),this.setPrefix(r(P,"prefix",S.loaderPrefix)),this.maxParallelDownloads=r(P,"maxParallelDownloads",S.loaderMaxParallelDownloads),this.xhr=c(r(P,"responseType",S.loaderResponseType),r(P,"async",S.loaderAsync),r(P,"user",S.loaderUser),r(P,"password",S.loaderPassword),r(P,"timeout",S.loaderTimeout),r(P,"withCredentials",S.loaderWithCredentials)),this.crossOrigin=r(P,"crossOrigin",S.loaderCrossOrigin),this.imageLoadType=r(P,"imageLoadType",S.loaderImageLoadType),this.localSchemes=r(P,"localScheme",S.loaderLocalScheme),this.totalToLoad=0,this.progress=0,this.list=new u,this.inflight=new u,this.queue=new u,this._deleteQueue=new u,this.totalFailed=0,this.totalComplete=0,this.state=g.LOADER_IDLE,this.multiKeyIndex=0,x.sys.events.once(h.BOOT,this.boot,this),x.sys.events.on(h.START,this.pluginStart,this)},boot:function(){this.systems.events.once(h.DESTROY,this.destroy,this)},pluginStart:function(){this.systems.events.once(h.SHUTDOWN,this.shutdown,this)},setBaseURL:function(m){return m===void 0&&(m=""),m!==""&&m.substr(-1)!=="/"&&(m=m.concat("/")),this.baseURL=m,this},setPath:function(m){return m===void 0&&(m=""),m!==""&&m.substr(-1)!=="/"&&(m=m.concat("/")),this.path=m,this},setPrefix:function(m){return m===void 0&&(m=""),this.prefix=m,this},setCORS:function(m){return this.crossOrigin=m,this},addFile:function(m){Array.isArray(m)||(m=[m]);for(var x=0;x0},isLoading:function(){return this.state===g.LOADER_LOADING||this.state===g.LOADER_PROCESSING},isReady:function(){return this.state===g.LOADER_IDLE||this.state===g.LOADER_COMPLETE},start:function(){this.isReady()&&(this.progress=0,this.totalFailed=0,this.totalComplete=0,this.totalToLoad=this.list.size,this.emit(a.START,this),this.list.size===0?this.loadComplete():(this.state=g.LOADER_LOADING,this.inflight.clear(),this.queue.clear(),this.updateProgress(),this.checkLoadQueue(),this.systems.events.on(h.UPDATE,this.update,this)))},updateProgress:function(){this.progress=1-(this.list.size+this.inflight.size)/this.totalToLoad,this.emit(a.PROGRESS,this.progress)},update:function(){this.state===g.LOADER_LOADING&&this.list.size>0&&this.inflight.size{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(98611),g=t(33868),u=function(o,a){var n=o===void 0?g():l({},o);if(a)for(var r in a)a[r]!==void 0&&(n[r]=a[r]);return n};f.exports=u},45176:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(12117),u=t(683),o=new l({initialize:function(n,r,d,s){var h=[];s.forEach(function(p){p&&h.push(p)}),this.loader=n,this.type=r,this.key=d,this.multiKeyIndex=n.multiKeyIndex++,this.files=h,this.state=g.FILE_PENDING,this.complete=!1,this.pending=h.length,this.failed=0,this.config={},this.baseURL=n.baseURL,this.path=n.path,this.prefix=n.prefix;for(var c=0;c{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(43531),g=function(u,o){var a=l(o,u.xhrSettings),n=new XMLHttpRequest;if(n.open("GET",u.src,a.async,a.user,a.password),n.responseType=u.xhrSettings.responseType,n.timeout=a.timeout,a.headers)for(var r in a.headers)n.setRequestHeader(r,a.headers[r]);return a.header&&a.headerValue&&n.setRequestHeader(a.header,a.headerValue),a.requestedWith&&n.setRequestHeader("X-Requested-With",a.requestedWith),a.overrideMimeType&&n.overrideMimeType(a.overrideMimeType),a.withCredentials&&(n.withCredentials=!0),n.onload=u.onLoad.bind(u,n),n.onerror=u.onError.bind(u,n),n.onprogress=u.onProgress.bind(u),n.send(),n};f.exports=g},33868:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u,o,a){return t===void 0&&(t=""),l===void 0&&(l=!0),g===void 0&&(g=""),u===void 0&&(u=""),o===void 0&&(o=0),a===void 0&&(a=!1),{responseType:t,async:l,user:g,password:u,timeout:o,headers:void 0,header:void 0,headerValue:void 0,requestedWith:!1,overrideMimeType:void 0,withCredentials:a}};f.exports=T},12117:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={LOADER_IDLE:0,LOADER_LOADING:1,LOADER_PROCESSING:2,LOADER_COMPLETE:3,LOADER_SHUTDOWN:4,LOADER_DESTROYED:5,FILE_PENDING:10,FILE_LOADING:11,FILE_LOADED:12,FILE_FAILED:13,FILE_PROCESSING:14,FILE_ERRORED:16,FILE_COMPLETE:17,FILE_DESTROYED:18,FILE_POPULATED:19,FILE_PENDING_DESTROY:20};f.exports=T},7398:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="addfile"},52187:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="complete"},36627:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="filecomplete"},81925:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="filecomplete-"},29774:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="loaderror"},20943:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="load"},74693:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="fileprogress"},71176:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="postprocess"},88984:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="progress"},72753:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="start"},683:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={ADD:t(7398),COMPLETE:t(52187),FILE_COMPLETE:t(36627),FILE_KEY_COMPLETE:t(81925),FILE_LOAD_ERROR:t(29774),FILE_LOAD:t(20943),FILE_PROGRESS:t(74693),POST_PROCESS:t(71176),PROGRESS:t(88984),START:t(72753)}},46468:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(76846),u=t(70806),o=t(683),a=new l({Extends:u,initialize:function(r,d,s,h,c){u.call(this,r,d,s,h,c),this.type="animationJSON"},onProcess:function(){this.loader.once(o.POST_PROCESS,this.onLoadComplete,this),u.prototype.onProcess.call(this)},onLoadComplete:function(){this.loader.systems.anims.fromJSON(this.data)}});g.register("animation",function(n,r,d,s){if(Array.isArray(n))for(var h=0;h{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(76846),u=t(72632),o=t(42927),a=t(42911),n=t(70806),r=t(45176),d=new l({Extends:r,initialize:function(h,c,p,m,x,S){var P,E;if(a(c)){var R=c;c=u(R,"key"),P=new o(h,{key:c,url:u(R,"textureURL"),extension:u(R,"textureExtension","png"),normalMap:u(R,"normalMap"),xhrSettings:u(R,"textureXhrSettings")}),E=new n(h,{key:c,url:u(R,"atlasURL"),extension:u(R,"atlasExtension","json"),xhrSettings:u(R,"atlasXhrSettings")})}else P=new o(h,c,p,x),E=new n(h,c,m,S);P.linkFile?r.call(this,h,"atlasjson",c,[P,E,P.linkFile]):r.call(this,h,"atlasjson",c,[P,E])},addToCache:function(){if(this.isReadyToProcess()){var s=this.files[0],h=this.files[1],c=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlas(s.key,s.data,h.data,c),h.addToCache(),this.complete=!0}}});g.register("aseprite",function(s,h,c,p,m){var x;if(Array.isArray(s))for(var S=0;S{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(76846),u=t(72632),o=t(42927),a=t(42911),n=t(70806),r=t(45176),d=new l({Extends:r,initialize:function(h,c,p,m,x,S){var P,E;if(a(c)){var R=c;c=u(R,"key"),P=new o(h,{key:c,url:u(R,"textureURL"),extension:u(R,"textureExtension","png"),normalMap:u(R,"normalMap"),xhrSettings:u(R,"textureXhrSettings")}),E=new n(h,{key:c,url:u(R,"atlasURL"),extension:u(R,"atlasExtension","json"),xhrSettings:u(R,"atlasXhrSettings")})}else P=new o(h,c,p,x),E=new n(h,c,m,S);P.linkFile?r.call(this,h,"atlasjson",c,[P,E,P.linkFile]):r.call(this,h,"atlasjson",c,[P,E])},addToCache:function(){if(this.isReadyToProcess()){var s=this.files[0],h=this.files[1],c=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlas(s.key,s.data,h.data,c),this.complete=!0}}});g.register("atlas",function(s,h,c,p,m){var x;if(Array.isArray(s))for(var S=0;S{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(76846),u=t(72632),o=t(42927),a=t(42911),n=t(45176),r=t(15297),d=new l({Extends:n,initialize:function(h,c,p,m,x,S){var P,E;if(a(c)){var R=c;c=u(R,"key"),P=new o(h,{key:c,url:u(R,"textureURL"),extension:u(R,"textureExtension","png"),normalMap:u(R,"normalMap"),xhrSettings:u(R,"textureXhrSettings")}),E=new r(h,{key:c,url:u(R,"atlasURL"),extension:u(R,"atlasExtension","xml"),xhrSettings:u(R,"atlasXhrSettings")})}else P=new o(h,c,p,x),E=new r(h,c,m,S);P.linkFile?n.call(this,h,"atlasxml",c,[P,E,P.linkFile]):n.call(this,h,"atlasxml",c,[P,E])},addToCache:function(){if(this.isReadyToProcess()){var s=this.files[0],h=this.files[1],c=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlasXML(s.key,s.data,h.data,c),this.complete=!0}}});g.register("atlasXML",function(s,h,c,p,m){var x;if(Array.isArray(s))for(var S=0;S{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(12117),u=t(98035),o=t(76846),a=t(72632),n=t(30929),r=t(42911),d=new l({Extends:u,initialize:function(h,c,p,m,x){if(r(c)){var S=c;c=a(S,"key"),m=a(S,"xhrSettings"),x=a(S,"context",x)}var P={type:"audio",cache:h.cacheManager.audio,extension:p.type,responseType:"arraybuffer",key:c,url:p.url,xhrSettings:m,config:{context:x}};u.call(this,h,P)},onProcess:function(){this.state=g.FILE_PROCESSING;var s=this;this.config.context.decodeAudioData(this.xhrLoader.response,function(h){s.data=h,s.onProcessComplete()},function(h){console.error("Error decoding audio: "+s.key+" - ",h?h.message:null),s.onProcessError()}),this.config.context=null}});d.create=function(s,h,c,p,m){var x=s.systems.game,S=x.config.audio,P=x.device.audio;r(h)&&(c=a(h,"url",[]),p=a(h,"config",{}));var E=d.getAudioURL(x,c);return E?P.webAudio&&!S.disableWebAudio?new d(s,h,E,m,x.sound.context):new n(s,h,E,p):(console.warn('No audio URLs for "%s" matched this device',h),null)},d.getAudioURL=function(s,h){Array.isArray(h)||(h=[h]);for(var c=0;c{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(67448),g=t(56694),u=t(76846),o=t(72632),a=t(42911),n=t(70806),r=t(45176),d=new g({Extends:r,initialize:function(h,c,p,m,x,S,P){if(a(c)){var E=c;c=o(E,"key"),p=o(E,"jsonURL"),m=o(E,"audioURL"),x=o(E,"audioConfig"),S=o(E,"audioXhrSettings"),P=o(E,"jsonXhrSettings")}var R;if(!m)R=new n(h,c,p,P),r.call(this,h,"audiosprite",c,[R]),this.config.resourceLoad=!0,this.config.audioConfig=x,this.config.audioXhrSettings=S;else{var M=l.create(h,c,m,x,S);M&&(R=new n(h,c,p,P),r.call(this,h,"audiosprite",c,[M,R]),this.config.resourceLoad=!1)}},onFileComplete:function(s){var h=this.files.indexOf(s);if(h!==-1&&(this.pending--,this.config.resourceLoad&&s.type==="json"&&s.data.hasOwnProperty("resources"))){var c=s.data.resources,p=o(this.config,"audioConfig"),m=o(this.config,"audioXhrSettings"),x=l.create(this.loader,s.key,c,p,m);x&&(this.addToMultiFile(x),this.loader.addFile(x))}},addToCache:function(){if(this.isReadyToProcess()){var s=this.files[0],h=this.files[1];s.addToCache(),h.addToCache(),this.complete=!0}}});u.register("audioSprite",function(s,h,c,p,m,x){var S=this.systems.game,P=S.config.audio,E=S.device.audio;if(P&&P.noAudio||!E.webAudio&&!E.audioData)return this;var R;if(Array.isArray(s))for(var M=0;M{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(12117),u=t(98035),o=t(76846),a=t(72632),n=t(42911),r=new l({Extends:u,initialize:function(s,h,c,p,m){var x="bin";if(n(h)){var S=h;h=a(S,"key"),c=a(S,"url"),p=a(S,"xhrSettings"),x=a(S,"extension",x),m=a(S,"dataType",m)}var P={type:"binary",cache:s.cacheManager.binary,extension:x,responseType:"arraybuffer",key:h,url:c,xhrSettings:p,config:{dataType:m}};u.call(this,s,P)},onProcess:function(){this.state=g.FILE_PROCESSING;var d=this.config.dataType;this.data=d?new d(this.xhrLoader.response):this.xhrLoader.response,this.onProcessComplete()}});o.register("binary",function(d,s,h,c){if(Array.isArray(d))for(var p=0;p{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(76846),u=t(72632),o=t(42927),a=t(42911),n=t(45176),r=t(31476),d=t(15297),s=new l({Extends:n,initialize:function(c,p,m,x,S,P){var E,R;if(a(p)){var M=p;p=u(M,"key"),E=new o(c,{key:p,url:u(M,"textureURL"),extension:u(M,"textureExtension","png"),normalMap:u(M,"normalMap"),xhrSettings:u(M,"textureXhrSettings")}),R=new d(c,{key:p,url:u(M,"fontDataURL"),extension:u(M,"fontDataExtension","xml"),xhrSettings:u(M,"fontDataXhrSettings")})}else E=new o(c,p,m,S),R=new d(c,p,x,P);E.linkFile?n.call(this,c,"bitmapfont",p,[E,R,E.linkFile]):n.call(this,c,"bitmapfont",p,[E,R])},addToCache:function(){if(this.isReadyToProcess()){var h=this.files[0],c=this.files[1];h.addToCache();var p=h.cache.get(h.key),m=r(c.data,h.cache.getFrame(h.key),0,0,p);this.loader.cacheManager.bitmapFont.add(h.key,{data:m,texture:h.key,frame:null}),this.complete=!0}}});g.register("bitmapFont",function(h,c,p,m,x){var S;if(Array.isArray(h))for(var P=0;P{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(12117),u=t(98035),o=t(76846),a=t(72632),n=t(42911),r=new l({Extends:u,initialize:function(s,h,c,p){var m="css";if(n(h)){var x=h;h=a(x,"key"),c=a(x,"url"),p=a(x,"xhrSettings"),m=a(x,"extension",m)}var S={type:"script",cache:!1,extension:m,responseType:"text",key:h,url:c,xhrSettings:p};u.call(this,s,S)},onProcess:function(){this.state=g.FILE_PROCESSING,this.data=document.createElement("style"),this.data.defer=!1,this.data.innerHTML=this.xhrLoader.responseText,document.head.appendChild(this.data),this.onProcessComplete()}});o.register("css",function(d,s,h){if(Array.isArray(d))for(var c=0;c{/** + * @author Richard Davey + * @copyright 2021 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(73152),g=t(40612),u=t(56694),o=t(76846),a=t(72632),n=t(42927),r=t(42911),d=t(70806),s=t(67409),h=t(30657),c=t(80802),p=t(45176),m=t(24904),x=new u({Extends:p,initialize:function(P,E,R,M){if(R.multiAtlasURL){var O=new d(P,{key:E,url:R.multiAtlasURL,xhrSettings:M,config:R});p.call(this,P,"texture",E,[O])}else{var w=R.textureURL.substr(R.textureURL.length-3);R.type||(R.type=w.toLowerCase()==="ktx"?"KTX":"PVR");var L=new g(P,{key:E,url:R.textureURL,extension:w,xhrSettings:M,config:R});if(R.atlasURL){var F=new d(P,{key:E,url:R.atlasURL,xhrSettings:M,config:R});p.call(this,P,"texture",E,[L,F])}else p.call(this,P,"texture",E,[L])}this.config=R},onFileComplete:function(S){var P=this.files.indexOf(S);if(P!==-1){if(this.pending--,!this.config.multiAtlasURL)return;if(S.type==="json"&&S.data.hasOwnProperty("textures")){var E=S.data.textures,R=this.config,M=this.loader,O=M.baseURL,w=M.path,L=M.prefix,F=a(R,"multiBaseURL",this.baseURL),b=a(R,"multiPath",this.path),D=a(R,"prefix",this.prefix),N=a(R,"textureXhrSettings");F&&M.setBaseURL(F),b&&M.setPath(b),D&&M.setPrefix(D);for(var z=0;z{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(12117),u=t(98035),o=t(76846),a=t(72632),n=t(42911),r=t(31053),d=new l({Extends:u,initialize:function(h,c,p,m,x){var S="glsl";if(n(c)){var P=c;c=a(P,"key"),p=a(P,"url"),m=a(P,"shaderType","fragment"),x=a(P,"xhrSettings"),S=a(P,"extension",S)}else m===void 0&&(m="fragment");var E={type:"glsl",cache:h.cacheManager.shader,extension:S,responseType:"text",key:c,url:p,config:{shaderType:m},xhrSettings:x};u.call(this,h,E)},onProcess:function(){this.state=g.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var s=this.data.split(` +`),h=this.extractBlock(s,0);if(h)for(;h;){var c=this.getShaderName(h.header),p=this.getShaderType(h.header),m=this.getShaderUniforms(h.header),x=h.shader;if(this.cache.has(c)){var S=this.cache.get(c);p==="fragment"?S.fragmentSrc=x:S.vertexSrc=x,S.uniforms||(S.uniforms=m)}else p==="fragment"?this.cache.add(c,new r(c,x,"",m)):this.cache.add(c,new r(c,"",x,m));h=this.extractBlock(s,h.offset)}else this.config.shaderType==="fragment"?this.cache.add(this.key,new r(this.key,this.data)):this.cache.add(this.key,new r(this.key,"",this.data))},getShaderName:function(s){for(var h=0;h{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(683),u=t(98035),o=t(72632),a=t(30750),n=t(42911),r=new l({Extends:u,initialize:function(s,h,c,p){if(n(h)){var m=h;h=o(m,"key"),p=o(m,"config",p)}var x={type:"audio",cache:s.cacheManager.audio,extension:c.type,key:h,url:c.url,config:p};u.call(this,s,x),this.locked="ontouchstart"in window,this.loaded=!1,this.filesLoaded=0,this.filesTotal=0},onLoad:function(){this.loaded||(this.loaded=!0,this.loader.nextFile(this,!0))},onError:function(){for(var d=0;d{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(12117),u=t(98035),o=t(76846),a=t(72632),n=t(42911),r=new l({Extends:u,initialize:function(s,h,c,p){var m="html";if(n(h)){var x=h;h=a(x,"key"),c=a(x,"url"),p=a(x,"xhrSettings"),m=a(x,"extension",m)}var S={type:"text",cache:s.cacheManager.html,extension:m,responseType:"text",key:h,url:c,xhrSettings:p};u.call(this,s,S)},onProcess:function(){this.state=g.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()}});o.register("html",function(d,s,h){if(Array.isArray(d))for(var c=0;c{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(12117),u=t(98035),o=t(76846),a=t(72632),n=t(42911),r=new l({Extends:u,initialize:function(s,h,c,p,m,x){p===void 0&&(p=512),m===void 0&&(m=512);var S="html";if(n(h)){var P=h;h=a(P,"key"),c=a(P,"url"),x=a(P,"xhrSettings"),S=a(P,"extension",S),p=a(P,"width",p),m=a(P,"height",m)}var E={type:"html",cache:s.textureManager,extension:S,responseType:"text",key:h,url:c,xhrSettings:x,config:{width:p,height:m}};u.call(this,s,E)},onProcess:function(){this.state=g.FILE_PROCESSING;var d=this.config.width,s=this.config.height,h=[];h.push(''),h.push(''),h.push(''),h.push(this.xhrLoader.responseText),h.push(""),h.push(""),h.push("");var c=[h.join(` +`)],p=this;try{var m=new window.Blob(c,{type:"image/svg+xml;charset=utf-8"})}catch{p.state=g.FILE_ERRORED,p.onProcessComplete();return}this.data=new Image,this.data.crossOrigin=this.crossOrigin,this.data.onload=function(){u.revokeObjectURL(p.data),p.onProcessComplete()},this.data.onerror=function(){u.revokeObjectURL(p.data),p.onProcessError()},u.createObjectURL(this.data,m,"image/svg+xml")},addToCache:function(){this.cache.addImage(this.key,this.data)}});o.register("htmlTexture",function(d,s,h,c,p){if(Array.isArray(d))for(var m=0;m{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(12117),u=t(98035),o=t(76846),a=t(72632),n=t(42911),r=t(30750),d=new l({Extends:u,initialize:function s(h,c,p,m,x){var S="png",P;if(n(c)){var E=c;c=a(E,"key"),p=a(E,"url"),P=a(E,"normalMap"),m=a(E,"xhrSettings"),S=a(E,"extension",S),x=a(E,"frameConfig")}Array.isArray(p)&&(P=p[1],p=p[0]);var R={type:"image",cache:h.textureManager,extension:S,responseType:"blob",key:c,url:p,xhrSettings:m,config:x};if(u.call(this,h,R),P){var M=new s(h,this.key,P,m,x);M.type="normalMap",this.setLink(M),h.addFile(M)}this.useImageElementLoad=h.imageLoadType==="HTMLImageElement",this.useImageElementLoad&&(this.load=this.loadImage,this.onProcess=this.onProcessImage)},onProcess:function(){this.state=g.FILE_PROCESSING,this.data=new Image,this.data.crossOrigin=this.crossOrigin;var s=this;this.data.onload=function(){u.revokeObjectURL(s.data),s.onProcessComplete()},this.data.onerror=function(){u.revokeObjectURL(s.data),s.onProcessError()},u.createObjectURL(this.data,this.xhrLoader.response,"image/png")},onProcessImage:function(){var s=this.state;this.state=g.FILE_PROCESSING,s===g.FILE_LOADED?this.onProcessComplete():this.onProcessError()},loadImage:function(){if(this.state=g.FILE_LOADING,this.src=r(this,this.loader.baseURL),this.src.indexOf("data:")===0)console.warn("Local data URIs are not supported: "+this.key);else{this.data=new Image,this.data.crossOrigin=this.crossOrigin;var s=this;this.data.onload=function(){s.state=g.FILE_LOADED,s.loader.nextFile(s,!0)},this.data.onerror=function(){s.loader.nextFile(s,!1)},this.data.src=this.src}},addToCache:function(){var s=this.linkFile;s?s.state>=g.FILE_COMPLETE&&(this.type==="normalMap"?this.cache.addImage(this.key,s.data,this.data):this.cache.addImage(this.key,this.data,s.data)):this.cache.addImage(this.key,this.data)}});o.register("image",function(s,h,c){if(Array.isArray(s))for(var p=0;p{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(12117),u=t(98035),o=t(76846),a=t(72632),n=t(10850),r=t(42911),d=new l({Extends:u,initialize:function(h,c,p,m,x){var S="json";if(r(c)){var P=c;c=a(P,"key"),p=a(P,"url"),m=a(P,"xhrSettings"),S=a(P,"extension",S),x=a(P,"dataKey",x)}var E={type:"json",cache:h.cacheManager.json,extension:S,responseType:"text",key:c,url:p,xhrSettings:m,config:x};u.call(this,h,E),r(p)&&(x?this.data=n(p,x):this.data=p,this.state=g.FILE_POPULATED)},onProcess:function(){if(this.state!==g.FILE_POPULATED){this.state=g.FILE_PROCESSING;try{var s=JSON.parse(this.xhrLoader.responseText)}catch(c){throw this.onProcessError(),c}var h=this.config;typeof h=="string"?this.data=n(s,h,s):this.data=s}this.onProcessComplete()}});o.register("json",function(s,h,c,p){if(Array.isArray(s))for(var m=0;m{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(76846),u=t(72632),o=t(42927),a=t(42911),n=t(70806),r=t(45176),d=new l({Extends:r,initialize:function(h,c,p,m,x,S,P){if(a(c)){var E=c;c=u(E,"key"),u(E,"url",!1)?p=u(E,"url"):p=u(E,"atlasURL"),S=u(E,"xhrSettings"),m=u(E,"path"),x=u(E,"baseURL"),P=u(E,"textureXhrSettings")}var R=new n(h,c,p,S);r.call(this,h,"multiatlas",c,[R]),this.config.path=m,this.config.baseURL=x,this.config.textureXhrSettings=P},onFileComplete:function(s){var h=this.files.indexOf(s);if(h!==-1&&(this.pending--,s.type==="json"&&s.data.hasOwnProperty("textures"))){var c=s.data.textures,p=this.config,m=this.loader,x=m.baseURL,S=m.path,P=m.prefix,E=u(p,"baseURL",this.baseURL),R=u(p,"path",this.path),M=u(p,"prefix",this.prefix),O=u(p,"textureXhrSettings");m.setBaseURL(E),m.setPath(R),m.setPrefix(M);for(var w=0;w{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(76846),u=t(72632),o=t(42911),a=t(45176),n=t(55188),r=new l({Extends:a,initialize:function(s,h,c,p){var m="js",x=[];if(o(h)){var S=h;h=u(S,"key"),c=u(S,"url"),p=u(S,"xhrSettings"),m=u(S,"extension",m)}Array.isArray(c)||(c=[c]);for(var P=0;P{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(76846),u=t(72632),o=t(42911),a=t(45176),n=t(27291),r=t(76799),d=t(86897),s=new l({Extends:a,initialize:function(c,p,m,x,S,P){var E,R,M=c.cacheManager.obj;if(o(p)){var O=p;p=u(O,"key"),E=new d(c,{key:p,type:"obj",cache:M,url:u(O,"url"),extension:u(O,"extension","obj"),xhrSettings:u(O,"xhrSettings"),config:{flipUV:u(O,"flipUV",S)}}),x=u(O,"matURL"),x&&(R=new d(c,{key:p,type:"mat",cache:M,url:x,extension:u(O,"matExtension","mat"),xhrSettings:u(O,"xhrSettings")}))}else E=new d(c,{key:p,url:m,type:"obj",cache:M,extension:"obj",xhrSettings:P,config:{flipUV:S}}),x&&(R=new d(c,{key:p,url:x,type:"mat",cache:M,extension:"mat",xhrSettings:P}));a.call(this,c,"obj",p,[E,R])},addToCache:function(){if(this.isReadyToProcess()){var h=this.files[0],c=this.files[1],p=n(h.data,h.config.flipUV);c&&(p.materials=r(c.data)),h.cache.add(h.key,p),this.complete=!0}}});g.register("obj",function(h,c,p,m,x){var S;if(Array.isArray(h))for(var P=0;P{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(12117),u=t(76846),o=t(70806),a=new l({Extends:o,initialize:function(r,d,s,h,c){o.call(this,r,d,s,h,c),this.type="packfile"},onProcess:function(){if(this.state!==g.FILE_POPULATED&&(this.state=g.FILE_PROCESSING,this.data=JSON.parse(this.xhrLoader.responseText)),this.data.hasOwnProperty("files")&&this.config){var n={};n[this.config]=this.data,this.data=n}this.loader.addPack(this.data,this.config),this.onProcessComplete()}});u.register("pack",function(n,r,d,s){if(Array.isArray(n))for(var h=0;h{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(12117),u=t(98035),o=t(76846),a=t(72632),n=t(42911),r=new l({Extends:u,initialize:function(s,h,c,p,m,x){var S="js";if(n(h)){var P=h;h=a(P,"key"),c=a(P,"url"),x=a(P,"xhrSettings"),S=a(P,"extension",S),p=a(P,"start"),m=a(P,"mapping")}var E={type:"plugin",cache:!1,extension:S,responseType:"text",key:h,url:c,xhrSettings:x,config:{start:p,mapping:m}};u.call(this,s,E),typeof c=="function"&&(this.data=c,this.state=g.FILE_POPULATED)},onProcess:function(){var d=this.loader.systems.plugins,s=this.config,h=a(s,"start",!1),c=a(s,"mapping",null);if(this.state===g.FILE_POPULATED)d.install(this.key,this.data,h,c);else{this.state=g.FILE_PROCESSING,this.data=document.createElement("script"),this.data.language="javascript",this.data.type="text/javascript",this.data.defer=!1,this.data.text=this.xhrLoader.responseText,document.head.appendChild(this.data);var p=d.install(this.key,window[this.key],h,c);(h||c)&&(this.loader.systems[c]=p,this.loader.scene[c]=p)}this.onProcessComplete()}});o.register("plugin",function(d,s,h,c,p){if(Array.isArray(d))for(var m=0;m{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(12117),u=t(98035),o=t(76846),a=t(72632),n=t(42911),r=new l({Extends:u,initialize:function(s,h,c,p,m){var x="svg";if(n(h)){var S=h;h=a(S,"key"),c=a(S,"url"),p=a(S,"svgConfig",{}),m=a(S,"xhrSettings"),x=a(S,"extension",x)}var P={type:"svg",cache:s.textureManager,extension:x,responseType:"text",key:h,url:c,xhrSettings:m,config:{width:a(p,"width"),height:a(p,"height"),scale:a(p,"scale")}};u.call(this,s,P)},onProcess:function(){this.state=g.FILE_PROCESSING;var d=this.xhrLoader.responseText,s=[d],h=this.config.width,c=this.config.height,p=this.config.scale;t:if(h&&c||p){var m=null,x=new DOMParser;m=x.parseFromString(d,"text/xml");var S=m.getElementsByTagName("svg")[0],P=S.hasAttribute("viewBox"),E=parseFloat(S.getAttribute("width")),R=parseFloat(S.getAttribute("height"));if(!P&&E&&R)S.setAttribute("viewBox","0 0 "+E+" "+R);else if(P&&!E&&!R){var M=S.getAttribute("viewBox").split(/\s+|,/);E=M[2],R=M[3]}if(p)if(E&&R)h=E*p,c=R*p;else break t;S.setAttribute("width",h.toString()+"px"),S.setAttribute("height",c.toString()+"px"),s=[new XMLSerializer().serializeToString(S)]}try{var O=new window.Blob(s,{type:"image/svg+xml;charset=utf-8"})}catch{this.onProcessError();return}this.data=new Image,this.data.crossOrigin=this.crossOrigin;var w=this,L=!1;this.data.onload=function(){L||u.revokeObjectURL(w.data),w.onProcessComplete()},this.data.onerror=function(){L?w.onProcessError():(L=!0,u.revokeObjectURL(w.data),w.data.src="data:image/svg+xml,"+encodeURIComponent(s.join("")))},u.createObjectURL(this.data,O,"image/svg+xml")},addToCache:function(){this.cache.addImage(this.key,this.data)}});o.register("svg",function(d,s,h,c){if(Array.isArray(d))for(var p=0;p{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(12117),u=t(98035),o=t(76846),a=t(72632),n=t(42911),r=new l({Extends:u,initialize:function(s,h,c,p){var m="js";if(n(h)){var x=h;h=a(x,"key"),c=a(x,"url"),p=a(x,"xhrSettings"),m=a(x,"extension",m)}var S={type:"text",extension:m,responseType:"text",key:h,url:c,xhrSettings:p};u.call(this,s,S)},onProcess:function(){this.state=g.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var d=this.data.concat(`(function(){ +return new `+this.key+`(); +}).call(this);`),s=eval;this.loader.sceneManager.add(this.key,s(d)),this.complete=!0}});o.register("sceneFile",function(d,s,h){if(Array.isArray(d))for(var c=0;c{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(12117),u=t(98035),o=t(76846),a=t(72632),n=t(42911),r=new l({Extends:u,initialize:function(s,h,c,p,m,x){var S="js";if(n(h)){var P=h;h=a(P,"key"),c=a(P,"url"),x=a(P,"xhrSettings"),S=a(P,"extension",S),p=a(P,"systemKey"),m=a(P,"sceneKey")}var E={type:"scenePlugin",cache:!1,extension:S,responseType:"text",key:h,url:c,xhrSettings:x,config:{systemKey:p,sceneKey:m}};u.call(this,s,E),typeof c=="function"&&(this.data=c,this.state=g.FILE_POPULATED)},onProcess:function(){var d=this.loader.systems.plugins,s=this.config,h=this.key,c=a(s,"systemKey",h),p=a(s,"sceneKey",h);this.state===g.FILE_POPULATED?d.installScenePlugin(c,this.data,p,this.loader.scene,!0):(this.state=g.FILE_PROCESSING,this.data=document.createElement("script"),this.data.language="javascript",this.data.type="text/javascript",this.data.defer=!1,this.data.text=this.xhrLoader.responseText,document.head.appendChild(this.data),d.installScenePlugin(c,window[this.key],p,this.loader.scene,!0)),this.onProcessComplete()}});o.register("scenePlugin",function(d,s,h,c,p){if(Array.isArray(d))for(var m=0;m{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(12117),u=t(98035),o=t(76846),a=t(72632),n=t(42911),r=new l({Extends:u,initialize:function(s,h,c,p,m){var x="js";if(n(h)){var S=h;h=a(S,"key"),c=a(S,"url"),p=a(S,"type","script"),m=a(S,"xhrSettings"),x=a(S,"extension",x)}else p===void 0&&(p="script");var P={type:p,cache:!1,extension:x,responseType:"text",key:h,url:c,xhrSettings:m};u.call(this,s,P)},onProcess:function(){this.state=g.FILE_PROCESSING,this.data=document.createElement("script"),this.data.language="javascript",this.data.type="text/javascript",this.data.defer=!1,this.data.text=this.xhrLoader.responseText,document.head.appendChild(this.data),this.onProcessComplete()}});o.register("script",function(d,s,h,c){if(Array.isArray(d))for(var p=0;p{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(12117),u=t(76846),o=t(42927),a=new l({Extends:o,initialize:function(r,d,s,h,c){o.call(this,r,d,s,c,h),this.type="spritesheet"},addToCache:function(){var n=this.linkFile;n?n.state>=g.FILE_COMPLETE&&(this.type==="normalMap"?this.cache.addSpriteSheet(this.key,n.data,this.config,this.data):this.cache.addSpriteSheet(this.key,this.data,this.config,n.data)):this.cache.addSpriteSheet(this.key,this.data,this.config)}});u.register("spritesheet",function(n,r,d,s){if(Array.isArray(n))for(var h=0;h{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(12117),u=t(98035),o=t(76846),a=t(72632),n=t(42911),r=new l({Extends:u,initialize:function(s,h,c,p){var m="text",x="txt",S=s.cacheManager.text;if(n(h)){var P=h;h=a(P,"key"),c=a(P,"url"),p=a(P,"xhrSettings"),x=a(P,"extension",x),m=a(P,"type",m),S=a(P,"cache",S)}var E={type:m,cache:S,extension:x,responseType:"text",key:h,url:c,xhrSettings:p};u.call(this,s,E)},onProcess:function(){this.state=g.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()}});o.register("text",function(d,s,h){if(Array.isArray(d))for(var c=0;c{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(12117),u=t(98035),o=t(76846),a=t(72632),n=t(42911),r=t(93560),d=new l({Extends:u,initialize:function(h,c,p,m){var x="csv";if(n(c)){var S=c;c=a(S,"key"),p=a(S,"url"),m=a(S,"xhrSettings"),x=a(S,"extension",x)}var P={type:"tilemapCSV",cache:h.cacheManager.tilemap,extension:x,responseType:"text",key:c,url:p,xhrSettings:m};u.call(this,h,P),this.tilemapFormat=r.CSV},onProcess:function(){this.state=g.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var s={format:this.tilemapFormat,data:this.data};this.cache.add(this.key,s)}});o.register("tilemapCSV",function(s,h,c){if(Array.isArray(s))for(var p=0;p{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(76846),u=t(70806),o=t(93560),a=new l({Extends:u,initialize:function(r,d,s,h){u.call(this,r,d,s,h),this.type="tilemapJSON",this.cache=r.cacheManager.tilemap},addToCache:function(){var n={format:o.WELTMEISTER,data:this.data};this.cache.add(this.key,n)}});g.register("tilemapImpact",function(n,r,d){if(Array.isArray(n))for(var s=0;s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(76846),u=t(70806),o=t(93560),a=new l({Extends:u,initialize:function(r,d,s,h){u.call(this,r,d,s,h),this.type="tilemapJSON",this.cache=r.cacheManager.tilemap},addToCache:function(){var n={format:o.TILED_JSON,data:this.data};this.cache.add(this.key,n)}});g.register("tilemapTiledJSON",function(n,r,d){if(Array.isArray(n))for(var s=0;s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(76846),u=t(72632),o=t(42927),a=t(42911),n=t(45176),r=t(86897),d=new l({Extends:n,initialize:function(h,c,p,m,x,S){var P,E;if(a(c)){var R=c;c=u(R,"key"),P=new o(h,{key:c,url:u(R,"textureURL"),extension:u(R,"textureExtension","png"),normalMap:u(R,"normalMap"),xhrSettings:u(R,"textureXhrSettings")}),E=new r(h,{key:c,url:u(R,"atlasURL"),extension:u(R,"atlasExtension","txt"),xhrSettings:u(R,"atlasXhrSettings")})}else P=new o(h,c,p,x),E=new r(h,c,m,S);P.linkFile?n.call(this,h,"unityatlas",c,[P,E,P.linkFile]):n.call(this,h,"unityatlas",c,[P,E])},addToCache:function(){if(this.isReadyToProcess()){var s=this.files[0],h=this.files[1],c=this.files[2]?this.files[2].data:null;this.loader.textureManager.addUnityAtlas(s.key,s.data,h.data,c),this.complete=!0}}});g.register("unityAtlas",function(s,h,c,p,m){var x;if(Array.isArray(s))for(var S=0;S{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(12117),u=t(98035),o=t(76846),a=t(30750),n=t(72632),r=t(42911),d=new l({Extends:u,initialize:function(h,c,p,m){if(m===void 0&&(m=!1),r(c)){var x=c;c=n(x,"key"),p=n(x,"url",[]),m=n(x,"noAudio",!1)}var S=h.systems.game.device.video.getVideoURL(p);S||console.warn("VideoFile: No supported format for "+c);var P={type:"video",cache:h.cacheManager.video,extension:S.type,key:c,url:S.url,config:{noAudio:m}};u.call(this,h,P)},onProcess:function(){this.data={url:this.src,noAudio:this.config.noAudio,crossOrigin:this.crossOrigin},this.onProcessComplete()},load:function(){this.src=a(this,this.loader.baseURL),this.state=g.FILE_LOADED,this.loader.nextFile(this,!0)}});o.register("video",function(s,h,c){if(Array.isArray(s))for(var p=0;p{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(12117),u=t(98035),o=t(76846),a=t(72632),n=t(42911),r=t(89200),d=new l({Extends:u,initialize:function(h,c,p,m){var x="xml";if(n(c)){var S=c;c=a(S,"key"),p=a(S,"url"),m=a(S,"xhrSettings"),x=a(S,"extension",x)}var P={type:"xml",cache:h.cacheManager.xml,extension:x,responseType:"text",key:c,url:p,xhrSettings:m};u.call(this,h,P)},onProcess:function(){this.state=g.FILE_PROCESSING,this.data=r(this.xhrLoader.responseText),this.data?this.onProcessComplete():this.onProcessError()}});o.register("xml",function(s,h,c){if(Array.isArray(s))for(var p=0;p{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={AnimationJSONFile:t(46468),AsepriteFile:t(31648),AtlasJSONFile:t(73152),AtlasXMLFile:t(24616),AudioFile:t(67448),AudioSpriteFile:t(66109),BinaryFile:t(40612),BitmapFontFile:t(54565),CompressedTextureFile:t(47375),CSSFile:t(99898),GLSLFile:t(46568),HTML5AudioFile:t(30929),HTMLFile:t(77459),HTMLTextureFile:t(9755),ImageFile:t(42927),JSONFile:t(70806),MultiAtlasFile:t(80802),MultiScriptFile:t(39034),OBJFile:t(85527),PackFile:t(3616),PluginFile:t(12217),SceneFile:t(95171),ScenePluginFile:t(82458),ScriptFile:t(55188),SpriteSheetFile:t(33536),SVGFile:t(4474),TextFile:t(86897),TilemapCSVFile:t(58673),TilemapImpactFile:t(98896),TilemapJSONFile:t(50563),UnityAtlasFile:t(82857),VideoFile:t(22833),XMLFile:t(15297)}},95695:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(12117),g=t(98611),u={Events:t(683),FileTypes:t(34034),File:t(98035),FileTypesManager:t(76846),GetURL:t(30750),LoaderPlugin:t(67285),MergeXHRSettings:t(43531),MultiFile:t(45176),XHRLoader:t(88490),XHRSettings:t(33868)};u=g(!1,u,l),f.exports=u},26042:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){for(var l=0,g=0;g{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(8034),g=function(u,o){return l(u)/l(o)/l(u-o)};f.exports=g},17489:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return Math.floor(Math.random()*(l-t+1)+t)};f.exports=T},14976:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u,o){var a=(u-l)*.5,n=(o-g)*.5,r=t*t,d=t*r;return(2*g-2*u+a+n)*d+(-3*g+3*u-2*a-n)*r+a*t+g};f.exports=T},89129:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){l===void 0&&(l=0),g===void 0&&(g=10);var u=Math.pow(g,-l);return Math.ceil(t*u)/u};f.exports=T},82897:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){return Math.max(l,Math.min(g,t))};f.exports=T},75606:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(83392),g=function(u){return u*l.DEG_TO_RAD};f.exports=g},767:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return Math.abs(t-l)};f.exports=T},9849:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(82897),g=t(56694),u=t(16650),o=t(72283),a=new u,n=new g({initialize:function r(d,s,h,c){d===void 0&&(d=0),s===void 0&&(s=0),h===void 0&&(h=0),c===void 0&&(c=r.DefaultOrder),this._x=d,this._y=s,this._z=h,this._order=c,this.onChangeCallback=o},x:{get:function(){return this._x},set:function(r){this._x=r,this.onChangeCallback(this)}},y:{get:function(){return this._y},set:function(r){this._y=r,this.onChangeCallback(this)}},z:{get:function(){return this._z},set:function(r){this._z=r,this.onChangeCallback(this)}},order:{get:function(){return this._order},set:function(r){this._order=r,this.onChangeCallback(this)}},set:function(r,d,s,h){return h===void 0&&(h=this._order),this._x=r,this._y=d,this._z=s,this._order=h,this.onChangeCallback(this),this},copy:function(r){return this.set(r.x,r.y,r.z,r.order)},setFromQuaternion:function(r,d,s){return d===void 0&&(d=this._order),s===void 0&&(s=!1),a.fromQuat(r),this.setFromRotationMatrix(a,d,s)},setFromRotationMatrix:function(r,d,s){d===void 0&&(d=this._order),s===void 0&&(s=!1);var h=r.val,c=h[0],p=h[4],m=h[8],x=h[1],S=h[5],P=h[9],E=h[2],R=h[6],M=h[10],O=0,w=0,L=0,F=.99999;switch(d){case"XYZ":{w=Math.asin(l(m,-1,1)),Math.abs(m){/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){if(t===0)return 1;for(var l=t;--t;)l*=t;return l};f.exports=T},61616:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return Math.random()*(l-t)+t};f.exports=T},60679:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){l===void 0&&(l=0),g===void 0&&(g=10);var u=Math.pow(g,-l);return Math.floor(t*u)/u};f.exports=T},91806:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(82897),g=function(u,o,a){return u=l(u,0,1),(a-o)*u+o};f.exports=g},79366:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return t/l/1e3};f.exports=T},43776:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t==parseFloat(t)?!(t%2):void 0};f.exports=T},58442:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t===parseFloat(t)?!(t%2):void 0};f.exports=T},42798:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){return(l-t)*g+t};f.exports=T},61072:f=>{/** + * @author Greg McLean + * @copyright 2021 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){return g===void 0&&(g=0),t.clone().lerp(l,g)};f.exports=T},5341:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=new l({initialize:function(o){this.val=new Float32Array(9),o?this.copy(o):this.identity()},clone:function(){return new g(this)},set:function(u){return this.copy(u)},copy:function(u){var o=this.val,a=u.val;return o[0]=a[0],o[1]=a[1],o[2]=a[2],o[3]=a[3],o[4]=a[4],o[5]=a[5],o[6]=a[6],o[7]=a[7],o[8]=a[8],this},fromMat4:function(u){var o=u.val,a=this.val;return a[0]=o[0],a[1]=o[1],a[2]=o[2],a[3]=o[4],a[4]=o[5],a[5]=o[6],a[6]=o[8],a[7]=o[9],a[8]=o[10],this},fromArray:function(u){var o=this.val;return o[0]=u[0],o[1]=u[1],o[2]=u[2],o[3]=u[3],o[4]=u[4],o[5]=u[5],o[6]=u[6],o[7]=u[7],o[8]=u[8],this},identity:function(){var u=this.val;return u[0]=1,u[1]=0,u[2]=0,u[3]=0,u[4]=1,u[5]=0,u[6]=0,u[7]=0,u[8]=1,this},transpose:function(){var u=this.val,o=u[1],a=u[2],n=u[5];return u[1]=u[3],u[2]=u[6],u[3]=o,u[5]=u[7],u[6]=a,u[7]=n,this},invert:function(){var u=this.val,o=u[0],a=u[1],n=u[2],r=u[3],d=u[4],s=u[5],h=u[6],c=u[7],p=u[8],m=p*d-s*c,x=-p*r+s*h,S=c*r-d*h,P=o*m+a*x+n*S;return P?(P=1/P,u[0]=m*P,u[1]=(-p*a+n*c)*P,u[2]=(s*a-n*d)*P,u[3]=x*P,u[4]=(p*o-n*h)*P,u[5]=(-s*o+n*r)*P,u[6]=S*P,u[7]=(-c*o+a*h)*P,u[8]=(d*o-a*r)*P,this):null},adjoint:function(){var u=this.val,o=u[0],a=u[1],n=u[2],r=u[3],d=u[4],s=u[5],h=u[6],c=u[7],p=u[8];return u[0]=d*p-s*c,u[1]=n*c-a*p,u[2]=a*s-n*d,u[3]=s*h-r*p,u[4]=o*p-n*h,u[5]=n*r-o*s,u[6]=r*c-d*h,u[7]=a*h-o*c,u[8]=o*d-a*r,this},determinant:function(){var u=this.val,o=u[0],a=u[1],n=u[2],r=u[3],d=u[4],s=u[5],h=u[6],c=u[7],p=u[8];return o*(p*d-s*c)+a*(-p*r+s*h)+n*(c*r-d*h)},multiply:function(u){var o=this.val,a=o[0],n=o[1],r=o[2],d=o[3],s=o[4],h=o[5],c=o[6],p=o[7],m=o[8],x=u.val,S=x[0],P=x[1],E=x[2],R=x[3],M=x[4],O=x[5],w=x[6],L=x[7],F=x[8];return o[0]=S*a+P*d+E*c,o[1]=S*n+P*s+E*p,o[2]=S*r+P*h+E*m,o[3]=R*a+M*d+O*c,o[4]=R*n+M*s+O*p,o[5]=R*r+M*h+O*m,o[6]=w*a+L*d+F*c,o[7]=w*n+L*s+F*p,o[8]=w*r+L*h+F*m,this},translate:function(u){var o=this.val,a=u.x,n=u.y;return o[6]=a*o[0]+n*o[3]+o[6],o[7]=a*o[1]+n*o[4]+o[7],o[8]=a*o[2]+n*o[5]+o[8],this},rotate:function(u){var o=this.val,a=o[0],n=o[1],r=o[2],d=o[3],s=o[4],h=o[5],c=Math.sin(u),p=Math.cos(u);return o[0]=p*a+c*d,o[1]=p*n+c*s,o[2]=p*r+c*h,o[3]=p*d-c*a,o[4]=p*s-c*n,o[5]=p*h-c*r,this},scale:function(u){var o=this.val,a=u.x,n=u.y;return o[0]=a*o[0],o[1]=a*o[1],o[2]=a*o[2],o[3]=n*o[3],o[4]=n*o[4],o[5]=n*o[5],this},fromQuat:function(u){var o=u.x,a=u.y,n=u.z,r=u.w,d=o+o,s=a+a,h=n+n,c=o*d,p=o*s,m=o*h,x=a*s,S=a*h,P=n*h,E=r*d,R=r*s,M=r*h,O=this.val;return O[0]=1-(x+P),O[3]=p+M,O[6]=m-R,O[1]=p-M,O[4]=1-(c+P),O[7]=S+E,O[2]=m+R,O[5]=S-E,O[8]=1-(c+x),this},normalFromMat4:function(u){var o=u.val,a=this.val,n=o[0],r=o[1],d=o[2],s=o[3],h=o[4],c=o[5],p=o[6],m=o[7],x=o[8],S=o[9],P=o[10],E=o[11],R=o[12],M=o[13],O=o[14],w=o[15],L=n*c-r*h,F=n*p-d*h,b=n*m-s*h,D=r*p-d*c,N=r*m-s*c,z=d*m-s*p,W=x*M-S*R,Y=x*O-P*R,j=x*w-E*R,G=S*O-P*M,V=S*w-E*M,I=P*w-E*O,B=L*I-F*V+b*G+D*j-N*Y+z*W;return B?(B=1/B,a[0]=(c*I-p*V+m*G)*B,a[1]=(p*j-h*I-m*Y)*B,a[2]=(h*V-c*j+m*W)*B,a[3]=(d*V-r*I-s*G)*B,a[4]=(n*I-d*j+s*Y)*B,a[5]=(r*j-n*V-s*W)*B,a[6]=(M*z-O*N+w*D)*B,a[7]=(O*b-R*z-w*F)*B,a[8]=(R*N-M*b+w*L)*B,this):null}});f.exports=g},16650:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(70015),u=1e-6,o=new l({initialize:function(c){this.val=new Float32Array(16),c?this.copy(c):this.identity()},clone:function(){return new o(this)},set:function(h){return this.copy(h)},setValues:function(h,c,p,m,x,S,P,E,R,M,O,w,L,F,b,D){var N=this.val;return N[0]=h,N[1]=c,N[2]=p,N[3]=m,N[4]=x,N[5]=S,N[6]=P,N[7]=E,N[8]=R,N[9]=M,N[10]=O,N[11]=w,N[12]=L,N[13]=F,N[14]=b,N[15]=D,this},copy:function(h){var c=h.val;return this.setValues(c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],c[8],c[9],c[10],c[11],c[12],c[13],c[14],c[15])},fromArray:function(h){return this.setValues(h[0],h[1],h[2],h[3],h[4],h[5],h[6],h[7],h[8],h[9],h[10],h[11],h[12],h[13],h[14],h[15])},zero:function(){return this.setValues(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)},transform:function(h,c,p){var m=a.fromQuat(p),x=m.val,S=c.x,P=c.y,E=c.z;return this.setValues(x[0]*S,x[1]*S,x[2]*S,0,x[4]*P,x[5]*P,x[6]*P,0,x[8]*E,x[9]*E,x[10]*E,0,h.x,h.y,h.z,1)},xyz:function(h,c,p){this.identity();var m=this.val;return m[12]=h,m[13]=c,m[14]=p,this},scaling:function(h,c,p){this.zero();var m=this.val;return m[0]=h,m[5]=c,m[10]=p,m[15]=1,this},identity:function(){return this.setValues(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)},transpose:function(){var h=this.val,c=h[1],p=h[2],m=h[3],x=h[6],S=h[7],P=h[11];return h[1]=h[4],h[2]=h[8],h[3]=h[12],h[4]=c,h[6]=h[9],h[7]=h[13],h[8]=p,h[9]=x,h[11]=h[14],h[12]=m,h[13]=S,h[14]=P,this},getInverse:function(h){return this.copy(h),this.invert()},invert:function(){var h=this.val,c=h[0],p=h[1],m=h[2],x=h[3],S=h[4],P=h[5],E=h[6],R=h[7],M=h[8],O=h[9],w=h[10],L=h[11],F=h[12],b=h[13],D=h[14],N=h[15],z=c*P-p*S,W=c*E-m*S,Y=c*R-x*S,j=p*E-m*P,G=p*R-x*P,V=m*R-x*E,I=M*b-O*F,B=M*D-w*F,U=M*N-L*F,X=O*D-w*b,$=O*N-L*b,k=w*N-L*D,K=z*k-W*$+Y*X+j*U-G*B+V*I;return K?(K=1/K,this.setValues((P*k-E*$+R*X)*K,(m*$-p*k-x*X)*K,(b*V-D*G+N*j)*K,(w*G-O*V-L*j)*K,(E*U-S*k-R*B)*K,(c*k-m*U+x*B)*K,(D*Y-F*V-N*W)*K,(M*V-w*Y+L*W)*K,(S*$-P*U+R*I)*K,(p*U-c*$-x*I)*K,(F*G-b*Y+N*z)*K,(O*Y-M*G-L*z)*K,(P*B-S*X-E*I)*K,(c*X-p*B+m*I)*K,(b*W-F*j-D*z)*K,(M*j-O*W+w*z)*K)):this},adjoint:function(){var h=this.val,c=h[0],p=h[1],m=h[2],x=h[3],S=h[4],P=h[5],E=h[6],R=h[7],M=h[8],O=h[9],w=h[10],L=h[11],F=h[12],b=h[13],D=h[14],N=h[15];return this.setValues(P*(w*N-L*D)-O*(E*N-R*D)+b*(E*L-R*w),-(p*(w*N-L*D)-O*(m*N-x*D)+b*(m*L-x*w)),p*(E*N-R*D)-P*(m*N-x*D)+b*(m*R-x*E),-(p*(E*L-R*w)-P*(m*L-x*w)+O*(m*R-x*E)),-(S*(w*N-L*D)-M*(E*N-R*D)+F*(E*L-R*w)),c*(w*N-L*D)-M*(m*N-x*D)+F*(m*L-x*w),-(c*(E*N-R*D)-S*(m*N-x*D)+F*(m*R-x*E)),c*(E*L-R*w)-S*(m*L-x*w)+M*(m*R-x*E),S*(O*N-L*b)-M*(P*N-R*b)+F*(P*L-R*O),-(c*(O*N-L*b)-M*(p*N-x*b)+F*(p*L-x*O)),c*(P*N-R*b)-S*(p*N-x*b)+F*(p*R-x*P),-(c*(P*L-R*O)-S*(p*L-x*O)+M*(p*R-x*P)),-(S*(O*D-w*b)-M*(P*D-E*b)+F*(P*w-E*O)),c*(O*D-w*b)-M*(p*D-m*b)+F*(p*w-m*O),-(c*(P*D-E*b)-S*(p*D-m*b)+F*(p*E-m*P)),c*(P*w-E*O)-S*(p*w-m*O)+M*(p*E-m*P))},determinant:function(){var h=this.val,c=h[0],p=h[1],m=h[2],x=h[3],S=h[4],P=h[5],E=h[6],R=h[7],M=h[8],O=h[9],w=h[10],L=h[11],F=h[12],b=h[13],D=h[14],N=h[15],z=c*P-p*S,W=c*E-m*S,Y=c*R-x*S,j=p*E-m*P,G=p*R-x*P,V=m*R-x*E,I=M*b-O*F,B=M*D-w*F,U=M*N-L*F,X=O*D-w*b,$=O*N-L*b,k=w*N-L*D;return z*k-W*$+Y*X+j*U-G*B+V*I},multiply:function(h){var c=this.val,p=c[0],m=c[1],x=c[2],S=c[3],P=c[4],E=c[5],R=c[6],M=c[7],O=c[8],w=c[9],L=c[10],F=c[11],b=c[12],D=c[13],N=c[14],z=c[15],W=h.val,Y=W[0],j=W[1],G=W[2],V=W[3];return c[0]=Y*p+j*P+G*O+V*b,c[1]=Y*m+j*E+G*w+V*D,c[2]=Y*x+j*R+G*L+V*N,c[3]=Y*S+j*M+G*F+V*z,Y=W[4],j=W[5],G=W[6],V=W[7],c[4]=Y*p+j*P+G*O+V*b,c[5]=Y*m+j*E+G*w+V*D,c[6]=Y*x+j*R+G*L+V*N,c[7]=Y*S+j*M+G*F+V*z,Y=W[8],j=W[9],G=W[10],V=W[11],c[8]=Y*p+j*P+G*O+V*b,c[9]=Y*m+j*E+G*w+V*D,c[10]=Y*x+j*R+G*L+V*N,c[11]=Y*S+j*M+G*F+V*z,Y=W[12],j=W[13],G=W[14],V=W[15],c[12]=Y*p+j*P+G*O+V*b,c[13]=Y*m+j*E+G*w+V*D,c[14]=Y*x+j*R+G*L+V*N,c[15]=Y*S+j*M+G*F+V*z,this},multiplyLocal:function(h){var c=this.val,p=h.val;return this.setValues(c[0]*p[0]+c[1]*p[4]+c[2]*p[8]+c[3]*p[12],c[0]*p[1]+c[1]*p[5]+c[2]*p[9]+c[3]*p[13],c[0]*p[2]+c[1]*p[6]+c[2]*p[10]+c[3]*p[14],c[0]*p[3]+c[1]*p[7]+c[2]*p[11]+c[3]*p[15],c[4]*p[0]+c[5]*p[4]+c[6]*p[8]+c[7]*p[12],c[4]*p[1]+c[5]*p[5]+c[6]*p[9]+c[7]*p[13],c[4]*p[2]+c[5]*p[6]+c[6]*p[10]+c[7]*p[14],c[4]*p[3]+c[5]*p[7]+c[6]*p[11]+c[7]*p[15],c[8]*p[0]+c[9]*p[4]+c[10]*p[8]+c[11]*p[12],c[8]*p[1]+c[9]*p[5]+c[10]*p[9]+c[11]*p[13],c[8]*p[2]+c[9]*p[6]+c[10]*p[10]+c[11]*p[14],c[8]*p[3]+c[9]*p[7]+c[10]*p[11]+c[11]*p[15],c[12]*p[0]+c[13]*p[4]+c[14]*p[8]+c[15]*p[12],c[12]*p[1]+c[13]*p[5]+c[14]*p[9]+c[15]*p[13],c[12]*p[2]+c[13]*p[6]+c[14]*p[10]+c[15]*p[14],c[12]*p[3]+c[13]*p[7]+c[14]*p[11]+c[15]*p[15])},premultiply:function(h){return this.multiplyMatrices(h,this)},multiplyMatrices:function(h,c){var p=h.val,m=c.val,x=p[0],S=p[4],P=p[8],E=p[12],R=p[1],M=p[5],O=p[9],w=p[13],L=p[2],F=p[6],b=p[10],D=p[14],N=p[3],z=p[7],W=p[11],Y=p[15],j=m[0],G=m[4],V=m[8],I=m[12],B=m[1],U=m[5],X=m[9],$=m[13],k=m[2],K=m[6],J=m[10],q=m[14],_=m[3],et=m[7],it=m[11],tt=m[15];return this.setValues(x*j+S*B+P*k+E*_,R*j+M*B+O*k+w*_,L*j+F*B+b*k+D*_,N*j+z*B+W*k+Y*_,x*G+S*U+P*K+E*et,R*G+M*U+O*K+w*et,L*G+F*U+b*K+D*et,N*G+z*U+W*K+Y*et,x*V+S*X+P*J+E*it,R*V+M*X+O*J+w*it,L*V+F*X+b*J+D*it,N*V+z*X+W*J+Y*it,x*I+S*$+P*q+E*tt,R*I+M*$+O*q+w*tt,L*I+F*$+b*q+D*tt,N*I+z*$+W*q+Y*tt)},translate:function(h){return this.translateXYZ(h.x,h.y,h.z)},translateXYZ:function(h,c,p){var m=this.val;return m[12]=m[0]*h+m[4]*c+m[8]*p+m[12],m[13]=m[1]*h+m[5]*c+m[9]*p+m[13],m[14]=m[2]*h+m[6]*c+m[10]*p+m[14],m[15]=m[3]*h+m[7]*c+m[11]*p+m[15],this},scale:function(h){return this.scaleXYZ(h.x,h.y,h.z)},scaleXYZ:function(h,c,p){var m=this.val;return m[0]=m[0]*h,m[1]=m[1]*h,m[2]=m[2]*h,m[3]=m[3]*h,m[4]=m[4]*c,m[5]=m[5]*c,m[6]=m[6]*c,m[7]=m[7]*c,m[8]=m[8]*p,m[9]=m[9]*p,m[10]=m[10]*p,m[11]=m[11]*p,this},makeRotationAxis:function(h,c){var p=Math.cos(c),m=Math.sin(c),x=1-p,S=h.x,P=h.y,E=h.z,R=x*S,M=x*P;return this.setValues(R*S+p,R*P-m*E,R*E+m*P,0,R*P+m*E,M*P+p,M*E-m*S,0,R*E-m*P,M*E+m*S,x*E*E+p,0,0,0,0,1)},rotate:function(h,c){var p=this.val,m=c.x,x=c.y,S=c.z,P=Math.sqrt(m*m+x*x+S*S);if(Math.abs(P){/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){return Math.min(t+l,g)};f.exports=T},37394:f=>{/** + * @author Vladislav Forsh + * @copyright 2021 RoboWhale + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){var l=t.length;if(l===0)return 0;t.sort(function(u,o){return u-o});var g=Math.floor(l/2);return l%2===0?(t[g]+t[g-1])/2:t[g]};f.exports=T},17259:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){return Math.max(t-l,g)};f.exports=T},61820:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){g===void 0&&(g=l+1);var o=(t-l)/(g-l);return o>1?u!==void 0?(o=(u-t)/(u-g),o<0&&(o=0)):o=1:o<0&&(o=0),o};f.exports=T},75003:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(5341),u=t(72283),o=t(70015),a=1e-6,n=new Int8Array([1,2,0]),r=new Float32Array([0,0,0]),d=new o(1,0,0),s=new o(0,1,0),h=new o,c=new g,p=new l({initialize:function(x,S,P,E){this.onChangeCallback=u,this.set(x,S,P,E)},x:{get:function(){return this._x},set:function(m){this._x=m,this.onChangeCallback(this)}},y:{get:function(){return this._y},set:function(m){this._y=m,this.onChangeCallback(this)}},z:{get:function(){return this._z},set:function(m){this._z=m,this.onChangeCallback(this)}},w:{get:function(){return this._w},set:function(m){this._w=m,this.onChangeCallback(this)}},copy:function(m){return this.set(m)},set:function(m,x,S,P,E){return E===void 0&&(E=!0),typeof m=="object"?(this._x=m.x||0,this._y=m.y||0,this._z=m.z||0,this._w=m.w||0):(this._x=m||0,this._y=x||0,this._z=S||0,this._w=P||0),E&&this.onChangeCallback(this),this},add:function(m){return this._x+=m.x,this._y+=m.y,this._z+=m.z,this._w+=m.w,this.onChangeCallback(this),this},subtract:function(m){return this._x-=m.x,this._y-=m.y,this._z-=m.z,this._w-=m.w,this.onChangeCallback(this),this},scale:function(m){return this._x*=m,this._y*=m,this._z*=m,this._w*=m,this.onChangeCallback(this),this},length:function(){var m=this.x,x=this.y,S=this.z,P=this.w;return Math.sqrt(m*m+x*x+S*S+P*P)},lengthSq:function(){var m=this.x,x=this.y,S=this.z,P=this.w;return m*m+x*x+S*S+P*P},normalize:function(){var m=this.x,x=this.y,S=this.z,P=this.w,E=m*m+x*x+S*S+P*P;return E>0&&(E=1/Math.sqrt(E),this._x=m*E,this._y=x*E,this._z=S*E,this._w=P*E),this.onChangeCallback(this),this},dot:function(m){return this.x*m.x+this.y*m.y+this.z*m.z+this.w*m.w},lerp:function(m,x){x===void 0&&(x=0);var S=this.x,P=this.y,E=this.z,R=this.w;return this.set(S+x*(m.x-S),P+x*(m.y-P),E+x*(m.z-E),R+x*(m.w-R))},rotationTo:function(m,x){var S=m.x*x.x+m.y*x.y+m.z*x.z;return S<-.999999?(h.copy(d).cross(m).length().999999?this.set(0,0,0,1):(h.copy(m).cross(x),this._x=h.x,this._y=h.y,this._z=h.z,this._w=1+S,this.normalize())},setAxes:function(m,x,S){var P=c.val;return P[0]=x.x,P[3]=x.y,P[6]=x.z,P[1]=S.x,P[4]=S.y,P[7]=S.z,P[2]=-m.x,P[5]=-m.y,P[8]=-m.z,this.fromMat3(c).normalize()},identity:function(){return this.set(0,0,0,1)},setAxisAngle:function(m,x){x=x*.5;var S=Math.sin(x);return this.set(S*m.x,S*m.y,S*m.z,Math.cos(x))},multiply:function(m){var x=this.x,S=this.y,P=this.z,E=this.w,R=m.x,M=m.y,O=m.z,w=m.w;return this.set(x*w+E*R+S*O-P*M,S*w+E*M+P*R-x*O,P*w+E*O+x*M-S*R,E*w-x*R-S*M-P*O)},slerp:function(m,x){var S=this.x,P=this.y,E=this.z,R=this.w,M=m.x,O=m.y,w=m.z,L=m.w,F=S*M+P*O+E*w+R*L;F<0&&(F=-F,M=-M,O=-O,w=-w,L=-L);var b=1-x,D=x;if(1-F>a){var N=Math.acos(F),z=Math.sin(N);b=Math.sin((1-x)*N)/z,D=Math.sin(x*N)/z}return this.set(b*S+D*M,b*P+D*O,b*E+D*w,b*R+D*L)},invert:function(){var m=this.x,x=this.y,S=this.z,P=this.w,E=m*m+x*x+S*S+P*P,R=E?1/E:0;return this.set(-m*R,-x*R,-S*R,P*R)},conjugate:function(){return this._x=-this.x,this._y=-this.y,this._z=-this.z,this.onChangeCallback(this),this},rotateX:function(m){m*=.5;var x=this.x,S=this.y,P=this.z,E=this.w,R=Math.sin(m),M=Math.cos(m);return this.set(x*M+E*R,S*M+P*R,P*M-S*R,E*M-x*R)},rotateY:function(m){m*=.5;var x=this.x,S=this.y,P=this.z,E=this.w,R=Math.sin(m),M=Math.cos(m);return this.set(x*M-P*R,S*M+E*R,P*M+x*R,E*M-S*R)},rotateZ:function(m){m*=.5;var x=this.x,S=this.y,P=this.z,E=this.w,R=Math.sin(m),M=Math.cos(m);return this.set(x*M+S*R,S*M-x*R,P*M+E*R,E*M-P*R)},calculateW:function(){var m=this.x,x=this.y,S=this.z;return this.w=-Math.sqrt(1-m*m-x*x-S*S),this},setFromEuler:function(m,x){var S=m.x/2,P=m.y/2,E=m.z/2,R=Math.cos(S),M=Math.cos(P),O=Math.cos(E),w=Math.sin(S),L=Math.sin(P),F=Math.sin(E);switch(m.order){case"XYZ":{this.set(w*M*O+R*L*F,R*L*O-w*M*F,R*M*F+w*L*O,R*M*O-w*L*F,x);break}case"YXZ":{this.set(w*M*O+R*L*F,R*L*O-w*M*F,R*M*F-w*L*O,R*M*O+w*L*F,x);break}case"ZXY":{this.set(w*M*O-R*L*F,R*L*O+w*M*F,R*M*F+w*L*O,R*M*O-w*L*F,x);break}case"ZYX":{this.set(w*M*O-R*L*F,R*L*O+w*M*F,R*M*F-w*L*O,R*M*O+w*L*F,x);break}case"YZX":{this.set(w*M*O+R*L*F,R*L*O+w*M*F,R*M*F-w*L*O,R*M*O-w*L*F,x);break}case"XZY":{this.set(w*M*O-R*L*F,R*L*O-w*M*F,R*M*F+w*L*O,R*M*O+w*L*F,x);break}}return this},setFromRotationMatrix:function(m){var x=m.val,S=x[0],P=x[4],E=x[8],R=x[1],M=x[5],O=x[9],w=x[2],L=x[6],F=x[10],b=S+M+F,D;return b>0?(D=.5/Math.sqrt(b+1),this.set((L-O)*D,(E-w)*D,(R-P)*D,.25/D)):S>M&&S>F?(D=2*Math.sqrt(1+S-M-F),this.set(.25*D,(P+R)/D,(E+w)/D,(L-O)/D)):M>F?(D=2*Math.sqrt(1+M-S-F),this.set((P+R)/D,.25*D,(O+L)/D,(E-w)/D)):(D=2*Math.sqrt(1+F-S-M),this.set((E+w)/D,(O+L)/D,.25*D,(R-P)/D)),this},fromMat3:function(m){var x=m.val,S=x[0]+x[4]+x[8],P;if(S>0)P=Math.sqrt(S+1),this.w=.5*P,P=.5/P,this._x=(x[7]-x[5])*P,this._y=(x[2]-x[6])*P,this._z=(x[3]-x[1])*P;else{var E=0;x[4]>x[0]&&(E=1),x[8]>x[E*3+E]&&(E=2);var R=n[E],M=n[R];P=Math.sqrt(x[E*3+E]-x[R*3+R]-x[M*3+M]+1),r[E]=.5*P,P=.5/P,r[R]=(x[R*3+E]+x[E*3+R])*P,r[M]=(x[M*3+E]+x[E*3+M])*P,this._x=r[0],this._y=r[1],this._z=r[2],this._w=(x[M*3+R]-x[R*3+M])*P}return this.onChangeCallback(this),this}});f.exports=p},23701:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(83392),g=function(u){return u*l.RAD_TO_DEG};f.exports=g},16906:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){l===void 0&&(l=1);var g=Math.random()*2*Math.PI;return t.x=Math.cos(g)*l,t.y=Math.sin(g)*l,t};f.exports=T},52417:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){l===void 0&&(l=1);var g=Math.random()*2*Math.PI,u=Math.random()*2-1,o=Math.sqrt(1-u*u)*l;return t.x=Math.cos(g)*o,t.y=Math.sin(g)*o,t.z=u*l,t};f.exports=T},17915:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return l===void 0&&(l=1),t.x=(Math.random()*2-1)*l,t.y=(Math.random()*2-1)*l,t.z=(Math.random()*2-1)*l,t.w=(Math.random()*2-1)*l,t};f.exports=T},52257:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){var g=t.x,u=t.y;return t.x=g*Math.cos(l)-u*Math.sin(l),t.y=g*Math.sin(l)+u*Math.cos(l),t};f.exports=T},2386:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){var o=Math.cos(u),a=Math.sin(u),n=t.x-l,r=t.y-g;return t.x=n*o-r*a+l,t.y=n*a+r*o+g,t};f.exports=T},72395:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u,o){var a=u+Math.atan2(t.y-g,t.x-l);return t.x=l+o*Math.cos(a),t.y=g+o*Math.sin(a),t};f.exports=T},41061:f=>{/** + * @author samme + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u,o){return t.x=l+o*Math.cos(u),t.y=g+o*Math.sin(u),t};f.exports=T},93709:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(70015),g=t(16650),u=t(75003),o=new g,a=new u,n=new l,r=function(d,s,h){return a.setAxisAngle(s,h),o.fromRotationTranslation(a,n.set(0,0,0)),d.transformMat4(o)};f.exports=r},67233:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t>0?Math.ceil(t):Math.floor(t)};f.exports=T},64333:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){l===void 0&&(l=0),g===void 0&&(g=10);var u=Math.pow(g,-l);return Math.round(t*u)/u};f.exports=T},59533:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){l===void 0&&(l=1),g===void 0&&(g=1),u===void 0&&(u=1),u*=Math.PI/t;for(var o=[],a=[],n=0;n{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){return t<=l?0:t>=g?1:(t=(t-l)/(g-l),t*t*(3-2*t))};f.exports=T},87736:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){return t=Math.max(0,Math.min(1,(t-l)/(g-l))),t*t*t*(t*(t*6-15)+10)};f.exports=T},55805:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(93736),g=function(u,o,a,n){n===void 0&&(n=new l);var r=0,d=0,s=o*a;return u>0&&u<=s&&(u>o-1?(d=Math.floor(u/o),r=u-d*o):r=u),n.set(r,d)};f.exports=g},64462:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(93736),g=function(u,o,a,n,r,d,s,h){h===void 0&&(h=new l);var c=Math.sin(r),p=Math.cos(r),m=p*d,x=c*d,S=-c*s,P=p*s,E=1/(m*P+S*-x);return h.x=P*E*u+-S*E*o+(n*S-a*P)*E,h.y=m*E*o+-x*E*u+(-n*m+a*x)*E,h};f.exports=g},93736:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(88456),u=new l({initialize:function(a,n){this.x=0,this.y=0,typeof a=="object"?(this.x=a.x||0,this.y=a.y||0):(n===void 0&&(n=a),this.x=a||0,this.y=n||0)},clone:function(){return new u(this.x,this.y)},copy:function(o){return this.x=o.x||0,this.y=o.y||0,this},setFromObject:function(o){return this.x=o.x||0,this.y=o.y||0,this},set:function(o,a){return a===void 0&&(a=o),this.x=o,this.y=a,this},setTo:function(o,a){return this.set(o,a)},setToPolar:function(o,a){return a==null&&(a=1),this.x=Math.cos(o)*a,this.y=Math.sin(o)*a,this},equals:function(o){return this.x===o.x&&this.y===o.y},fuzzyEquals:function(o,a){return g(this.x,o.x,a)&&g(this.y,o.y,a)},angle:function(){var o=Math.atan2(this.y,this.x);return o<0&&(o+=2*Math.PI),o},setAngle:function(o){return this.setToPolar(o,this.length())},add:function(o){return this.x+=o.x,this.y+=o.y,this},subtract:function(o){return this.x-=o.x,this.y-=o.y,this},multiply:function(o){return this.x*=o.x,this.y*=o.y,this},scale:function(o){return isFinite(o)?(this.x*=o,this.y*=o):(this.x=0,this.y=0),this},divide:function(o){return this.x/=o.x,this.y/=o.y,this},negate:function(){return this.x=-this.x,this.y=-this.y,this},distance:function(o){var a=o.x-this.x,n=o.y-this.y;return Math.sqrt(a*a+n*n)},distanceSq:function(o){var a=o.x-this.x,n=o.y-this.y;return a*a+n*n},length:function(){var o=this.x,a=this.y;return Math.sqrt(o*o+a*a)},setLength:function(o){return this.normalize().scale(o)},lengthSq:function(){var o=this.x,a=this.y;return o*o+a*a},normalize:function(){var o=this.x,a=this.y,n=o*o+a*a;return n>0&&(n=1/Math.sqrt(n),this.x=o*n,this.y=a*n),this},normalizeRightHand:function(){var o=this.x;return this.x=this.y*-1,this.y=o,this},normalizeLeftHand:function(){var o=this.x;return this.x=this.y,this.y=o*-1,this},dot:function(o){return this.x*o.x+this.y*o.y},cross:function(o){return this.x*o.y-this.y*o.x},lerp:function(o,a){a===void 0&&(a=0);var n=this.x,r=this.y;return this.x=n+a*(o.x-n),this.y=r+a*(o.y-r),this},transformMat3:function(o){var a=this.x,n=this.y,r=o.val;return this.x=r[0]*a+r[3]*n+r[6],this.y=r[1]*a+r[4]*n+r[7],this},transformMat4:function(o){var a=this.x,n=this.y,r=o.val;return this.x=r[0]*a+r[4]*n+r[12],this.y=r[1]*a+r[5]*n+r[13],this},reset:function(){return this.x=0,this.y=0,this},limit:function(o){var a=this.length();return a&&a>o&&this.scale(o/a),this},reflect:function(o){return o=o.clone().normalize(),this.subtract(o.scale(2*this.dot(o)))},mirror:function(o){return this.reflect(o).negate()},rotate:function(o){var a=Math.cos(o),n=Math.sin(o);return this.set(a*this.x-n*this.y,n*this.x+a*this.y)},project:function(o){var a=this.dot(o)/o.dot(o);return this.copy(o).scale(a)}});u.ZERO=new u,u.RIGHT=new u(1,0),u.LEFT=new u(-1,0),u.UP=new u(0,-1),u.DOWN=new u(0,1),u.ONE=new u(1,1),f.exports=u},70015:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=new l({initialize:function(o,a,n){this.x=0,this.y=0,this.z=0,typeof o=="object"?(this.x=o.x||0,this.y=o.y||0,this.z=o.z||0):(this.x=o||0,this.y=a||0,this.z=n||0)},up:function(){return this.x=0,this.y=1,this.z=0,this},min:function(u){return this.x=Math.min(this.x,u.x),this.y=Math.min(this.y,u.y),this.z=Math.min(this.z,u.z),this},max:function(u){return this.x=Math.max(this.x,u.x),this.y=Math.max(this.y,u.y),this.z=Math.max(this.z,u.z),this},clone:function(){return new g(this.x,this.y,this.z)},addVectors:function(u,o){return this.x=u.x+o.x,this.y=u.y+o.y,this.z=u.z+o.z,this},crossVectors:function(u,o){var a=u.x,n=u.y,r=u.z,d=o.x,s=o.y,h=o.z;return this.x=n*h-r*s,this.y=r*d-a*h,this.z=a*s-n*d,this},equals:function(u){return this.x===u.x&&this.y===u.y&&this.z===u.z},copy:function(u){return this.x=u.x,this.y=u.y,this.z=u.z||0,this},set:function(u,o,a){return typeof u=="object"?(this.x=u.x||0,this.y=u.y||0,this.z=u.z||0):(this.x=u||0,this.y=o||0,this.z=a||0),this},setFromMatrixPosition:function(u){return this.fromArray(u.val,12)},setFromMatrixColumn:function(u,o){return this.fromArray(u.val,o*4)},fromArray:function(u,o){return o===void 0&&(o=0),this.x=u[o],this.y=u[o+1],this.z=u[o+2],this},add:function(u){return this.x+=u.x,this.y+=u.y,this.z+=u.z||0,this},addScalar:function(u){return this.x+=u,this.y+=u,this.z+=u,this},addScale:function(u,o){return this.x+=u.x*o,this.y+=u.y*o,this.z+=u.z*o||0,this},subtract:function(u){return this.x-=u.x,this.y-=u.y,this.z-=u.z||0,this},multiply:function(u){return this.x*=u.x,this.y*=u.y,this.z*=u.z||1,this},scale:function(u){return isFinite(u)?(this.x*=u,this.y*=u,this.z*=u):(this.x=0,this.y=0,this.z=0),this},divide:function(u){return this.x/=u.x,this.y/=u.y,this.z/=u.z||1,this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},distance:function(u){var o=u.x-this.x,a=u.y-this.y,n=u.z-this.z||0;return Math.sqrt(o*o+a*a+n*n)},distanceSq:function(u){var o=u.x-this.x,a=u.y-this.y,n=u.z-this.z||0;return o*o+a*a+n*n},length:function(){var u=this.x,o=this.y,a=this.z;return Math.sqrt(u*u+o*o+a*a)},lengthSq:function(){var u=this.x,o=this.y,a=this.z;return u*u+o*o+a*a},normalize:function(){var u=this.x,o=this.y,a=this.z,n=u*u+o*o+a*a;return n>0&&(n=1/Math.sqrt(n),this.x=u*n,this.y=o*n,this.z=a*n),this},dot:function(u){return this.x*u.x+this.y*u.y+this.z*u.z},cross:function(u){var o=this.x,a=this.y,n=this.z,r=u.x,d=u.y,s=u.z;return this.x=a*s-n*d,this.y=n*r-o*s,this.z=o*d-a*r,this},lerp:function(u,o){o===void 0&&(o=0);var a=this.x,n=this.y,r=this.z;return this.x=a+o*(u.x-a),this.y=n+o*(u.y-n),this.z=r+o*(u.z-r),this},applyMatrix3:function(u){var o=this.x,a=this.y,n=this.z,r=u.val;return this.x=r[0]*o+r[3]*a+r[6]*n,this.y=r[1]*o+r[4]*a+r[7]*n,this.z=r[2]*o+r[5]*a+r[8]*n,this},applyMatrix4:function(u){var o=this.x,a=this.y,n=this.z,r=u.val,d=1/(r[3]*o+r[7]*a+r[11]*n+r[15]);return this.x=(r[0]*o+r[4]*a+r[8]*n+r[12])*d,this.y=(r[1]*o+r[5]*a+r[9]*n+r[13])*d,this.z=(r[2]*o+r[6]*a+r[10]*n+r[14])*d,this},transformMat3:function(u){var o=this.x,a=this.y,n=this.z,r=u.val;return this.x=o*r[0]+a*r[3]+n*r[6],this.y=o*r[1]+a*r[4]+n*r[7],this.z=o*r[2]+a*r[5]+n*r[8],this},transformMat4:function(u){var o=this.x,a=this.y,n=this.z,r=u.val;return this.x=r[0]*o+r[4]*a+r[8]*n+r[12],this.y=r[1]*o+r[5]*a+r[9]*n+r[13],this.z=r[2]*o+r[6]*a+r[10]*n+r[14],this},transformCoordinates:function(u){var o=this.x,a=this.y,n=this.z,r=u.val,d=o*r[0]+a*r[4]+n*r[8]+r[12],s=o*r[1]+a*r[5]+n*r[9]+r[13],h=o*r[2]+a*r[6]+n*r[10]+r[14],c=o*r[3]+a*r[7]+n*r[11]+r[15];return this.x=d/c,this.y=s/c,this.z=h/c,this},transformQuat:function(u){var o=this.x,a=this.y,n=this.z,r=u.x,d=u.y,s=u.z,h=u.w,c=h*o+d*n-s*a,p=h*a+s*o-r*n,m=h*n+r*a-d*o,x=-r*o-d*a-s*n;return this.x=c*h+x*-r+p*-s-m*-d,this.y=p*h+x*-d+m*-r-c*-s,this.z=m*h+x*-s+c*-d-p*-r,this},project:function(u){var o=this.x,a=this.y,n=this.z,r=u.val,d=r[0],s=r[1],h=r[2],c=r[3],p=r[4],m=r[5],x=r[6],S=r[7],P=r[8],E=r[9],R=r[10],M=r[11],O=r[12],w=r[13],L=r[14],F=r[15],b=1/(o*c+a*S+n*M+F);return this.x=(o*d+a*p+n*P+O)*b,this.y=(o*s+a*m+n*E+w)*b,this.z=(o*h+a*x+n*R+L)*b,this},projectViewMatrix:function(u,o){return this.applyMatrix4(u).applyMatrix4(o)},unprojectViewMatrix:function(u,o){return this.applyMatrix4(u).applyMatrix4(o)},unproject:function(u,o){var a=u.x,n=u.y,r=u.z,d=u.w,s=this.x-a,h=d-this.y-1-n,c=this.z;return this.x=2*s/r-1,this.y=2*h/d-1,this.z=2*c-1,this.project(o)},reset:function(){return this.x=0,this.y=0,this.z=0,this}});g.ZERO=new g,g.RIGHT=new g(1,0,0),g.LEFT=new g(-1,0,0),g.UP=new g(0,-1,0),g.DOWN=new g(0,1,0),g.FORWARD=new g(0,0,1),g.BACK=new g(0,0,-1),g.ONE=new g(1,1,1),f.exports=g},51729:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=new l({initialize:function(o,a,n,r){this.x=0,this.y=0,this.z=0,this.w=0,typeof o=="object"?(this.x=o.x||0,this.y=o.y||0,this.z=o.z||0,this.w=o.w||0):(this.x=o||0,this.y=a||0,this.z=n||0,this.w=r||0)},clone:function(){return new g(this.x,this.y,this.z,this.w)},copy:function(u){return this.x=u.x,this.y=u.y,this.z=u.z||0,this.w=u.w||0,this},equals:function(u){return this.x===u.x&&this.y===u.y&&this.z===u.z&&this.w===u.w},set:function(u,o,a,n){return typeof u=="object"?(this.x=u.x||0,this.y=u.y||0,this.z=u.z||0,this.w=u.w||0):(this.x=u||0,this.y=o||0,this.z=a||0,this.w=n||0),this},add:function(u){return this.x+=u.x,this.y+=u.y,this.z+=u.z||0,this.w+=u.w||0,this},subtract:function(u){return this.x-=u.x,this.y-=u.y,this.z-=u.z||0,this.w-=u.w||0,this},scale:function(u){return this.x*=u,this.y*=u,this.z*=u,this.w*=u,this},length:function(){var u=this.x,o=this.y,a=this.z,n=this.w;return Math.sqrt(u*u+o*o+a*a+n*n)},lengthSq:function(){var u=this.x,o=this.y,a=this.z,n=this.w;return u*u+o*o+a*a+n*n},normalize:function(){var u=this.x,o=this.y,a=this.z,n=this.w,r=u*u+o*o+a*a+n*n;return r>0&&(r=1/Math.sqrt(r),this.x=u*r,this.y=o*r,this.z=a*r,this.w=n*r),this},dot:function(u){return this.x*u.x+this.y*u.y+this.z*u.z+this.w*u.w},lerp:function(u,o){o===void 0&&(o=0);var a=this.x,n=this.y,r=this.z,d=this.w;return this.x=a+o*(u.x-a),this.y=n+o*(u.y-n),this.z=r+o*(u.z-r),this.w=d+o*(u.w-d),this},multiply:function(u){return this.x*=u.x,this.y*=u.y,this.z*=u.z||1,this.w*=u.w||1,this},divide:function(u){return this.x/=u.x,this.y/=u.y,this.z/=u.z||1,this.w/=u.w||1,this},distance:function(u){var o=u.x-this.x,a=u.y-this.y,n=u.z-this.z||0,r=u.w-this.w||0;return Math.sqrt(o*o+a*a+n*n+r*r)},distanceSq:function(u){var o=u.x-this.x,a=u.y-this.y,n=u.z-this.z||0,r=u.w-this.w||0;return o*o+a*a+n*n+r*r},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},transformMat4:function(u){var o=this.x,a=this.y,n=this.z,r=this.w,d=u.val;return this.x=d[0]*o+d[4]*a+d[8]*n+d[12]*r,this.y=d[1]*o+d[5]*a+d[9]*n+d[13]*r,this.z=d[2]*o+d[6]*a+d[10]*n+d[14]*r,this.w=d[3]*o+d[7]*a+d[11]*n+d[15]*r,this},transformQuat:function(u){var o=this.x,a=this.y,n=this.z,r=u.x,d=u.y,s=u.z,h=u.w,c=h*o+d*n-s*a,p=h*a+s*o-r*n,m=h*n+r*a-d*o,x=-r*o-d*a-s*n;return this.x=c*h+x*-r+p*-s-m*-d,this.y=p*h+x*-d+m*-r-c*-s,this.z=m*h+x*-s+c*-d-p*-r,this},reset:function(){return this.x=0,this.y=0,this.z=0,this.w=0,this}});g.prototype.sub=g.prototype.subtract,g.prototype.mul=g.prototype.multiply,g.prototype.div=g.prototype.divide,g.prototype.dist=g.prototype.distance,g.prototype.distSq=g.prototype.distanceSq,g.prototype.len=g.prototype.length,g.prototype.lenSq=g.prototype.lengthSq,f.exports=g},9557:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){return Math.abs(t-l)<=g};f.exports=T},1071:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){if(t>=l&&t<=g)return t;var u=g-l;return l+((t-l)%u+u)%u};f.exports=T},90447:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){return Math.atan2(u-l,g-t)};f.exports=T},94240:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return Math.atan2(l.y-t.y,l.x-t.x)};f.exports=T},84066:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return Math.atan2(l.x-t.x,l.y-t.y)};f.exports=T},9678:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){return Math.atan2(g-t,u-l)};f.exports=T},76861:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(83392),g=function(u){return u>Math.PI&&(u-=l.PI2),Math.abs(((u+l.TAU)%l.PI2-l.PI2)%l.PI2)};f.exports=g},37570:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t=t%(2*Math.PI),t>=0?t:t+2*Math.PI};f.exports=T},87597:(f,T,t)=>{/** + * @author Richard Davey + * @author @samme + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(61616),g=function(){return l(-Math.PI,Math.PI)};f.exports=g},74493:(f,T,t)=>{/** + * @author Richard Davey + * @author @samme + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(61616),g=function(){return l(-180,180)};f.exports=g},19049:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(37570),g=function(u){return l(u+Math.PI)};f.exports=g},90612:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(83392),g=function(u,o,a){return a===void 0&&(a=.05),u===o||(Math.abs(o-u)<=a||Math.abs(o-u)>=l.PI2-a?u=o:(Math.abs(o-u)>Math.PI&&(ou?u+=a:o{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){var g=l-t;if(g===0)return 0;var u=Math.floor((g- -180)/360);return g-u*360};f.exports=T},35786:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(1071),g=function(u){return l(u,-Math.PI,Math.PI)};f.exports=g},62138:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(1071),g=function(u){return l(u,-180,180)};f.exports=g},22153:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Between:t(90447),BetweenPoints:t(94240),BetweenPointsY:t(84066),BetweenY:t(9678),CounterClockwise:t(76861),Normalize:t(37570),Random:t(87597),RandomDegrees:t(74493),Reverse:t(19049),RotateTo:t(90612),ShortestBetween:t(93954),Wrap:t(35786),WrapDegrees:t(62138)}},83392:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={PI2:Math.PI*2,TAU:Math.PI*.5,EPSILON:1e-6,DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,RND:null,MIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER||-9007199254740991,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991};f.exports=T},53996:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){var o=t-g,a=l-u;return Math.sqrt(o*o+a*a)};f.exports=T},92951:f=>{/** + * @author samme + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){var g=t.x-l.x,u=t.y-l.y;return Math.sqrt(g*g+u*u)};f.exports=T},12161:f=>{/** + * @author samme + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){var g=t.x-l.x,u=t.y-l.y;return g*g+u*u};f.exports=T},38057:f=>{/** + * @author samme + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){return Math.max(Math.abs(t-g),Math.abs(l-u))};f.exports=T},33297:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u,o){return o===void 0&&(o=2),Math.sqrt(Math.pow(g-t,o)+Math.pow(u-l,o))};f.exports=T},90366:f=>{/** + * @author samme + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){return Math.abs(t-g)+Math.abs(l-u)};f.exports=T},35032:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){var o=t-g,a=l-u;return o*o+a*a};f.exports=T},10130:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Between:t(53996),BetweenPoints:t(92951),BetweenPointsSquared:t(12161),Chebyshev:t(38057),Power:t(33297),Snake:t(90366),Squared:t(35032)}},35060:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(25265),g=t(57428),u=t(73214),o=t(71778),a=t(36468),n=t(88258),r=t(52910),d=t(67799),s=t(74083),h=t(92284),c=t(28035),p=t(8754);f.exports={Power0:r,Power1:d.Out,Power2:o.Out,Power3:s.Out,Power4:h.Out,Linear:r,Quad:d.Out,Cubic:o.Out,Quart:s.Out,Quint:h.Out,Sine:c.Out,Expo:n.Out,Circ:u.Out,Elastic:a.Out,Back:l.Out,Bounce:g.Out,Stepped:p,"Quad.easeIn":d.In,"Cubic.easeIn":o.In,"Quart.easeIn":s.In,"Quint.easeIn":h.In,"Sine.easeIn":c.In,"Expo.easeIn":n.In,"Circ.easeIn":u.In,"Elastic.easeIn":a.In,"Back.easeIn":l.In,"Bounce.easeIn":g.In,"Quad.easeOut":d.Out,"Cubic.easeOut":o.Out,"Quart.easeOut":s.Out,"Quint.easeOut":h.Out,"Sine.easeOut":c.Out,"Expo.easeOut":n.Out,"Circ.easeOut":u.Out,"Elastic.easeOut":a.Out,"Back.easeOut":l.Out,"Bounce.easeOut":g.Out,"Quad.easeInOut":d.InOut,"Cubic.easeInOut":o.InOut,"Quart.easeInOut":s.InOut,"Quint.easeInOut":h.InOut,"Sine.easeInOut":c.InOut,"Expo.easeInOut":n.InOut,"Circ.easeInOut":u.InOut,"Elastic.easeInOut":a.InOut,"Back.easeInOut":l.InOut,"Bounce.easeInOut":g.InOut}},25860:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return l===void 0&&(l=1.70158),t*t*((l+1)*t-l)};f.exports=T},45264:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){l===void 0&&(l=1.70158);var g=l*1.525;return(t*=2)<1?.5*(t*t*((g+1)*t-g)):.5*((t-=2)*t*((g+1)*t+g)+2)};f.exports=T},36699:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return l===void 0&&(l=1.70158),--t*t*((l+1)*t+l)+1};f.exports=T},25265:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={In:t(25860),Out:t(36699),InOut:t(45264)}},62191:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t=1-t,t<.36363636363636365?1-7.5625*t*t:t<.7272727272727273?1-(7.5625*(t-=.5454545454545454)*t+.75):t<.9090909090909091?1-(7.5625*(t-=.8181818181818182)*t+.9375):1-(7.5625*(t-=.9545454545454546)*t+.984375)};f.exports=T},24799:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){var l=!1;return t<.5?(t=1-t*2,l=!0):t=t*2-1,t<.36363636363636365?t=7.5625*t*t:t<.7272727272727273?t=7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?t=7.5625*(t-=.8181818181818182)*t+.9375:t=7.5625*(t-=.9545454545454546)*t+.984375,l?(1-t)*.5:t*.5+.5};f.exports=T},60819:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375};f.exports=T},57428:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={In:t(62191),Out:t(60819),InOut:t(24799)}},86855:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return 1-Math.sqrt(1-t*t)};f.exports=T},7280:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)};f.exports=T},18058:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return Math.sqrt(1- --t*t)};f.exports=T},73214:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={In:t(86855),Out:t(18058),InOut:t(7280)}},91532:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t*t*t};f.exports=T},63180:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)};f.exports=T},16518:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return--t*t*t+1};f.exports=T},71778:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={In:t(91532),Out:t(16518),InOut:t(63180)}},24729:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){if(l===void 0&&(l=.1),g===void 0&&(g=.1),t===0)return 0;if(t===1)return 1;var u=g/4;return l<1?l=1:u=g*Math.asin(1/l)/(2*Math.PI),-(l*Math.pow(2,10*(t-=1))*Math.sin((t-u)*(2*Math.PI)/g))};f.exports=T},50325:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){if(l===void 0&&(l=.1),g===void 0&&(g=.1),t===0)return 0;if(t===1)return 1;var u=g/4;return l<1?l=1:u=g*Math.asin(1/l)/(2*Math.PI),(t*=2)<1?-.5*(l*Math.pow(2,10*(t-=1))*Math.sin((t-u)*(2*Math.PI)/g)):l*Math.pow(2,-10*(t-=1))*Math.sin((t-u)*(2*Math.PI)/g)*.5+1};f.exports=T},84074:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){if(l===void 0&&(l=.1),g===void 0&&(g=.1),t===0)return 0;if(t===1)return 1;var u=g/4;return l<1?l=1:u=g*Math.asin(1/l)/(2*Math.PI),l*Math.pow(2,-10*t)*Math.sin((t-u)*(2*Math.PI)/g)+1};f.exports=T},36468:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={In:t(24729),Out:t(84074),InOut:t(50325)}},95638:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return Math.pow(2,10*(t-1))-.001};f.exports=T},10357:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))};f.exports=T},14894:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return 1-Math.pow(2,-10*t)};f.exports=T},88258:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={In:t(95638),Out:t(14894),InOut:t(10357)}},33063:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Back:t(25265),Bounce:t(57428),Circular:t(73214),Cubic:t(71778),Elastic:t(36468),Expo:t(88258),Linear:t(52910),Quadratic:t(67799),Quartic:t(74083),Quintic:t(92284),Sine:t(28035),Stepped:t(8754)}},43927:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t};f.exports=T},52910:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports=t(43927)},77471:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t*t};f.exports=T},83863:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)};f.exports=T},44383:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t*(2-t)};f.exports=T},67799:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={In:t(77471),Out:t(44383),InOut:t(83863)}},48311:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t*t*t*t};f.exports=T},55248:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)};f.exports=T},23135:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return 1- --t*t*t*t};f.exports=T},74083:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={In:t(48311),Out:t(23135),InOut:t(55248)}},7313:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t*t*t*t*t};f.exports=T},98759:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)};f.exports=T},26670:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return--t*t*t*t*t+1};f.exports=T},92284:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={In:t(7313),Out:t(26670),InOut:t(98759)}},52929:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t===0?0:t===1?1:1-Math.cos(t*Math.PI/2)};f.exports=T},66333:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t===0?0:t===1?1:.5*(1-Math.cos(Math.PI*t))};f.exports=T},37255:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t===0?0:t===1?1:Math.sin(t*Math.PI/2)};f.exports=T},28035:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={In:t(52929),Out:t(37255),InOut:t(66333)}},52770:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return l===void 0&&(l=1),t<=0?0:t>=1?1:((l*t|0)+1)*(1/l)};f.exports=T},8754:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports=t(52770)},17247:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return l===void 0&&(l=1e-4),Math.ceil(t-l)};f.exports=T},88456:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){return g===void 0&&(g=1e-4),Math.abs(t-l){/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return l===void 0&&(l=1e-4),Math.floor(t+l)};f.exports=T},41935:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){return g===void 0&&(g=1e-4),t>l-g};f.exports=T},54726:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){return g===void 0&&(g=1e-4),t{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Ceil:t(17247),Equal:t(88456),Floor:t(61824),GreaterThan:t(41935),LessThan:t(54726)}},5923:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(83392),g=t(98611),u={Angle:t(22153),Distance:t(10130),Easing:t(33063),Fuzzy:t(52778),Interpolation:t(48528),Pow2:t(73773),Snap:t(23679),RandomDataGenerator:t(81429),Average:t(26042),Bernstein:t(22824),Between:t(17489),CatmullRom:t(14976),CeilTo:t(89129),Clamp:t(82897),DegToRad:t(75606),Difference:t(767),Euler:t(9849),Factorial:t(8034),FloatBetween:t(61616),FloorTo:t(60679),FromPercent:t(91806),GetSpeed:t(79366),IsEven:t(43776),IsEvenStrict:t(58442),Linear:t(42798),LinearXY:t(61072),MaxAdd:t(69635),Median:t(37394),MinSub:t(17259),Percent:t(61820),RadToDeg:t(23701),RandomXY:t(16906),RandomXYZ:t(52417),RandomXYZW:t(17915),Rotate:t(52257),RotateAround:t(2386),RotateAroundDistance:t(72395),RotateTo:t(41061),RoundAwayFromZero:t(67233),RoundTo:t(64333),SinCosTableGenerator:t(59533),SmootherStep:t(87736),SmoothStep:t(5514),ToXY:t(55805),TransformXY:t(64462),Within:t(9557),Wrap:t(1071),Vector2:t(93736),Vector3:t(70015),Vector4:t(51729),Matrix3:t(5341),Matrix4:t(16650),Quaternion:t(75003),RotateVec3:t(93709)};u=g(!1,u,l),f.exports=u},63210:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(22824),g=function(u,o){for(var a=0,n=u.length-1,r=0;r<=n;r++)a+=Math.pow(1-o,n-r)*Math.pow(o,r)*u[r]*l(n,r);return a};f.exports=g},88332:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(14976),g=function(u,o){var a=u.length-1,n=a*o,r=Math.floor(n);return u[0]===u[a]?(o<0&&(r=Math.floor(n=a*(1+o))),l(n-r,u[(r-1+a)%a],u[r],u[(r+1)%a],u[(r+2)%a])):o<0?u[0]-(l(-n,u[0],u[0],u[1],u[1])-u[0]):o>1?u[a]-(l(n-a,u[a],u[a],u[a-1],u[a-1])-u[a]):l(n-r,u[r?r-1:0],u[r],u[a{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */function T(o,a){var n=1-o;return n*n*n*a}function t(o,a){var n=1-o;return 3*n*n*o*a}function l(o,a){return 3*(1-o)*o*o*a}function g(o,a){return o*o*o*a}var u=function(o,a,n,r,d){return T(o,a)+t(o,n)+l(o,r)+g(o,d)};f.exports=u},47614:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(42798),g=function(u,o){var a=u.length-1,n=a*o,r=Math.floor(n);return o<0?l(u[0],u[1],n):o>1?l(u[a],u[a-1],a-n):l(u[r],u[r+1>a?a:r+1],n-r)};f.exports=g},16252:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */function T(u,o){var a=1-u;return a*a*o}function t(u,o){return 2*(1-u)*u*o}function l(u,o){return u*u*o}var g=function(u,o,a,n){return T(u,o)+t(u,a)+l(u,n)};f.exports=g},44521:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(5514),g=function(u,o,a){return o+(a-o)*l(u,0,1)};f.exports=g},45507:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(87736),g=function(u,o,a){return o+(a-o)*l(u,0,1)};f.exports=g},48528:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Bezier:t(63210),CatmullRom:t(88332),CubicBezier:t(34631),Linear:t(47614),QuadraticBezier:t(16252),SmoothStep:t(44521),SmootherStep:t(45507)}},3504:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){var l=Math.log(t)/.6931471805599453;return 1<{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return t>0&&(t&t-1)===0&&l>0&&(l&l-1)===0};f.exports=T},2018:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t>0&&(t&t-1)===0};f.exports=T},73773:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={GetNext:t(3504),IsSize:t(28621),IsValue:t(2018)}},81429:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=new l({initialize:function(o){o===void 0&&(o=[(Date.now()*Math.random()).toString()]),this.c=1,this.s0=0,this.s1=0,this.s2=0,this.n=0,this.signs=[-1,1],o&&this.init(o)},rnd:function(){var u=2091639*this.s0+this.c*23283064365386963e-26;return this.c=u|0,this.s0=this.s1,this.s1=this.s2,this.s2=u-this.c,this.s2},hash:function(u){var o,a=this.n;u=u.toString();for(var n=0;n>>0,o-=a,o*=a,a=o>>>0,o-=a,a+=o*4294967296;return this.n=a,(a>>>0)*23283064365386963e-26},init:function(u){typeof u=="string"?this.state(u):this.sow(u)},sow:function(u){if(this.n=4022871197,this.s0=this.hash(" "),this.s1=this.hash(" "),this.s2=this.hash(" "),this.c=1,!!u)for(var o=0;o0;a--){var n=Math.floor(this.frac()*(a+1)),r=u[n];u[n]=u[a],u[a]=r}return u}});f.exports=g},82127:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){return g===void 0&&(g=0),l===0?t:(t-=g,t=l*Math.ceil(t/l),u?(g+t)/l:g+t)};f.exports=T},84314:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){return g===void 0&&(g=0),l===0?t:(t-=g,t=l*Math.floor(t/l),u?(g+t)/l:g+t)};f.exports=T},88462:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){return g===void 0&&(g=0),l===0?t:(t-=g,t=l*Math.round(t/l),u?(g+t)/l:g+t)};f.exports=T},23679:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Ceil:t(82127),Floor:t(84314),To:t(88462)}},92491:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */t(75205);var l=t(86459),g=t(98611),u={Actions:t(83979),Animations:t(13517),BlendModes:t(95723),Cache:t(45820),Cameras:t(44143),Core:t(80293),Class:t(56694),Create:t(84106),Curves:t(73962),Data:t(1999),Display:t(24816),DOM:t(3590),Events:t(95146),FX:t(96910),Game:t(15213),GameObjects:t(48013),Geom:t(84068),Input:t(20873),Loader:t(95695),Math:t(5923),Physics:t(53954),Plugins:t(45615),Renderer:t(42069),Scale:t(86754),ScaleModes:t(27394),Scene:t(87157),Scenes:t(20436),Structs:t(20010),Textures:t(87499),Tilemaps:t(52678),Time:t(97121),Tweens:t(75193),Utils:t(22178)};u.Sound=t(56751),u=g(!1,u,l),f.exports=u,t.g.Phaser=u},62832:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(7864),u=t(1539),o=new l({Extends:u,Mixins:[g.Acceleration,g.Angular,g.Bounce,g.Debug,g.Drag,g.Enable,g.Friction,g.Gravity,g.Immovable,g.Mass,g.Pushable,g.Size,g.Velocity],initialize:function(n,r,d,s,h){u.call(this,n,r,d,s,h),this.body=null}});f.exports=o},66150:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(75606),u=t(53996),o=t(35032),a=t(99523),n=t(72632),r=t(30657),d=t(2732),s=t(15147),h=t(91963),c=t(7599),p=t(93736),m=t(85233),x=new l({initialize:function(P){this.scene=P,this.systems=P.sys,this.config=this.getConfig(),this.world,this.add,P.sys.events.once(c.BOOT,this.boot,this),P.sys.events.on(c.START,this.start,this)},boot:function(){this.world=new m(this.scene,this.config),this.add=new a(this.world),this.systems.events.once(c.DESTROY,this.destroy,this)},start:function(){this.world||(this.world=new m(this.scene,this.config),this.add=new a(this.world));var S=this.systems.events;n(this.config,"customUpdate",!1)||S.on(c.UPDATE,this.world.update,this.world),S.on(c.POST_UPDATE,this.world.postUpdate,this.world),S.once(c.SHUTDOWN,this.shutdown,this)},enableUpdate:function(){this.systems.events.on(c.UPDATE,this.world.update,this.world)},disableUpdate:function(){this.systems.events.off(c.UPDATE,this.world.update,this.world)},getConfig:function(){var S=this.systems.game.config.physics,P=this.systems.settings.physics,E=r(n(P,"arcade",{}),n(S,"arcade",{}));return E},overlap:function(S,P,E,R,M){return E===void 0&&(E=null),R===void 0&&(R=null),M===void 0&&(M=E),this.world.collideObjects(S,P,E,R,M,!0)},collide:function(S,P,E,R,M){return E===void 0&&(E=null),R===void 0&&(R=null),M===void 0&&(M=E),this.world.collideObjects(S,P,E,R,M,!1)},collideTiles:function(S,P,E,R,M){return this.world.collideTiles(S,P,E,R,M)},overlapTiles:function(S,P,E,R,M){return this.world.overlapTiles(S,P,E,R,M)},pause:function(){return this.world.pause()},resume:function(){return this.world.resume()},accelerateTo:function(S,P,E,R,M,O){R===void 0&&(R=60);var w=Math.atan2(E-S.y,P-S.x);return S.body.acceleration.setToPolar(w,R),M!==void 0&&O!==void 0&&S.body.maxVelocity.set(M,O),w},accelerateToObject:function(S,P,E,R,M){return this.accelerateTo(S,P.x,P.y,E,R,M)},closest:function(S,P){P||(P=this.world.bodies.entries);for(var E=Number.MAX_VALUE,R=null,M=S.x,O=S.y,w=P.length,L=0;LE&&(R=F,E=D)}}return R},moveTo:function(S,P,E,R,M){R===void 0&&(R=60),M===void 0&&(M=0);var O=Math.atan2(E-S.y,P-S.x);return M>0&&(R=u(S.x,S.y,P,E)/(M/1e3)),S.body.velocity.setToPolar(O,R),O},moveToObject:function(S,P,E,R){return this.moveTo(S,P.x,P.y,E,R)},velocityFromAngle:function(S,P,E){return P===void 0&&(P=60),E===void 0&&(E=new p),E.setToPolar(g(S),P)},velocityFromRotation:function(S,P,E){return P===void 0&&(P=60),E===void 0&&(E=new p),E.setToPolar(S,P)},overlapRect:function(S,P,E,R,M,O){return s(this.world,S,P,E,R,M,O)},overlapCirc:function(S,P,E,R,M){return d(this.world,S,P,E,R,M)},shutdown:function(){if(this.world){var S=this.systems.events;S.off(c.UPDATE,this.world.update,this.world),S.off(c.POST_UPDATE,this.world.postUpdate,this.world),S.off(c.SHUTDOWN,this.shutdown,this),this.add.destroy(),this.world.destroy(),this.add=null,this.world=null}},destroy:function(){this.shutdown(),this.scene.sys.events.off(c.START,this.start,this),this.scene=null,this.systems=null}});h.register("ArcadePhysics",x,"arcadePhysics"),f.exports=x},25084:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(7864),u=t(13747),o=new l({Extends:u,Mixins:[g.Acceleration,g.Angular,g.Bounce,g.Debug,g.Drag,g.Enable,g.Friction,g.Gravity,g.Immovable,g.Mass,g.Pushable,g.Size,g.Velocity],initialize:function(n,r,d,s,h){u.call(this,n,r,d,s,h),this.body=null}});f.exports=o},97602:(f,T,t)=>{/** + * @author Richard Davey + * @author Benjamin D. Richards + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(47401),u=t(27037),o=t(23701),a=t(74118),n=t(94287),r=t(93736),d=new l({initialize:function(h,c){var p=64,m=64,x={x:0,y:0,angle:0,rotation:0,scaleX:1,scaleY:1,displayOriginX:0,displayOriginY:0},S=c!==void 0;S&&c.displayWidth&&(p=c.displayWidth,m=c.displayHeight),S||(c=x),this.world=h,this.gameObject=S?c:void 0,this.isBody=!0,this.transform={x:c.x,y:c.y,rotation:c.angle,scaleX:c.scaleX,scaleY:c.scaleY,displayOriginX:c.displayOriginX,displayOriginY:c.displayOriginY},this.debugShowBody=h.defaults.debugShowBody,this.debugShowVelocity=h.defaults.debugShowVelocity,this.debugBodyColor=h.defaults.bodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new r,this.position=new r(c.x-c.scaleX*c.displayOriginX,c.y-c.scaleY*c.displayOriginY),this.prev=this.position.clone(),this.prevFrame=this.position.clone(),this.allowRotation=!0,this.rotation=c.angle,this.preRotation=c.angle,this.width=p,this.height=m,this.sourceWidth=p,this.sourceHeight=m,c.frame&&(this.sourceWidth=c.frame.realWidth,this.sourceHeight=c.frame.realHeight),this.halfWidth=Math.abs(p/2),this.halfHeight=Math.abs(m/2),this.center=new r(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=new r,this.newVelocity=new r,this.deltaMax=new r,this.acceleration=new r,this.allowDrag=!0,this.drag=new r,this.allowGravity=!0,this.gravity=new r,this.bounce=new r,this.worldBounce=null,this.customBoundsRectangle=h.bounds,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.maxVelocity=new r(1e4,1e4),this.maxSpeed=-1,this.friction=new r(1,0),this.useDamping=!1,this.angularVelocity=0,this.angularAcceleration=0,this.angularDrag=0,this.maxAngular=1e3,this.mass=1,this.angle=0,this.speed=0,this.facing=g.FACING_NONE,this.immovable=!1,this.pushable=!0,this.moves=!0,this.customSeparateX=!1,this.customSeparateY=!1,this.overlapX=0,this.overlapY=0,this.overlapR=0,this.embedded=!1,this.collideWorldBounds=!1,this.checkCollision={none:!1,up:!0,down:!0,left:!0,right:!0},this.touching={none:!0,up:!1,down:!1,left:!1,right:!1},this.wasTouching={none:!0,up:!1,down:!1,left:!1,right:!1},this.blocked={none:!0,up:!1,down:!1,left:!1,right:!1},this.syncBounds=!1,this.physicsType=g.DYNAMIC_BODY,this._sx=c.scaleX,this._sy=c.scaleY,this._dx=0,this._dy=0,this._tx=0,this._ty=0,this._bounds=new a},updateBounds:function(){var s=this.gameObject,h=this.transform;if(s.parentContainer){var c=s.getWorldTransformMatrix(this.world._tempMatrix,this.world._tempMatrix2);h.x=c.tx,h.y=c.ty,h.rotation=o(c.rotation),h.scaleX=c.scaleX,h.scaleY=c.scaleY,h.displayOriginX=s.displayOriginX,h.displayOriginY=s.displayOriginY}else h.x=s.x,h.y=s.y,h.rotation=s.angle,h.scaleX=s.scaleX,h.scaleY=s.scaleY,h.displayOriginX=s.displayOriginX,h.displayOriginY=s.displayOriginY;var p=!1;if(this.syncBounds){var m=s.getBounds(this._bounds);this.width=m.width,this.height=m.height,p=!0}else{var x=Math.abs(h.scaleX),S=Math.abs(h.scaleY);(this._sx!==x||this._sy!==S)&&(this.width=this.sourceWidth*x,this.height=this.sourceHeight*S,this._sx=x,this._sy=S,p=!0)}p&&(this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.updateCenter())},updateCenter:function(){this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight)},updateFromGameObject:function(){this.updateBounds();var s=this.transform;this.position.x=s.x+s.scaleX*(this.offset.x-s.displayOriginX),this.position.y=s.y+s.scaleY*(this.offset.y-s.displayOriginY),this.updateCenter()},resetFlags:function(s){s===void 0&&(s=!1);var h=this.wasTouching,c=this.touching,p=this.blocked;s?(h.none=!0,h.up=!1,h.down=!1,h.left=!1,h.right=!1):(h.none=c.none,h.up=c.up,h.down=c.down,h.left=c.left,h.right=c.right),c.none=!0,c.up=!1,c.down=!1,c.left=!1,c.right=!1,p.none=!0,p.up=!1,p.down=!1,p.left=!1,p.right=!1,this.overlapR=0,this.overlapX=0,this.overlapY=0,this.embedded=!1},preUpdate:function(s,h){s&&this.resetFlags(),this.gameObject&&this.updateFromGameObject(),this.rotation=this.transform.rotation,this.preRotation=this.rotation,this.moves&&(this.prev.x=this.position.x,this.prev.y=this.position.y,this.prevFrame.x=this.position.x,this.prevFrame.y=this.position.y),s&&this.update(h)},update:function(s){if(this.prev.x=this.position.x,this.prev.y=this.position.y,this.moves){this.world.updateMotion(this,s);var h=this.velocity.x,c=this.velocity.y;this.newVelocity.set(h*s,c*s),this.position.add(this.newVelocity),this.updateCenter(),this.angle=Math.atan2(c,h),this.speed=Math.sqrt(h*h+c*c),this.collideWorldBounds&&this.checkWorldBounds()&&this.onWorldBounds&&this.world.emit(u.WORLD_BOUNDS,this,this.blocked.up,this.blocked.down,this.blocked.left,this.blocked.right)}this._dx=this.position.x-this.prev.x,this._dy=this.position.y-this.prev.y},postUpdate:function(){var s=this.position.x-this.prevFrame.x,h=this.position.y-this.prevFrame.y,c=this.gameObject;if(this.moves){var p=this.deltaMax.x,m=this.deltaMax.y;p!==0&&s!==0&&(s<0&&s<-p?s=-p:s>0&&s>p&&(s=p)),m!==0&&h!==0&&(h<0&&h<-m?h=-m:h>0&&h>m&&(h=m)),c&&(c.x+=s,c.y+=h)}s<0?this.facing=g.FACING_LEFT:s>0&&(this.facing=g.FACING_RIGHT),h<0?this.facing=g.FACING_UP:h>0&&(this.facing=g.FACING_DOWN),this.allowRotation&&c&&(c.angle+=this.deltaZ()),this._tx=s,this._ty=h},setBoundsRectangle:function(s){return this.customBoundsRectangle=s||this.world.bounds,this},checkWorldBounds:function(){var s=this.position,h=this.customBoundsRectangle,c=this.world.checkCollision,p=this.worldBounce?-this.worldBounce.x:-this.bounce.x,m=this.worldBounce?-this.worldBounce.y:-this.bounce.y,x=!1;return s.xh.right&&c.right&&(s.x=h.right-this.width,this.velocity.x*=p,this.blocked.right=!0,x=!0),s.yh.bottom&&c.down&&(s.y=h.bottom-this.height,this.velocity.y*=m,this.blocked.down=!0,x=!0),x&&(this.blocked.none=!1,this.updateCenter()),x},setOffset:function(s,h){return h===void 0&&(h=s),this.offset.set(s,h),this},setGameObject:function(s,h){return h===void 0&&(h=!0),this.world.remove(this),this.gameObject&&this.gameObject.body&&(this.gameObject.body=null),this.gameObject=s,s.body&&(s.body=this),this.setSize(),this.world.add(this),this.enable=h,this},setSize:function(s,h,c){c===void 0&&(c=!0);var p=this.gameObject;if(p&&(!s&&p.frame&&(s=p.frame.realWidth),!h&&p.frame&&(h=p.frame.realHeight)),this.sourceWidth=s,this.sourceHeight=h,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.updateCenter(),c&&p&&p.getCenter){var m=(p.width-s)/2,x=(p.height-h)/2;this.offset.set(m,x)}return this.isCircle=!1,this.radius=0,this},setCircle:function(s,h,c){return h===void 0&&(h=this.offset.x),c===void 0&&(c=this.offset.y),s>0?(this.isCircle=!0,this.radius=s,this.sourceWidth=s*2,this.sourceHeight=s*2,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(h,c),this.updateCenter()):this.isCircle=!1,this},reset:function(s,h){this.stop();var c=this.gameObject;c&&(c.setPosition(s,h),this.rotation=c.angle,this.preRotation=c.angle);var p=this.position;c&&c.getTopLeft?c.getTopLeft(p):p.set(s,h),this.prev.copy(p),this.prevFrame.copy(p),c&&this.updateBounds(),this.updateCenter(),this.collideWorldBounds&&this.checkWorldBounds(),this.resetFlags(!0)},stop:function(){return this.velocity.set(0),this.acceleration.set(0),this.speed=0,this.angularVelocity=0,this.angularAcceleration=0,this},getBounds:function(s){return s.x=this.x,s.y=this.y,s.right=this.right,s.bottom=this.bottom,s},hitTest:function(s,h){if(!this.isCircle)return n(this,s,h);if(this.radius>0&&s>=this.left&&s<=this.right&&h>=this.top&&h<=this.bottom){var c=(this.center.x-s)*(this.center.x-s),p=(this.center.y-h)*(this.center.y-h);return c+p<=this.radius*this.radius}return!1},onFloor:function(){return this.blocked.down},onCeiling:function(){return this.blocked.up},onWall:function(){return this.blocked.left||this.blocked.right},deltaAbsX:function(){return this._dx>0?this._dx:-this._dx},deltaAbsY:function(){return this._dy>0?this._dy:-this._dy},deltaX:function(){return this._dx},deltaY:function(){return this._dy},deltaXFinal:function(){return this._tx},deltaYFinal:function(){return this._ty},deltaZ:function(){return this.rotation-this.preRotation},destroy:function(){this.enable=!1,this.world&&this.world.pendingDestroy.set(this)},drawDebug:function(s){var h=this.position,c=h.x+this.halfWidth,p=h.y+this.halfHeight;this.debugShowBody&&(s.lineStyle(s.defaultStrokeWidth,this.debugBodyColor),this.isCircle?s.strokeCircle(c,p,this.width/2):(this.checkCollision.up&&s.lineBetween(h.x,h.y,h.x+this.width,h.y),this.checkCollision.right&&s.lineBetween(h.x+this.width,h.y,h.x+this.width,h.y+this.height),this.checkCollision.down&&s.lineBetween(h.x,h.y+this.height,h.x+this.width,h.y+this.height),this.checkCollision.left&&s.lineBetween(h.x,h.y,h.x,h.y+this.height))),this.debugShowVelocity&&(s.lineStyle(s.defaultStrokeWidth,this.world.defaults.velocityDebugColor,1),s.lineBetween(c,p,c+this.velocity.x/2,p+this.velocity.y/2))},willDrawDebug:function(){return this.debugShowBody||this.debugShowVelocity},setCollideWorldBounds:function(s,h,c,p){s===void 0&&(s=!0),this.collideWorldBounds=s;var m=h!==void 0,x=c!==void 0;return(m||x)&&(this.worldBounce||(this.worldBounce=new r),m&&(this.worldBounce.x=h),x&&(this.worldBounce.y=c)),p!==void 0&&(this.onWorldBounds=p),this},setVelocity:function(s,h){return this.velocity.set(s,h),s=this.velocity.x,h=this.velocity.y,this.speed=Math.sqrt(s*s+h*h),this},setVelocityX:function(s){return this.setVelocity(s,this.velocity.y)},setVelocityY:function(s){return this.setVelocity(this.velocity.x,s)},setMaxVelocity:function(s,h){return this.maxVelocity.set(s,h),this},setMaxVelocityX:function(s){return this.maxVelocity.x=s,this},setMaxVelocityY:function(s){return this.maxVelocity.y=s,this},setMaxSpeed:function(s){return this.maxSpeed=s,this},setBounce:function(s,h){return this.bounce.set(s,h),this},setBounceX:function(s){return this.bounce.x=s,this},setBounceY:function(s){return this.bounce.y=s,this},setAcceleration:function(s,h){return this.acceleration.set(s,h),this},setAccelerationX:function(s){return this.acceleration.x=s,this},setAccelerationY:function(s){return this.acceleration.y=s,this},setAllowDrag:function(s){return s===void 0&&(s=!0),this.allowDrag=s,this},setAllowGravity:function(s){return s===void 0&&(s=!0),this.allowGravity=s,this},setAllowRotation:function(s){return s===void 0&&(s=!0),this.allowRotation=s,this},setDrag:function(s,h){return this.drag.set(s,h),this},setDamping:function(s){return this.useDamping=s,this},setDragX:function(s){return this.drag.x=s,this},setDragY:function(s){return this.drag.y=s,this},setGravity:function(s,h){return this.gravity.set(s,h),this},setGravityX:function(s){return this.gravity.x=s,this},setGravityY:function(s){return this.gravity.y=s,this},setFriction:function(s,h){return this.friction.set(s,h),this},setFrictionX:function(s){return this.friction.x=s,this},setFrictionY:function(s){return this.friction.y=s,this},setAngularVelocity:function(s){return this.angularVelocity=s,this},setAngularAcceleration:function(s){return this.angularAcceleration=s,this},setAngularDrag:function(s){return this.angularDrag=s,this},setMass:function(s){return this.mass=s,this},setImmovable:function(s){return s===void 0&&(s=!0),this.immovable=s,this},setEnable:function(s){return s===void 0&&(s=!0),this.enable=s,this},processX:function(s,h,c,p){this.x+=s,this.updateCenter(),h!==null&&(this.velocity.x=h);var m=this.blocked;c&&(m.left=!0,m.none=!1),p&&(m.right=!0,m.none=!1)},processY:function(s,h,c,p){this.y+=s,this.updateCenter(),h!==null&&(this.velocity.y=h);var m=this.blocked;c&&(m.up=!0,m.none=!1),p&&(m.down=!0,m.none=!1)},x:{get:function(){return this.position.x},set:function(s){this.position.x=s}},y:{get:function(){return this.position.y},set:function(s){this.position.y=s}},left:{get:function(){return this.position.x}},right:{get:function(){return this.position.x+this.width}},top:{get:function(){return this.position.y}},bottom:{get:function(){return this.position.y+this.height}}});f.exports=d},3909:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=new l({initialize:function(o,a,n,r,d,s,h){this.world=o,this.name="",this.active=!0,this.overlapOnly=a,this.object1=n,this.object2=r,this.collideCallback=d,this.processCallback=s,this.callbackContext=h},setName:function(u){return this.name=u,this},update:function(){this.world.collideObjects(this.object1,this.object2,this.collideCallback,this.processCallback,this.callbackContext,this.overlapOnly)},destroy:function(){this.world.removeCollider(this),this.active=!1,this.world=null,this.object1=null,this.object2=null,this.collideCallback=null,this.processCallback=null,this.callbackContext=null}});f.exports=g},99523:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(62832),g=t(25084),u=t(97602),o=t(56694),a=t(47401),n=t(10481),r=t(66634),d=t(46346),s=new o({initialize:function(c){this.world=c,this.scene=c.scene,this.sys=c.scene.sys},collider:function(h,c,p,m,x){return this.world.addCollider(h,c,p,m,x)},overlap:function(h,c,p,m,x){return this.world.addOverlap(h,c,p,m,x)},existing:function(h,c){var p=c?a.STATIC_BODY:a.DYNAMIC_BODY;return this.world.enableBody(h,p),h},staticImage:function(h,c,p,m){var x=new l(this.scene,h,c,p,m);return this.sys.displayList.add(x),this.world.enableBody(x,a.STATIC_BODY),x},image:function(h,c,p,m){var x=new l(this.scene,h,c,p,m);return this.sys.displayList.add(x),this.world.enableBody(x,a.DYNAMIC_BODY),x},staticSprite:function(h,c,p,m){var x=new g(this.scene,h,c,p,m);return this.sys.displayList.add(x),this.sys.updateList.add(x),this.world.enableBody(x,a.STATIC_BODY),x},sprite:function(h,c,p,m){var x=new g(this.scene,h,c,p,m);return this.sys.displayList.add(x),this.sys.updateList.add(x),this.world.enableBody(x,a.DYNAMIC_BODY),x},staticGroup:function(h,c){return this.sys.updateList.add(new d(this.world,this.world.scene,h,c))},group:function(h,c){return this.sys.updateList.add(new n(this.world,this.world.scene,h,c))},body:function(h,c,p,m){var x=new u(this.world);return x.position.set(h,c),p&&m&&x.setSize(p,m),this.world.add(x,a.DYNAMIC_BODY),x},staticBody:function(h,c,p,m){var x=new r(this.world);return x.position.set(h,c),p&&m&&x.setSize(p,m),this.world.add(x,a.STATIC_BODY),x},destroy:function(){this.world=null,this.scene=null,this.sys=null}});f.exports=s},75671:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(47401),g=function(u,o,a,n){var r=0,d=u.deltaAbsX()+o.deltaAbsX()+n;return u._dx===0&&o._dx===0?(u.embedded=!0,o.embedded=!0):u._dx>o._dx?(r=u.right-o.x,r>d&&!a||u.checkCollision.right===!1||o.checkCollision.left===!1?r=0:(u.touching.none=!1,u.touching.right=!0,o.touching.none=!1,o.touching.left=!0,o.physicsType===l.STATIC_BODY&&!a&&(u.blocked.none=!1,u.blocked.right=!0),u.physicsType===l.STATIC_BODY&&!a&&(o.blocked.none=!1,o.blocked.left=!0))):u._dxd&&!a||u.checkCollision.left===!1||o.checkCollision.right===!1?r=0:(u.touching.none=!1,u.touching.left=!0,o.touching.none=!1,o.touching.right=!0,o.physicsType===l.STATIC_BODY&&!a&&(u.blocked.none=!1,u.blocked.left=!0),u.physicsType===l.STATIC_BODY&&!a&&(o.blocked.none=!1,o.blocked.right=!0))),u.overlapX=r,o.overlapX=r,r};f.exports=g},66185:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(47401),g=function(u,o,a,n){var r=0,d=u.deltaAbsY()+o.deltaAbsY()+n;return u._dy===0&&o._dy===0?(u.embedded=!0,o.embedded=!0):u._dy>o._dy?(r=u.bottom-o.y,r>d&&!a||u.checkCollision.down===!1||o.checkCollision.up===!1?r=0:(u.touching.none=!1,u.touching.down=!0,o.touching.none=!1,o.touching.up=!0,o.physicsType===l.STATIC_BODY&&!a&&(u.blocked.none=!1,u.blocked.down=!0),u.physicsType===l.STATIC_BODY&&!a&&(o.blocked.none=!1,o.blocked.up=!0))):u._dyd&&!a||u.checkCollision.up===!1||o.checkCollision.down===!1?r=0:(u.touching.none=!1,u.touching.up=!0,o.touching.none=!1,o.touching.down=!0,o.physicsType===l.STATIC_BODY&&!a&&(u.blocked.none=!1,u.blocked.up=!0),u.physicsType===l.STATIC_BODY&&!a&&(o.blocked.none=!1,o.blocked.down=!0))),u.overlapY=r,o.overlapY=r,r};f.exports=g},10481:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(25084),g=t(56694),u=t(47401),o=t(72632),a=t(59192),n=t(42911),r=new g({Extends:a,initialize:function(s,h,c,p){if(!c&&!p)p={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler};else if(n(c))p=c,c=null,p.internalCreateCallback=this.createCallbackHandler,p.internalRemoveCallback=this.removeCallbackHandler;else if(Array.isArray(c)&&n(c[0])){p=c[0];var m=this;c.forEach(function(x){x.internalCreateCallback=m.createCallbackHandler,x.internalRemoveCallback=m.removeCallbackHandler}),c=null}else p={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler};this.world=s,p.classType=o(p,"classType",l),this.physicsType=u.DYNAMIC_BODY,this.defaults={setCollideWorldBounds:o(p,"collideWorldBounds",!1),setBoundsRectangle:o(p,"customBoundsRectangle",null),setAccelerationX:o(p,"accelerationX",0),setAccelerationY:o(p,"accelerationY",0),setAllowDrag:o(p,"allowDrag",!0),setAllowGravity:o(p,"allowGravity",!0),setAllowRotation:o(p,"allowRotation",!0),setDamping:o(p,"useDamping",!1),setBounceX:o(p,"bounceX",0),setBounceY:o(p,"bounceY",0),setDragX:o(p,"dragX",0),setDragY:o(p,"dragY",0),setEnable:o(p,"enable",!0),setGravityX:o(p,"gravityX",0),setGravityY:o(p,"gravityY",0),setFrictionX:o(p,"frictionX",0),setFrictionY:o(p,"frictionY",0),setMaxSpeed:o(p,"maxSpeed",-1),setMaxVelocityX:o(p,"maxVelocityX",1e4),setMaxVelocityY:o(p,"maxVelocityY",1e4),setVelocityX:o(p,"velocityX",0),setVelocityY:o(p,"velocityY",0),setAngularVelocity:o(p,"angularVelocity",0),setAngularAcceleration:o(p,"angularAcceleration",0),setAngularDrag:o(p,"angularDrag",0),setMass:o(p,"mass",1),setImmovable:o(p,"immovable",!1)},a.call(this,h,c,p),this.type="PhysicsGroup"},createCallbackHandler:function(d){d.body||this.world.enableBody(d,u.DYNAMIC_BODY);var s=d.body;for(var h in this.defaults)s[h](this.defaults[h])},removeCallbackHandler:function(d){d.body&&this.world.disableBody(d)},setVelocity:function(d,s,h){h===void 0&&(h=0);for(var c=this.getChildren(),p=0;p{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T,t,l,g,u,o,a,n,r,d,s,h,c,p,m,x,S,P=function(L,F,b){T=L,t=F;var D=T.velocity.x,N=t.velocity.x;return l=T.pushable,r=T._dx<0,d=T._dx>0,s=T._dx===0,m=Math.abs(T.right-t.x)<=Math.abs(t.right-T.x),a=N-D*T.bounce.x,g=t.pushable,h=t._dx<0,c=t._dx>0,p=t._dx===0,x=!m,n=D-N*t.bounce.x,S=Math.abs(b),E()},E=function(){return d&&m&&t.blocked.right?(T.processX(-S,a,!1,!0),1):r&&x&&t.blocked.left?(T.processX(S,a,!0),1):c&&x&&T.blocked.right?(t.processX(-S,n,!1,!0),2):h&&m&&T.blocked.left?(t.processX(S,n,!0),2):0},R=function(){var L=T.velocity.x,F=t.velocity.x,b=Math.sqrt(F*F*t.mass/T.mass)*(F>0?1:-1),D=Math.sqrt(L*L*T.mass/t.mass)*(L>0?1:-1),N=(b+D)*.5;return b-=N,D-=N,u=N+b*T.bounce.x,o=N+D*t.bounce.x,r&&x?M(0):h&&m?M(1):d&&m?M(2):c&&x?M(3):!1},M=function(L){if(l&&g)S*=.5,L===0||L===3?(T.processX(S,u),t.processX(-S,o)):(T.processX(-S,u),t.processX(S,o));else if(l&&!g)L===0||L===3?T.processX(S,a,!0):T.processX(-S,a,!1,!0);else if(!l&&g)L===0||L===3?t.processX(-S,n,!1,!0):t.processX(S,n,!0);else{var F=S*.5;L===0?p?(T.processX(S,0,!0),t.processX(0,null,!1,!0)):c?(T.processX(F,0,!0),t.processX(-F,0,!1,!0)):(T.processX(F,t.velocity.x,!0),t.processX(-F,null,!1,!0)):L===1?s?(T.processX(0,null,!1,!0),t.processX(S,0,!0)):d?(T.processX(-F,0,!1,!0),t.processX(F,0,!0)):(T.processX(-F,null,!1,!0),t.processX(F,T.velocity.x,!0)):L===2?p?(T.processX(-S,0,!1,!0),t.processX(0,null,!0)):h?(T.processX(-F,0,!1,!0),t.processX(F,0,!0)):(T.processX(-F,t.velocity.x,!1,!0),t.processX(F,null,!0)):L===3&&(s?(T.processX(0,null,!0),t.processX(-S,0,!1,!0)):r?(T.processX(F,0,!0),t.processX(-F,0,!1,!0)):(T.processX(F,t.velocity.y,!0),t.processX(-F,null,!1,!0)))}return!0},O=function(L){L===1?t.velocity.x=0:m?t.processX(S,n,!0):t.processX(-S,n,!1,!0),T.moves&&(t.y+=(T.y-T.prev.y)*T.friction.y,t._dy=t.y-t.prev.y)},w=function(L){L===2?T.velocity.x=0:x?T.processX(S,a,!0):T.processX(-S,a,!1,!0),t.moves&&(T.y+=(t.y-t.prev.y)*t.friction.y,T._dy=T.y-T.prev.y)};f.exports={BlockCheck:E,Check:R,Set:P,Run:M,RunImmovableBody1:O,RunImmovableBody2:w}},67050:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T,t,l,g,u,o,a,n,r,d,s,h,c,p,m,x,S,P=function(L,F,b){T=L,t=F;var D=T.velocity.y,N=t.velocity.y;return l=T.pushable,r=T._dy<0,d=T._dy>0,s=T._dy===0,m=Math.abs(T.bottom-t.y)<=Math.abs(t.bottom-T.y),a=N-D*T.bounce.y,g=t.pushable,h=t._dy<0,c=t._dy>0,p=t._dy===0,x=!m,n=D-N*t.bounce.y,S=Math.abs(b),E()},E=function(){return d&&m&&t.blocked.down?(T.processY(-S,a,!1,!0),1):r&&x&&t.blocked.up?(T.processY(S,a,!0),1):c&&x&&T.blocked.down?(t.processY(-S,n,!1,!0),2):h&&m&&T.blocked.up?(t.processY(S,n,!0),2):0},R=function(){var L=T.velocity.y,F=t.velocity.y,b=Math.sqrt(F*F*t.mass/T.mass)*(F>0?1:-1),D=Math.sqrt(L*L*T.mass/t.mass)*(L>0?1:-1),N=(b+D)*.5;return b-=N,D-=N,u=N+b*T.bounce.y,o=N+D*t.bounce.y,r&&x?M(0):h&&m?M(1):d&&m?M(2):c&&x?M(3):!1},M=function(L){if(l&&g)S*=.5,L===0||L===3?(T.processY(S,u),t.processY(-S,o)):(T.processY(-S,u),t.processY(S,o));else if(l&&!g)L===0||L===3?T.processY(S,a,!0):T.processY(-S,a,!1,!0);else if(!l&&g)L===0||L===3?t.processY(-S,n,!1,!0):t.processY(S,n,!0);else{var F=S*.5;L===0?p?(T.processY(S,0,!0),t.processY(0,null,!1,!0)):c?(T.processY(F,0,!0),t.processY(-F,0,!1,!0)):(T.processY(F,t.velocity.y,!0),t.processY(-F,null,!1,!0)):L===1?s?(T.processY(0,null,!1,!0),t.processY(S,0,!0)):d?(T.processY(-F,0,!1,!0),t.processY(F,0,!0)):(T.processY(-F,null,!1,!0),t.processY(F,T.velocity.y,!0)):L===2?p?(T.processY(-S,0,!1,!0),t.processY(0,null,!0)):h?(T.processY(-F,0,!1,!0),t.processY(F,0,!0)):(T.processY(-F,t.velocity.y,!1,!0),t.processY(F,null,!0)):L===3&&(s?(T.processY(0,null,!0),t.processY(-S,0,!1,!0)):r?(T.processY(F,0,!0),t.processY(-F,0,!1,!0)):(T.processY(F,t.velocity.y,!0),t.processY(-F,null,!1,!0)))}return!0},O=function(L){L===1?t.velocity.y=0:m?t.processY(S,n,!0):t.processY(-S,n,!1,!0),T.moves&&(t.x+=(T.x-T.prev.x)*T.friction.x,t._dx=t.x-t.prev.x)},w=function(L){L===2?T.velocity.y=0:x?T.processY(S,a,!0):T.processY(-S,a,!1,!0),t.moves&&(T.x+=(t.x-t.prev.x)*t.friction.x,T._dx=T.x-T.prev.x)};f.exports={BlockCheck:E,Check:R,Set:P,Run:M,RunImmovableBody1:O,RunImmovableBody2:w}},61777:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(75671),g=t(22916),u=function(o,a,n,r,d){d===void 0&&(d=l(o,a,n,r));var s=o.immovable,h=a.immovable;if(n||d===0||s&&h||o.customSeparateX||a.customSeparateX)return d!==0||o.embedded&&a.embedded;var c=g.Set(o,a,d);return!s&&!h?c>0?!0:g.Check():(s?g.RunImmovableBody1(c):h&&g.RunImmovableBody2(c),!0)};f.exports=u},25299:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(66185),g=t(67050),u=function(o,a,n,r,d){d===void 0&&(d=l(o,a,n,r));var s=o.immovable,h=a.immovable;if(n||d===0||s&&h||o.customSeparateY||a.customSeparateY)return d!==0||o.embedded&&a.embedded;var c=g.Set(o,a,d);return!s&&!h?c>0?!0:g.Check():(s?g.RunImmovableBody1(c):h&&g.RunImmovableBody2(c),!0)};f.exports=u},66634:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(65650),g=t(56694),u=t(47401),o=t(94287),a=t(93736),n=new g({initialize:function(d,s){var h=64,c=64,p={x:0,y:0,angle:0,rotation:0,scaleX:1,scaleY:1,displayOriginX:0,displayOriginY:0},m=s!==void 0;m&&s.displayWidth&&(h=s.displayWidth,c=s.displayHeight),m||(s=p),this.world=d,this.gameObject=m?s:void 0,this.isBody=!0,this.debugShowBody=d.defaults.debugShowStaticBody,this.debugBodyColor=d.defaults.staticBodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new a,this.position=new a(s.x-h*s.originX,s.y-c*s.originY),this.width=h,this.height=c,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center=new a(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=a.ZERO,this.allowGravity=!1,this.gravity=a.ZERO,this.bounce=a.ZERO,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.mass=1,this.immovable=!0,this.pushable=!1,this.customSeparateX=!1,this.customSeparateY=!1,this.overlapX=0,this.overlapY=0,this.overlapR=0,this.embedded=!1,this.collideWorldBounds=!1,this.checkCollision={none:!1,up:!0,down:!0,left:!0,right:!0},this.touching={none:!0,up:!1,down:!1,left:!1,right:!1},this.wasTouching={none:!0,up:!1,down:!1,left:!1,right:!1},this.blocked={none:!0,up:!1,down:!1,left:!1,right:!1},this.physicsType=u.STATIC_BODY,this._dx=0,this._dy=0},setGameObject:function(r,d){return r&&r!==this.gameObject&&(this.gameObject.body=null,r.body=this,this.gameObject=r),d&&this.updateFromGameObject(),this},updateFromGameObject:function(){this.world.staticTree.remove(this);var r=this.gameObject;return r.getTopLeft(this.position),this.width=r.displayWidth,this.height=r.displayHeight,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.world.staticTree.insert(this),this},setOffset:function(r,d){return d===void 0&&(d=r),this.world.staticTree.remove(this),this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(r,d),this.position.x+=this.offset.x,this.position.y+=this.offset.y,this.updateCenter(),this.world.staticTree.insert(this),this},setSize:function(r,d,s){s===void 0&&(s=!0);var h=this.gameObject;if(!r&&h.frame&&(r=h.frame.realWidth),!d&&h.frame&&(d=h.frame.realHeight),this.world.staticTree.remove(this),this.width=r,this.height=d,this.halfWidth=Math.floor(r/2),this.halfHeight=Math.floor(d/2),s&&h.getCenter){var c=h.displayWidth/2,p=h.displayHeight/2;this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(c-this.halfWidth,p-this.halfHeight),this.position.x+=this.offset.x,this.position.y+=this.offset.y}return this.updateCenter(),this.isCircle=!1,this.radius=0,this.world.staticTree.insert(this),this},setCircle:function(r,d,s){return d===void 0&&(d=this.offset.x),s===void 0&&(s=this.offset.y),r>0?(this.world.staticTree.remove(this),this.isCircle=!0,this.radius=r,this.width=r*2,this.height=r*2,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(d,s),this.updateCenter(),this.world.staticTree.insert(this)):this.isCircle=!1,this},updateCenter:function(){this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight)},reset:function(r,d){var s=this.gameObject;r===void 0&&(r=s.x),d===void 0&&(d=s.y),this.world.staticTree.remove(this),s.setPosition(r,d),s.getTopLeft(this.position),this.updateCenter(),this.world.staticTree.insert(this)},stop:function(){return this},getBounds:function(r){return r.x=this.x,r.y=this.y,r.right=this.right,r.bottom=this.bottom,r},hitTest:function(r,d){return this.isCircle?l(this,r,d):o(this,r,d)},postUpdate:function(){},deltaAbsX:function(){return 0},deltaAbsY:function(){return 0},deltaX:function(){return 0},deltaY:function(){return 0},deltaZ:function(){return 0},destroy:function(){this.enable=!1,this.world.pendingDestroy.set(this)},drawDebug:function(r){var d=this.position,s=d.x+this.halfWidth,h=d.y+this.halfHeight;this.debugShowBody&&(r.lineStyle(r.defaultStrokeWidth,this.debugBodyColor,1),this.isCircle?r.strokeCircle(s,h,this.width/2):r.strokeRect(d.x,d.y,this.width,this.height))},willDrawDebug:function(){return this.debugShowBody},setMass:function(r){return r<=0&&(r=.1),this.mass=r,this},x:{get:function(){return this.position.x},set:function(r){this.world.staticTree.remove(this),this.position.x=r,this.world.staticTree.insert(this)}},y:{get:function(){return this.position.y},set:function(r){this.world.staticTree.remove(this),this.position.y=r,this.world.staticTree.insert(this)}},left:{get:function(){return this.position.x}},right:{get:function(){return this.position.x+this.width}},top:{get:function(){return this.position.y}},bottom:{get:function(){return this.position.y+this.height}}});f.exports=n},46346:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(25084),g=t(56694),u=t(47401),o=t(72632),a=t(59192),n=t(42911),r=new g({Extends:a,initialize:function(s,h,c,p){!c&&!p?p={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler,createMultipleCallback:this.createMultipleCallbackHandler,classType:l}:n(c)?(p=c,c=null,p.internalCreateCallback=this.createCallbackHandler,p.internalRemoveCallback=this.removeCallbackHandler,p.createMultipleCallback=this.createMultipleCallbackHandler,p.classType=o(p,"classType",l)):Array.isArray(c)&&n(c[0])?(p=c,c=null,p.forEach(function(m){m.internalCreateCallback=this.createCallbackHandler,m.internalRemoveCallback=this.removeCallbackHandler,m.createMultipleCallback=this.createMultipleCallbackHandler,m.classType=o(m,"classType",l)})):p={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler},this.world=s,this.physicsType=u.STATIC_BODY,a.call(this,h,c,p),this.type="StaticPhysicsGroup"},createCallbackHandler:function(d){d.body||this.world.enableBody(d,u.STATIC_BODY)},removeCallbackHandler:function(d){d.body&&this.world.disableBody(d)},createMultipleCallbackHandler:function(){this.refresh()},refresh:function(){for(var d=this.children.entries,s=0;s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(94240),g=t(97602),u=t(82897),o=t(56694),a=t(3909),n=t(47401),r=t(53996),d=t(92951),s=t(6659),h=t(27037),c=t(88456),p=t(41935),m=t(54726),x=t(75671),S=t(66185),P=t(44662),E=t(10850),R=t(83392),M=t(74623),O=t(25163),w=t(74118),L=t(68687),F=t(27354),b=t(61777),D=t(25299),N=t(58403),z=t(66634),W=t(28808),Y=t(69360),j=t(93736),G=t(1071),V=new o({Extends:s,initialize:function(B,U){s.call(this),this.scene=B,this.bodies=new N,this.staticBodies=new N,this.pendingDestroy=new N,this.colliders=new M,this.gravity=new j(E(U,"gravity.x",0),E(U,"gravity.y",0)),this.bounds=new w(E(U,"x",0),E(U,"y",0),E(U,"width",B.sys.scale.width),E(U,"height",B.sys.scale.height)),this.checkCollision={up:E(U,"checkCollision.up",!0),down:E(U,"checkCollision.down",!0),left:E(U,"checkCollision.left",!0),right:E(U,"checkCollision.right",!0)},this.fps=E(U,"fps",60),this.fixedStep=E(U,"fixedStep",!0),this._elapsed=0,this._frameTime=1/this.fps,this._frameTimeMS=1e3*this._frameTime,this.stepsLastFrame=0,this.timeScale=E(U,"timeScale",1),this.OVERLAP_BIAS=E(U,"overlapBias",4),this.TILE_BIAS=E(U,"tileBias",16),this.forceX=E(U,"forceX",!1),this.isPaused=E(U,"isPaused",!1),this._total=0,this.drawDebug=E(U,"debug",!1),this.debugGraphic,this.defaults={debugShowBody:E(U,"debugShowBody",!0),debugShowStaticBody:E(U,"debugShowStaticBody",!0),debugShowVelocity:E(U,"debugShowVelocity",!0),bodyDebugColor:E(U,"debugBodyColor",16711935),staticBodyDebugColor:E(U,"debugStaticBodyColor",255),velocityDebugColor:E(U,"debugVelocityColor",65280)},this.maxEntries=E(U,"maxEntries",16),this.useTree=E(U,"useTree",!0),this.tree=new L(this.maxEntries),this.staticTree=new L(this.maxEntries),this.treeMinMax={minX:0,minY:0,maxX:0,maxY:0},this._tempMatrix=new Y,this._tempMatrix2=new Y,this.tileFilterOptions={isColliding:!0,isNotEmpty:!0,hasInterestingFace:!0},this.drawDebug&&this.createDebugGraphic()},enable:function(I,B){B===void 0&&(B=n.DYNAMIC_BODY),Array.isArray(I)||(I=[I]);for(var U=0;U=$;for(this.fixedStep||(X=B*.001,J=!0,this._elapsed=0),U=0;U=$;)this._elapsed-=$,this.step(X)}},step:function(I){var B,U,X=this.bodies.entries,$=X.length;for(B=0;B<$;B++)U=X[B],U.enable&&U.update(I);this.useTree&&(this.tree.clear(),this.tree.load(X));var k=this.colliders.update();for(B=0;B0){var q=this.tree,_=this.staticTree;for(U=J.entries,X=U.length,I=0;I-1&&I.velocity.length()>it&&(I.velocity.normalize().scale(it),et=it),I.speed=et},separate:function(I,B,U,X,$){var k,K,J=!1,q=!0;if(!I.enable||!B.enable||I.checkCollision.none||B.checkCollision.none||!this.intersects(I,B)||U&&U.call(X,I.gameObject,B.gameObject)===!1)return J;if(I.isCircle||B.isCircle){var _=this.separateCircle(I,B,$);_.result?(J=!0,q=!1):(k=_.x,K=_.y,q=!0)}if(q){var et=!1,it=!1,tt=this.OVERLAP_BIAS;$?(et=b(I,B,$,tt,k),it=D(I,B,$,tt,K)):this.forceX||Math.abs(this.gravity.y+I.gravity.y)ot&&(it=r(st,mt,ot,nt)-ct):mt>ht&&(stot&&(it=r(st,mt,ot,ht)-ct)),it*=-1}else it=I.halfWidth+B.halfWidth-d(k,K);I.overlapR=it,B.overlapR=it;var St=l(k,K),At=(it+R.EPSILON)*Math.cos(St),Dt=(it+R.EPSILON)*Math.sin(St),Pt={overlap:it,result:!1,x:At,y:Dt};if(U&&(!tt||tt&&it!==0))return Pt.result=!0,Pt;if(!tt&&it===0||J&&q||I.customSeparateX||B.customSeparateX)return Pt.x=void 0,Pt.y=void 0,Pt;var pt=!I.pushable&&!B.pushable;if(tt){var ut=k.x-K.x,Mt=k.y-K.y,bt=Math.sqrt(Math.pow(ut,2)+Math.pow(Mt,2)),Yt=(K.x-k.x)/bt||0,Zt=(K.y-k.y)/bt||0,Me=2*(_.x*Yt+_.y*Zt-et.x*Yt-et.y*Zt)/(I.mass+B.mass);(J||q)&&(Me*=2),J||(_.x=_.x-Me/I.mass*Yt,_.y=_.y-Me/I.mass*Zt,_.multiply(I.bounce)),q||(et.x=et.x+Me/B.mass*Yt,et.y=et.y+Me/B.mass*Zt,et.multiply(B.bounce)),!J&&!q&&(At*=.5,Dt*=.5),J||(I.x-=At,I.y-=Dt,I.updateCenter()),q||(B.x+=At,B.y+=Dt,B.updateCenter()),Pt.result=!0}else!J||I.pushable||pt?(I.x-=At,I.y-=Dt,I.updateCenter()):(!q||B.pushable||pt)&&(B.x+=At,B.y+=Dt,B.updateCenter()),Pt.x=void 0,Pt.y=void 0;return Pt},intersects:function(I,B){return I===B?!1:!I.isCircle&&!B.isCircle?!(I.right<=B.left||I.bottom<=B.top||I.left>=B.right||I.top>=B.bottom):I.isCircle?B.isCircle?d(I.center,B.center)<=I.halfWidth+B.halfWidth:this.circleBodyIntersects(I,B):this.circleBodyIntersects(B,I)},circleBodyIntersects:function(I,B){var U=u(I.center.x,B.left,B.right),X=u(I.center.y,B.top,B.bottom),$=(I.center.x-U)*(I.center.x-U),k=(I.center.y-X)*(I.center.y-X);return $+k<=I.halfWidth*I.halfWidth},overlap:function(I,B,U,X,$){return U===void 0&&(U=null),X===void 0&&(X=null),$===void 0&&($=U),this.collideObjects(I,B,U,X,$,!0)},collide:function(I,B,U,X,$){return U===void 0&&(U=null),X===void 0&&(X=null),$===void 0&&($=U),this.collideObjects(I,B,U,X,$,!1)},collideObjects:function(I,B,U,X,$,k){var K,J;I.isParent&&(I.physicsType===void 0||B===void 0||I===B)&&(I=I.children.entries),B&&B.isParent&&B.physicsType===void 0&&(B=B.children.entries);var q=Array.isArray(I),_=Array.isArray(B);if(this._total=0,!q&&!_)this.collideHandler(I,B,U,X,$,k);else if(!q&&_)for(K=0;K0},collideHandler:function(I,B,U,X,$,k){if(B===void 0&&I.isParent)return this.collideGroupVsGroup(I,I,U,X,$,k);if(!I||!B)return!1;if(I.body||I.isBody){if(B.body||B.isBody)return this.collideSpriteVsSprite(I,B,U,X,$,k);if(B.isParent)return this.collideSpriteVsGroup(I,B,U,X,$,k);if(B.isTilemap)return this.collideSpriteVsTilemapLayer(I,B,U,X,$,k)}else if(I.isParent){if(B.body||B.isBody)return this.collideSpriteVsGroup(B,I,U,X,$,k);if(B.isParent)return this.collideGroupVsGroup(I,B,U,X,$,k);if(B.isTilemap)return this.collideGroupVsTilemapLayer(I,B,U,X,$,k)}else if(I.isTilemap){if(B.body||B.isBody)return this.collideSpriteVsTilemapLayer(B,I,U,X,$,k);if(B.isParent)return this.collideGroupVsTilemapLayer(B,I,U,X,$,k)}},collideSpriteVsSprite:function(I,B,U,X,$,k){var K=I.isBody?I:I.body,J=B.isBody?B:B.body;return!K||!J?!1:(this.separate(K,J,X,$,k)&&(U&&U.call($,I,B),this._total++),!0)},collideSpriteVsGroup:function(I,B,U,X,$,k){var K=I.isBody?I:I.body;if(!(B.length===0||!K||!K.enable||K.checkCollision.none)){var J,q,_;if(this.useTree||B.physicsType===n.STATIC_BODY){var et=this.treeMinMax;et.minX=K.left,et.minY=K.top,et.maxX=K.right,et.maxY=K.bottom;var it=B.physicsType===n.DYNAMIC_BODY?this.tree.search(et):this.staticTree.search(et);for(q=it.length,J=0;Jit.baseTileWidth){var tt=(it.tileWidth-it.baseTileWidth)*B.scaleX;J-=tt,_+=tt}if(it.tileHeight>it.baseTileHeight){var st=(it.tileHeight-it.baseTileHeight)*B.scaleY;et+=st}var mt=k?null:this.tileFilterOptions,ct=P(J,q,_,et,mt,B.scene.cameras.main,B.layer);return ct.length===0?!1:this.collideSpriteVsTilesHandler(I,ct,U,X,$,k,!0)},collideSpriteVsTilesHandler:function(I,B,U,X,$,k,K){for(var J=I.isBody?I:I.body,q,_={left:0,right:0,top:0,bottom:0},et,it=!1,tt=0;tt{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={setAcceleration:function(t,l){return this.body.acceleration.set(t,l),this},setAccelerationX:function(t){return this.body.acceleration.x=t,this},setAccelerationY:function(t){return this.body.acceleration.y=t,this}};f.exports=T},29257:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={setAngularVelocity:function(t){return this.body.angularVelocity=t,this},setAngularAcceleration:function(t){return this.body.angularAcceleration=t,this},setAngularDrag:function(t){return this.body.angularDrag=t,this}};f.exports=T},62122:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={setBounce:function(t,l){return this.body.bounce.set(t,l),this},setBounceX:function(t){return this.body.bounce.x=t,this},setBounceY:function(t){return this.body.bounce.y=t,this},setCollideWorldBounds:function(t,l,g,u){return this.body.setCollideWorldBounds(t,l,g,u),this}};f.exports=T},99803:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={setDebug:function(t,l,g){return this.debugShowBody=t,this.debugShowVelocity=l,this.debugBodyColor=g,this},setDebugBodyColor:function(t){return this.body.debugBodyColor=t,this},debugShowBody:{get:function(){return this.body.debugShowBody},set:function(t){this.body.debugShowBody=t}},debugShowVelocity:{get:function(){return this.body.debugShowVelocity},set:function(t){this.body.debugShowVelocity=t}},debugBodyColor:{get:function(){return this.body.debugBodyColor},set:function(t){this.body.debugBodyColor=t}}};f.exports=T},87145:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={setDrag:function(t,l){return this.body.drag.set(t,l),this},setDragX:function(t){return this.body.drag.x=t,this},setDragY:function(t){return this.body.drag.y=t,this},setDamping:function(t){return this.body.useDamping=t,this}};f.exports=T},96174:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={enableBody:function(t,l,g,u,o){return t&&this.body.reset(l,g),u&&(this.body.gameObject.active=!0),o&&(this.body.gameObject.visible=!0),this.body.enable=!0,this},disableBody:function(t,l){return t===void 0&&(t=!1),l===void 0&&(l=!1),this.body.stop(),this.body.enable=!1,t&&(this.body.gameObject.active=!1),l&&(this.body.gameObject.visible=!1),this},refreshBody:function(){return this.body.updateFromGameObject(),this}};f.exports=T},51702:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={setFriction:function(t,l){return this.body.friction.set(t,l),this},setFrictionX:function(t){return this.body.friction.x=t,this},setFrictionY:function(t){return this.body.friction.y=t,this}};f.exports=T},25578:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={setGravity:function(t,l){return this.body.gravity.set(t,l),this},setGravityX:function(t){return this.body.gravity.x=t,this},setGravityY:function(t){return this.body.gravity.y=t,this}};f.exports=T},72029:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={setImmovable:function(t){return t===void 0&&(t=!0),this.body.immovable=t,this}};f.exports=T},34566:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={setMass:function(t){return this.body.mass=t,this}};f.exports=T},2732:(f,T,t)=>{var l=t(15147),g=t(26673),u=t(22184),o=t(26535),a=function(n,r,d,s,h,c){var p=l(n,r-s,d-s,2*s,2*s,h,c);if(p.length===0)return p;for(var m=new g(r,d,s),x=new g,S=[],P=0;P{var T=function(t,l,g,u,o,a,n){a===void 0&&(a=!0),n===void 0&&(n=!1);var r=[],d=[],s=t.treeMinMax;if(s.minX=l,s.minY=g,s.maxX=l+u,s.maxY=g+o,n&&(d=t.staticTree.search(s)),a&&t.useTree)r=t.tree.search(s);else if(a){var h=t.bodies,c={position:{x:l,y:g},left:l,top:g,right:l+u,bottom:g+o,isCircle:!1},p=t.intersects;h.iterate(function(m){p(m,c)&&r.push(m)})}return d.concat(r)};f.exports=T},57527:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={setPushable:function(t){return t===void 0&&(t=!0),this.body.pushable=t,this}};f.exports=T},77687:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={setOffset:function(t,l){return this.body.setOffset(t,l),this},setSize:function(t,l,g){return this.body.setSize(t,l,g),this},setBodySize:function(t,l,g){return this.body.setSize(t,l,g),this},setCircle:function(t,l,g){return this.body.setCircle(t,l,g),this}};f.exports=T},66536:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={setVelocity:function(t,l){return this.body.setVelocity(t,l),this},setVelocityX:function(t){return this.body.setVelocityX(t),this},setVelocityY:function(t){return this.body.setVelocityY(t),this},setMaxVelocity:function(t,l){return this.body.maxVelocity.set(t,l),this}};f.exports=T},7864:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Acceleration:t(5321),Angular:t(29257),Bounce:t(62122),Debug:t(99803),Drag:t(87145),Enable:t(96174),Friction:t(51702),Gravity:t(25578),Immovable:t(72029),Mass:t(34566),OverlapCirc:t(2732),OverlapRect:t(15147),Pushable:t(57527),Size:t(77687),Velocity:t(66536)}},47401:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={DYNAMIC_BODY:0,STATIC_BODY:1,GROUP:2,TILEMAPLAYER:3,FACING_NONE:10,FACING_UP:11,FACING_DOWN:12,FACING_LEFT:13,FACING_RIGHT:14};f.exports=T},22346:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="collide"},95092:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="overlap"},15775:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pause"},74142:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="resume"},22825:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="tilecollide"},10851:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="tileoverlap"},7543:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="worldbounds"},1487:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="worldstep"},27037:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={COLLIDE:t(22346),OVERLAP:t(95092),PAUSE:t(15775),RESUME:t(74142),TILE_COLLIDE:t(22825),TILE_OVERLAP:t(10851),WORLD_BOUNDS:t(7543),WORLD_STEP:t(1487)}},39977:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(47401),g=t(98611),u={ArcadePhysics:t(66150),Body:t(97602),Collider:t(3909),Components:t(7864),Events:t(27037),Factory:t(99523),GetOverlapX:t(75671),GetOverlapY:t(66185),SeparateX:t(61777),SeparateY:t(25299),Group:t(10481),Image:t(62832),Sprite:t(25084),StaticBody:t(66634),StaticGroup:t(46346),Tilemap:t(8413),World:t(85233)};u=g(!1,u,l),f.exports=u},25163:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return t.collisionCallback?!t.collisionCallback.call(t.collisionCallbackContext,l,t):t.layer.callbacks[t.index]?!t.layer.callbacks[t.index].callback.call(t.layer.callbacks[t.index].callbackContext,l,t):!0};f.exports=T},98209:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){l<0?(t.blocked.none=!1,t.blocked.left=!0):l>0&&(t.blocked.none=!1,t.blocked.right=!0),t.position.x-=l,t.updateCenter(),t.bounce.x===0?t.velocity.x=0:t.velocity.x=-t.velocity.x*t.bounce.x};f.exports=T},72792:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){l<0?(t.blocked.none=!1,t.blocked.up=!0):l>0&&(t.blocked.none=!1,t.blocked.down=!0),t.position.y-=l,t.updateCenter(),t.bounce.y===0?t.velocity.y=0:t.velocity.y=-t.velocity.y*t.bounce.y};f.exports=T},27354:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(14405),g=t(52926),u=t(28808),o=function(a,n,r,d,s,h,c){var p=d.left,m=d.top,x=d.right,S=d.bottom,P=r.faceLeft||r.faceRight,E=r.faceTop||r.faceBottom;if(c||(P=!0,E=!0),!P&&!E)return!1;var R=0,M=0,O=0,w=1;if(n.deltaAbsX()>n.deltaAbsY()?O=-1:n.deltaAbsX(){/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(98209),g=function(u,o,a,n,r,d){var s=0,h=o.faceLeft,c=o.faceRight,p=o.collideLeft,m=o.collideRight;return d||(h=!0,c=!0,p=!0,m=!0),u.deltaX()<0&&m&&u.checkCollision.left?c&&u.x0&&p&&u.checkCollision.right&&h&&u.right>a&&(s=u.right-a,s>r&&(s=0)),s!==0&&(u.customSeparateX?u.overlapX=s:l(u,s)),s};f.exports=g},52926:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72792),g=function(u,o,a,n,r,d){var s=0,h=o.faceTop,c=o.faceBottom,p=o.collideUp,m=o.collideDown;return d||(h=!0,c=!0,p=!0,m=!0),u.deltaY()<0&&m&&u.checkCollision.up?c&&u.y0&&p&&u.checkCollision.down&&h&&u.bottom>a&&(s=u.bottom-a,s>r&&(s=0)),s!==0&&(u.customSeparateY?u.overlapY=s:l(u,s)),s};f.exports=g},28808:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return!(l.right<=t.left||l.bottom<=t.top||l.position.x>=t.right||l.position.y>=t.bottom)};f.exports=T},8413:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l={ProcessTileCallbacks:t(25163),ProcessTileSeparationX:t(98209),ProcessTileSeparationY:t(72792),SeparateTile:t(27354),TileCheckX:t(14405),TileCheckY:t(52926),TileIntersectsBody:t(28808)};f.exports=l},53954:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Arcade:t(39977),Matter:t(45949)}},63568:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(93736),u=new l({initialize:function(){this.boundsCenter=new g,this.centerDiff=new g},parseBody:function(o){if(o=o.hasOwnProperty("body")?o.body:o,!o.hasOwnProperty("bounds")||!o.hasOwnProperty("centerOfMass"))return!1;var a=this.boundsCenter,n=this.centerDiff,r=o.bounds.max.x-o.bounds.min.x,d=o.bounds.max.y-o.bounds.min.y,s=r*o.centerOfMass.x,h=d*o.centerOfMass.y;return a.set(r/2,d/2),n.set(s-a.x,h-a.y),!0},getTopLeft:function(o,a,n){if(a===void 0&&(a=0),n===void 0&&(n=0),this.parseBody(o)){var r=this.boundsCenter,d=this.centerDiff;return new g(a+r.x+d.x,n+r.y+d.y)}return!1},getTopCenter:function(o,a,n){if(a===void 0&&(a=0),n===void 0&&(n=0),this.parseBody(o)){var r=this.boundsCenter,d=this.centerDiff;return new g(a+d.x,n+r.y+d.y)}return!1},getTopRight:function(o,a,n){if(a===void 0&&(a=0),n===void 0&&(n=0),this.parseBody(o)){var r=this.boundsCenter,d=this.centerDiff;return new g(a-(r.x-d.x),n+r.y+d.y)}return!1},getLeftCenter:function(o,a,n){if(a===void 0&&(a=0),n===void 0&&(n=0),this.parseBody(o)){var r=this.boundsCenter,d=this.centerDiff;return new g(a+r.x+d.x,n+d.y)}return!1},getCenter:function(o,a,n){if(a===void 0&&(a=0),n===void 0&&(n=0),this.parseBody(o)){var r=this.centerDiff;return new g(a+r.x,n+r.y)}return!1},getRightCenter:function(o,a,n){if(a===void 0&&(a=0),n===void 0&&(n=0),this.parseBody(o)){var r=this.boundsCenter,d=this.centerDiff;return new g(a-(r.x-d.x),n+d.y)}return!1},getBottomLeft:function(o,a,n){if(a===void 0&&(a=0),n===void 0&&(n=0),this.parseBody(o)){var r=this.boundsCenter,d=this.centerDiff;return new g(a+r.x+d.x,n-(r.y-d.y))}return!1},getBottomCenter:function(o,a,n){if(a===void 0&&(a=0),n===void 0&&(n=0),this.parseBody(o)){var r=this.boundsCenter,d=this.centerDiff;return new g(a+d.x,n-(r.y-d.y))}return!1},getBottomRight:function(o,a,n){if(a===void 0&&(a=0),n===void 0&&(n=0),this.parseBody(o)){var r=this.boundsCenter,d=this.centerDiff;return new g(a-(r.x-d.x),n-(r.y-d.y))}return!1}});f.exports=u},18171:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(16929);l.Body=t(84125),l.Composite=t(11299),l.World=t(72005),l.Collision=t(63454),l.Detector=t(13657),l.Pairs=t(91327),l.Pair=t(70584),l.Query=t(13390),l.Resolver=t(44272),l.Constraint=t(52838),l.Common=t(68758),l.Engine=t(45775),l.Events=t(39073),l.Sleeping=t(22806),l.Plugin=t(84474),l.Bodies=t(68516),l.Composites=t(56643),l.Axes=t(50658),l.Bounds=t(84091),l.Svg=t(92765),l.Vector=t(10438),l.Vertices=t(39745),l.World.add=l.Composite.add,l.World.remove=l.Composite.remove,l.World.addComposite=l.Composite.addComposite,l.World.addBody=l.Composite.addBody,l.World.addConstraint=l.Composite.addConstraint,l.World.clear=l.Composite.clear,f.exports=l},72653:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(68516),g=t(56694),u=t(56643),o=t(52838),a=t(92765),n=t(3860),r=t(7030),d=t(73658),s=t(84720),h=t(10998),c=t(72829),p=t(88596),m=t(39745),x=new g({initialize:function(P){this.world=P,this.scene=P.scene,this.sys=P.scene.sys},rectangle:function(S,P,E,R,M){var O=l.rectangle(S,P,E,R,M);return this.world.add(O),O},trapezoid:function(S,P,E,R,M,O){var w=l.trapezoid(S,P,E,R,M,O);return this.world.add(w),w},circle:function(S,P,E,R,M){var O=l.circle(S,P,E,R,M);return this.world.add(O),O},polygon:function(S,P,E,R,M){var O=l.polygon(S,P,E,R,M);return this.world.add(O),O},fromVertices:function(S,P,E,R,M,O,w){typeof E=="string"&&(E=m.fromPath(E));var L=l.fromVertices(S,P,E,R,M,O,w);return this.world.add(L),L},fromPhysicsEditor:function(S,P,E,R,M){M===void 0&&(M=!0);var O=h.parseBody(S,P,E,R);return M&&!this.world.has(O)&&this.world.add(O),O},fromSVG:function(S,P,E,R,M,O){R===void 0&&(R=1),M===void 0&&(M={}),O===void 0&&(O=!0);for(var w=E.getElementsByTagName("path"),L=[],F=0;F{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(74527),g=t(72632),u=t(93736);function o(n){return!!n.get&&typeof n.get=="function"||!!n.set&&typeof n.set=="function"}var a=function(n,r,d,s){d===void 0&&(d={}),s===void 0&&(s=!0);var h=r.x,c=r.y;r.body={temp:!0,position:{x:h,y:c}};var p=[l.Bounce,l.Collision,l.Force,l.Friction,l.Gravity,l.Mass,l.Sensor,l.SetBody,l.Sleep,l.Static,l.Transform,l.Velocity];if(p.forEach(function(x){for(var S in x)o(x[S])?Object.defineProperty(r,S,{get:x[S].get,set:x[S].set}):Object.defineProperty(r,S,{value:x[S]})}),r.world=n,r._tempVec2=new u(h,c),d.hasOwnProperty("type")&&d.type==="body")r.setExistingBody(d,s);else{var m=g(d,"shape",null);m||(m="rectangle"),d.addToWorld=s,r.setBody(m,d)}return r};f.exports=a},7030:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(74527),u=t(89980),o=t(72632),a=t(1539),n=t(58210),r=t(93736),d=new l({Extends:a,Mixins:[g.Bounce,g.Collision,g.Force,g.Friction,g.Gravity,g.Mass,g.Sensor,g.SetBody,g.Sleep,g.Static,g.Transform,g.Velocity,n],initialize:function(h,c,p,m,x,S){u.call(this,h.scene,"Image"),this._crop=this.resetCropObject(),this.setTexture(m,x),this.setSizeToFrame(),this.setOrigin(),this.world=h,this._tempVec2=new r(c,p);var P=o(S,"shape",null);P?this.setBody(P,S):this.setRectangle(this.width,this.height,S),this.setPosition(c,p),this.initPipeline(),this.initPostPipeline(!0)}});f.exports=d},50583:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(84093),g=t(50658),u=t(68516),o=t(84125),a=t(63568),n=t(84091),r=t(56694),d=t(63454),s=t(68758),h=t(11299),c=t(56643),p=t(52838),m=t(13657),x=t(53996),S=t(72653),P=t(72632),E=t(10850),R=t(1675),M=t(80391),O=t(16929),w=t(44097),L=t(30657),F=t(70584),b=t(91327),D=t(84474),N=t(91963),z=t(13390),W=t(44272),Y=t(7599),j=t(92765),G=t(10438),V=t(39745),I=t(31468);s.setDecomp(t(81084));var B=new r({initialize:function(X){this.scene=X,this.systems=X.sys,this.config=this.getConfig(),this.world,this.add,this.bodyBounds,this.body=o,this.composite=h,this.collision=d,this.detector=m,this.pair=F,this.pairs=b,this.query=z,this.resolver=W,this.constraint=p,this.bodies=u,this.composites=c,this.axes=g,this.bounds=n,this.svg=j,this.vector=G,this.vertices=V,this.verts=V,this._tempVec2=G.create(),E(this.config,"plugins.collisionevents",!0)&&this.enableCollisionEventsPlugin(),E(this.config,"plugins.attractors",!1)&&this.enableAttractorPlugin(),E(this.config,"plugins.wrap",!1)&&this.enableWrapPlugin(),W._restingThresh=E(this.config,"restingThresh",4),W._restingThreshTangent=E(this.config,"restingThreshTangent",6),W._positionDampen=E(this.config,"positionDampen",.9),W._positionWarming=E(this.config,"positionWarming",.8),W._frictionNormalMultiplier=E(this.config,"frictionNormalMultiplier",5),X.sys.events.once(Y.BOOT,this.boot,this),X.sys.events.on(Y.START,this.start,this)},boot:function(){this.world=new I(this.scene,this.config),this.add=new S(this.world),this.bodyBounds=new a,this.systems.events.once(Y.DESTROY,this.destroy,this)},start:function(){this.world||(this.world=new I(this.scene,this.config),this.add=new S(this.world));var U=this.systems.events;U.on(Y.UPDATE,this.world.update,this.world),U.on(Y.POST_UPDATE,this.world.postUpdate,this.world),U.once(Y.SHUTDOWN,this.shutdown,this)},getConfig:function(){var U=this.systems.game.config.physics,X=this.systems.settings.physics,$=L(P(X,"matter",{}),P(U,"matter",{}));return $},enableAttractorPlugin:function(){return D.register(R),D.use(O,R),this},enableWrapPlugin:function(){return D.register(w),D.use(O,w),this},enableCollisionEventsPlugin:function(){return D.register(M),D.use(O,M),this},pause:function(){return this.world.pause()},resume:function(){return this.world.resume()},set60Hz:function(){return this.world.getDelta=this.world.update60Hz,this.world.autoUpdate=!0,this},set30Hz:function(){return this.world.getDelta=this.world.update30Hz,this.world.autoUpdate=!0,this},step:function(U,X){this.world.step(U,X)},containsPoint:function(U,X,$){U=this.getMatterBodies(U);var k=G.create(X,$),K=z.point(U,k);return K.length>0},intersectPoint:function(U,X,$){$=this.getMatterBodies($);var k=G.create(U,X),K=[],J=z.point($,k);return J.forEach(function(q){K.indexOf(q)===-1&&K.push(q)}),K},intersectRect:function(U,X,$,k,K,J){K===void 0&&(K=!1),J=this.getMatterBodies(J);var q={min:{x:U,y:X},max:{x:U+$,y:X+k}},_=[],et=z.region(J,q,K);return et.forEach(function(it){_.indexOf(it)===-1&&_.push(it)}),_},intersectRay:function(U,X,$,k,K,J){K===void 0&&(K=1),J=this.getMatterBodies(J);for(var q=[],_=z.ray(J,G.create(U,X),G.create($,k),K),et=0;et<_.length;et++)q.push(_[et].body);return q},intersectBody:function(U,X){X=this.getMatterBodies(X);for(var $=[],k=z.collides(U,X),K=0;K{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(16569),g=t(56694),u=t(74527),o=t(89980),a=t(72632),n=t(58210),r=t(13747),d=t(93736),s=new g({Extends:r,Mixins:[u.Bounce,u.Collision,u.Force,u.Friction,u.Gravity,u.Mass,u.Sensor,u.SetBody,u.Sleep,u.Static,u.Transform,u.Velocity,n],initialize:function(c,p,m,x,S,P){o.call(this,c.scene,"Sprite"),this._crop=this.resetCropObject(),this.anims=new l(this),this.setTexture(x,S),this.setSizeToFrame(),this.setOrigin(),this.world=c,this._tempVec2=new d(p,m);var E=a(P,"shape",null);E?this.setBody(E,P):this.setRectangle(this.width,this.height,P),this.setPosition(p,m),this.initPipeline(),this.initPostPipeline(!0)}});f.exports=s},84720:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(68516),g=t(84125),u=t(56694),o=t(74527),a=t(28699),n=t(6659),r=t(72632),d=t(19256),s=t(39745),h=new u({Extends:n,Mixins:[o.Bounce,o.Collision,o.Friction,o.Gravity,o.Mass,o.Sensor,o.Sleep,o.Static],initialize:function(p,m,x){n.call(this),this.tile=m,this.world=p,m.physics.matterBody&&m.physics.matterBody.destroy(),m.physics.matterBody=this;var S=r(x,"body",null),P=r(x,"addToWorld",!0);if(S)this.setBody(S,P);else{var E=m.getCollisionGroup(),R=r(E,"objects",[]);R.length>0?this.setFromTileCollision(x):this.setFromTileRectangle(x)}if(m.flipX||m.flipY){var M={x:m.getCenterX(),y:m.getCenterY()},O=m.flipX?-1:1,w=m.flipY?-1:1;g.scale(S,O,w,M)}},setFromTileRectangle:function(c){c===void 0&&(c={}),d(c,"isStatic")||(c.isStatic=!0),d(c,"addToWorld")||(c.addToWorld=!0);var p=this.tile.getBounds(),m=p.x+p.width/2,x=p.y+p.height/2,S=l.rectangle(m,x,p.width,p.height,c);return this.setBody(S,c.addToWorld),this},setFromTileCollision:function(c){c===void 0&&(c={}),d(c,"isStatic")||(c.isStatic=!0),d(c,"addToWorld")||(c.addToWorld=!0);for(var p=this.tile.tilemapLayer.scaleX,m=this.tile.tilemapLayer.scaleY,x=this.tile.getLeft(),S=this.tile.getTop(),P=this.tile.getCollisionGroup(),E=r(P,"objects",[]),R=[],M=0;M1){var j=a(c);j.parts=R,this.setBody(g.create(j),j.addToWorld)}return this},setBody:function(c,p){return p===void 0&&(p=!0),this.body&&this.removeBody(),this.body=c,this.body.gameObject=this,p&&this.world.add(this.body),this},removeBody:function(){return this.body&&(this.world.remove(this.body),this.body.gameObject=void 0,this.body=void 0),this},destroy:function(){this.removeBody(),this.tile.physics.matterBody=void 0,this.removeAllListeners()}});f.exports=h},10998:(f,T,t)=>{/** + * @author Joachim Grill + * @author Richard Davey + * @copyright 2018 CodeAndWeb GmbH + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(68516),g=t(84125),u=t(68758),o=t(72632),a=t(39745),n={parseBody:function(r,d,s,h){h===void 0&&(h={});for(var c=o(s,"fixtures",[]),p=[],m=0;m{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(68516),g=t(84125),u={parseBody:function(o,a,n,r){r===void 0&&(r={});var d,s=n.vertices;if(s.length===1)r.vertices=s[0],d=g.create(r),l.flagCoincidentParts(d.parts);else{for(var h=[],c=0;c{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(84091),g=t(56694),u=t(11299),o=t(52838),a=t(13657),n=t(35416),r=t(33963),d=t(30657),s=t(22806),h=t(93736),c=t(39745),p=new g({initialize:function(x,S,P){P===void 0&&(P={});var E={label:"Pointer Constraint",pointA:{x:0,y:0},pointB:{x:0,y:0},length:.01,stiffness:.1,angularStiffness:1,collisionFilter:{category:1,mask:4294967295,group:0}};this.scene=x,this.world=S,this.camera=null,this.pointer=null,this.active=!0,this.position=new h,this.body=null,this.part=null,this.constraint=o.create(d(P,E)),this.world.on(n.BEFORE_UPDATE,this.update,this),x.sys.input.on(r.POINTER_DOWN,this.onDown,this),x.sys.input.on(r.POINTER_UP,this.onUp,this)},onDown:function(m){this.pointer||(this.pointer=m,this.camera=m.camera)},onUp:function(m){m===this.pointer&&(this.pointer=null)},getBody:function(m){var x=this.position,S=this.constraint;this.camera.getWorldPoint(m.x,m.y,x);for(var P=u.allBodies(this.world.localWorld),E=0;E1?1:0,R=E;R{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(68516),g=t(84125),u=t(56694),o=t(68758),a=t(11299),n=t(45775),r=t(6659),d=t(35416),s=t(72632),h=t(10850),c=t(84125),p=t(39073),m=t(84720),x=t(72005),S=t(10438),P=new u({Extends:r,initialize:function(R,M){r.call(this),this.scene=R,this.engine=n.create(M),this.localWorld=this.engine.world;var O=h(M,"gravity",null);O?this.setGravity(O.x,O.y,O.scale):O===!1&&this.setGravity(0,0,0),this.walls={left:null,right:null,top:null,bottom:null},this.enabled=h(M,"enabled",!0),this.getDelta=h(M,"getDelta",this.update60Hz);var w=s(M,"runner",{}),L=s(w,"fps",!1),F=s(w,"fps",60),b=s(w,"delta",1e3/F),D=s(w,"deltaMin",1e3/F),N=s(w,"deltaMax",1e3/(F*.5));L||(F=1e3/b),this.runner={fps:F,deltaSampleSize:s(w,"deltaSampleSize",60),counterTimestamp:0,frameCounter:0,deltaHistory:[],timePrev:null,timeScalePrev:1,frameRequestId:null,isFixed:s(w,"isFixed",!1),delta:b,deltaMin:D,deltaMax:N},this.autoUpdate=h(M,"autoUpdate",!0);var z=h(M,"debug",!1);if(this.drawDebug=typeof z=="object"?!0:z,this.debugGraphic,this.debugConfig={showAxes:s(z,"showAxes",!1),showAngleIndicator:s(z,"showAngleIndicator",!1),angleColor:s(z,"angleColor",15208787),showBroadphase:s(z,"showBroadphase",!1),broadphaseColor:s(z,"broadphaseColor",16757760),showBounds:s(z,"showBounds",!1),boundsColor:s(z,"boundsColor",16777215),showVelocity:s(z,"showVelocity",!1),velocityColor:s(z,"velocityColor",44783),showCollisions:s(z,"showCollisions",!1),collisionColor:s(z,"collisionColor",16094476),showSeparations:s(z,"showSeparations",!1),separationColor:s(z,"separationColor",16753920),showBody:s(z,"showBody",!0),showStaticBody:s(z,"showStaticBody",!0),showInternalEdges:s(z,"showInternalEdges",!1),renderFill:s(z,"renderFill",!1),renderLine:s(z,"renderLine",!0),fillColor:s(z,"fillColor",1075465),fillOpacity:s(z,"fillOpacity",1),lineColor:s(z,"lineColor",2678297),lineOpacity:s(z,"lineOpacity",1),lineThickness:s(z,"lineThickness",1),staticFillColor:s(z,"staticFillColor",857979),staticLineColor:s(z,"staticLineColor",1255396),showSleeping:s(z,"showSleeping",!1),staticBodySleepOpacity:s(z,"staticBodySleepOpacity",.7),sleepFillColor:s(z,"sleepFillColor",4605510),sleepLineColor:s(z,"sleepLineColor",10066585),showSensors:s(z,"showSensors",!0),sensorFillColor:s(z,"sensorFillColor",857979),sensorLineColor:s(z,"sensorLineColor",1255396),showPositions:s(z,"showPositions",!0),positionSize:s(z,"positionSize",4),positionColor:s(z,"positionColor",14697178),showJoint:s(z,"showJoint",!0),jointColor:s(z,"jointColor",14737474),jointLineOpacity:s(z,"jointLineOpacity",1),jointLineThickness:s(z,"jointLineThickness",2),pinSize:s(z,"pinSize",4),pinColor:s(z,"pinColor",4382944),springColor:s(z,"springColor",14697184),anchorColor:s(z,"anchorColor",15724527),anchorSize:s(z,"anchorSize",4),showConvexHulls:s(z,"showConvexHulls",!1),hullColor:s(z,"hullColor",14091216)},this.drawDebug&&this.createDebugGraphic(),this.setEventsProxy(),s(M,"setBounds",!1)){var W=M.setBounds;if(typeof W=="boolean")this.setBounds();else{var Y=s(W,"x",0),j=s(W,"y",0),G=s(W,"width",R.sys.scale.width),V=s(W,"height",R.sys.scale.height),I=s(W,"thickness",64),B=s(W,"left",!0),U=s(W,"right",!0),X=s(W,"top",!0),$=s(W,"bottom",!0);this.setBounds(Y,j,G,V,I,B,U,X,$)}}},setCompositeRenderStyle:function(E){var R=E.bodies,M=E.constraints,O=E.composites,w,L,F;for(w=0;w0&&(L=w[0].bodyA,F=w[0].bodyB),E.emit(d.COLLISION_START,O,L,F)}),p.on(R,"collisionActive",function(O){var w=O.pairs,L,F;w.length>0&&(L=w[0].bodyA,F=w[0].bodyB),E.emit(d.COLLISION_ACTIVE,O,L,F)}),p.on(R,"collisionEnd",function(O){var w=O.pairs,L,F;w.length>0&&(L=w[0].bodyA,F=w[0].bodyB),E.emit(d.COLLISION_END,O,L,F)})},setBounds:function(E,R,M,O,w,L,F,b,D){return E===void 0&&(E=0),R===void 0&&(R=0),M===void 0&&(M=this.scene.sys.scale.width),O===void 0&&(O=this.scene.sys.scale.height),w===void 0&&(w=64),L===void 0&&(L=!0),F===void 0&&(F=!0),b===void 0&&(b=!0),D===void 0&&(D=!0),this.updateWall(L,"left",E-w,R-w,w,O+w*2),this.updateWall(F,"right",E+M,R-w,w,O+w*2),this.updateWall(b,"top",E,R-w,M,w),this.updateWall(D,"bottom",E,R+O,M,w),this},updateWall:function(E,R,M,O,w,L){var F=this.walls[R];E?(F&&x.remove(this.localWorld,F),M+=w/2,O+=L/2,this.walls[R]=this.create(M,O,w,L,{isStatic:!0,friction:0,frictionStatic:0})):(F&&x.remove(this.localWorld,F),this.walls[R]=null)},createDebugGraphic:function(){var E=this.scene.sys.add.graphics({x:0,y:0});return E.setDepth(Number.MAX_VALUE),this.debugGraphic=E,this.drawDebug=!0,E},disableGravity:function(){return this.localWorld.gravity.x=0,this.localWorld.gravity.y=0,this.localWorld.gravity.scale=0,this},setGravity:function(E,R,M){return E===void 0&&(E=0),R===void 0&&(R=1),M===void 0&&(M=.001),this.localWorld.gravity.x=E,this.localWorld.gravity.y=R,this.localWorld.gravity.scale=M,this},create:function(E,R,M,O,w){var L=l.rectangle(E,R,M,O,w);return x.add(this.localWorld,L),L},add:function(E){return x.add(this.localWorld,E),this},remove:function(E,R){Array.isArray(E)||(E=[E]);for(var M=0;MO.deltaMax?O.deltaMax:R,O.delta=R),O.timeScalePrev=w.timeScale,O.frameCounter+=1,E-O.counterTimestamp>=1e3&&(O.fps=O.frameCounter*((E-O.counterTimestamp)/1e3),O.counterTimestamp=E,O.frameCounter=0),n.update(M,R)}},step:function(E){n.update(this.engine,E)},update60Hz:function(){return 1e3/60},update30Hz:function(){return 1e3/30},has:function(E){var R=E.hasOwnProperty("body")?E.body:E;return a.get(this.localWorld,R.id,R.type)!==null},getAllBodies:function(){return a.allBodies(this.localWorld)},getAllConstraints:function(){return a.allConstraints(this.localWorld)},getAllComposites:function(){return a.allComposites(this.localWorld)},postUpdate:function(){if(this.drawDebug){var E=this.debugConfig,R=this.engine,M=this.debugGraphic,O=a.allBodies(this.localWorld);this.debugGraphic.clear(),E.showBroadphase&&R.broadphase.controller&&this.renderGrid(R.broadphase,M,E.broadphaseColor,.5),E.showBounds&&this.renderBodyBounds(O,M,E.boundsColor,.5),(E.showBody||E.showStaticBody)&&this.renderBodies(O),E.showJoint&&this.renderJoints(),(E.showAxes||E.showAngleIndicator)&&this.renderBodyAxes(O,M,E.showAxes,E.angleColor,.5),E.showVelocity&&this.renderBodyVelocity(O,M,E.velocityColor,1,2),E.showSeparations&&this.renderSeparations(R.pairs.list,M,E.separationColor),E.showCollisions&&this.renderCollisions(R.pairs.list,M,E.collisionColor)}},renderGrid:function(E,R,M,O){R.lineStyle(1,M,O);for(var w=o.keys(E.buckets),L=0;L0){var z=N[0].vertex.x,W=N[0].vertex.y;N.length===2&&(z=(N[0].vertex.x+N[1].vertex.x)/2,W=(N[0].vertex.y+N[1].vertex.y)/2),D.bodyB===D.supports[0].body||D.bodyA.isStatic?R.lineBetween(z-D.normal.x*8,W-D.normal.y*8,z,W):R.lineBetween(z+D.normal.x*8,W+D.normal.y*8,z,W)}}return this},renderBodyBounds:function(E,R,M,O){R.lineStyle(1,M,O);for(var w=0;w1?1:0;D1?1:0;N1?1:0;N1&&this.renderConvexHull(V,R,j,U)}}},renderBody:function(E,R,M,O,w,L,F,b){O===void 0&&(O=null),w===void 0&&(w=null),L===void 0&&(L=1),F===void 0&&(F=null),b===void 0&&(b=null);for(var D=this.debugConfig,N=D.sensorFillColor,z=D.sensorLineColor,W=E.parts,Y=W.length,j=Y>1?1:0;j1){var F=E.vertices;R.lineStyle(O,M),R.beginPath(),R.moveTo(F[0].x,F[0].y);for(var b=1;b0&&(R.fillStyle(F),R.fillCircle(W.x,W.y,b),R.fillCircle(Y.x,Y.y,b)),this},resetCollisionIDs:function(){return g._nextCollidingGroupId=1,g._nextNonCollidingGroupId=-1,g._nextCategory=1,this},shutdown:function(){p.off(this.engine),this.removeAllListeners(),x.clear(this.localWorld,!1),n.clear(this.engine),this.drawDebug&&this.debugGraphic.destroy()},destroy:function(){this.shutdown()}});f.exports=P},95349:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={setBounce:function(t){return this.body.restitution=t,this}};f.exports=T},70679:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={setCollisionCategory:function(t){return this.body.collisionFilter.category=t,this},setCollisionGroup:function(t){return this.body.collisionFilter.group=t,this},setCollidesWith:function(t){var l=0;if(!Array.isArray(t))l=t;else for(var g=0;g{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(84125),g={applyForce:function(u){return this._tempVec2.set(this.body.position.x,this.body.position.y),l.applyForce(this.body,this._tempVec2,u),this},applyForceFrom:function(u,o){return l.applyForce(this.body,u,o),this},thrust:function(u){var o=this.body.angle;return this._tempVec2.set(u*Math.cos(o),u*Math.sin(o)),l.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustLeft:function(u){var o=this.body.angle-Math.PI/2;return this._tempVec2.set(u*Math.cos(o),u*Math.sin(o)),l.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustRight:function(u){var o=this.body.angle+Math.PI/2;return this._tempVec2.set(u*Math.cos(o),u*Math.sin(o)),l.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustBack:function(u){var o=this.body.angle-Math.PI;return this._tempVec2.set(u*Math.cos(o),u*Math.sin(o)),l.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this}};f.exports=g},74015:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={setFriction:function(t,l,g){return this.body.friction=t,l!==void 0&&(this.body.frictionAir=l),g!==void 0&&(this.body.frictionStatic=g),this},setFrictionAir:function(t){return this.body.frictionAir=t,this},setFrictionStatic:function(t){return this.body.frictionStatic=t,this}};f.exports=T},11535:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={setIgnoreGravity:function(t){return this.body.ignoreGravity=t,this}};f.exports=T},74497:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(84125),g=t(93736),u={setMass:function(o){return l.setMass(this.body,o),this},setDensity:function(o){return l.setDensity(this.body,o),this},centerOfMass:{get:function(){return new g(this.body.centerOfMass.x,this.body.centerOfMass.y)}}};f.exports=u},75529:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={setSensor:function(t){return this.body.isSensor=t,this},isSensor:function(){return this.body.isSensor}};f.exports=T},64024:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(68516),g=t(84125),u=t(88456),o=t(72632),a=t(10998),n=t(72829),r=t(39745),d={setRectangle:function(s,h,c){return this.setBody({type:"rectangle",width:s,height:h},c)},setCircle:function(s,h){return this.setBody({type:"circle",radius:s},h)},setPolygon:function(s,h,c){return this.setBody({type:"polygon",sides:h,radius:s},c)},setTrapezoid:function(s,h,c,p){return this.setBody({type:"trapezoid",width:s,height:h,slope:c},p)},setExistingBody:function(s,h){h===void 0&&(h=!0),this.body&&this.world.remove(this.body,!0),this.body=s;for(var c=0;c{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(35416),g=t(22806),u=t(39073),o={setToSleep:function(){return g.set(this.body,!0),this},setAwake:function(){return g.set(this.body,!1),this},setSleepThreshold:function(a){return a===void 0&&(a=60),this.body.sleepThreshold=a,this},setSleepEvents:function(a,n){return this.setSleepStartEvent(a),this.setSleepEndEvent(n),this},setSleepStartEvent:function(a){if(a){var n=this.world;u.on(this.body,"sleepStart",function(r){n.emit(l.SLEEP_START,r,this)})}else u.off(this.body,"sleepStart");return this},setSleepEndEvent:function(a){if(a){var n=this.world;u.on(this.body,"sleepEnd",function(r){n.emit(l.SLEEP_END,r,this)})}else u.off(this.body,"sleepEnd");return this}};f.exports=o},82884:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(84125),g={setStatic:function(u){return l.setStatic(this.body,u),this},isStatic:function(){return this.body.isStatic}};f.exports=g},4753:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(84125),g=t(83392),u=t(35786),o=t(62138),a=4,n={x:{get:function(){return this.body.position.x},set:function(r){this._tempVec2.set(r,this.y),l.setPosition(this.body,this._tempVec2)}},y:{get:function(){return this.body.position.y},set:function(r){this._tempVec2.set(this.x,r),l.setPosition(this.body,this._tempVec2)}},scaleX:{get:function(){return this._scaleX},set:function(r){var d=1/this._scaleX,s=1/this._scaleY;this._scaleX=r,this._scaleX===0?this.renderFlags&=~a:this.renderFlags|=a,l.scale(this.body,d,s),l.scale(this.body,r,this._scaleY)}},scaleY:{get:function(){return this._scaleY},set:function(r){var d=1/this._scaleX,s=1/this._scaleY;this._scaleY=r,this._scaleY===0?this.renderFlags&=~a:this.renderFlags|=a,l.scale(this.body,d,s),l.scale(this.body,this._scaleX,r)}},angle:{get:function(){return o(this.body.angle*g.RAD_TO_DEG)},set:function(r){this.rotation=o(r)*g.DEG_TO_RAD}},rotation:{get:function(){return this.body.angle},set:function(r){this._rotation=u(r),l.setAngle(this.body,this._rotation)}},setPosition:function(r,d){return r===void 0&&(r=0),d===void 0&&(d=r),this._tempVec2.set(r,d),l.setPosition(this.body,this._tempVec2),this},setRotation:function(r){return r===void 0&&(r=0),this._rotation=u(r),l.setAngle(this.body,r),this},setFixedRotation:function(){return l.setInertia(this.body,1/0),this},setAngle:function(r){return r===void 0&&(r=0),this.angle=r,l.setAngle(this.body,this.rotation),this},setScale:function(r,d,s){r===void 0&&(r=1),d===void 0&&(d=r);var h=1/this._scaleX,c=1/this._scaleY;return this._scaleX=r,this._scaleY=d,l.scale(this.body,h,c,s),l.scale(this.body,r,d,s),this}};f.exports=n},37268:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(84125),g={setVelocityX:function(u){return this._tempVec2.set(u,this.body.velocity.y),l.setVelocity(this.body,this._tempVec2),this},setVelocityY:function(u){return this._tempVec2.set(this.body.velocity.x,u),l.setVelocity(this.body,this._tempVec2),this},setVelocity:function(u,o){return this._tempVec2.set(u,o),l.setVelocity(this.body,this._tempVec2),this},getVelocity:function(){return l.getVelocity(this.body)},setAngularVelocity:function(u){return l.setAngularVelocity(this.body,u),this},getAngularVelocity:function(){return l.getAngularVelocity(this.body)},setAngularSpeed:function(u){return l.setAngularSpeed(this.body,u),this},getAngularSpeed:function(){return l.getAngularSpeed(this.body)}};f.exports=g},74527:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Bounce:t(95349),Collision:t(70679),Force:t(77178),Friction:t(74015),Gravity:t(11535),Mass:t(74497),Sensor:t(75529),SetBody:t(64024),Sleep:t(25106),Static:t(82884),Transform:t(4753),Velocity:t(37268)}},63201:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="afteradd"},30474:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="afterremove"},44822:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="afterupdate"},88820:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="beforeadd"},94849:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="beforeremove"},6391:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="beforeupdate"},96738:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="collisionactive"},7916:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="collisionend"},59529:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="collisionstart"},10219:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="dragend"},183:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="drag"},39143:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="dragstart"},16483:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pause"},35806:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="resume"},22106:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="sleepend"},5803:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="sleepstart"},35416:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={AFTER_ADD:t(63201),AFTER_REMOVE:t(30474),AFTER_UPDATE:t(44822),BEFORE_ADD:t(88820),BEFORE_REMOVE:t(94849),BEFORE_UPDATE:t(6391),COLLISION_ACTIVE:t(96738),COLLISION_END:t(7916),COLLISION_START:t(59529),DRAG_END:t(10219),DRAG:t(183),DRAG_START:t(39143),PAUSE:t(16483),RESUME:t(35806),SLEEP_END:t(22106),SLEEP_START:t(5803)}},45949:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={BodyBounds:t(63568),Components:t(74527),Events:t(35416),Factory:t(72653),MatterGameObject:t(3860),Image:t(7030),Matter:t(18171),MatterPhysics:t(50583),PolyDecomp:t(81084),Sprite:t(73658),TileBody:t(84720),PhysicsEditorParser:t(10998),PhysicsJSONParser:t(72829),PointerConstraint:t(88596),World:t(31468)}},84125:(f,T,t)=>{var l={};f.exports=l;var g=t(39745),u=t(10438),o=t(22806),a=t(68758),n=t(84091),r=t(50658);(function(){l._timeCorrection=!0,l._inertiaScale=4,l._nextCollidingGroupId=1,l._nextNonCollidingGroupId=-1,l._nextCategory=1,l._baseDelta=16.666666666666668,l.create=function(s){var h={id:a.nextId(),type:"body",label:"Body",parts:[],plugin:{},angle:0,vertices:null,position:{x:0,y:0},force:{x:0,y:0},torque:0,positionImpulse:{x:0,y:0},constraintImpulse:{x:0,y:0,angle:0},totalContacts:0,speed:0,angularSpeed:0,velocity:{x:0,y:0},angularVelocity:0,isSensor:!1,isStatic:!1,isSleeping:!1,motion:0,sleepThreshold:60,density:.001,restitution:0,friction:.1,frictionStatic:.5,frictionAir:.01,collisionFilter:{category:1,mask:4294967295,group:0},slop:.05,timeScale:1,events:null,bounds:null,chamfer:null,circleRadius:0,positionPrev:null,anglePrev:0,parent:null,axes:null,area:0,mass:0,inverseMass:0,inertia:0,deltaTime:16.666666666666668,inverseInertia:0,_original:null,render:{visible:!0,opacity:1,sprite:{xOffset:0,yOffset:0},fillColor:null,fillOpacity:null,lineColor:null,lineOpacity:null,lineThickness:null},gameObject:null,scale:{x:1,y:1},centerOfMass:{x:0,y:0},centerOffset:{x:0,y:0},gravityScale:{x:1,y:1},ignoreGravity:!1,ignorePointer:!1,onCollideCallback:null,onCollideEndCallback:null,onCollideActiveCallback:null,onCollideWith:{}};!s.hasOwnProperty("position")&&s.hasOwnProperty("vertices")?s.position=g.centre(s.vertices):s.hasOwnProperty("vertices")||(h.vertices=g.fromPath("L 0 0 L 40 0 L 40 40 L 0 40"));var c=a.extend(h,s);return d(c,s),c.setOnCollideWith=function(p,m){return m?this.onCollideWith[p.id]=m:delete this.onCollideWith[p.id],this},c},l.nextGroup=function(s){return s?l._nextNonCollidingGroupId--:l._nextCollidingGroupId++},l.nextCategory=function(){return l._nextCategory=l._nextCategory<<1,l._nextCategory};var d=function(s,h){if(h=h||{},l.set(s,{bounds:s.bounds||n.create(s.vertices),positionPrev:s.positionPrev||u.clone(s.position),anglePrev:s.anglePrev||s.angle,vertices:s.vertices,parts:s.parts||[s],isStatic:s.isStatic,isSleeping:s.isSleeping,parent:s.parent||s}),g.rotate(s.vertices,s.angle,s.position),r.rotate(s.axes,s.angle),n.update(s.bounds,s.vertices,s.velocity),l.set(s,{axes:h.axes||s.axes,area:h.area||s.area,mass:h.mass||s.mass,inertia:h.inertia||s.inertia}),s.parts.length===1){var c=s.bounds,p=s.centerOfMass,m=s.centerOffset,x=c.max.x-c.min.x,S=c.max.y-c.min.y;p.x=-(c.min.x-s.position.x)/x,p.y=-(c.min.y-s.position.y)/S,m.x=x*p.x,m.y=S*p.y}};l.set=function(s,h,c){var p;typeof h=="string"&&(p=h,h={},h[p]=c);for(p in h)if(Object.prototype.hasOwnProperty.call(h,p))switch(c=h[p],p){case"isStatic":l.setStatic(s,c);break;case"isSleeping":o.set(s,c);break;case"mass":l.setMass(s,c);break;case"density":l.setDensity(s,c);break;case"inertia":l.setInertia(s,c);break;case"vertices":l.setVertices(s,c);break;case"position":l.setPosition(s,c);break;case"angle":l.setAngle(s,c);break;case"velocity":l.setVelocity(s,c);break;case"angularVelocity":l.setAngularVelocity(s,c);break;case"speed":l.setSpeed(s,c);break;case"angularSpeed":l.setAngularSpeed(s,c);break;case"parts":l.setParts(s,c);break;case"centre":l.setCentre(s,c);break;default:s[p]=c}},l.setStatic=function(s,h){for(var c=0;c0&&u.rotateAbout(x.position,p,s.position,x.position)}},l.setVelocity=function(s,h){var c=s.deltaTime/l._baseDelta;s.positionPrev.x=s.position.x-h.x*c,s.positionPrev.y=s.position.y-h.y*c,s.velocity.x=(s.position.x-s.positionPrev.x)/c,s.velocity.y=(s.position.y-s.positionPrev.y)/c,s.speed=u.magnitude(s.velocity)},l.getVelocity=function(s){var h=l._baseDelta/s.deltaTime;return{x:(s.position.x-s.positionPrev.x)*h,y:(s.position.y-s.positionPrev.y)*h}},l.getSpeed=function(s){return u.magnitude(l.getVelocity(s))},l.setSpeed=function(s,h){l.setVelocity(s,u.mult(u.normalise(l.getVelocity(s)),h))},l.setAngularVelocity=function(s,h){var c=s.deltaTime/l._baseDelta;s.anglePrev=s.angle-h*c,s.angularVelocity=(s.angle-s.anglePrev)/c,s.angularSpeed=Math.abs(s.angularVelocity)},l.getAngularVelocity=function(s){return(s.angle-s.anglePrev)*l._baseDelta/s.deltaTime},l.getAngularSpeed=function(s){return Math.abs(l.getAngularVelocity(s))},l.setAngularSpeed=function(s,h){l.setAngularVelocity(s,a.sign(l.getAngularVelocity(s))*h)},l.translate=function(s,h,c){l.setPosition(s,u.add(s.position,h),c)},l.rotate=function(s,h,c,p){if(!c)l.setAngle(s,s.angle+h,p);else{var m=Math.cos(h),x=Math.sin(h),S=s.position.x-c.x,P=s.position.y-c.y;l.setPosition(s,{x:c.x+(S*m-P*x),y:c.y+(S*x+P*m)},p),l.setAngle(s,s.angle+h,p)}},l.scale=function(s,h,c,p){var m=0,x=0;p=p||s.position;for(var S=0;S0&&(m+=P.area,x+=P.inertia),P.position.x=p.x+(P.position.x-p.x)*h,P.position.y=p.y+(P.position.y-p.y)*c,n.update(P.bounds,P.vertices,s.velocity)}s.parts.length>1&&(s.area=m,s.isStatic||(l.setMass(s,s.density*m),l.setInertia(s,x))),s.circleRadius&&(h===c?s.circleRadius*=h:s.circleRadius=null)},l.update=function(s,h){h=(typeof h<"u"?h:16.666666666666668)*s.timeScale;var c=h*h,p=l._timeCorrection?h/(s.deltaTime||h):1,m=1-s.frictionAir*(h/a._baseDelta),x=(s.position.x-s.positionPrev.x)*p,S=(s.position.y-s.positionPrev.y)*p;s.velocity.x=x*m+s.force.x/s.mass*c,s.velocity.y=S*m+s.force.y/s.mass*c,s.positionPrev.x=s.position.x,s.positionPrev.y=s.position.y,s.position.x+=s.velocity.x,s.position.y+=s.velocity.y,s.deltaTime=h,s.angularVelocity=(s.angle-s.anglePrev)*m*p+s.torque/s.inertia*c,s.anglePrev=s.angle,s.angle+=s.angularVelocity,s.speed=u.magnitude(s.velocity),s.angularSpeed=Math.abs(s.angularVelocity);for(var P=0;P0&&(E.position.x+=s.velocity.x,E.position.y+=s.velocity.y),s.angularVelocity!==0&&(g.rotate(E.vertices,s.angularVelocity,s.position),r.rotate(E.axes,s.angularVelocity),P>0&&u.rotateAbout(E.position,s.angularVelocity,s.position,E.position)),n.update(E.bounds,E.vertices,s.velocity)}},l.updateVelocities=function(s){var h=l._baseDelta/s.deltaTime,c=s.velocity;c.x=(s.position.x-s.positionPrev.x)*h,c.y=(s.position.y-s.positionPrev.y)*h,s.speed=Math.sqrt(c.x*c.x+c.y*c.y),s.angularVelocity=(s.angle-s.anglePrev)*h,s.angularSpeed=Math.abs(s.angularVelocity)},l.applyForce=function(s,h,c){var p={x:h.x-s.position.x,y:h.y-s.position.y};s.force.x+=c.x,s.force.y+=c.y,s.torque+=p.x*c.y-p.y*c.x},l._totalProperties=function(s){for(var h={mass:0,area:0,inertia:0,centre:{x:0,y:0}},c=s.parts.length===1?0:1;c{var l={};f.exports=l;var g=t(39073),u=t(68758),o=t(84091),a=t(84125);(function(){l.create=function(n){return u.extend({id:u.nextId(),type:"composite",parent:null,isModified:!1,bodies:[],constraints:[],composites:[],label:"Composite",plugin:{},cache:{allBodies:null,allConstraints:null,allComposites:null}},n)},l.setModified=function(n,r,d,s){if(g.trigger(n,"compositeModified",n),n.isModified=r,r&&n.cache&&(n.cache.allBodies=null,n.cache.allConstraints=null,n.cache.allComposites=null),d&&n.parent&&l.setModified(n.parent,r,d,s),s)for(var h=0;h{var l={};f.exports=l;var g=t(11299);(function(){l.create=g.create,l.add=g.add,l.remove=g.remove,l.clear=g.clear,l.addComposite=g.addComposite,l.addBody=g.addBody,l.addConstraint=g.addConstraint})()},63454:(f,T,t)=>{var l={};f.exports=l;var g=t(39745),u=t(70584);(function(){var o=[],a={overlap:0,axis:null},n={overlap:0,axis:null};l.create=function(r,d){return{pair:null,collided:!1,bodyA:r,bodyB:d,parentA:r.parent,parentB:d.parent,depth:0,normal:{x:0,y:0},tangent:{x:0,y:0},penetration:{x:0,y:0},supports:[]}},l.collides=function(r,d,s){if(l._overlapAxes(a,r.vertices,d.vertices,r.axes),a.overlap<=0||(l._overlapAxes(n,d.vertices,r.vertices,d.axes),n.overlap<=0))return null;var h=s&&s.table[u.id(r,d)],c;h?c=h.collision:(c=l.create(r,d),c.collided=!0,c.bodyA=r.idG?G=F:FV?V=F:Fc?c=m:m{var T={};f.exports=T,function(){T.create=function(t){return{vertex:t,normalImpulse:0,tangentImpulse:0}}}()},13657:(f,T,t)=>{var l={};f.exports=l;var g=t(68758),u=t(63454);(function(){l.create=function(o){var a={bodies:[],pairs:null};return g.extend(a,o)},l.setBodies=function(o,a){o.bodies=a.slice(0)},l.clear=function(o){o.bodies=[]},l.collisions=function(o){var a=[],n=o.pairs,r=o.bodies,d=r.length,s=l.canCollide,h=u.collides,c,p;for(r.sort(l._compareBoundsX),c=0;cS)break;if(!(PL.max.y)&&!(R&&(w.isStatic||w.isSleeping))&&s(m.collisionFilter,w.collisionFilter)){var F=w.parts.length;if(O&&F===1){var b=h(m,w,n);b&&a.push(b)}else for(var D=M>1?1:0,N=F>1?1:0,z=D;zL.max.x||x.max.xL.max.y)){var b=h(W,j,n);b&&a.push(b)}}}}}return a},l.canCollide=function(o,a){return o.group===a.group&&o.group!==0?o.group>0:(o.mask&a.category)!==0&&(a.mask&o.category)!==0},l._compareBoundsX=function(o,a){return o.bounds.min.x-a.bounds.min.x}})()},70584:(f,T,t)=>{var l={};f.exports=l;var g=t(17319);(function(){l.create=function(u,o){var a=u.bodyA,n=u.bodyB,r={id:l.id(a,n),bodyA:a,bodyB:n,collision:u,contacts:[],activeContacts:[],separation:0,isActive:!0,confirmedActive:!0,isSensor:a.isSensor||n.isSensor,timeCreated:o,timeUpdated:o,inverseMass:0,friction:0,frictionStatic:0,restitution:0,slop:0};return l.update(r,u,o),r},l.update=function(u,o,a){var n=u.contacts,r=o.supports,d=u.activeContacts,s=o.parentA,h=o.parentB,c=s.vertices.length;u.isActive=!0,u.timeUpdated=a,u.collision=o,u.separation=o.depth,u.inverseMass=s.inverseMass+h.inverseMass,u.friction=s.frictionh.frictionStatic?s.frictionStatic:h.frictionStatic,u.restitution=s.restitution>h.restitution?s.restitution:h.restitution,u.slop=s.slop>h.slop?s.slop:h.slop,o.pair=u,d.length=0;for(var p=0;p{var l={};f.exports=l;var g=t(70584),u=t(68758);(function(){l.create=function(o){return u.extend({table:{},list:[],collisionStart:[],collisionActive:[],collisionEnd:[]},o)},l.update=function(o,a,n){var r=o.list,d=r.length,s=o.table,h=a.length,c=o.collisionStart,p=o.collisionEnd,m=o.collisionActive,x,S,P,E;for(c.length=0,p.length=0,m.length=0,E=0;E{var l={};f.exports=l;var g=t(10438),u=t(63454),o=t(84091),a=t(68516),n=t(39745);(function(){l.collides=function(r,d){for(var s=[],h=d.length,c=r.bounds,p=u.collides,m=o.overlaps,x=0;x{var l={};f.exports=l;var g=t(39745),u=t(68758),o=t(84091);(function(){l._restingThresh=2,l._restingThreshTangent=Math.sqrt(6),l._positionDampen=.9,l._positionWarming=.8,l._frictionNormalMultiplier=5,l._frictionMaxStatic=Number.MAX_VALUE,l.preSolvePosition=function(a){var n,r,d,s=a.length;for(n=0;nnt?(P=mt>0?mt:-mt,S=M.friction*(mt>0?1:-1)*s,S<-P?S=-P:S>P&&(S=P)):(S=mt,P=m);var ot=X*N-$*D,ht=k*N-K*D,St=G/(V+w.inverseInertia*ot*ot+L.inverseInertia*ht*ht),At=(1+M.restitution)*st*St;if(S*=St,st0&&(B.normalImpulse=0),At=B.normalImpulse-Dt}if(mt<-c||mt>c)B.tangentImpulse=0;else{var Pt=B.tangentImpulse;B.tangentImpulse+=S,B.tangentImpulse<-P&&(B.tangentImpulse=-P),B.tangentImpulse>P&&(B.tangentImpulse=P),S=B.tangentImpulse-Pt}var pt=D*At+z*S,ut=N*At+W*S;w.isStatic||w.isSleeping||(w.positionPrev.x+=pt*w.inverseMass,w.positionPrev.y+=ut*w.inverseMass,w.anglePrev+=(X*ut-$*pt)*w.inverseInertia),L.isStatic||L.isSleeping||(L.positionPrev.x-=pt*L.inverseMass,L.positionPrev.y-=ut*L.inverseMass,L.anglePrev-=(k*ut-K*pt)*L.inverseInertia)}}}}})()},52838:(f,T,t)=>{var l={};f.exports=l;var g=t(39745),u=t(10438),o=t(22806),a=t(84091),n=t(50658),r=t(68758);(function(){l._warming=.4,l._torqueDampen=1,l._minLength=1e-6,l.create=function(d){var s=d;s.bodyA&&!s.pointA&&(s.pointA={x:0,y:0}),s.bodyB&&!s.pointB&&(s.pointB={x:0,y:0});var h=s.bodyA?u.add(s.bodyA.position,s.pointA):s.pointA,c=s.bodyB?u.add(s.bodyB.position,s.pointB):s.pointB,p=u.magnitude(u.sub(h,c));s.length=typeof s.length<"u"?s.length:p,s.id=s.id||r.nextId(),s.label=s.label||"Constraint",s.type="constraint",s.stiffness=s.stiffness||(s.length>0?1:.7),s.damping=s.damping||0,s.angularStiffness=s.angularStiffness||0,s.angleA=s.bodyA?s.bodyA.angle:s.angleA,s.angleB=s.bodyB?s.bodyB.angle:s.angleB,s.plugin={};var m={visible:!0,type:"line",anchors:!0,lineColor:null,lineOpacity:null,lineThickness:null,pinSize:null,anchorColor:null,anchorSize:null};return s.length===0&&s.stiffness>.1?(m.type="pin",m.anchors=!1):s.stiffness<.9&&(m.type="spring"),s.render=r.extend(m,s.render),s},l.preSolveAll=function(d){for(var s=0;s=1||d.length===0,O=M?d.stiffness*s:d.stiffness*s*s,w=d.damping*s,L=u.mult(P,R*O),F=(h?h.inverseMass:0)+(c?c.inverseMass:0),b=(h?h.inverseInertia:0)+(c?c.inverseInertia:0),D=F+b,N,z,W,Y,j;if(w>0){var G=u.create();W=u.div(P,E),j=u.sub(c&&u.sub(c.position,c.positionPrev)||G,h&&u.sub(h.position,h.positionPrev)||G),Y=u.dot(W,j)}h&&!h.isStatic&&(z=h.inverseMass/F,h.constraintImpulse.x-=L.x*z,h.constraintImpulse.y-=L.y*z,h.position.x-=L.x*z,h.position.y-=L.y*z,w>0&&(h.positionPrev.x-=w*W.x*Y*z,h.positionPrev.y-=w*W.y*Y*z),N=u.cross(p,L)/D*l._torqueDampen*h.inverseInertia*(1-d.angularStiffness),h.constraintImpulse.angle-=N,h.angle-=N),c&&!c.isStatic&&(z=c.inverseMass/F,c.constraintImpulse.x+=L.x*z,c.constraintImpulse.y+=L.y*z,c.position.x+=L.x*z,c.position.y+=L.y*z,w>0&&(c.positionPrev.x+=w*W.x*Y*z,c.positionPrev.y+=w*W.y*Y*z),N=u.cross(m,L)/D*l._torqueDampen*c.inverseInertia*(1-d.angularStiffness),c.constraintImpulse.angle+=N,c.angle+=N)}}},l.postSolveAll=function(d){for(var s=0;s0&&(m.position.x+=c.x,m.position.y+=c.y),c.angle!==0&&(g.rotate(m.vertices,c.angle,h.position),n.rotate(m.axes,c.angle),p>0&&u.rotateAbout(m.position,c.angle,h.position,m.position)),a.update(m.bounds,m.vertices,h.velocity)}c.angle*=l._warming,c.x*=l._warming,c.y*=l._warming}}},l.pointAWorld=function(d){return{x:(d.bodyA?d.bodyA.position.x:0)+(d.pointA?d.pointA.x:0),y:(d.bodyA?d.bodyA.position.y:0)+(d.pointA?d.pointA.y:0)}},l.pointBWorld=function(d){return{x:(d.bodyB?d.bodyB.position.x:0)+(d.pointB?d.pointB.x:0),y:(d.bodyB?d.bodyB.position.y:0)+(d.pointB?d.pointB.y:0)}},l.currentLength=function(d){var s=(d.bodyA?d.bodyA.position.x:0)+(d.pointA?d.pointA.x:0),h=(d.bodyA?d.bodyA.position.y:0)+(d.pointA?d.pointA.y:0),c=(d.bodyB?d.bodyB.position.x:0)+(d.pointB?d.pointB.x:0),p=(d.bodyB?d.bodyB.position.y:0)+(d.pointB?d.pointB.y:0),m=s-c,x=h-p;return Math.sqrt(m*m+x*x)}})()},68758:(f,T,t)=>{var l={};f.exports=l,function(){l._baseDelta=16.666666666666668,l._nextId=0,l._seed=0,l._nowStartTime=+new Date,l._warnedOnce={},l._decomp=null,l.extend=function(u,o){var a,n;typeof o=="boolean"?(a=2,n=o):(a=1,n=!0);for(var r=a;r0;o--){var a=Math.floor(l.random()*(o+1)),n=u[o];u[o]=u[a],u[a]=n}return u},l.choose=function(u){return u[Math.floor(l.random()*u.length)]},l.isElement=function(u){return typeof HTMLElement<"u"?u instanceof HTMLElement:!!(u&&u.nodeType&&u.nodeName)},l.isArray=function(u){return Object.prototype.toString.call(u)==="[object Array]"},l.isFunction=function(u){return typeof u=="function"},l.isPlainObject=function(u){return typeof u=="object"&&u.constructor===Object},l.isString=function(u){return toString.call(u)==="[object String]"},l.clamp=function(u,o,a){return ua?a:u},l.sign=function(u){return u<0?-1:1},l.now=function(){if(typeof window<"u"&&window.performance){if(window.performance.now)return window.performance.now();if(window.performance.webkitNow)return window.performance.webkitNow()}return Date.now?Date.now():new Date-l._nowStartTime},l.random=function(u,o){return u=typeof u<"u"?u:0,o=typeof o<"u"?o:1,u+g()*(o-u)};var g=function(){return l._seed=(l._seed*9301+49297)%233280,l._seed/233280};l.colorToNumber=function(u){return u=u.replace("#",""),u.length==3&&(u=u.charAt(0)+u.charAt(0)+u.charAt(1)+u.charAt(1)+u.charAt(2)+u.charAt(2)),parseInt(u,16)},l.logLevel=1,l.log=function(){console&&l.logLevel>0&&l.logLevel<=3&&console.log.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},l.info=function(){console&&l.logLevel>0&&l.logLevel<=2&&console.info.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},l.warn=function(){console&&l.logLevel>0&&l.logLevel<=3&&console.warn.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},l.warnOnce=function(){var u=Array.prototype.slice.call(arguments).join(" ");l._warnedOnce[u]||(l.warn(u),l._warnedOnce[u]=!0)},l.deprecated=function(u,o,a){u[o]=l.chain(function(){l.warnOnce("🔅 deprecated 🔅",a)},u[o])},l.nextId=function(){return l._nextId++},l.indexOf=function(u,o){if(u.indexOf)return u.indexOf(o);for(var a=0;a{var l={};f.exports=l;var g=t(22806),u=t(44272),o=t(13657),a=t(91327),n=t(39073),r=t(11299),d=t(52838),s=t(68758),h=t(84125);(function(){l.create=function(c){c=c||{};var p={positionIterations:6,velocityIterations:4,constraintIterations:2,enableSleeping:!1,events:[],plugin:{},gravity:{x:0,y:1,scale:.001},timing:{timestamp:0,timeScale:1,lastDelta:0,lastElapsed:0}},m=s.extend(p,c);return m.world=c.world||r.create({label:"World"}),m.pairs=c.pairs||a.create(),m.detector=c.detector||o.create(),m.grid={buckets:[]},m.world.gravity=m.gravity,m.broadphase=m.grid,m.metrics={},m},l.update=function(c,p){var m=s.now(),x=c.world,S=c.detector,P=c.pairs,E=c.timing,R=E.timestamp,M;p=typeof p<"u"?p:s._baseDelta,p*=E.timeScale,E.timestamp+=p,E.lastDelta=p;var O={timestamp:E.timestamp,delta:p};n.trigger(c,"beforeUpdate",O);var w=r.allBodies(x),L=r.allConstraints(x);for(x.isModified&&(o.setBodies(S,w),r.setModified(x,!1,!1,!0)),c.enableSleeping&&g.update(w,p),l._bodiesApplyGravity(w,c.gravity),p>0&&l._bodiesUpdate(w,p),n.trigger(c,"beforeSolve",O),d.preSolveAll(w),M=0;M0&&n.trigger(c,"collisionStart",{pairs:P.collisionStart,timestamp:E.timestamp,delta:p});var b=s.clamp(20/c.positionIterations,0,1);for(u.preSolvePosition(P.list),M=0;M0&&n.trigger(c,"collisionActive",{pairs:P.collisionActive,timestamp:E.timestamp,delta:p}),P.collisionEnd.length>0&&n.trigger(c,"collisionEnd",{pairs:P.collisionEnd,timestamp:E.timestamp,delta:p}),l._bodiesClearForces(w),n.trigger(c,"afterUpdate",O),c.timing.lastElapsed=s.now()-m,c},l.merge=function(c,p){if(s.extend(c,p),p.world){c.world=p.world,l.clear(c);for(var m=r.allBodies(c.world),x=0;x{var l={};f.exports=l;var g=t(68758);(function(){l.on=function(u,o,a){for(var n=o.split(" "),r,d=0;d0){a||(a={}),n=o.split(" ");for(var c=0;c{var l={};f.exports=l;var g=t(84474),u=t(68758);(function(){l.name="matter-js",l.version="0.19.0",l.uses=[],l.used=[],l.use=function(){g.use(l,Array.prototype.slice.call(arguments))},l.before=function(o,a){return o=o.replace(/^Matter./,""),u.chainPathBefore(l,o,a)},l.after=function(o,a){return o=o.replace(/^Matter./,""),u.chainPathAfter(l,o,a)}})()},84474:(f,T,t)=>{var l={};f.exports=l;var g=t(68758);(function(){l._registry={},l.register=function(u){if(l.isPlugin(u)||g.warn("Plugin.register:",l.toString(u),"does not implement all required fields."),u.name in l._registry){var o=l._registry[u.name],a=l.versionParse(u.version).number,n=l.versionParse(o.version).number;a>n?(g.warn("Plugin.register:",l.toString(o),"was upgraded to",l.toString(u)),l._registry[u.name]=u):a-1},l.isFor=function(u,o){var a=u.for&&l.dependencyParse(u.for);return!u.for||o.name===a.name&&l.versionSatisfies(o.version,a.range)},l.use=function(u,o){if(u.uses=(u.uses||[]).concat(o||[]),u.uses.length===0){g.warn("Plugin.use:",l.toString(u),"does not specify any dependencies to install.");return}for(var a=l.dependencies(u),n=g.topologicalSort(a),r=[],d=0;d0&&!s.silent&&g.info(r.join(" "))},l.dependencies=function(u,o){var a=l.dependencyParse(u),n=a.name;if(o=o||{},!(n in o)){u=l.resolve(u)||u,o[n]=g.map(u.uses||[],function(d){l.isPlugin(d)&&l.register(d);var s=l.dependencyParse(d),h=l.resolve(d);return h&&!l.versionSatisfies(h.version,s.range)?(g.warn("Plugin.dependencies:",l.toString(h),"does not satisfy",l.toString(s),"used by",l.toString(a)+"."),h._warned=!0,u._warned=!0):h||(g.warn("Plugin.dependencies:",l.toString(d),"used by",l.toString(a),"could not be resolved."),u._warned=!0),s.name});for(var r=0;r=|>)?\s*((\d+)\.(\d+)\.(\d+))(-[0-9A-Za-z-+]+)?$/;o.test(u)||g.warn("Plugin.versionParse:",u,"is not a valid version or range.");var a=o.exec(u),n=Number(a[4]),r=Number(a[5]),d=Number(a[6]);return{isRange:!!(a[1]||a[2]),version:a[3],range:u,operator:a[1]||a[2]||"",major:n,minor:r,patch:d,parts:[n,r,d],prerelease:a[7],number:n*1e8+r*1e4+d}},l.versionSatisfies=function(u,o){o=o||"*";var a=l.versionParse(o),n=l.versionParse(u);if(a.isRange){if(a.operator==="*"||u==="*")return!0;if(a.operator===">")return n.number>a.number;if(a.operator===">=")return n.number>=a.number;if(a.operator==="~")return n.major===a.major&&n.minor===a.minor&&n.patch>=a.patch;if(a.operator==="^")return a.major>0?n.major===a.major&&n.number>=a.number:a.minor>0?n.minor===a.minor&&n.patch>=a.patch:n.patch===a.patch}return u===o||u==="*"}})()},22806:(f,T,t)=>{var l={};f.exports=l;var g=t(84125),u=t(39073),o=t(68758);(function(){l._motionWakeThreshold=.18,l._motionSleepThreshold=.08,l._minBias=.9,l.update=function(a,n){for(var r=n/o._baseDelta,d=l._motionSleepThreshold,s=0;s0&&h.motion=h.sleepThreshold/r&&l.set(h,!0)):h.sleepCounter>0&&(h.sleepCounter-=1)}},l.afterCollisions=function(a){for(var n=l._motionSleepThreshold,r=0;rn&&l.set(p,!1)}}}},l.set=function(a,n){var r=a.isSleeping;n?(a.isSleeping=!0,a.sleepCounter=a.sleepThreshold,a.positionImpulse.x=0,a.positionImpulse.y=0,a.positionPrev.x=a.position.x,a.positionPrev.y=a.position.y,a.anglePrev=a.angle,a.speed=0,a.angularSpeed=0,a.motion=0,r||u.trigger(a,"sleepStart")):(a.isSleeping=!1,a.sleepCounter=0,r&&u.trigger(a,"sleepEnd"))}})()},68516:(f,T,t)=>{var l={};f.exports=l;var g=t(39745),u=t(68758),o=t(84125),a=t(84091),n=t(10438);(function(){l.rectangle=function(r,d,s,h,c){c=c||{};var p={label:"Rectangle Body",position:{x:r,y:d},vertices:g.fromPath("L 0 0 L "+s+" 0 L "+s+" "+h+" L 0 "+h)};if(c.chamfer){var m=c.chamfer;p.vertices=g.chamfer(p.vertices,m.radius,m.quality,m.qualityMin,m.qualityMax),delete c.chamfer}return o.create(u.extend({},p,c))},l.trapezoid=function(r,d,s,h,c,p){p=p||{},c*=.5;var m=(1-c*2)*s,x=s*c,S=x+m,P=S+x,E;c<.5?E="L 0 0 L "+x+" "+-h+" L "+S+" "+-h+" L "+P+" 0":E="L 0 0 L "+S+" "+-h+" L "+P+" 0";var R={label:"Trapezoid Body",position:{x:r,y:d},vertices:g.fromPath(E)};if(p.chamfer){var M=p.chamfer;R.vertices=g.chamfer(R.vertices,M.radius,M.quality,M.qualityMin,M.qualityMax),delete p.chamfer}return o.create(u.extend({},R,p))},l.circle=function(r,d,s,h,c){h=h||{};var p={label:"Circle Body",circleRadius:s};c=c||25;var m=Math.ceil(Math.max(10,Math.min(c,s)));return m%2===1&&(m+=1),l.polygon(r,d,m,s,u.extend({},p,h))},l.polygon=function(r,d,s,h,c){if(c=c||{},s<3)return l.circle(r,d,h,c);for(var p=2*Math.PI/s,m="",x=p*.5,S=0;S0&&g.area(j)1?(E=o.create(u.extend({parts:R.slice(0)},h)),o.setPosition(E,{x:r,y:d}),E):R[0]},l.flagCoincidentParts=function(r,d){d===void 0&&(d=5);for(var s=0;s{var l={};f.exports=l;var g=t(11299),u=t(52838),o=t(68758),a=t(84125),n=t(68516);(function(){l.stack=function(r,d,s,h,c,p,m){for(var x=g.create({label:"Stack"}),S=r,P=d,E,R=0,M=0;MO&&(O=F),a.translate(L,{x:b*.5,y:F*.5}),S=L.bounds.max.x+c,g.addBody(x,L),E=L,R+=1}else S+=c}P+=O+p,S=r}return x},l.chain=function(r,d,s,h,c,p){for(var m=r.bodies,x=1;x0)for(x=0;x0&&(E=p[x-1+(m-1)*d],g.addConstraint(r,u.create(o.extend({bodyA:E,bodyB:P},c)))),h&&xO)){E=O-E;var L=E,F=s-1-E;if(!(PF)){M===1&&a.translate(R,{x:(P+(s%2===1?1:-1))*w,y:0});var b=R?P*w:0;return m(r+b+P*c,S,P,E,R,M)}}})},l.newtonsCradle=function(r,d,s,h,c){for(var p=g.create({label:"Newtons Cradle"}),m=0;m{var l={};f.exports=l;var g=t(10438),u=t(68758);(function(){l.fromVertices=function(o){for(var a={},n=0;n{var T={};f.exports=T,function(){T.create=function(t){var l={min:{x:0,y:0},max:{x:0,y:0}};return t&&T.update(l,t),l},T.update=function(t,l,g){t.min.x=1/0,t.max.x=-1/0,t.min.y=1/0,t.max.y=-1/0;for(var u=0;ut.max.x&&(t.max.x=o.x),o.xt.max.y&&(t.max.y=o.y),o.y0?t.max.x+=g.x:t.min.x+=g.x,g.y>0?t.max.y+=g.y:t.min.y+=g.y)},T.contains=function(t,l){return l.x>=t.min.x&&l.x<=t.max.x&&l.y>=t.min.y&&l.y<=t.max.y},T.overlaps=function(t,l){return t.min.x<=l.max.x&&t.max.x>=l.min.x&&t.max.y>=l.min.y&&t.min.y<=l.max.y},T.translate=function(t,l){t.min.x+=l.x,t.max.x+=l.x,t.min.y+=l.y,t.max.y+=l.y},T.shift=function(t,l){var g=t.max.x-t.min.x,u=t.max.y-t.min.y;t.min.x=l.x,t.max.x=l.x+g,t.min.y=l.y,t.max.y=l.y+u}}()},92765:(f,T,t)=>{var l={};f.exports=l,t(84091);var g=t(68758);(function(){l.pathToVertices=function(u,o){typeof window<"u"&&!("SVGPathSeg"in window)&&g.warn("Svg.pathToVertices: SVGPathSeg not defined, a polyfill is required.");var a,n,r,d,s,h,c,p,m,x,S=[],P,E,R=0,M=0,O=0;o=o||15;var w=function(F,b,D){var N=D%2===1&&D>1;if(!m||F!=m.x||b!=m.y){m&&N?(P=m.x,E=m.y):(P=0,E=0);var z={x:P+F,y:E+b};(N||!m)&&(m=z),S.push(z),M=P+F,O=E+b}},L=function(F){var b=F.pathSegTypeAsLetter.toUpperCase();if(b!=="Z"){switch(b){case"M":case"L":case"T":case"C":case"S":case"Q":M=F.x,O=F.y;break;case"H":M=F.x;break;case"V":O=F.y;break}w(M,O,F.pathSegType)}};for(l._svgPathToAbsolute(u),r=u.getTotalLength(),h=[],a=0;a{var T={};f.exports=T,function(){T.create=function(t,l){return{x:t||0,y:l||0}},T.clone=function(t){return{x:t.x,y:t.y}},T.magnitude=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},T.magnitudeSquared=function(t){return t.x*t.x+t.y*t.y},T.rotate=function(t,l,g){var u=Math.cos(l),o=Math.sin(l);g||(g={});var a=t.x*u-t.y*o;return g.y=t.x*o+t.y*u,g.x=a,g},T.rotateAbout=function(t,l,g,u){var o=Math.cos(l),a=Math.sin(l);u||(u={});var n=g.x+((t.x-g.x)*o-(t.y-g.y)*a);return u.y=g.y+((t.x-g.x)*a+(t.y-g.y)*o),u.x=n,u},T.normalise=function(t){var l=T.magnitude(t);return l===0?{x:0,y:0}:{x:t.x/l,y:t.y/l}},T.dot=function(t,l){return t.x*l.x+t.y*l.y},T.cross=function(t,l){return t.x*l.y-t.y*l.x},T.cross3=function(t,l,g){return(l.x-t.x)*(g.y-t.y)-(l.y-t.y)*(g.x-t.x)},T.add=function(t,l,g){return g||(g={}),g.x=t.x+l.x,g.y=t.y+l.y,g},T.sub=function(t,l,g){return g||(g={}),g.x=t.x-l.x,g.y=t.y-l.y,g},T.mult=function(t,l){return{x:t.x*l,y:t.y*l}},T.div=function(t,l){return{x:t.x/l,y:t.y/l}},T.perp=function(t,l){return l=l===!0?-1:1,{x:l*-t.y,y:l*t.x}},T.neg=function(t){return{x:-t.x,y:-t.y}},T.angle=function(t,l){return Math.atan2(l.y-t.y,l.x-t.x)},T._temp=[T.create(),T.create(),T.create(),T.create(),T.create(),T.create()]}()},39745:(f,T,t)=>{var l={};f.exports=l;var g=t(10438),u=t(68758);(function(){l.create=function(o,a){for(var n=[],r=0;r0)return!1;s=h}return!0},l.scale=function(o,a,n,r){if(a===1&&n===1)return o;r=r||l.centre(o);for(var d,s,h=0;h=0?h-1:o.length-1],p=o[h],m=o[(h+1)%o.length],x=a[h0&&(a|=2),a===3)return!1;return a!==0?!0:null},l.hull=function(o){var a=[],n=[],r,d;for(o=o.slice(0),o.sort(function(s,h){var c=s.x-h.x;return c!==0?c:s.y-h.y}),d=0;d=2&&g.cross3(n[n.length-2],n[n.length-1],r)<=0;)n.pop();n.push(r)}for(d=o.length-1;d>=0;d-=1){for(r=o[d];a.length>=2&&g.cross3(a[a.length-2],a[a.length-1],r)<=0;)a.pop();a.push(r)}return a.pop(),n.pop(),a.concat(n)}})()},1675:(f,T,t)=>{var l=t(18171),g={name:"matter-attractors",version:"0.1.7",for:"matter-js@^0.19.0",silent:!0,install:function(u){u.after("Body.create",function(){g.Body.init(this)}),u.before("Engine.update",function(o){g.Engine.update(o)})},Body:{init:function(u){u.plugin.attractors=u.plugin.attractors||[]}},Engine:{update:function(u){for(var o=l.Composite.allBodies(u.world),a=0;a0)for(var d=0;d{/** + * @author @dxu https://github.com/dxu/matter-collision-events + * @author Richard Davey + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={name:"matter-collision-events",version:"0.1.6",for:"matter-js@^0.19.0",silent:!0,install:function(t){t.after("Engine.create",function(){t.Events.on(this,"collisionStart",function(l){l.pairs.map(function(g){var u=g.bodyA,o=g.bodyB;u.gameObject&&u.gameObject.emit("collide",u,o,g),o.gameObject&&o.gameObject.emit("collide",o,u,g),t.Events.trigger(u,"onCollide",{pair:g}),t.Events.trigger(o,"onCollide",{pair:g}),u.onCollideCallback&&u.onCollideCallback(g),o.onCollideCallback&&o.onCollideCallback(g),u.onCollideWith[o.id]&&u.onCollideWith[o.id](o,g),o.onCollideWith[u.id]&&o.onCollideWith[u.id](u,g)})}),t.Events.on(this,"collisionActive",function(l){l.pairs.map(function(g){var u=g.bodyA,o=g.bodyB;u.gameObject&&u.gameObject.emit("collideActive",u,o,g),o.gameObject&&o.gameObject.emit("collideActive",o,u,g),t.Events.trigger(u,"onCollideActive",{pair:g}),t.Events.trigger(o,"onCollideActive",{pair:g}),u.onCollideActiveCallback&&u.onCollideActiveCallback(g),o.onCollideActiveCallback&&o.onCollideActiveCallback(g)})}),t.Events.on(this,"collisionEnd",function(l){l.pairs.map(function(g){var u=g.bodyA,o=g.bodyB;u.gameObject&&u.gameObject.emit("collideEnd",u,o,g),o.gameObject&&o.gameObject.emit("collideEnd",o,u,g),t.Events.trigger(u,"onCollideEnd",{pair:g}),t.Events.trigger(o,"onCollideEnd",{pair:g}),u.onCollideEndCallback&&u.onCollideEndCallback(g),o.onCollideEndCallback&&o.onCollideEndCallback(g)})})})}};f.exports=T},44097:(f,T,t)=>{var l=t(18171),g={name:"matter-wrap",version:"0.1.4",for:"matter-js@^0.19.0",silent:!0,install:function(u){u.after("Engine.update",function(){g.Engine.update(this)})},Engine:{update:function(u){for(var o=u.world,a=l.Composite.allBodies(o),n=l.Composite.allComposites(o),r=0;ro.max.x?a=o.min.x-u.max.x:u.max.xo.max.y?n=o.min.y-u.max.y:u.max.y{/** + * @author Stefan Hedman (http://steffe.se) + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={decomp:L,quickDecomp:N,isSimple:b,removeCollinearPoints:z,removeDuplicatePoints:W,makeCCW:m};function T(G,V,I){I=I||0;var B=[0,0],U,X,$,k,K,J,q;return U=G[1][1]-G[0][1],X=G[0][0]-G[1][0],$=U*G[0][0]+X*G[0][1],k=V[1][1]-V[0][1],K=V[0][0]-V[1][0],J=k*V[0][0]+K*V[0][1],q=U*K-k*X,Y(q,0,I)||(B[0]=(K*$-X*J)/q,B[1]=(U*J-k*$)/q),B}function t(G,V,I,B){var U=V[0]-G[0],X=V[1]-G[1],$=B[0]-I[0],k=B[1]-I[1];if($*X-k*U===0)return!1;var K=(U*(I[1]-G[1])+X*(G[0]-I[0]))/($*X-k*U),J=($*(G[1]-I[1])+k*(I[0]-G[0]))/(k*U-$*X);return K>=0&&K<=1&&J>=0&&J<=1}function l(G,V,I){return(V[0]-G[0])*(I[1]-G[1])-(I[0]-G[0])*(V[1]-G[1])}function g(G,V,I){return l(G,V,I)>0}function u(G,V,I){return l(G,V,I)>=0}function o(G,V,I){return l(G,V,I)<0}function a(G,V,I){return l(G,V,I)<=0}var n=[],r=[];function d(G,V,I,B){if(B){var U=n,X=r;U[0]=V[0]-G[0],U[1]=V[1]-G[1],X[0]=I[0]-V[0],X[1]=I[1]-V[1];var $=U[0]*X[0]+U[1]*X[1],k=Math.sqrt(U[0]*U[0]+U[1]*U[1]),K=Math.sqrt(X[0]*X[0]+X[1]*X[1]),J=Math.acos($/(k*K));return JI[V][0])&&(V=B);return g(h(G,V-1),h(G,V),h(G,V+1))?!1:(x(G),!0)}function x(G){for(var V=[],I=G.length,B=0;B!==I;B++)V.push(G.pop());for(var B=0;B!==I;B++)G[B]=V[B]}function S(G,V){return o(h(G,V-1),h(G,V),h(G,V+1))}var P=[],E=[];function R(G,V,I){var B,U,X=P,$=E;if(u(h(G,V+1),h(G,V),h(G,I))&&a(h(G,V-1),h(G,V),h(G,I)))return!1;U=s(h(G,V),h(G,I));for(var k=0;k!==G.length;++k)if(!((k+1)%G.length===V||k===V)&&u(h(G,V),h(G,I),h(G,k+1))&&a(h(G,V),h(G,I),h(G,k))&&(X[0]=h(G,V),X[1]=h(G,I),$[0]=h(G,k),$[1]=h(G,k+1),B=T(X,$),s(h(G,V),B)0?F(G,V):[G]}function F(G,V){if(V.length===0)return[G];if(V instanceof Array&&V.length&&V[0]instanceof Array&&V[0].length===2&&V[0][0]instanceof Array){for(var I=[G],B=0;BX)return console.warn("quickDecomp: max level ("+X+") reached."),V;for(var ht=0;httt&&(tt+=G.length),it=Number.MAX_VALUE,tt3&&B>=0;--B)d(h(G,B-1),h(G,B),h(G,B+1),V)&&(G.splice(B%G.length,1),I++);return I}function W(G,V){for(var I=G.length-1;I>=1;--I)for(var B=G[I],U=I-1;U>=0;--U)if(j(B,G[U],V)){G.splice(I,1);continue}}function Y(G,V,I){return I=I||0,Math.abs(G-V)<=I}function j(G,V,I){return Y(G[0],V[0],I)&&Y(G[1],V[1],I)}},88257:(f,T,t)=>{/** +* @author Richard Davey +* @copyright 2013-2023 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser3-plugin-template/blob/master/LICENSE|MIT License} +*/var l=t(56694),g=new l({initialize:function(o){this.pluginManager=o,this.game=o.game},init:function(){},start:function(){},stop:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});f.exports=g},18360:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={Global:["game","anims","cache","plugins","registry","scale","sound","textures","renderer"],CoreScene:["EventEmitter","CameraManager","GameObjectCreator","GameObjectFactory","ScenePlugin","DisplayList","UpdateList"],DefaultScene:["Clock","DataManagerPlugin","InputPlugin","Loader","TweenManager","LightsPlugin"]};f.exports=T},91963:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={},t={},l={};l.register=function(g,u,o,a){a===void 0&&(a=!1),T[g]={plugin:u,mapping:o,custom:a}},l.registerCustom=function(g,u,o,a){t[g]={plugin:u,mapping:o,data:a}},l.hasCore=function(g){return T.hasOwnProperty(g)},l.hasCustom=function(g){return t.hasOwnProperty(g)},l.getCore=function(g){return T[g]},l.getCustom=function(g){return t[g]},l.getCustomClass=function(g){return t.hasOwnProperty(g)?t[g].plugin:null},l.remove=function(g){T.hasOwnProperty(g)&&delete T[g]},l.removeCustom=function(g){t.hasOwnProperty(g)&&delete t[g]},l.destroyCorePlugins=function(){for(var g in T)T.hasOwnProperty(g)&&delete T[g]},l.destroyCustomPlugins=function(){for(var g in t)t.hasOwnProperty(g)&&delete t[g]},f.exports=l},49274:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(97081),u=t(6659),o=t(76846),a=t(99325),n=t(61286),r=t(72632),d=t(91963),s=t(66458),h=new l({Extends:u,initialize:function(p){u.call(this),this.game=p,this.plugins=[],this.scenePlugins=[],this._pendingGlobal=[],this._pendingScene=[],p.isBooted?this.boot():p.events.once(g.BOOT,this.boot,this)},boot:function(){var c,p,m,x,S,P,E,R=this.game.config,M=R.installGlobalPlugins;for(M=M.concat(this._pendingGlobal),c=0;c{/** +* @author Richard Davey +* @copyright 2013-2023 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser3-plugin-template/blob/master/LICENSE|MIT License} +*/var l=t(88257),g=t(56694),u=t(7599),o=new g({Extends:l,initialize:function(n,r,d){l.call(this,r),this.scene=n,this.systems=n.sys,this.pluginKey=d,n.sys.events.once(u.BOOT,this.boot,this)},boot:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});f.exports=o},45615:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={BasePlugin:t(88257),DefaultPlugins:t(18360),PluginCache:t(91963),PluginManager:t(49274),ScenePlugin:t(39283)}},75205:()=>{!("requestVideoFrameCallback"in HTMLVideoElement.prototype)&&"getVideoPlaybackQuality"in HTMLVideoElement.prototype&&(HTMLVideoElement.prototype._rvfcpolyfillmap={},HTMLVideoElement.prototype.requestVideoFrameCallback=function(f){const T=performance.now(),t=this.getVideoPlaybackQuality(),l=this.mozPresentedFrames||this.mozPaintedFrames||t.totalVideoFrames-t.droppedVideoFrames,g=(u,o)=>{const a=this.getVideoPlaybackQuality(),n=this.mozPresentedFrames||this.mozPaintedFrames||a.totalVideoFrames-a.droppedVideoFrames;if(n>l){const r=this.mozFrameDelay||a.totalFrameDelay-t.totalFrameDelay||0,d=o-u;f(o,{presentationTime:o+r*1e3,expectedDisplayTime:o+d,width:this.videoWidth,height:this.videoHeight,mediaTime:Math.max(0,this.currentTime||0)+d/1e3,presentedFrames:n,processingDuration:r}),delete this._rvfcpolyfillmap[T]}else this._rvfcpolyfillmap[T]=requestAnimationFrame(r=>g(o,r))};return this._rvfcpolyfillmap[T]=requestAnimationFrame(u=>g(T,u)),T},HTMLVideoElement.prototype.cancelVideoFrameCallback=function(f){cancelAnimationFrame(this._rvfcpolyfillmap[f]),delete this._rvfcpolyfillmap[f]})},95723:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={SKIP_CHECK:-1,NORMAL:0,ADD:1,MULTIPLY:2,SCREEN:3,OVERLAY:4,DARKEN:5,LIGHTEN:6,COLOR_DODGE:7,COLOR_BURN:8,HARD_LIGHT:9,SOFT_LIGHT:10,DIFFERENCE:11,EXCLUSION:12,HUE:13,SATURATION:14,COLOR:15,LUMINOSITY:16,ERASE:17,SOURCE_IN:18,SOURCE_OUT:19,SOURCE_ATOP:20,DESTINATION_OVER:21,DESTINATION_IN:22,DESTINATION_OUT:23,DESTINATION_ATOP:24,LIGHTER:25,COPY:26,XOR:27}},27394:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={DEFAULT:0,LINEAR:0,NEAREST:1};f.exports=T},91135:(f,T,t)=>{/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(89787),g=t(61840),u=t(56694),o=t(86459),a=t(6659),n=t(81044),r=t(32834),d=t(40444),s=t(38203),h=t(69360),c=new u({Extends:a,initialize:function(m){a.call(this);var x=m.config;this.config={clearBeforeRender:x.clearBeforeRender,backgroundColor:x.backgroundColor,antialias:x.antialias,roundPixels:x.roundPixels},this.game=m,this.type=o.CANVAS,this.drawCount=0,this.width=0,this.height=0,this.gameCanvas=m.canvas;var S={alpha:m.config.transparent,desynchronized:m.config.desynchronized,willReadFrequently:!1};this.gameContext=x.context?x.context:this.gameCanvas.getContext("2d",S),this.currentContext=this.gameContext,this.antialias=m.config.antialias,this.blendModes=r(),this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92},this._tempMatrix1=new h,this._tempMatrix2=new h,this._tempMatrix3=new h,this.isBooted=!1,this.init()},init:function(){this.game.textures.once(s.READY,this.boot,this)},boot:function(){var p=this.game,m=p.scale.baseSize;this.width=m.width,this.height=m.height,this.isBooted=!0,p.scale.on(d.RESIZE,this.onResize,this),this.resize(m.width,m.height)},onResize:function(p,m){(m.width!==this.width||m.height!==this.height)&&this.resize(m.width,m.height)},resize:function(p,m){this.width=p,this.height=m,this.emit(n.RESIZE,p,m)},resetTransform:function(){this.currentContext.setTransform(1,0,0,1,0,0)},setBlendMode:function(p){return this.currentContext.globalCompositeOperation=p,this},setContext:function(p){return this.currentContext=p||this.gameContext,this},setAlpha:function(p){return this.currentContext.globalAlpha=p,this},preRender:function(){var p=this.gameContext,m=this.config,x=this.width,S=this.height;p.globalAlpha=1,p.globalCompositeOperation="source-over",p.setTransform(1,0,0,1,0,0),m.clearBeforeRender&&(p.clearRect(0,0,x,S),m.transparent||(p.fillStyle=m.backgroundColor.rgba,p.fillRect(0,0,x,S))),p.save(),this.drawCount=0,this.emit(n.PRE_RENDER)},render:function(p,m,x){var S=m.length;this.emit(n.RENDER,p,x);var P=x.x,E=x.y,R=x.width,M=x.height,O=x.renderToTexture?x.context:p.sys.context;O.save(),this.game.scene.customViewports&&(O.beginPath(),O.rect(P,E,R,M),O.clip()),x.emit(l.PRE_RENDER,x),this.currentContext=O;var w=x.mask;w&&w.preRenderCanvas(this,null,x._maskCamera),x.transparent||(O.fillStyle=x.backgroundColor.rgba,O.fillRect(P,E,R,M)),O.globalAlpha=x.alpha,O.globalCompositeOperation="source-over",this.drawCount+=S,x.renderToTexture&&x.emit(l.PRE_RENDER,x),x.matrix.copyToContext(O);for(var L=0;L=0?Y=-(Y+F):Y<0&&(Y=Math.abs(Y)-F)),p.flipY&&(j>=0?j=-(j+b):j<0&&(j=Math.abs(j)-b))}var V=1,I=1;p.flipX&&(D||(Y+=-m.realWidth+z*2),V=-1),p.flipY&&(D||(j+=-m.realHeight+W*2),I=-1);var B=p.x,U=p.y;x.roundPixels&&(B=Math.floor(B),U=Math.floor(U)),M.applyITRS(B,U,p.rotation,p.scaleX*V,p.scaleY*I),R.copyFrom(x.matrix),S?(R.multiplyWithOffset(S,-x.scrollX*p.scrollFactorX,-x.scrollY*p.scrollFactorY),M.e=B,M.f=U):(M.e-=x.scrollX*p.scrollFactorX,M.f-=x.scrollY*p.scrollFactorY),R.multiply(M),x.roundPixels&&(R.e=Math.round(R.e),R.f=Math.round(R.f)),E.save(),R.setToContext(E),E.globalCompositeOperation=this.blendModes[p.blendMode],E.globalAlpha=P,E.imageSmoothingEnabled=!m.source.scaleMode,p.mask&&p.mask.preRenderCanvas(this,p,x),F>0&&b>0&&E.drawImage(m.source.image,w,L,F,b,Y,j,F/N,b/N),p.mask&&p.mask.postRenderCanvas(this,p,x),E.restore()}},destroy:function(){this.removeAllListeners(),this.game=null,this.gameCanvas=null,this.gameContext=null}});f.exports=c},6046:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={CanvasRenderer:t(91135),GetBlendModes:t(32834),SetTransform:t(49584)}},32834:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(95723),g=t(98581),u=function(){var o=[],a=g.supportNewBlendModes,n="source-over";return o[l.NORMAL]=n,o[l.ADD]="lighter",o[l.MULTIPLY]=a?"multiply":n,o[l.SCREEN]=a?"screen":n,o[l.OVERLAY]=a?"overlay":n,o[l.DARKEN]=a?"darken":n,o[l.LIGHTEN]=a?"lighten":n,o[l.COLOR_DODGE]=a?"color-dodge":n,o[l.COLOR_BURN]=a?"color-burn":n,o[l.HARD_LIGHT]=a?"hard-light":n,o[l.SOFT_LIGHT]=a?"soft-light":n,o[l.DIFFERENCE]=a?"difference":n,o[l.EXCLUSION]=a?"exclusion":n,o[l.HUE]=a?"hue":n,o[l.SATURATION]=a?"saturation":n,o[l.COLOR]=a?"color":n,o[l.LUMINOSITY]=a?"luminosity":n,o[l.ERASE]="destination-out",o[l.SOURCE_IN]="source-in",o[l.SOURCE_OUT]="source-out",o[l.SOURCE_ATOP]="source-atop",o[l.DESTINATION_OVER]="destination-over",o[l.DESTINATION_IN]="destination-in",o[l.DESTINATION_OUT]="destination-out",o[l.DESTINATION_ATOP]="destination-atop",o[l.LIGHTER]="lighter",o[l.COPY]="copy",o[l.XOR]="xor",o};f.exports=u},49584:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(73329),g=function(u,o,a,n,r){var d=n.alpha*a.alpha;if(d<=0)return!1;var s=l(a,n,r).calc;return o.globalCompositeOperation=u.blendModes[a.blendMode],o.globalAlpha=d,o.save(),s.setToContext(o),o.imageSmoothingEnabled=a.frame?!a.frame.source.scaleMode:u.antialias,!0};f.exports=g},70936:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="postrender"},99298:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="prerender"},7743:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="render"},99519:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="resize"},81044:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={POST_RENDER:t(70936),PRE_RENDER:t(99298),RENDER:t(7743),RESIZE:t(99519)}},42069:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Canvas:t(6046),Events:t(81044),Snapshot:t(95528),WebGL:t(55478)}},61840:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(61068),g=t(27119),u=t(72632),o=function(a,n){var r=u(n,"callback"),d=u(n,"type","image/png"),s=u(n,"encoder",.92),h=Math.abs(Math.round(u(n,"x",0))),c=Math.abs(Math.round(u(n,"y",0))),p=Math.floor(u(n,"width",a.width)),m=Math.floor(u(n,"height",a.height)),x=u(n,"getPixel",!1);if(x){var S=a.getContext("2d",{willReadFrequently:!1}),P=S.getImageData(h,c,1,1),E=P.data;r.call(null,new g(E[0],E[1],E[2],E[3]))}else if(h!==0||c!==0||p!==a.width||m!==a.height){var R=l.createWebGL(this,p,m),M=R.getContext("2d",{willReadFrequently:!0});p>0&&m>0&&M.drawImage(a,h,c,p,m,0,0,p,m);var O=new Image;O.onerror=function(){r.call(null),l.remove(R)},O.onload=function(){r.call(null,O),l.remove(R)},O.src=R.toDataURL(d,s)}else{var w=new Image;w.onerror=function(){r.call(null)},w.onload=function(){r.call(null,w)},w.src=a.toDataURL(d,s)}};f.exports=o},1217:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(61068),g=t(27119),u=t(72632),o=function(a,n){var r=a,d=u(n,"callback"),s=u(n,"type","image/png"),h=u(n,"encoder",.92),c=Math.abs(Math.round(u(n,"x",0))),p=Math.abs(Math.round(u(n,"y",0))),m=u(n,"getPixel",!1),x=u(n,"isFramebuffer",!1),S=x?u(n,"bufferWidth",1):r.drawingBufferWidth,P=x?u(n,"bufferHeight",1):r.drawingBufferHeight;if(m){var E=new Uint8Array(4),R=x?p:P-p;r.readPixels(c,R,1,1,r.RGBA,r.UNSIGNED_BYTE,E),d.call(null,new g(E[0],E[1],E[2],E[3]))}else{var M=Math.floor(u(n,"width",S)),O=Math.floor(u(n,"height",P)),w=M*O*4,L=new Uint8Array(w);r.readPixels(c,P-p-O,M,O,r.RGBA,r.UNSIGNED_BYTE,L);for(var F=l.createWebGL(this,M,O),b=F.getContext("2d",{willReadFrequently:!0}),D=b.getImageData(0,0,M,O),N=D.data,z=0;z{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Canvas:t(61840),WebGL:t(1217)}},35217:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(65641),u=t(33885),o=t(77290),a=t(72632),n=t(37410),r=t(82127),d=t(5583),s=t(58136),h=t(47406),c=t(81828),p=t(66901),m=t(71264),x=t(77310),S=t(10919),P=t(21213),E=t(51212),R=t(60848),M=new l({initialize:function(w){this.game=w.game,this.renderer=w,this.classes=new u([[g.UTILITY_PIPELINE,R],[g.MULTI_PIPELINE,x],[g.BITMAPMASK_PIPELINE,d],[g.SINGLE_PIPELINE,E],[g.ROPE_PIPELINE,P],[g.LIGHT_PIPELINE,p],[g.POINTLIGHT_PIPELINE,S],[g.MOBILE_PIPELINE,m],[g.FX_PIPELINE,c]]),this.postPipelineClasses=new u([[String(h.BARREL),s.Barrel],[String(h.BLOOM),s.Bloom],[String(h.BLUR),s.Blur],[String(h.BOKEH),s.Bokeh],[String(h.CIRCLE),s.Circle],[String(h.COLOR_MATRIX),s.ColorMatrix],[String(h.DISPLACEMENT),s.Displacement],[String(h.GLOW),s.Glow],[String(h.GRADIENT),s.Gradient],[String(h.PIXELATE),s.Pixelate],[String(h.SHADOW),s.Shadow],[String(h.SHINE),s.Shine],[String(h.VIGNETTE),s.Vignette],[String(h.WIPE),s.Wipe]]),this.pipelines=new u,this.default=null,this.current=null,this.previous=null,this.MULTI_PIPELINE=null,this.BITMAPMASK_PIPELINE=null,this.UTILITY_PIPELINE=null,this.MOBILE_PIPELINE=null,this.FX_PIPELINE=null,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2,this.renderTargets=[],this.maxDimension=0,this.frameInc=32,this.targetIndex=0},boot:function(O,w,L){var F=this.renderer,b=this.renderTargets;this.frameInc=Math.floor(a(O,"frameInc",32));for(var D=F.width,N=F.height,z=Math.min(D,N),W=Math.ceil(z/this.frameInc),Y=1;Y=0;L--){var F=w[L];F.active&&F.preBatch(O)}}},postBatch:function(O){if(O.hasPostPipeline){this.flush();for(var w=O.postPipelines,L=0;L=0;L--){var F=w[L];F.active&&F.preBatch(O)}}},postBatchCamera:function(O){if(O.hasPostPipeline){this.flush();for(var w=O.postPipelines,L=0;Lthis.maxDimension)return this.targetIndex=w.length-L,w[this.targetIndex];var F=(r(O,this.frameInc,0,!0)-1)*L;return this.targetIndex=F,w[F]},getSwapRenderTarget:function(){return this.renderTargets[this.targetIndex+1]},getAltSwapRenderTarget:function(){return this.renderTargets[this.targetIndex+2]},destroy:function(){this.flush(),this.classes.clear(),this.postPipelineClasses.clear(),this.pipelines.clear(),this.renderer=null,this.game=null,this.classes=null,this.postPipelineClasses=null,this.pipelines=null,this.default=null,this.current=null,this.previous=null}});f.exports=M},37410:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(81044),u=new l({initialize:function(a,n,r,d,s,h,c,p,m){d===void 0&&(d=1),s===void 0&&(s=0),h===void 0&&(h=!0),c===void 0&&(c=!1),p===void 0&&(p=!0),m===void 0&&(m=!0),this.renderer=a,this.framebuffer=null,this.texture=null,this.width=0,this.height=0,this.scale=d,this.minFilter=s,this.autoClear=h,this.autoResize=!0,this.hasDepthBuffer=p,this.forceClamp=m,this.resize(n,r),c?this.setAutoResize(!0):this.autoResize=!1},setAutoResize:function(o){return o&&!this.autoResize?(this.renderer.on(g.RESIZE,this.resize,this),this.autoResize=!0):!o&&this.autoResize&&(this.renderer.off(g.RESIZE,this.resize,this),this.autoResize=!1),this},resize:function(o,a){var n=o*this.scale,r=a*this.scale;if(this.autoResize&&(n!==this.width||r!==this.height)){var d=this.renderer;d.deleteFramebuffer(this.framebuffer),d.deleteTexture(this.texture),o*=this.scale,a*=this.scale,o=Math.round(o),a=Math.round(a),o<=0&&(o=1),a<=0&&(a=1),this.texture=d.createTextureFromSource(null,o,a,this.minFilter,this.forceClamp),this.framebuffer=d.createFramebuffer(o,a,this.texture,this.hasDepthBuffer),this.width=o,this.height=a}return this},bind:function(o,a,n){o===void 0&&(o=!1);var r=this.renderer;if(o&&r.flush(),a&&n&&this.resize(a,n),r.pushFramebuffer(this.framebuffer,!1,!1),o&&this.adjustViewport(),this.autoClear){var d=this.renderer.gl;d.clearColor(0,0,0,0),d.clear(d.COLOR_BUFFER_BIT)}r.clearStencilMask()},adjustViewport:function(){var o=this.renderer.gl;o.viewport(0,0,this.width,this.height),o.disable(o.SCISSOR_TEST)},clear:function(){var o=this.renderer,a=o.gl;o.pushFramebuffer(this.framebuffer),a.disable(a.SCISSOR_TEST),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),o.popFramebuffer(),o.resetScissor()},unbind:function(o){o===void 0&&(o=!1);var a=this.renderer;return o&&a.flush(),a.popFramebuffer()},destroy:function(){var o=this.renderer;o.deleteFramebuffer(this.framebuffer),o.deleteTexture(this.texture),o.off(g.RESIZE,this.resize,this),this.renderer=null,this.framebuffer=null,this.texture=null}});f.exports=u},75512:f=>{/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @author Matthew Groves <@doormat> + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={getTintFromFloats:function(T,t,l,g){var u=(T*255|0)&255,o=(t*255|0)&255,a=(l*255|0)&255,n=(g*255|0)&255;return(n<<24|u<<16|o<<8|a)>>>0},getTintAppendFloatAlpha:function(T,t){var l=(t*255|0)&255;return(l<<24|T)>>>0},getTintAppendFloatAlphaAndSwap:function(T,t){var l=(T>>16|0)&255,g=(T>>8|0)&255,u=(T|0)&255,o=(t*255|0)&255;return(o<<24|u<<16|g<<8|l)>>>0},getFloatsFromUintRGB:function(T){var t=(T>>16|0)&255,l=(T>>8|0)&255,g=(T|0)&255;return[t/255,l/255,g/255]},checkShaderMax:function(T,t){var l=Math.min(16,T.getParameter(T.MAX_TEXTURE_IMAGE_UNITS));return!t||t===-1?l:Math.min(l,t)},parseFragmentShaderMaxTextures:function(T,t){if(!T)return"";for(var l="",g=0;g0&&(l+=` + else `),g{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(28699),u=t(6659),o=t(18970),a=t(72632),n=t(16650),r=t(81044),d=t(37410),s=t(75512),h=t(71305),c=new l({Extends:u,initialize:function(m){u.call(this);var x=m.game,S=x.renderer,P=S.gl;this.name=a(m,"name","WebGLPipeline"),this.game=x,this.renderer=S,this.manager,this.gl=P,this.view=x.canvas,this.width=0,this.height=0,this.vertexCount=0,this.vertexCapacity=0,this.vertexData,this.vertexBuffer,this.activeBuffer,this.topology=a(m,"topology",P.TRIANGLES),this.bytes,this.vertexViewF32,this.vertexViewU32,this.active=!0,this.forceZero=a(m,"forceZero",!1),this.hasBooted=!1,this.isPostFX=!1,this.isPreFX=!1,this.renderTargets=[],this.currentRenderTarget,this.shaders=[],this.currentShader,this.projectionMatrix,this.projectionWidth=0,this.projectionHeight=0,this.config=m,this.glReset=!1,this.batch=[],this.currentBatch=null,this.currentTexture=null,this.currentUnit=0,this.activeTextures=[]},boot:function(){var p,m=this.gl,x=this.config,S=this.renderer;this.isPostFX||(this.projectionMatrix=new n().identity());var P=this.renderTargets,E=a(x,"renderTarget",!1);typeof E=="boolean"&&E&&(E=1);var R=S.width,M=S.height;if(typeof E=="number")for(p=0;pN&&(N=D[p].vertexSize);var z=a(x,"batchSize",S.config.batchSize);this.vertexCapacity=z*6;var W=new ArrayBuffer(this.vertexCapacity*N);this.vertexData=W,this.bytes=new Uint8Array(W),this.vertexViewF32=new Float32Array(W),this.vertexViewU32=new Uint32Array(W);var Y=a(x,"vertices",null);for(Y?(this.vertexViewF32.set(Y),this.vertexBuffer=S.createVertexBuffer(W,m.STATIC_DRAW)):this.vertexBuffer=S.createVertexBuffer(W.byteLength,m.DYNAMIC_DRAW),this.setVertexBuffer(),p=D.length-1;p>=0;p--)D[p].rebind();this.hasBooted=!0,S.on(r.RESIZE,this.resize,this),S.on(r.PRE_RENDER,this.onPreRender,this),S.on(r.RENDER,this.onRender,this),S.on(r.POST_RENDER,this.onPostRender,this),this.emit(o.BOOT,this),this.onBoot()},onBoot:function(){},onResize:function(){},setShader:function(p,m,x){var S=this.renderer;if(p!==this.currentShader||S.currentProgram!==this.currentShader.program){this.flush();var P=this.setVertexBuffer(x);P&&!m&&(m=!0),p.bind(m,!1),this.currentShader=p}return this},getShaderByName:function(p){for(var m=this.shaders,x=0;x-1&&(N=G.substring(20))}z&&W&&b.push(new h(this,N,z,W,g(Y)))}this.shaders=b}return this.shaders.length===0?console.warn("Pipeline: "+this.name+" - Invalid shader config"):this.currentShader=this.shaders[0],this},createBatch:function(p){return this.currentBatch={start:this.vertexCount,count:0,texture:[p],unit:0,maxUnit:0},this.currentUnit=0,this.currentTexture=p,this.batch.push(this.currentBatch),0},addTextureToBatch:function(p){var m=this.currentBatch;m&&(m.texture.push(p),m.unit++,m.maxUnit++)},pushBatch:function(p){if(!this.currentBatch||this.forceZero&&p!==this.currentTexture)return this.createBatch(p);if(p===this.currentTexture)return this.currentUnit;var m=this.currentBatch,x=m.texture.indexOf(p);return x===-1?m.texture.length===this.renderer.maxTextures?this.createBatch(p):(m.unit++,m.maxUnit++,m.texture.push(p),this.currentUnit=m.unit,this.currentTexture=p,m.unit):(this.currentUnit=x,this.currentTexture=p,x)},setGameObject:function(p,m){return m===void 0&&(m=p.frame),this.pushBatch(m.source.glTexture)},shouldFlush:function(p){return p===void 0&&(p=0),this.vertexCount+p>this.vertexCapacity},vertexAvailable:function(){return this.vertexCapacity-this.vertexCount},resize:function(p,m){(p!==this.width||m!==this.height)&&this.flush(),this.width=p,this.height=m;for(var x=this.renderTargets,S=0;S=0;x--){var S=m[x].rebind();(!p||S===p)&&(this.currentShader=S)}return this.activeTextures.length=0,this.emit(o.REBIND,this.currentShader),this.onActive(this.currentShader),this.onRebind(),this.glReset=!1,this},setVertexBuffer:function(p){if(p===void 0&&(p=this.vertexBuffer),p!==this.activeBuffer){var m=this.gl;return this.gl.bindBuffer(m.ARRAY_BUFFER,p),this.activeBuffer=p,!0}return!1},preBatch:function(p){return this.currentRenderTarget&&this.currentRenderTarget.bind(),this.onPreBatch(p),this},postBatch:function(p){return this.onDraw(this.currentRenderTarget),this.onPostBatch(p),this},onDraw:function(){},unbind:function(){this.currentRenderTarget&&this.currentRenderTarget.unbind()},flush:function(p){if(p===void 0&&(p=!1),this.vertexCount>0){this.emit(o.BEFORE_FLUSH,this,p),this.onBeforeFlush(p);var m=this.gl,x=this.vertexCount,S=this.currentShader.vertexSize,P=this.topology;if(this.active){this.setVertexBuffer(),x===this.vertexCapacity?m.bufferData(m.ARRAY_BUFFER,this.vertexData,m.DYNAMIC_DRAW):m.bufferSubData(m.ARRAY_BUFFER,0,this.bytes.subarray(0,x*S));var E,R,M,O=this.batch,w=this.activeTextures;if(this.forceZero)for(w[0]||m.activeTexture(m.TEXTURE0),E=0;E{/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(66458),g=t(89787),u=t(56694),o=t(86459),a=t(6659),n=t(81044),r=t(28621),d=t(16650),s=t(72283),h=t(35217),c=t(37410),p=t(40444),m=t(38203),x=t(75512),S=t(1217),P=new u({Extends:a,initialize:function(R){a.call(this);var M=R.config,O={alpha:M.transparent,desynchronized:M.desynchronized,depth:!0,antialias:M.antialiasGL,premultipliedAlpha:M.premultipliedAlpha,stencil:!0,failIfMajorPerformanceCaveat:M.failIfMajorPerformanceCaveat,powerPreference:M.powerPreference,preserveDrawingBuffer:M.preserveDrawingBuffer,willReadFrequently:!1};this.config={clearBeforeRender:M.clearBeforeRender,antialias:M.antialias,backgroundColor:M.backgroundColor,contextCreation:O,roundPixels:M.roundPixels,maxTextures:M.maxTextures,maxTextureSize:M.maxTextureSize,batchSize:M.batchSize,maxLights:M.maxLights,mipmapFilter:M.mipmapFilter},this.game=R,this.type=o.WEBGL,this.pipelines=null,this.width=0,this.height=0,this.canvas=R.canvas,this.blendModes=[],this.contextLost=!1,this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92,isFramebuffer:!1,bufferWidth:0,bufferHeight:0},this.maxTextures=0,this.textureIndexes,this.currentFramebuffer=null,this.fboStack=[],this.currentProgram=null,this.currentBlendMode=1/0,this.currentScissorEnabled=!1,this.currentScissor=null,this.scissorStack=[],this.contextLostHandler=s,this.contextRestoredHandler=s,this.gl=null,this.supportedExtensions=null,this.instancedArraysExtension=null,this.vaoExtension=null,this.extensions={},this.glFormats,this.compression,this.drawingBufferHeight=0,this.blankTexture=null,this.whiteTexture=null,this.maskCount=0,this.maskStack=[],this.currentMask={mask:null,camera:null},this.currentCameraMask={mask:null,camera:null},this.glFuncMap=null,this.currentType="",this.newType=!1,this.nextTypeMatch=!1,this.finalType=!1,this.mipmapFilter=null,this.defaultScissor=[0,0,0,0],this.isBooted=!1,this.renderTarget=null,this.projectionMatrix,this.projectionWidth=0,this.projectionHeight=0,this.maskSource=null,this.maskTarget=null,this.spector=null,this._debugCapture=!1,this.init(this.config)},init:function(E){var R,M=this.game,O=this.canvas,w=E.backgroundColor;if(M.config.context?R=M.config.context:R=O.getContext("webgl",E.contextCreation)||O.getContext("experimental-webgl",E.contextCreation),!R||R.isContextLost())throw this.contextLost=!0,new Error("WebGL unsupported");this.gl=R;var L=this;this.contextLostHandler=function(Y){L.contextLost=!0,console&&console.warn("WebGL Context lost. Renderer disabled"),Y.preventDefault()},O.addEventListener("webglcontextlost",this.contextLostHandler,!1),M.context=R;for(var F=0;F<=27;F++)this.blendModes.push({func:[R.ONE,R.ONE_MINUS_SRC_ALPHA],equation:R.FUNC_ADD});this.blendModes[1].func=[R.ONE,R.DST_ALPHA],this.blendModes[2].func=[R.DST_COLOR,R.ONE_MINUS_SRC_ALPHA],this.blendModes[3].func=[R.ONE,R.ONE_MINUS_SRC_COLOR],this.blendModes[17]={func:[R.ZERO,R.ONE_MINUS_SRC_ALPHA],equation:R.FUNC_REVERSE_SUBTRACT},this.glFormats=[R.BYTE,R.SHORT,R.UNSIGNED_BYTE,R.UNSIGNED_SHORT,R.FLOAT],this.glFuncMap={mat2:{func:R.uniformMatrix2fv,length:1,matrix:!0},mat3:{func:R.uniformMatrix3fv,length:1,matrix:!0},mat4:{func:R.uniformMatrix4fv,length:1,matrix:!0},"1f":{func:R.uniform1f,length:1},"1fv":{func:R.uniform1fv,length:1},"1i":{func:R.uniform1i,length:1},"1iv":{func:R.uniform1iv,length:1},"2f":{func:R.uniform2f,length:2},"2fv":{func:R.uniform2fv,length:1},"2i":{func:R.uniform2i,length:2},"2iv":{func:R.uniform2iv,length:1},"3f":{func:R.uniform3f,length:3},"3fv":{func:R.uniform3fv,length:1},"3i":{func:R.uniform3i,length:3},"3iv":{func:R.uniform3iv,length:1},"4f":{func:R.uniform4f,length:4},"4fv":{func:R.uniform4fv,length:1},"4i":{func:R.uniform4i,length:4},"4iv":{func:R.uniform4iv,length:1}};var b=R.getSupportedExtensions();(!E.maxTextures||E.maxTextures===-1)&&(E.maxTextures=R.getParameter(R.MAX_TEXTURE_IMAGE_UNITS)),E.maxTextureSize||(E.maxTextureSize=R.getParameter(R.MAX_TEXTURE_SIZE)),this.compression=this.getCompressedTextures(),this.supportedExtensions=b;var D="ANGLE_instanced_arrays";this.instancedArraysExtension=b.indexOf(D)>-1?R.getExtension(D):null;var N="OES_vertex_array_object";this.vaoExtension=b.indexOf(N)>-1?R.getExtension(N):null,R.disable(R.DEPTH_TEST),R.disable(R.CULL_FACE),R.enable(R.BLEND),R.clearColor(w.redGL,w.greenGL,w.blueGL,w.alphaGL),E.mipmapFilter!==""&&(this.mipmapFilter=R[E.mipmapFilter]),this.maxTextures=x.checkShaderMax(R,E.maxTextures),this.textureIndexes=[];for(var z=0;z0&&O>0;if(F&&b){var D=F[0],N=F[1],z=F[2],W=F[3];b=D!==E||N!==R||z!==M||W!==O}b&&(this.flush(),L.scissor(E,w-R-O,M,O))},resetScissor:function(){var E=this.gl;E.enable(E.SCISSOR_TEST);var R=this.currentScissor;if(R){var M=R[0],O=R[1],w=R[2],L=R[3];w>0&&L>0&&E.scissor(M,this.drawingBufferHeight-O-L,w,L)}},popScissor:function(){var E=this.scissorStack;E.pop();var R=E[E.length-1];R&&this.setScissor(R[0],R[1],R[2],R[3]),this.currentScissor=R},hasActiveStencilMask:function(){var E=this.currentMask.mask,R=this.currentCameraMask.mask;return E&&E.isStencil||R&&R.isStencil},resetViewport:function(){var E=this.gl;E.viewport(0,0,this.width,this.height),this.drawingBufferHeight=E.drawingBufferHeight},setBlendMode:function(E,R){R===void 0&&(R=!1);var M=this.gl,O=this.blendModes[E];return R||E!==o.BlendModes.SKIP_CHECK&&this.currentBlendMode!==E?(this.flush(),M.enable(M.BLEND),M.blendEquation(O.equation),O.func.length>2?M.blendFuncSeparate(O.func[0],O.func[1],O.func[2],O.func[3]):M.blendFunc(O.func[0],O.func[1]),this.currentBlendMode=E,!0):!1},addBlendMode:function(E,R){var M=this.blendModes.push({func:E,equation:R});return M-1},updateBlendMode:function(E,R,M){return this.blendModes[E]&&(this.blendModes[E].func=R,M&&(this.blendModes[E].equation=M)),this},removeBlendMode:function(E){return E>17&&this.blendModes[E]&&this.blendModes.splice(E,1),this},pushFramebuffer:function(E,R,M,O,w){return E===this.currentFramebuffer?this:(this.fboStack.push(E),this.setFramebuffer(E,R,M,O,w))},setFramebuffer:function(E,R,M,O,w){if(R===void 0&&(R=!1),M===void 0&&(M=!0),O===void 0&&(O=null),w===void 0&&(w=!1),E===this.currentFramebuffer)return this;var L=this.gl,F=this.width,b=this.height;return E&&E.renderTexture&&M?(F=E.renderTexture.width,b=E.renderTexture.height):this.flush(),L.bindFramebuffer(L.FRAMEBUFFER,E),M&&L.viewport(0,0,F,b),O&&L.framebufferTexture2D(L.FRAMEBUFFER,L.COLOR_ATTACHMENT0,L.TEXTURE_2D,O,0),w&&(L.clearColor(0,0,0,0),L.clear(L.COLOR_BUFFER_BIT)),R&&(E?(this.drawingBufferHeight=b,this.pushScissor(0,0,F,b)):(this.drawingBufferHeight=this.height,this.popScissor())),this.currentFramebuffer=E,this},popFramebuffer:function(E,R){E===void 0&&(E=!1),R===void 0&&(R=!0);var M=this.fboStack;M.pop();var O=M[M.length-1];return O||(O=null),this.setFramebuffer(O,E,R),O},restoreFramebuffer:function(E,R){E===void 0&&(E=!1),R===void 0&&(R=!0);var M=this.fboStack,O=M[M.length-1];O||(O=null),this.currentFramebuffer=null,this.setFramebuffer(O,E,R)},setProgram:function(E){return E!==this.currentProgram?(this.flush(),this.gl.useProgram(E),this.currentProgram=E,!0):!1},resetProgram:function(){return this.gl.useProgram(this.currentProgram),this},createTextureFromSource:function(E,R,M,O,w){w===void 0&&(w=!1);var L=this.gl,F=L.NEAREST,b=L.NEAREST,D=L.CLAMP_TO_EDGE,N=null;R=E?E.width:R,M=E?E.height:M;var z=r(R,M);return z&&!w&&(D=L.REPEAT),O===o.ScaleModes.LINEAR&&this.config.antialias&&(F=z&&this.mipmapFilter?this.mipmapFilter:L.LINEAR,b=L.LINEAR),E&&E.compressed&&(F=L.LINEAR,b=L.LINEAR),!E&&typeof R=="number"&&typeof M=="number"?N=this.createTexture2D(0,F,b,D,D,L.RGBA,null,R,M):N=this.createTexture2D(0,F,b,D,D,L.RGBA,E),N},createTexture2D:function(E,R,M,O,w,L,F,b,D,N,z,W){N=N??!0,z===void 0&&(z=!1),W===void 0&&(W=!1);var Y=this.gl,j=Y.createTexture();Y.activeTexture(Y.TEXTURE0);var G=Y.getParameter(Y.TEXTURE_BINDING_2D);Y.bindTexture(Y.TEXTURE_2D,j),Y.texParameteri(Y.TEXTURE_2D,Y.TEXTURE_MIN_FILTER,R),Y.texParameteri(Y.TEXTURE_2D,Y.TEXTURE_MAG_FILTER,M),Y.texParameteri(Y.TEXTURE_2D,Y.TEXTURE_WRAP_S,w),Y.texParameteri(Y.TEXTURE_2D,Y.TEXTURE_WRAP_T,O),Y.pixelStorei(Y.UNPACK_PREMULTIPLY_ALPHA_WEBGL,N),W&&Y.pixelStorei(Y.UNPACK_FLIP_Y_WEBGL,!0);var V=!1;if(F==null)Y.texImage2D(Y.TEXTURE_2D,E,L,b,D,0,L,Y.UNSIGNED_BYTE,null),V=r(b,D);else if(F.compressed){b=F.width,D=F.height,V=F.generateMipmap;for(var I=0;I0){var F=this.pipelines.setMulti();F.drawFillRect(R,M,O,w,x.getTintFromFloats(L.blueGL,L.greenGL,L.redGL,1),L.alphaGL)}},getCurrentStencilMask:function(){var E=null,R=this.maskStack,M=this.currentCameraMask;return R.length>0?E=R[R.length-1]:M.mask&&M.mask.isStencil&&(E=M),E},postRenderCamera:function(E){var R=E.flashEffect,M=E.fadeEffect;if(R.isRunning||M.isRunning||M.isComplete){var O=this.pipelines.setMulti();R.postRenderWebGL(O,x.getTintFromFloats),M.postRenderWebGL(O,x.getTintFromFloats)}E.dirty=!1,this.popScissor(),E.mask&&(this.currentCameraMask.mask=null,E.mask.postRenderWebGL(this,E._maskCamera)),this.pipelines.postBatchCamera(E),E.emit(g.POST_RENDER,E)},preRender:function(){if(!this.contextLost){var E=this.gl;if(E.bindFramebuffer(E.FRAMEBUFFER,null),this.config.clearBeforeRender){var R=this.config.backgroundColor;E.clearColor(R.redGL,R.greenGL,R.blueGL,R.alphaGL),E.clear(E.COLOR_BUFFER_BIT|E.DEPTH_BUFFER_BIT|E.STENCIL_BUFFER_BIT)}E.enable(E.SCISSOR_TEST),this.currentScissor=this.defaultScissor,this.scissorStack.length=0,this.scissorStack.push(this.currentScissor),this.game.scene.customViewports&&E.scissor(0,this.drawingBufferHeight-this.height,this.width,this.height),this.currentMask.mask=null,this.currentCameraMask.mask=null,this.maskStack.length=0,this.emit(n.PRE_RENDER)}},render:function(E,R,M){if(!this.contextLost){var O=R.length;if(this.emit(n.RENDER,E,M),this.preRenderCamera(M),O===0){this.setBlendMode(o.BlendModes.NORMAL),this.postRenderCamera(M);return}this.currentType="";for(var w=this.currentMask,L=0;L0&&L>0){O.activeTexture(O.TEXTURE0);var F=O.getParameter(O.TEXTURE_BINDING_2D);O.bindTexture(O.TEXTURE_2D,R),M&&O.pixelStorei(O.UNPACK_FLIP_Y_WEBGL,!0),O.pixelStorei(O.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),O.texImage2D(O.TEXTURE_2D,0,O.RGBA,O.RGBA,O.UNSIGNED_BYTE,E),R.width=w,R.height=L,F&&O.bindTexture(O.TEXTURE_2D,F)}return R},createVideoTexture:function(E,R,M){R===void 0&&(R=!1),M===void 0&&(M=!1);var O=this.gl,w=O.NEAREST,L=O.NEAREST,F=E.videoWidth,b=E.videoHeight,D=O.CLAMP_TO_EDGE,N=r(F,b);return!R&&N&&(D=O.REPEAT),this.config.antialias&&(w=N&&this.mipmapFilter?this.mipmapFilter:O.LINEAR,L=O.LINEAR),this.createTexture2D(0,w,L,D,D,O.RGBA,E,F,b,!0,!0,M)},updateVideoTexture:function(E,R,M){M===void 0&&(M=!1);var O=this.gl,w=E.videoWidth,L=E.videoHeight;if(w>0&&L>0){O.activeTexture(O.TEXTURE0);var F=O.getParameter(O.TEXTURE_BINDING_2D);O.bindTexture(O.TEXTURE_2D,R),O.pixelStorei(O.UNPACK_FLIP_Y_WEBGL,M),O.texImage2D(O.TEXTURE_2D,0,O.RGBA,O.RGBA,O.UNSIGNED_BYTE,E),R.width=w,R.height=L,F&&O.bindTexture(O.TEXTURE_2D,F)}return R},setTextureFilter:function(E,R){var M=this.gl,O=[M.LINEAR,M.NEAREST][R];M.activeTexture(M.TEXTURE0);var w=M.getParameter(M.TEXTURE_BINDING_2D);return M.bindTexture(M.TEXTURE_2D,E),M.texParameteri(M.TEXTURE_2D,M.TEXTURE_MIN_FILTER,O),M.texParameteri(M.TEXTURE_2D,M.TEXTURE_MAG_FILTER,O),w&&M.bindTexture(M.TEXTURE_2D,w),this},getMaxTextureSize:function(){return this.config.maxTextureSize},destroy:function(){this.canvas.removeEventListener("webglcontextlost",this.contextLostHandler,!1),this.maskTarget.destroy(),this.maskSource.destroy(),this.pipelines.destroy(),this.removeAllListeners(),this.fboStack=[],this.maskStack=[],this.extensions={},this.textureIndexes=[],this.gl=null,this.game=null,this.canvas=null,this.contextLost=!0,this.currentMask=null,this.currentCameraMask=null}});f.exports=P},71305:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(72632),u=t(71402),o=new l({initialize:function(n,r,d,s,h){this.pipeline=n,this.name=r,this.renderer=n.renderer,this.gl=this.renderer.gl,this.fragSrc=s,this.vertSrc=d,this.program=this.renderer.createProgram(d,s),this.attributes,this.vertexComponentCount=0,this.vertexSize=0,this.uniforms={},this.createAttributes(h),this.createUniforms()},createAttributes:function(a){var n=0,r=0,d=[];this.vertexComponentCount=0;for(var s=0;s=0?(n.enableVertexAttribArray(R),n.vertexAttribPointer(R,p,m,E,r,x),c.enabled=!0,c.location=R):R!==-1&&n.disableVertexAttribArray(R)}else S?n.vertexAttribPointer(P,p,m,E,r,x):!S&&P>-1&&(n.disableVertexAttribArray(P),c.location=-1)}return this},createUniforms:function(){var a=this.gl,n=this.program,r=this.uniforms,d,s,h,c=a.getProgramParameter(n,a.ACTIVE_UNIFORMS);for(d=0;d0&&(s=s.substr(0,m),r.hasOwnProperty(s)||(h=a.getUniformLocation(n,s),h!==null&&(r[s]={name:s,location:h,value1:null,value2:null,value3:null,value4:null})))}}return this},hasUniform:function(a){return this.uniforms.hasOwnProperty(a)},resetUniform:function(a){var n=this.uniforms[a];return n&&(n.value1=null,n.value2=null,n.value3=null,n.value4=null),this},setUniform1:function(a,n,r,d){var s=this.uniforms[n];return s?((d||s.value1!==r)&&(s.value1=r,this.renderer.setProgram(this.program),a.call(this.gl,s.location,r),this.pipeline.currentShader=this),this):this},setUniform2:function(a,n,r,d,s){var h=this.uniforms[n];return h?((s||h.value1!==r||h.value2!==d)&&(h.value1=r,h.value2=d,this.renderer.setProgram(this.program),a.call(this.gl,h.location,r,d),this.pipeline.currentShader=this),this):this},setUniform3:function(a,n,r,d,s,h){var c=this.uniforms[n];return c?((h||c.value1!==r||c.value2!==d||c.value3!==s)&&(c.value1=r,c.value2=d,c.value3=s,this.renderer.setProgram(this.program),a.call(this.gl,c.location,r,d,s),this.pipeline.currentShader=this),this):this},setUniform4:function(a,n,r,d,s,h,c){var p=this.uniforms[n];return p?((c||p.value1!==r||p.value2!==d||p.value3!==s||p.value4!==h)&&(p.value1=r,p.value2=d,p.value3=s,p.value4=h,this.renderer.setProgram(this.program),a.call(this.gl,p.location,r,d,s,h),this.pipeline.currentShader=this),this):this},setBoolean:function(a,n){return this.setUniform1(this.gl.uniform1i,a,Number(n))},set1f:function(a,n){return this.setUniform1(this.gl.uniform1f,a,n)},set2f:function(a,n,r){return this.setUniform2(this.gl.uniform2f,a,n,r)},set3f:function(a,n,r,d){return this.setUniform3(this.gl.uniform3f,a,n,r,d)},set4f:function(a,n,r,d,s){return this.setUniform4(this.gl.uniform4f,a,n,r,d,s)},set1fv:function(a,n){return this.setUniform1(this.gl.uniform1fv,a,n,!0)},set2fv:function(a,n){return this.setUniform1(this.gl.uniform2fv,a,n,!0)},set3fv:function(a,n){return this.setUniform1(this.gl.uniform3fv,a,n,!0)},set4fv:function(a,n){return this.setUniform1(this.gl.uniform4fv,a,n,!0)},set1iv:function(a,n){return this.setUniform1(this.gl.uniform1iv,a,n,!0)},set2iv:function(a,n){return this.setUniform1(this.gl.uniform2iv,a,n,!0)},set3iv:function(a,n){return this.setUniform1(this.gl.uniform3iv,a,n,!0)},set4iv:function(a,n){return this.setUniform1(this.gl.uniform4iv,a,n,!0)},set1i:function(a,n){return this.setUniform1(this.gl.uniform1i,a,n)},set2i:function(a,n,r){return this.setUniform2(this.gl.uniform2i,a,n,r)},set3i:function(a,n,r,d){return this.setUniform3(this.gl.uniform3i,a,n,r,d)},set4i:function(a,n,r,d,s){return this.setUniform4(this.gl.uniform4i,a,n,r,d,s)},setMatrix2fv:function(a,n,r){return this.setUniform2(this.gl.uniformMatrix2fv,a,n,r,!0)},setMatrix3fv:function(a,n,r){return this.setUniform2(this.gl.uniformMatrix3fv,a,n,r,!0)},setMatrix4fv:function(a,n,r){return this.setUniform2(this.gl.uniformMatrix4fv,a,n,r,!0)},createProgram:function(a,n){a===void 0&&(a=this.vertSrc),n===void 0&&(n=this.fragSrc);var r=this.gl;return this.program&&r.deleteProgram(this.program),this.vertSrc=a,this.fragSrc=n,this.program=this.renderer.createProgram(a,n),this.createUniforms(),this.rebind()},destroy:function(){this.gl.deleteProgram(this.program),this.pipeline=null,this.renderer=null,this.gl=null,this.program=null,this.attributes=null,this.uniforms=null}});f.exports=o},71402:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={BYTE:{enum:5120,size:1},UNSIGNED_BYTE:{enum:5121,size:1},SHORT:{enum:5122,size:2},UNSIGNED_SHORT:{enum:5123,size:2},INT:{enum:5124,size:4},UNSIGNED_INT:{enum:5125,size:4},FLOAT:{enum:5126,size:4}};f.exports=T},55478:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(71402),g=t(98611),u={PipelineManager:t(35217),Pipelines:t(62253),RenderTarget:t(37410),Utils:t(75512),WebGLPipeline:t(44775),WebGLRenderer:t(11857),WebGLShader:t(71305)};u=g(!1,u,l),f.exports=u},5583:(f,T,t)=>{/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(72632),u=t(91679),o=t(89053),a=t(71402),n=t(44775),r=new l({Extends:n,initialize:function(s){s.fragShader=g(s,"fragShader",u),s.vertShader=g(s,"vertShader",o),s.batchSize=g(s,"batchSize",1),s.vertices=g(s,"vertices",[-1,1,-1,-7,7,1]),s.attributes=g(s,"attributes",[{name:"inPosition",size:2,type:a.FLOAT}]),n.call(this,s)},boot:function(){n.prototype.boot.call(this),this.set1i("uMainSampler",0),this.set1i("uMaskSampler",1)},resize:function(d,s){n.prototype.resize.call(this,d,s),this.set2f("uResolution",d,s)},beginMask:function(d,s,h){this.renderer.beginBitmapMask(d,h)},endMask:function(d,s,h){var c=this.gl,p=this.renderer,m=d.bitmapMask;m&&c&&(p.drawBitmapMask(m,s,this),h&&this.set2f("uResolution",h.width,h.height),this.set1i("uInvertMaskAlpha",d.invertAlpha),c.drawArrays(this.topology,0,3),h&&this.set2f("uResolution",this.width,this.height),c.bindTexture(c.TEXTURE_2D,null))}});f.exports=r},81828:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(58136),u=t(47406),o=t(72632),a=t(87228),n=t(92462),r=t(75512),d=new l({Extends:a,initialize:function(h){h.shaders=[r.setGlowQuality(n.FXGlowFrag,h.game),n.FXShadowFrag,n.FXPixelateFrag,n.FXVignetteFrag,n.FXShineFrag,n.FXBlurLowFrag,n.FXBlurMedFrag,n.FXBlurHighFrag,n.FXGradientFrag,n.FXBloomFrag,n.ColorMatrixFrag,n.FXCircleFrag,n.FXBarrelFrag,n.FXDisplacementFrag,n.FXWipeFrag,n.FXBokehFrag],a.call(this,h);var c=this.game;this.glow=new g.Glow(c),this.shadow=new g.Shadow(c),this.pixelate=new g.Pixelate(c),this.vignette=new g.Vignette(c),this.shine=new g.Shine(c),this.gradient=new g.Gradient(c),this.circle=new g.Circle(c),this.barrel=new g.Barrel(c),this.wipe=new g.Wipe(c),this.bokeh=new g.Bokeh(c);var p=[];p[u.GLOW]=this.onGlow,p[u.SHADOW]=this.onShadow,p[u.PIXELATE]=this.onPixelate,p[u.VIGNETTE]=this.onVignette,p[u.SHINE]=this.onShine,p[u.BLUR]=this.onBlur,p[u.GRADIENT]=this.onGradient,p[u.BLOOM]=this.onBloom,p[u.COLOR_MATRIX]=this.onColorMatrix,p[u.CIRCLE]=this.onCircle,p[u.BARREL]=this.onBarrel,p[u.DISPLACEMENT]=this.onDisplacement,p[u.WIPE]=this.onWipe,p[u.BOKEH]=this.onBokeh,this.fxHandlers=p,this.source,this.target,this.swap},onDraw:function(s,h,c){this.source=s,this.target=h,this.swap=c;var p=s.width,m=s.height,x=this.tempSprite,S=this.fxHandlers;if(x&&x.preFX)for(var P=x.preFX.list,E=0;E{/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(72632),u=t(65045),o=t(77310),a=t(69360),n=t(93736),r=t(44775),d=new l({Extends:o,initialize:function(h){var c=g(h,"fragShader",u);h.fragShader=c.replace("%LIGHT_COUNT%",h.game.renderer.config.maxLights),o.call(this,h),this.inverseRotationMatrix=new Float32Array([1,0,0,0,1,0,0,0,1]),this.defaultNormalMap,this.currentNormalMap,this.lightsActive=!0,this.tempVec2=new n,this._tempMatrix=new a,this._tempMatrix2=new a},boot:function(){r.prototype.boot.call(this);var s=this.gl,h=s.createTexture();s.activeTexture(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,h),s.texImage2D(s.TEXTURE_2D,0,s.RGBA,1,1,0,s.RGBA,s.UNSIGNED_BYTE,new Uint8Array([127,127,255,255])),this.defaultNormalMap={glTexture:h}},onRender:function(s,h){var c=s.sys.lights;if(this.lightsActive=!1,!(!c||!c.active)){var p=c.getLights(h),m=p.length;this.lightsActive=!0;var x,S=this.renderer,P=S.height,E=h.matrix,R=this.tempVec2;for(this.set1i("uMainSampler",0),this.set1i("uNormSampler",1),this.set2f("uResolution",this.width/2,this.height/2),this.set4f("uCamera",h.x,h.y,h.rotation,h.zoom),this.set3f("uAmbientLightColor",c.ambientColor.r,c.ambientColor.g,c.ambientColor.b),this.set1i("uLightCount",m),x=0;x0&&this.flush();var h=this.inverseRotationMatrix;if(s){var c=-s,p=Math.cos(c),m=Math.sin(c);h[1]=m,h[3]=-m,h[0]=h[4]=p}else h[0]=h[4]=1,h[1]=h[3]=0;this.setMatrix3fv("uInverseRotationMatrix",!1,h),this.currentNormalMapRotation=s}},setTexture2D:function(s,h){var c=this.renderer;s===void 0&&(s=c.whiteTexture);var p=this.getNormalMap(h);this.isNewNormalMap(s,p)&&(this.flush(),this.createBatch(s),this.addTextureToBatch(p),this.currentNormalMap=p);var m=0;if(h&&h.parentContainer){var x=h.getWorldTransformMatrix(this._tempMatrix,this._tempMatrix2);m=x.rotationNormalized}else h&&(m=h.rotation);return this.setNormalMapRotation(m),0},setGameObject:function(s,h){h===void 0&&(h=s.frame);var c=h.glTexture,p=this.getNormalMap(s);if(this.isNewNormalMap(c,p)&&(this.flush(),this.createBatch(c),this.addTextureToBatch(p),this.currentNormalMap=p),s.parentContainer){var m=s.getWorldTransformMatrix(this._tempMatrix,this._tempMatrix2);this.setNormalMapRotation(m.rotationNormalized)}else this.setNormalMapRotation(s.rotation);return 0},isNewNormalMap:function(s,h){return this.currentTexture!==s||this.currentNormalMap!==h},getNormalMap:function(s){var h;return s?s.displayTexture?h=s.displayTexture.dataSource[s.displayFrame.sourceIndex]:s.texture?h=s.texture.dataSource[s.frame.sourceIndex]:s.tileset&&(Array.isArray(s.tileset)?h=s.tileset[0].image.dataSource[0]:h=s.tileset.image.dataSource[0]):h=this.defaultNormalMap,h||(h=this.defaultNormalMap),h.glTexture},batchSprite:function(s,h,c){this.lightsActive&&o.prototype.batchSprite.call(this,s,h,c)},batchTexture:function(s,h,c,p,m,x,S,P,E,R,M,O,w,L,F,b,D,N,z,W,Y,j,G,V,I,B,U,X,$,k,K,J){this.lightsActive&&o.prototype.batchTexture.call(this,s,h,c,p,m,x,S,P,E,R,M,O,w,L,F,b,D,N,z,W,Y,j,G,V,I,B,U,X,$,k,K,J)},batchTextureFrame:function(s,h,c,p,m,x,S){this.lightsActive&&o.prototype.batchTextureFrame.call(this,s,h,c,p,m,x,S)}});f.exports=d},71264:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(72632),u=t(77310),o=t(85060),a=t(18166),n=t(71402),r=t(44775),d=new l({Extends:u,initialize:function(h){h.fragShader=g(h,"fragShader",o),h.vertShader=g(h,"vertShader",a),h.attributes=g(h,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2},{name:"inTexId"},{name:"inTintEffect"},{name:"inTint",size:4,type:n.UNSIGNED_BYTE,normalized:!0}]),h.forceZero=!0,u.call(this,h)},boot:function(){r.prototype.boot.call(this),this.set1i("uMainSampler",0)}});f.exports=d},77310:(f,T,t)=>{/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(11117),u=t(72632),o=t(53787),a=t(15968),n=t(69360),r=t(75512),d=t(71402),s=t(44775),h=new l({Extends:s,initialize:function(p){var m=p.game.renderer,x=u(p,"fragShader",o);p.fragShader=r.parseFragmentShaderMaxTextures(x,m.maxTextures),p.vertShader=u(p,"vertShader",a),p.attributes=u(p,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2},{name:"inTexId"},{name:"inTintEffect"},{name:"inTint",size:4,type:d.UNSIGNED_BYTE,normalized:!0}]),s.call(this,p),this._tempMatrix1=new n,this._tempMatrix2=new n,this._tempMatrix3=new n,this.calcMatrix=new n,this.tempTriangle=[{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0}],this.strokeTint={TL:0,TR:0,BL:0,BR:0},this.fillTint={TL:0,TR:0,BL:0,BR:0},this.currentFrame={u0:0,v0:0,u1:1,v1:1},this.firstQuad=[0,0,0,0,0],this.prevQuad=[0,0,0,0,0],this.polygonCache=[]},boot:function(){s.prototype.boot.call(this),this.currentShader.set1iv("uMainSampler",this.renderer.textureIndexes)},batchSprite:function(c,p,m){this.manager.set(this,c);var x=this._tempMatrix1,S=this._tempMatrix2,P=this._tempMatrix3,E=c.frame,R=E.glTexture,M=E.u0,O=E.v0,w=E.u1,L=E.v1,F=E.x,b=E.y,D=E.cutWidth,N=E.cutHeight,z=E.customPivot,W=c.displayOriginX,Y=c.displayOriginY,j=-W+F,G=-Y+b;if(c.isCropped){var V=c._crop;(V.flipX!==c.flipX||V.flipY!==c.flipY)&&E.updateCropUVs(V,c.flipX,c.flipY),M=V.u0,O=V.v0,w=V.u1,L=V.v1,D=V.width,N=V.height,F=V.x,b=V.y,j=-W+F,G=-Y+b}var I=1,B=1;c.flipX&&(z||(j+=-E.realWidth+W*2),I=-1),(c.flipY||E.source.isGLTexture&&!R.flipY)&&(z||(G+=-E.realHeight+Y*2),B=-1);var U=c.x,X=c.y;S.applyITRS(U,X,c.rotation,c.scaleX*I,c.scaleY*B),x.copyFrom(p.matrix),m?(x.multiplyWithOffset(m,-p.scrollX*c.scrollFactorX,-p.scrollY*c.scrollFactorY),S.e=U,S.f=X):(S.e-=p.scrollX*c.scrollFactorX,S.f-=p.scrollY*c.scrollFactorY),x.multiply(S,P);var $=P.setQuad(j,G,j+D,G+N,p.roundPixels),k=r.getTintAppendFloatAlpha,K=p.alpha,J=k(c.tintTopLeft,K*c._alphaTL),q=k(c.tintTopRight,K*c._alphaTR),_=k(c.tintBottomLeft,K*c._alphaBL),et=k(c.tintBottomRight,K*c._alphaBR);this.shouldFlush(6)&&this.flush();var it=this.setGameObject(c,E);this.manager.preBatch(c),this.batchQuad(c,$[0],$[1],$[2],$[3],$[4],$[5],$[6],$[7],M,O,w,L,J,q,_,et,c.tintFill,R,it),this.manager.postBatch(c)},batchTexture:function(c,p,m,x,S,P,E,R,M,O,w,L,F,b,D,N,z,W,Y,j,G,V,I,B,U,X,$,k,K,J,q,_){this.manager.set(this,c);var et=this._tempMatrix1,it=this._tempMatrix2,tt=this._tempMatrix3,st=W/m+$,mt=Y/x+k,ct=(W+j)/m+$,ft=(Y+G)/x+k,nt=E,ot=R,ht=-N,St=-z;if(c.isCropped){var At=c._crop,Dt=At.width,Pt=At.height;nt=Dt,ot=Pt,E=Dt,R=Pt,W=At.x,Y=At.y;var pt=W,ut=Y;L&&(pt=j-At.x-Dt),F&&(ut=G-At.y-Pt),st=pt/m+$,mt=ut/x+k,ct=(pt+Dt)/m+$,ft=(ut+Pt)/x+k,ht=-N+W,St=-z+Y}F=F^(!q&&p.isRenderTexture?1:0),L&&(nt*=-1,ht+=E),F&&(ot*=-1,St+=R),it.applyITRS(S,P,w,M,O),et.copyFrom(K.matrix),J?(et.multiplyWithOffset(J,-K.scrollX*b,-K.scrollY*D),it.e=S,it.f=P):(it.e-=K.scrollX*b,it.f-=K.scrollY*D),et.multiply(it,tt);var Mt=tt.setQuad(ht,St,ht+nt,St+ot,K.roundPixels);_===void 0&&(_=this.setTexture2D(p)),c&&this.manager.preBatch(c),this.batchQuad(c,Mt[0],Mt[1],Mt[2],Mt[3],Mt[4],Mt[5],Mt[6],Mt[7],st,mt,ct,ft,V,I,B,U,X,p,_),c&&this.manager.postBatch(c)},batchTextureFrame:function(c,p,m,x,S,P,E){this.manager.set(this);var R=this._tempMatrix1.copyFrom(P),M=this._tempMatrix2;E?R.multiply(E,M):M=R;var O=M.setQuad(p,m,p+c.width,m+c.height,!1),w=this.setTexture2D(c.source.glTexture);x=r.getTintAppendFloatAlpha(x,S),this.batchQuad(null,O[0],O[1],O[2],O[3],O[4],O[5],O[6],O[7],c.u0,c.v0,c.u1,c.v1,x,x,x,x,0,c.glTexture,w)},batchFillRect:function(c,p,m,x,S,P){this.renderer.pipelines.set(this);var E=this.calcMatrix;P&&P.multiply(S,E);var R=E.setQuad(c,p,c+m,p+x,!1),M=this.fillTint;this.batchQuad(null,R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[7],0,0,1,1,M.TL,M.TR,M.BL,M.BR,2)},batchFillTriangle:function(c,p,m,x,S,P,E,R){this.renderer.pipelines.set(this);var M=this.calcMatrix;R&&R.multiply(E,M);var O=M.getX(c,p),w=M.getY(c,p),L=M.getX(m,x),F=M.getY(m,x),b=M.getX(S,P),D=M.getY(S,P),N=this.fillTint;this.batchTri(null,O,w,L,F,b,D,0,0,1,1,N.TL,N.TR,N.BL,2)},batchStrokeTriangle:function(c,p,m,x,S,P,E,R,M){var O=this.tempTriangle;O[0].x=c,O[0].y=p,O[0].width=E,O[1].x=m,O[1].y=x,O[1].width=E,O[2].x=S,O[2].y=P,O[2].width=E,O[3].x=c,O[3].y=p,O[3].width=E,this.batchStrokePath(O,E,!1,R,M)},batchFillPath:function(c,p,m){this.renderer.pipelines.set(this);var x=this.calcMatrix;m&&m.multiply(p,x);for(var S=c.length,P=this.polygonCache,E,R,M=this.fillTint.TL,O=this.fillTint.TR,w=this.fillTint.BL,L=0;L0&&ot[4]?this.batchQuad(null,it,tt,J,q,ot[0],ot[1],ot[2],ot[3],0,0,1,1,mt,ct,ft,nt,2):(ht[0]=it,ht[1]=tt,ht[2]=J,ht[3]=q,ht[4]=1),M&&ht[4]?this.batchQuad(null,k,K,_,et,ht[0],ht[1],ht[2],ht[3],0,0,1,1,mt,ct,ft,nt,2):(ot[0]=k,ot[1]=K,ot[2]=_,ot[3]=et,ot[4]=1)}}},destroy:function(){return this._tempMatrix1.destroy(),this._tempMatrix2.destroy(),this._tempMatrix3.destroy(),this._tempMatrix1=null,this._tempMatrix1=null,this._tempMatrix1=null,s.prototype.destroy.call(this),this}});f.exports=h},10919:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(72632),u=t(83327),o=t(54677),a=t(44775),n=new l({Extends:a,initialize:function(d){d.vertShader=g(d,"vertShader",o),d.fragShader=g(d,"fragShader",u),d.attributes=g(d,"attributes",[{name:"inPosition",size:2},{name:"inLightPosition",size:2},{name:"inLightRadius"},{name:"inLightAttenuation"},{name:"inLightColor",size:4}]),a.call(this,d)},onRender:function(r,d){this.set2f("uResolution",this.width,this.height),this.set1f("uCameraZoom",d.zoom)},batchPointLight:function(r,d,s,h,c,p,m,x,S,P,E,R){var M=r.color,O=r.intensity,w=r.radius,L=r.attenuation,F=M.r*O,b=M.g*O,D=M.b*O,N=d.alpha*r.alpha;this.shouldFlush(6)&&this.flush(),this.currentBatch||this.setTexture2D(),this.batchLightVert(s,h,E,R,w,L,F,b,D,N),this.batchLightVert(c,p,E,R,w,L,F,b,D,N),this.batchLightVert(m,x,E,R,w,L,F,b,D,N),this.batchLightVert(s,h,E,R,w,L,F,b,D,N),this.batchLightVert(m,x,E,R,w,L,F,b,D,N),this.batchLightVert(S,P,E,R,w,L,F,b,D,N),this.currentBatch.count=this.vertexCount-this.currentBatch.start},batchLightVert:function(r,d,s,h,c,p,m,x,S,P){var E=this.vertexViewF32,R=this.vertexCount*this.currentShader.vertexComponentCount-1;E[++R]=r,E[++R]=d,E[++R]=s,E[++R]=h,E[++R]=c,E[++R]=p,E[++R]=m,E[++R]=x,E[++R]=S,E[++R]=P,this.vertexCount++}});f.exports=n},80486:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(65246),u=t(72632),o=t(12569),a=t(99365),n=t(44775),r=new l({Extends:n,initialize:function(s){s.renderTarget=u(s,"renderTarget",1),s.fragShader=u(s,"fragShader",o),s.vertShader=u(s,"vertShader",a),s.attributes=u(s,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2}]),s.batchSize=1,s.vertices=[-1,-1,0,0,-1,1,0,1,1,1,1,1,-1,-1,0,0,1,1,1,1,1,-1,1,0],n.call(this,s),this.isPostFX=!0,this.gameObject,this.controller,this.colorMatrix=new g,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2,this.renderer.isBooted&&(this.manager=this.renderer.pipelines,this.boot())},boot:function(){n.prototype.boot.call(this);var d=this.manager.UTILITY_PIPELINE;this.fullFrame1=d.fullFrame1,this.fullFrame2=d.fullFrame2,this.halfFrame1=d.halfFrame1,this.halfFrame2=d.halfFrame2,this.set1i("uMainSampler",0)},onDraw:function(d){this.bindAndDraw(d)},getController:function(d){return d!==void 0?d:this.controller?this.controller:this},copySprite:function(d,s,h){h===void 0&&(h=!1);var c=this.gl;c.activeTexture(c.TEXTURE0),c.bindTexture(c.TEXTURE_2D,d.texture);var p=c.getParameter(c.FRAMEBUFFER_BINDING);c.bindFramebuffer(c.FRAMEBUFFER,s.framebuffer),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,s.texture,0),c.clearColor(0,0,0,0),c.clear(c.COLOR_BUFFER_BIT),c.bufferData(c.ARRAY_BUFFER,this.vertexData,c.STATIC_DRAW),c.drawArrays(c.TRIANGLES,0,6),h&&(c.bindTexture(c.TEXTURE_2D,null),c.bindFramebuffer(c.FRAMEBUFFER,p))},copyFrame:function(d,s,h,c,p){this.manager.copyFrame(d,s,h,c,p)},copyToGame:function(d){this.manager.copyToGame(d)},drawFrame:function(d,s,h){this.manager.drawFrame(d,s,h,this.colorMatrix)},blendFrames:function(d,s,h,c,p){this.manager.blendFrames(d,s,h,c,p)},blendFramesAdditive:function(d,s,h,c,p){this.manager.blendFramesAdditive(d,s,h,c,p)},clearFrame:function(d,s){this.manager.clearFrame(d,s)},blitFrame:function(d,s,h,c,p,m){this.manager.blitFrame(d,s,h,c,p,m)},copyFrameRect:function(d,s,h,c,p,m,x,S){this.manager.copyFrameRect(d,s,h,c,p,m,x,S)},bindAndDraw:function(d,s,h,c,p){h===void 0&&(h=!0),c===void 0&&(c=!0);var m=this.gl,x=this.renderer;this.bind(p),this.set1i("uMainSampler",0),s?(m.viewport(0,0,s.width,s.height),m.bindFramebuffer(m.FRAMEBUFFER,s.framebuffer),m.framebufferTexture2D(m.FRAMEBUFFER,m.COLOR_ATTACHMENT0,m.TEXTURE_2D,s.texture,0),h&&(c?m.clearColor(0,0,0,0):m.clearColor(0,0,0,1),m.clear(m.COLOR_BUFFER_BIT))):(x.popFramebuffer(!1,!1),x.currentFramebuffer||m.viewport(0,0,x.width,x.height)),x.restoreStencilMask(),m.activeTexture(m.TEXTURE0),m.bindTexture(m.TEXTURE_2D,d.texture),m.bufferData(m.ARRAY_BUFFER,this.vertexData,m.STATIC_DRAW),m.drawArrays(m.TRIANGLES,0,6),s&&(m.bindTexture(m.TEXTURE_2D,null),m.bindFramebuffer(m.FRAMEBUFFER,x.currentFramebuffer))},destroy:function(){return this.controller&&this.controller.destroy(),this.gameObject=null,this.controller=null,this.colorMatrix=null,this.fullFrame1=null,this.fullFrame2=null,this.halfFrame1=null,this.halfFrame2=null,n.prototype.destroy.call(this),this}});f.exports=r},87228:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(95723),g=t(79993),u=t(56694),o=t(37486),a=t(72632),n=t(77310),r=t(12569),d=t(74118),s=t(37410),h=t(85060),c=t(18166),p=t(44775),m=new u({Extends:n,initialize:function(S){var P=a(S,"fragShader",r),E=a(S,"vertShader",c),R=a(S,"drawShader",r),M=[{name:"DrawSprite",fragShader:h,vertShader:c},{name:"CopySprite",fragShader:P,vertShader:E},{name:"DrawGame",fragShader:R,vertShader:c},{name:"ColorMatrix",fragShader:o}],O=a(S,"shaders",[]);S.shaders=M.concat(O),S.vertShader||(S.vertShader=E),S.batchSize=1,n.call(this,S),this.isPreFX=!0,this.customMainSampler=null,this.drawSpriteShader,this.copyShader,this.gameShader,this.colorMatrixShader,this.quadVertexData,this.quadVertexBuffer,this.quadVertexViewF32,this.spriteBounds=new d,this.targetBounds=new d,this.fsTarget,this.tempSprite,this.renderer.isBooted&&(this.manager=this.renderer.pipelines,this.boot())},boot:function(){p.prototype.boot.call(this);var x=this.shaders,S=this.renderer;this.drawSpriteShader=x[0],this.copyShader=x[1],this.gameShader=x[2],this.colorMatrixShader=x[3],this.fsTarget=new s(S,S.width,S.height,1,0,!0,!0),this.renderTargets=this.manager.renderTargets.concat(this.fsTarget);var P=new ArrayBuffer(168);this.quadVertexData=P,this.quadVertexViewF32=new Float32Array(P),this.quadVertexBuffer=S.createVertexBuffer(P,this.gl.STATIC_DRAW),this.onResize(S.width,S.height),this.currentShader=this.copyShader},onResize:function(x,S){var P=this.quadVertexViewF32;P[1]=S,P[22]=S,P[14]=x,P[28]=x,P[35]=x,P[36]=S},batchQuad:function(x,S,P,E,R,M,O,w,L,F,b,D,N,z,W,Y,j,G,V){var I=Math.min(S,E,M,w),B=Math.min(P,R,O,L),U=Math.max(S,E,M,w),X=Math.max(P,R,O,L),$=U-I,k=X-B,K=this.spriteBounds.setTo(I,B,$,k),J=x?x.preFX.padding:0,q=$+J*2,_=k+J*2,et=Math.abs(Math.max(q,_)),it=this.manager.getRenderTarget(et),tt=this.targetBounds.setTo(0,0,it.width,it.height);g(tt,K.centerX,K.centerY),this.tempSprite=x;var st=this.gl,mt=this.renderer;mt.clearStencilMask(),this.setShader(this.drawSpriteShader),this.set1i("uMainSampler",0),this.flipProjectionMatrix(!0),x&&(this.onDrawSprite(x,it),x.preFX.onFX(this));var ct=this.fsTarget;return this.flush(),st.viewport(0,0,mt.width,mt.height),st.bindFramebuffer(st.FRAMEBUFFER,ct.framebuffer),st.framebufferTexture2D(st.FRAMEBUFFER,st.COLOR_ATTACHMENT0,st.TEXTURE_2D,ct.texture,0),st.clearColor(0,0,0,0),st.clear(st.COLOR_BUFFER_BIT),this.setTexture2D(V),this.batchVert(S,P,F,b,0,G,z),this.batchVert(E,R,F,N,0,G,Y),this.batchVert(M,O,D,N,0,G,j),this.batchVert(S,P,F,b,0,G,z),this.batchVert(M,O,D,N,0,G,j),this.batchVert(w,L,D,b,0,G,W),this.flush(),this.flipProjectionMatrix(!1),st.activeTexture(st.TEXTURE0),st.bindTexture(st.TEXTURE_2D,it.texture),st.copyTexSubImage2D(st.TEXTURE_2D,0,0,0,tt.x,tt.y,tt.width,tt.height),st.bindFramebuffer(st.FRAMEBUFFER,null),st.bindTexture(st.TEXTURE_2D,null),this.onBatch(x),this.currentShader=this.copyShader,this.onDraw(it,this.manager.getSwapRenderTarget(),this.manager.getAltSwapRenderTarget()),!0},onDrawSprite:function(){},onCopySprite:function(){},copySprite:function(x,S,P,E,R,M,O){P===void 0&&(P=!0),E===void 0&&(E=!0),R===void 0&&(R=!1),O===void 0&&(O=this.copyShader);var w=this.gl,L=this.tempSprite;M&&(O=this.colorMatrixShader),this.currentShader=O;var F=this.setVertexBuffer(this.quadVertexBuffer);if(O.bind(F,!1),this.set1i("uMainSampler",0),L.preFX.onFXCopy(this),this.onCopySprite(x,S,L),M&&(this.set1fv("uColorMatrix",M.getData()),this.set1f("uAlpha",M.alpha)),w.activeTexture(w.TEXTURE0),w.bindTexture(w.TEXTURE_2D,x.texture),x.height>S.height)w.viewport(0,0,x.width,x.height),this.setTargetUVs(x,S);else{var b=S.height-x.height;w.viewport(0,b,x.width,x.height),this.resetUVs()}if(w.bindFramebuffer(w.FRAMEBUFFER,S.framebuffer),w.framebufferTexture2D(w.FRAMEBUFFER,w.COLOR_ATTACHMENT0,w.TEXTURE_2D,S.texture,0),P&&(w.clearColor(0,0,0,+!E),w.clear(w.COLOR_BUFFER_BIT)),R){var D=this.renderer.currentBlendMode;this.renderer.setBlendMode(l.ERASE)}w.bufferData(w.ARRAY_BUFFER,this.quadVertexData,w.STATIC_DRAW),w.drawArrays(w.TRIANGLES,0,6),R&&this.renderer.setBlendMode(D),w.bindFramebuffer(w.FRAMEBUFFER,null)},copy:function(x,S){var P=this.gl;this.set1i("uMainSampler",0),P.activeTexture(P.TEXTURE0),P.bindTexture(P.TEXTURE_2D,x.texture),P.viewport(0,0,x.width,x.height),this.setUVs(0,0,0,1,1,1,1,0),P.bindFramebuffer(P.FRAMEBUFFER,S.framebuffer),P.framebufferTexture2D(P.FRAMEBUFFER,P.COLOR_ATTACHMENT0,P.TEXTURE_2D,S.texture,0),P.clearColor(0,0,0,0),P.clear(P.COLOR_BUFFER_BIT),P.bufferData(P.ARRAY_BUFFER,this.quadVertexData,P.STATIC_DRAW),P.drawArrays(P.TRIANGLES,0,6),P.bindFramebuffer(P.FRAMEBUFFER,null)},blendFrames:function(x,S,P,E,R){this.manager.blendFrames(x,S,P,E,R)},blendFramesAdditive:function(x,S,P,E,R){this.manager.blendFramesAdditive(x,S,P,E,R)},drawToGame:function(x){this.currentShader=null,this.setShader(this.copyShader),this.bindAndDraw(x)},copyToGame:function(x){this.currentShader=null,this.setShader(this.gameShader),this.bindAndDraw(x)},bindAndDraw:function(x){var S=this.gl,P=this.renderer;this.set1i("uMainSampler",0),this.customMainSampler?this.setTexture2D(this.customMainSampler):this.setTexture2D(x.texture);var E=this._tempMatrix1.loadIdentity(),R=this.targetBounds.x,M=this.targetBounds.y,O=R+x.width,w=M+x.height,L=E.getX(R,M),F=E.getX(R,w),b=E.getX(O,w),D=E.getX(O,M),N=E.getY(R,M),z=E.getY(R,w),W=E.getY(O,w),Y=E.getY(O,M),j=16777215;this.batchVert(L,N,0,0,0,0,j),this.batchVert(F,z,0,1,0,0,j),this.batchVert(b,W,1,1,0,0,j),this.batchVert(L,N,0,0,0,0,j),this.batchVert(b,W,1,1,0,0,j),this.batchVert(D,Y,1,0,0,0,j),P.restoreFramebuffer(!1,!0),P.currentFramebuffer||S.viewport(0,0,P.width,P.height),P.restoreStencilMask(),this.flush(),this.tempSprite=null},onDraw:function(x){this.drawToGame(x)},setUVs:function(x,S,P,E,R,M,O,w){var L=this.quadVertexViewF32;L[2]=x,L[3]=S,L[9]=P,L[10]=E,L[16]=R,L[17]=M,L[23]=x,L[24]=S,L[30]=R,L[31]=M,L[37]=O,L[38]=w},setTargetUVs:function(x,S){var P=S.height/x.height;P>.5?P=.5-(P-.5):P=.5+(.5-P),this.setUVs(0,P,0,1+P,1,1+P,1,P)},resetUVs:function(){this.setUVs(0,0,0,1,1,1,1,0)},destroy:function(){return this.gl.deleteBuffer(this.quadVertexBuffer),this.drawSpriteShader=null,this.copyShader=null,this.gameShader=null,this.colorMatrixShader=null,this.quadVertexData=null,this.quadVertexBuffer=null,this.quadVertexViewF32=null,this.fsTarget=null,this.tempSprite=null,n.prototype.destroy.call(this),this}});f.exports=m},21213:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(72632),u=t(77310),o=new l({Extends:u,initialize:function(n){n.topology=5,n.batchSize=g(n,"batchSize",256),u.call(this,n)}});f.exports=o},51212:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(72632),u=t(77310),o=t(85060),a=t(18166),n=t(44775),r=new l({Extends:u,initialize:function(s){s.fragShader=g(s,"fragShader",o),s.vertShader=g(s,"vertShader",a),s.forceZero=!0,u.call(this,s)},boot:function(){n.prototype.boot.call(this),this.set1i("uMainSampler",0)}});f.exports=r},60848:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(2529),g=t(95723),u=t(56694),o=t(65246),a=t(37486),n=t(79060),r=t(72632),d=t(98921),s=t(99365),h=t(44775),c=new u({Extends:h,initialize:function(m){m.renderTarget=r(m,"renderTarget",[{scale:1},{scale:1},{scale:.5},{scale:.5}]),m.vertShader=r(m,"vertShader",s),m.shaders=r(m,"shaders",[{name:"Copy",fragShader:n},{name:"AddBlend",fragShader:l},{name:"LinearBlend",fragShader:d},{name:"ColorMatrix",fragShader:a}]),m.attributes=r(m,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2}]),m.vertices=[-1,-1,0,0,-1,1,0,1,1,1,1,1,-1,-1,0,0,1,1,1,1,1,-1,1,0],m.batchSize=1,h.call(this,m),this.colorMatrix=new o,this.copyShader,this.addShader,this.linearShader,this.colorMatrixShader,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2},boot:function(){h.prototype.boot.call(this);var p=this.shaders,m=this.renderTargets;this.copyShader=p[0],this.addShader=p[1],this.linearShader=p[2],this.colorMatrixShader=p[3],this.fullFrame1=m[0],this.fullFrame2=m[1],this.halfFrame1=m[2],this.halfFrame2=m[3]},copyFrame:function(p,m,x,S,P){x===void 0&&(x=1),S===void 0&&(S=!0),P===void 0&&(P=!0);var E=this.gl;this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",x),E.activeTexture(E.TEXTURE0),E.bindTexture(E.TEXTURE_2D,p.texture),m?(E.viewport(0,0,m.width,m.height),E.bindFramebuffer(E.FRAMEBUFFER,m.framebuffer),E.framebufferTexture2D(E.FRAMEBUFFER,E.COLOR_ATTACHMENT0,E.TEXTURE_2D,m.texture,0)):E.viewport(0,0,p.width,p.height),S&&(P?E.clearColor(0,0,0,0):E.clearColor(0,0,0,1),E.clear(E.COLOR_BUFFER_BIT)),E.bufferData(E.ARRAY_BUFFER,this.vertexData,E.STATIC_DRAW),E.drawArrays(E.TRIANGLES,0,6),E.bindFramebuffer(E.FRAMEBUFFER,null),E.bindTexture(E.TEXTURE_2D,null)},blitFrame:function(p,m,x,S,P,E,R){x===void 0&&(x=1),S===void 0&&(S=!0),P===void 0&&(P=!0),E===void 0&&(E=!1),R===void 0&&(R=!1);var M=this.gl;if(this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",x),M.activeTexture(M.TEXTURE0),M.bindTexture(M.TEXTURE_2D,p.texture),p.height>m.height)M.viewport(0,0,p.width,p.height),this.setTargetUVs(p,m);else{var O=m.height-p.height;M.viewport(0,O,p.width,p.height)}if(M.bindFramebuffer(M.FRAMEBUFFER,m.framebuffer),M.framebufferTexture2D(M.FRAMEBUFFER,M.COLOR_ATTACHMENT0,M.TEXTURE_2D,m.texture,0),S&&(P?M.clearColor(0,0,0,0):M.clearColor(0,0,0,1),M.clear(M.COLOR_BUFFER_BIT)),E){var w=this.renderer.currentBlendMode;this.renderer.setBlendMode(g.ERASE)}R&&this.flipY(),M.bufferData(M.ARRAY_BUFFER,this.vertexData,M.STATIC_DRAW),M.drawArrays(M.TRIANGLES,0,6),E&&this.renderer.setBlendMode(w),M.bindFramebuffer(M.FRAMEBUFFER,null),M.bindTexture(M.TEXTURE_2D,null),this.resetUVs()},copyFrameRect:function(p,m,x,S,P,E,R,M){R===void 0&&(R=!0),M===void 0&&(M=!0);var O=this.gl;O.bindFramebuffer(O.FRAMEBUFFER,p.framebuffer),O.framebufferTexture2D(O.FRAMEBUFFER,O.COLOR_ATTACHMENT0,O.TEXTURE_2D,p.texture,0),R&&(M?O.clearColor(0,0,0,0):O.clearColor(0,0,0,1),O.clear(O.COLOR_BUFFER_BIT)),O.activeTexture(O.TEXTURE0),O.bindTexture(O.TEXTURE_2D,m.texture),O.copyTexSubImage2D(O.TEXTURE_2D,0,0,0,x,S,P,E),O.bindFramebuffer(O.FRAMEBUFFER,null),O.bindTexture(O.TEXTURE_2D,null)},copyToGame:function(p){var m=this.gl;this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",1),this.renderer.popFramebuffer(),m.activeTexture(m.TEXTURE0),m.bindTexture(m.TEXTURE_2D,p.texture),m.bufferData(m.ARRAY_BUFFER,this.vertexData,m.STATIC_DRAW),m.drawArrays(m.TRIANGLES,0,6)},drawFrame:function(p,m,x,S){x===void 0&&(x=!0),S===void 0&&(S=this.colorMatrix);var P=this.gl;this.setShader(this.colorMatrixShader),this.set1i("uMainSampler",0),this.set1fv("uColorMatrix",S.getData()),this.set1f("uAlpha",S.alpha),P.activeTexture(P.TEXTURE0),P.bindTexture(P.TEXTURE_2D,p.texture),m?(P.viewport(0,0,m.width,m.height),P.bindFramebuffer(P.FRAMEBUFFER,m.framebuffer),P.framebufferTexture2D(P.FRAMEBUFFER,P.COLOR_ATTACHMENT0,P.TEXTURE_2D,m.texture,0)):P.viewport(0,0,p.width,p.height),x?P.clearColor(0,0,0,0):P.clearColor(0,0,0,1),P.clear(P.COLOR_BUFFER_BIT),P.bufferData(P.ARRAY_BUFFER,this.vertexData,P.STATIC_DRAW),P.drawArrays(P.TRIANGLES,0,6),P.bindFramebuffer(P.FRAMEBUFFER,null),P.bindTexture(P.TEXTURE_2D,null)},blendFrames:function(p,m,x,S,P,E){S===void 0&&(S=1),P===void 0&&(P=!0),E===void 0&&(E=this.linearShader);var R=this.gl;this.setShader(E),this.set1i("uMainSampler1",0),this.set1i("uMainSampler2",1),this.set1f("uStrength",S),R.activeTexture(R.TEXTURE0),R.bindTexture(R.TEXTURE_2D,p.texture),R.activeTexture(R.TEXTURE1),R.bindTexture(R.TEXTURE_2D,m.texture),x?(R.bindFramebuffer(R.FRAMEBUFFER,x.framebuffer),R.framebufferTexture2D(R.FRAMEBUFFER,R.COLOR_ATTACHMENT0,R.TEXTURE_2D,x.texture,0),R.viewport(0,0,x.width,x.height)):R.viewport(0,0,p.width,p.height),P?R.clearColor(0,0,0,0):R.clearColor(0,0,0,1),R.clear(R.COLOR_BUFFER_BIT),R.bufferData(R.ARRAY_BUFFER,this.vertexData,R.STATIC_DRAW),R.drawArrays(R.TRIANGLES,0,6),R.bindFramebuffer(R.FRAMEBUFFER,null),R.bindTexture(R.TEXTURE_2D,null)},blendFramesAdditive:function(p,m,x,S,P){this.blendFrames(p,m,x,S,P,this.addShader)},clearFrame:function(p,m){m===void 0&&(m=!0);var x=this.gl;x.viewport(0,0,p.width,p.height),x.bindFramebuffer(x.FRAMEBUFFER,p.framebuffer),m?x.clearColor(0,0,0,0):x.clearColor(0,0,0,1),x.clear(x.COLOR_BUFFER_BIT);var S=this.renderer.currentFramebuffer;x.bindFramebuffer(x.FRAMEBUFFER,S)},setUVs:function(p,m,x,S,P,E,R,M){var O=this.vertexViewF32;O[2]=p,O[3]=m,O[6]=x,O[7]=S,O[10]=P,O[11]=E,O[14]=p,O[15]=m,O[18]=P,O[19]=E,O[22]=R,O[23]=M},setTargetUVs:function(p,m){var x=m.height/p.height;x>.5?x=.5-(x-.5):x=.5+(.5-x),this.setUVs(0,x,0,1+x,1,1+x,1,x)},flipX:function(){this.setUVs(1,0,1,1,0,1,0,0)},flipY:function(){this.setUVs(0,1,0,0,1,0,1,1)},resetUVs:function(){this.setUVs(0,0,0,1,1,1,1,0)}});f.exports=c},65641:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={BITMAPMASK_PIPELINE:"BitmapMaskPipeline",LIGHT_PIPELINE:"Light2D",POINTLIGHT_PIPELINE:"PointLightPipeline",SINGLE_PIPELINE:"SinglePipeline",MULTI_PIPELINE:"MultiPipeline",ROPE_PIPELINE:"RopePipeline",GRAPHICS_PIPELINE:"GraphicsPipeline",POSTFX_PIPELINE:"PostFXPipeline",UTILITY_PIPELINE:"UtilityPipeline",MOBILE_PIPELINE:"MobilePipeline",FX_PIPELINE:"FxPipeline"};f.exports=T},68726:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pipelineafterflush"},67186:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pipelinebeforeflush"},22709:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pipelinebind"},74469:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pipelineboot"},93953:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pipelinedestroy"},51687:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pipelinerebind"},25034:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pipelineresize"},18970:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={AFTER_FLUSH:t(68726),BEFORE_FLUSH:t(67186),BIND:t(22709),BOOT:t(74469),DESTROY:t(93953),REBIND:t(51687),RESIZE:t(25034)}},32469:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(87751),u=t(80486),o=new l({Extends:u,initialize:function(n){u.call(this,{game:n,fragShader:g}),this.amount=1},onPreRender:function(a,n){a=this.getController(a),this.set1f("amount",a.amount,n)}});f.exports=o},2134:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(88222),u=t(80486),o=new l({Extends:u,initialize:function(n){u.call(this,{game:n,fragShader:g}),this.steps=4,this.offsetX=1,this.offsetY=1,this.blurStrength=1,this.strength=1,this.glcolor=[1,1,1]},onPreRender:function(a){a=this.getController(a),this.set1f("strength",a.blurStrength),this.set3fv("color",a.glcolor)},onDraw:function(a){var n=this.getController(),r=this.fullFrame1,d=this.fullFrame2;this.copyFrame(a,d);for(var s=2/a.width*n.offsetX,h=2/a.height*n.offsetY,c=0;c{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(35491),u=t(75568),o=t(44481),a=t(80486),n=new l({Extends:a,initialize:function(d){a.call(this,{game:d,shaders:[{name:"Gaussian5",fragShader:g},{name:"Gaussian9",fragShader:u},{name:"Gaussian13",fragShader:o}]}),this.activeShader=this.shaders[0],this.x=2,this.y=2,this.steps=4,this.strength=1,this.glcolor=[1,1,1]},setQualityLow:function(){return this.activeShader=this.shaders[0],this},setQualityMedium:function(){return this.activeShader=this.shaders[1],this},setQualityHigh:function(){return this.activeShader=this.shaders[2],this},onDraw:function(r){var d=this.getController(),s=this.gl,h=this.fullFrame1,c=s.getParameter(s.FRAMEBUFFER_BINDING);this.bind(this.activeShader),s.activeTexture(s.TEXTURE0),s.viewport(0,0,r.width,r.height),this.set1i("uMainSampler",0),this.set2f("resolution",r.width,r.height),this.set1f("strength",d.strength),this.set3fv("color",d.glcolor);for(var p=0;p{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(69960),u=t(80486),o=new l({Extends:u,initialize:function(n){u.call(this,{game:n,fragShader:g}),this.isTiltShift=!1,this.strength=1,this.blurX=1,this.blurY=1,this.radius=.5,this.amount=1,this.contrast=.2},onPreRender:function(a,n,r,d){a=this.getController(a),this.set1f("radius",a.radius,n),this.set1f("amount",a.amount,n),this.set1f("contrast",a.contrast,n),this.set1f("strength",a.strength,n),this.set2f("blur",a.blurX,a.blurY,n),this.setBoolean("isTiltShift",a.isTiltShift,n),r&&d&&this.set2f("resolution",r,d,n)},onDraw:function(a){this.set2f("resolution",a.width,a.height),this.bindAndDraw(a)}});f.exports=o},4323:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(33754),u=t(80486),o=new l({Extends:u,initialize:function(n){u.call(this,{game:n,fragShader:g}),this.scale=1,this.feather=.005,this.thickness=8,this.glcolor=[1,.2,.7],this.glcolor2=[1,0,0,.4]},onPreRender:function(a,n,r,d){a=this.getController(a),this.set1f("scale",a.scale,n),this.set1f("feather",a.feather,n),this.set1f("thickness",a.thickness,n),this.set3fv("color",a.glcolor,n),this.set4fv("backgroundColor",a.glcolor2,n),r&&d&&this.set2f("resolution",r,d,n)},onDraw:function(a){this.set2f("resolution",a.width,a.height),this.bindAndDraw(a)}});f.exports=o},92066:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(80486),u=new l({Extends:g,initialize:function(a){g.call(this,{game:a})},onDraw:function(o){var a=this.fullFrame1;this.controller?this.manager.drawFrame(o,a,!0,this.controller):this.drawFrame(o,a),this.copyToGame(a)}});f.exports=u},89581:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(35668),u=t(80486),o=new l({Extends:u,initialize:function(n){u.call(this,{game:n,fragShader:g}),this.x=.005,this.y=.005,this.glTexture},onBoot:function(){this.setTexture("__WHITE")},setTexture:function(a){var n=this.game.textures.getFrame(a);n&&(this.glTexture=n.glTexture)},onDraw:function(a){var n=this.getController(),r=this.fullFrame1;this.bind(),this.set1i("uMainSampler",0),this.set1i("uDisplacementSampler",1),this.set2f("amount",n.x,n.y),this.bindTexture(n.glTexture,1),this.copySprite(a,r),this.copyToGame(r)}});f.exports=o},55084:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(72632),u=t(69675),o=t(80486),a=t(75512),n=new l({Extends:o,initialize:function(d,s){var h=g(s,"quality",.1),c=g(s,"distance",10);o.call(this,{game:d,fragShader:a.setGlowQuality(u,d,h,c)}),this.outerStrength=4,this.innerStrength=0,this.knockout=!1,this.glcolor=[1,1,1,1]},onPreRender:function(r,d,s,h){r=this.getController(r),this.set1f("outerStrength",r.outerStrength,d),this.set1f("innerStrength",r.innerStrength,d),this.set4fv("glowColor",r.glcolor,d),this.setBoolean("knockout",r.knockout,d),s&&h&&this.set2f("resolution",s,h,d)},onDraw:function(r){this.set2f("resolution",r.width,r.height),this.bindAndDraw(r)}});f.exports=n},41653:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(90993),u=t(80486),o=new l({Extends:u,initialize:function(n){u.call(this,{game:n,fragShader:g}),this.alpha=.2,this.size=0,this.fromX=0,this.fromY=0,this.toX=0,this.toY=1,this.glcolor1=[255,0,0],this.glcolor2=[0,255,0]},onPreRender:function(a,n){a=this.getController(a),this.set1f("alpha",a.alpha,n),this.set1i("size",a.size,n),this.set3fv("color1",a.glcolor1,n),this.set3fv("color2",a.glcolor2,n),this.set2f("positionFrom",a.fromX,a.fromY,n),this.set2f("positionTo",a.toX,a.toY,n)}});f.exports=o},73416:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(37945),u=t(80486),o=new l({Extends:u,initialize:function(n){u.call(this,{game:n,fragShader:g}),this.amount=1},onPreRender:function(a,n,r,d){a=this.getController(a),this.set1f("amount",a.amount,n),r&&d&&this.set2f("resolution",r,d,n)},onDraw:function(a){this.set2f("resolution",a.width,a.height),this.bindAndDraw(a)}});f.exports=o},58049:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(85718),u=t(80486),o=new l({Extends:u,initialize:function(n){u.call(this,{game:n,fragShader:g}),this.x=0,this.y=0,this.decay=.1,this.power=1,this.glcolor=[0,0,0,1],this.samples=6,this.intensity=1},onPreRender:function(a,n){a=this.getController(a);var r=a.samples;this.set1i("samples",r,n),this.set1f("intensity",a.intensity,n),this.set1f("decay",a.decay,n),this.set1f("power",a.power/r,n),this.set2f("lightPosition",a.x,a.y,n),this.set4fv("color",a.glcolor,n)}});f.exports=o},18026:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(13740),u=t(80486),o=new l({Extends:u,initialize:function(n){u.call(this,{game:n,fragShader:g}),this.speed=.5,this.lineWidth=.5,this.gradient=3,this.reveal=!1},onPreRender:function(a,n,r,d){a=this.getController(a),this.setTime("time",n),this.set1f("speed",a.speed,n),this.set1f("lineWidth",a.lineWidth,n),this.set1f("gradient",a.gradient,n),this.setBoolean("reveal",a.reveal,n),r&&d&&this.set2f("resolution",r,d,n)},onDraw:function(a){this.set2f("resolution",a.width,a.height),this.bindAndDraw(a)}});f.exports=o},72381:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(80617),u=t(80486),o=new l({Extends:u,initialize:function(n){u.call(this,{game:n,fragShader:g}),this.x=.5,this.y=.5,this.radius=.5,this.strength=.5},onPreRender:function(a,n){a=this.getController(a),this.set1f("radius",a.radius,n),this.set1f("strength",a.strength,n),this.set2f("position",a.x,a.y,n)}});f.exports=o},80542:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(62879),u=t(80486),o=new l({Extends:u,initialize:function(n){u.call(this,{game:n,fragShader:g}),this.progress=0,this.wipeWidth=.1,this.direction=0,this.axis=0,this.reveal=!1},onPreRender:function(a,n){a=this.getController(a);var r=a.progress,d=a.wipeWidth,s=a.direction,h=a.axis;this.set4f("config",r,d,s,h,n),this.setBoolean("reveal",a.reveal,n)}});f.exports=o},58136:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l={Barrel:t(32469),Bloom:t(2134),Blur:t(63377),Bokeh:t(49745),Circle:t(4323),ColorMatrix:t(92066),Displacement:t(89581),Glow:t(55084),Gradient:t(41653),Pixelate:t(73416),Shadow:t(58049),Shine:t(18026),Vignette:t(72381),Wipe:t(80542)};f.exports=l},62253:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(65641),g=t(98611),u={FX:t(58136),BitmapMaskPipeline:t(5583),Events:t(18970),FXPipeline:t(81828),LightPipeline:t(66901),MobilePipeline:t(71264),MultiPipeline:t(77310),PointLightPipeline:t(10919),PostFXPipeline:t(80486),PreFXPipeline:t(87228),RopePipeline:t(21213),SinglePipeline:t(51212),UtilityPipeline:t(60848)};u=g(!1,u,l),f.exports=u},2529:f=>{f.exports=["#define SHADER_NAME PHASER_ADD_BLEND_FS","precision mediump float;","uniform sampler2D uMainSampler1;","uniform sampler2D uMainSampler2;","uniform float uStrength;","varying vec2 outTexCoord;","void main ()","{"," vec4 frame1 = texture2D(uMainSampler1, outTexCoord);"," vec4 frame2 = texture2D(uMainSampler2, outTexCoord);"," gl_FragColor = frame1 + frame2 * uStrength;","}"].join(` +`)},91679:f=>{f.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_FS","precision mediump float;","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uMaskSampler;","uniform bool uInvertMaskAlpha;","void main ()","{"," vec2 uv = gl_FragCoord.xy / uResolution;"," vec4 mainColor = texture2D(uMainSampler, uv);"," vec4 maskColor = texture2D(uMaskSampler, uv);"," if (!uInvertMaskAlpha)"," {"," mainColor *= maskColor.a;"," }"," else"," {"," mainColor *= (1.0 - maskColor.a);"," }"," gl_FragColor = mainColor;","}"].join(` +`)},89053:f=>{f.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_VS","precision mediump float;","attribute vec2 inPosition;","void main ()","{"," gl_Position = vec4(inPosition, 0.0, 1.0);","}"].join(` +`)},37486:f=>{f.exports=["#define SHADER_NAME PHASER_COLORMATRIX_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float uColorMatrix[20];","uniform float uAlpha;","varying vec2 outTexCoord;","void main ()","{"," vec4 c = texture2D(uMainSampler, outTexCoord);"," if (uAlpha == 0.0)"," {"," gl_FragColor = c;"," return;"," }"," if (c.a > 0.0)"," {"," c.rgb /= c.a;"," }"," vec4 result;"," result.r = (uColorMatrix[0] * c.r) + (uColorMatrix[1] * c.g) + (uColorMatrix[2] * c.b) + (uColorMatrix[3] * c.a) + uColorMatrix[4];"," result.g = (uColorMatrix[5] * c.r) + (uColorMatrix[6] * c.g) + (uColorMatrix[7] * c.b) + (uColorMatrix[8] * c.a) + uColorMatrix[9];"," result.b = (uColorMatrix[10] * c.r) + (uColorMatrix[11] * c.g) + (uColorMatrix[12] * c.b) + (uColorMatrix[13] * c.a) + uColorMatrix[14];"," result.a = (uColorMatrix[15] * c.r) + (uColorMatrix[16] * c.g) + (uColorMatrix[17] * c.b) + (uColorMatrix[18] * c.a) + uColorMatrix[19];"," vec3 rgb = mix(c.rgb, result.rgb, uAlpha);"," rgb *= result.a;"," gl_FragColor = vec4(rgb, result.a);","}"].join(` +`)},79060:f=>{f.exports=["#define SHADER_NAME PHASER_COPY_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float uBrightness;","varying vec2 outTexCoord;","void main ()","{"," gl_FragColor = texture2D(uMainSampler, outTexCoord) * uBrightness;","}"].join(` +`)},87751:f=>{f.exports=["#define SHADER_NAME BARREL_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float amount;","varying vec2 outTexCoord;","vec2 Distort(vec2 p)","{"," float theta = atan(p.y, p.x);"," float radius = length(p);"," radius = pow(radius, amount);"," p.x = radius * cos(theta);"," p.y = radius * sin(theta);"," return 0.5 * (p + 1.0);","}","void main()","{"," vec2 xy = 2.0 * outTexCoord - 1.0;"," vec2 texCoord = outTexCoord;"," if (length(xy) < 1.0)"," {"," texCoord = Distort(xy);"," }"," gl_FragColor = texture2D(uMainSampler, texCoord);","}"].join(` +`)},88222:f=>{f.exports=["#define SHADER_NAME BLOOM_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 offset;","uniform float strength;","uniform vec3 color;","varying vec2 outTexCoord;","void main ()","{"," vec4 sum = texture2D(uMainSampler, outTexCoord) * 0.204164 * strength;"," sum = sum + texture2D(uMainSampler, outTexCoord + offset * 1.407333) * 0.304005;"," sum = sum + texture2D(uMainSampler, outTexCoord - offset * 1.407333) * 0.304005;"," sum = sum + texture2D(uMainSampler, outTexCoord + offset * 3.294215) * 0.093913;"," gl_FragColor = (sum + texture2D(uMainSampler, outTexCoord - offset * 3.294215) * 0.093913) * vec4(color, 1);","}"].join(` +`)},44481:f=>{f.exports=["#define SHADER_NAME BLUR_HIGH_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform vec2 offset;","uniform float strength;","uniform vec3 color;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = outTexCoord;"," vec4 col = vec4(0.0);"," vec2 off1 = vec2(1.411764705882353) * offset * strength;"," vec2 off2 = vec2(3.2941176470588234) * offset * strength;"," vec2 off3 = vec2(5.176470588235294) * offset * strength;"," col += texture2D(uMainSampler, uv) * 0.1964825501511404;"," col += texture2D(uMainSampler, uv + (off1 / resolution)) * 0.2969069646728344;"," col += texture2D(uMainSampler, uv - (off1 / resolution)) * 0.2969069646728344;"," col += texture2D(uMainSampler, uv + (off2 / resolution)) * 0.09447039785044732;"," col += texture2D(uMainSampler, uv - (off2 / resolution)) * 0.09447039785044732;"," col += texture2D(uMainSampler, uv + (off3 / resolution)) * 0.010381362401148057;"," col += texture2D(uMainSampler, uv - (off3 / resolution)) * 0.010381362401148057;"," gl_FragColor = col * vec4(color, 1.0);","}"].join(` +`)},35491:f=>{f.exports=["#define SHADER_NAME BLUR_LOW_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform float strength;","uniform vec3 color;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = outTexCoord;"," vec4 col = vec4(0.0);"," vec2 offset = vec2(1.333) * strength;"," col += texture2D(uMainSampler, uv) * 0.29411764705882354;"," col += texture2D(uMainSampler, uv + (offset / resolution)) * 0.35294117647058826;"," col += texture2D(uMainSampler, uv - (offset / resolution)) * 0.35294117647058826;"," gl_FragColor = col * vec4(color, 1.0);","}"].join(` +`)},75568:f=>{f.exports=["#define SHADER_NAME BLUR_MED_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform vec2 offset;","uniform float strength;","uniform vec3 color;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = outTexCoord;"," vec4 col = vec4(0.0);"," vec2 off1 = vec2(1.3846153846) * offset * strength;"," vec2 off2 = vec2(3.2307692308) * offset * strength;"," col += texture2D(uMainSampler, uv) * 0.2270270270;"," col += texture2D(uMainSampler, uv + (off1 / resolution)) * 0.3162162162;"," col += texture2D(uMainSampler, uv - (off1 / resolution)) * 0.3162162162;"," col += texture2D(uMainSampler, uv + (off2 / resolution)) * 0.0702702703;"," col += texture2D(uMainSampler, uv - (off2 / resolution)) * 0.0702702703;"," gl_FragColor = col * vec4(color, 1.0);","}"].join(` +`)},69960:f=>{f.exports=["#define SHADER_NAME BOKEH_FS","precision mediump float;","#define ITERATIONS 100.0","#define ONEOVER_ITR 1.0 / ITERATIONS","#define PI 3.141596","#define GOLDEN_ANGLE 2.39996323","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform float radius;","uniform float amount;","uniform float contrast;","uniform bool isTiltShift;","uniform float strength;","uniform vec2 blur;","varying vec2 outTexCoord;","vec2 Sample (in float theta, inout float r)","{"," r += 1.0 / r;"," return (r - 1.0) * vec2(cos(theta), sin(theta)) * 0.06;","}","vec3 Bokeh (sampler2D tex, vec2 uv, float radius)","{"," vec3 acc = vec3(0.0);"," vec3 div = vec3(0.0);"," vec2 pixel = vec2(resolution.y / resolution.x, 1.0) * radius * .025;"," float r = 1.0;"," for (float j = 0.0; j < GOLDEN_ANGLE * ITERATIONS; j += GOLDEN_ANGLE)"," {"," vec3 col = texture2D(tex, uv + pixel * Sample(j, r)).xyz;"," col = contrast > 0.0 ? col * col * (1.0 + contrast) : col;"," vec3 bokeh = vec3(0.5) + pow(col, vec3(10.0)) * amount;"," acc += col * bokeh;"," div += bokeh;"," }"," return acc / div;","}","void main ()","{"," float shift = 1.0;"," if (isTiltShift)"," {"," vec2 uv = vec2(gl_FragCoord.xy / resolution + vec2(-0.5, -0.5)) * 2.0;"," float centerStrength = 1.0;"," shift = length(uv * blur * strength) * centerStrength;"," }"," gl_FragColor = vec4(Bokeh(uMainSampler, outTexCoord * vec2(1.0, 1.0), radius * shift), 0.0);","}"].join(` +`)},33754:f=>{f.exports=["#define SHADER_NAME CIRCLE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform vec3 color;","uniform vec4 backgroundColor;","uniform float thickness;","uniform float scale;","uniform float feather;","varying vec2 outTexCoord;","void main ()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec2 position = (gl_FragCoord.xy / resolution.xy) * 2.0 - 1.0;"," float aspectRatio = resolution.x / resolution.y;"," position.x *= aspectRatio;"," float grad = length(position);"," float outer = aspectRatio;"," float inner = outer - (thickness * 2.0 / resolution.y);"," if (aspectRatio >= 1.0)"," {"," float f = 2.0 + (resolution.y / resolution.x);"," outer = 1.0;"," inner = 1.0 - (thickness * f / resolution.x);"," }"," outer *= scale;"," inner *= scale;"," float circle = smoothstep(outer, outer - 0.01, grad);"," float ring = circle - smoothstep(inner, inner - feather, grad);"," texture = mix(backgroundColor * backgroundColor.a, texture, texture.a);"," texture = (texture * (circle - ring));"," gl_FragColor = vec4(texture.rgb + (ring * color), texture.a);","}"].join(` +`)},35668:f=>{f.exports=["#define SHADER_NAME DISPLACEMENT_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform sampler2D uDisplacementSampler;","uniform vec2 amount;","varying vec2 outTexCoord;","void main ()","{"," vec2 disp = (-vec2(0.5, 0.5) + texture2D(uDisplacementSampler, outTexCoord).rr) * amount;"," gl_FragColor = texture2D(uMainSampler, outTexCoord + disp).rgba;","}"].join(` +`)},69675:f=>{f.exports=["#define SHADER_NAME GLOW_FS","precision mediump float;","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","uniform float outerStrength;","uniform float innerStrength;","uniform vec2 resolution;","uniform vec4 glowColor;","uniform bool knockout;","const float PI = 3.14159265358979323846264;","const float DIST = __DIST__;","const float SIZE = min(__SIZE__, PI * 2.0);","const float STEP = ceil(PI * 2.0 / SIZE);","const float MAX_ALPHA = STEP * DIST * (DIST + 1.0) / 2.0;","void main ()","{"," vec2 px = vec2(1.0 / resolution.x, 1.0 / resolution.y);"," float totalAlpha = 0.0;"," vec2 direction;"," vec2 displaced;"," vec4 color;"," for (float angle = 0.0; angle < PI * 2.0; angle += SIZE)"," {"," direction = vec2(cos(angle), sin(angle)) * px;"," for (float curDistance = 0.0; curDistance < DIST; curDistance++)"," {"," displaced = outTexCoord + direction * (curDistance + 1.0);"," color = texture2D(uMainSampler, displaced);"," totalAlpha += (DIST - curDistance) * color.a;"," }"," }"," color = texture2D(uMainSampler, outTexCoord);"," float alphaRatio = (totalAlpha / MAX_ALPHA);"," float innerGlowAlpha = (1.0 - alphaRatio) * innerStrength * color.a;"," float innerGlowStrength = min(1.0, innerGlowAlpha);"," vec4 innerColor = mix(color, glowColor, innerGlowStrength);"," float outerGlowAlpha = alphaRatio * outerStrength * (1.0 - color.a);"," float outerGlowStrength = min(1.0 - innerColor.a, outerGlowAlpha);"," vec4 outerGlowColor = outerGlowStrength * glowColor.rgba;"," if (knockout)"," {"," float resultAlpha = outerGlowAlpha + innerGlowAlpha;"," gl_FragColor = vec4(glowColor.rgb * resultAlpha, resultAlpha);"," }"," else"," {"," gl_FragColor = innerColor + outerGlowColor;"," }","}"].join(` +`)},90993:f=>{f.exports=["#define SHADER_NAME GRADIENT_FS","#define SRGB_TO_LINEAR(c) pow((c), vec3(2.2))","#define LINEAR_TO_SRGB(c) pow((c), vec3(1.0 / 2.2))","#define SRGB(r, g, b) SRGB_TO_LINEAR(vec3(float(r), float(g), float(b)) / 255.0)","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 positionFrom;","uniform vec2 positionTo;","uniform vec3 color1;","uniform vec3 color2;","uniform float alpha;","uniform int size;","varying vec2 outTexCoord;","float gradientNoise(in vec2 uv)","{"," const vec3 magic = vec3(0.06711056, 0.00583715, 52.9829189);"," return fract(magic.z * fract(dot(uv, magic.xy)));","}","float stepped (in float s, in float scale, in int steps)","{"," return steps > 0 ? floor( s / ((1.0 * scale) / float(steps))) * 1.0 / float(steps - 1) : s;","}","void main ()","{"," vec2 a = positionFrom;"," vec2 b = positionTo;"," vec2 ba = b - a;"," float d = dot(outTexCoord - a, ba) / dot(ba, ba);"," float t = size > 0 ? stepped(d, 1.0, size) : d;"," t = smoothstep(0.0, 1.0, clamp(t, 0.0, 1.0));"," vec3 color = mix(SRGB(color1.r, color1.g, color1.b), SRGB(color2.r, color2.g, color2.b), t);"," color = LINEAR_TO_SRGB(color);"," color += (1.0 / 255.0) * gradientNoise(outTexCoord) - (0.5 / 255.0);"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," gl_FragColor = vec4(mix(color.rgb, texture.rgb, alpha), 1.0) * texture.a;","}"].join(` +`)},37945:f=>{f.exports=["#define SHADER_NAME PIXELATE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform float amount;","varying vec2 outTexCoord;","void main ()","{"," float pixelSize = floor(2.0 + amount);"," vec2 center = pixelSize * floor(outTexCoord * resolution / pixelSize) + pixelSize * vec2(0.5, 0.5);"," vec2 corner1 = center + pixelSize * vec2(-0.5, -0.5);"," vec2 corner2 = center + pixelSize * vec2(+0.5, -0.5);"," vec2 corner3 = center + pixelSize * vec2(+0.5, +0.5);"," vec2 corner4 = center + pixelSize * vec2(-0.5, +0.5);"," vec4 pixel = 0.4 * texture2D(uMainSampler, center / resolution);"," pixel += 0.15 * texture2D(uMainSampler, corner1 / resolution);"," pixel += 0.15 * texture2D(uMainSampler, corner2 / resolution);"," pixel += 0.15 * texture2D(uMainSampler, corner3 / resolution);"," pixel += 0.15 * texture2D(uMainSampler, corner4 / resolution);"," gl_FragColor = pixel;","}"].join(` +`)},85718:f=>{f.exports=["#define SHADER_NAME SHADOW_FS","precision mediump float;","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","uniform vec2 lightPosition;","uniform vec4 color;","uniform float decay;","uniform float power;","uniform float intensity;","uniform int samples;","const int MAX = 12;","void main ()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec2 pc = (lightPosition - outTexCoord) * intensity;"," float shadow = 0.0;"," float limit = max(float(MAX), float(samples));"," for (int i = 0; i < MAX; ++i)"," {"," if (i >= samples)"," {"," break;"," }"," shadow += texture2D(uMainSampler, outTexCoord + float(i) * decay / limit * pc).a * power;"," }"," float mask = 1.0 - texture.a;"," gl_FragColor = mix(texture, color, shadow * mask);","}"].join(` +`)},13740:f=>{f.exports=["#define SHADER_NAME SHINE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform bool reveal;","uniform float speed;","uniform float time;","uniform float lineWidth;","uniform float gradient;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = gl_FragCoord.xy / resolution.xy;"," vec4 tex = texture2D(uMainSampler, outTexCoord);"," vec4 col1 = vec4(0.3, 0.0, 0.0, 1.0);"," vec4 col2 = vec4(0.85, 0.85, 0.85, 1.0);"," uv.x = uv.x - mod(time * speed, 2.0) + 0.5;"," float y = uv.x * gradient;"," float s = smoothstep(y - lineWidth, y, uv.y) - smoothstep(y, y + lineWidth, uv.y);"," gl_FragColor = (((s * col1) + (s * col2)) * tex);"," if (!reveal)"," {"," gl_FragColor += tex;"," }","}"].join(` +`)},80617:f=>{f.exports=["#define SHADER_NAME VIGNETTE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float radius;","uniform float strength;","uniform vec2 position;","varying vec2 outTexCoord;","void main ()","{"," vec4 col = vec4(1.0);"," float d = length(outTexCoord - position);"," if (d <= radius)"," {"," float g = d / radius;"," g = sin(g * 3.14 * strength);"," col = vec4(g * g * g);"," }"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," gl_FragColor = texture * (1.0 - col);","}"].join(` +`)},62879:f=>{f.exports=["#define SHADER_NAME WIPE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec4 config;","uniform bool reveal;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = outTexCoord;"," vec4 color0;"," vec4 color1;"," if (reveal)"," {"," color0 = vec4(0);"," color1 = texture2D(uMainSampler, uv);"," }"," else"," {"," color0 = texture2D(uMainSampler, uv);"," color1 = vec4(0);"," }"," float distance = config.x;"," float width = config.y;"," float direction = config.z;"," float axis = uv.x;"," if (config.w == 1.0)"," {"," axis = uv.y;"," }"," float adjust = mix(width, -width, distance);"," float value = smoothstep(distance - width, distance + width, abs(direction - axis) + adjust);"," gl_FragColor = mix(color1, color0, value);","}"].join(` +`)},65045:f=>{f.exports=["#define SHADER_NAME PHASER_LIGHT_FS","precision mediump float;","struct Light","{"," vec2 position;"," vec3 color;"," float intensity;"," float radius;","};","const int kMaxLights = %LIGHT_COUNT%;","uniform vec4 uCamera; /* x, y, rotation, zoom */","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uNormSampler;","uniform vec3 uAmbientLightColor;","uniform Light uLights[kMaxLights];","uniform mat3 uInverseRotationMatrix;","uniform int uLightCount;","varying vec2 outTexCoord;","varying float outTexId;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec3 finalColor = vec3(0.0, 0.0, 0.0);"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," vec3 normalMap = texture2D(uNormSampler, outTexCoord).rgb;"," vec3 normal = normalize(uInverseRotationMatrix * vec3(normalMap * 2.0 - 1.0));"," vec2 res = vec2(min(uResolution.x, uResolution.y)) * uCamera.w;"," for (int index = 0; index < kMaxLights; ++index)"," {"," if (index < uLightCount)"," {"," Light light = uLights[index];"," vec3 lightDir = vec3((light.position.xy / res) - (gl_FragCoord.xy / res), 0.1);"," vec3 lightNormal = normalize(lightDir);"," float distToSurf = length(lightDir) * uCamera.w;"," float diffuseFactor = max(dot(normal, lightNormal), 0.0);"," float radius = (light.radius / res.x * uCamera.w) * uCamera.w;"," float attenuation = clamp(1.0 - distToSurf * distToSurf / (radius * radius), 0.0, 1.0);"," vec3 diffuse = light.color * diffuseFactor;"," finalColor += (attenuation * diffuse) * light.intensity;"," }"," }"," vec4 colorOutput = vec4(uAmbientLightColor + finalColor, 1.0);"," gl_FragColor = color * vec4(colorOutput.rgb * colorOutput.a, colorOutput.a);","}"].join(` +`)},98921:f=>{f.exports=["#define SHADER_NAME PHASER_LINEAR_BLEND_FS","precision mediump float;","uniform sampler2D uMainSampler1;","uniform sampler2D uMainSampler2;","uniform float uStrength;","varying vec2 outTexCoord;","void main ()","{"," vec4 frame1 = texture2D(uMainSampler1, outTexCoord);"," vec4 frame2 = texture2D(uMainSampler2, outTexCoord);"," gl_FragColor = mix(frame1, frame2 * uStrength, 0.5);","}"].join(` +`)},25005:f=>{f.exports=["#define SHADER_NAME PHASER_MESH_FS","precision mediump float;","uniform vec3 uLightPosition;","uniform vec3 uLightAmbient;","uniform vec3 uLightDiffuse;","uniform vec3 uLightSpecular;","uniform vec3 uFogColor;","uniform float uFogNear;","uniform float uFogFar;","uniform vec3 uMaterialAmbient;","uniform vec3 uMaterialDiffuse;","uniform vec3 uMaterialSpecular;","uniform float uMaterialShine;","uniform vec3 uCameraPosition;","uniform sampler2D uTexture;","varying vec2 vTextureCoord;","varying vec3 vNormal;","varying vec3 vPosition;","void main (void)","{"," vec4 color = texture2D(uTexture, vTextureCoord);"," vec3 ambient = uLightAmbient * uMaterialAmbient;"," vec3 norm = normalize(vNormal);"," vec3 lightDir = normalize(uLightPosition - vPosition);"," float diff = max(dot(norm, lightDir), 0.0);"," vec3 diffuse = uLightDiffuse * (diff * uMaterialDiffuse);"," vec3 viewDir = normalize(uCameraPosition - vPosition);"," vec3 reflectDir = reflect(-lightDir, norm);"," float spec = pow(max(dot(viewDir, reflectDir), 0.0), uMaterialShine);"," vec3 specular = uLightSpecular * (spec * uMaterialSpecular);"," vec3 result = (ambient + diffuse + specular) * color.rgb;"," float depth = gl_FragCoord.z / gl_FragCoord.w;"," float fogFactor = smoothstep(uFogNear, uFogFar, depth);"," gl_FragColor.rgb = mix(result.rgb, uFogColor, fogFactor);"," gl_FragColor.a = color.a;","}"].join(` +`)},94914:f=>{f.exports=["#define SHADER_NAME PHASER_MESH_VS","precision mediump float;","attribute vec3 aVertexPosition;","attribute vec3 aVertexNormal;","attribute vec2 aTextureCoord;","uniform mat4 uViewProjectionMatrix;","uniform mat4 uModelMatrix;","uniform mat4 uNormalMatrix;","varying vec2 vTextureCoord;","varying vec3 vNormal;","varying vec3 vPosition;","void main ()","{"," vTextureCoord = aTextureCoord;"," vPosition = vec3(uModelMatrix * vec4(aVertexPosition, 1.0));"," vNormal = vec3(uNormalMatrix * vec4(aVertexNormal, 1.0));"," gl_Position = uViewProjectionMatrix * uModelMatrix * vec4(aVertexPosition, 1.0);","}"].join(` +`)},11263:f=>{f.exports=["#define SHADER_NAME PHASER_MOBILE_FS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," gl_FragColor = color;","}"].join(` +`)},51852:f=>{f.exports=["#define SHADER_NAME PHASER_MOBILE_VS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform mat4 uProjectionMatrix;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTexId;","attribute float inTintEffect;","attribute vec4 inTint;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);"," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join(` +`)},53787:f=>{f.exports=["#define SHADER_NAME PHASER_MULTI_FS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform sampler2D uMainSampler[%count%];","varying vec2 outTexCoord;","varying float outTexId;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec4 texture;"," %forloop%"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," gl_FragColor = color;","}"].join(` +`)},15968:f=>{f.exports=["#define SHADER_NAME PHASER_MULTI_VS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform mat4 uProjectionMatrix;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTexId;","attribute float inTintEffect;","attribute vec4 inTint;","varying vec2 outTexCoord;","varying float outTexId;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);"," outTexCoord = inTexCoord;"," outTexId = inTexId;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join(` +`)},83327:f=>{f.exports=["#define SHADER_NAME PHASER_POINTLIGHT_FS","precision mediump float;","uniform vec2 uResolution;","uniform float uCameraZoom;","varying vec4 lightPosition;","varying vec4 lightColor;","varying float lightRadius;","varying float lightAttenuation;","void main ()","{"," vec2 center = (lightPosition.xy + 1.0) * (uResolution.xy * 0.5);"," float distToSurf = length(center - gl_FragCoord.xy);"," float radius = 1.0 - distToSurf / (lightRadius * uCameraZoom);"," float intensity = smoothstep(0.0, 1.0, radius * lightAttenuation);"," vec4 color = vec4(intensity, intensity, intensity, 0.0) * lightColor;"," gl_FragColor = vec4(color.rgb * lightColor.a, color.a);","}"].join(` +`)},54677:f=>{f.exports=["#define SHADER_NAME PHASER_POINTLIGHT_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","attribute vec2 inPosition;","attribute vec2 inLightPosition;","attribute vec4 inLightColor;","attribute float inLightRadius;","attribute float inLightAttenuation;","varying vec4 lightPosition;","varying vec4 lightColor;","varying float lightRadius;","varying float lightAttenuation;","void main ()","{"," lightColor = inLightColor;"," lightRadius = inLightRadius;"," lightAttenuation = inLightAttenuation;"," lightPosition = uProjectionMatrix * vec4(inLightPosition, 1.0, 1.0);"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);","}"].join(` +`)},12569:f=>{f.exports=["#define SHADER_NAME PHASER_POSTFX_FS","precision mediump float;","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","void main ()","{"," gl_FragColor = texture2D(uMainSampler, outTexCoord);","}"].join(` +`)},99365:f=>{f.exports=["#define SHADER_NAME PHASER_QUAD_VS","precision mediump float;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","varying vec2 outFragCoord;","varying vec2 outTexCoord;","void main ()","{"," outFragCoord = inPosition.xy * 0.5 + 0.5;"," outTexCoord = inTexCoord;"," gl_Position = vec4(inPosition, 0, 1);","}"].join(` +`)},85060:f=>{f.exports=["#define SHADER_NAME PHASER_SINGLE_FS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," gl_FragColor = color;","}"].join(` +`)},18166:f=>{f.exports=["#define SHADER_NAME PHASER_SINGLE_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTexId;","attribute float inTintEffect;","attribute vec4 inTint;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);"," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join(` +`)},92462:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={AddBlendFrag:t(2529),BitmapMaskFrag:t(91679),BitmapMaskVert:t(89053),ColorMatrixFrag:t(37486),CopyFrag:t(79060),FXBarrelFrag:t(87751),FXBloomFrag:t(88222),FXBlurHighFrag:t(44481),FXBlurLowFrag:t(35491),FXBlurMedFrag:t(75568),FXBokehFrag:t(69960),FXCircleFrag:t(33754),FXDisplacementFrag:t(35668),FXGlowFrag:t(69675),FXGradientFrag:t(90993),FXPixelateFrag:t(37945),FXShadowFrag:t(85718),FXShineFrag:t(13740),FXVignetteFrag:t(80617),FXWipeFrag:t(62879),LightFrag:t(65045),LinearBlendFrag:t(98921),MeshFrag:t(25005),MeshVert:t(94914),MobileFrag:t(11263),MobileVert:t(51852),MultiFrag:t(53787),MultiVert:t(15968),PointLightFrag:t(83327),PointLightVert:t(54677),PostFXFrag:t(12569),QuadVert:t(99365),SingleFrag:t(85060),SingleVert:t(18166)}},756:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(55301),g=t(56694),u=t(6659),o=t(40444),a=t(97081),n=t(74181),r=t(2893),d=t(9229),s=t(72283),h=t(74118),c=t(90881),p=t(84314),m=t(93736),x=t(47751),S=new g({Extends:u,initialize:function(E){u.call(this),this.game=E,this.canvas,this.canvasBounds=new h,this.parent=null,this.parentIsWindow=!1,this.parentSize=new c,this.gameSize=new c,this.baseSize=new c,this.displaySize=new c,this.scaleMode=l.SCALE_MODE.NONE,this.zoom=1,this._resetZoom=!1,this.displayScale=new m(1,1),this.autoRound=!1,this.autoCenter=l.CENTER.NO_CENTER,this.orientation=l.ORIENTATION.LANDSCAPE,this.fullscreen,this.fullscreenTarget=null,this._createdFullscreenTarget=!1,this.dirty=!1,this.resizeInterval=500,this._lastCheck=0,this._checkOrientation=!1,this.domlisteners={orientationChange:s,windowResize:s,fullScreenChange:s,fullScreenError:s}},preBoot:function(){this.parseConfig(this.game.config),this.game.events.once(a.BOOT,this.boot,this)},boot:function(){var P=this.game;this.canvas=P.canvas,this.fullscreen=P.device.fullscreen,this.scaleMode!==l.SCALE_MODE.RESIZE&&this.displaySize.setAspectMode(this.scaleMode),this.scaleMode===l.SCALE_MODE.NONE?this.resize(this.width,this.height):(this.getParentBounds(),this.parentSize.width>0&&this.parentSize.height>0&&this.displaySize.setParent(this.parentSize),this.refresh()),P.events.on(a.PRE_STEP,this.step,this),P.events.once(a.READY,this.refresh,this),P.events.once(a.DESTROY,this.destroy,this),this.startListeners()},parseConfig:function(P){this.getParent(P),this.getParentBounds();var E=P.width,R=P.height,M=P.scaleMode,O=P.zoom,w=P.autoRound;if(typeof E=="string"){var L=this.parentSize.width;L===0&&(L=window.innerWidth);var F=parseInt(E,10)/100;E=Math.floor(L*F)}if(typeof R=="string"){var b=this.parentSize.height;b===0&&(b=window.innerHeight);var D=parseInt(R,10)/100;R=Math.floor(b*D)}this.scaleMode=M,this.autoRound=w,this.autoCenter=P.autoCenter,this.resizeInterval=P.resizeInterval,w&&(E=Math.floor(E),R=Math.floor(R)),this.gameSize.setSize(E,R),O===l.ZOOM.MAX_ZOOM&&(O=this.getMaxZoom()),this.zoom=O,O!==1&&(this._resetZoom=!0),this.baseSize.setSize(E,R),w&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),P.minWidth>0&&this.displaySize.setMin(P.minWidth*O,P.minHeight*O),P.maxWidth>0&&this.displaySize.setMax(P.maxWidth*O,P.maxHeight*O),this.displaySize.setSize(E,R),this.orientation=d(E,R)},getParent:function(P){var E=P.parent;if(E!==null){if(this.parent=r(E),this.parentIsWindow=this.parent===document.body,P.expandParent&&P.scaleMode!==l.SCALE_MODE.NONE){var R=this.parent.getBoundingClientRect();(this.parentIsWindow||R.height===0)&&(document.documentElement.style.height="100%",document.body.style.height="100%",R=this.parent.getBoundingClientRect(),!this.parentIsWindow&&R.height===0&&(this.parent.style.overflow="hidden",this.parent.style.width="100%",this.parent.style.height="100%"))}P.fullscreenTarget&&!this.fullscreenTarget&&(this.fullscreenTarget=r(P.fullscreenTarget))}},getParentBounds:function(){if(!this.parent)return!1;var P=this.parentSize,E=this.parent.getBoundingClientRect();this.parentIsWindow&&this.game.device.os.iOS&&(E.height=n(!0));var R=E.width,M=E.height;if(P.width!==R||P.height!==M)return P.setSize(R,M),!0;if(this.canvas){var O=this.canvasBounds,w=this.canvas.getBoundingClientRect();if(w.x!==O.x||w.y!==O.y)return!0}return!1},lockOrientation:function(P){var E=screen.lockOrientation||screen.mozLockOrientation||screen.msLockOrientation;return E?E.call(screen,P):!1},setParentSize:function(P,E){return this.parentSize.setSize(P,E),this.refresh()},setGameSize:function(P,E){var R=this.autoRound;R&&(P=Math.floor(P),E=Math.floor(E));var M=this.width,O=this.height;return this.gameSize.resize(P,E),this.baseSize.resize(P,E),R&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setAspectRatio(P/E),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height,this.refresh(M,O)},resize:function(P,E){var R=this.zoom,M=this.autoRound;M&&(P=Math.floor(P),E=Math.floor(E));var O=this.width,w=this.height;this.gameSize.resize(P,E),this.baseSize.resize(P,E),M&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(P*R,E*R),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height;var L=this.canvas.style,F=P*R,b=E*R;return M&&(F=Math.floor(F),b=Math.floor(b)),(F!==P||b!==E)&&(L.width=F+"px",L.height=b+"px"),this.refresh(O,w)},setZoom:function(P){return this.zoom=P,this._resetZoom=!0,this.refresh()},setMaxZoom:function(){return this.zoom=this.getMaxZoom(),this._resetZoom=!0,this.refresh()},refresh:function(P,E){P===void 0&&(P=this.width),E===void 0&&(E=this.height),this.updateScale(),this.updateBounds(),this.updateOrientation(),this.displayScale.set(this.baseSize.width/this.canvasBounds.width,this.baseSize.height/this.canvasBounds.height);var R=this.game.domContainer;if(R){this.baseSize.setCSS(R);var M=this.canvas.style,O=R.style;O.transform="scale("+this.displaySize.width/this.baseSize.width+","+this.displaySize.height/this.baseSize.height+")",O.marginLeft=M.marginLeft,O.marginTop=M.marginTop}return this.emit(o.RESIZE,this.gameSize,this.baseSize,this.displaySize,P,E),this},updateOrientation:function(){if(this._checkOrientation){this._checkOrientation=!1;var P=d(this.width,this.height);P!==this.orientation&&(this.orientation=P,this.emit(o.ORIENTATION_CHANGE,P))}},updateScale:function(){var P=this.canvas.style,E=this.gameSize.width,R=this.gameSize.height,M,O,w=this.zoom,L=this.autoRound;this.scaleMode===l.SCALE_MODE.NONE?(this.displaySize.setSize(E*w,R*w),M=this.displaySize.width,O=this.displaySize.height,L&&(M=Math.floor(M),O=Math.floor(O)),this._resetZoom&&(P.width=M+"px",P.height=O+"px",this._resetZoom=!1)):this.scaleMode===l.SCALE_MODE.RESIZE?(this.displaySize.setSize(this.parentSize.width,this.parentSize.height),this.gameSize.setSize(this.displaySize.width,this.displaySize.height),this.baseSize.setSize(this.displaySize.width,this.displaySize.height),M=this.displaySize.width,O=this.displaySize.height,L&&(M=Math.floor(M),O=Math.floor(O)),this.canvas.width=M,this.canvas.height=O):(this.displaySize.setSize(this.parentSize.width,this.parentSize.height),M=this.displaySize.width,O=this.displaySize.height,L&&(M=Math.floor(M),O=Math.floor(O)),P.width=M+"px",P.height=O+"px"),this.getParentBounds(),this.updateCenter()},getMaxZoom:function(){var P=p(this.parentSize.width,this.gameSize.width,0,!0),E=p(this.parentSize.height,this.gameSize.height,0,!0);return Math.max(Math.min(P,E),1)},updateCenter:function(){var P=this.autoCenter;if(P!==l.CENTER.NO_CENTER){var E=this.canvas,R=E.style,M=E.getBoundingClientRect(),O=M.width,w=M.height,L=Math.floor((this.parentSize.width-O)/2),F=Math.floor((this.parentSize.height-w)/2);P===l.CENTER.CENTER_HORIZONTALLY?F=0:P===l.CENTER.CENTER_VERTICALLY&&(L=0),R.marginLeft=L+"px",R.marginTop=F+"px"}},updateBounds:function(){var P=this.canvasBounds,E=this.canvas.getBoundingClientRect();P.x=E.left+(window.pageXOffset||0)-(document.documentElement.clientLeft||0),P.y=E.top+(window.pageYOffset||0)-(document.documentElement.clientTop||0),P.width=E.width,P.height=E.height},transformX:function(P){return(P-this.canvasBounds.left)*this.displayScale.x},transformY:function(P){return(P-this.canvasBounds.top)*this.displayScale.y},startFullscreen:function(P){P===void 0&&(P={navigationUI:"hide"});var E=this.fullscreen;if(!E.available){this.emit(o.FULLSCREEN_UNSUPPORTED);return}if(!E.active){var R=this.getFullscreenTarget();E.keyboard?R[E.request](Element.ALLOW_KEYBOARD_INPUT):R[E.request](P)}},fullscreenSuccessHandler:function(){this.getParentBounds(),this.refresh(),this.emit(o.ENTER_FULLSCREEN)},fullscreenErrorHandler:function(P){this.removeFullscreenTarget(),this.emit(o.FULLSCREEN_FAILED,P)},getFullscreenTarget:function(){if(!this.fullscreenTarget){var P=document.createElement("div");P.style.margin="0",P.style.padding="0",P.style.width="100%",P.style.height="100%",this.fullscreenTarget=P,this._createdFullscreenTarget=!0}if(this._createdFullscreenTarget){var E=this.canvas.parentNode;E.insertBefore(this.fullscreenTarget,this.canvas),this.fullscreenTarget.appendChild(this.canvas)}return this.fullscreenTarget},removeFullscreenTarget:function(){if(this._createdFullscreenTarget){var P=this.fullscreenTarget;if(P&&P.parentNode){var E=P.parentNode;E.insertBefore(this.canvas,P),E.removeChild(P)}}},stopFullscreen:function(){var P=this.fullscreen;if(!P.available)return this.emit(o.FULLSCREEN_UNSUPPORTED),!1;P.active&&document[P.cancel](),this.removeFullscreenTarget(),this.getParentBounds(),this.emit(o.LEAVE_FULLSCREEN),this.refresh()},toggleFullscreen:function(P){this.fullscreen.active?this.stopFullscreen():this.startFullscreen(P)},startListeners:function(){var P=this,E=this.domlisteners;if(E.orientationChange=function(){P.updateBounds(),P._checkOrientation=!0,P.dirty=!0},E.windowResize=function(){P.updateBounds(),P.dirty=!0},window.addEventListener("orientationchange",E.orientationChange,!1),window.addEventListener("resize",E.windowResize,!1),this.fullscreen.available){E.fullScreenChange=function(M){return P.onFullScreenChange(M)},E.fullScreenError=function(M){return P.onFullScreenError(M)};var R=["webkit","moz",""];R.forEach(function(M){document.addEventListener(M+"fullscreenchange",E.fullScreenChange,!1),document.addEventListener(M+"fullscreenerror",E.fullScreenError,!1)}),document.addEventListener("MSFullscreenChange",E.fullScreenChange,!1),document.addEventListener("MSFullscreenError",E.fullScreenError,!1)}},onFullScreenChange:function(){document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement||document.mozFullScreenElement?this.fullscreenSuccessHandler():this.stopFullscreen()},onFullScreenError:function(){this.removeFullscreenTarget()},getViewPort:function(P,E){P instanceof x||(E=P,P=void 0),E===void 0&&(E=new h);var R=this.baseSize,M=this.parentSize,O=this.canvasBounds,w=this.displayScale,L=O.x>=0?0:-(O.x*w.x),F=O.y>=0?0:-(O.y*w.y),b;M.width>=O.width?b=R.width:b=R.width-(O.width-M.width)*w.x;var D;return M.height>=O.height?D=R.height:D=R.height-(O.height-M.height)*w.y,E.setTo(L,F,b,D),P&&(E.width/=P.zoomX,E.height/=P.zoomY,E.centerX=P.centerX+P.scrollX,E.centerY=P.centerY+P.scrollY),E},step:function(P,E){this.parent&&(this._lastCheck+=E,(this.dirty||this._lastCheck>this.resizeInterval)&&(this.getParentBounds()&&this.refresh(),this.dirty=!1,this._lastCheck=0))},stopListeners:function(){var P=this.domlisteners;window.removeEventListener("orientationchange",P.orientationChange,!1),window.removeEventListener("resize",P.windowResize,!1);var E=["webkit","moz",""];E.forEach(function(R){document.removeEventListener(R+"fullscreenchange",P.fullScreenChange,!1),document.removeEventListener(R+"fullscreenerror",P.fullScreenError,!1)}),document.removeEventListener("MSFullscreenChange",P.fullScreenChange,!1),document.removeEventListener("MSFullscreenError",P.fullScreenError,!1)},destroy:function(){this.removeAllListeners(),this.stopListeners(),this.game=null,this.canvas=null,this.canvasBounds=null,this.parent=null,this.fullscreenTarget=null,this.parentSize.destroy(),this.gameSize.destroy(),this.baseSize.destroy(),this.displaySize.destroy()},isFullscreen:{get:function(){return this.fullscreen.active}},width:{get:function(){return this.gameSize.width}},height:{get:function(){return this.gameSize.height}},isPortrait:{get:function(){return this.orientation===l.ORIENTATION.PORTRAIT}},isLandscape:{get:function(){return this.orientation===l.ORIENTATION.LANDSCAPE}},isGamePortrait:{get:function(){return this.height>this.width}},isGameLandscape:{get:function(){return this.width>this.height}}});f.exports=S},35098:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={NO_CENTER:0,CENTER_BOTH:1,CENTER_HORIZONTALLY:2,CENTER_VERTICALLY:3}},53539:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={LANDSCAPE:"landscape-primary",PORTRAIT:"portrait-primary"}},12637:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={NONE:0,WIDTH_CONTROLS_HEIGHT:1,HEIGHT_CONTROLS_WIDTH:2,FIT:3,ENVELOP:4,RESIZE:5}},10217:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={NO_ZOOM:1,ZOOM_2X:2,ZOOM_4X:4,MAX_ZOOM:-1}},55301:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l={CENTER:t(35098),ORIENTATION:t(53539),SCALE_MODE:t(12637),ZOOM:t(10217)};f.exports=l},82085:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="enterfullscreen"},11826:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="fullscreenfailed"},56691:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="fullscreenunsupported"},34739:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="leavefullscreen"},26681:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="orientationchange"},11428:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="resize"},40444:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={ENTER_FULLSCREEN:t(82085),FULLSCREEN_FAILED:t(11826),FULLSCREEN_UNSUPPORTED:t(56691),LEAVE_FULLSCREEN:t(34739),ORIENTATION_CHANGE:t(26681),RESIZE:t(11428)}},86754:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(98611),g=t(55301),u={Center:t(35098),Events:t(40444),Orientation:t(53539),ScaleManager:t(756),ScaleModes:t(12637),Zoom:t(10217)};u=l(!1,u,g.CENTER),u=l(!1,u,g.ORIENTATION),u=l(!1,u,g.SCALE_MODE),u=l(!1,u,g.ZOOM),f.exports=u},47736:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72632),g=t(40587),u=function(o){var a=o.game.config.defaultPhysicsSystem,n=l(o.settings,"physics",!1);if(!(!a&&!n)){var r=[];if(a&&r.push(g(a+"Physics")),n)for(var d in n)d=g(d.concat("Physics")),r.indexOf(d)===-1&&r.push(d);return r}};f.exports=u},91088:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72632),g=function(u){var o=u.plugins.getDefaultScenePlugins(),a=l(u.settings,"plugins",!1);return Array.isArray(a)?a:o||[]};f.exports=g},90415:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={game:"game",renderer:"renderer",anims:"anims",cache:"cache",plugins:"plugins",registry:"registry",scale:"scale",sound:"sound",textures:"textures",events:"events",cameras:"cameras",add:"add",make:"make",scenePlugin:"scene",displayList:"children",lights:"lights",data:"data",input:"input",load:"load",time:"time",tweens:"tweens",arcadePhysics:"physics",impactPhysics:"impact",matterPhysics:"matter"};f.exports=T},87157:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(63946),u=new l({initialize:function(a){this.sys=new g(this,a),this.game,this.anims,this.cache,this.registry,this.sound,this.textures,this.events,this.cameras,this.add,this.make,this.scene,this.children,this.lights,this.data,this.input,this.load,this.time,this.tweens,this.physics,this.matter,this.scale,this.plugins,this.renderer},update:function(){}});f.exports=u},13553:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(92980),u=t(7599),o=t(97081),a=t(10850),n=t(683),r=t(72283),d=t(87157),s=t(63946),h=new l({initialize:function(p,m){if(this.game=p,this.keys={},this.scenes=[],this._pending=[],this._start=[],this._queue=[],this._data={},this.isProcessing=!1,this.isBooted=!1,this.customViewports=0,this.systemScene,m){Array.isArray(m)||(m=[m]);for(var x=0;x-1&&(delete this.keys[x],this.scenes.splice(m,1),this._start.indexOf(x)>-1&&(m=this._start.indexOf(x),this._start.splice(m,1)),p.sys.destroy())}return this},bootScene:function(c){var p=c.sys,m=p.settings;p.sceneUpdate=r,c.init&&(c.init.call(c,m.data),m.status=g.INIT,m.isTransition&&p.events.emit(u.TRANSITION_INIT,m.transitionFrom,m.transitionDuration));var x;p.load&&(x=p.load,x.reset()),x&&c.preload?(c.preload.call(c),m.status=g.LOADING,x.once(n.COMPLETE,this.loadComplete,this),x.start()):this.create(c)},loadComplete:function(c){this.game.sound&&this.game.sound.onBlurPausedSounds&&this.game.sound.unlock(),this.create(c.scene)},payloadComplete:function(c){this.bootScene(c.scene)},update:function(c,p){this.processQueue(),this.isProcessing=!0;for(var m=this.scenes.length-1;m>=0;m--){var x=this.scenes[m].sys;x.settings.status>g.START&&x.settings.status<=g.RUNNING&&x.step(c,p),x.scenePlugin._target&&x.scenePlugin.step(c,p)}},render:function(c){for(var p=0;p=g.LOADING&&m.settings.status=g.START&&S<=g.CREATING)return this;if(S>=g.RUNNING&&S<=g.SLEEPING)x.shutdown(),x.sceneUpdate=r,x.start(p);else{x.sceneUpdate=r,x.start(p);var P;if(x.load&&(P=x.load),P&&x.settings.hasOwnProperty("pack")&&(P.reset(),P.addPack({payload:x.settings.pack})))return x.settings.status=g.LOADING,P.once(n.COMPLETE,this.payloadComplete,this),P.start(),this}return this.bootScene(m),this},stop:function(c,p){var m=this.getScene(c);if(m&&!m.sys.isTransitioning()&&m.sys.settings.status!==g.SHUTDOWN){var x=m.sys.load;x&&(x.off(n.COMPLETE,this.loadComplete,this),x.off(n.COMPLETE,this.payloadComplete,this)),m.sys.shutdown(p)}return this},switch:function(c,p){var m=this.getScene(c),x=this.getScene(p);return m&&x&&m!==x&&(this.sleep(c),this.isSleeping(p)?this.wake(p):this.start(p)),this},getAt:function(c){return this.scenes[c]},getIndex:function(c){var p=this.getScene(c);return this.scenes.indexOf(p)},bringToTop:function(c){if(this.isProcessing)this._queue.push({op:"bringToTop",keyA:c,keyB:null});else{var p=this.getIndex(c);if(p!==-1&&p0){var m=this.getScene(c);this.scenes.splice(p,1),this.scenes.unshift(m)}}return this},moveDown:function(c){if(this.isProcessing)this._queue.push({op:"moveDown",keyA:c,keyB:null});else{var p=this.getIndex(c);if(p>0){var m=p-1,x=this.getScene(c),S=this.getAt(m);this.scenes[p]=S,this.scenes[m]=x}}return this},moveUp:function(c){if(this.isProcessing)this._queue.push({op:"moveUp",keyA:c,keyB:null});else{var p=this.getIndex(c);if(pm),0,S)}}return this},moveBelow:function(c,p){if(c===p)return this;if(this.isProcessing)this._queue.push({op:"moveBelow",keyA:c,keyB:p});else{var m=this.getIndex(c),x=this.getIndex(p);if(m!==-1&&x!==-1&&x>m){var S=this.getAt(x);this.scenes.splice(x,1),m===0?this.scenes.unshift(S):this.scenes.splice(m-(x{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(82897),g=t(56694),u=t(7599),o=t(72632),a=t(91963),n=new g({initialize:function(d){this.scene=d,this.systems=d.sys,this.settings=d.sys.settings,this.key=d.sys.settings.key,this.manager=d.sys.game.scene,this.transitionProgress=0,this._elapsed=0,this._target=null,this._duration=0,this._onUpdate,this._onUpdateScope,this._willSleep=!1,this._willRemove=!1,d.sys.events.once(u.BOOT,this.boot,this),d.sys.events.on(u.START,this.pluginStart,this)},boot:function(){this.systems.events.once(u.DESTROY,this.destroy,this)},pluginStart:function(){this._target=null,this.systems.events.once(u.SHUTDOWN,this.shutdown,this)},start:function(r,d){return r===void 0&&(r=this.key),this.manager.queueOp("stop",this.key),this.manager.queueOp("start",r,d),this},restart:function(r){var d=this.key;return this.manager.queueOp("stop",d),this.manager.queueOp("start",d,r),this},transition:function(r){r===void 0&&(r={});var d=o(r,"target",!1),s=this.manager.getScene(d);if(!d||!this.checkValidTransition(s))return!1;var h=o(r,"duration",1e3);this._elapsed=0,this._target=s,this._duration=h,this._willSleep=o(r,"sleep",!1),this._willRemove=o(r,"remove",!1);var c=o(r,"onUpdate",null);c&&(this._onUpdate=c,this._onUpdateScope=o(r,"onUpdateScope",this.scene));var p=o(r,"allowInput",!1);this.settings.transitionAllowInput=p;var m=s.sys.settings;m.isTransition=!0,m.transitionFrom=this.scene,m.transitionDuration=h,m.transitionAllowInput=p,o(r,"moveAbove",!1)?this.manager.moveAbove(this.key,d):o(r,"moveBelow",!1)&&this.manager.moveBelow(this.key,d),s.sys.isSleeping()?s.sys.wake(o(r,"data")):this.manager.start(d,o(r,"data"));var x=o(r,"onStart",null),S=o(r,"onStartScope",this.scene);return x&&x.call(S,this.scene,s,h),this.systems.events.emit(u.TRANSITION_OUT,s,h),!0},checkValidTransition:function(r){return!(!r||r.sys.isActive()||r.sys.isTransitioning()||r===this.scene||this.systems.isTransitioning())},step:function(r,d){this._elapsed+=d,this.transitionProgress=l(this._elapsed/this._duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.transitionProgress),this._elapsed>=this._duration&&this.transitionComplete()},transitionComplete:function(){var r=this._target.sys,d=this._target.sys.settings;r.events.emit(u.TRANSITION_COMPLETE,this.scene),d.isTransition=!1,d.transitionFrom=null,this._duration=0,this._target=null,this._onUpdate=null,this._onUpdateScope=null,this._willRemove?this.manager.remove(this.key):this._willSleep?this.systems.sleep():this.manager.stop(this.key)},add:function(r,d,s,h){return this.manager.add(r,d,s,h)},launch:function(r,d){return r&&r!==this.key&&this.manager.queueOp("start",r,d),this},run:function(r,d){return r&&r!==this.key&&this.manager.queueOp("run",r,d),this},pause:function(r,d){return r===void 0&&(r=this.key),this.manager.queueOp("pause",r,d),this},resume:function(r,d){return r===void 0&&(r=this.key),this.manager.queueOp("resume",r,d),this},sleep:function(r,d){return r===void 0&&(r=this.key),this.manager.queueOp("sleep",r,d),this},wake:function(r,d){return r===void 0&&(r=this.key),this.manager.queueOp("wake",r,d),this},switch:function(r){return r!==this.key&&this.manager.queueOp("switch",this.key,r),this},stop:function(r,d){return r===void 0&&(r=this.key),this.manager.queueOp("stop",r,d),this},setActive:function(r,d,s){d===void 0&&(d=this.key);var h=this.manager.getScene(d);return h&&h.sys.setActive(r,s),this},setVisible:function(r,d){d===void 0&&(d=this.key);var s=this.manager.getScene(d);return s&&s.sys.setVisible(r),this},isSleeping:function(r){return r===void 0&&(r=this.key),this.manager.isSleeping(r)},isActive:function(r){return r===void 0&&(r=this.key),this.manager.isActive(r)},isPaused:function(r){return r===void 0&&(r=this.key),this.manager.isPaused(r)},isVisible:function(r){return r===void 0&&(r=this.key),this.manager.isVisible(r)},swapPosition:function(r,d){return d===void 0&&(d=this.key),r!==d&&this.manager.swapPosition(r,d),this},moveAbove:function(r,d){return d===void 0&&(d=this.key),r!==d&&this.manager.moveAbove(r,d),this},moveBelow:function(r,d){return d===void 0&&(d=this.key),r!==d&&this.manager.moveBelow(r,d),this},remove:function(r){return r===void 0&&(r=this.key),this.manager.remove(r),this},moveUp:function(r){return r===void 0&&(r=this.key),this.manager.moveUp(r),this},moveDown:function(r){return r===void 0&&(r=this.key),this.manager.moveDown(r),this},bringToTop:function(r){return r===void 0&&(r=this.key),this.manager.bringToTop(r),this},sendToBack:function(r){return r===void 0&&(r=this.key),this.manager.sendToBack(r),this},get:function(r){return this.manager.getScene(r)},getStatus:function(r){var d=this.manager.getScene(r);if(d)return d.sys.getStatus()},getIndex:function(r){return r===void 0&&(r=this.key),this.manager.getIndex(r)},shutdown:function(){var r=this.systems.events;r.off(u.SHUTDOWN,this.shutdown,this),r.off(u.TRANSITION_OUT)},destroy:function(){this.shutdown(),this.scene.sys.events.off(u.START,this.start,this),this.scene=null,this.systems=null,this.settings=null,this.manager=null}});a.register("ScenePlugin",n,"scenePlugin"),f.exports=n},36765:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(92980),g=t(10850),u=t(30657),o=t(90415),a={create:function(n){return typeof n=="string"?n={key:n}:n===void 0&&(n={}),{status:l.PENDING,key:g(n,"key",""),active:g(n,"active",!1),visible:g(n,"visible",!0),isBooted:!1,isTransition:!1,transitionFrom:null,transitionDuration:0,transitionAllowInput:!0,data:{},pack:g(n,"pack",!1),cameras:g(n,"cameras",null),map:g(n,"map",u(o,g(n,"mapAdd",{}))),physics:g(n,"physics",{}),loader:g(n,"loader",{}),plugins:g(n,"plugins",!1),input:g(n,"input",{})}}};f.exports=a},63946:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(92980),u=t(18360),o=t(7599),a=t(47736),n=t(91088),r=t(72283),d=t(36765),s=new l({initialize:function(c,p){this.scene=c,this.game,this.renderer,this.config=p,this.settings=d.create(p),this.canvas,this.context,this.anims,this.cache,this.plugins,this.registry,this.scale,this.sound,this.textures,this.add,this.cameras,this.displayList,this.events,this.make,this.scenePlugin,this.updateList,this.sceneUpdate=r},init:function(h){this.settings.status=g.INIT,this.sceneUpdate=r,this.game=h,this.renderer=h.renderer,this.canvas=h.canvas,this.context=h.context;var c=h.plugins;this.plugins=c,c.addToScene(this,u.Global,[u.CoreScene,n(this),a(this)]),this.events.emit(o.BOOT,this),this.settings.isBooted=!0},step:function(h,c){var p=this.events;p.emit(o.PRE_UPDATE,h,c),p.emit(o.UPDATE,h,c),this.sceneUpdate.call(this.scene,h,c),p.emit(o.POST_UPDATE,h,c)},render:function(h){var c=this.displayList;c.depthSort(),this.events.emit(o.PRE_RENDER,h),this.cameras.render(h,c),this.events.emit(o.RENDER,h)},queueDepthSort:function(){this.displayList.queueDepthSort()},depthSort:function(){this.displayList.depthSort()},pause:function(h){var c=this.settings,p=this.getStatus();return p!==g.CREATING&&p!==g.RUNNING?console.warn("Cannot pause non-running Scene",c.key):this.settings.active&&(c.status=g.PAUSED,c.active=!1,this.events.emit(o.PAUSE,this,h)),this},resume:function(h){var c=this.events,p=this.settings;return this.settings.active||(p.status=g.RUNNING,p.active=!0,c.emit(o.RESUME,this,h)),this},sleep:function(h){var c=this.settings,p=this.getStatus();return p!==g.CREATING&&p!==g.RUNNING?console.warn("Cannot sleep non-running Scene",c.key):(c.status=g.SLEEPING,c.active=!1,c.visible=!1,this.events.emit(o.SLEEP,this,h)),this},wake:function(h){var c=this.events,p=this.settings;return p.status=g.RUNNING,p.active=!0,p.visible=!0,c.emit(o.WAKE,this,h),p.isTransition&&c.emit(o.TRANSITION_WAKE,p.transitionFrom,p.transitionDuration),this},getData:function(){return this.settings.data},getStatus:function(){return this.settings.status},canInput:function(){var h=this.settings.status;return h>g.PENDING&&h<=g.RUNNING},isSleeping:function(){return this.settings.status===g.SLEEPING},isActive:function(){return this.settings.status===g.RUNNING},isPaused:function(){return this.settings.status===g.PAUSED},isTransitioning:function(){return this.settings.isTransition||this.scenePlugin._target!==null},isTransitionOut:function(){return this.scenePlugin._target!==null&&this.scenePlugin._duration>0},isTransitionIn:function(){return this.settings.isTransition},isVisible:function(){return this.settings.visible},setVisible:function(h){return this.settings.visible=h,this},setActive:function(h,c){return h?this.resume(c):this.pause(c)},start:function(h){var c=this.events,p=this.settings;h&&(p.data=h),p.status=g.START,p.active=!0,p.visible=!0,c.emit(o.START,this),c.emit(o.READY,this,h)},shutdown:function(h){var c=this.events,p=this.settings;c.off(o.TRANSITION_INIT),c.off(o.TRANSITION_START),c.off(o.TRANSITION_COMPLETE),c.off(o.TRANSITION_OUT),p.status=g.SHUTDOWN,p.active=!1,p.visible=!1,c.emit(o.SHUTDOWN,this,h)},destroy:function(){var h=this.events,c=this.settings;c.status=g.DESTROYED,c.active=!1,c.visible=!1,h.emit(o.DESTROY,this),h.removeAllListeners();for(var p=["scene","game","anims","cache","plugins","registry","sound","textures","add","camera","displayList","events","make","scenePlugin","updateList"],m=0;m{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={PENDING:0,INIT:1,START:2,LOADING:3,CREATING:4,RUNNING:5,PAUSED:6,SLEEPING:7,SHUTDOWN:8,DESTROYED:9};f.exports=T},31803:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="addedtoscene"},94817:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="boot"},28977:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="create"},91959:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="destroy"},363:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pause"},15643:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="postupdate"},17058:f=>{/** + * @author samme + * @copyright 2021 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="prerender"},77125:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="preupdate"},76018:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="ready"},28620:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="removedfromscene"},41538:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="render"},34268:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="resume"},2342:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="shutdown"},96541:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="sleep"},74244:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="start"},17046:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="transitioncomplete"},13637:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="transitioninit"},14733:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="transitionout"},33899:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="transitionstart"},52418:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="transitionwake"},31735:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="update"},8470:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="wake"},7599:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={ADDED_TO_SCENE:t(31803),BOOT:t(94817),CREATE:t(28977),DESTROY:t(91959),PAUSE:t(363),POST_UPDATE:t(15643),PRE_RENDER:t(17058),PRE_UPDATE:t(77125),READY:t(76018),REMOVED_FROM_SCENE:t(28620),RENDER:t(41538),RESUME:t(34268),SHUTDOWN:t(2342),SLEEP:t(96541),START:t(74244),TRANSITION_COMPLETE:t(17046),TRANSITION_INIT:t(13637),TRANSITION_OUT:t(14733),TRANSITION_START:t(33899),TRANSITION_WAKE:t(52418),UPDATE:t(31735),WAKE:t(8470)}},20436:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(92980),g=t(98611),u={Events:t(7599),GetPhysicsPlugins:t(47736),GetScenePlugins:t(91088),SceneManager:t(13553),ScenePlugin:t(64051),Settings:t(36765),Systems:t(63946)};u=g(!1,u,l),f.exports=u},25798:(f,T,t)=>{/** + * @author Richard Davey + * @author Pavle Goloskokovic (http://prunegames.com) + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(6659),u=t(76038),o=t(98611),a=t(72283),n=new l({Extends:g,initialize:function(d,s,h){g.call(this),this.manager=d,this.key=s,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=this.duration||0,this.totalDuration=this.totalDuration||0,this.config={mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0},this.currentConfig=this.config,this.config=o(this.config,h),this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(r){return!r||!r.name||typeof r.name!="string"?!1:this.markers[r.name]?(console.error("addMarker "+r.name+" already exists in Sound"),!1):(r=o(!0,{name:"",start:0,duration:this.totalDuration-(r.start||0),config:{mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0}},r),this.markers[r.name]=r,!0)},updateMarker:function(r){return!r||!r.name||typeof r.name!="string"?!1:this.markers[r.name]?(this.markers[r.name]=o(!0,this.markers[r.name],r),!0):(console.warn("Audio Marker: "+r.name+" missing in Sound: "+this.key),!1)},removeMarker:function(r){var d=this.markers[r];return d?(this.markers[r]=null,d):null},play:function(r,d){if(r===void 0&&(r=""),typeof r=="object"&&(d=r,r=""),typeof r!="string")return!1;if(!r)this.currentMarker=null,this.currentConfig=this.config,this.duration=this.totalDuration;else{if(!this.markers[r])return console.warn("Marker: "+r+" missing in Sound: "+this.key),!1;this.currentMarker=this.markers[r],this.currentConfig=this.currentMarker.config,this.duration=this.currentMarker.duration}return this.resetConfig(),this.currentConfig=o(this.currentConfig,d),this.isPlaying=!0,this.isPaused=!1,!0},pause:function(){return this.isPaused||!this.isPlaying?!1:(this.isPlaying=!1,this.isPaused=!0,!0)},resume:function(){return!this.isPaused||this.isPlaying?!1:(this.isPlaying=!0,this.isPaused=!1,!0)},stop:function(){return!this.isPaused&&!this.isPlaying?!1:(this.isPlaying=!1,this.isPaused=!1,this.resetConfig(),!0)},applyConfig:function(){this.mute=this.currentConfig.mute,this.volume=this.currentConfig.volume,this.rate=this.currentConfig.rate,this.detune=this.currentConfig.detune,this.loop=this.currentConfig.loop,this.pan=this.currentConfig.pan},resetConfig:function(){this.currentConfig.seek=0,this.currentConfig.delay=0},update:a,calculateRate:function(){var r=1.0005777895065548,d=this.currentConfig.detune+this.manager.detune,s=Math.pow(r,d);this.totalRate=this.currentConfig.rate*this.manager.rate*s},destroy:function(){this.pendingRemove||(this.emit(u.DESTROY,this),this.removeAllListeners(),this.pendingRemove=!0,this.manager=null,this.config=null,this.currentConfig=null,this.markers=null,this.currentMarker=null)}});f.exports=n},12486:(f,T,t)=>{/** + * @author Richard Davey + * @author Pavle Goloskokovic (http://prunegames.com) + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(32742),u=t(6659),o=t(76038),a=t(97081),n=t(71608),r=t(51463),d=t(72283),s=t(93736),h=new l({Extends:u,initialize:function(p){u.call(this),this.game=p,this.jsonCache=p.cache.json,this.sounds=[],this.mute=!1,this.volume=1,this.pauseOnBlur=!0,this._rate=1,this._detune=0,this.locked=this.locked||!1,this.unlocked=!1,this.gameLostFocus=!1,this.listenerPosition=new s,p.events.on(a.BLUR,this.onGameBlur,this),p.events.on(a.FOCUS,this.onGameFocus,this),p.events.on(a.PRE_STEP,this.update,this),p.events.once(a.DESTROY,this.destroy,this)},add:d,addAudioSprite:function(c,p){p===void 0&&(p={});var m=this.add(c,p);m.spritemap=this.jsonCache.get(c).spritemap;for(var x in m.spritemap)if(m.spritemap.hasOwnProperty(x)){var S=g(p),P=m.spritemap[x];S.loop=P.hasOwnProperty("loop")?P.loop:!1,m.addMarker({name:x,start:P.start,duration:P.end-P.start,config:S})}return m},get:function(c){return r(this.sounds,"key",c)},getAll:function(c){return c?n(this.sounds,"key",c):n(this.sounds)},getAllPlaying:function(){return n(this.sounds,"isPlaying",!0)},play:function(c,p){var m=this.add(c);return m.once(o.COMPLETE,m.destroy,m),p?p.name?(m.addMarker(p),m.play(p.name)):m.play(p):m.play()},playAudioSprite:function(c,p,m){var x=this.addAudioSprite(c);return x.once(o.COMPLETE,x.destroy,x),x.play(p,m)},remove:function(c){var p=this.sounds.indexOf(c);return p!==-1?(c.destroy(),this.sounds.splice(p,1),!0):!1},removeAll:function(){this.sounds.forEach(function(c){c.destroy()}),this.sounds.length=0},removeByKey:function(c){for(var p=0,m=this.sounds.length-1;m>=0;m--){var x=this.sounds[m];x.key===c&&(x.destroy(),this.sounds.splice(m,1),p++)}return p},pauseAll:function(){this.forEachActiveSound(function(c){c.pause()}),this.emit(o.PAUSE_ALL,this)},resumeAll:function(){this.forEachActiveSound(function(c){c.resume()}),this.emit(o.RESUME_ALL,this)},setListenerPosition:d,stopAll:function(){this.forEachActiveSound(function(c){c.stop()}),this.emit(o.STOP_ALL,this)},stopByKey:function(c){var p=0;return this.getAll(c).forEach(function(m){m.stop()&&p++}),p},unlock:d,onBlur:d,onFocus:d,onGameBlur:function(){this.gameLostFocus=!0,this.pauseOnBlur&&this.onBlur()},onGameFocus:function(){this.gameLostFocus=!1,this.pauseOnBlur&&this.onFocus()},update:function(c,p){this.unlocked&&(this.unlocked=!1,this.locked=!1,this.emit(o.UNLOCKED,this));for(var m=this.sounds.length-1;m>=0;m--)this.sounds[m].pendingRemove&&this.sounds.splice(m,1);this.sounds.forEach(function(x){x.update(c,p)})},destroy:function(){this.game.events.off(a.BLUR,this.onGameBlur,this),this.game.events.off(a.FOCUS,this.onGameFocus,this),this.game.events.off(a.PRE_STEP,this.update,this),this.removeAllListeners(),this.removeAll(),this.sounds.length=0,this.sounds=null,this.listenerPosition=null,this.game=null},forEachActiveSound:function(c,p){var m=this;this.sounds.forEach(function(x,S){x&&!x.pendingRemove&&c.call(p||m,x,S,m.sounds)})},setRate:function(c){return this.rate=c,this},rate:{get:function(){return this._rate},set:function(c){this._rate=c,this.forEachActiveSound(function(p){p.calculateRate()}),this.emit(o.GLOBAL_RATE,this,c)}},setDetune:function(c){return this.detune=c,this},detune:{get:function(){return this._detune},set:function(c){this._detune=c,this.forEachActiveSound(function(p){p.calculateRate()}),this.emit(o.GLOBAL_DETUNE,this,c)}}});f.exports=h},84191:(f,T,t)=>{/** + * @author Richard Davey + * @author Pavle Goloskokovic (http://prunegames.com) + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(27622),g=t(17546),u=t(55491),o={create:function(a){var n=a.config.audio,r=a.device.audio;return n.noAudio||!r.webAudio&&!r.audioData?new g(a):r.webAudio&&!n.disableWebAudio?new u(a):new l(a)}};f.exports=o},77578:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="complete"},19679:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="decodedall"},56951:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="decoded"},16436:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="destroy"},55154:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="detune"},57818:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="detune"},57890:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="mute"},83022:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="rate"},99170:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="volume"},64289:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="looped"},67214:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="loop"},53128:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="mute"},73078:f=>{/** + * @author pi-kei + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pan"},76763:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pauseall"},88426:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pause"},13765:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="play"},80291:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="rate"},11124:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="resumeall"},55382:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="resume"},71157:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="seek"},31776:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="stopall"},39450:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="stop"},21939:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="unlocked"},33019:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="volume"},76038:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={COMPLETE:t(77578),DECODED:t(56951),DECODED_ALL:t(19679),DESTROY:t(16436),DETUNE:t(55154),GLOBAL_DETUNE:t(57818),GLOBAL_MUTE:t(57890),GLOBAL_RATE:t(83022),GLOBAL_VOLUME:t(99170),LOOP:t(67214),LOOPED:t(64289),MUTE:t(53128),PAN:t(73078),PAUSE_ALL:t(76763),PAUSE:t(88426),PLAY:t(13765),RATE:t(80291),RESUME_ALL:t(11124),RESUME:t(55382),SEEK:t(71157),STOP_ALL:t(31776),STOP:t(39450),UNLOCKED:t(21939),VOLUME:t(33019)}},34350:(f,T,t)=>{/** + * @author Richard Davey + * @author Pavle Goloskokovic (http://prunegames.com) + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(25798),g=t(56694),u=t(76038),o=t(82897),a=new g({Extends:l,initialize:function(r,d,s){if(s===void 0&&(s={}),this.tags=r.game.cache.audio.get(d),!this.tags)throw new Error('No cached audio asset with key "'+d);this.audio=null,this.startTime=0,this.previousTime=0,this.duration=this.tags[0].duration,this.totalDuration=this.tags[0].duration,l.call(this,r,d,s)},play:function(n,r){return this.manager.isLocked(this,"play",[n,r])||!l.prototype.play.call(this,n,r)||!this.pickAndPlayAudioTag()?!1:(this.emit(u.PLAY,this),!0)},pause:function(){return this.manager.isLocked(this,"pause")||this.startTime>0||!l.prototype.pause.call(this)?!1:(this.currentConfig.seek=this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0),this.stopAndReleaseAudioTag(),this.emit(u.PAUSE,this),!0)},resume:function(){return this.manager.isLocked(this,"resume")||this.startTime>0||!l.prototype.resume.call(this)||!this.pickAndPlayAudioTag()?!1:(this.emit(u.RESUME,this),!0)},stop:function(){return this.manager.isLocked(this,"stop")||!l.prototype.stop.call(this)?!1:(this.stopAndReleaseAudioTag(),this.emit(u.STOP,this),!0)},pickAndPlayAudioTag:function(){if(!this.pickAudioTag())return this.reset(),!1;var n=this.currentConfig.seek,r=this.currentConfig.delay,d=(this.currentMarker?this.currentMarker.start:0)+n;return this.previousTime=d,this.audio.currentTime=d,this.applyConfig(),r===0?(this.startTime=0,this.audio.paused&&this.playCatchPromise()):(this.startTime=window.performance.now()+r*1e3,this.audio.paused||this.audio.pause()),this.resetConfig(),!0},pickAudioTag:function(){if(this.audio)return!0;for(var n=0;n0){this.startTime=d-this.manager.loopEndOffset?(this.audio.currentTime=r+Math.max(0,s-d),s=this.audio.currentTime):s=d){this.reset(),this.stopAndReleaseAudioTag(),this.emit(u.COMPLETE,this);return}this.previousTime=s}},destroy:function(){l.prototype.destroy.call(this),this.tags=null,this.audio&&this.stopAndReleaseAudioTag()},updateMute:function(){this.audio&&(this.audio.muted=this.currentConfig.mute||this.manager.mute)},updateVolume:function(){this.audio&&(this.audio.volume=o(this.currentConfig.volume*this.manager.volume,0,1))},calculateRate:function(){l.prototype.calculateRate.call(this),this.audio&&(this.audio.playbackRate=this.totalRate)},mute:{get:function(){return this.currentConfig.mute},set:function(n){this.currentConfig.mute=n,!this.manager.isLocked(this,"mute",n)&&(this.updateMute(),this.emit(u.MUTE,this,n))}},setMute:function(n){return this.mute=n,this},volume:{get:function(){return this.currentConfig.volume},set:function(n){this.currentConfig.volume=n,!this.manager.isLocked(this,"volume",n)&&(this.updateVolume(),this.emit(u.VOLUME,this,n))}},setVolume:function(n){return this.volume=n,this},rate:{get:function(){return this.currentConfig.rate},set:function(n){this.currentConfig.rate=n,!this.manager.isLocked(this,u.RATE,n)&&(this.calculateRate(),this.emit(u.RATE,this,n))}},setRate:function(n){return this.rate=n,this},detune:{get:function(){return this.currentConfig.detune},set:function(n){this.currentConfig.detune=n,!this.manager.isLocked(this,u.DETUNE,n)&&(this.calculateRate(),this.emit(u.DETUNE,this,n))}},setDetune:function(n){return this.detune=n,this},seek:{get:function(){return this.isPlaying?this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0):this.isPaused?this.currentConfig.seek:0},set:function(n){this.manager.isLocked(this,"seek",n)||this.startTime>0||(this.isPlaying||this.isPaused)&&(n=Math.min(Math.max(0,n),this.duration),this.isPlaying?(this.previousTime=n,this.audio.currentTime=n):this.isPaused&&(this.currentConfig.seek=n),this.emit(u.SEEK,this,n))}},setSeek:function(n){return this.seek=n,this},loop:{get:function(){return this.currentConfig.loop},set:function(n){this.currentConfig.loop=n,!this.manager.isLocked(this,"loop",n)&&(this.audio&&(this.audio.loop=n),this.emit(u.LOOP,this,n))}},setLoop:function(n){return this.loop=n,this},pan:{get:function(){return this.currentConfig.pan},set:function(n){this.currentConfig.pan=n,this.emit(u.PAN,this,n)}},setPan:function(n){return this.pan=n,this}});f.exports=a},27622:(f,T,t)=>{/** + * @author Richard Davey + * @author Pavle Goloskokovic (http://prunegames.com) + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(12486),g=t(56694),u=t(76038),o=t(34350),a=new g({Extends:l,initialize:function(r){this.override=!0,this.audioPlayDelay=.1,this.loopEndOffset=.05,this.onBlurPausedSounds=[],this.locked="ontouchstart"in window,this.lockedActionsQueue=this.locked?[]:null,this._mute=!1,this._volume=1,l.call(this,r)},add:function(n,r){var d=new o(this,n,r);return this.sounds.push(d),d},unlock:function(){this.locked=!1;var n=this;if(this.game.cache.audio.entries.each(function(h,c){for(var p=0;p{/** + * @author Richard Davey + * @author Pavle Goloskokovic (http://prunegames.com) + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={SoundManagerCreator:t(84191),Events:t(76038),BaseSound:t(25798),BaseSoundManager:t(12486),WebAudioSound:t(96008),WebAudioSoundManager:t(55491),HTML5AudioSound:t(34350),HTML5AudioSoundManager:t(27622),NoAudioSound:t(38662),NoAudioSoundManager:t(17546)}},38662:(f,T,t)=>{/** + * @author Richard Davey + * @author Pavle Goloskokovic (http://prunegames.com) + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(25798),g=t(56694),u=t(6659),o=t(98611),a=t(72283),n=function(){return!1},r=function(){return null},d=function(){return this},s=new g({Extends:u,initialize:function(c,p,m){m===void 0&&(m={}),u.call(this),this.manager=c,this.key=p,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=0,this.totalDuration=0,this.config=o({mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0},m),this.currentConfig=this.config,this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.seek=0,this.loop=!1,this.pan=0,this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:n,updateMarker:n,removeMarker:r,play:n,pause:n,resume:n,stop:n,setMute:d,setVolume:d,setRate:d,setDetune:d,setSeek:d,setLoop:d,setPan:d,applyConfig:r,resetConfig:r,update:a,calculateRate:r,destroy:function(){l.prototype.destroy.call(this)}});f.exports=s},17546:(f,T,t)=>{/** + * @author Richard Davey + * @author Pavle Goloskokovic (http://prunegames.com) + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(12486),g=t(56694),u=t(6659),o=t(38662),a=t(72283),n=new g({Extends:u,initialize:function(d){u.call(this),this.game=d,this.sounds=[],this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.pauseOnBlur=!0,this.locked=!1},add:function(r,d){var s=new o(this,r,d);return this.sounds.push(s),s},addAudioSprite:function(r,d){var s=this.add(r,d);return s.spritemap={},s},get:function(r){return l.prototype.get.call(this,r)},getAll:function(r){return l.prototype.getAll.call(this,r)},play:function(r,d){return!1},playAudioSprite:function(r,d,s){return!1},remove:function(r){return l.prototype.remove.call(this,r)},removeAll:function(){return l.prototype.removeAll.call(this)},removeByKey:function(r){return l.prototype.removeByKey.call(this,r)},stopByKey:function(r){return l.prototype.stopByKey.call(this,r)},onBlur:a,onFocus:a,onGameBlur:a,onGameFocus:a,pauseAll:a,resumeAll:a,stopAll:a,update:a,setRate:a,setDetune:a,setMute:a,setVolume:a,unlock:a,forEachActiveSound:function(r,d){l.prototype.forEachActiveSound.call(this,r,d)},destroy:function(){l.prototype.destroy.call(this)}});f.exports=n},96008:(f,T,t)=>{/** + * @author Richard Davey + * @author Pavle Goloskokovic (http://prunegames.com) + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(25798),g=t(56694),u=t(76038),o=t(72632),a=new g({Extends:l,initialize:function(r,d,s){if(s===void 0&&(s={}),this.audioBuffer=r.game.cache.audio.get(d),!this.audioBuffer)throw new Error('Audio key "'+d+'" missing from cache');this.source=null,this.loopSource=null,this.muteNode=r.context.createGain(),this.volumeNode=r.context.createGain(),this.pannerNode=null,this.spatialNode=null,this.spatialSource=null,this.playTime=0,this.startTime=0,this.loopTime=0,this.rateUpdates=[],this.hasEnded=!1,this.hasLooped=!1,this.muteNode.connect(this.volumeNode),r.context.createPanner&&(this.spatialNode=r.context.createPanner(),this.volumeNode.connect(this.spatialNode)),r.context.createStereoPanner?(this.pannerNode=r.context.createStereoPanner(),r.context.createPanner?this.spatialNode.connect(this.pannerNode):this.volumeNode.connect(this.pannerNode),this.pannerNode.connect(r.destination)):r.context.createPanner?this.spatialNode.connect(r.destination):this.volumeNode.connect(r.destination),this.duration=this.audioBuffer.duration,this.totalDuration=this.audioBuffer.duration,l.call(this,r,d,s)},play:function(n,r){return l.prototype.play.call(this,n,r)?(this.stopAndRemoveBufferSource(),this.createAndStartBufferSource(),this.emit(u.PLAY,this),!0):!1},pause:function(){return this.manager.context.currentTime{/** + * @author Richard Davey + * @author Pavle Goloskokovic (http://prunegames.com) + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(82329),g=t(12486),u=t(56694),o=t(76038),a=t(97081),n=t(96008),r=t(72632),d=new u({Extends:g,initialize:function(h){this.context=this.createAudioContext(h),this.masterMuteNode=this.context.createGain(),this.masterVolumeNode=this.context.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(this.context.destination),this.destination=this.masterMuteNode,this.locked=this.context.state==="suspended"&&("ontouchstart"in window||"onclick"in window),g.call(this,h),this.locked&&h.isBooted?this.unlock():h.events.once(a.BOOT,this.unlock,this)},createAudioContext:function(s){var h=s.config.audio;if(h.context)return h.context.resume(),h.context;if(window.hasOwnProperty("AudioContext"))return new AudioContext;if(window.hasOwnProperty("webkitAudioContext"))return new window.webkitAudioContext},setAudioContext:function(s){return this.context&&this.context.close(),this.masterMuteNode&&this.masterMuteNode.disconnect(),this.masterVolumeNode&&this.masterVolumeNode.disconnect(),this.context=s,this.masterMuteNode=s.createGain(),this.masterVolumeNode=s.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(s.destination),this.destination=this.masterMuteNode,this},add:function(s,h){var c=new n(this,s,h);return this.sounds.push(c),c},decodeAudio:function(s,h){var c;Array.isArray(s)?c=s:c=[{key:s,data:h}];for(var p=this.game.cache.audio,m=c.length,x=0;x{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(59959),g=t(56694),u=t(72283),o=t(17922),a=new g({initialize:function(r){this.parent=r,this.list=[],this.position=0,this.addCallback=u,this.removeCallback=u,this._sortKey=""},add:function(n,r){return r?l.Add(this.list,n):l.Add(this.list,n,0,this.addCallback,this)},addAt:function(n,r,d){return d?l.AddAt(this.list,n,r):l.AddAt(this.list,n,r,0,this.addCallback,this)},getAt:function(n){return this.list[n]},getIndex:function(n){return this.list.indexOf(n)},sort:function(n,r){return n?(r===void 0&&(r=function(d,s){return d[n]-s[n]}),o(this.list,r),this):this},getByName:function(n){return l.GetFirst(this.list,"name",n)},getRandom:function(n,r){return l.GetRandom(this.list,n,r)},getFirst:function(n,r,d,s){return l.GetFirst(this.list,n,r,d,s)},getAll:function(n,r,d,s){return l.GetAll(this.list,n,r,d,s)},count:function(n,r){return l.CountAllMatching(this.list,n,r)},swap:function(n,r){l.Swap(this.list,n,r)},moveTo:function(n,r){return l.MoveTo(this.list,n,r)},moveAbove:function(n,r){return l.MoveAbove(this.list,n,r)},moveBelow:function(n,r){return l.MoveBelow(this.list,n,r)},remove:function(n,r){return r?l.Remove(this.list,n):l.Remove(this.list,n,this.removeCallback,this)},removeAt:function(n,r){return r?l.RemoveAt(this.list,n):l.RemoveAt(this.list,n,this.removeCallback,this)},removeBetween:function(n,r,d){return d?l.RemoveBetween(this.list,n,r):l.RemoveBetween(this.list,n,r,this.removeCallback,this)},removeAll:function(n){for(var r=this.list.length;r--;)this.remove(this.list[r],n);return this},bringToTop:function(n){return l.BringToTop(this.list,n)},sendToBack:function(n){return l.SendToBack(this.list,n)},moveUp:function(n){return l.MoveUp(this.list,n),n},moveDown:function(n){return l.MoveDown(this.list,n),n},reverse:function(){return this.list.reverse(),this},shuffle:function(){return l.Shuffle(this.list),this},replace:function(n,r){return l.Replace(this.list,n,r)},exists:function(n){return this.list.indexOf(n)>-1},setAll:function(n,r,d,s){return l.SetAll(this.list,n,r,d,s),this},each:function(n,r){for(var d=[null],s=2;s0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}}});f.exports=a},33885:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=new l({initialize:function(o){if(this.entries={},this.size=0,Array.isArray(o))for(var a=0;a{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(6659),u=t(36716),o=new l({Extends:g,initialize:function(){g.call(this),this._pending=[],this._active=[],this._destroy=[],this._toProcess=0,this.checkQueue=!1},isActive:function(a){return this._active.indexOf(a)>-1},isPending:function(a){return this._toProcess>0&&this._pending.indexOf(a)>-1},isDestroying:function(a){return this._destroy.indexOf(a)>-1},add:function(a){return this.checkQueue&&this.isActive()&&!this.isDestroying()||this.isPending()||(this._pending.push(a),this._toProcess++),a},remove:function(a){if(this.isPending(a)){var n=this._pending,r=n.indexOf(a);r!==-1&&n.splice(r,1)}else this.isActive(a)&&(this._destroy.push(a),this._toProcess++);return a},removeAll:function(){for(var a=this._active,n=this._destroy,r=a.length;r--;)n.push(a[r]),this._toProcess++;return this},update:function(){if(this._toProcess===0)return this._active;var a=this._destroy,n=this._active,r,d;for(r=0;r{/** + * @author Vladimir Agafonkin + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(53466);function g(E){if(!(this instanceof g))return new g(E);this._maxEntries=Math.max(4,E||9),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}g.prototype={all:function(){return this._all(this.data,[])},search:function(E){var R=this.data,M=[],O=this.toBBox;if(!x(E,R))return M;for(var w=[],L,F,b,D;R;){for(L=0,F=R.children.length;L=0&&L[R].children.length>this._maxEntries;)this._split(L,R),R--;this._adjustParentBBoxes(w,L,R)},_split:function(E,R){var M=E[R],O=M.children.length,w=this._minEntries;this._chooseSplitAxis(M,w,O);var L=this._chooseSplitIndex(M,w,O),F=S(M.children.splice(L,M.children.length-L));F.height=M.height,F.leaf=M.leaf,o(M,this.toBBox),o(F,this.toBBox),R?E[R-1].children.push(F):this._splitRoot(M,F)},_splitRoot:function(E,R){this.data=S([E,R]),this.data.height=E.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},_chooseSplitIndex:function(E,R,M){var O,w,L,F,b,D,N,z;for(D=N=1/0,O=R;O<=M-R;O++)w=a(E,0,O,this.toBBox),L=a(E,O,M,this.toBBox),F=p(w,L),b=s(w)+s(L),F=R;D--)N=E.children[D],n(F,E.leaf?w(N):N),b+=h(F);return b},_adjustParentBBoxes:function(E,R,M){for(var O=M;O>=0;O--)n(R[O],E)},_condense:function(E){for(var R=E.length-1,M;R>=0;R--)E[R].children.length===0?R>0?(M=E[R-1].children,M.splice(M.indexOf(E[R]),1)):this.clear():o(E[R],this.toBBox)},compareMinX:function(E,R){return E.left-R.left},compareMinY:function(E,R){return E.top-R.top},toBBox:function(E){return{minX:E.left,minY:E.top,maxX:E.right,maxY:E.bottom}}};function u(E,R,M){if(!M)return R.indexOf(E);for(var O=0;O=E.minX&&R.maxY>=E.minY}function S(E){return{children:E,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function P(E,R,M,O,w){for(var L=[R,M],F;L.length;)M=L.pop(),R=L.pop(),!(M-R<=O)&&(F=R+Math.ceil((M-R)/O/2)*O,l(E,F,R,M,w),L.push(R,F,F,M))}f.exports=g},58403:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=new l({initialize:function(o){if(this.entries=[],Array.isArray(o))for(var a=0;a-1&&this.entries.splice(o,1),this},dump:function(){console.group("Set");for(var u=0;u-1},union:function(u){var o=new g;return u.entries.forEach(function(a){o.set(a)}),this.entries.forEach(function(a){o.set(a)}),o},intersect:function(u){var o=new g;return this.entries.forEach(function(a){u.contains(a)&&o.set(a)}),o},difference:function(u){var o=new g;return this.entries.forEach(function(a){u.contains(a)||o.set(a)}),o},size:{get:function(){return this.entries.length},set:function(u){return u{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(82897),g=t(56694),u=t(84314),o=t(93736),a=new g({initialize:function(r,d,s,h){r===void 0&&(r=0),d===void 0&&(d=r),s===void 0&&(s=0),h===void 0&&(h=null),this._width=r,this._height=d,this._parent=h,this.aspectMode=s,this.aspectRatio=d===0?1:r/d,this.minWidth=0,this.minHeight=0,this.maxWidth=Number.MAX_VALUE,this.maxHeight=Number.MAX_VALUE,this.snapTo=new o},setAspectMode:function(n){return n===void 0&&(n=0),this.aspectMode=n,this.setSize(this._width,this._height)},setSnap:function(n,r){return n===void 0&&(n=0),r===void 0&&(r=n),this.snapTo.set(n,r),this.setSize(this._width,this._height)},setParent:function(n){return this._parent=n,this.setSize(this._width,this._height)},setMin:function(n,r){return n===void 0&&(n=0),r===void 0&&(r=n),this.minWidth=l(n,0,this.maxWidth),this.minHeight=l(r,0,this.maxHeight),this.setSize(this._width,this._height)},setMax:function(n,r){return n===void 0&&(n=Number.MAX_VALUE),r===void 0&&(r=n),this.maxWidth=l(n,this.minWidth,Number.MAX_VALUE),this.maxHeight=l(r,this.minHeight,Number.MAX_VALUE),this.setSize(this._width,this._height)},setSize:function(n,r){switch(n===void 0&&(n=0),r===void 0&&(r=n),this.aspectMode){case a.NONE:this._width=this.getNewWidth(u(n,this.snapTo.x)),this._height=this.getNewHeight(u(r,this.snapTo.y)),this.aspectRatio=this._height===0?1:this._width/this._height;break;case a.WIDTH_CONTROLS_HEIGHT:this._width=this.getNewWidth(u(n,this.snapTo.x)),this._height=this.getNewHeight(this._width*(1/this.aspectRatio),!1);break;case a.HEIGHT_CONTROLS_WIDTH:this._height=this.getNewHeight(u(r,this.snapTo.y)),this._width=this.getNewWidth(this._height*this.aspectRatio,!1);break;case a.FIT:this.constrain(n,r,!0);break;case a.ENVELOP:this.constrain(n,r,!1);break}return this},setAspectRatio:function(n){return this.aspectRatio=n,this.setSize(this._width,this._height)},resize:function(n,r){return this._width=this.getNewWidth(u(n,this.snapTo.x)),this._height=this.getNewHeight(u(r,this.snapTo.y)),this.aspectRatio=this._height===0?1:this._width/this._height,this},getNewWidth:function(n,r){return r===void 0&&(r=!0),n=l(n,this.minWidth,this.maxWidth),r&&this._parent&&n>this._parent.width&&(n=Math.max(this.minWidth,this._parent.width)),n},getNewHeight:function(n,r){return r===void 0&&(r=!0),n=l(n,this.minHeight,this.maxHeight),r&&this._parent&&n>this._parent.height&&(n=Math.max(this.minHeight,this._parent.height)),n},constrain:function(n,r,d){n===void 0&&(n=0),r===void 0&&(r=n),d===void 0&&(d=!0),n=this.getNewWidth(n),r=this.getNewHeight(r);var s=this.snapTo,h=r===0?1:n/r;return d&&this.aspectRatio>h||!d&&this.aspectRatio0&&(r=u(r,s.y),n=r*this.aspectRatio)):(d&&this.aspectRatioh)&&(r=u(r,s.y),n=r*this.aspectRatio,s.x>0&&(n=u(n,s.x),r=n*(1/this.aspectRatio))),this._width=n,this._height=r,this},fitTo:function(n,r){return this.constrain(n,r,!0)},envelop:function(n,r){return this.constrain(n,r,!1)},setWidth:function(n){return this.setSize(n,this._height)},setHeight:function(n){return this.setSize(this._width,n)},toString:function(){return"[{ Size (width="+this._width+" height="+this._height+" aspectRatio="+this.aspectRatio+" aspectMode="+this.aspectMode+") }]"},setCSS:function(n){n&&n.style&&(n.style.width=this._width+"px",n.style.height=this._height+"px")},copy:function(n){return n.setAspectMode(this.aspectMode),n.aspectRatio=this.aspectRatio,n.setSize(this.width,this.height)},destroy:function(){this._parent=null,this.snapTo=null},width:{get:function(){return this._width},set:function(n){this.setSize(n,this._height)}},height:{get:function(){return this._height},set:function(n){this.setSize(this._width,n)}}});a.NONE=0,a.WIDTH_CONTROLS_HEIGHT=1,a.HEIGHT_CONTROLS_WIDTH=2,a.FIT=3,a.ENVELOP=4,f.exports=a},94160:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="add"},95393:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="remove"},36716:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={PROCESS_QUEUE_ADD:t(94160),PROCESS_QUEUE_REMOVE:t(95393)}},20010:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Events:t(36716),List:t(71207),Map:t(33885),ProcessQueue:t(74623),RTree:t(68687),Set:t(58403),Size:t(90881)}},17487:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(82897),u=t(27119),o=t(86459),a=t(28621),n=t(31673),r=new l({Extends:n,initialize:function(s,h,c,p,m){n.call(this,s,h,c,p,m),this.add("__BASE",0,0,0,p,m),this._source=this.frames.__BASE.source,this.canvas=this._source.image,this.context=this.canvas.getContext("2d",{willReadFrequently:!0}),this.width=p,this.height=m,this.imageData=this.context.getImageData(0,0,p,m),this.data=null,this.imageData&&(this.data=this.imageData.data),this.pixels=null,this.buffer,this.data&&(this.imageData.data.buffer?(this.buffer=this.imageData.data.buffer,this.pixels=new Uint32Array(this.buffer)):window.ArrayBuffer?(this.buffer=new ArrayBuffer(this.imageData.data.length),this.pixels=new Uint32Array(this.buffer)):this.pixels=this.imageData.data)},update:function(){return this.imageData=this.context.getImageData(0,0,this.width,this.height),this.data=this.imageData.data,this.imageData.data.buffer?(this.buffer=this.imageData.data.buffer,this.pixels=new Uint32Array(this.buffer)):window.ArrayBuffer?(this.buffer=new ArrayBuffer(this.imageData.data.length),this.pixels=new Uint32Array(this.buffer)):this.pixels=this.imageData.data,this.manager.game.config.renderType===o.WEBGL&&this.refresh(),this},draw:function(d,s,h,c){return c===void 0&&(c=!0),this.context.drawImage(h,d,s),c&&this.update(),this},drawFrame:function(d,s,h,c,p){h===void 0&&(h=0),c===void 0&&(c=0),p===void 0&&(p=!0);var m=this.manager.getFrame(d,s);if(m){var x=m.canvasData,S=m.cutWidth,P=m.cutHeight,E=m.source.resolution;this.context.drawImage(m.source.image,x.x,x.y,S,P,h,c,S/E,P/E),p&&this.update()}return this},setPixel:function(d,s,h,c,p,m){m===void 0&&(m=255),d=Math.abs(Math.floor(d)),s=Math.abs(Math.floor(s));var x=this.getIndex(d,s);if(x>-1){var S=this.context.getImageData(d,s,1,1);S.data[0]=h,S.data[1]=c,S.data[2]=p,S.data[3]=m,this.context.putImageData(S,d,s)}return this},putData:function(d,s,h,c,p,m,x){return c===void 0&&(c=0),p===void 0&&(p=0),m===void 0&&(m=d.width),x===void 0&&(x=d.height),this.context.putImageData(d,s,h,c,p,m,x),this},getData:function(d,s,h,c){d=g(Math.floor(d),0,this.width-1),s=g(Math.floor(s),0,this.height-1),h=g(h,1,this.width-d),c=g(c,1,this.height-s);var p=this.context.getImageData(d,s,h,c);return p},getPixel:function(d,s,h){h||(h=new u);var c=this.getIndex(d,s);if(c>-1){var p=this.data,m=p[c+0],x=p[c+1],S=p[c+2],P=p[c+3];h.setTo(m,x,S,P)}return h},getPixels:function(d,s,h,c){d===void 0&&(d=0),s===void 0&&(s=0),h===void 0&&(h=this.width),c===void 0&&(c=h),d=Math.abs(Math.round(d)),s=Math.abs(Math.round(s));for(var p=g(d,0,this.width),m=g(d+h,0,this.width),x=g(s,0,this.height),S=g(s+c,0,this.height),P=new u,E=[],R=x;R{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(95723),g=t(51052),u=t(61068),o=t(56694),a=t(86459),n=t(82047),r=t(72632),d=t(65641),s=t(37410),h=t(31673),c=t(75512),p=new o({Extends:h,initialize:function(x,S,P,E){P===void 0&&(P=256),E===void 0&&(E=256),this.type="DynamicTexture";var R=x.game.renderer,M=R&&R.type===a.CANVAS,O=M?u.create2D(this,P,E):[this];h.call(this,x,S,O,P,E),this.add("__BASE",0,0,0,P,E),this.renderer=R,this.isDrawing=!1,this.canvas=M?O:null,this.context=M?O.getContext("2d",{willReadFrequently:!0}):null,this.dirty=!1,this.isSpriteTexture=!0,this._eraseMode=!1,this.camera=new g(0,0,P,E).setScene(x.game.scene.systemScene,!1),this.renderTarget=M?null:new s(R,P,E,1,0,!1,!0,!0,!1),this.pipeline=M?null:R.pipelines.get(d.SINGLE_PIPELINE),this.setSize(P,E)},setSize:function(m,x){x===void 0&&(x=m);var S=this.get(),P=S.source;if(m!==this.width||x!==this.height){this.canvas&&(this.canvas.width=m,this.canvas.height=x);var E=this.renderTarget;E&&(E.resize(m,x),S.glTexture=E.texture,P.isRenderTexture=!0,P.isGLTexture=!0,P.glTexture=E.texture,P.glTexture.flipY=!0),this.camera.setSize(m,x),P.width=m,P.height=x,S.setSize(m,x),this.width=m,this.height=x}else{var R=this.getSourceImage();S.cutX+m>R.width&&(m=R.width-S.cutX),S.cutY+x>R.height&&(x=R.height-S.cutY),S.setSize(m,x,S.cutX,S.cutY)}return this},setIsSpriteTexture:function(m){return this.isSpriteTexture=m,this},fill:function(m,x,S,P,E,R){var M=this.camera,O=this.renderer;x===void 0&&(x=1),S===void 0&&(S=0),P===void 0&&(P=0),E===void 0&&(E=this.width),R===void 0&&(R=this.height);var w=m>>16&255,L=m>>8&255,F=m&255,b=this.renderTarget;if(M.preRender(),b){b.bind(!0);var D=this.pipeline.manager.set(this.pipeline),N=O.width/b.width,z=O.height/b.height;D.drawFillRect(S*N,P*z,E*N,R*z,c.getTintFromFloats(F/255,L/255,w/255,1),x),b.unbind(!0)}else{var W=this.context;O.setContext(W),W.globalCompositeOperation="source-over",W.fillStyle="rgba("+w+","+L+","+F+","+x+")",W.fillRect(S,P,E,R),O.setContext()}return this.dirty=!0,this},clear:function(){if(this.dirty){var m=this.context,x=this.renderTarget;x?x.clear():m&&(m.save(),m.setTransform(1,0,0,1,0,0),m.clearRect(0,0,this.width,this.height),m.restore()),this.dirty=!1}return this},stamp:function(m,x,S,P,E){S===void 0&&(S=0),P===void 0&&(P=0);var R=r(E,"alpha",1),M=r(E,"tint",16777215),O=r(E,"angle",0),w=r(E,"rotation",0),L=r(E,"scale",1),F=r(E,"scaleX",L),b=r(E,"scaleY",L),D=r(E,"originX",.5),N=r(E,"originY",.5),z=r(E,"blendMode",0),W=r(E,"erase",!1),Y=r(E,"skipBatch",!1),j=this.manager.resetStamp(R,M);return j.setAngle(0),O!==0?j.setAngle(O):w!==0&&j.setRotation(w),j.setScale(F,b),j.setTexture(m,x),j.setOrigin(D,N),j.setBlendMode(z),W&&(this._eraseMode=!0),Y?this.batchGameObject(j,S,P):this.draw(j,S,P),W&&(this._eraseMode=!1),this},erase:function(m,x,S){return this._eraseMode=!0,this.draw(m,x,S),this._eraseMode=!1,this},draw:function(m,x,S,P,E){return this.beginDraw(),this.batchDraw(m,x,S,P,E),this.endDraw(),this},drawFrame:function(m,x,S,P,E,R){return this.beginDraw(),this.batchDrawFrame(m,x,S,P,E,R),this.endDraw(),this},repeat:function(m,x,S,P,E,R,M,O,w){if(S===void 0&&(S=0),P===void 0&&(P=0),E===void 0&&(E=this.width),R===void 0&&(R=this.height),M===void 0&&(M=1),O===void 0&&(O=16777215),w===void 0&&(w=!1),m instanceof n?x=m:x=this.manager.getFrame(m,x),!x)return this;var L=this.manager.resetStamp(M,O);L.setFrame(x),L.setOrigin(0);var F=x.width,b=x.height;E=Math.floor(E),R=Math.floor(R);var D=Math.ceil(E/F),N=Math.ceil(R/b),z=D*F-E,W=N*b-R;z>0&&(z=F-z),W>0&&(W=b-W),S<0&&(D+=Math.ceil(Math.abs(S)/F)),P<0&&(N+=Math.ceil(Math.abs(P)/b));var Y=S,j=P,G=!1,V=this.manager.stampCrop.setTo(0,0,F,b);w||this.beginDraw();for(var I=0;I0&&B===D-1&&(G=!0,V.width=z),W>0&&I===N-1&&(G=!0,V.height=W),G&&L.setCrop(V),this.batchGameObject(L,Y,j),L.isCropped=!1,V.setTo(0,0,F,b),Y+=F}Y=S,j+=b}return w||this.endDraw(),this},beginDraw:function(){if(!this.isDrawing){var m=this.camera,x=this.renderer,S=this.renderTarget;m.preRender(),S?x.beginCapture(S.width,S.height):x.setContext(this.context),this.isDrawing=!0}return this},batchDraw:function(m,x,S,P,E){return Array.isArray(m)||(m=[m]),this.batchList(m,x,S,P,E),this},batchDrawFrame:function(m,x,S,P,E,R){S===void 0&&(S=0),P===void 0&&(P=0),E===void 0&&(E=1),R===void 0&&(R=16777215);var M=this.manager.getFrame(m,x);return M&&(this.renderTarget?this.pipeline.batchTextureFrame(M,S,P,R,E,this.camera.matrix,null):this.batchTextureFrame(M,S,P,E,R)),this},endDraw:function(m){if(m===void 0&&(m=this._eraseMode),this.isDrawing){var x=this.renderer,S=this.renderTarget;if(S){var P=x.endCapture(),E=x.pipelines.setUtility();E.blitFrame(P,S,1,!1,!1,m,this.isSpriteTexture),x.resetScissor(),x.resetViewport()}else x.setContext();this.dirty=!0,this.isDrawing=!1}return this},batchList:function(m,x,S,P,E){var R=m.length;if(R!==0)for(var M=0;M0&&w.height>0&&O.drawImage(L,w.x,w.y,w.width,w.height,x,S,w.width,w.height),O.restore()}},snapshotArea:function(m,x,S,P,E,R,M){return this.renderTarget?this.renderer.snapshotFramebuffer(this.renderTarget.framebuffer,this.width,this.height,E,!1,m,x,S,P,R,M):this.renderer.snapshotCanvas(this.canvas,E,!1,m,x,S,P,R,M),this},snapshot:function(m,x,S){return this.snapshotArea(0,0,this.width,this.height,m,x,S)},snapshotPixel:function(m,x,S){return this.snapshotArea(m,x,1,1,S,"pixel")},getWebGLTexture:function(){if(this.renderTarget)return this.renderTarget.texture},renderWebGL:function(m,x,S,P){var E=this.manager.resetStamp();E.setTexture(this),E.setOrigin(0),E.renderWebGL(m,E,S,P)},renderCanvas:function(){},preDestroy:function(){u.remove(this.canvas),this.renderTarget&&this.renderTarget.destroy(),this.camera.destroy(),this.stamp.destroy(),this.canvas=null,this.context=null,this.renderer=null,this.scene=null}});f.exports=p},82047:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(82897),u=t(98611),o=new l({initialize:function(n,r,d,s,h,c,p){this.texture=n,this.name=r,this.source=n.source[d],this.sourceIndex=d,this.glTexture=this.source.glTexture,this.cutX,this.cutY,this.cutWidth,this.cutHeight,this.x=0,this.y=0,this.width,this.height,this.halfWidth,this.halfHeight,this.centerX,this.centerY,this.pivotX=0,this.pivotY=0,this.customPivot=!1,this.rotated=!1,this.autoRound=-1,this.customData={},this.u0=0,this.v0=0,this.u1=0,this.v1=0,this.data={cut:{x:0,y:0,w:0,h:0,r:0,b:0},trim:!1,sourceSize:{w:0,h:0},spriteSourceSize:{x:0,y:0,w:0,h:0,r:0,b:0},radius:0,drawImage:{x:0,y:0,width:0,height:0}},this.setSize(c,p,s,h)},setSize:function(a,n,r,d){r===void 0&&(r=0),d===void 0&&(d=0),this.cutX=r,this.cutY=d,this.cutWidth=a,this.cutHeight=n,this.width=a,this.height=n,this.halfWidth=Math.floor(a*.5),this.halfHeight=Math.floor(n*.5),this.centerX=Math.floor(a/2),this.centerY=Math.floor(n/2);var s=this.data,h=s.cut;h.x=r,h.y=d,h.w=a,h.h=n,h.r=r+a,h.b=d+n,s.sourceSize.w=a,s.sourceSize.h=n,s.spriteSourceSize.w=a,s.spriteSourceSize.h=n,s.radius=.5*Math.sqrt(a*a+n*n);var c=s.drawImage;return c.x=r,c.y=d,c.width=a,c.height=n,this.updateUVs()},setTrim:function(a,n,r,d,s,h){var c=this.data,p=c.spriteSourceSize;return c.trim=!0,c.sourceSize.w=a,c.sourceSize.h=n,p.x=r,p.y=d,p.w=s,p.h=h,p.r=r+s,p.b=d+h,this.x=r,this.y=d,this.width=s,this.height=h,this.halfWidth=s*.5,this.halfHeight=h*.5,this.centerX=Math.floor(s/2),this.centerY=Math.floor(h/2),this.updateUVs()},setCropUVs:function(a,n,r,d,s,h,c){var p=this.cutX,m=this.cutY,x=this.cutWidth,S=this.cutHeight,P=this.realWidth,E=this.realHeight;n=g(n,0,P),r=g(r,0,E),d=g(d,0,P-n),s=g(s,0,E-r);var R=p+n,M=m+r,O=d,w=s,L=this.data;if(L.trim){var F=L.spriteSourceSize;d=g(d,0,x-n),s=g(s,0,S-r);var b=n+d,D=r+s,N=!(F.rb||F.y>D);if(N){var z=Math.max(F.x,n),W=Math.max(F.y,r),Y=Math.min(F.r,b)-z,j=Math.min(F.b,D)-W;O=Y,w=j,h?R=p+(x-(z-F.x)-Y):R=p+(z-F.x),c?M=m+(S-(W-F.y)-j):M=m+(W-F.y),n=z,r=W,d=Y,s=j}else R=0,M=0,O=0,w=0}else h&&(R=p+(x-n-d)),c&&(M=m+(S-r-s));var G=this.source.width,V=this.source.height;return a.u0=Math.max(0,R/G),a.v0=Math.max(0,M/V),a.u1=Math.min(1,(R+O)/G),a.v1=Math.min(1,(M+w)/V),a.x=n,a.y=r,a.cx=R,a.cy=M,a.cw=O,a.ch=w,a.width=d,a.height=s,a.flipX=h,a.flipY=c,a},updateCropUVs:function(a,n,r){return this.setCropUVs(a,a.x,a.y,a.width,a.height,n,r)},setUVs:function(a,n,r,d,s,h){var c=this.data.drawImage;return c.width=a,c.height=n,this.u0=r,this.v0=d,this.u1=s,this.v1=h,this},updateUVs:function(){var a=this.cutX,n=this.cutY,r=this.cutWidth,d=this.cutHeight,s=this.data.drawImage;s.width=r,s.height=d;var h=this.source.width,c=this.source.height;return this.u0=a/h,this.v0=n/c,this.u1=(a+r)/h,this.v1=(n+d)/c,this},updateUVsInverted:function(){var a=this.source.width,n=this.source.height;return this.u0=(this.cutX+this.cutHeight)/a,this.v0=this.cutY/n,this.u1=this.cutX/a,this.v1=(this.cutY+this.cutWidth)/n,this},clone:function(){var a=new o(this.texture,this.name,this.sourceIndex);return a.cutX=this.cutX,a.cutY=this.cutY,a.cutWidth=this.cutWidth,a.cutHeight=this.cutHeight,a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a.halfWidth=this.halfWidth,a.halfHeight=this.halfHeight,a.centerX=this.centerX,a.centerY=this.centerY,a.rotated=this.rotated,a.data=u(!0,a.data,this.data),a.updateUVs(),a},destroy:function(){this.source=null,this.texture=null,this.glTexture=null,this.customData=null,this.data=null},realWidth:{get:function(){return this.data.sourceSize.w}},realHeight:{get:function(){return this.data.sourceSize.h}},radius:{get:function(){return this.data.radius}},trimmed:{get:function(){return this.data.trim}},canvasData:{get:function(){return this.data.drawImage}}});f.exports=o},31673:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(82047),u=t(32547),o='Texture "%s" has no frame "%s"',a=new l({initialize:function(r,d,s,h,c){Array.isArray(s)||(s=[s]),this.manager=r,this.key=d,this.source=[],this.dataSource=[],this.frames={},this.customData={},this.firstFrame="__BASE",this.frameTotal=0;for(var p=0;p{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(61068),g=t(17487),u=t(56694),o=t(27119),a=t(86459),n=t(845),r=t(6659),d=t(38203),s=t(82047),h=t(97081),c=t(52780),p=t(10850),m=t(1539),x=t(42911),S=t(69150),P=t(74118),E=t(31673),R=new u({Extends:r,initialize:function(O){r.call(this),this.game=O,this.name="TextureManager",this.list={},this._tempCanvas=l.create2D(this),this._tempContext=this._tempCanvas.getContext("2d",{willReadFrequently:!0}),this._pending=0,this.stamp,this.stampCrop=new P,this.silentWarnings=!1,O.events.once(h.BOOT,this.boot,this)},boot:function(){this._pending=3,this.on(d.LOAD,this.updatePending,this),this.on(d.ERROR,this.updatePending,this);var M=this.game.config;this.addBase64("__DEFAULT",M.defaultImage),this.addBase64("__MISSING",M.missingImage),this.addBase64("__WHITE",M.whiteImage),this.game.events.once(h.DESTROY,this.destroy,this)},updatePending:function(){this._pending--,this._pending===0&&(this.off(d.LOAD),this.off(d.ERROR),this.emit(d.READY),this.stamp=new m(this.game.scene.systemScene).setOrigin(0))},checkKey:function(M){return this.exists(M)?(this.silentWarnings||console.error("Texture key already in use: "+M),!1):!0},remove:function(M){if(typeof M=="string")if(this.exists(M))M=this.get(M);else return this.silentWarnings||console.warn("No texture found matching key: "+M),this;return this.list.hasOwnProperty(M.key)&&(M.destroy(),this.emit(d.REMOVE,M.key),this.emit(d.REMOVE_KEY+M.key)),this},removeKey:function(M){return this.list.hasOwnProperty(M)&&delete this.list[M],this},addBase64:function(M,O){if(this.checkKey(M)){var w=this,L=new Image;L.onerror=function(){w.emit(d.ERROR,M)},L.onload=function(){var F=w.create(M,L);S.Image(F,0),w.emit(d.ADD,M,F),w.emit(d.ADD_KEY+M,F),w.emit(d.LOAD,M,F)},L.src=O}return this},getBase64:function(M,O,w,L){w===void 0&&(w="image/png"),L===void 0&&(L=.92);var F="",b=this.getFrame(M,O);if(b&&(b.source.isRenderTexture||b.source.isGLTexture))this.silentWarnings||console.warn("Cannot getBase64 from WebGL Texture");else if(b){var D=b.canvasData,N=l.create2D(this,D.width,D.height),z=N.getContext("2d",{willReadFrequently:!0});D.width>0&&D.height>0&&z.drawImage(b.source.image,D.x,D.y,D.width,D.height,0,0,D.width,D.height),F=N.toDataURL(w,L),l.remove(N)}return F},addImage:function(M,O,w){var L=null;return this.checkKey(M)&&(L=this.create(M,O),S.Image(L,0),w&&L.setDataSource(w),this.emit(d.ADD,M,L),this.emit(d.ADD_KEY+M,L)),L},addGLTexture:function(M,O,w,L){var F=null;return this.checkKey(M)&&(w===void 0&&(w=O.width),L===void 0&&(L=O.height),F=this.create(M,O,w,L),F.add("__BASE",0,0,0,w,L),this.emit(d.ADD,M,F),this.emit(d.ADD_KEY+M,F)),F},addCompressedTexture:function(M,O,w){var L=null;if(this.checkKey(M)){if(L=this.create(M,O),L.add("__BASE",0,0,0,O.width,O.height),w)if(Array.isArray(w))for(var F=0;F=b.x&&M=b.y&&O=b.x&&M=b.y&&O{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(61068),g=t(56694),u=t(28621),o=t(27394),a=new g({initialize:function(r,d,s,h,c){c===void 0&&(c=!1);var p=r.manager.game;this.renderer=p.renderer,this.texture=r,this.source=d,this.image=d.compressed?null:d,this.compressionAlgorithm=d.compressed?d.format:null,this.resolution=1,this.width=s||d.naturalWidth||d.videoWidth||d.width||0,this.height=h||d.naturalHeight||d.videoHeight||d.height||0,this.scaleMode=o.DEFAULT,this.isCanvas=d instanceof HTMLCanvasElement,this.isVideo=window.hasOwnProperty("HTMLVideoElement")&&d instanceof HTMLVideoElement,this.isRenderTexture=d.type==="RenderTexture"||d.type==="DynamicTexture",this.isGLTexture=window.hasOwnProperty("WebGLTexture")&&d instanceof WebGLTexture,this.isPowerOf2=u(this.width,this.height),this.glTexture=null,this.flipY=c,this.init(p)},init:function(n){var r=this.renderer;if(r){var d=this.source;if(r.gl){var s=this.image,h=this.flipY,c=this.width,p=this.height,m=this.scaleMode;this.isCanvas?this.glTexture=r.createCanvasTexture(s,!1,h):this.isVideo?this.glTexture=r.createVideoTexture(s,!1,h):this.isRenderTexture?this.glTexture=r.createTextureFromSource(null,c,p,m):this.isGLTexture?this.glTexture=d:this.compressionAlgorithm?this.glTexture=r.createTextureFromSource(d):this.glTexture=r.createTextureFromSource(s,c,p,m)}else this.isRenderTexture&&(this.image=d.canvas)}n.config.antialias||this.setFilter(1)},setFilter:function(n){this.renderer.gl&&this.renderer.setTextureFilter(this.glTexture,n),this.scaleMode=n},setFlipY:function(n){return n===void 0&&(n=!0),this.flipY=n,this},update:function(){var n=this.renderer,r=this.image,d=this.flipY,s=n.gl;s&&this.isCanvas?this.glTexture=n.updateCanvasTexture(r,this.glTexture,d):s&&this.isVideo&&(this.glTexture=n.updateVideoTexture(r,this.glTexture,d))},destroy:function(){this.glTexture&&this.renderer.deleteTexture(this.glTexture,!0),this.isCanvas&&l.remove(this.image),this.renderer=null,this.texture=null,this.source=null,this.image=null,this.glTexture=null}});f.exports=a},65154:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={LINEAR:0,NEAREST:1};f.exports=T},49644:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="addtexture"},29569:f=>{/** + * @author samme + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="addtexture-"},60079:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="onerror"},72665:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="onload"},93006:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="ready"},69018:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="removetexture"},85549:f=>{/** + * @author samme + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="removetexture-"},38203:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={ADD:t(49644),ADD_KEY:t(29569),ERROR:t(60079),LOAD:t(72665),READY:t(93006),REMOVE:t(69018),REMOVE_KEY:t(85549)}},87499:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(98611),g=t(65154),u={CanvasTexture:t(17487),DynamicTexture:t(845),Events:t(38203),FilterMode:g,Frame:t(82047),Parsers:t(69150),Texture:t(31673),TextureManager:t(6237),TextureSource:t(32547)};u=l(!1,u,g),f.exports=u},35082:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){if(!g.getElementsByTagName("TextureAtlas")){console.warn("Invalid Texture Atlas XML given");return}var u=t.source[l];t.add("__BASE",l,0,0,u.width,u.height);for(var o=g.getElementsByTagName("SubTexture"),a,n=0;n{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){var g=t.source[l];return t.add("__BASE",l,0,0,g.width,g.height),t};f.exports=T},21560:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){var g=t.source[l];return t.add("__BASE",l,0,0,g.width,g.height),t};f.exports=T},64423:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(32742),g=function(u,o,a){if(!a.frames&&!a.textures){console.warn("Invalid Texture Atlas JSON Array");return}var n=u.source[o];u.add("__BASE",o,0,0,n.width,n.height);for(var r=Array.isArray(a.textures)?a.textures[o].frames:a.frames,d,s=0;s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(32742),g=function(u,o,a){if(!a.frames){console.warn("Invalid Texture Atlas JSON Hash given, missing 'frames' Object");return}var n=u.source[o];u.add("__BASE",o,0,0,n.width,n.height);var r=a.frames,d;for(var s in r)if(r.hasOwnProperty(s)){var h=r[s];if(d=u.add(s,o,h.frame.x,h.frame.y,h.frame.w,h.frame.h),!d){console.warn("Invalid atlas json, frame already exists: "+s);continue}h.trimmed&&d.setTrim(h.sourceSize.w,h.sourceSize.h,h.spriteSourceSize.x,h.spriteSourceSize.y,h.spriteSourceSize.w,h.spriteSourceSize.h),h.rotated&&(d.rotated=!0,d.updateUVsInverted());var c=h.anchor||h.pivot;c&&(d.customPivot=!0,d.pivotX=c.x,d.pivotY=c.y),d.customData=l(h)}for(var p in a)p!=="frames"&&(Array.isArray(a[p])?u.customData[p]=a[p].slice(0):u.customData[p]=a[p]);return u};f.exports=g},67409:f=>{/** + * @author Richard Davey + * @copyright 2021 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){var l=[171,75,84,88,32,49,49,187,13,10,26,10],g,u=new Uint8Array(t,0,12);for(g=0;g>1),P=Math.max(1,P>>1),x+=E}return{mipmaps:m,width:s,height:h,internalFormat:d,compressed:!0,generateMipmap:!1}};f.exports=T},24904:f=>{/** + * @author Richard Davey + * @copyright 2021 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */function T(M,O,w,L,F,b,D){return D===void 0&&(D=16),Math.floor((M+w)/F)*Math.floor((O+L)/b)*D}function t(M,O){return M=Math.max(M,16),O=Math.max(O,8),M*O/4}function l(M,O){return M=Math.max(M,8),O=Math.max(O,8),M*O/2}function g(M,O){return T(M,O,3,3,4,4,8)}function u(M,O){return T(M,O,3,3,4,4)}function o(M,O){return T(M,O,4,3,5,4)}function a(M,O){return T(M,O,4,4,5,5)}function n(M,O){return T(M,O,5,4,6,5)}function r(M,O){return T(M,O,5,5,6,6)}function d(M,O){return T(M,O,7,4,8,5)}function s(M,O){return T(M,O,7,5,8,6)}function h(M,O){return T(M,O,7,7,8,8)}function c(M,O){return T(M,O,9,4,10,5)}function p(M,O){return T(M,O,9,5,10,6)}function m(M,O){return T(M,O,9,7,10,8)}function x(M,O){return T(M,O,9,9,10,10)}function S(M,O){return T(M,O,11,9,12,10)}function P(M,O){return T(M,O,11,11,12,12)}var E={0:{sizeFunc:t,glFormat:35841},1:{sizeFunc:t,glFormat:35843},2:{sizeFunc:l,glFormat:35840},3:{sizeFunc:l,glFormat:35842},6:{sizeFunc:g,glFormat:36196},7:{sizeFunc:g,glFormat:33776},8:{sizeFunc:u,glFormat:33777},9:{sizeFunc:u,glFormat:33778},11:{sizeFunc:u,glFormat:33779},22:{sizeFunc:g,glFormat:37492},23:{sizeFunc:u,glFormat:37496},24:{sizeFunc:g,glFormat:37494},25:{sizeFunc:g,glFormat:37488},26:{sizeFunc:u,glFormat:37490},27:{sizeFunc:u,glFormat:37808},28:{sizeFunc:o,glFormat:37809},29:{sizeFunc:a,glFormat:37810},30:{sizeFunc:n,glFormat:37811},31:{sizeFunc:r,glFormat:37812},32:{sizeFunc:d,glFormat:37813},33:{sizeFunc:s,glFormat:37814},34:{sizeFunc:h,glFormat:37815},35:{sizeFunc:c,glFormat:37816},36:{sizeFunc:p,glFormat:37817},37:{sizeFunc:m,glFormat:37818},38:{sizeFunc:x,glFormat:37819},39:{sizeFunc:S,glFormat:37820},40:{sizeFunc:P,glFormat:37821}},R=function(M){for(var O=new Uint32Array(M,0,13),w=O[2],L=E[w].glFormat,F=E[w].sizeFunc,b=O[11],D=O[7],N=O[6],z=52+O[12],W=new Uint8Array(M,z),Y=new Array(b),j=0,G=D,V=N,I=0;I>1),V=Math.max(1,V>>1),j+=B}return{mipmaps:Y,width:D,height:N,internalFormat:L,compressed:!0,generateMipmap:!1}};f.exports=R},6143:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72632),g=function(u,o,a,n,r,d,s){var h=l(s,"frameWidth",null),c=l(s,"frameHeight",h);if(h===null)throw new Error("TextureManager.SpriteSheet: Invalid frameWidth given.");var p=u.source[o];u.add("__BASE",o,0,0,p.width,p.height);var m=l(s,"startFrame",0),x=l(s,"endFrame",-1),S=l(s,"margin",0),P=l(s,"spacing",0),E=Math.floor((r-S+P)/(h+P)),R=Math.floor((d-S+P)/(c+P)),M=E*R;M===0&&console.warn("SpriteSheet frame dimensions will result in zero frames for texture:",u.key),(m>M||m<-M)&&(m=0),m<0&&(m=M+m),(x===-1||x>M||xr&&(L=N-r),z>d&&(F=z-d),D>=m&&D<=x&&(u.add(b,o,a+O,n+w,h-L,c-F),b++),O+=h+P,O+h>r&&(O=S,w+=c+P)}return u};f.exports=g},20030:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72632),g=function(u,o,a){var n=l(a,"frameWidth",null),r=l(a,"frameHeight",n);if(!n)throw new Error("TextureManager.SpriteSheetFromAtlas: Invalid frameWidth given.");var d=u.source[0];u.add("__BASE",0,0,0,d.width,d.height),l(a,"startFrame",0),l(a,"endFrame",-1);for(var s=l(a,"margin",0),h=l(a,"spacing",0),c=o.cutX,p=o.cutY,m=o.cutWidth,x=o.cutHeight,S=o.realWidth,P=o.realHeight,E=Math.floor((S-s+h)/(n+h)),R=Math.floor((P-s+h)/(r+h)),M=o.x,O=n-M,w=n-(S-m-M),L=o.y,F=r-L,b=r-(P-x-L),D,N=s,z=s,W=0,Y=0,j=0;j{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=0,t=function(g,u,o,a){var n=T-a.y-a.height;g.add(o,u,a.x,n,a.width,a.height)},l=function(g,u,o){var a=g.source[u];g.add("__BASE",u,0,0,a.width,a.height),T=a.height;for(var n=o.split(` +`),r=/^[ ]*(- )*(\w+)+[: ]+(.*)/,d="",s="",h={x:0,y:0,width:0,height:0},c=0;c{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={AtlasXML:t(35082),Canvas:t(83332),Image:t(21560),JSONArray:t(64423),JSONHash:t(17264),KTXParser:t(67409),PVRParser:t(24904),SpriteSheet:t(6143),SpriteSheetFromAtlas:t(20030),UnityYAML:t(89187)}},93560:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={CSV:0,TILED_JSON:1,ARRAY_2D:2,WELTMEISTER:3}},97042:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=new l({initialize:function(o,a,n,r,d,s,h){(n===void 0||n<=0)&&(n=32),(r===void 0||r<=0)&&(r=32),d===void 0&&(d=0),s===void 0&&(s=0),this.name=o,this.firstgid=a|0,this.imageWidth=n|0,this.imageHeight=r|0,this.imageMargin=d|0,this.imageSpacing=s|0,this.properties=h||{},this.images=[],this.total=0},containsImageIndex:function(u){return u>=this.firstgid&&u{/** + * @author Richard Davey + * @copyright 2021 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=new l({initialize:function(o){if(this.gids=[],o!==void 0)for(var a=0;a{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(93560),g=t(16586),u=t(90715),o=t(89797),a=function(n,r,d,s,h,c,p,m){d===void 0&&(d=32),s===void 0&&(s=32),h===void 0&&(h=10),c===void 0&&(c=10),m===void 0&&(m=!1);var x=null;if(Array.isArray(p)){var S=r!==void 0?r:"map";x=u(S,l.ARRAY_2D,p,d,s,m)}else if(r!==void 0){var P=n.cache.tilemap.get(r);P?x=u(r,P.format,P.data,d,s,m):console.warn("No map data found for key "+r)}return x===null&&(x=new g({tileWidth:d,tileHeight:s,width:h,height:c})),new o(n,x)};f.exports=a},29633:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(64937),u=t(12920),o=t(28699),a=t(66658),n=new l({Mixins:[g.Alpha,g.Flip,g.Visible],initialize:function(d,s,h,c,p,m,x,S){this.layer=d,this.index=s,this.x=h,this.y=c,this.width=p,this.height=m,this.right,this.bottom,this.baseWidth=x!==void 0?x:p,this.baseHeight=S!==void 0?S:m,this.pixelX=0,this.pixelY=0,this.updatePixelXY(),this.properties={},this.rotation=0,this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceLeft=!1,this.faceRight=!1,this.faceTop=!1,this.faceBottom=!1,this.collisionCallback=void 0,this.collisionCallbackContext=this,this.tint=16777215,this.physics={}},containsPoint:function(r,d){return!(rthis.right||d>this.bottom)},copy:function(r){return this.index=r.index,this.alpha=r.alpha,this.properties=o(r.properties),this.visible=r.visible,this.setFlip(r.flipX,r.flipY),this.tint=r.tint,this.rotation=r.rotation,this.collideUp=r.collideUp,this.collideDown=r.collideDown,this.collideLeft=r.collideLeft,this.collideRight=r.collideRight,this.collisionCallback=r.collisionCallback,this.collisionCallbackContext=r.collisionCallbackContext,this},getCollisionGroup:function(){return this.tileset?this.tileset.getTileCollisionGroup(this.index):null},getTileData:function(){return this.tileset?this.tileset.getTileData(this.index):null},getLeft:function(r){var d=this.tilemapLayer;if(d){var s=d.tileToWorldXY(this.x,this.y,void 0,r);return s.x}return this.x*this.baseWidth},getRight:function(r){var d=this.tilemapLayer;return d?this.getLeft(r)+this.width*d.scaleX:this.getLeft(r)+this.width},getTop:function(r){var d=this.tilemapLayer;if(d){var s=d.tileToWorldXY(this.x,this.y,void 0,r);return s.y}return this.y*this.baseWidth-(this.height-this.baseHeight)},getBottom:function(r){var d=this.tilemapLayer;return d?this.getTop(r)+this.height*d.scaleY:this.getTop(r)+this.height},getBounds:function(r,d){return d===void 0&&(d=new a),d.x=this.getLeft(r),d.y=this.getTop(r),d.width=this.getRight(r)-d.x,d.height=this.getBottom(r)-d.y,d},getCenterX:function(r){return(this.getLeft(r)+this.getRight(r))/2},getCenterY:function(r){return(this.getTop(r)+this.getBottom(r))/2},intersects:function(r,d,s,h){return!(s<=this.pixelX||h<=this.pixelY||r>=this.right||d>=this.bottom)},isInteresting:function(r,d){return r&&d?this.canCollide||this.hasInterestingFace:r?this.collides:d?this.hasInterestingFace:!1},resetCollision:function(r){if(r===void 0&&(r=!0),this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,r){var d=this.tilemapLayer;d&&this.tilemapLayer.calculateFacesAt(this.x,this.y)}return this},resetFaces:function(){return this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,this},setCollision:function(r,d,s,h,c){if(d===void 0&&(d=r),s===void 0&&(s=r),h===void 0&&(h=r),c===void 0&&(c=!0),this.collideLeft=r,this.collideRight=d,this.collideUp=s,this.collideDown=h,this.faceLeft=r,this.faceRight=d,this.faceTop=s,this.faceBottom=h,c){var p=this.tilemapLayer;p&&this.tilemapLayer.calculateFacesAt(this.x,this.y)}return this},setCollisionCallback:function(r,d){return r===null?(this.collisionCallback=void 0,this.collisionCallbackContext=void 0):(this.collisionCallback=r,this.collisionCallbackContext=d),this},setSize:function(r,d,s,h){return r!==void 0&&(this.width=r),d!==void 0&&(this.height=d),s!==void 0&&(this.baseWidth=s),h!==void 0&&(this.baseHeight=h),this.updatePixelXY(),this},updatePixelXY:function(){var r=this.layer.orientation;if(r===u.ORTHOGONAL)this.pixelX=this.x*this.baseWidth,this.pixelY=this.y*this.baseHeight;else if(r===u.ISOMETRIC)this.pixelX=(this.x-this.y)*this.baseWidth*.5,this.pixelY=(this.x+this.y)*this.baseHeight*.5;else if(r===u.STAGGERED)this.pixelX=this.x*this.baseWidth+this.y%2*(this.baseWidth/2),this.pixelY=this.y*(this.baseHeight/2);else if(r===u.HEXAGONAL){var d=this.layer.staggerAxis,s=this.layer.staggerIndex,h=this.layer.hexSideLength,c,p;d==="y"?(p=(this.baseHeight-h)/2+h,s==="odd"?this.pixelX=this.x*this.baseWidth+this.y%2*(this.baseWidth/2):this.pixelX=this.x*this.baseWidth-this.y%2*(this.baseWidth/2),this.pixelY=this.y*p):d==="x"&&(c=(this.baseWidth-h)/2+h,this.pixelX=this.x*c,s==="odd"?this.pixelY=this.y*this.baseHeight+this.x%2*(this.baseHeight/2):this.pixelY=this.y*this.baseHeight-this.x%2*(this.baseHeight/2))}return this.right=this.pixelX+this.baseWidth,this.bottom=this.pixelY+this.baseHeight,this},destroy:function(){this.collisionCallback=void 0,this.collisionCallbackContext=void 0,this.properties=void 0},canCollide:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown||this.collisionCallback!==void 0}},collides:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown}},hasInterestingFace:{get:function(){return this.faceTop||this.faceBottom||this.faceLeft||this.faceRight}},tileset:{get:function(){var r=this.layer.tilemapLayer;if(r){var d=r.gidMap[this.index];if(d)return d}return null}},tilemapLayer:{get:function(){return this.layer.tilemapLayer}},tilemap:{get:function(){var r=this.tilemapLayer;return r?r.tilemap:null}}});f.exports=n},89797:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(14556),g=t(56694),u=t(75606),o=t(93560),a=t(72632),n=t(94990),r=t(46422),d=t(12920),s=t(52257),h=t(72677),c=t(13747),p=t(29633),m=t(5047),x=t(87177),S=t(47975),P=new g({initialize:function(R,M){this.scene=R,this.tileWidth=M.tileWidth,this.tileHeight=M.tileHeight,this.width=M.width,this.height=M.height,this.orientation=M.orientation,this.renderOrder=M.renderOrder,this.format=M.format,this.version=M.version,this.properties=M.properties,this.widthInPixels=M.widthInPixels,this.heightInPixels=M.heightInPixels,this.imageCollections=M.imageCollections,this.images=M.images,this.layers=M.layers,this.tiles=M.tiles,this.tilesets=M.tilesets,this.objects=M.objects,this.currentLayerIndex=0,this.hexSideLength=M.hexSideLength;var O=this.orientation;this._convert={WorldToTileXY:m.GetWorldToTileXYFunction(O),WorldToTileX:m.GetWorldToTileXFunction(O),WorldToTileY:m.GetWorldToTileYFunction(O),TileToWorldXY:m.GetTileToWorldXYFunction(O),TileToWorldX:m.GetTileToWorldXFunction(O),TileToWorldY:m.GetTileToWorldYFunction(O),GetTileCorners:m.GetTileCornersFunction(O)}},setRenderOrder:function(E){var R=["right-down","left-down","right-up","left-up"];return typeof E=="number"&&(E=R[E]),R.indexOf(E)>-1&&(this.renderOrder=E),this},addTilesetImage:function(E,R,M,O,w,L,F,b){if(E===void 0)return null;if(R==null&&(R=E),!this.scene.sys.textures.exists(R))return console.warn("Invalid Tileset Image: "+R),null;var D=this.scene.sys.textures.get(R),N=this.getTilesetIndex(E);if(N===null&&this.format===o.TILED_JSON)return console.warn("No data found for Tileset: "+E),null;var z=this.tilesets[N];return z?(z.setTileSize(M,O),z.setSpacing(w,L),z.setImage(D),z):(M===void 0&&(M=this.tileWidth),O===void 0&&(O=this.tileHeight),w===void 0&&(w=0),L===void 0&&(L=0),F===void 0&&(F=0),b===void 0&&(b={x:0,y:0}),z=new S(E,F,M,O,w,L,void 0,void 0,b),z.setImage(D),this.tilesets.push(z),this.tiles=l(this),z)},copy:function(E,R,M,O,w,L,F,b){return b=this.getLayer(b),b!==null?(m.Copy(E,R,M,O,w,L,F,b),this):null},createBlankLayer:function(E,R,M,O,w,L,F,b){M===void 0&&(M=0),O===void 0&&(O=0),w===void 0&&(w=this.width),L===void 0&&(L=this.height),F===void 0&&(F=this.tileWidth),b===void 0&&(b=this.tileHeight);var D=this.getLayerIndex(E);if(D!==null)return console.warn("Invalid Tilemap Layer ID: "+E),null;for(var N=new n({name:E,tileWidth:F,tileHeight:b,width:w,height:L,orientation:this.orientation}),z,W=0;W-1&&this.putTileAt(R,L.x,L.y,M,L.tilemapLayer)}return O},removeTileAt:function(E,R,M,O,w){return M===void 0&&(M=!0),O===void 0&&(O=!0),w=this.getLayer(w),w===null?null:m.RemoveTileAt(E,R,M,O,w)},removeTileAtWorldXY:function(E,R,M,O,w,L){return M===void 0&&(M=!0),O===void 0&&(O=!0),L=this.getLayer(L),L===null?null:m.RemoveTileAtWorldXY(E,R,M,O,w,L)},renderDebug:function(E,R,M){return M=this.getLayer(M),M===null?null:(this.orientation===d.ORTHOGONAL&&m.RenderDebug(E,R,M),this)},renderDebugFull:function(E,R){for(var M=this.layers,O=0;O{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(99325),g=t(15043);l.register("tilemap",function(u){var o=u!==void 0?u:{};return g(this.scene,o.key,o.tileWidth,o.tileHeight,o.width,o.height,o.data,o.insertNull)})},37940:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(61286),g=t(15043);l.register("tilemap",function(u,o,a,n,r,d,s){return u===null&&(u=void 0),o===null&&(o=void 0),a===null&&(a=void 0),n===null&&(n=void 0),r===null&&(r=void 0),g(this.scene,u,o,a,n,r,d,s)})},87177:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(64937),u=t(89980),o=t(5047),a=t(96193),n=t(93736),r=new l({Extends:u,Mixins:[g.Alpha,g.BlendMode,g.ComputedSize,g.Depth,g.Flip,g.GetBounds,g.Mask,g.Origin,g.Pipeline,g.PostPipeline,g.Transform,g.Visible,g.ScrollFactor,a],initialize:function(s,h,c,p,m,x){u.call(this,s,"TilemapLayer"),this.isTilemap=!0,this.tilemap=h,this.layerIndex=c,this.layer=h.layers[c],this.layer.tilemapLayer=this,this.tileset=[],this.tilesDrawn=0,this.tilesTotal=this.layer.width*this.layer.height,this.culledTiles=[],this.skipCull=!1,this.cullPaddingX=1,this.cullPaddingY=1,this.cullCallback=o.GetCullTilesFunction(this.layer.orientation),this._renderOrder=0,this.gidMap=[],this.tempVec=new n,this.setTilesets(p),this.setAlpha(this.layer.alpha),this.setPosition(m,x),this.setOrigin(0,0),this.setSize(h.tileWidth*this.layer.width,h.tileHeight*this.layer.height),this.initPipeline(),this.initPostPipeline(!1)},setTilesets:function(d){var s=[],h=[],c=this.tilemap;Array.isArray(d)||(d=[d]);for(var p=0;p=0&&d<4&&(this._renderOrder=d),this},calculateFacesAt:function(d,s){return o.CalculateFacesAt(d,s,this.layer),this},calculateFacesWithin:function(d,s,h,c){return o.CalculateFacesWithin(d,s,h,c,this.layer),this},createFromTiles:function(d,s,h,c,p){return o.CreateFromTiles(d,s,h,c,p,this.layer)},cull:function(d){return this.cullCallback(this.layer,d,this.culledTiles,this._renderOrder)},copy:function(d,s,h,c,p,m,x){return o.Copy(d,s,h,c,p,m,x,this.layer),this},fill:function(d,s,h,c,p,m){return o.Fill(d,s,h,c,p,m,this.layer),this},filterTiles:function(d,s,h,c,p,m,x){return o.FilterTiles(d,s,h,c,p,m,x,this.layer)},findByIndex:function(d,s,h){return o.FindByIndex(d,s,h,this.layer)},findTile:function(d,s,h,c,p,m,x){return o.FindTile(d,s,h,c,p,m,x,this.layer)},forEachTile:function(d,s,h,c,p,m,x){return o.ForEachTile(d,s,h,c,p,m,x,this.layer),this},setTint:function(d,s,h,c,p,m){d===void 0&&(d=16777215);var x=function(S){S.tint=d};return this.forEachTile(x,this,s,h,c,p,m)},getTileAt:function(d,s,h){return o.GetTileAt(d,s,h,this.layer)},getTileAtWorldXY:function(d,s,h,c){return o.GetTileAtWorldXY(d,s,h,c,this.layer)},getIsoTileAtWorldXY:function(d,s,h,c,p){h===void 0&&(h=!0);var m=this.tempVec;return o.IsometricWorldToTileXY(d,s,!0,m,p,this.layer,h),this.getTileAt(m.x,m.y,c)},getTilesWithin:function(d,s,h,c,p){return o.GetTilesWithin(d,s,h,c,p,this.layer)},getTilesWithinShape:function(d,s,h){return o.GetTilesWithinShape(d,s,h,this.layer)},getTilesWithinWorldXY:function(d,s,h,c,p,m){return o.GetTilesWithinWorldXY(d,s,h,c,p,m,this.layer)},hasTileAt:function(d,s){return o.HasTileAt(d,s,this.layer)},hasTileAtWorldXY:function(d,s,h){return o.HasTileAtWorldXY(d,s,h,this.layer)},putTileAt:function(d,s,h,c){return o.PutTileAt(d,s,h,c,this.layer)},putTileAtWorldXY:function(d,s,h,c,p){return o.PutTileAtWorldXY(d,s,h,c,p,this.layer)},putTilesAt:function(d,s,h,c){return o.PutTilesAt(d,s,h,c,this.layer),this},randomize:function(d,s,h,c,p){return o.Randomize(d,s,h,c,p,this.layer),this},removeTileAt:function(d,s,h,c){return o.RemoveTileAt(d,s,h,c,this.layer)},removeTileAtWorldXY:function(d,s,h,c,p){return o.RemoveTileAtWorldXY(d,s,h,c,p,this.layer)},renderDebug:function(d,s){return o.RenderDebug(d,s,this.layer),this},replaceByIndex:function(d,s,h,c,p,m){return o.ReplaceByIndex(d,s,h,c,p,m,this.layer),this},setSkipCull:function(d){return d===void 0&&(d=!0),this.skipCull=d,this},setCullPadding:function(d,s){return d===void 0&&(d=1),s===void 0&&(s=1),this.cullPaddingX=d,this.cullPaddingY=s,this},setCollision:function(d,s,h,c){return o.SetCollision(d,s,h,this.layer,c),this},setCollisionBetween:function(d,s,h,c){return o.SetCollisionBetween(d,s,h,c,this.layer),this},setCollisionByProperty:function(d,s,h){return o.SetCollisionByProperty(d,s,h,this.layer),this},setCollisionByExclusion:function(d,s,h){return o.SetCollisionByExclusion(d,s,h,this.layer),this},setCollisionFromCollisionGroup:function(d,s){return o.SetCollisionFromCollisionGroup(d,s,this.layer),this},setTileIndexCallback:function(d,s,h){return o.SetTileIndexCallback(d,s,h,this.layer),this},setTileLocationCallback:function(d,s,h,c,p,m){return o.SetTileLocationCallback(d,s,h,c,p,m,this.layer),this},shuffle:function(d,s,h,c){return o.Shuffle(d,s,h,c,this.layer),this},swapByIndex:function(d,s,h,c,p,m){return o.SwapByIndex(d,s,h,c,p,m,this.layer),this},tileToWorldX:function(d,s){return this.tilemap.tileToWorldX(d,s,this)},tileToWorldY:function(d,s){return this.tilemap.tileToWorldY(d,s,this)},tileToWorldXY:function(d,s,h,c){return this.tilemap.tileToWorldXY(d,s,h,c,this)},getTileCorners:function(d,s,h){return this.tilemap.getTileCorners(d,s,h,this)},weightedRandomize:function(d,s,h,c,p){return o.WeightedRandomize(s,h,c,p,d,this.layer),this},worldToTileX:function(d,s,h){return this.tilemap.worldToTileX(d,s,h,this)},worldToTileY:function(d,s,h){return this.tilemap.worldToTileY(d,s,h,this)},worldToTileXY:function(d,s,h,c,p){return this.tilemap.worldToTileXY(d,s,h,c,p,this)},destroy:function(d){d===void 0&&(d=!0),this.tilemap&&(this.layer.tilemapLayer===this&&(this.layer.tilemapLayer=void 0),d&&this.tilemap.removeLayer(this),this.tilemap=void 0,this.layer=void 0,this.culledTiles.length=0,this.cullCallback=null,this.gidMap=[],this.tileset=[],u.prototype.destroy.call(this))}});f.exports=r},17394:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(69360),g=new l,u=new l,o=new l,a=function(n,r,d,s){var h=r.cull(d),c=h.length,p=d.alpha*r.alpha;if(!(c===0||p<=0)){var m=g,x=u,S=o;x.applyITRS(r.x,r.y,r.rotation,r.scaleX,r.scaleY),m.copyFrom(d.matrix);var P=n.currentContext,E=r.gidMap;P.save(),s?(m.multiplyWithOffset(s,-d.scrollX*r.scrollFactorX,-d.scrollY*r.scrollFactorY),x.e=r.x,x.f=r.y,m.multiply(x,S),S.copyToContext(P)):(x.e-=d.scrollX*r.scrollFactorX,x.f-=d.scrollY*r.scrollFactorY,x.copyToContext(P)),(!n.antialias||r.scaleX>1||r.scaleY>1)&&(P.imageSmoothingEnabled=!1);for(var R=0;R{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72283),g=l,u=l;g=t(51395),u=t(17394),f.exports={renderWebGL:g,renderCanvas:u}},51395:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(75512),g=function(u,o,a){var n=o.cull(a),r=n.length,d=a.alpha*o.alpha;if(!(r===0||d<=0)){var s=o.gidMap,h=u.pipelines.set(o.pipeline,o),c=l.getTintAppendFloatAlpha,p=o.scrollFactorX,m=o.scrollFactorY,x=o.x,S=o.y,P=o.scaleX,E=o.scaleY;u.pipelines.preBatch(o);for(var R=0;R{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(93736),u=new l({initialize:function(a,n,r,d,s,h,c,p,m){(r===void 0||r<=0)&&(r=32),(d===void 0||d<=0)&&(d=32),s===void 0&&(s=0),h===void 0&&(h=0),c===void 0&&(c={}),p===void 0&&(p={}),this.name=a,this.firstgid=n,this.tileWidth=r,this.tileHeight=d,this.tileMargin=s,this.tileSpacing=h,this.tileProperties=c,this.tileData=p,this.tileOffset=new g,m!==void 0&&this.tileOffset.set(m.x,m.y),this.image=null,this.glTexture=null,this.rows=0,this.columns=0,this.total=0,this.texCoordinates=[]},getTileProperties:function(o){return this.containsTileIndex(o)?this.tileProperties[o-this.firstgid]:null},getTileData:function(o){return this.containsTileIndex(o)?this.tileData[o-this.firstgid]:null},getTileCollisionGroup:function(o){var a=this.getTileData(o);return a&&a.objectgroup?a.objectgroup:null},containsTileIndex:function(o){return o>=this.firstgid&&o{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(15494),g=function(u,o,a){var n=l(u,o,!0,a),r=l(u,o-1,!0,a),d=l(u,o+1,!0,a),s=l(u-1,o,!0,a),h=l(u+1,o,!0,a),c=n&&n.collides;return c&&(n.faceTop=!0,n.faceBottom=!0,n.faceLeft=!0,n.faceRight=!0),r&&r.collides&&(c&&(n.faceTop=!1),r.faceBottom=!c),d&&d.collides&&(c&&(n.faceBottom=!1),d.faceTop=!c),s&&s.collides&&(c&&(n.faceLeft=!1),s.faceRight=!c),h&&h.collides&&(c&&(n.faceRight=!1),h.faceLeft=!c),n&&!n.collides&&n.resetFaces(),n};f.exports=g},60386:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(15494),g=t(50811),u=function(o,a,n,r,d){for(var s=null,h=null,c=null,p=null,m=g(o,a,n,r,null,d),x=0;x{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(93736),g=new l,u=function(o,a,n,r){var d=n.tilemapLayer,s=d.cullPaddingX,h=d.cullPaddingY,c=d.tilemap.tileToWorldXY(o,a,g,r,d);return c.x>r.worldView.x+d.scaleX*n.tileWidth*(-s-.5)&&c.xr.worldView.y+d.scaleY*n.tileHeight*(-h-1)&&c.y{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(60386),g=t(50811),u=t(62839),o=t(29633),a=function(n,r,d,s,h,c,p,m){p===void 0&&(p=!0);var x=g(n,r,d,s,null,m),S=[];x.forEach(function(L){var F=new o(L.layer,L.index,L.x,L.y,L.width,L.height,L.baseWidth,L.baseHeight);F.copy(L),S.push(F)});for(var P=h-n,E=c-r,R=0;R{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(50811),g=t(51202),u=function(o,a,n,r,d,s){n||(n={}),Array.isArray(o)||(o=[o]);var h=s.tilemapLayer;r||(r=h.scene),d||(d=r.cameras.main);var c=l(0,0,s.width,s.height,null,s),p=[],m;for(m=0;m{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(74118),g=t(82127),u=t(84314),o=new l,a=function(n,r){var d=n.tilemapLayer.tilemap,s=n.tilemapLayer,h=Math.floor(d.tileWidth*s.scaleX),c=Math.floor(d.tileHeight*s.scaleY),p=u(r.worldView.x-s.x,h,0,!0)-s.cullPaddingX,m=g(r.worldView.right-s.x,h,0,!0)+s.cullPaddingX,x=u(r.worldView.y-s.y,c,0,!0)-s.cullPaddingY,S=g(r.worldView.bottom-s.y,c,0,!0)+s.cullPaddingY;return o.setTo(p,x,m-p,S-x)};f.exports=a},381:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(71586),g=t(6987),u=function(o,a,n,r){n===void 0&&(n=[]),r===void 0&&(r=0),n.length=0;var d=o.tilemapLayer,s=l(o,a);return(d.skipCull||d.scrollFactorX!==1||d.scrollFactorY!==1)&&(s.left=0,s.right=o.width,s.top=0,s.bottom=o.height),g(o,s,r,n),n};f.exports=u},97734:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(50811),g=t(60386),u=t(68234),o=function(a,n,r,d,s,h,c){for(var p=c.collideIndexes.indexOf(a)!==-1,m=l(n,r,d,s,null,c),x=0;x{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(50811),g=function(u,o,a,n,r,d,s,h){var c=l(a,n,r,d,s,h);return c.filter(u,o)};f.exports=g},37982:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){l===void 0&&(l=0),g===void 0&&(g=!1);var o=0,a,n,r;if(g){for(n=u.height-1;n>=0;n--)for(a=u.width-1;a>=0;a--)if(r=u.data[n][a],r&&r.index===t){if(o===l)return r;o+=1}}else for(n=0;n{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(50811),g=function(u,o,a,n,r,d,s,h){var c=l(a,n,r,d,s,h);return c.find(u,o)||null};f.exports=g},80916:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(50811),g=function(u,o,a,n,r,d,s,h){var c=l(a,n,r,d,s,h);c.forEach(u,o)};f.exports=g},31493:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(12920),g=t(381),u=t(37524),o=t(20887),a=t(72283),n=t(19242),r=function(d){return d===l.ORTHOGONAL?g:d===l.HEXAGONAL?u:d===l.STAGGERED?n:d===l.ISOMETRIC?o:a};f.exports=r},15494:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(62839),g=function(u,o,a,n){if(a===void 0&&(a=!1),l(u,o,n)){var r=n.data[o][u]||null;return r?r.index===-1?a?r:null:r:null}else return null};f.exports=g},24640:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(15494),g=t(93736),u=new g,o=function(a,n,r,d,s){return s.tilemapLayer.worldToTileXY(a,n,!0,u,d),l(u.x,u.y,r,s)};f.exports=o},48495:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(93736),g=function(u,o,a,n){var r=n.baseTileWidth,d=n.baseTileHeight,s=n.tilemapLayer,h=0,c=0;s&&(a||(a=s.scene.cameras.main),h=s.x+a.scrollX*(1-s.scrollFactorX),c=s.y+a.scrollY*(1-s.scrollFactorY),r*=s.scaleX,d*=s.scaleY);var p=h+u*r,m=c+o*d;return[new l(p,m),new l(p+r,m),new l(p+r,m+d),new l(p,m+d)]};f.exports=g},7160:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(12920),g=t(63634),u=t(72283),o=t(48495),a=function(n){return n===l.ORTHOGONAL?o:n===l.ISOMETRIC?u:n===l.HEXAGONAL?g:(n===l.STAGGERED,u)};f.exports=a},16884:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(12920),g=t(72283),u=t(44150),o=function(a){return a===l.ORTHOGONAL?u:g};f.exports=o},68182:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(12920),g=t(21715),u=t(21808),o=t(72283),a=t(33388),n=t(46836),r=function(d){return d===l.ORTHOGONAL?n:d===l.ISOMETRIC?u:d===l.HEXAGONAL?g:d===l.STAGGERED?a:o};f.exports=r},3752:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(12920),g=t(72283),u=t(84132),o=t(42477),a=function(n){return n===l.ORTHOGONAL?o:n===l.STAGGERED?u:g};f.exports=a},50811:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72632),g=function(u,o,a,n,r,d){u===void 0&&(u=0),o===void 0&&(o=0),a===void 0&&(a=d.width),n===void 0&&(n=d.height),r||(r={});var s=l(r,"isNotEmpty",!1),h=l(r,"isColliding",!1),c=l(r,"hasInterestingFace",!1);u<0&&(a+=u,u=0),o<0&&(n+=o,o=0),u+a>d.width&&(a=Math.max(d.width-u,0)),o+n>d.height&&(n=Math.max(d.height-o,0));for(var p=[],m=o;m{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(84068),g=t(50811),u=t(7563),o=t(72283),a=t(93736),n=function(c,p){return u.RectangleToTriangle(p,c)},r=new a,d=new a,s=new a,h=function(c,p,m,x){if(c===void 0)return[];var S=o;c instanceof l.Circle?S=u.CircleToRectangle:c instanceof l.Rectangle?S=u.RectangleToRectangle:c instanceof l.Triangle?S=n:c instanceof l.Line&&(S=u.LineToRectangle),x.tilemapLayer.worldToTileXY(c.left,c.top,!0,d,m);var P=d.x,E=d.y;x.tilemapLayer.worldToTileXY(c.right,c.bottom,!1,s,m);var R=Math.ceil(s.x),M=Math.ceil(s.y),O=Math.max(R-P,1),w=Math.max(M-E,1),L=g(P,E,O,w,p,x),F=x.tileWidth,b=x.tileHeight;x.tilemapLayer&&(F*=x.tilemapLayer.scaleX,b*=x.tilemapLayer.scaleY);for(var D=[],N=new l.Rectangle(0,0,F,b),z=0;z{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(50811),g=t(93736),u=new g,o=new g,a=function(n,r,d,s,h,c,p){var m=p.tilemapLayer.tilemap._convert.WorldToTileXY;m(n,r,!0,u,c,p);var x=u.x,S=u.y;m(n+d,r+s,!1,o,c,p);var P=Math.ceil(o.x),E=Math.ceil(o.y);return l(x,S,P-x,E-S,h,p)};f.exports=a},29296:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(12920),g=t(10618),u=t(806),o=function(a){return a===l.ORTHOGONAL?u:g};f.exports=o},32688:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(12920),g=t(11516),u=t(18750),o=t(72283),a=t(90562),n=t(45676),r=function(d){return d===l.ORTHOGONAL?n:d===l.ISOMETRIC?u:d===l.HEXAGONAL?g:d===l.STAGGERED?a:o};f.exports=r},74326:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(12920),g=t(10618),u=t(3689),o=t(70520),a=function(n){return n===l.ORTHOGONAL?o:n===l.STAGGERED?u:g};f.exports=a},46598:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(62839),g=function(u,o,a){if(l(u,o,a)){var n=a.data[o][u];return n!==null&&n.index>-1}else return!1};f.exports=g},28654:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(46598),g=t(93736),u=new g,o=function(a,n,r,d){d.tilemapLayer.worldToTileXY(a,n,!0,u,r);var s=u.x,h=u.y;return l(s,h,d)};f.exports=o},6358:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(82127),g=t(84314),u=function(o,a){var n=o.tilemapLayer.tilemap,r=o.tilemapLayer,d=Math.floor(n.tileWidth*r.scaleX),s=Math.floor(n.tileHeight*r.scaleY),h=o.hexSideLength,c,p,m,x;if(this.staggerAxis==="y"){var S=(s-h)/2+h;c=g(a.worldView.x-r.x,d,0,!0)-r.cullPaddingX,p=l(a.worldView.right-r.x,d,0,!0)+r.cullPaddingX,m=g(a.worldView.y-r.y,S,0,!0)-r.cullPaddingY,x=l(a.worldView.bottom-r.y,S,0,!0)+r.cullPaddingY}else{var P=(d-h)/2+h;c=g(a.worldView.x-r.x,P,0,!0)-r.cullPaddingX,p=l(a.worldView.right-r.x,P,0,!0)+r.cullPaddingX,m=g(a.worldView.y-r.y,s,0,!0)-r.cullPaddingY,x=l(a.worldView.bottom-r.y,s,0,!0)+r.cullPaddingY}return{left:c,right:p,top:m,bottom:x}};f.exports=u},37524:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(6358),g=t(6987),u=function(o,a,n,r){n===void 0&&(n=[]),r===void 0&&(r=0),n.length=0;var d=o.tilemapLayer,s=l(o,a);return d.skipCull&&d.scrollFactorX===1&&d.scrollFactorY===1&&(s.left=0,s.right=o.width,s.top=0,s.bottom=o.height),g(o,s,r,n),n};f.exports=u},63634:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(21715),g=t(93736),u=new g,o=function(a,n,r,d){var s=d.baseTileWidth,h=d.baseTileHeight,c=d.tilemapLayer;c&&(s*=c.scaleX,h*=c.scaleY);var p=l(a,n,u,r,d),m=[],x=.5773502691896257,S,P;this.staggerAxis==="y"?(S=x*s,P=h/2):(S=s/2,P=x*h);for(var E=0;E<6;E++){var R=2*Math.PI*(.5-E)/6;m.push(new g(p.x+S*Math.cos(R),p.y+P*Math.sin(R)))}return m};f.exports=o},21715:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(93736),g=function(u,o,a,n,r){a||(a=new l);var d=r.baseTileWidth,s=r.baseTileHeight,h=r.tilemapLayer,c=0,p=0;h&&(n||(n=h.scene.cameras.main),c=h.x+n.scrollX*(1-h.scrollFactorX),p=h.y+n.scrollY*(1-h.scrollFactorY),d*=h.scaleX,s*=h.scaleY);var m=d/2,x=s/2,S,P;return this.staggerAxis==="y"?(S=c+d*u+d,P=p+1.5*o*x+x,o%2===0&&(this.staggerIndex==="odd"?S-=m:S+=m)):this.staggerAxis==="x"&&this.staggerIndex==="odd"&&(S=c+1.5*u*m+m,P=p+s*u+s,u%2===0&&(this.staggerIndex==="odd"?P-=x:P+=x)),a.set(S,P)};f.exports=g},11516:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(93736),g=function(u,o,a,n,r,d){n||(n=new l);var s=d.baseTileWidth,h=d.baseTileHeight,c=d.tilemapLayer;c&&(r||(r=c.scene.cameras.main),u=u-(c.x+r.scrollX*(1-c.scrollFactorX)),o=o-(c.y+r.scrollY*(1-c.scrollFactorY)),s*=c.scaleX,h*=c.scaleY);var p=.5773502691896257,m=-.3333333333333333,x=0,S=.6666666666666666,P=s/2,E=h/2,R,M,O,w,L;d.staggerAxis==="y"?(R=(u-P)/(p*s),M=(o-E)/E,O=p*R+m*M,w=x*R+S*M):(R=(u-P)/P,M=(o-E)/(p*h),O=m*R+p*M,w=S*R+x*M),L=-O-w;var F=Math.round(O),b=Math.round(w),D=Math.round(L),N=Math.abs(F-O),z=Math.abs(b-w),W=Math.abs(D-L);N>z&&N>W?F=-b-D:z>W&&(b=-F-D);var Y,j=b;return d.staggerIndex==="odd"?Y=j%2===0?b/2+F:b/2+F-.5:Y=j%2===0?b/2+F:b/2+F+.5,n.set(Y,j)};f.exports=g},62839:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){return t>=0&&t=0&&l{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(13125),g=function(u,o,a,n){a===void 0&&(a=[]),n===void 0&&(n=0),a.length=0;var r=u.tilemapLayer,d=u.data,s=u.width,h=u.height,c=r.skipCull,p=0,m=s,x=0,S=h,P,E,R;if(n===0){for(E=x;E=p;P--)if(c||l(P,E,u,o)){if(R=d[E][P],!R||R.index===-1||!R.visible||R.alpha===0)continue;a.push(R)}}else if(n===2){for(E=S;E>=x;E--)for(P=p;P=x;E--)for(P=m;P>=p;P--)if(c||l(P,E,u,o)){if(R=d[E][P],!R||R.index===-1||!R.visible||R.alpha===0)continue;a.push(R)}}return r.tilesDrawn=a.length,r.tilesTotal=s*h,a};f.exports=g},21808:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(93736),g=function(u,o,a,n,r){a||(a=new l);var d=r.baseTileWidth,s=r.baseTileHeight,h=r.tilemapLayer,c=0,p=0;h&&(n||(n=h.scene.cameras.main),c=h.x+n.scrollX*(1-h.scrollFactorX),d*=h.scaleX,p=h.y+n.scrollY*(1-h.scrollFactorY),s*=h.scaleY);var m=c+(u-o)*(d/2),x=p+(u+o)*(s/2);return a.set(m,x)};f.exports=g},18750:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(93736),g=function(u,o,a,n,r,d,s){n||(n=new l);var h=d.baseTileWidth,c=d.baseTileHeight,p=d.tilemapLayer;p&&(r||(r=p.scene.cameras.main),o=o-(p.y+r.scrollY*(1-p.scrollFactorY)),c*=p.scaleY,u=u-(p.x+r.scrollX*(1-p.scrollFactorX)),h*=p.scaleX);var m=h/2,x=c/2;u=u-m,s||(o=o-c);var S=.5*(u/m+o/x),P=.5*(-u/m+o/x);return a&&(S=Math.floor(S),P=Math.floor(P)),n.set(S,P)};f.exports=g},29003:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(29633),g=t(62839),u=t(92839),o=t(68234),a=function(n,r,d,s,h){if(s===void 0&&(s=!0),!g(r,d,h))return null;var c,p=h.data[d][r],m=p&&p.collides;n instanceof l?(h.data[d][r]===null&&(h.data[d][r]=new l(h,n.index,r,d,h.tileWidth,h.tileHeight)),h.data[d][r].copy(n)):(c=n,h.data[d][r]===null?h.data[d][r]=new l(h,c,r,d,h.tileWidth,h.tileHeight):h.data[d][r].index=c);var x=h.data[d][r],S=h.collideIndexes.indexOf(x.index)!==-1;if(c=n instanceof l?n.index:n,c===-1)x.width=h.tileWidth,x.height=h.tileHeight;else{var P=h.tilemapLayer.tilemap.tiles,E=P[c][2],R=h.tilemapLayer.tileset[E];x.width=R.tileWidth,x.height=R.tileHeight}return o(x,S),s&&m!==x.collides&&u(r,d,h),x};f.exports=a},48565:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(29003),g=t(93736),u=new g,o=function(a,n,r,d,s,h){return h.tilemapLayer.worldToTileXY(n,r,!0,u,s,h),l(a,u.x,u.y,d,h)};f.exports=o},56547:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(60386),g=t(29003),u=function(o,a,n,r,d){if(r===void 0&&(r=!0),!Array.isArray(o))return null;Array.isArray(o[0])||(o=[o]);for(var s=o.length,h=o[0].length,c=0;c{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(50811),g=t(72861),u=function(o,a,n,r,d,s){var h,c=l(o,a,n,r,{},s);if(!d)for(d=[],h=0;h{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(29633),g=t(62839),u=t(92839),o=function(a,n,r,d,s){if(r===void 0&&(r=!0),d===void 0&&(d=!0),!g(a,n,s))return null;var h=s.data[n][a];if(h)s.data[n][a]=r?null:new l(s,-1,a,n,s.tileWidth,s.tileHeight);else return null;return d&&h&&h.collides&&u(a,n,s),h};f.exports=o},17384:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(929),g=t(93736),u=new g,o=function(a,n,r,d,s,h){return h.tilemapLayer.worldToTileXY(a,n,!0,u,s,h),l(u.x,u.y,r,d,h)};f.exports=o},93763:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(50811),g=t(95509),u=new g(105,210,231,150),o=new g(243,134,48,200),a=new g(40,39,37,150),n=function(r,d,s){d===void 0&&(d={});var h=d.tileColor!==void 0?d.tileColor:u,c=d.collidingTileColor!==void 0?d.collidingTileColor:o,p=d.faceColor!==void 0?d.faceColor:a,m=l(0,0,s.width,s.height,null,s);r.translateCanvas(s.tilemapLayer.x,s.tilemapLayer.y),r.scaleCanvas(s.tilemapLayer.scaleX,s.tilemapLayer.scaleY);for(var x=0;x{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(50811),g=function(u,o,a,n,r,d,s){for(var h=l(a,n,r,d,null,s),c=0;c{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){var o=t.data,a=t.width,n=t.height,r=t.tilemapLayer,d=Math.max(0,l.left),s=Math.min(a,l.right),h=Math.max(0,l.top),c=Math.min(n,l.bottom),p,m,x;if(g===0)for(m=h;m=d;p--)x=o[m][p],!(!x||x.index===-1||!x.visible||x.alpha===0)&&u.push(x);else if(g===2)for(m=c;m>=h;m--)for(p=d;o[m]&&p=h;m--)for(p=s;o[m]&&p>=d;p--)x=o[m][p],!(!x||x.index===-1||!x.visible||x.alpha===0)&&u.push(x);return r.tilesDrawn=u.length,r.tilesTotal=a*n,u};f.exports=T},51710:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(68234),g=t(60386),u=t(91181),o=function(a,n,r,d,s){n===void 0&&(n=!0),r===void 0&&(r=!0),s===void 0&&(s=!0),Array.isArray(a)||(a=[a]);for(var h=0;h{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(68234),g=t(60386),u=t(91181),o=function(a,n,r,d,s,h){if(r===void 0&&(r=!0),d===void 0&&(d=!0),h===void 0&&(h=!0),!(a>n)){for(var c=a;c<=n;c++)u(c,r,s);if(h)for(var p=0;p=a&&x.index<=n&&l(x,r)}d&&g(0,0,s.width,s.height,s)}};f.exports=o},33158:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(68234),g=t(60386),u=t(91181),o=function(a,n,r,d){n===void 0&&(n=!0),r===void 0&&(r=!0),Array.isArray(a)||(a=[a]);for(var s=0;s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(68234),g=t(60386),u=t(19256),o=function(a,n,r,d){n===void 0&&(n=!0),r===void 0&&(r=!0);for(var s=0;s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(68234),g=t(60386),u=function(o,a,n){o===void 0&&(o=!0),a===void 0&&(a=!0);for(var r=0;r0&&l(s,o)}}a&&g(0,0,n.width,n.height,n)};f.exports=u},91181:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){var u=g.collideIndexes.indexOf(t);l&&u===-1?g.collideIndexes.push(t):!l&&u!==-1&&g.collideIndexes.splice(u,1)};f.exports=T},68234:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){l?t.setCollision(!0,!0,!0,!0,!1):t.resetCollision(!1)};f.exports=T},11628:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){if(typeof t=="number")u.callbacks[t]=l!==null?{callback:l,callbackContext:g}:void 0;else for(var o=0,a=t.length;o{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(50811),g=function(u,o,a,n,r,d,s){for(var h=l(u,o,a,n,null,s),c=0;c{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(50811),g=t(18592),u=function(o,a,n,r,d){var s=l(o,a,n,r,null,d),h=s.map(function(p){return p.index});g(h);for(var c=0;c{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(82127),g=t(84314),u=function(o,a){var n=o.tilemapLayer.tilemap,r=o.tilemapLayer,d=Math.floor(n.tileWidth*r.scaleX),s=Math.floor(n.tileHeight*r.scaleY),h=g(a.worldView.x-r.x,d,0,!0)-r.cullPaddingX,c=l(a.worldView.right-r.x,d,0,!0)+r.cullPaddingX,p=g(a.worldView.y-r.y,s/2,0,!0)-r.cullPaddingY,m=l(a.worldView.bottom-r.y,s/2,0,!0)+r.cullPaddingY;return{left:h,right:c,top:p,bottom:m}};f.exports=u},19242:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(53945),g=t(6987),u=function(o,a,n,r){n===void 0&&(n=[]),r===void 0&&(r=0),n.length=0;var d=o.tilemapLayer,s=l(o,a);return d.skipCull&&d.scrollFactorX===1&&d.scrollFactorY===1&&(s.left=0,s.right=o.width,s.top=0,s.bottom=o.height),g(o,s,r,n),n};f.exports=u},33388:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(93736),g=function(u,o,a,n,r){a||(a=new l);var d=r.baseTileWidth,s=r.baseTileHeight,h=r.tilemapLayer,c=0,p=0;h&&(n||(n=h.scene.cameras.main),c=h.x+n.scrollX*(1-h.scrollFactorX),d*=h.scaleX,p=h.y+n.scrollY*(1-h.scrollFactorY),s*=h.scaleY);var m=c+u*d+o%2*(d/2),x=p+o*(s/2);return a.set(m,x)};f.exports=g},84132:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){var u=g.baseTileHeight,o=g.tilemapLayer,a=0;return o&&(l===void 0&&(l=o.scene.cameras.main),a=o.y+l.scrollY*(1-o.scrollFactorY),u*=o.scaleY),a+t*(u/2)+u};f.exports=T},90562:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(93736),g=function(u,o,a,n,r,d){n||(n=new l);var s=d.baseTileWidth,h=d.baseTileHeight,c=d.tilemapLayer;c&&(r||(r=c.scene.cameras.main),o=o-(c.y+r.scrollY*(1-c.scrollFactorY)),h*=c.scaleY,u=u-(c.x+r.scrollX*(1-c.scrollFactorX)),s*=c.scaleX);var p=a?Math.floor(o/(h/2)):o/(h/2),m=a?Math.floor((u+p%2*.5*s)/s):(u+p%2*.5*s)/s;return n.set(m,p)};f.exports=g},3689:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){var o=u.baseTileHeight,a=u.tilemapLayer;return a&&(g||(g=a.scene.cameras.main),t=t-(a.y+g.scrollY*(1-a.scrollFactorY)),o*=a.scaleY),l?Math.floor(t/(o/2)):t/(o/2)};f.exports=T},55217:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(50811),g=function(u,o,a,n,r,d,s){for(var h=l(a,n,r,d,null,s),c=0;c{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){var u=g.baseTileWidth,o=g.tilemapLayer,a=0;return o&&(l||(l=o.scene.cameras.main),a=o.x+l.scrollX*(1-o.scrollFactorX),u*=o.scaleX),a+t*u};f.exports=T},46836:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(44150),g=t(42477),u=t(93736),o=function(a,n,r,d,s){return r||(r=new u(0,0)),r.x=l(a,d,s),r.y=g(n,d,s),r};f.exports=o},42477:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){var u=g.baseTileHeight,o=g.tilemapLayer,a=0;return o&&(l||(l=o.scene.cameras.main),a=o.y+l.scrollY*(1-o.scrollFactorY),u*=o.scaleY),a+t*u};f.exports=T},39677:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(50811),g=function(u,o,a,n,r,d){if(r){var s,h=l(u,o,a,n,null,d),c=0;for(s=0;s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(45676),g=t(93736),u=new g,o=function(a,n,r,d){return l(a,0,n,u,r,d),u.x};f.exports=o},45676:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(93736),g=function(u,o,a,n,r,d){a===void 0&&(a=!0),n||(n=new l);var s=d.baseTileWidth,h=d.baseTileHeight,c=d.tilemapLayer;c&&(r||(r=c.scene.cameras.main),u=u-(c.x+r.scrollX*(1-c.scrollFactorX)),o=o-(c.y+r.scrollY*(1-c.scrollFactorY)),s*=c.scaleX,h*=c.scaleY);var p=u/s,m=o/h;return a&&(p=Math.floor(p),m=Math.floor(m)),n.set(p,m)};f.exports=g},70520:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(45676),g=t(93736),u=new g,o=function(a,n,r,d){return l(0,a,n,u,r,d),u.y};f.exports=o},5047:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={CalculateFacesAt:t(92839),CalculateFacesWithin:t(60386),CheckIsoBounds:t(13125),Copy:t(17347),CreateFromTiles:t(93604),CullBounds:t(71586),CullTiles:t(381),Fill:t(97734),FilterTiles:t(63555),FindByIndex:t(37982),FindTile:t(48297),ForEachTile:t(80916),GetCullTilesFunction:t(31493),GetTileAt:t(15494),GetTileAtWorldXY:t(24640),GetTileCorners:t(48495),GetTileCornersFunction:t(7160),GetTilesWithin:t(50811),GetTilesWithinShape:t(31674),GetTilesWithinWorldXY:t(44662),GetTileToWorldXFunction:t(16884),GetTileToWorldXYFunction:t(68182),GetTileToWorldYFunction:t(3752),GetWorldToTileXFunction:t(29296),GetWorldToTileXYFunction:t(32688),GetWorldToTileYFunction:t(74326),HasTileAt:t(46598),HasTileAtWorldXY:t(28654),HexagonalCullBounds:t(6358),HexagonalCullTiles:t(37524),HexagonalGetTileCorners:t(63634),HexagonalTileToWorldXY:t(21715),HexagonalWorldToTileXY:t(11516),IsInLayerBounds:t(62839),IsometricCullTiles:t(20887),IsometricTileToWorldXY:t(21808),IsometricWorldToTileXY:t(18750),PutTileAt:t(29003),PutTileAtWorldXY:t(48565),PutTilesAt:t(56547),Randomize:t(91180),RemoveTileAt:t(929),RemoveTileAtWorldXY:t(17384),RenderDebug:t(93763),ReplaceByIndex:t(51202),RunCull:t(6987),SetCollision:t(51710),SetCollisionBetween:t(15216),SetCollisionByExclusion:t(33158),SetCollisionByProperty:t(4180),SetCollisionFromCollisionGroup:t(18625),SetLayerCollisionIndex:t(91181),SetTileCollision:t(68234),SetTileIndexCallback:t(11628),SetTileLocationCallback:t(72732),Shuffle:t(34397),StaggeredCullBounds:t(53945),StaggeredCullTiles:t(19242),StaggeredTileToWorldXY:t(33388),StaggeredTileToWorldY:t(84132),StaggeredWorldToTileXY:t(90562),StaggeredWorldToTileY:t(3689),SwapByIndex:t(55217),TileToWorldX:t(44150),TileToWorldXY:t(46836),TileToWorldY:t(42477),WeightedRandomize:t(39677),WorldToTileX:t(806),WorldToTileXY:t(45676),WorldToTileY:t(70520)}},12920:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={ORTHOGONAL:0,ISOMETRIC:1,STAGGERED:2,HEXAGONAL:3}},84758:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l={ORIENTATION:t(12920)};f.exports=l},52678:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(98611),g=t(84758),u={Components:t(5047),Parsers:t(34124),Formats:t(93560),ImageCollection:t(97042),ParseToTilemap:t(15043),Tile:t(29633),Tilemap:t(89797),TilemapCreator:t(4843),TilemapFactory:t(37940),Tileset:t(47975),TilemapLayer:t(87177),Orientation:t(12920),LayerData:t(94990),MapData:t(16586),ObjectLayer:t(15256)};u=l(!1,u,g.ORIENTATION),f.exports=u},94990:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(12920),u=t(72632),o=new l({initialize:function(n){n===void 0&&(n={}),this.name=u(n,"name","layer"),this.x=u(n,"x",0),this.y=u(n,"y",0),this.width=u(n,"width",0),this.height=u(n,"height",0),this.tileWidth=u(n,"tileWidth",0),this.tileHeight=u(n,"tileHeight",0),this.baseTileWidth=u(n,"baseTileWidth",this.tileWidth),this.baseTileHeight=u(n,"baseTileHeight",this.tileHeight),this.orientation=u(n,"orientation",g.ORTHOGONAL),this.widthInPixels=u(n,"widthInPixels",this.width*this.baseTileWidth),this.heightInPixels=u(n,"heightInPixels",this.height*this.baseTileHeight),this.alpha=u(n,"alpha",1),this.visible=u(n,"visible",!0),this.properties=u(n,"properties",[]),this.indexes=u(n,"indexes",[]),this.collideIndexes=u(n,"collideIndexes",[]),this.callbacks=u(n,"callbacks",[]),this.bodies=u(n,"bodies",[]),this.data=u(n,"data",[]),this.tilemapLayer=u(n,"tilemapLayer",null),this.hexSideLength=u(n,"hexSideLength",0),this.staggerAxis=u(n,"staggerAxis","y"),this.staggerIndex=u(n,"staggerIndex","odd")}});f.exports=o},16586:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(12920),u=t(72632),o=new l({initialize:function(n){n===void 0&&(n={}),this.name=u(n,"name","map"),this.width=u(n,"width",0),this.height=u(n,"height",0),this.infinite=u(n,"infinite",!1),this.tileWidth=u(n,"tileWidth",0),this.tileHeight=u(n,"tileHeight",0),this.widthInPixels=u(n,"widthInPixels",this.width*this.tileWidth),this.heightInPixels=u(n,"heightInPixels",this.height*this.tileHeight),this.format=u(n,"format",null),this.orientation=u(n,"orientation",g.ORTHOGONAL),this.renderOrder=u(n,"renderOrder","right-down"),this.version=u(n,"version","1"),this.properties=u(n,"properties",{}),this.layers=u(n,"layers",[]),this.images=u(n,"images",[]),this.objects=u(n,"objects",[]),Array.isArray(this.objects)||(this.objects=[]),this.collision=u(n,"collision",{}),this.tilesets=u(n,"tilesets",[]),this.imageCollections=u(n,"imageCollections",[]),this.tiles=u(n,"tiles",[]),this.hexSideLength=u(n,"hexSideLength",0),this.staggerAxis=u(n,"staggerAxis","y"),this.staggerIndex=u(n,"staggerIndex","odd")}});f.exports=o},15256:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(72632),u=new l({initialize:function(a){a===void 0&&(a={}),this.name=g(a,"name","object layer"),this.opacity=g(a,"opacity",1),this.properties=g(a,"properties",{}),this.propertyTypes=g(a,"propertytypes",{}),this.type=g(a,"type","objectgroup"),this.visible=g(a,"visible",!0),this.objects=g(a,"objects",[]),Array.isArray(this.objects)||(this.objects=[])}});f.exports=u},21394:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(12920),g=function(u){return u=u.toLowerCase(),u==="isometric"?l.ISOMETRIC:u==="staggered"?l.STAGGERED:u==="hexagonal"?l.HEXAGONAL:l.ORTHOGONAL};f.exports=g},90715:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(93560),g=t(84346),u=t(96097),o=t(2378),a=t(44909),n=function(r,d,s,h,c,p){var m;switch(d){case l.ARRAY_2D:m=g(r,s,h,c,p);break;case l.CSV:m=u(r,s,h,c,p);break;case l.TILED_JSON:m=o(r,s,p);break;case l.WELTMEISTER:m=a(r,s,p);break;default:console.warn("Unrecognized tilemap data format: "+d),m=null}return m};f.exports=n},84346:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(93560),g=t(94990),u=t(16586),o=t(29633),a=function(n,r,d,s,h){for(var c=new g({tileWidth:d,tileHeight:s}),p=new u({name:n,tileWidth:d,tileHeight:s,format:l.ARRAY_2D,layers:[c]}),m=[],x=r.length,S=0,P=0;P{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(93560),g=t(84346),u=function(o,a,n,r,d){var s=a.trim().split(` +`).map(function(c){return c.split(",")}),h=g(o,s,n,r,d);return h.format=l.CSV,h};f.exports=u},30951:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(94990),g=t(29633),u=function(o,a){for(var n=[],r=0;r-1?S=new g(s,x,m,p,d.tilesize,d.tilesize):S=a?null:new g(s,-1,m,p,d.tilesize,d.tilesize),h.push(S)}c.push(h),h=[]}s.data=c,n.push(s)}return n};f.exports=u},47488:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(47975),g=function(u){for(var o=[],a=[],n=0;n{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(93560),g=t(16586),u=t(30951),o=t(47488),a=function(n,r,d){if(r.layer.length===0)return console.warn("No layers found in the Weltmeister map: "+n),null;for(var s=0,h=0,c=0;cs&&(s=r.layer[c].width),r.layer[c].height>h&&(h=r.layer[c].height);var p=new g({width:s,height:h,name:n,tileWidth:r.layer[0].tilesize,tileHeight:r.layer[0].tilesize,format:l.WELTMEISTER});return p.layers=u(r,d),p.tilesets=o(r),p};f.exports=a},24507:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={ParseTileLayers:t(30951),ParseTilesets:t(47488),ParseWeltmeister:t(44909)}},34124:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={FromOrientationString:t(21394),Parse:t(90715),Parse2DArray:t(84346),ParseCSV:t(96097),Impact:t(24507),Tiled:t(50044)}},48646:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(98611),g=function(u){for(var o,a,n,r,d,s=0;s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){for(var l=window.atob(t),g=l.length,u=new Array(g/4),o=0;o>>0;return u};f.exports=T},14556:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(47975),g=function(u){var o,a,n=[];for(o=0;o{/** + * @author Seth Berrier + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72632),g=function(u,o,a){if(!o)return{i:0,layers:u.layers,name:"",opacity:1,visible:!0,x:0,y:0};var n=o.x+l(o,"startx",0)*u.tilewidth+l(o,"offsetx",0),r=o.y+l(o,"starty",0)*u.tileheight+l(o,"offsety",0);return{i:0,layers:o.layers,name:a.name+o.name+"/",opacity:a.opacity*o.opacity,visible:a.visible&&o.visible,x:a.x+n,y:a.y+r}};f.exports=g},8847:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=2147483648,t=1073741824,l=536870912,g=function(u){var o=!!(u&T),a=!!(u&t),n=!!(u&l);u=u&~(T|t|l);var r=0,d=!1;return o&&a&&n?(r=Math.PI/2,d=!0):o&&a&&!n?(r=Math.PI,d=!1):o&&!a&&n?(r=Math.PI/2,d=!1):o&&!a&&!n?(r=0,d=!0):!o&&a&&n?(r=3*Math.PI/2,d=!1):!o&&a&&!n?(r=Math.PI,d=!0):!o&&!a&&n?(r=3*Math.PI/2,d=!0):!o&&!a&&!n&&(r=0,d=!1),{gid:u,flippedHorizontal:o,flippedVertical:a,flippedAntiDiagonal:n,rotation:r,flipped:d}};f.exports=g},78339:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72632),g=t(92044),u=function(o){for(var a=[],n=[],r=g(o);r.i0;){if(r.i>=r.layers.length){if(n.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}r=n.pop();continue}var d=r.layers[r.i];if(r.i++,d.type!=="imagelayer"){if(d.type==="group"){var s=g(o,d,r);n.push(r),r=s}continue}var h=l(d,"offsetx",0)+l(d,"startx",0),c=l(d,"offsety",0)+l(d,"starty",0);a.push({name:r.name+d.name,image:d.image,x:r.x+h+d.x,y:r.y+c+d.y,alpha:r.opacity*d.opacity,visible:r.visible&&d.visible,properties:l(d,"properties",{})})}return a};f.exports=u},2378:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(48646),g=t(14556),u=t(12920),o=t(28699),a=t(93560),n=t(21394),r=t(16586),d=t(78339),s=t(61136),h=t(95925),c=t(93392),p=function(m,x,S){var P=o(x),E=new r({width:P.width,height:P.height,name:m,tileWidth:P.tilewidth,tileHeight:P.tileheight,orientation:n(P.orientation),format:a.TILED_JSON,version:P.version,properties:P.properties,renderOrder:P.renderorder,infinite:P.infinite});E.orientation===u.HEXAGONAL&&(E.hexSideLength=P.hexsidelength,E.staggerAxis=P.staggeraxis,E.staggerIndex=P.staggerindex),E.layers=h(P,S),E.images=d(P);var R=c(P);return E.tilesets=R.tilesets,E.imageCollections=R.imageCollections,E.objects=s(P),E.tiles=g(E),l(E),E};f.exports=p},4281:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(28820),g=t(8847),u=function(n){return{x:n.x,y:n.y}},o=["id","name","type","rotation","properties","visible","x","y","width","height"],a=function(n,r,d){r===void 0&&(r=0),d===void 0&&(d=0);var s=l(n,o);if(s.x+=r,s.y+=d,n.gid){var h=g(n.gid);s.gid=h.gid,s.flippedHorizontal=h.flippedHorizontal,s.flippedVertical=h.flippedVertical,s.flippedAntiDiagonal=h.flippedAntiDiagonal}else n.polyline?s.polyline=n.polyline.map(u):n.polygon?s.polygon=n.polygon.map(u):n.ellipse?s.ellipse=n.ellipse:n.text?s.text=n.text:n.point?s.point=!0:s.rectangle=!0;return s};f.exports=a},61136:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72632),g=t(4281),u=t(15256),o=t(92044),a=function(n){for(var r=[],d=[],s=o(n);s.i0;){if(s.i>=s.layers.length){if(d.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}s=d.pop();continue}var h=s.layers[s.i];if(s.i++,h.opacity*=s.opacity,h.visible=s.visible&&h.visible,h.type!=="objectgroup"){if(h.type==="group"){var c=o(n,h,s);d.push(s),s=c}continue}h.name=s.name+h.name;for(var p=s.x+l(h,"startx",0)+l(h,"offsetx",0),m=s.y+l(h,"starty",0)+l(h,"offsety",0),x=[],S=0;S{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(43908),g=t(12920),u=t(92044),o=t(21394),a=t(72632),n=t(94990),r=t(8847),d=t(29633),s=function(h,c){for(var p=a(h,"infinite",!1),m=[],x=[],S=u(h);S.i0;){if(S.i>=S.layers.length){if(x.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}S=x.pop();continue}var P=S.layers[S.i];if(S.i++,P.type!=="tilelayer"){if(P.type==="group"){var E=u(h,P,S);x.push(S),S=E}continue}if(P.compression){console.warn("TilemapParser.parseTiledJSON - Layer compression is unsupported, skipping layer '"+P.name+"'");continue}else if(P.encoding&&P.encoding==="base64"){if(P.chunks)for(var R=0;R0?(w=new d(M,O.gid,U,X,h.tilewidth,h.tileheight),w.rotation=O.rotation,w.flipX=O.flipped,F[X][U]=w):(L=c?null:new d(M,-1,U,X,h.tilewidth,h.tileheight),F[X][U]=L),b++,b===Y.width&&(V++,b=0)}}else{M=new n({name:S.name+P.name,x:S.x+a(P,"offsetx",0)+P.x,y:S.y+a(P,"offsety",0)+P.y,width:P.width,height:P.height,tileWidth:h.tilewidth,tileHeight:h.tileheight,alpha:S.opacity*P.opacity,visible:S.visible&&P.visible,properties:a(P,"properties",[]),orientation:o(h.orientation)}),M.orientation===g.HEXAGONAL&&(M.hexSideLength=h.hexsidelength,M.staggerAxis=h.staggeraxis,M.staggerIndex=h.staggerindex);for(var $=[],k=0,K=P.data.length;k0?(w=new d(M,O.gid,b,F.length,h.tilewidth,h.tileheight),w.rotation=O.rotation,w.flipX=O.flipped,$.push(w)):(L=c?null:new d(M,-1,b,F.length,h.tilewidth,h.tileheight),$.push(L)),b++,b===P.width&&(F.push($),b=0,$=[])}M.data=F,m.push(M)}return m};f.exports=s},93392:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(47975),g=t(97042),u=t(4281),o=t(39642),a=function(n){for(var r=[],d=[],s=null,h,c=0;c1){var x=void 0,S=void 0;if(Array.isArray(p.tiles)){x=x||{},S=S||{};for(var P=0;P{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){for(var g=0;g0){var a={},n={},r,d,s;if(Array.isArray(u.edgecolors))for(r=0;r{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={AssignTileProperties:t(48646),Base64Decode:t(43908),BuildTilesetIndex:t(14556),CreateGroupLayer:t(92044),ParseGID:t(8847),ParseImageLayers:t(78339),ParseJSONTiled:t(2378),ParseObject:t(4281),ParseObjectLayers:t(61136),ParseTileLayers:t(95925),ParseTilesets:t(93392)}},73779:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(91963),u=t(7599),o=t(57911),a=t(66458),n=new l({initialize:function(d){this.scene=d,this.systems=d.sys,this.now=0,this.startTime=0,this.timeScale=1,this.paused=!1,this._active=[],this._pendingInsertion=[],this._pendingRemoval=[],d.sys.events.once(u.BOOT,this.boot,this),d.sys.events.on(u.START,this.start,this)},boot:function(){this.now=this.systems.game.loop.time,this.systems.events.once(u.DESTROY,this.destroy,this)},start:function(){this.startTime=this.systems.game.loop.time;var r=this.systems.events;r.on(u.PRE_UPDATE,this.preUpdate,this),r.on(u.UPDATE,this.update,this),r.once(u.SHUTDOWN,this.shutdown,this)},addEvent:function(r){var d;return r instanceof o?(d=r,this.removeEvent(d),d.elapsed=d.startAt,d.hasDispatched=!1,d.repeatCount=d.repeat===-1||d.loop?999999999999:d.repeat):d=new o(r),this._pendingInsertion.push(d),d},delayedCall:function(r,d,s,h){return this.addEvent({delay:r,callback:d,args:s,callbackScope:h})},clearPendingEvents:function(){return this._pendingInsertion=[],this},removeEvent:function(r){Array.isArray(r)||(r=[r]);for(var d=0;d-1&&this._active.splice(c,1),h.destroy()}for(s=0;s=h.delay)){var c=h.elapsed-h.delay;if(h.elapsed=h.delay,!h.hasDispatched&&h.callback&&(h.hasDispatched=!0,h.callback.apply(h.callbackScope,h.args)),h.repeatCount>0){if(h.repeatCount--,c>=h.delay)for(;c>=h.delay&&h.repeatCount>0;)h.callback&&h.callback.apply(h.callbackScope,h.args),c-=h.delay,h.repeatCount--;h.elapsed=c,h.hasDispatched=!1}else h.hasDispatched&&this._pendingRemoval.push(h)}}}},shutdown:function(){var r;for(r=0;r{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(6659),u=t(61286),o=t(72632),a=t(7599),n=new l({Extends:g,initialize:function(d,s){g.call(this),this.scene=d,this.systems=d.sys,this.elapsed=0,this.paused=!0,this.complete=!1,this.totalComplete=0,this.events=[];var h=this.systems.events;h.on(a.PRE_UPDATE,this.preUpdate,this),h.on(a.UPDATE,this.update,this),h.once(a.SHUTDOWN,this.destroy,this),s&&this.add(s)},preUpdate:function(r,d){this.paused||(this.elapsed+=d)},update:function(){if(!this.paused){var r,d=this.events,s=!1,h=this.systems,c;for(r=0;r=d.length&&(this.complete=!0)}},play:function(r){return r===void 0&&(r=!0),this.paused=!1,this.complete=!1,this.totalComplete=0,r&&this.reset(),this},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this},stop:function(){return this.paused=!0,this.complete=!0,this},reset:function(){this.elapsed=0;for(var r=0;r0&&(s=d[d.length-1].time);for(var h=0;h{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(72632),u=new l({initialize:function(a){this.delay=0,this.repeat=0,this.repeatCount=0,this.loop=!1,this.callback,this.callbackScope,this.args,this.timeScale=1,this.startAt=0,this.elapsed=0,this.paused=!1,this.hasDispatched=!1,this.reset(a)},reset:function(o){if(this.delay=g(o,"delay",0),this.repeat=g(o,"repeat",0),this.loop=g(o,"loop",!1),this.callback=g(o,"callback",void 0),this.callbackScope=g(o,"callbackScope",this),this.args=g(o,"args",[]),this.timeScale=g(o,"timeScale",1),this.startAt=g(o,"startAt",0),this.paused=g(o,"paused",!1),this.elapsed=this.startAt,this.hasDispatched=!1,this.repeatCount=this.repeat===-1||this.loop?999999999999:this.repeat,this.delay===0&&(this.repeat>0||this.loop))throw new Error("TimerEvent infinite loop created via zero delay");return this},getProgress:function(){return this.elapsed/this.delay},getOverallProgress:function(){if(this.repeat>0){var o=this.delay+this.delay*this.repeat,a=this.elapsed+this.delay*(this.repeat-this.repeatCount);return a/o}else return this.getProgress()},getRepeatCount:function(){return this.repeatCount},getElapsed:function(){return this.elapsed},getElapsedSeconds:function(){return this.elapsed*.001},getRemaining:function(){return this.delay-this.elapsed},getRemainingSeconds:function(){return this.getRemaining()*.001},getOverallRemaining:function(){return this.delay*(1+this.repeatCount)-this.elapsed},getOverallRemainingSeconds:function(){return this.getOverallRemaining()*.001},remove:function(o){o===void 0&&(o=!1),this.elapsed=this.delay,this.hasDispatched=!o,this.repeatCount=0},destroy:function(){this.callback=void 0,this.callbackScope=void 0,this.args=[]}});f.exports=u},97121:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Clock:t(73779),Timeline:t(20517),TimerEvent:t(57911)}},64532:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(66458),g=t(56694),u=t(5454),o=t(68710),a=t(91963),n=t(7599),r=t(91944),d=t(39366),s=t(68061),h=t(45641),c=t(56034),p=new g({initialize:function(x){this.scene=x,this.events=x.sys.events,this.timeScale=1,this.paused=!1,this.processing=!1,this.tweens=[],this.time=0,this.startTime=0,this.nextTime=0,this.prevTime=0,this.maxLag=500,this.lagSkip=33,this.gap=1e3/240,this.events.once(n.BOOT,this.boot,this),this.events.on(n.START,this.start,this)},boot:function(){this.events.once(n.DESTROY,this.destroy,this)},start:function(){this.timeScale=1,this.paused=!1,this.startTime=Date.now(),this.prevTime=this.startTime,this.nextTime=this.gap,this.events.on(n.UPDATE,this.update,this),this.events.once(n.SHUTDOWN,this.shutdown,this)},create:function(m){Array.isArray(m)||(m=[m]);for(var x=[],S=0;S-1},existing:function(m){return this.has(m)||this.tweens.push(m.reset()),this},addCounter:function(m){var x=o(this,m);return this.tweens.push(x.reset()),x},stagger:function(m,x){return r(m,x)},setLagSmooth:function(m,x){return m===void 0&&(m=1/1e-8),x===void 0&&(x=0),this.maxLag=m,this.lagSkip=Math.min(x,this.maxLag),this},setFps:function(m){return m===void 0&&(m=240),this.gap=1e3/m,this.nextTime=this.time*1e3+this.gap,this},getDelta:function(m){var x=Date.now()-this.prevTime;x>this.maxLag&&(this.startTime+=x-this.lagSkip),this.prevTime+=x;var S=this.prevTime-this.startTime,P=S-this.nextTime,E=S-this.time*1e3;return P>0||m?(S/=1e3,this.time=S,this.nextTime+=P+(P>=this.gap?4:this.gap-P)):E=0,E},tick:function(){return this.step(!0),this},update:function(){this.paused||this.step(!1)},step:function(m){m===void 0&&(m=!1);var x=this.getDelta(m);if(!(x<=0)){this.processing=!0;var S,P,E=[],R=this.tweens;for(S=0;S0){for(S=0;S-1&&(P.isPendingRemove()||P.isDestroyed())&&(R.splice(O,1),P.destroy())}E.length=0}this.processing=!1}},remove:function(m){return this.processing?m.setPendingRemoveState():(l(this.tweens,m),m.setRemovedState()),this},reset:function(m){return this.existing(m),m.seek(),m.setActiveState(),this},makeActive:function(m){return this.existing(m),m.setActiveState(),this},each:function(m,x){var S,P=[null];for(S=1;S{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){return t&&t.hasOwnProperty(l)?t[l]:g};f.exports=T},21902:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(35060),g=t(40587),u=function(o,a){var n=l.Power0;if(typeof o=="string")if(l.hasOwnProperty(o))n=l[o];else{var r="";if(o.indexOf(".")){r=o.substring(o.indexOf(".")+1);var d=r.toLowerCase();d==="in"?r="easeIn":d==="out"?r="easeOut":d==="inout"&&(r="easeInOut")}o=g(o.substring(0,o.indexOf(".")+1)+r),l.hasOwnProperty(o)&&(n=l[o])}else typeof o=="function"&&(n=o);if(!a)return n;var s=a.slice(0);return s.unshift(0),function(h){return s[0]=h,n.apply(this,s)}};f.exports=u},4840:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(63210),g=t(88332),u=t(47614),o={bezier:l,catmull:g,catmullrom:g,linear:u},a=function(n){if(n===null)return null;var r=o.linear;return typeof n=="string"?o.hasOwnProperty(n)&&(r=o[n]):typeof n=="function"&&(r=n),r};f.exports=a},28348:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){var u;if(t.hasOwnProperty(l)){var o=typeof t[l];o==="function"?u=function(a,n,r,d,s,h){return t[l](a,n,r,d,s,h)}:u=function(){return t[l]}}else typeof g=="function"?u=g:u=function(){return g};return u};f.exports=T},92407:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(53709),g=function(u){var o,a=[];if(u.hasOwnProperty("props"))for(o in u.props)o.substring(0,1)!=="_"&&a.push({key:o,value:u.props[o]});else for(o in u)l.indexOf(o)===-1&&o.substring(0,1)!=="_"&&a.push({key:o,value:u[o]});return a};f.exports=g},65868:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(10850),g=function(u){var o=l(u,"targets",null);return o===null||(typeof o=="function"&&(o=o.call()),Array.isArray(o)||(o=[o])),o};f.exports=g},9744:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(17489),g=t(61616);function u(d){return!!d.getActive&&typeof d.getActive=="function"}function o(d){return!!d.getStart&&typeof d.getStart=="function"}function a(d){return!!d.getEnd&&typeof d.getEnd=="function"}function n(d){return o(d)||a(d)||u(d)}var r=function(d,s){var h,c=function(Y,j,G){return G},p=function(Y,j,G){return G},m=null,x=typeof s;if(x==="number")c=function(){return s};else if(Array.isArray(s))p=function(){return s[0]},c=function(){return s[s.length-1]};else if(x==="string"){var S=s.toLowerCase(),P=S.substring(0,6)==="random",E=S.substring(0,3)==="int";if(P||E){var R=S.indexOf("("),M=S.indexOf(")"),O=S.indexOf(",");if(R&&M&&O){var w=parseFloat(S.substring(R+1,O)),L=parseFloat(S.substring(O+1,M));P?c=function(){return g(w,L)}:c=function(){return l(w,L)}}else throw new Error("invalid random() format")}else{S=S[0];var F=parseFloat(s.substr(2));switch(S){case"+":c=function(Y,j,G){return G+F};break;case"-":c=function(Y,j,G){return G-F};break;case"*":c=function(Y,j,G){return G*F};break;case"/":c=function(Y,j,G){return G/F};break;default:c=function(){return parseFloat(s)}}}}else if(x==="function")c=s;else if(x==="object")if(n(s))u(s)&&(m=s.getActive),a(s)&&(c=s.getEnd),o(s)&&(p=s.getStart);else if(s.hasOwnProperty("value"))h=r(d,s.value);else{var b=s.hasOwnProperty("to"),D=s.hasOwnProperty("from"),N=s.hasOwnProperty("start");if(b&&(D||N)){if(h=r(d,s.to),N){var z=r(d,s.start);h.getActive=z.getEnd}if(D){var W=r(d,s.from);h.getStart=W.getEnd}}}return h||(h={getActive:m,getEnd:c,getStart:p}),h};f.exports=r},68710:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(502),g=t(99730),u=t(20494),o=t(63130),a=t(21902),n=t(28348),r=t(10850),d=t(9744),s=t(72066),h=t(39366),c=function(p,m,x){if(m instanceof h)return m.parent=p,m;x===void 0?x=g:x=s(g,x);var S=r(m,"from",0),P=r(m,"to",1),E=[{value:S}],R=r(m,"delay",x.delay),M=r(m,"easeParams",x.easeParams),O=r(m,"ease",x.ease),w=d("value",P),L=new h(p,E),F=L.add(0,"value",w.getEnd,w.getStart,w.getActive,a(r(m,"ease",O),r(m,"easeParams",M)),n(m,"delay",R),r(m,"duration",x.duration),o(m,"yoyo",x.yoyo),r(m,"hold",x.hold),r(m,"repeat",x.repeat),r(m,"repeatDelay",x.repeatDelay),!1,!1);F.start=S,F.current=S,L.completeDelay=u(m,"completeDelay",0),L.loop=Math.round(u(m,"loop",0)),L.loopDelay=Math.round(u(m,"loopDelay",0)),L.paused=o(m,"paused",!1),L.persist=o(m,"persist",!1),L.callbackScope=r(m,"callbackScope",L);for(var b=l.TYPES,D=0;D{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(21902),g=t(10850),u=t(83392),o=function(a,n){n===void 0&&(n={});var r,d=g(n,"start",0),s=g(n,"ease",null),h=g(n,"grid",null),c=g(n,"from",0),p=c==="first",m=c==="center",x=c==="last",S=typeof c=="number",P=Array.isArray(a),E=parseFloat(P?a[0]:a),R=P?parseFloat(a[1]):0,M=Math.max(E,R);if(P&&(d+=E),h){var O=h[0],w=h[1],L=0,F=0,b=0,D=0,N=[];x?(L=O-1,F=w-1):S?(L=c%O,F=Math.floor(c/O)):m&&(L=(O-1)/2,F=(w-1)/2);for(var z=u.MIN_SAFE_INTEGER,W=0;Wz&&(z=j),N[W][Y]=j}}}var G=s?l(s):null;return h?r=function(V,I,B,U){var X=0,$=U%O,k=Math.floor(U/O);$>=0&&$=0&&k{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(502),g=t(99730),u=t(20494),o=t(63130),a=t(21902),n=t(4840),r=t(28348),d=t(92407),s=t(65868),h=t(10850),c=t(9744),p=t(72066),m=t(39366),x=function(S,P,E){if(P instanceof m)return P.parent=S,P;E===void 0?E=g:E=p(g,E);var R=s(P);!R&&E.targets&&(R=E.targets);for(var M=d(P),O=h(P,"delay",E.delay),w=h(P,"duration",E.duration),L=h(P,"easeParams",E.easeParams),F=h(P,"ease",E.ease),b=h(P,"hold",E.hold),D=h(P,"repeat",E.repeat),N=h(P,"repeatDelay",E.repeatDelay),z=o(P,"yoyo",E.yoyo),W=o(P,"flipX",E.flipX),Y=o(P,"flipY",E.flipY),j=h(P,"interpolation",E.interpolation),G=function(_,et,it,tt){if(it==="texture"){var st=tt,mt=void 0;Array.isArray(tt)?(st=tt[0],mt=tt[1]):tt.hasOwnProperty("value")?(st=tt.value,Array.isArray(tt.value)?(st=tt.value[0],mt=tt.value[1]):typeof tt.value=="string"&&(st=tt.value)):typeof tt=="string"&&(st=tt),_.addFrame(et,st,mt,r(tt,"delay",O),h(tt,"duration",w),h(tt,"hold",b),h(tt,"repeat",D),h(tt,"repeatDelay",N),o(tt,"flipX",W),o(tt,"flipY",Y))}else{var ct=c(it,tt),ft=n(h(tt,"interpolation",j));_.add(et,it,ct.getEnd,ct.getStart,ct.getActive,a(h(tt,"ease",F),h(tt,"easeParams",L)),r(tt,"delay",O),h(tt,"duration",w),o(tt,"yoyo",z),h(tt,"hold",b),h(tt,"repeat",D),h(tt,"repeatDelay",N),o(tt,"flipX",W),o(tt,"flipY",Y),ft,ft?tt:null)}},V=new m(S,R),I=0;I{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(502),g=t(20494),u=t(63130),o=t(65868),a=t(10850),n=t(68061),r=t(45641),d=function(s,h){if(h instanceof r)return h.parent=s,h;var c=new r(s);c.startDelay=a(h,"delay",0),c.completeDelay=g(h,"completeDelay",0),c.loop=Math.round(g(h,"loop",a(h,"repeat",0))),c.loopDelay=Math.round(g(h,"loopDelay",a(h,"repeatDelay",0))),c.paused=u(h,"paused",!1),c.persist=u(h,"persist",!0),c.callbackScope=a(h,"callbackScope",c);var p,m=l.TYPES;for(p=0;p{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={GetBoolean:t(63130),GetEaseFunction:t(21902),GetInterpolationFunction:t(4840),GetNewValue:t(28348),GetProps:t(92407),GetTargets:t(65868),GetValueOp:t(9744),NumberTweenBuilder:t(68710),StaggerBuilder:t(91944),TweenBuilder:t(68061)}},5570:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="active"},6383:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="complete"},72582:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="loop"},90281:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="pause"},80803:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="repeat"},13640:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="resume"},10472:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="start"},5379:f=>{/** + * @author samme + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="stop"},43449:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="update"},61541:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports="yoyo"},54272:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={TWEEN_ACTIVE:t(5570),TWEEN_COMPLETE:t(6383),TWEEN_LOOP:t(72582),TWEEN_PAUSE:t(90281),TWEEN_RESUME:t(13640),TWEEN_REPEAT:t(80803),TWEEN_START:t(10472),TWEEN_STOP:t(5379),TWEEN_UPDATE:t(43449),TWEEN_YOYO:t(61541)}},75193:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l={States:t(55303),Builders:t(79619),Events:t(54272),TweenManager:t(64532),Tween:t(39366),TweenData:t(15718),TweenFrameData:t(96490),BaseTween:t(502),TweenChain:t(45641)};f.exports=l},502:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(6659),u=t(54272),o=t(55303),a=new l({Extends:g,initialize:function(r){g.call(this),this.parent=r,this.data=[],this.totalData=0,this.startDelay=0,this.hasStarted=!1,this.timeScale=1,this.loop=0,this.loopDelay=0,this.loopCounter=0,this.completeDelay=0,this.countdown=0,this.state=o.PENDING,this.paused=!1,this.callbacks={onActive:null,onComplete:null,onLoop:null,onPause:null,onRepeat:null,onResume:null,onStart:null,onStop:null,onUpdate:null,onYoyo:null},this.callbackScope,this.persist=!1},setTimeScale:function(n){return this.timeScale=n,this},getTimeScale:function(){return this.timeScale},isPlaying:function(){return!this.paused&&this.isActive()},isPaused:function(){return this.paused},pause:function(){return this.paused||(this.paused=!0,this.dispatchEvent(u.TWEEN_PAUSE,"onPause")),this},resume:function(){return this.paused&&(this.paused=!1,this.dispatchEvent(u.TWEEN_RESUME,"onResume")),this},makeActive:function(){this.parent.makeActive(this),this.dispatchEvent(u.TWEEN_ACTIVE,"onActive")},onCompleteHandler:function(){this.setPendingRemoveState(),this.dispatchEvent(u.TWEEN_COMPLETE,"onComplete")},complete:function(n){return n===void 0&&(n=0),n?(this.setCompleteDelayState(),this.countdown=n):this.onCompleteHandler(),this},completeAfterLoop:function(n){return n===void 0&&(n=0),this.loopCounter>n&&(this.loopCounter=n),this},remove:function(){return this.parent.remove(this),this},stop:function(){return!this.isRemoved()&&!this.isPendingRemove()&&!this.isDestroyed()&&(this.dispatchEvent(u.TWEEN_STOP,"onStop"),this.setPendingRemoveState()),this},updateLoopCountdown:function(n){this.countdown-=n,this.countdown<=0&&(this.setActiveState(),this.dispatchEvent(u.TWEEN_LOOP,"onLoop"))},updateStartCountdown:function(n){return this.countdown-=n,this.countdown<=0&&(this.hasStarted=!0,this.setActiveState(),this.dispatchEvent(u.TWEEN_START,"onStart"),n=0),n},updateCompleteDelay:function(n){this.countdown-=n,this.countdown<=0&&this.onCompleteHandler()},setCallback:function(n,r,d){return d===void 0&&(d=[]),this.callbacks.hasOwnProperty(n)&&(this.callbacks[n]={func:r,params:d}),this},setPendingState:function(){this.state=o.PENDING},setActiveState:function(){this.state=o.ACTIVE},setLoopDelayState:function(){this.state=o.LOOP_DELAY},setCompleteDelayState:function(){this.state=o.COMPLETE_DELAY},setStartDelayState:function(){this.state=o.START_DELAY,this.countdown=this.startDelay,this.hasStarted=!1},setPendingRemoveState:function(){this.state=o.PENDING_REMOVE},setRemovedState:function(){this.state=o.REMOVED},setFinishedState:function(){this.state=o.FINISHED},setDestroyedState:function(){this.state=o.DESTROYED},isPending:function(){return this.state===o.PENDING},isActive:function(){return this.state===o.ACTIVE},isLoopDelayed:function(){return this.state===o.LOOP_DELAY},isCompleteDelayed:function(){return this.state===o.COMPLETE_DELAY},isStartDelayed:function(){return this.state===o.START_DELAY},isPendingRemove:function(){return this.state===o.PENDING_REMOVE},isRemoved:function(){return this.state===o.REMOVED},isFinished:function(){return this.state===o.FINISHED},isDestroyed:function(){return this.state===o.DESTROYED},destroy:function(){this.data&&this.data.forEach(function(n){n.destroy()}),this.removeAllListeners(),this.callbacks=null,this.data=null,this.parent=null,this.setDestroyedState()}});a.TYPES=["onActive","onComplete","onLoop","onPause","onRepeat","onResume","onStart","onStop","onUpdate","onYoyo"],f.exports=a},65521:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(56694),g=t(54272),u=t(55303),o=new l({initialize:function(n,r,d,s,h,c,p,m,x,S){this.tween=n,this.targetIndex=r,this.duration=s,this.totalDuration=0,this.delay=0,this.getDelay=d,this.yoyo=h,this.hold=c,this.repeat=p,this.repeatDelay=m,this.repeatCounter=0,this.flipX=x,this.flipY=S,this.progress=0,this.elapsed=0,this.state=0,this.isCountdown=!1},getTarget:function(){return this.tween.targets[this.targetIndex]},setTargetValue:function(a){a===void 0&&(a=this.current),this.tween.targets[this.targetIndex][this.key]=a},setCreatedState:function(){this.state=u.CREATED,this.isCountdown=!1},setDelayState:function(){this.state=u.DELAY,this.isCountdown=!0},setPendingRenderState:function(){this.state=u.PENDING_RENDER,this.isCountdown=!1},setPlayingForwardState:function(){this.state=u.PLAYING_FORWARD,this.isCountdown=!1},setPlayingBackwardState:function(){this.state=u.PLAYING_BACKWARD,this.isCountdown=!1},setHoldState:function(){this.state=u.HOLD_DELAY,this.isCountdown=!0},setRepeatState:function(){this.state=u.REPEAT_DELAY,this.isCountdown=!0},setCompleteState:function(){this.state=u.COMPLETE,this.isCountdown=!1},isCreated:function(){return this.state===u.CREATED},isDelayed:function(){return this.state===u.DELAY},isPendingRender:function(){return this.state===u.PENDING_RENDER},isPlayingForward:function(){return this.state===u.PLAYING_FORWARD},isPlayingBackward:function(){return this.state===u.PLAYING_BACKWARD},isHolding:function(){return this.state===u.HOLD_DELAY},isRepeating:function(){return this.state===u.REPEAT_DELAY},isComplete:function(){return this.state===u.COMPLETE},setStateFromEnd:function(a){this.yoyo?this.onRepeat(a,!0,!0):this.repeatCounter>0?this.onRepeat(a,!0,!1):this.setCompleteState()},setStateFromStart:function(a){this.repeatCounter>0?this.onRepeat(a,!1):this.setCompleteState()},reset:function(){var a=this.tween,n=a.totalTargets,r=this.targetIndex,d=a.targets[r],s=this.key;this.progress=0,this.elapsed=0,this.delay=this.getDelay(d,s,0,r,n,a),this.repeatCounter=this.repeat===-1?u.MAX:this.repeat,this.setPendingRenderState();var h=this.duration+this.hold;this.yoyo&&(h+=this.duration);var c=h+this.repeatDelay;this.totalDuration=this.delay+h,this.repeat===-1?(this.totalDuration+=c*u.MAX,a.isInfinite=!0):this.repeat>0&&(this.totalDuration+=c*this.repeat),this.totalDuration>a.duration&&(a.duration=this.totalDuration),this.delay0&&(this.elapsed=this.delay,this.setDelayState())},onRepeat:function(a,n,r){var d=this.tween,s=d.totalTargets,h=this.targetIndex,c=d.targets[h],p=this.key,m=p!=="texture";if(this.elapsed=a,this.progress=a/this.duration,this.flipX&&c.toggleFlipX(),this.flipY&&c.toggleFlipY(),m&&(n||r)&&(this.start=this.getStartValue(c,p,this.start,h,s,d)),r){this.setPlayingBackwardState(),this.dispatchEvent(g.TWEEN_YOYO,"onYoyo");return}this.repeatCounter--,m&&(this.end=this.getEndValue(c,p,this.start,h,s,d)),this.repeatDelay>0?(this.elapsed=this.repeatDelay-a,m&&(this.current=this.start,c[p]=this.current),this.setRepeatState()):(this.setPlayingForwardState(),this.dispatchEvent(g.TWEEN_REPEAT,"onRepeat"))},destroy:function(){this.tween=null,this.getDelay=null,this.setCompleteState()}});f.exports=o},99730:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={targets:null,delay:0,duration:1e3,ease:"Power0",easeParams:null,hold:0,repeat:0,repeatDelay:0,yoyo:!1,flipX:!1,flipY:!1,persist:!1,interpolation:null};f.exports=T},53709:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports=["callbackScope","completeDelay","delay","duration","ease","easeParams","flipX","flipY","hold","interpolation","loop","loopDelay","onActive","onActiveParams","onComplete","onCompleteParams","onLoop","onLoopParams","onPause","onPauseParams","onRepeat","onRepeatParams","onResume","onResumeParams","onStart","onStartParams","onStop","onStopParams","onUpdate","onUpdateParams","onYoyo","onYoyoParams","paused","persist","props","repeat","repeatDelay","targets","yoyo"]},39366:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(502),g=t(56694),u=t(54272),o=t(99325),a=t(61286),n=t(83392),r=t(55303),d=t(15718),s=t(96490),h=new g({Extends:l,initialize:function(p,m){l.call(this,p),this.targets=m,this.totalTargets=m.length,this.isSeeking=!1,this.isInfinite=!1,this.elapsed=0,this.totalElapsed=0,this.duration=0,this.progress=0,this.totalDuration=0,this.totalProgress=0},add:function(c,p,m,x,S,P,E,R,M,O,w,L,F,b,D,N){var z=new d(this,c,p,m,x,S,P,E,R,M,O,w,L,F,b,D,N);return this.totalData=this.data.push(z),z},addFrame:function(c,p,m,x,S,P,E,R,M,O){var w=new s(this,c,p,m,x,S,P,E,R,M,O);return this.totalData=this.data.push(w),w},getValue:function(c){c===void 0&&(c=0);var p=null;return this.data&&(p=this.data[c].current),p},hasTarget:function(c){return this.targets&&this.targets.indexOf(c)!==-1},updateTo:function(c,p,m){if(m===void 0&&(m=!1),c!=="texture")for(var x=0;x0)this.elapsed=0,this.progress=0,this.loopCounter--,this.initTweenData(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.setLoopDelayState()):(this.setActiveState(),this.dispatchEvent(u.TWEEN_LOOP,"onLoop"));else if(this.completeDelay>0)this.countdown=this.completeDelay,this.setCompleteDelayState();else return this.onCompleteHandler(),!0;return!1},onCompleteHandler:function(){this.progress=1,this.totalProgress=1,l.prototype.onCompleteHandler.call(this)},play:function(){return this.isDestroyed()?(console.warn("Cannot play destroyed Tween",this),this):((this.isPendingRemove()||this.isFinished())&&this.seek(),this.paused=!1,this.setActiveState(),this)},seek:function(c,p,m){if(c===void 0&&(c=0),p===void 0&&(p=16.6),m===void 0&&(m=!1),this.isDestroyed())return console.warn("Cannot seek destroyed Tween",this),this;m||(this.isSeeking=!0),this.reset(!0),this.initTweenData(!0),this.setActiveState(),this.dispatchEvent(u.TWEEN_ACTIVE,"onActive");var x=this.paused;if(this.paused=!1,c>0){for(var S=Math.floor(c/p),P=c-S*p,E=0;E0&&this.update(P)}return this.paused=x,this.isSeeking=!1,this},initTweenData:function(c){c===void 0&&(c=!1),this.duration=0,this.startDelay=n.MAX_SAFE_INTEGER;for(var p=this.data,m=0;m0?this.totalDuration=x+S+(x+E)*P:this.totalDuration=x+S},reset:function(c){return c===void 0&&(c=!1),this.elapsed=0,this.totalElapsed=0,this.progress=0,this.totalProgress=0,this.loopCounter=this.loop,this.loop===-1&&(this.isInfinite=!0,this.loopCounter=r.MAX),c||(this.initTweenData(),this.setActiveState(),this.dispatchEvent(u.TWEEN_ACTIVE,"onActive")),this},update:function(c){if(this.isPendingRemove()||this.isDestroyed())return!0;if(this.paused||this.isFinished())return!1;if(c*=this.timeScale*this.parent.timeScale,this.isLoopDelayed())return this.updateLoopCountdown(c),!1;if(this.isCompleteDelayed())return this.updateCompleteDelay(c),!1;this.hasStarted||(this.startDelay-=c,this.startDelay<=0&&(this.hasStarted=!0,this.dispatchEvent(u.TWEEN_START,"onStart"),c=0));var p=!1;if(this.isActive())for(var m=this.data,x=0;x{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(66458),g=t(502),u=t(56694),o=t(54272),a=t(99325),n=t(61286),r=t(55303),d=new u({Extends:g,initialize:function(h){g.call(this,h),this.currentTween=null,this.currentIndex=0},init:function(){return this.loopCounter=this.loop===-1?r.MAX:this.loop,this.setCurrentTween(0),this.startDelay>0&&!this.isStartDelayed()?this.setStartDelayState():this.setActiveState(),this.dispatchEvent(o.TWEEN_ACTIVE,"onActive"),this},add:function(s){var h=this.parent.create(s);Array.isArray(h)||(h=[h]);for(var c=this.data,p=0;p0)this.loopCounter--,this.resetTweens(),this.loopDelay>0?(this.countdown=this.loopDelay,this.setLoopDelayState()):(this.setActiveState(),this.dispatchEvent(o.TWEEN_LOOP,"onLoop"));else if(this.completeDelay>0)this.countdown=this.completeDelay,this.setCompleteDelayState();else return this.onCompleteHandler(),!0;return!1},play:function(){return this.isDestroyed()?(console.warn("Cannot play destroyed TweenChain",this),this):((this.isPendingRemove()||this.isPending())&&this.resetTweens(),this.paused=!1,this.startDelay>0&&!this.isStartDelayed()?this.setStartDelayState():this.setActiveState(),this)},resetTweens:function(){for(var s=this.data,h=this.totalData,c=0;c{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(65521),g=t(82897),u=t(56694),o=t(54272),a=new u({Extends:l,initialize:function(r,d,s,h,c,p,m,x,S,P,E,R,M,O,w,L,F){l.call(this,r,d,x,S,P,E,R,M,O,w),this.key=s,this.getActiveValue=p,this.getEndValue=h,this.getStartValue=c,this.ease=m,this.start=0,this.previous=0,this.current=0,this.end=0,this.interpolation=L,this.interpolationData=F},reset:function(n){l.prototype.reset.call(this);var r=this.tween.targets[this.targetIndex],d=this.key;n&&(r[d]=this.start),this.start=0,this.previous=0,this.current=0,this.end=0,this.getActiveValue&&(r[d]=this.getActiveValue(r,d,0))},update:function(n){var r=this.tween,d=r.totalTargets,s=this.targetIndex,h=r.targets[s],c=this.key;if(!h)return this.setCompleteState(),!1;if(this.isCountdown&&(this.elapsed-=n,this.elapsed<=0&&(this.elapsed=0,n=0,this.isDelayed()?this.setPendingRenderState():this.isRepeating()?(this.setPlayingForwardState(),this.dispatchEvent(o.TWEEN_REPEAT,"onRepeat")):this.isHolding()&&this.setStateFromEnd(0))),this.isPendingRender())return this.start=this.getStartValue(h,c,h[c],s,d,r),this.end=this.getEndValue(h,c,this.start,s,d,r),this.current=this.start,h[c]=this.start,this.setPlayingForwardState(),!0;var p=this.isPlayingForward(),m=this.isPlayingBackward();if(p||m){var x=this.elapsed,S=this.duration,P=0,E=!1;x+=n,x>=S?(P=x-S,x=S,E=!0):x<0&&(x=0);var R=g(x/S,0,1);if(this.elapsed=x,this.progress=R,this.previous=this.current,E)p?(this.current=this.end,h[c]=this.end,this.hold>0?(this.elapsed=this.hold,this.setHoldState()):this.setStateFromEnd(P)):(this.current=this.start,h[c]=this.start,this.setStateFromStart(P));else{p||(R=1-R);var M=this.ease(R);this.interpolation?this.current=this.interpolation(this.interpolationData,M):this.current=this.start+(this.end-this.start)*M,h[c]=this.current}this.dispatchEvent(o.TWEEN_UPDATE,"onUpdate")}return!this.isComplete()},dispatchEvent:function(n,r){var d=this.tween;if(!d.isSeeking){var s=d.targets[this.targetIndex],h=this.key,c=this.current,p=this.previous;d.emit(n,d,h,s,c,p);var m=d.callbacks[r];m&&m.func.apply(d.callbackScope,[d,s,h,c,p].concat(m.params))}},destroy:function(){l.prototype.destroy.call(this),this.getActiveValue=null,this.getEndValue=null,this.getStartValue=null,this.ease=null}});f.exports=a},96490:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(65521),g=t(82897),u=t(56694),o=t(54272),a=new u({Extends:l,initialize:function(r,d,s,h,c,p,m,x,S,P,E){l.call(this,r,d,c,p,!1,m,x,S,P,E),this.key="texture",this.startTexture=null,this.endTexture=s,this.startFrame=null,this.endFrame=h,this.yoyo=x!==0},reset:function(n){l.prototype.reset.call(this);var r=this.tween.targets[this.targetIndex];this.startTexture||(this.startTexture=r.texture.key,this.startFrame=r.frame.name),n&&r.setTexture(this.startTexture,this.startFrame)},update:function(n){var r=this.tween,d=this.targetIndex,s=r.targets[d];if(!s)return this.setCompleteState(),!1;if(this.isCountdown&&(this.elapsed-=n,this.elapsed<=0&&(this.elapsed=0,n=0,this.isDelayed()?this.setPendingRenderState():this.isRepeating()?(this.setPlayingForwardState(),this.dispatchEvent(o.TWEEN_REPEAT,"onRepeat")):this.isHolding()&&this.setStateFromEnd(0))),this.isPendingRender())return this.startTexture&&s.setTexture(this.startTexture,this.startFrame),this.setPlayingForwardState(),!0;var h=this.isPlayingForward(),c=this.isPlayingBackward();if(h||c){var p=this.elapsed,m=this.duration,x=0,S=!1;p+=n,p>=m?(x=p-m,p=m,S=!0):p<0&&(p=0);var P=g(p/m,0,1);this.elapsed=p,this.progress=P,S&&(h?(s.setTexture(this.endTexture,this.endFrame),this.hold>0?(this.elapsed=this.hold,this.setHoldState()):this.setStateFromEnd(x)):(s.setTexture(this.startTexture,this.startFrame),this.setStateFromStart(x))),this.dispatchEvent(o.TWEEN_UPDATE,"onUpdate")}return!this.isComplete()},dispatchEvent:function(n,r){var d=this.tween;if(!d.isSeeking){var s=d.targets[this.targetIndex],h=this.key;d.emit(n,d,h,s);var c=d.callbacks[r];c&&c.func.apply(d.callbackScope,[d,s,h].concat(c.params))}},destroy:function(){l.prototype.destroy.call(this),this.startTexture=null,this.endTexture=null,this.startFrame=null,this.endFrame=null}});f.exports=a},55303:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T={CREATED:0,DELAY:2,PENDING_RENDER:4,PLAYING_FORWARD:5,PLAYING_BACKWARD:6,HOLD_DELAY:7,REPEAT_DELAY:8,COMPLETE:9,PENDING:20,ACTIVE:21,LOOP_DELAY:22,COMPLETE_DELAY:23,START_DELAY:24,PENDING_REMOVE:25,REMOVED:26,FINISHED:27,DESTROYED:28,MAX:999999999999};f.exports=T},56694:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */function T(a){return!!a.get&&typeof a.get=="function"||!!a.set&&typeof a.set=="function"}function t(a,n,r){var d=r?a[n]:Object.getOwnPropertyDescriptor(a,n);return!r&&d.value&&typeof d.value=="object"&&(d=d.value),d&&T(d)?(typeof d.enumerable>"u"&&(d.enumerable=!0),typeof d.configurable>"u"&&(d.configurable=!0),d):!1}function l(a,n){var r=Object.getOwnPropertyDescriptor(a,n);return r?(r.value&&typeof r.value=="object"&&(r=r.value),r.configurable===!1):!1}function g(a,n,r,d){for(var s in n)if(n.hasOwnProperty(s)){var h=t(n,s,r);if(h!==!1){var c=d||a;if(l(c.prototype,s)){if(o.ignoreFinals)continue;throw new Error("cannot override final property '"+s+"', set Class.ignoreFinals = true to skip")}Object.defineProperty(a.prototype,s,h)}else a.prototype[s]=n[s]}}function u(a,n){if(n){Array.isArray(n)||(n=[n]);for(var r=0;r{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(){};f.exports=T},10618:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(){return null};f.exports=T},78991:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u,o){if(o===void 0&&(o=t),g>0){var a=g-t.length;if(a<=0)return null}if(!Array.isArray(l))return t.indexOf(l)===-1?(t.push(l),u&&u.call(o,l),l):null;for(var n=l.length-1;n>=0;)t.indexOf(l[n])!==-1&&l.splice(n,1),n--;if(n=l.length,n===0)return null;g>0&&n>a&&(l.splice(a),n=a);for(var r=0;r{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u,o,a){if(g===void 0&&(g=0),a===void 0&&(a=t),u>0){var n=u-t.length;if(n<=0)return null}if(!Array.isArray(l))return t.indexOf(l)===-1?(t.splice(g,0,l),o&&o.call(a,l),l):null;for(var r=l.length-1;r>=0;)t.indexOf(l[r])!==-1&&l.pop(),r--;if(r=l.length,r===0)return null;u>0&&r>n&&(l.splice(n),r=n);for(var d=r-1;d>=0;d--){var s=l[d];t.splice(g,0,s),o&&o.call(a,s)}return l};f.exports=T},58742:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){var g=t.indexOf(l);return g!==-1&&g{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(45838),g=function(u,o,a,n,r){n===void 0&&(n=0),r===void 0&&(r=u.length);var d=0;if(l(u,n,r))for(var s=n;s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){var u,o=[null];for(u=3;u{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(45838),g=function(u,o,a,n,r){if(n===void 0&&(n=0),r===void 0&&(r=u.length),l(u,n,r)){var d,s=[null];for(d=5;d{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){if(l.length){if(l.length===1)return l[0]}else return NaN;var u=1,o,a;if(g){if(tl.length&&(u=l.length),g?(o=l[u-1][g],a=l[u][g],a-t<=t-o?l[u]:l[u-1]):(o=l[u-1],a=l[u],a-t<=t-o?a:o)};f.exports=T},5454:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){l===void 0&&(l=[]);for(var g=0;g{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(45838),g=function(u,o,a,n,r){n===void 0&&(n=0),r===void 0&&(r=u.length);var d=[];if(l(u,n,r))for(var s=n;s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(45838),g=function(u,o,a,n,r){if(n===void 0&&(n=0),r===void 0&&(r=u.length),l(u,n,r))for(var d=n;d{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){l===void 0&&(l=0),g===void 0&&(g=t.length);var u=l+Math.floor(Math.random()*g);return t[u]===void 0?null:t[u]};f.exports=T},24218:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){if(l===g)return t;var u=t.indexOf(l),o=t.indexOf(g);if(u<0||o<0)throw new Error("Supplied items must be elements of the same array");return u>o||(t.splice(u,1),o===t.length-1?t.push(l):t.splice(o,0,l)),t};f.exports=T},58258:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){if(l===g)return t;var u=t.indexOf(l),o=t.indexOf(g);if(u<0||o<0)throw new Error("Supplied items must be elements of the same array");return u{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){var g=t.indexOf(l);if(g>0){var u=t[g-1],o=t.indexOf(u);t[g]=u,t[o]=l}return t};f.exports=T},68396:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){var u=t.indexOf(l);if(u===-1||g<0||g>=t.length)throw new Error("Supplied index out of bounds");return u!==g&&(t.splice(u,1),t.splice(g,0,l)),l};f.exports=T},27555:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){var g=t.indexOf(l);if(g!==-1&&g{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){var o=[],a,n=!1;if((g||u)&&(n=!0,g||(g=""),u||(u="")),l=l;a--)n?o.push(g+a.toString()+u):o.push(a);else for(a=t;a<=l;a++)n?o.push(g+a.toString()+u):o.push(a);return o};f.exports=T},89955:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(67233),g=function(u,o,a){u===void 0&&(u=0),o===void 0&&(o=null),a===void 0&&(a=1),o===null&&(o=u,u=0);for(var n=[],r=Math.max(l((o-u)/(a||1)),0),d=0;d{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */function T(g,u,o){var a=g[u];g[u]=g[o],g[o]=a}function t(g,u){return gu?1:0}var l=function(g,u,o,a,n){for(o===void 0&&(o=0),a===void 0&&(a=g.length-1),n===void 0&&(n=t);a>o;){if(a-o>600){var r=a-o+1,d=u-o+1,s=Math.log(r),h=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*h*(r-h)/r)*(d-r/2<0?-1:1),p=Math.max(o,Math.floor(u-d*h/r+c)),m=Math.min(a,Math.floor(u+(r-d)*h/r+c));l(g,u,p,m,n)}var x=g[u],S=o,P=a;for(T(g,o,u),n(g[a],x)>0&&T(g,o,a);S0;)P--}n(g[o],x)===0?T(g,o,P):(P++,T(g,P,a)),P<=u&&(o=P+1),u<=P&&(a=P-1)}};f.exports=l},75757:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(10850),g=t(18592),u=function(a,n,r){for(var d=[],s=0;s{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72677),g=function(u,o,a,n){n===void 0&&(n=u);var r;if(!Array.isArray(o))return r=u.indexOf(o),r!==-1?(l(u,r),a&&a.call(n,o),o):null;for(var d=o.length-1,s=[];d>=0;){var h=o[d];r=u.indexOf(h),r!==-1&&(l(u,r),s.push(h),a&&a.call(n,h)),d--}return s};f.exports=g},8324:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72677),g=function(u,o,a,n){if(n===void 0&&(n=u),o<0||o>u.length-1)throw new Error("Index out of bounds");var r=l(u,o);return a&&a.call(n,r),r};f.exports=g},47427:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(45838),g=function(u,o,a,n,r){if(o===void 0&&(o=0),a===void 0&&(a=u.length),r===void 0&&(r=u),l(u,o,a)){var d=a-o,s=u.splice(o,d);if(n)for(var h=0;h{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(72677),g=function(u,o,a){o===void 0&&(o=0),a===void 0&&(a=u.length);var n=o+Math.floor(Math.random()*a);return l(u,n)};f.exports=g},80402:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){var u=t.indexOf(l),o=t.indexOf(g);return u!==-1&&o===-1?(t[u]=g,!0):!1};f.exports=T},77640:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){l===void 0&&(l=1);for(var g=null,u=0;u{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){l===void 0&&(l=1);for(var g=null,u=0;u{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){var o=t.length;if(l<0||l>o||l>=g||g>o){if(u)throw new Error("Range Error: Values outside acceptable range");return!1}else return!0};f.exports=T},27847:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){var g=t.indexOf(l);return g!==-1&&g>0&&(t.splice(g,1),t.unshift(l)),l};f.exports=T},6034:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(45838),g=function(u,o,a,n,r){if(n===void 0&&(n=0),r===void 0&&(r=u.length),l(u,n,r))for(var d=n;d{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){for(var l=t.length-1;l>0;l--){var g=Math.floor(Math.random()*(l+1)),u=t[l];t[l]=t[g],t[g]=u}return t};f.exports=T},28834:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){var l=/\D/g;return t.sort(function(g,u){return parseInt(g.replace(l,""),10)-parseInt(u.replace(l,""),10)}),t};f.exports=T},72677:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){if(!(l>=t.length)){for(var g=t.length-1,u=t[l],o=l;o{/** + * @author Richard Davey + * @author Angry Bytes (and contributors) + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(77290);function g(n,r){return String(n).localeCompare(r)}function u(n,r){var d=n.length;if(d<=1)return n;for(var s=new Array(d),h=1;hh&&(x=h),S>h&&(S=h),P=m,E=x;;)if(P{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){if(l===g)return t;var u=t.indexOf(l),o=t.indexOf(g);if(u<0||o<0)throw new Error("Supplied items must be elements of the same array");return t[u]=g,t[o]=l,t};f.exports=T},59959:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Matrix:t(13515),Add:t(78991),AddAt:t(48522),BringToTop:t(58742),CountAllMatching:t(30164),Each:t(36337),EachInRange:t(46208),FindClosestInSorted:t(2406),Flatten:t(5454),GetAll:t(71608),GetFirst:t(51463),GetRandom:t(72861),MoveDown:t(51172),MoveTo:t(68396),MoveUp:t(27555),MoveAbove:t(24218),MoveBelow:t(58258),NumberArray:t(13401),NumberArrayStep:t(89955),QuickSelect:t(53466),Range:t(75757),Remove:t(66458),RemoveAt:t(8324),RemoveBetween:t(47427),RemoveRandomElement:t(50147),Replace:t(80402),RotateLeft:t(77640),RotateRight:t(38487),SafeRange:t(45838),SendToBack:t(27847),SetAll:t(6034),Shuffle:t(18592),SortByDigits:t(28834),SpliceOne:t(72677),StableSort:t(17922),Swap:t(96928)}},97494:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){if(!Array.isArray(t)||!Array.isArray(t[0]))return!1;for(var l=t[0].length,g=1;g{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(76400),g=t(97494),u=function(o){var a="";if(!g(o))return a;for(var n=0;n{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t.reverse()};f.exports=T},51995:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){for(var l=0;l{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(63515),g=function(u){return l(u,180)};f.exports=g},42549:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(63515),g=function(u){return l(u,90)};f.exports=g},63515:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(97494),g=t(78581),u=function(o,a){if(a===void 0&&(a=90),!l(o))return null;if(typeof a!="string"&&(a=(a%360+360)%360),a===90||a===-270||a==="rotateLeft")o=g(o),o.reverse();else if(a===-90||a===270||a==="rotateRight")o.reverse(),o=g(o);else if(Math.abs(a)===180||a==="rotate180"){for(var n=0;n{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(63515),g=function(u){return l(u,-90)};f.exports=g},27365:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(77640),g=t(38487),u=function(o,a,n){if(a===void 0&&(a=0),n===void 0&&(n=0),n!==0&&(n<0?l(o,Math.abs(n)):g(o,n)),a!==0)for(var r=0;r{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){for(var l=t.length,g=t[0].length,u=new Array(g),o=0;o-1;a--)u[o][a]=t[a][o]}return u};f.exports=T},13515:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={CheckMatrix:t(97494),MatrixToString:t(68428),ReverseColumns:t(59521),ReverseRows:t(51995),Rotate180:t(89011),RotateLeft:t(42549),RotateMatrix:t(63515),RotateRight:t(14305),Translate:t(27365),TransposeMatrix:t(78581)}},40581:f=>{/** + * @author Niklas von Hertzen (https://github.com/niklasvh/base64-arraybuffer) + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=function(l,g){for(var u=new Uint8Array(l),o=u.length,a=g?"data:"+g+";base64,":"",n=0;n>2],a+=T[(u[n]&3)<<4|u[n+1]>>4],a+=T[(u[n+1]&15)<<2|u[n+2]>>6],a+=T[u[n+2]&63];return o%3===2?a=a.substring(0,a.length-1)+"=":o%3===1&&(a=a.substring(0,a.length-2)+"=="),a};f.exports=t},82329:f=>{/** + * @author Niklas von Hertzen (https://github.com/niklasvh/base64-arraybuffer) + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */for(var T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=new Uint8Array(256),l=0;l>4,p[n++]=(d&15)<<4|s>>2,p[n++]=(s&3)<<6|h&63;return c};f.exports=g},78417:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={ArrayBufferToBase64:t(40581),Base64ToArrayBuffer:t(82329)}},22178:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Array:t(59959),Base64:t(78417),Objects:t(64615),String:t(50379),NOOP:t(72283),NULL:t(10618)}},32742:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){var l={};for(var g in t)Array.isArray(t[g])?l[g]=t[g].slice(0):l[g]=t[g];return l};f.exports=T},28699:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){var l,g,u;if(typeof t!="object"||t===null)return t;l=Array.isArray(t)?[]:{};for(u in t)g=t[u],l[u]=T(g);return l};f.exports=T},98611:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(42911),g=function(){var u,o,a,n,r,d,s=arguments[0]||{},h=1,c=arguments.length,p=!1;for(typeof s=="boolean"&&(p=s,s=arguments[1]||{},h=2),c===h&&(s=this,--h);h{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(5923),g=t(10850),u=function(o,a,n){var r=g(o,a,null);if(r===null)return n;if(Array.isArray(r))return l.RND.pick(r);if(typeof r=="object"){if(r.hasOwnProperty("randInt"))return l.RND.integerInRange(r.randInt[0],r.randInt[1]);if(r.hasOwnProperty("randFloat"))return l.RND.realInRange(r.randFloat[0],r.randFloat[1])}else if(typeof r=="function")return r(a);return r};f.exports=u},72632:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){var u=typeof t;return!t||u==="number"||u==="string"?g:t.hasOwnProperty(l)&&t[l]!==void 0?t[l]:g};f.exports=T},94324:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(10850),g=t(82897),u=function(o,a,n,r,d){d===void 0&&(d=n);var s=l(o,a,d);return g(s,n,r)};f.exports=u},10850:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){if(!t&&!u||typeof t=="number")return g;if(t&&t.hasOwnProperty(l))return t[l];if(u&&u.hasOwnProperty(l))return u[l];if(l.indexOf(".")!==-1){for(var o=l.split("."),a=t,n=u,r=g,d=g,s=!0,h=!0,c=0;c{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){for(var g=0;g{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){for(var g=0;g{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return t.hasOwnProperty(l)};f.exports=T},42911:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){if(!t||typeof t!="object"||t.nodeType||t===t.window)return!1;try{if(t.constructor&&!{}.hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch{return!1}return!0};f.exports=T},30657:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(32742),g=function(u,o){var a=l(u);for(var n in o)a.hasOwnProperty(n)||(a[n]=o[n]);return a};f.exports=g},72066:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(32742),g=function(u,o){var a=l(u);for(var n in o)a.hasOwnProperty(n)&&(a[n]=o[n]);return a};f.exports=g},28820:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var l=t(19256),g=function(u,o){for(var a={},n=0;n{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g){if(!t||typeof t=="number")return!1;if(t.hasOwnProperty(l))return t[l]=g,!0;if(l.indexOf(".")!==-1){for(var u=l.split("."),o=t,a=t,n=0;n{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Clone:t(32742),DeepCopy:t(28699),Extend:t(98611),GetAdvancedValue:t(20494),GetFastValue:t(72632),GetMinMaxValue:t(94324),GetValue:t(10850),HasAll:t(87701),HasAny:t(53523),HasValue:t(19256),IsPlainObject:t(42911),Merge:t(30657),MergeRight:t(72066),Pick:t(28820),SetValue:t(22440)}},69429:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return t.replace(/%([0-9]+)/g,function(g,u){return l[Number(u)-1]})};f.exports=T},76400:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l,g,u){l===void 0&&(l=0),g===void 0&&(g=" "),u===void 0&&(u=3),t=t.toString();var o=0;if(l+1>=t.length)switch(u){case 1:t=new Array(l+1-t.length).join(g)+t;break;case 3:var a=Math.ceil((o=l-t.length)/2),n=o-a;t=new Array(n+1).join(g)+t+new Array(a+1).join(g);break;default:t=t+new Array(l+1-t.length).join(g);break}return t};f.exports=T},76872:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t,l){return l===0?t.slice(1):t.slice(0,l-1)+t.slice(l)};f.exports=T},8051:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t.split("").reverse().join("")};f.exports=T},76583:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var l=Math.random()*16|0,g=t==="x"?l:l&3|8;return g.toString(16)})};f.exports=T},40587:f=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var T=function(t){return t&&t[0].toUpperCase()+t.slice(1)};f.exports=T},50379:(f,T,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */f.exports={Format:t(69429),Pad:t(76400),RemoveAt:t(76872),Reverse:t(8051),UppercaseFirst:t(40587),UUID:t(76583)}}},y={};function C(f){var T=y[f];if(T!==void 0)return T.exports;var t=y[f]={exports:{}};return v[f](t,t.exports,C),t.exports}C.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}();var A=C(92491);return A})())})(aC);var oC=aC.exports;const Tv=Rv(oC);class JG extends oC.Scene{constructor(){super({key:"gameScene"});An(this,"metadata");An(this,"dungeon");An(this,"action","");An(this,"animUrl","");An(this,"shadowsUrl","");An(this,"scaleFactor",2)}init(){const{animationData:{Anims:{Anim:v}},sprite:{animUrl:y,shadowsUrl:C,action:A},dungeon:f}=this.game;this.metadata=v.find(({Name:T})=>T===A),this.animUrl=y,this.shadowsUrl=C,this.action=A,this.dungeon=f,this.scaleFactor=Math.max(...v.map(({Name:T,FrameHeight:t})=>T!=="QuickStrike"?t:0))>120?1:2}preload(){const{FrameWidth:v,FrameHeight:y}=this.metadata;this.load.image("small-ba",`/maps/${this.dungeon}.png`),this.load.spritesheet(`${this.action}-${ln.ANIM}`,this.animUrl,{frameWidth:v,frameHeight:y}),this.load.spritesheet(`${this.action}-${ln.SHADOW}`,this.shadowsUrl,{frameWidth:v,frameHeight:y})}create(){for(const v of[ln.ANIM,ln.SHADOW]){const y=this.anims.generateFrameNumbers(`${this.action}-${v}`,{start:0,end:-1}),{Durations:{Duration:C}}=this.metadata,A=Array.isArray(C)?C:[C];for(let f=0;f"u")};e.isExist=function(T){return typeof T<"u"},e.isEmptyObject=function(T){return Object.keys(T).length===0},e.merge=function(T,t,l){if(t){const g=Object.keys(t),u=g.length;for(let o=0;o"&&e[A]!==" "&&e[A]!==" "&&e[A]!==` +`&&e[A]!=="\r";A++)t+=e[A];if(t=t.trim(),t[t.length-1]==="/"&&(t=t.substring(0,t.length-1),A--),!lU(t)){let u;return t.trim().length===0?u="Invalid space after '<'.":u="Tag '"+t+"' is an invalid name.",ge("InvalidTag",u,$e(e,A))}const l=nU(e,A);if(l===!1)return ge("InvalidAttr","Attributes for '"+t+"' have open quote.",$e(e,A));let g=l.value;if(A=l.index,g[g.length-1]==="/"){const u=A-g.length;g=g.substring(0,g.length-1);const o=i1(g,i);if(o===!0)y=!0;else return ge(o.err.code,o.err.msg,$e(e,u+o.err.line))}else if(T)if(l.tagClosed){if(g.trim().length>0)return ge("InvalidTag","Closing tag '"+t+"' can't have attributes or invalid starting.",$e(e,f));{const u=v.pop();if(t!==u.tagName){let o=$e(e,u.tagStartPos);return ge("InvalidTag","Expected closing tag '"+u.tagName+"' (opened in line "+o.line+", col "+o.col+") instead of closing tag '"+t+"'.",$e(e,f))}v.length==0&&(C=!0)}}else return ge("InvalidTag","Closing tag '"+t+"' doesn't have proper closing.",$e(e,A));else{const u=i1(g,i);if(u!==!0)return ge(u.err.code,u.err.msg,$e(e,A-g.length+u.err.line));if(C===!0)return ge("InvalidXml","Multiple possible root nodes found.",$e(e,A));i.unpairedTags.indexOf(t)!==-1||v.push({tagName:t,tagStartPos:f}),y=!0}for(A++;A0)return ge("InvalidXml","Invalid '"+JSON.stringify(v.map(A=>A.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return ge("InvalidXml","Start tag expected.",1);return!0};function _x(e){return e===" "||e===" "||e===` +`||e==="\r"}function t1(e,i){const v=i;for(;i5&&y==="xml")return ge("InvalidXml","XML declaration allowed only at the start of the document.",$e(e,i));if(e[i]=="?"&&e[i+1]==">"){i++;break}else continue}return i}function e1(e,i){if(e.length>i+5&&e[i+1]==="-"&&e[i+2]==="-"){for(i+=3;i"){i+=2;break}}else if(e.length>i+8&&e[i+1]==="D"&&e[i+2]==="O"&&e[i+3]==="C"&&e[i+4]==="T"&&e[i+5]==="Y"&&e[i+6]==="P"&&e[i+7]==="E"){let v=1;for(i+=8;i"&&(v--,v===0))break}else if(e.length>i+9&&e[i+1]==="["&&e[i+2]==="C"&&e[i+3]==="D"&&e[i+4]==="A"&&e[i+5]==="T"&&e[i+6]==="A"&&e[i+7]==="["){for(i+=8;i"){i+=2;break}}return i}const eU='"',iU="'";function nU(e,i){let v="",y="",C=!1;for(;i"&&y===""){C=!0;break}v+=e[i]}return y!==""?!1:{value:v,index:i,tagClosed:C}}const rU=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function i1(e,i){const v=Ym.getAllMatches(e,rU),y={};for(let C=0;C!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,i,v){return e}},uU=function(e){return Object.assign({},lC,e)};Hm.buildOptions=uU;Hm.defaultOptions=lC;class hU{constructor(i){this.tagname=i,this.child=[],this[":@"]={}}add(i,v){i==="__proto__"&&(i="#__proto__"),this.child.push({[i]:v})}addChild(i){i.tagname==="__proto__"&&(i.tagname="#__proto__"),i[":@"]&&Object.keys(i[":@"]).length>0?this.child.push({[i.tagname]:i.child,":@":i[":@"]}):this.child.push({[i.tagname]:i.child})}}var fU=hU;const dU=wf;function cU(e,i){const v={};if(e[i+3]==="O"&&e[i+4]==="C"&&e[i+5]==="T"&&e[i+6]==="Y"&&e[i+7]==="P"&&e[i+8]==="E"){i=i+9;let y=1,C=!1,A=!1,f="";for(;i"){if(A?e[i-1]==="-"&&e[i-2]==="-"&&(A=!1,y--):y--,y===0)break}else e[i]==="["?C=!0:f+=e[i];if(y!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:v,i}}function vU(e,i){let v="";for(;i0&&C&&v[2]!==".")return e;if(!i.leadingZeros&&A.length>0&&!C&&v[1]!==".")return e;{const t=Number(v),l=""+t;return l.search(/[eE]/)!==-1||T?i.eNotation?t:e:v.indexOf(".")!==-1?l==="0"&&f===""||l===f||C&&l==="-"+f?t:e:A?f===l||C+f===l?t:e:v===l||v===C+l?t:e}}else return e}}function AU(e){return e&&e.indexOf(".")!==-1&&(e=e.replace(/0+$/,""),e==="."?e="0":e[0]==="."?e="0"+e:e[e.length-1]==="."&&(e=e.substr(0,e.length-1))),e}var MU=RU;const $m=wf,Va=fU,OU=SU,wU=MU;"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,$m.nameRegexp);let FU=class{constructor(i){this.options=i,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"}},this.addExternalEntities=LU,this.parseXml=BU,this.parseTextData=IU,this.resolveNameSpace=bU,this.buildAttributesMap=NU,this.isItStopNode=VU,this.replaceEntitiesValue=UU,this.readStopNodeData=XU,this.saveTextToParentTag=zU,this.addChild=GU}};function LU(e){const i=Object.keys(e);for(let v=0;v0)){f||(e=this.replaceEntitiesValue(e));const T=this.options.tagValueProcessor(i,e,v,C,A);return T==null?e:typeof T!=typeof e||T!==e?T:this.options.trimValues?Ev(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?Ev(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function bU(e){if(this.options.removeNSPrefix){const i=e.split(":"),v=e.charAt(0)==="/"?"/":"";if(i[0]==="xmlns")return"";i.length===2&&(e=v+i[1])}return e}const DU=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function NU(e,i,v){if(!this.options.ignoreAttributes&&typeof e=="string"){const y=$m.getAllMatches(e,DU),C=y.length,A={};for(let f=0;f",A,"Closing Tag is not closed.");let t=e.substring(A+2,T).trim();if(this.options.removeNSPrefix){const u=t.indexOf(":");u!==-1&&(t=t.substr(u+1))}this.options.transformTagName&&(t=this.options.transformTagName(t)),v&&(y=this.saveTextToParentTag(y,v,C));const l=C.substring(C.lastIndexOf(".")+1);if(t&&this.options.unpairedTags.indexOf(t)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: `);let g=0;l&&this.options.unpairedTags.indexOf(l)!==-1?(g=C.lastIndexOf(".",C.lastIndexOf(".")-1),this.tagsNodeStack.pop()):g=C.lastIndexOf("."),C=C.substring(0,g),v=this.tagsNodeStack.pop(),y="",A=T}else if(e[A+1]==="?"){let T=Sv(e,A,!1,"?>");if(!T)throw new Error("Pi Tag is not closed.");if(y=this.saveTextToParentTag(y,v,C),!(this.options.ignoreDeclaration&&T.tagName==="?xml"||this.options.ignorePiTags)){const t=new Va(T.tagName);t.add(this.options.textNodeName,""),T.tagName!==T.tagExp&&T.attrExpPresent&&(t[":@"]=this.buildAttributesMap(T.tagExp,C,T.tagName)),this.addChild(v,t,C)}A=T.closeIndex+1}else if(e.substr(A+1,3)==="!--"){const T=Rr(e,"-->",A+4,"Comment is not closed.");if(this.options.commentPropName){const t=e.substring(A+4,T-2);y=this.saveTextToParentTag(y,v,C),v.add(this.options.commentPropName,[{[this.options.textNodeName]:t}])}A=T}else if(e.substr(A+1,2)==="!D"){const T=OU(e,A);this.docTypeEntities=T.entities,A=T.i}else if(e.substr(A+1,2)==="!["){const T=Rr(e,"]]>",A,"CDATA is not closed.")-2,t=e.substring(A+9,T);if(y=this.saveTextToParentTag(y,v,C),this.options.cdataPropName)v.add(this.options.cdataPropName,[{[this.options.textNodeName]:t}]);else{let l=this.parseTextData(t,v.tagname,C,!0,!1,!0);l==null&&(l=""),v.add(this.options.textNodeName,l)}A=T+2}else{let T=Sv(e,A,this.options.removeNSPrefix),t=T.tagName,l=T.tagExp,g=T.attrExpPresent,u=T.closeIndex;this.options.transformTagName&&(t=this.options.transformTagName(t)),v&&y&&v.tagname!=="!xml"&&(y=this.saveTextToParentTag(y,v,C,!1));const o=v;if(o&&this.options.unpairedTags.indexOf(o.tagname)!==-1&&(v=this.tagsNodeStack.pop(),C=C.substring(0,C.lastIndexOf("."))),t!==i.tagname&&(C+=C?"."+t:t),this.isItStopNode(this.options.stopNodes,C,t)){let a="";if(l.length>0&&l.lastIndexOf("/")===l.length-1)A=T.closeIndex;else if(this.options.unpairedTags.indexOf(t)!==-1)A=T.closeIndex;else{const r=this.readStopNodeData(e,t,u+1);if(!r)throw new Error(`Unexpected end of ${t}`);A=r.i,a=r.tagContent}const n=new Va(t);t!==l&&g&&(n[":@"]=this.buildAttributesMap(l,C,t)),a&&(a=this.parseTextData(a,t,C,!0,g,!0,!0)),C=C.substr(0,C.lastIndexOf(".")),n.add(this.options.textNodeName,a),this.addChild(v,n,C)}else{if(l.length>0&&l.lastIndexOf("/")===l.length-1){t[t.length-1]==="/"?(t=t.substr(0,t.length-1),C=C.substr(0,C.length-1),l=t):l=l.substr(0,l.length-1),this.options.transformTagName&&(t=this.options.transformTagName(t));const a=new Va(t);t!==l&&g&&(a[":@"]=this.buildAttributesMap(l,C,t)),this.addChild(v,a,C),C=C.substr(0,C.lastIndexOf("."))}else{const a=new Va(t);this.tagsNodeStack.push(v),t!==l&&g&&(a[":@"]=this.buildAttributesMap(l,C,t)),this.addChild(v,a,C),v=a}y="",A=u}}else y+=e[A];return i.child};function GU(e,i,v){const y=this.options.updateTag(i.tagname,v,i[":@"]);y===!1||(typeof y=="string"&&(i.tagname=y),e.addChild(i))}const UU=function(e){if(this.options.processEntities){for(let i in this.docTypeEntities){const v=this.docTypeEntities[i];e=e.replace(v.regx,v.val)}for(let i in this.lastEntities){const v=this.lastEntities[i];e=e.replace(v.regex,v.val)}if(this.options.htmlEntities)for(let i in this.htmlEntities){const v=this.htmlEntities[i];e=e.replace(v.regex,v.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function zU(e,i,v,y){return e&&(y===void 0&&(y=Object.keys(i.child).length===0),e=this.parseTextData(e,i.tagname,v,!1,i[":@"]?Object.keys(i[":@"]).length!==0:!1,y),e!==void 0&&e!==""&&i.add(this.options.textNodeName,e),e=""),e}function VU(e,i,v){const y="*."+v;for(const C in e){const A=e[C];if(y===A||i===A)return!0}return!1}function WU(e,i,v=">"){let y,C="";for(let A=i;A",v,`${i} is not closed`);if(e.substring(v+2,A).trim()===i&&(C--,C===0))return{tagContent:e.substring(y,v),i:A};v=A}else if(e[v+1]==="?")v=Rr(e,"?>",v+1,"StopNode is not closed.");else if(e.substr(v+1,3)==="!--")v=Rr(e,"-->",v+3,"StopNode is not closed.");else if(e.substr(v+1,2)==="![")v=Rr(e,"]]>",v,"StopNode is not closed.")-2;else{const A=Sv(e,v,">");A&&((A&&A.tagName)===i&&A.tagExp[A.tagExp.length-1]!=="/"&&C++,v=A.closeIndex)}}function Ev(e,i,v){if(i&&typeof e=="string"){const y=e.trim();return y==="true"?!0:y==="false"?!1:wU(e,v)}else return $m.isExist(e)?e:""}var YU=FU,uC={};function HU(e,i){return hC(e,i)}function hC(e,i,v){let y;const C={};for(let A=0;A0&&(C[i.textNodeName]=y):y!==void 0&&(C[i.textNodeName]=y),C}function $U(e){const i=Object.keys(e);for(let v=0;v0&&(v=tz),fC(e,i,"",v)}function fC(e,i,v,y){let C="",A=!1;for(let f=0;f`,A=!1;continue}else if(t===i.commentPropName){C+=y+``,A=!0;continue}else if(t[0]==="?"){const n=n1(T[":@"],i),r=t==="?xml"?"":y;let d=T[t][0][i.textNodeName];d=d.length!==0?" "+d:"",C+=r+`<${t}${d}${n}?>`,A=!0;continue}let g=y;g!==""&&(g+=i.indentBy);const u=n1(T[":@"],i),o=y+`<${t}${u}`,a=fC(T[t],i,l,g);i.unpairedTags.indexOf(t)!==-1?i.suppressUnpairedNode?C+=o+">":C+=o+"/>":(!a||a.length===0)&&i.suppressEmptyNode?C+=o+"/>":a&&a.endsWith(">")?C+=o+`>${a}${y}`:(C+=o+">",a&&y!==""&&(a.includes("/>")||a.includes("`),A=!0}return C}function iz(e){const i=Object.keys(e);for(let v=0;v0&&i.processEntities)for(let v=0;v","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function dr(e){this.options=Object.assign({},az,e),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=uz),this.processTextOrObjNode=oz,this.options.format?(this.indentate=lz,this.tagEndChar=`> +`,this.newLine=` +`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}dr.prototype.build=function(e){return this.options.preserveOrder?sz(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)};dr.prototype.j2x=function(e,i){let v="",y="";for(let C in e)if(typeof e[C]>"u")this.isAttribute(C)&&(y+="");else if(e[C]===null)this.isAttribute(C)?y+="":C[0]==="?"?y+=this.indentate(i)+"<"+C+"?"+this.tagEndChar:y+=this.indentate(i)+"<"+C+"/"+this.tagEndChar;else if(e[C]instanceof Date)y+=this.buildTextValNode(e[C],C,"",i);else if(typeof e[C]!="object"){const A=this.isAttribute(C);if(A)v+=this.buildAttrPairStr(A,""+e[C]);else if(C===this.options.textNodeName){let f=this.options.tagValueProcessor(C,""+e[C]);y+=this.replaceEntitiesValue(f)}else y+=this.buildTextValNode(e[C],C,"",i)}else if(Array.isArray(e[C])){const A=e[C].length;let f="";for(let T=0;T"u"||(t===null?C[0]==="?"?y+=this.indentate(i)+"<"+C+"?"+this.tagEndChar:y+=this.indentate(i)+"<"+C+"/"+this.tagEndChar:typeof t=="object"?this.options.oneListGroup?f+=this.j2x(t,i+1).val:f+=this.processTextOrObjNode(t,C,i):f+=this.buildTextValNode(t,C,"",i))}this.options.oneListGroup&&(f=this.buildObjectNode(f,C,"",i)),y+=f}else if(this.options.attributesGroupName&&C===this.options.attributesGroupName){const A=Object.keys(e[C]),f=A.length;for(let T=0;T"+e+C:this.options.commentPropName!==!1&&i===this.options.commentPropName&&A.length===0?this.indentate(y)+``+this.newLine:this.indentate(y)+"<"+i+v+A+this.tagEndChar+e+this.indentate(y)+C}};dr.prototype.closeTag=function(e){let i="";return this.options.unpairedTags.indexOf(e)!==-1?this.options.suppressUnpairedNode||(i="/"):this.options.suppressEmptyNode?i="/":i=`>`+this.newLine;if(this.options.commentPropName!==!1&&i===this.options.commentPropName)return this.indentate(y)+``+this.newLine;if(i[0]==="?")return this.indentate(y)+"<"+i+v+"?"+this.tagEndChar;{let C=this.options.tagValueProcessor(i,e);return C=this.replaceEntitiesValue(C),C===""?this.indentate(y)+"<"+i+v+this.closeTag(i)+this.tagEndChar:this.indentate(y)+"<"+i+v+">"+C+"0&&this.options.processEntities)for(let i=0;ie.__typename==="CopyOf";function mz({actions:e,sprite:i,dungeon:v,animDataXml:y,history:C,phaserWindows:A}){const f=Q.useRef(),T=Q.useCallback(t=>{var g;async function l(){const u=await(await fetch(y)).text(),a=new vz.XMLParser().parse(u),n=pz(i)?e.find(r=>r.action===i.copyOf):i;f.current=new qG(t,n,a.AnimData,v),A.push(f.current)}t!==null&&((g=f.current)==null||g.game.destroy(!0),l())},[y,i,v]);return H.jsxs(Ja,{children:[H.jsx("div",{id:`action-${i.action}`,ref:T}),H.jsxs(It,{container:!0,justifyContent:"center",alignItems:"start",children:[H.jsx(sC,{locked:i.locked,history:C.filter(t=>t.modifications.includes(i.action))}),H.jsx(lt,{align:"center",children:i.action})]})]})}function r1({bounty:{exists:e,full:i,incomplete:v}}){return!e&&!i&&!v?null:H.jsxs(It,{container:!0,children:[!!e&&H.jsxs(It,{item:!0,sx:{display:"flex",gap:"5px"},children:[H.jsx(lt,{children:e}),H.jsx(lt,{children:"Guild Points"}),H.jsx(lt,{children:"Exists"})]}),!!i&&H.jsxs(It,{item:!0,sx:{display:"flex",gap:"5px"},children:[H.jsx(lt,{children:i}),H.jsx(lt,{children:"Guild Points"}),H.jsx(lt,{children:"Full"})]}),!!v&&H.jsxs(It,{item:!0,sx:{display:"flex",gap:"5px"},children:[H.jsx(lt,{children:v}),H.jsx(lt,{children:"Guild Points"}),H.jsx(lt,{children:"Incomplete"})]})]})}const gz=gt(({className:e,...i})=>H.jsx(ZN,{...i,classes:{popper:e}}))(({theme:e})=>({[`& .${cn.tooltip}`]:{backgroundColor:e.palette.common.white,color:"rgba(0, 0, 0, 0.87)",boxShadow:e.shadows[1],fontSize:"1rem"}}));function yz({info:{sprites:e,sprites:{animDataXml:i},portraits:v},phaserWindows:y}){var u;const C=Q.useRef(Object.values(qc)[Math.floor(Math.random()*Object.values(qc).length)]),A=v.modifiedDate&&new Date(v.modifiedDate),f=e.modifiedDate&&new Date(e.modifiedDate),T=v.sheetUrl&&H.jsx(re,{target:"_blank",href:v.sheetUrl,children:H.jsx(lt,{children:"Download all portraits"})}),t=v.recolorSheetUrl&&H.jsx(re,{target:"_blank",href:v.recolorSheetUrl,children:H.jsx(lt,{children:"Download recolor portraits"})}),l=e.zipUrl&&H.jsx(re,{target:"_blank",href:e.zipUrl,children:H.jsx(lt,{children:"Download all sprites"})}),g=e.recolorSheetUrl&&H.jsx(re,{target:"_blank",href:e.recolorSheetUrl,children:H.jsx(lt,{children:"Download recolor sprites"})});return H.jsxs(nn,{children:[H.jsxs(nn,{sx:{mt:4,mb:2},children:[H.jsxs(It,{container:!0,spacing:2,alignItems:"center",children:[H.jsx(It,{item:!0,children:H.jsx(lt,{fontWeight:"bold",variant:"h5",children:"Portraits"})}),H.jsx(It,{item:!0,children:H.jsx(lt,{children:jx(A)})}),H.jsx(It,{item:!0,children:H.jsx(r1,{bounty:v.bounty})}),H.jsx(It,{item:!0,children:T}),H.jsx(It,{item:!0,children:t}),H.jsx(It,{item:!0,children:H.jsx(Jx,{primary:v.creditPrimary})}),v.creditSecondary.length>0&&H.jsx(It,{item:!0,children:H.jsx(qx,{secondary:v.creditSecondary})})]}),v.emotions.length?H.jsx(ZG,{emotions:v.emotions.concat(v.emotionsFlipped),history:v.history.filter(o=>!o.obsolete)}):H.jsx(lt,{variant:"h5",children:v.required?"No portraits available for now.":"This form's portraits are unnecessary."})]}),H.jsx(mv,{}),H.jsxs(nn,{sx:{mt:4,mb:2},children:[H.jsxs(It,{container:!0,spacing:2,alignItems:"center",children:[H.jsx(It,{item:!0,children:H.jsx(lt,{fontWeight:"bold",variant:"h5",children:"Sprites"})}),H.jsx(It,{item:!0,children:H.jsx(lt,{children:jx(f)})}),H.jsx(It,{item:!0,children:H.jsx(r1,{bounty:e.bounty})}),H.jsx(It,{item:!0,children:l}),H.jsx(It,{item:!0,children:g}),H.jsx(It,{item:!0,children:H.jsx(Jx,{primary:e.creditPrimary})}),((u=e.creditSecondary)==null?void 0:u.length)>0&&H.jsx(It,{item:!0,children:H.jsx(qx,{secondary:e.creditSecondary})})]}),e.actions.length?H.jsx(It,{container:!0,spacing:2,sx:{mt:3},children:i&&e.actions.map(o=>H.jsx(It,{item:!0,children:H.jsx(Kr,{elevation:2,children:H.jsx(mz,{dungeon:C.current,actions:e.actions,sprite:o,animDataXml:i,history:e.history.filter(a=>!a.obsolete),phaserWindows:y})})},o.action))}):H.jsx(lt,{variant:"h6",children:v.required?"No sprites available for now.":"This form's sprites are unnecessary."})]}),H.jsx(mv,{})]})}function xz({infoKey:e,prevIndex:i,nextIndex:v,rawId:y}){const C=[];function A(){for(const s of C)s.game.destroy(!0)}const{loading:f,error:T,data:t}=Z3({variables:{id:e}}),[l,g]=OE({form:"0"}),u=t==null?void 0:t.monster[0].forms,o=parseInt(l.get("form")??"0"),a=(u==null?void 0:u[o])??(u==null?void 0:u[0]),n=Q.useMemo(()=>{if(!a)return"";const h=[a.portraits.creditPrimary,...a.portraits.creditSecondary,a.sprites.creditPrimary,...a.sprites.creditSecondary].filter((c,p,m)=>c&&p==m.findIndex(x=>c.name==(x==null?void 0:x.name))).map(c=>`${c.name??"(No Name)"} ${c.contact??"(No Contact)"}`).join(` +`);return URL.createObjectURL(new Blob([h],{type:"text/plain"}))},[a]),r=i&&H.jsx(Gs,{to:`/${i}`,onClick:A,children:H.jsxs(lt,{variant:"h6",color:"text.secondary",children:["<",i]})}),d=v&&H.jsx(Gs,{to:`/${v}`,onClick:A,children:H.jsxs(lt,{variant:"h6",color:"text.secondary",align:"right",children:[v,">"]})});return H.jsxs(nn,{children:[H.jsx(xl,{}),H.jsxs(Xr,{maxWidth:"xl",sx:{backgroundColor:"rgba(255,255,255,.9)",pt:2,pb:2},children:[f&&H.jsx(lt,{variant:"h4",children:"loading..."}),T&&H.jsx(lt,{variant:"h4",children:"error"}),H.jsxs(It,{container:!0,justifyContent:"space-between",children:[H.jsx(It,{item:!0,xs:2,children:r}),H.jsx(It,{item:!0,xs:8,children:H.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",gap:"16px"},children:[H.jsxs(lt,{align:"center",variant:"h5",fontWeight:"bold",children:[y," ",t==null?void 0:t.monster[0].name]}),a&&H.jsx(Lm,{value:a.fullName,onChange:s=>{if(!u)return;const h=u.findIndex(c=>c.fullName===s.target.value);h!=-1&&g(c=>(c.set("form",h.toString()),c))},children:u==null?void 0:u.map(({path:s,fullName:h})=>H.jsx(V2,{sx:{textTransform:"none"},value:h,children:H.jsx(lt,{variant:"h6",color:"text.primary",children:h!==(t==null?void 0:t.monster[0].name)?h.replaceAll("_"," "):"Normal"})},s))}),n&&H.jsx(re,{href:n,target:"_blank",children:"credits.txt"})]})}),H.jsx(It,{item:!0,xs:2,children:d})]}),H.jsx(mv,{sx:{mt:2}}),a&&H.jsx(yz,{info:a,infoKey:e,phaserWindows:C})]})]})}function Tz(){return H.jsxs(nn,{children:[H.jsx(xl,{}),H.jsx("h1",{className:"nes-text is-primary",children:"404 not found"}),H.jsxs("p",{children:["There's no content here. Please note that pokemon index are zero-padded. If you are looking for mew, the url will be"," ",H.jsxs("a",{href:"/#/0151",children:[window.location.hostname+"/#/0151"," "]}),"and not ",window.location.hostname+"/#/151","."]})]})}var jm={},Sz=ei;Object.defineProperty(jm,"__esModule",{value:!0});var Cv=jm.default=void 0,Ez=Sz(ii()),Cz=H,Pz=(0,Ez.default)((0,Cz.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");Cv=jm.default=Pz;var km={},Rz=ei;Object.defineProperty(km,"__esModule",{value:!0});var cC=km.default=void 0,Az=Rz(ii()),Mz=H,Oz=(0,Az.default)((0,Mz.jsx)("path",{d:"M10.59 9.17 5.41 4 4 5.41l5.17 5.17 1.42-1.41zM14.5 4l2.04 2.04L4 18.59 5.41 20 17.96 7.46 20 9.5V4h-5.5zm.33 9.41-1.41 1.41 3.13 3.13L14.5 20H20v-5.5l-2.04 2.04-3.13-3.13z"}),"Shuffle");cC=km.default=Oz;var Km={},wz=ei;Object.defineProperty(Km,"__esModule",{value:!0});var Mu=Km.default=void 0,Fz=wz(ii()),Lz=H,Iz=(0,Fz.default)((0,Lz.jsx)("path",{d:"M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-10 7H8v3H6v-3H3v-2h3V8h2v3h3v2zm4.5 2c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4-3c-.83 0-1.5-.67-1.5-1.5S18.67 9 19.5 9s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"}),"VideogameAsset");Mu=Km.default=Iz;var Qm={},bz=ei;Object.defineProperty(Qm,"__esModule",{value:!0});var _a=Qm.default=void 0,Dz=bz(ii()),Nz=H,Bz=(0,Dz.default)((0,Nz.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");_a=Qm.default=Bz;var Zm={},Gz=ei;Object.defineProperty(Zm,"__esModule",{value:!0});var to=Zm.default=void 0,Uz=Gz(ii()),zz=H,Vz=(0,Uz.default)((0,zz.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");to=Zm.default=Vz;var Jm={},Wz=ei;Object.defineProperty(Jm,"__esModule",{value:!0});var vC=Jm.default=void 0,Xz=Wz(ii()),Yz=H,Hz=(0,Xz.default)((0,Yz.jsx)("path",{d:"m18 4 2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z"}),"Movie");vC=Jm.default=Hz;function $z(){return H.jsxs(nn,{children:[H.jsx(xl,{}),H.jsxs(Xr,{maxWidth:"xl",sx:{backgroundColor:"rgba(255,255,255,.9)",p:4},children:[H.jsx(lt,{variant:"h4",gutterBottom:!0,children:"About PMDCollab SpriteCollab"}),H.jsx(lt,{variant:"h5",gutterBottom:!0,children:"Terms of Use"}),H.jsxs(lt,{children:["Custom sprites are licensed under ",H.jsx(re,{href:"http://creativecommons.org/licenses/by-nc/4.0/?ref=chooser-v1",children:"Attribution-NonCommercial 4.0 International"}),". All acceptable use of custom sprites must be done with ",H.jsx(re,{href:"https://wiki.creativecommons.org/wiki/Recommended_practices_for_attribution",children:"appropriate credit"}),". We recommend including a file or link of the ",H.jsx(re,{href:"https://github.com/PMDCollab/SpriteCollab/blob/master/credit_names.txt",children:"credit_names.txt"}),", which contains all authors of the project."]}),H.jsx(lt,{variant:"h5",gutterBottom:!0,children:"Proper Crediting"}),H.jsx(lt,{children:"All form pages contain credits.txt files for you to list in credits."}),H.jsx(Xr,{sx:{mb:2,mt:2},children:H.jsxs(It,{container:!0,spacing:2,justifyContent:"space-around",children:[H.jsx(It,{item:!0,children:H.jsxs(Ja,{children:[H.jsx(Kl,{children:H.jsx(lt,{align:"center",variant:"h5",children:"Examples of Acceptable Use:"})}),H.jsx(Sx,{children:H.jsxs(Au,{children:[H.jsxs(ze,{children:[H.jsx(Ve,{children:H.jsx(_a,{color:"success"})}),H.jsx(lt,{children:"ROMhacks, fangames"})]}),H.jsxs(ze,{children:[H.jsx(Ve,{children:H.jsx(_a,{color:"success"})}),H.jsx(lt,{children:"Sprite comics, videos"})]}),H.jsxs(ze,{children:[H.jsx(Ve,{children:H.jsx(_a,{color:"success"})}),H.jsx(lt,{children:"Use in profile pictures, banners, emotes"})]}),H.jsxs(ze,{children:[H.jsx(Ve,{children:H.jsx(_a,{color:"success"})}),H.jsx(lt,{children:"Posting edits or recolors"})]})]})})]})}),H.jsx(It,{item:!0,children:H.jsxs(Ja,{children:[H.jsx(Kl,{children:H.jsx(lt,{align:"center",variant:"h5",children:"Examples of Unacceptable Use:"})}),H.jsx(Sx,{children:H.jsxs(Au,{children:[H.jsxs(ze,{children:[H.jsx(Ve,{children:H.jsx(to,{color:"error"})}),H.jsx(lt,{children:"Printing and selling merchandise"})]}),H.jsxs(ze,{children:[H.jsx(Ve,{children:H.jsx(to,{color:"error"})}),H.jsx(lt,{children:"Commercial AI services"})]}),H.jsxs(ze,{children:[H.jsx(Ve,{children:H.jsx(to,{color:"error"})}),H.jsx(lt,{children:"Sharing generated images without credit"})]}),H.jsxs(ze,{children:[H.jsx(Ve,{children:H.jsx(to,{color:"error"})}),H.jsx(lt,{children:"Claiming ownership of sprites"})]})]})})]})})]})}),H.jsx(lt,{variant:"h5",gutterBottom:!0,sx:{mt:2},children:"FAQ"}),H.jsxs(Ka,{children:[H.jsx(Za,{expandIcon:H.jsx(Ms,{}),children:"What is PMDCollab?"}),H.jsxs(Qa,{children:[H.jsx(lt,{children:"PMDCollab is a collaborative project providing tools and resources to help fans of Pokémon Mystery Dungeon create their own ROMhacks, fangames, sprite comics, and more. This project, SpriteCollab, aims to be a central resource for PMD-styled portrait art and top-down dungeon sprites for Pokémon of all generations."}),H.jsxs(It,{container:!0,spacing:2,justifyContent:"space-around",sx:{pt:4},children:[H.jsx(It,{children:H.jsx(Ja,{children:H.jsxs(Kl,{children:[H.jsx(lt,{variant:"h5",gutterBottom:!0,align:"center",children:"Portraits"}),H.jsx(lt,{align:"center",children:H.jsx("img",{src:"https://spriteserver.pmdcollab.org/assets/portrait_recolor-0025-0000-0001.png",style:{maxWidth:"30vw"}})})]})})}),H.jsx(It,{children:H.jsx(Ja,{children:H.jsxs(Kl,{children:[H.jsx(lt,{variant:"h5",gutterBottom:!0,align:"center",children:"Sprites"}),H.jsx(lt,{align:"center",children:H.jsx("img",{src:"https://spriteserver.pmdcollab.org/assets/sprite_recolor-0025-0000-0001.png",style:{maxWidth:"30vw"}})})]})})})]})]})]}),H.jsxs(Ka,{children:[H.jsx(Za,{expandIcon:H.jsx(Ms,{}),children:"Where did these sprites come from?"}),H.jsx(Qa,{children:H.jsx(lt,{children:"The sprites and portraits in this repository includes both sprites made by Chunsoft for the original games and custom, fan-made sprites. Specific artist credits can be found on the pages for each sprite."})})]}),H.jsxs(Ka,{children:[H.jsx(Za,{expandIcon:H.jsx(Ms,{}),children:"I can make sprites! How can I help?"}),H.jsxs(Qa,{children:[H.jsxs(lt,{children:["If you have created or want to learn how to create sprites, you can join the #spriting-help channel of the"," ",H.jsx(re,{href:"https://discord.gg/skytemple",children:"SkyTemple discord server"}),". Talk to the artists there and they'll help walk you through the process of adding sprites to the repository."]}),H.jsx(lt,{children:"Many of the artists there also take commissions for sprites, so if you need sprites for a specific Pokémon that isn't currently in the repository, you can commission someone to make them for you as well."}),H.jsxs(lt,{children:["If you're just interested in making sprites that fit the general style, you may find this"," ",H.jsx(re,{href:"https://docs.google.com/presentation/d/1cuDMUz4fI1pAoS7Pp_VzlKmbx0u0C34SfJ3F6Gczt6Q/edit?usp=sharing",children:"guidebook on how to make PMD-style sprites"})," ","by veteran spriter Emmuffin useful."]})]})]}),H.jsxs(Ka,{children:[H.jsx(Za,{expandIcon:H.jsx(Ms,{}),children:"What other cool stuff does PMDCollab do?"}),H.jsxs(Qa,{children:[H.jsx(lt,{children:"Here are some links to our other projects:"}),H.jsxs(Au,{children:[H.jsxs(ze,{children:[H.jsx(Ve,{children:H.jsx(Cv,{})}),H.jsxs(vr,{children:[H.jsx(re,{href:"https://skytemple.org",children:"SkyTemple"}),", a tool to make ROMhacks of Pokémon Mystery Dungeon: Explorers of Sky"]})]}),H.jsxs(ze,{children:[H.jsx(Ve,{children:H.jsx(cC,{})}),H.jsxs(vr,{children:[H.jsx(re,{href:"https://projectpokemon.org/home/files/file/4235-skytemple-randomizer/",children:"SkyTemple Randomizer"}),", a program that randomizes all of the Pokémon in Explorers of Sky."]})]}),H.jsxs(ze,{children:[H.jsx(Ve,{children:H.jsx(Mu,{})}),H.jsxs(vr,{children:[H.jsx(re,{href:"https://github.com/audinowho/PMDODump",children:"PMDO"}),", a Pokémon Mystery Dungeon fangame and fangame engine"]})]}),H.jsxs(ze,{children:[H.jsx(Ve,{children:H.jsx(vC,{})}),H.jsxs(vr,{children:[H.jsx(re,{href:"https://www.youtube.com/@mysterymail300",children:"Mystery Mail"}),", a recurring event where participants make a section of an Explorers of Sky cutscene before passing it off to the next participant."]})]}),H.jsxs(ze,{children:[H.jsx(Ve,{children:H.jsx(Cv,{})}),H.jsxs(vr,{children:[H.jsx(re,{href:"https://projectpokemon.org/home/forums/topic/59548-dreamnexus-a-rom-editor-for-pok%C3%A9mon-mystery-dungeon-rescue-team-dx/",children:"DreamNexus"}),", a ROM editor for Rescue Team DX"]})]}),H.jsxs(ze,{children:[H.jsx(Ve,{children:H.jsx(Mu,{})}),H.jsxs(vr,{children:[H.jsx(re,{href:"https://www.pmuniverse.net/",children:"PMU"}),", a Pokémon Mystery Dungeon MMO"]})]}),H.jsxs(ze,{children:[H.jsx(Ve,{children:H.jsx(Mu,{})}),H.jsxs(vr,{children:[H.jsx(re,{href:"https://discord.gg/QhfKcSdxWd",children:"PMR"}),", a Pokémon Mystery Dungeon action RPG"]})]})]})]})]})]})]})}function jz(){const[e,i]=Q.useState([]),{data:v}=k3({errorPolicy:"ignore"});return Q.useEffect(()=>{v!=null&&v.credit&&i(v.credit)},[v]),H.jsxs(nn,{children:[H.jsx(xl,{}),H.jsx(Xr,{maxWidth:"xl",sx:{backgroundColor:"rgba(255,255,255,.9)"},children:e.length?H.jsx(PB,{children:H.jsxs(nB,{size:"small","aria-label":"a dense table",children:[H.jsx(LB,{children:H.jsxs(Yx,{children:[H.jsx(Jl,{align:"center",children:H.jsx(lt,{variant:"h5",children:"Name"})}),H.jsx(Jl,{align:"center",children:H.jsx(lt,{variant:"h5",children:"Contact"})})]})}),H.jsx(fB,{children:e.filter(({name:y,discordHandle:C})=>(y||C)&&!(C!=null&&C.includes("Deleted User"))).sort((y,C)=>{const A=y.name||y.discordHandle||"",f=C.name||C.discordHandle||"";return A.localeCompare(f)}).map(({name:y,id:C,discordHandle:A,contact:f})=>H.jsxs(Yx,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[H.jsx(Jl,{align:"center",children:H.jsx(lt,{variant:"h6",children:y??A})}),H.jsx(Jl,{align:"center",children:f!=null&&f.includes("http")?H.jsx(re,{href:f,children:H.jsx(lt,{variant:"h6",children:f})}):f&&H.jsx(lt,{variant:"h6",children:f})})]},C))})]})}):H.jsx(lt,{variant:"h5",align:"center",children:"Loading..."})})]})}const kz=cm({typography:{fontFamily:"wonderMail"}}),s1=new E3({uri:"https://spriteserver.pmdcollab.org/graphql",cache:new m3});async function Kz(){const{data:e}=await s1.query({query:K3}).catch(()=>({})),i=Id.createRoot(document.getElementById("root"));if(!e){i.render(H.jsx(K2,{}));return}const v=[...e.monster].sort((y,C)=>y.id-C.id);i.render(H.jsx(Ui.StrictMode,{children:H.jsxs(m6,{theme:kz,children:[H.jsx(y7,{}),H.jsx(L3,{client:s1,children:H.jsx(kO,{children:H.jsxs(zO,{children:[H.jsx(ls,{path:"/",element:H.jsx($G,{meta:e.meta,ids:v.map(({id:y})=>y)})}),v.map(({id:y,rawId:C},A)=>{var f,T;return H.jsx(ls,{path:`/${C}`,element:H.jsx(xz,{infoKey:y,rawId:C,prevIndex:(f=v[A-1])==null?void 0:f.rawId,nextIndex:(T=v[A+1])==null?void 0:T.rawId})},C)}),H.jsx(ls,{path:"/About",element:H.jsx($z,{})}),H.jsx(ls,{path:"/Contributors",element:H.jsx(jz,{})}),H.jsx(ls,{path:"*",element:H.jsx(Tz,{})})]})})})]})}))}Kz()});export default Qz(); diff --git a/public/background.png b/background.png similarity index 100% rename from public/background.png rename to background.png diff --git a/codegen.yml b/codegen.yml deleted file mode 100644 index b60b338ff..000000000 --- a/codegen.yml +++ /dev/null @@ -1,12 +0,0 @@ -overwrite: true -schema: "https://spriteserver.pmdcollab.org/graphql" -documents: "src/**/*.graphql" -generates: - src/generated/graphql.tsx: - plugins: - - "typescript" - - "typescript-operations" - - "typescript-react-apollo" - ./graphql.schema.json: - plugins: - - "introspection" diff --git a/public/favicon.ico b/favicon.ico similarity index 100% rename from public/favicon.ico rename to favicon.ico diff --git a/graphql.schema.json b/graphql.schema.json deleted file mode 100644 index c13e0d043..000000000 --- a/graphql.schema.json +++ /dev/null @@ -1,3162 +0,0 @@ -{ - "__schema": { - "queryType": { - "name": "Query" - }, - "mutationType": null, - "subscriptionType": null, - "types": [ - { - "kind": "OBJECT", - "name": "ActionId", - "description": "An action mapped uniquely to an ID.", - "fields": [ - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "Boolean", - "description": "The `Boolean` scalar type represents `true` or `false`.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Config", - "description": "Configuration for this instance of SpriteCollab.", - "fields": [ - { - "name": "actionMap", - "description": "A mapping of actions to EoS action indices.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ActionId", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "actions", - "description": "A list of known action. The position is the ID of the action.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "completionActions", - "description": "Returns a list, that for each phase contains a list of actions (by index) that need to exist for this phase to be considered completed.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - } - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "completionEmotions", - "description": "Returns a list, that for each phase contains a list of emotions (by index) that need to exist for this phase to be considered completed.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - } - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "emotions", - "description": "A list of known emotions. The position is the ID of the emotion.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "portraitSize", - "description": "The portrait width and height in pixels.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "portraitTileX", - "description": "How many portraits per row a portrait sheet contains.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "portraitTileY", - "description": "How many rows a portrait sheet contains.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CopyOf", - "description": "A sprite, which is a copy of another sprite.", - "fields": [ - { - "name": "action", - "description": "Action of this sprite.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "copyOf", - "description": "Which action this sprite is a copy of.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "locked", - "description": "Whether or not this sprite is locked and requires special permissions to be updated.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Credit", - "description": null, - "fields": [ - { - "name": "contact", - "description": "Contact information for this author.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "discordHandle", - "description": "This used to return the Discord handle of this author, if applicable and possible. It will now always return null.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": true, - "deprecationReason": "This is no longer implemented and will always return null. It may or may not be re-introduced in future versions." - }, - { - "name": "id", - "description": "Discord ID or absentee ID. Guaranteed to be an ASCII string.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "The human-readable name of the author. Guaranteed to be an ASCII string.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "DateTime", - "description": "Combined date and time (with time zone) in [RFC 3339][0] format.\n\nRepresents a description of an exact instant on the time-line (such as the\ninstant that a user account was created).\n\n[`DateTime` scalar][1] compliant.\n\nSee also [`chrono::DateTime`][2] for details.\n\n[0]: https://datatracker.ietf.org/doc/html/rfc3339#section-5\n[1]: https://graphql-scalars.dev/docs/scalars/date-time\n[2]: https://docs.rs/chrono/latest/chrono/struct.DateTime.html", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "Int", - "description": "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "KnownLicense", - "description": "A known license from a common list of options.", - "fields": [ - { - "name": "license", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "KnownLicenseType", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "KnownLicenseType", - "description": "A known license from a common list of options.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "CC_BY_NC4", - "description": "Licensed under Creative Commons Attribution-NonCommercial 4.0 International", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PMDCOLLAB1", - "description": "Original license: When using, you must credit the contributors.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PMDCOLLAB2", - "description": "License for works between May 2023 - March 2024: You are free to use, copy redistribute or modify sprites and portraits from this repository for your own projects and contributions. When using portraits or sprites from this repository, you must credit the contributors for each portrait and sprite you use.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNKNOWN", - "description": "The license could not be determined.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNSPECIFIED", - "description": "The license is not specified / the work is unlicensed.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "UNION", - "name": "License", - "description": "The license that applies to the image of a sprite action or portrait emotion.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "KnownLicense", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "OtherLicense", - "ofType": null - } - ] - }, - { - "kind": "OBJECT", - "name": "Meta", - "description": null, - "fields": [ - { - "name": "apiVersion", - "description": "Version of this API.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "assetsCommit", - "description": "Git Commit (https://github.com/PMDCollab/SpriteCollab/) currently checked out to serve the assets.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "assetsUpdateDate", - "description": "Date of the last commit in the assets repository (https://github.com/PMDCollab/SpriteCollab) that is currently checked out.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "serverVersion", - "description": "Version of spritecollab-srv serving this API.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updateCheckedDate", - "description": "Date that the server last checked for updates.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Monster", - "description": null, - "fields": [ - { - "name": "forms", - "description": "All forms that exist for this monster.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MonsterForm", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "get", - "description": "Get a specific form for this monster.", - "args": [ - { - "name": "female", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "formId", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shiny", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "MonsterForm", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "ID of this monster.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "manual", - "description": "Manually enter the path to a monster, seperated by /. This should match the path as it is stored in SpriteCollab, however the path passed in might be collapsed until a unique form is found.", - "args": [ - { - "name": "path", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "MonsterForm", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Human-readable name of this monster.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "rawId", - "description": "Raw ID of this monster, as a string. This is a 4-character numeric string, padded with leading zeroes.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MonsterBounty", - "description": "A SkyTemple Discord Server Guild Point bounty that will be rewarded, if the portrait or sprite has transitioned into a phase.", - "fields": [ - { - "name": "exists", - "description": "Amount of points to reward if the phase changes to Exists.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "full", - "description": "Amount of points to reward if the phase changes to Full.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "incomplete", - "description": "Amount of points to reward if the phase changes to Incomplete.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "modreward", - "description": "If true, SpriteBot will not automatically hand out the Guild Point bounty.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "other", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "OtherBounty", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MonsterForm", - "description": null, - "fields": [ - { - "name": "canon", - "description": "Whether or not this form is canon.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fullName", - "description": "Human-readable full name of this form (excluding the monster name itself).", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fullPath", - "description": "The path to this form (including the monster ID) as it's specified in the SpriteCollab tracker.json file and repository file structure.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isFemale", - "description": "Whether or not this form is considered for a female monsters.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isShiny", - "description": "Whether or not this form is considered for a shiny.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "monsterId", - "description": "The ID of the monster, that this form belongs to.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "Human-readable name of this form.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "path", - "description": "The path to this form (without the monster ID) as it's specified in the SpriteCollab tracker.json file and repository file structure.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "portraits", - "description": "Portraits for this form.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MonsterFormPortraits", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sprites", - "description": "Sprites for this form.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MonsterFormSprites", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MonsterFormPortraits", - "description": "Portraits for a single monster form.", - "fields": [ - { - "name": "bounty", - "description": "Guild Point bounty for this portrait set.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MonsterBounty", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "creditPrimary", - "description": "Primary artist credits.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Credit", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "creditSecondary", - "description": "All other artists credited.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Credit", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "emotion", - "description": "A single portrait for a given emotion.", - "args": [ - { - "name": "emotion", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Portrait", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "emotionFlipped", - "description": "A single flipped portrait for a given emotion.", - "args": [ - { - "name": "emotion", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Portrait", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "emotions", - "description": "A list of all existing portraits for the emotions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Portrait", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "emotionsFlipped", - "description": "A list of all existing flipped portraits for the emotions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Portrait", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "history", - "description": "List of all modifications made to those portraits since its creation.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MonsterHistory", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "historyUrl", - "description": "Returns a URL to retrieve the credits text file for the portraits for this form.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "modifiedDate", - "description": "The date and time this portrait set was last updated.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "phase", - "description": "Current completion phase of the portraits.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "Phase", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "phaseRaw", - "description": "Current completion phase of the portraits (raw ID).", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "previewEmotion", - "description": "A single portrait. Return the 'Normal' portrait if avalaible, but may return another one if not present.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Portrait", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recolorSheetUrl", - "description": "URL to a SpriteBot format recolor sheet.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "required", - "description": "Whether or not this form should have portraits.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sheetUrl", - "description": "URL to a SpriteBot format sheet of all portraits.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MonsterFormSprites", - "description": "Sprites for a single monster form.", - "fields": [ - { - "name": "action", - "description": "A single sprite for a given action.", - "args": [ - { - "name": "action", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "UNION", - "name": "SpriteUnion", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "actions", - "description": "A list of all existing sprites for the actions.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "UNION", - "name": "SpriteUnion", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "animDataXml", - "description": "URL to the AnimData XML file for this sprite set.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "bounty", - "description": "Guild Point bounty for this sprite set.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MonsterBounty", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "creditPrimary", - "description": "Primary artist credits.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Credit", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "creditSecondary", - "description": "All other artists credited.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Credit", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "history", - "description": "List of all modifications made to those sprites since its creation.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MonsterHistory", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "historyUrl", - "description": "Returns a URL to retrieve the credits text file for the sprites for this form.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "modifiedDate", - "description": "The date and time this sprite set was last updated.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "phase", - "description": "Current completion phase of the sprites.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "Phase", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "phaseRaw", - "description": "Current completion phase of the sprites (raw ID).", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recolorSheetUrl", - "description": "URL to a SpriteBot format recolor sheet.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "required", - "description": "Whether or not this form should have sprites.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "zipUrl", - "description": "URL to a SpriteBot format ZIP archive of all sprites.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MonsterHistory", - "description": "An entry in the history log for a monster sprite or portrait.", - "fields": [ - { - "name": "credit", - "description": "The author that contributed for this history entry.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Credit", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "license", - "description": "The license applying to this modification.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "UNION", - "name": "License", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "modifications", - "description": "A list of emotions or actions that were changed in this history entry.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "modifiedDate", - "description": "The date of the history entry submission.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "obsolete", - "description": "True if the credit for this history entry was marked as no longer relevant for the current portraits or sprites.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OtherBounty", - "description": "A bounty for a non-standard phase.", - "fields": [ - { - "name": "bounty", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "phase", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "OtherLicense", - "description": "An unknown license. The name is the identifier for the license.", - "fields": [ - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "Phase", - "description": "The current phase of the sprite or portrait.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "EXISTS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FULL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INCOMPLETE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNKNOWN", - "description": "Returned if the phase value is non-standard. Use phaseRaw to get the raw ID.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Portrait", - "description": "A single portrait for a single emotion.", - "fields": [ - { - "name": "emotion", - "description": "Name of the emotion.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "locked", - "description": "Whether or not this sprite is locked and requires special permissions to be updated.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "url", - "description": "URL to the portraits.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Query", - "description": null, - "fields": [ - { - "name": "config", - "description": "Configuration for this instance of SpriteCollab.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Config", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "credit", - "description": "Retrieve a list of credits.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Credit", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "meta", - "description": "Meta information about the server and state of the assets.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Meta", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "monster", - "description": "Retrieve a list of monsters.", - "args": [ - { - "name": "filter", - "description": "Monster IDs to limit the request to.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Monster", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "searchCredit", - "description": "Search for a credit entry by (parts) of the ID, the author name or the contact info. Results are sorted by best match.", - "args": [ - { - "name": "query", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Credit", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "searchMonster", - "description": "Search for a monster by (parts) of its name. Results are sorted by best match.", - "args": [ - { - "name": "monsterName", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Monster", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Sprite", - "description": "A single sprite for a single action.", - "fields": [ - { - "name": "action", - "description": "Action of this sprite.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "animUrl", - "description": "URL to the sprite sheet containing the actual frames for the animation.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "locked", - "description": "Whether or not this sprite is locked and requires special permissions to be updated.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "offsetsUrl", - "description": "URL to the sprite sheet containing the sprite offset pixels for each frame.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "shadowsUrl", - "description": "URL to the sprite sheet containing the shadow placeholders for each frame.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "UNION", - "name": "SpriteUnion", - "description": "A single sprite for a single action that is either a copy of another sprite (as defined in the AnimData.xml) or has it's own sprite data.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "CopyOf", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Sprite", - "ofType": null - } - ] - }, - { - "kind": "SCALAR", - "name": "String", - "description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "__Directive", - "description": "A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.", - "fields": [ - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isRepeatable", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "locations", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "__DirectiveLocation", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "args", - "description": null, - "args": [ - { - "name": "includeDeprecated", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__InputValue", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "__DirectiveLocation", - "description": "A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "QUERY", - "description": "Location adjacent to a query operation.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MUTATION", - "description": "Location adjacent to a mutation operation.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SUBSCRIPTION", - "description": "Location adjacent to a subscription operation.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FIELD", - "description": "Location adjacent to a field.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FRAGMENT_DEFINITION", - "description": "Location adjacent to a fragment definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FRAGMENT_SPREAD", - "description": "Location adjacent to a fragment spread.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INLINE_FRAGMENT", - "description": "Location adjacent to an inline fragment.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VARIABLE_DEFINITION", - "description": "Location adjacent to a variable definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SCHEMA", - "description": "Location adjacent to a schema definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SCALAR", - "description": "Location adjacent to a scalar definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OBJECT", - "description": "Location adjacent to an object type definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FIELD_DEFINITION", - "description": "Location adjacent to a field definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ARGUMENT_DEFINITION", - "description": "Location adjacent to an argument definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INTERFACE", - "description": "Location adjacent to an interface definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNION", - "description": "Location adjacent to a union definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ENUM", - "description": "Location adjacent to an enum definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ENUM_VALUE", - "description": "Location adjacent to an enum value definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INPUT_OBJECT", - "description": "Location adjacent to an input object type definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INPUT_FIELD_DEFINITION", - "description": "Location adjacent to an input object field definition.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "__EnumValue", - "description": "One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.", - "fields": [ - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isDeprecated", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "deprecationReason", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "__Field", - "description": "Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.", - "fields": [ - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "args", - "description": null, - "args": [ - { - "name": "includeDeprecated", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__InputValue", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isDeprecated", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "deprecationReason", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "__InputValue", - "description": "Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.", - "fields": [ - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultValue", - "description": "A GraphQL-formatted string representing the default value for this input value.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isDeprecated", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "deprecationReason", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "__Schema", - "description": "A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.", - "fields": [ - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "types", - "description": "A list of all types supported by this server.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "queryType", - "description": "The type that query operations will be rooted at.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "mutationType", - "description": "If this server supports mutation, the type that mutation operations will be rooted at.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "subscriptionType", - "description": "If this server support subscription, the type that subscription operations will be rooted at.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "directives", - "description": "A list of all directives supported by this server.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Directive", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "__Type", - "description": "The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.", - "fields": [ - { - "name": "kind", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "__TypeKind", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "specifiedByUrl", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fields", - "description": null, - "args": [ - { - "name": "includeDeprecated", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Field", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "interfaces", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "possibleTypes", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "enumValues", - "description": null, - "args": [ - { - "name": "includeDeprecated", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__EnumValue", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "inputFields", - "description": null, - "args": [ - { - "name": "includeDeprecated", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__InputValue", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ofType", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "__TypeKind", - "description": "An enum describing what kind of type a given `__Type` is.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "SCALAR", - "description": "Indicates this type is a scalar.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OBJECT", - "description": "Indicates this type is an object. `fields` and `interfaces` are valid fields.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INTERFACE", - "description": "Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNION", - "description": "Indicates this type is a union. `possibleTypes` is a valid field.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ENUM", - "description": "Indicates this type is an enum. `enumValues` is a valid field.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INPUT_OBJECT", - "description": "Indicates this type is an input object. `inputFields` is a valid field.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LIST", - "description": "Indicates this type is a list. `ofType` is a valid field.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NON_NULL", - "description": "Indicates this type is a non-null. `ofType` is a valid field.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - } - ], - "directives": [ - { - "name": "deprecated", - "description": null, - "isRepeatable": false, - "locations": [ - "ENUM_VALUE", - "FIELD_DEFINITION" - ], - "args": [ - { - "name": "reason", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ] - }, - { - "name": "include", - "description": null, - "isRepeatable": false, - "locations": [ - "FIELD", - "FRAGMENT_SPREAD", - "INLINE_FRAGMENT" - ], - "args": [ - { - "name": "if", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ] - }, - { - "name": "skip", - "description": null, - "isRepeatable": false, - "locations": [ - "FIELD", - "FRAGMENT_SPREAD", - "INLINE_FRAGMENT" - ], - "args": [ - { - "name": "if", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ] - }, - { - "name": "specifiedBy", - "description": null, - "isRepeatable": false, - "locations": [ - "SCALAR" - ], - "args": [ - { - "name": "url", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ] - } - ] - } -} \ No newline at end of file diff --git a/index.html b/index.html index 3d91d6c32..bff53a1e9 100644 --- a/index.html +++ b/index.html @@ -26,10 +26,12 @@ content="PMD Collab" /> PMD Sprite Repository + +
- + diff --git a/public/maps/AMP_PLAINS.png b/maps/AMP_PLAINS.png similarity index 100% rename from public/maps/AMP_PLAINS.png rename to maps/AMP_PLAINS.png diff --git a/public/maps/BARREN_VALLEY.png b/maps/BARREN_VALLEY.png similarity index 100% rename from public/maps/BARREN_VALLEY.png rename to maps/BARREN_VALLEY.png diff --git a/public/maps/BEACH_CAVE.png b/maps/BEACH_CAVE.png similarity index 100% rename from public/maps/BEACH_CAVE.png rename to maps/BEACH_CAVE.png diff --git a/public/maps/BOTTOMLESS_SEA.png b/maps/BOTTOMLESS_SEA.png similarity index 100% rename from public/maps/BOTTOMLESS_SEA.png rename to maps/BOTTOMLESS_SEA.png diff --git a/public/maps/BRINE_CAVE.png b/maps/BRINE_CAVE.png similarity index 100% rename from public/maps/BRINE_CAVE.png rename to maps/BRINE_CAVE.png diff --git a/public/maps/BURIED_RELIC_1F_20F.png b/maps/BURIED_RELIC_1F_20F.png similarity index 100% rename from public/maps/BURIED_RELIC_1F_20F.png rename to maps/BURIED_RELIC_1F_20F.png diff --git a/public/maps/BURIED_RELIC_21F_50F.png b/maps/BURIED_RELIC_21F_50F.png similarity index 100% rename from public/maps/BURIED_RELIC_21F_50F.png rename to maps/BURIED_RELIC_21F_50F.png diff --git a/public/maps/BURIED_RELIC_51F_99F.png b/maps/BURIED_RELIC_51F_99F.png similarity index 100% rename from public/maps/BURIED_RELIC_51F_99F.png rename to maps/BURIED_RELIC_51F_99F.png diff --git a/public/maps/CONCEALED_RUINS.png b/maps/CONCEALED_RUINS.png similarity index 100% rename from public/maps/CONCEALED_RUINS.png rename to maps/CONCEALED_RUINS.png diff --git a/public/maps/CRAGGY_COAST.png b/maps/CRAGGY_COAST.png similarity index 100% rename from public/maps/CRAGGY_COAST.png rename to maps/CRAGGY_COAST.png diff --git a/public/maps/CRYSTAL_CAVE_01F_05F.png b/maps/CRYSTAL_CAVE_01F_05F.png similarity index 100% rename from public/maps/CRYSTAL_CAVE_01F_05F.png rename to maps/CRYSTAL_CAVE_01F_05F.png diff --git a/public/maps/CRYSTAL_CAVE_06F_11F.png b/maps/CRYSTAL_CAVE_06F_11F.png similarity index 100% rename from public/maps/CRYSTAL_CAVE_06F_11F.png rename to maps/CRYSTAL_CAVE_06F_11F.png diff --git a/public/maps/CRYSTAL_CAVE_2.png b/maps/CRYSTAL_CAVE_2.png similarity index 100% rename from public/maps/CRYSTAL_CAVE_2.png rename to maps/CRYSTAL_CAVE_2.png diff --git a/public/maps/CRYSTAL_CROSSING.png b/maps/CRYSTAL_CROSSING.png similarity index 100% rename from public/maps/CRYSTAL_CROSSING.png rename to maps/CRYSTAL_CROSSING.png diff --git a/public/maps/DARKNIGHT_RELIC.png b/maps/DARKNIGHT_RELIC.png similarity index 100% rename from public/maps/DARKNIGHT_RELIC.png rename to maps/DARKNIGHT_RELIC.png diff --git a/public/maps/DARK_CRATER.png b/maps/DARK_CRATER.png similarity index 100% rename from public/maps/DARK_CRATER.png rename to maps/DARK_CRATER.png diff --git a/public/maps/DARK_HILL_01F_06F.png b/maps/DARK_HILL_01F_06F.png similarity index 100% rename from public/maps/DARK_HILL_01F_06F.png rename to maps/DARK_HILL_01F_06F.png diff --git a/public/maps/DARK_HILL_07F_15F.png b/maps/DARK_HILL_07F_15F.png similarity index 100% rename from public/maps/DARK_HILL_07F_15F.png rename to maps/DARK_HILL_07F_15F.png diff --git a/public/maps/DARK_ICE_MOUNTAIN_PEAK.png b/maps/DARK_ICE_MOUNTAIN_PEAK.png similarity index 100% rename from public/maps/DARK_ICE_MOUNTAIN_PEAK.png rename to maps/DARK_ICE_MOUNTAIN_PEAK.png diff --git a/public/maps/DARK_WASTELAND.png b/maps/DARK_WASTELAND.png similarity index 100% rename from public/maps/DARK_WASTELAND.png rename to maps/DARK_WASTELAND.png diff --git a/public/maps/DEEP_BOULDER_QUARRY.png b/maps/DEEP_BOULDER_QUARRY.png similarity index 100% rename from public/maps/DEEP_BOULDER_QUARRY.png rename to maps/DEEP_BOULDER_QUARRY.png diff --git a/public/maps/DEEP_DARK_CRATER.png b/maps/DEEP_DARK_CRATER.png similarity index 100% rename from public/maps/DEEP_DARK_CRATER.png rename to maps/DEEP_DARK_CRATER.png diff --git a/public/maps/DEEP_DUSK_FOREST_01F_06F.png b/maps/DEEP_DUSK_FOREST_01F_06F.png similarity index 100% rename from public/maps/DEEP_DUSK_FOREST_01F_06F.png rename to maps/DEEP_DUSK_FOREST_01F_06F.png diff --git a/public/maps/DEEP_DUSK_FOREST_07F_12F.png b/maps/DEEP_DUSK_FOREST_07F_12F.png similarity index 100% rename from public/maps/DEEP_DUSK_FOREST_07F_12F.png rename to maps/DEEP_DUSK_FOREST_07F_12F.png diff --git a/public/maps/DEEP_LIMESTONE_CAVERN.png b/maps/DEEP_LIMESTONE_CAVERN.png similarity index 100% rename from public/maps/DEEP_LIMESTONE_CAVERN.png rename to maps/DEEP_LIMESTONE_CAVERN.png diff --git a/public/maps/DEEP_SEALED_RUIN.png b/maps/DEEP_SEALED_RUIN.png similarity index 100% rename from public/maps/DEEP_SEALED_RUIN.png rename to maps/DEEP_SEALED_RUIN.png diff --git a/public/maps/DRENCHED_BLUFF.png b/maps/DRENCHED_BLUFF.png similarity index 100% rename from public/maps/DRENCHED_BLUFF.png rename to maps/DRENCHED_BLUFF.png diff --git a/public/maps/DUSK_FOREST_01F_04F.png b/maps/DUSK_FOREST_01F_04F.png similarity index 100% rename from public/maps/DUSK_FOREST_01F_04F.png rename to maps/DUSK_FOREST_01F_04F.png diff --git a/public/maps/DUSK_FOREST_05F_08F.png b/maps/DUSK_FOREST_05F_08F.png similarity index 100% rename from public/maps/DUSK_FOREST_05F_08F.png rename to maps/DUSK_FOREST_05F_08F.png diff --git a/public/maps/FAR_AMP_PLAINS.png b/maps/FAR_AMP_PLAINS.png similarity index 100% rename from public/maps/FAR_AMP_PLAINS.png rename to maps/FAR_AMP_PLAINS.png diff --git a/public/maps/FINAL_MAZE_B23F.png b/maps/FINAL_MAZE_B23F.png similarity index 100% rename from public/maps/FINAL_MAZE_B23F.png rename to maps/FINAL_MAZE_B23F.png diff --git a/public/maps/FOGGY_FOREST.png b/maps/FOGGY_FOREST.png similarity index 100% rename from public/maps/FOGGY_FOREST.png rename to maps/FOGGY_FOREST.png diff --git a/public/maps/FOREST_PATH.png b/maps/FOREST_PATH.png similarity index 100% rename from public/maps/FOREST_PATH.png rename to maps/FOREST_PATH.png diff --git a/public/maps/FOURTH_STATION_PATH.png b/maps/FOURTH_STATION_PATH.png similarity index 100% rename from public/maps/FOURTH_STATION_PATH.png rename to maps/FOURTH_STATION_PATH.png diff --git a/public/maps/FROSTY_FOREST.png b/maps/FROSTY_FOREST.png similarity index 100% rename from public/maps/FROSTY_FOREST.png rename to maps/FROSTY_FOREST.png diff --git a/public/maps/GOLD_CHAMBER.png b/maps/GOLD_CHAMBER.png similarity index 100% rename from public/maps/GOLD_CHAMBER.png rename to maps/GOLD_CHAMBER.png diff --git a/public/maps/GREAT_CANYON.png b/maps/GREAT_CANYON.png similarity index 100% rename from public/maps/GREAT_CANYON.png rename to maps/GREAT_CANYON.png diff --git a/public/maps/HIDDEN_HIGHLAND.png b/maps/HIDDEN_HIGHLAND.png similarity index 100% rename from public/maps/HIDDEN_HIGHLAND.png rename to maps/HIDDEN_HIGHLAND.png diff --git a/public/maps/HOWLING_FOREST_01F_06F.png b/maps/HOWLING_FOREST_01F_06F.png similarity index 100% rename from public/maps/HOWLING_FOREST_01F_06F.png rename to maps/HOWLING_FOREST_01F_06F.png diff --git a/public/maps/HOWLING_FOREST_07F_15F.png b/maps/HOWLING_FOREST_07F_15F.png similarity index 100% rename from public/maps/HOWLING_FOREST_07F_15F.png rename to maps/HOWLING_FOREST_07F_15F.png diff --git a/public/maps/ICICLE_FOREST.png b/maps/ICICLE_FOREST.png similarity index 100% rename from public/maps/ICICLE_FOREST.png rename to maps/ICICLE_FOREST.png diff --git a/public/maps/JOYOUS_TOWER.png b/maps/JOYOUS_TOWER.png similarity index 100% rename from public/maps/JOYOUS_TOWER.png rename to maps/JOYOUS_TOWER.png diff --git a/public/maps/LAPIS_CAVE.png b/maps/LAPIS_CAVE.png similarity index 100% rename from public/maps/LAPIS_CAVE.png rename to maps/LAPIS_CAVE.png diff --git a/public/maps/LIGHTNING_FIELD.png b/maps/LIGHTNING_FIELD.png similarity index 100% rename from public/maps/LIGHTNING_FIELD.png rename to maps/LIGHTNING_FIELD.png diff --git a/public/maps/LIMESTONE_CAVERN.png b/maps/LIMESTONE_CAVERN.png similarity index 100% rename from public/maps/LIMESTONE_CAVERN.png rename to maps/LIMESTONE_CAVERN.png diff --git a/public/maps/LOWER_BRINE_CAVE.png b/maps/LOWER_BRINE_CAVE.png similarity index 100% rename from public/maps/LOWER_BRINE_CAVE.png rename to maps/LOWER_BRINE_CAVE.png diff --git a/public/maps/MAGMA_CAVERN_08F_17F.png b/maps/MAGMA_CAVERN_08F_17F.png similarity index 100% rename from public/maps/MAGMA_CAVERN_08F_17F.png rename to maps/MAGMA_CAVERN_08F_17F.png diff --git a/public/maps/MAGMA_CAVERN_18F_23F.png b/maps/MAGMA_CAVERN_18F_23F.png similarity index 100% rename from public/maps/MAGMA_CAVERN_18F_23F.png rename to maps/MAGMA_CAVERN_18F_23F.png diff --git a/public/maps/METEOR_CAVE.png b/maps/METEOR_CAVE.png similarity index 100% rename from public/maps/METEOR_CAVE.png rename to maps/METEOR_CAVE.png diff --git a/public/maps/MT_BLAZE.png b/maps/MT_BLAZE.png similarity index 100% rename from public/maps/MT_BLAZE.png rename to maps/MT_BLAZE.png diff --git a/public/maps/MT_FARAWAY.png b/maps/MT_FARAWAY.png similarity index 100% rename from public/maps/MT_FARAWAY.png rename to maps/MT_FARAWAY.png diff --git a/public/maps/MT_FARAWAY_10F_20F.png b/maps/MT_FARAWAY_10F_20F.png similarity index 100% rename from public/maps/MT_FARAWAY_10F_20F.png rename to maps/MT_FARAWAY_10F_20F.png diff --git a/public/maps/MT_FARAWAY_30F_39F.png b/maps/MT_FARAWAY_30F_39F.png similarity index 100% rename from public/maps/MT_FARAWAY_30F_39F.png rename to maps/MT_FARAWAY_30F_39F.png diff --git a/public/maps/MT_FREEZE.png b/maps/MT_FREEZE.png similarity index 100% rename from public/maps/MT_FREEZE.png rename to maps/MT_FREEZE.png diff --git a/public/maps/MT_STEEL_01F_05F.png b/maps/MT_STEEL_01F_05F.png similarity index 100% rename from public/maps/MT_STEEL_01F_05F.png rename to maps/MT_STEEL_01F_05F.png diff --git a/public/maps/MT_STEEL_06F_08F.png b/maps/MT_STEEL_06F_08F.png similarity index 100% rename from public/maps/MT_STEEL_06F_08F.png rename to maps/MT_STEEL_06F_08F.png diff --git a/public/maps/MT_THUNDER.png b/maps/MT_THUNDER.png similarity index 100% rename from public/maps/MT_THUNDER.png rename to maps/MT_THUNDER.png diff --git a/public/maps/MT_THUNDER_PEAK.png b/maps/MT_THUNDER_PEAK.png similarity index 100% rename from public/maps/MT_THUNDER_PEAK.png rename to maps/MT_THUNDER_PEAK.png diff --git a/public/maps/MURKY_CAVE.png b/maps/MURKY_CAVE.png similarity index 100% rename from public/maps/MURKY_CAVE.png rename to maps/MURKY_CAVE.png diff --git a/public/maps/MURKY_FOREST.png b/maps/MURKY_FOREST.png similarity index 100% rename from public/maps/MURKY_FOREST.png rename to maps/MURKY_FOREST.png diff --git a/public/maps/MYSTERY_JUNGLE_01F_15F.png b/maps/MYSTERY_JUNGLE_01F_15F.png similarity index 100% rename from public/maps/MYSTERY_JUNGLE_01F_15F.png rename to maps/MYSTERY_JUNGLE_01F_15F.png diff --git a/public/maps/MYSTERY_JUNGLE_16F_30F.png b/maps/MYSTERY_JUNGLE_16F_30F.png similarity index 100% rename from public/maps/MYSTERY_JUNGLE_16F_30F.png rename to maps/MYSTERY_JUNGLE_16F_30F.png diff --git a/public/maps/MYSTIFYING_FOREST.png b/maps/MYSTIFYING_FOREST.png similarity index 100% rename from public/maps/MYSTIFYING_FOREST.png rename to maps/MYSTIFYING_FOREST.png diff --git a/public/maps/NORMAL_MAZE.png b/maps/NORMAL_MAZE.png similarity index 100% rename from public/maps/NORMAL_MAZE.png rename to maps/NORMAL_MAZE.png diff --git a/public/maps/NORTHERN_DESERT_01F_07F.png b/maps/NORTHERN_DESERT_01F_07F.png similarity index 100% rename from public/maps/NORTHERN_DESERT_01F_07F.png rename to maps/NORTHERN_DESERT_01F_07F.png diff --git a/public/maps/NORTHERN_RANGE_01F_07F.png b/maps/NORTHERN_RANGE_01F_07F.png similarity index 100% rename from public/maps/NORTHERN_RANGE_01F_07F.png rename to maps/NORTHERN_RANGE_01F_07F.png diff --git a/public/maps/NORTHERN_RANGE_08F_16F.png b/maps/NORTHERN_RANGE_08F_16F.png similarity index 100% rename from public/maps/NORTHERN_RANGE_08F_16F.png rename to maps/NORTHERN_RANGE_08F_16F.png diff --git a/public/maps/NORTHWIND_FIELD.png b/maps/NORTHWIND_FIELD.png similarity index 100% rename from public/maps/NORTHWIND_FIELD.png rename to maps/NORTHWIND_FIELD.png diff --git a/public/maps/PITFALL_VALLEY.png b/maps/PITFALL_VALLEY.png similarity index 100% rename from public/maps/PITFALL_VALLEY.png rename to maps/PITFALL_VALLEY.png diff --git a/public/maps/POISON_MAZE.png b/maps/POISON_MAZE.png similarity index 100% rename from public/maps/POISON_MAZE.png rename to maps/POISON_MAZE.png diff --git a/public/maps/PURITY_FOREST_04F_07F.png b/maps/PURITY_FOREST_04F_07F.png similarity index 100% rename from public/maps/PURITY_FOREST_04F_07F.png rename to maps/PURITY_FOREST_04F_07F.png diff --git a/public/maps/PURITY_FOREST_13F_20F.png b/maps/PURITY_FOREST_13F_20F.png similarity index 100% rename from public/maps/PURITY_FOREST_13F_20F.png rename to maps/PURITY_FOREST_13F_20F.png diff --git a/public/maps/PURITY_FOREST_30F_43F.png b/maps/PURITY_FOREST_30F_43F.png similarity index 100% rename from public/maps/PURITY_FOREST_30F_43F.png rename to maps/PURITY_FOREST_30F_43F.png diff --git a/public/maps/PURITY_FOREST_44F_60F.png b/maps/PURITY_FOREST_44F_60F.png similarity index 100% rename from public/maps/PURITY_FOREST_44F_60F.png rename to maps/PURITY_FOREST_44F_60F.png diff --git a/public/maps/PURITY_FOREST_61F_79F.png b/maps/PURITY_FOREST_61F_79F.png similarity index 100% rename from public/maps/PURITY_FOREST_61F_79F.png rename to maps/PURITY_FOREST_61F_79F.png diff --git a/public/maps/PURITY_FOREST_80F_99F.png b/maps/PURITY_FOREST_80F_99F.png similarity index 100% rename from public/maps/PURITY_FOREST_80F_99F.png rename to maps/PURITY_FOREST_80F_99F.png diff --git a/public/maps/QUICKSAND_CAVE.png b/maps/QUICKSAND_CAVE.png similarity index 100% rename from public/maps/QUICKSAND_CAVE.png rename to maps/QUICKSAND_CAVE.png diff --git a/public/maps/QUICKSAND_PIT.png b/maps/QUICKSAND_PIT.png similarity index 100% rename from public/maps/QUICKSAND_PIT.png rename to maps/QUICKSAND_PIT.png diff --git a/public/maps/QUICKSAND_PIT_2.png b/maps/QUICKSAND_PIT_2.png similarity index 100% rename from public/maps/QUICKSAND_PIT_2.png rename to maps/QUICKSAND_PIT_2.png diff --git a/public/maps/RESCUE_TEAM_MAZE.png b/maps/RESCUE_TEAM_MAZE.png similarity index 100% rename from public/maps/RESCUE_TEAM_MAZE.png rename to maps/RESCUE_TEAM_MAZE.png diff --git a/public/maps/ROCK_AEGIS_CAVE.png b/maps/ROCK_AEGIS_CAVE.png similarity index 100% rename from public/maps/ROCK_AEGIS_CAVE.png rename to maps/ROCK_AEGIS_CAVE.png diff --git a/public/maps/ROCK_PATH.png b/maps/ROCK_PATH.png similarity index 100% rename from public/maps/ROCK_PATH.png rename to maps/ROCK_PATH.png diff --git a/public/maps/SERENITY_RIVER.png b/maps/SERENITY_RIVER.png similarity index 100% rename from public/maps/SERENITY_RIVER.png rename to maps/SERENITY_RIVER.png diff --git a/public/maps/SEVEN_STATION_PATH.png b/maps/SEVEN_STATION_PATH.png similarity index 100% rename from public/maps/SEVEN_STATION_PATH.png rename to maps/SEVEN_STATION_PATH.png diff --git a/public/maps/SHIMMER_DESERT.png b/maps/SHIMMER_DESERT.png similarity index 100% rename from public/maps/SHIMMER_DESERT.png rename to maps/SHIMMER_DESERT.png diff --git a/public/maps/SILENT_CHASM.png b/maps/SILENT_CHASM.png similarity index 100% rename from public/maps/SILENT_CHASM.png rename to maps/SILENT_CHASM.png diff --git a/public/maps/SILVER_TRENCH.png b/maps/SILVER_TRENCH.png similarity index 100% rename from public/maps/SILVER_TRENCH.png rename to maps/SILVER_TRENCH.png diff --git a/public/maps/SINISTER_WOODS.png b/maps/SINISTER_WOODS.png similarity index 100% rename from public/maps/SINISTER_WOODS.png rename to maps/SINISTER_WOODS.png diff --git a/public/maps/SKY_TOWER.png b/maps/SKY_TOWER.png similarity index 100% rename from public/maps/SKY_TOWER.png rename to maps/SKY_TOWER.png diff --git a/public/maps/SNOW_PATH.png b/maps/SNOW_PATH.png similarity index 100% rename from public/maps/SNOW_PATH.png rename to maps/SNOW_PATH.png diff --git a/public/maps/SOLAR_CAVE.png b/maps/SOLAR_CAVE.png similarity index 100% rename from public/maps/SOLAR_CAVE.png rename to maps/SOLAR_CAVE.png diff --git a/public/maps/SOUTHERN_CAVERN_01F_23F.png b/maps/SOUTHERN_CAVERN_01F_23F.png similarity index 100% rename from public/maps/SOUTHERN_CAVERN_01F_23F.png rename to maps/SOUTHERN_CAVERN_01F_23F.png diff --git a/public/maps/SOUTHERN_CAVERN_24F_50F.png b/maps/SOUTHERN_CAVERN_24F_50F.png similarity index 100% rename from public/maps/SOUTHERN_CAVERN_24F_50F.png rename to maps/SOUTHERN_CAVERN_24F_50F.png diff --git a/public/maps/SPACIAL_CLIFFS.png b/maps/SPACIAL_CLIFFS.png similarity index 100% rename from public/maps/SPACIAL_CLIFFS.png rename to maps/SPACIAL_CLIFFS.png diff --git a/public/maps/STEAM_CAVE.png b/maps/STEAM_CAVE.png similarity index 100% rename from public/maps/STEAM_CAVE.png rename to maps/STEAM_CAVE.png diff --git a/public/maps/STORMY_SEA_01F_16F.png b/maps/STORMY_SEA_01F_16F.png similarity index 100% rename from public/maps/STORMY_SEA_01F_16F.png rename to maps/STORMY_SEA_01F_16F.png diff --git a/public/maps/STORMY_SEA_16F_39F.png b/maps/STORMY_SEA_16F_39F.png similarity index 100% rename from public/maps/STORMY_SEA_16F_39F.png rename to maps/STORMY_SEA_16F_39F.png diff --git a/public/maps/SURROUNDED_SEA.png b/maps/SURROUNDED_SEA.png similarity index 100% rename from public/maps/SURROUNDED_SEA.png rename to maps/SURROUNDED_SEA.png diff --git a/public/maps/TEMPORAL_SPIRE.png b/maps/TEMPORAL_SPIRE.png similarity index 100% rename from public/maps/TEMPORAL_SPIRE.png rename to maps/TEMPORAL_SPIRE.png diff --git a/public/maps/TEMPORAL_SPIRE_FUTURE.png b/maps/TEMPORAL_SPIRE_FUTURE.png similarity index 100% rename from public/maps/TEMPORAL_SPIRE_FUTURE.png rename to maps/TEMPORAL_SPIRE_FUTURE.png diff --git a/public/maps/TEMPORAL_TOWER.png b/maps/TEMPORAL_TOWER.png similarity index 100% rename from public/maps/TEMPORAL_TOWER.png rename to maps/TEMPORAL_TOWER.png diff --git a/public/maps/TEMPORAL_TOWER_2.png b/maps/TEMPORAL_TOWER_2.png similarity index 100% rename from public/maps/TEMPORAL_TOWER_2.png rename to maps/TEMPORAL_TOWER_2.png diff --git a/public/maps/TEMPORAL_TOWER_FUTURE.png b/maps/TEMPORAL_TOWER_FUTURE.png similarity index 100% rename from public/maps/TEMPORAL_TOWER_FUTURE.png rename to maps/TEMPORAL_TOWER_FUTURE.png diff --git a/public/maps/TEST_DUNGEON.png b/maps/TEST_DUNGEON.png similarity index 100% rename from public/maps/TEST_DUNGEON.png rename to maps/TEST_DUNGEON.png diff --git a/public/maps/THE_NIGHTMARE.png b/maps/THE_NIGHTMARE.png similarity index 100% rename from public/maps/THE_NIGHTMARE.png rename to maps/THE_NIGHTMARE.png diff --git a/public/maps/THUNDERWAVE_CAVE.png b/maps/THUNDERWAVE_CAVE.png similarity index 100% rename from public/maps/THUNDERWAVE_CAVE.png rename to maps/THUNDERWAVE_CAVE.png diff --git a/public/maps/TINY_MEADOW.png b/maps/TINY_MEADOW.png similarity index 100% rename from public/maps/TINY_MEADOW.png rename to maps/TINY_MEADOW.png diff --git a/public/maps/TINY_WOODS.png b/maps/TINY_WOODS.png similarity index 100% rename from public/maps/TINY_WOODS.png rename to maps/TINY_WOODS.png diff --git a/public/maps/TREESHROUD_FOREST_01F_08F.png b/maps/TREESHROUD_FOREST_01F_08F.png similarity index 100% rename from public/maps/TREESHROUD_FOREST_01F_08F.png rename to maps/TREESHROUD_FOREST_01F_08F.png diff --git a/public/maps/TREESHROUD_FOREST_09F_21F.png b/maps/TREESHROUD_FOREST_09F_21F.png similarity index 100% rename from public/maps/TREESHROUD_FOREST_09F_21F.png rename to maps/TREESHROUD_FOREST_09F_21F.png diff --git a/public/maps/UNOWN_RELIC.png b/maps/UNOWN_RELIC.png similarity index 100% rename from public/maps/UNOWN_RELIC.png rename to maps/UNOWN_RELIC.png diff --git a/public/maps/UPROAR_FOREST.png b/maps/UPROAR_FOREST.png similarity index 100% rename from public/maps/UPROAR_FOREST.png rename to maps/UPROAR_FOREST.png diff --git a/public/maps/VAST_ICE_MOUNTAIN.png b/maps/VAST_ICE_MOUNTAIN.png similarity index 100% rename from public/maps/VAST_ICE_MOUNTAIN.png rename to maps/VAST_ICE_MOUNTAIN.png diff --git a/public/maps/VAST_ICE_MOUNTAIN_PEAK.png b/maps/VAST_ICE_MOUNTAIN_PEAK.png similarity index 100% rename from public/maps/VAST_ICE_MOUNTAIN_PEAK.png rename to maps/VAST_ICE_MOUNTAIN_PEAK.png diff --git a/public/maps/WATERFALL_CAVE.png b/maps/WATERFALL_CAVE.png similarity index 100% rename from public/maps/WATERFALL_CAVE.png rename to maps/WATERFALL_CAVE.png diff --git a/public/maps/WATERFALL_POND.png b/maps/WATERFALL_POND.png similarity index 100% rename from public/maps/WATERFALL_POND.png rename to maps/WATERFALL_POND.png diff --git a/public/maps/WESTERN_CAVE_B01F_B27F.png b/maps/WESTERN_CAVE_B01F_B27F.png similarity index 100% rename from public/maps/WESTERN_CAVE_B01F_B27F.png rename to maps/WESTERN_CAVE_B01F_B27F.png diff --git a/public/maps/WESTERN_CAVE_B28F_B39F.png b/maps/WESTERN_CAVE_B28F_B39F.png similarity index 100% rename from public/maps/WESTERN_CAVE_B28F_B39F.png rename to maps/WESTERN_CAVE_B28F_B39F.png diff --git a/public/maps/WISH_CAVE_01F_13F.png b/maps/WISH_CAVE_01F_13F.png similarity index 100% rename from public/maps/WISH_CAVE_01F_13F.png rename to maps/WISH_CAVE_01F_13F.png diff --git a/public/maps/WISH_CAVE_90F_99F.png b/maps/WISH_CAVE_90F_99F.png similarity index 100% rename from public/maps/WISH_CAVE_90F_99F.png rename to maps/WISH_CAVE_90F_99F.png diff --git a/public/maps/WORLD_ABYSS.png b/maps/WORLD_ABYSS.png similarity index 100% rename from public/maps/WORLD_ABYSS.png rename to maps/WORLD_ABYSS.png diff --git a/public/maps/WYVERN_HILL.png b/maps/WYVERN_HILL.png similarity index 100% rename from public/maps/WYVERN_HILL.png rename to maps/WYVERN_HILL.png diff --git a/public/maps/ZERO_ISLE_EAST_15F_25F.png b/maps/ZERO_ISLE_EAST_15F_25F.png similarity index 100% rename from public/maps/ZERO_ISLE_EAST_15F_25F.png rename to maps/ZERO_ISLE_EAST_15F_25F.png diff --git a/public/maps/ZERO_ISLE_EAST_26F_40F.png b/maps/ZERO_ISLE_EAST_26F_40F.png similarity index 100% rename from public/maps/ZERO_ISLE_EAST_26F_40F.png rename to maps/ZERO_ISLE_EAST_26F_40F.png diff --git a/public/maps/ZERO_ISLE_SOUTH_01F_03F.png b/maps/ZERO_ISLE_SOUTH_01F_03F.png similarity index 100% rename from public/maps/ZERO_ISLE_SOUTH_01F_03F.png rename to maps/ZERO_ISLE_SOUTH_01F_03F.png diff --git a/public/maps/ZERO_ISLE_SOUTH_04F_08F.png b/maps/ZERO_ISLE_SOUTH_04F_08F.png similarity index 100% rename from public/maps/ZERO_ISLE_SOUTH_04F_08F.png rename to maps/ZERO_ISLE_SOUTH_04F_08F.png diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index a1bac023a..000000000 --- a/package-lock.json +++ /dev/null @@ -1,7378 +0,0 @@ -{ - "name": "app", - "version": "0.1.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "app", - "version": "0.1.0", - "dependencies": { - "@apollo/client": "^3.7.15", - "@emotion/react": "^11.11.1", - "@emotion/styled": "^11.11.0", - "@fontsource/roboto": "^5.0.3", - "@mui/icons-material": "^5.11.16", - "@mui/lab": "^5.0.0-alpha.134", - "@mui/material": "^5.13.5", - "@types/node": "^20.2.5", - "@types/react-dom": "^18.2.4", - "@types/react-infinite-scroller": "^1.2.5", - "@vitejs/plugin-react-swc": "^3.3.2", - "dataframe-js": "^1.4.4", - "fast-xml-parser": "^4.2.4", - "gh-pages": "^5.0.0", - "phaser": "^3.60.0", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "react-infinite-scroll": "^0.1.5", - "react-router-dom": "^6.22.1", - "react-tabs": "^6.0.1", - "typescript": "^4.9.5", - "vite": "^4.4.9", - "vite-plugin-svgr": "^3.2.0", - "vite-tsconfig-paths": "^4.2.1", - "web-vitals": "^3.3.2" - }, - "devDependencies": { - "@graphql-codegen/cli": "^2.6.2", - "@graphql-codegen/introspection": "2.1.1", - "@graphql-codegen/typescript": "2.4.11", - "@graphql-codegen/typescript-operations": "2.4.0", - "@graphql-codegen/typescript-react-apollo": "3.2.14", - "@types/dataframe-js": "^1.4.0", - "@types/react": "^18.0.12", - "node-fetch": "^3.2.4" - } - }, - "node_modules/@ampproject/remapping": { - "version": "2.2.0", - "license": "Apache-2.0", - "dependencies": { - "@jridgewell/gen-mapping": "^0.1.0", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@ampproject/remapping/node_modules/@jridgewell/gen-mapping": { - "version": "0.1.1", - "license": "MIT", - "dependencies": { - "@jridgewell/set-array": "^1.0.0", - "@jridgewell/sourcemap-codec": "^1.4.10" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@apollo/client": { - "version": "3.7.15", - "license": "MIT", - "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "@wry/context": "^0.7.0", - "@wry/equality": "^0.5.0", - "@wry/trie": "^0.4.0", - "graphql-tag": "^2.12.6", - "hoist-non-react-statics": "^3.3.2", - "optimism": "^0.16.2", - "prop-types": "^15.7.2", - "response-iterator": "^0.2.6", - "symbol-observable": "^4.0.0", - "ts-invariant": "^0.10.3", - "tslib": "^2.3.0", - "zen-observable-ts": "^1.2.5" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0", - "graphql-ws": "^5.5.5", - "react": "^16.8.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0", - "subscriptions-transport-ws": "^0.9.0 || ^0.11.0" - }, - "peerDependenciesMeta": { - "graphql-ws": { - "optional": true - }, - "react": { - "optional": true - }, - "react-dom": { - "optional": true - }, - "subscriptions-transport-ws": { - "optional": true - } - } - }, - "node_modules/@ardatan/sync-fetch": { - "version": "0.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "node-fetch": "^2.6.1" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/@ardatan/sync-fetch/node_modules/node-fetch": { - "version": "2.6.11", - "dev": true, - "license": "MIT", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/@ardatan/sync-fetch/node_modules/tr46": { - "version": "0.0.3", - "dev": true, - "license": "MIT" - }, - "node_modules/@ardatan/sync-fetch/node_modules/webidl-conversions": { - "version": "3.0.1", - "dev": true, - "license": "BSD-2-Clause" - }, - "node_modules/@ardatan/sync-fetch/node_modules/whatwg-url": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", - "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", - "dependencies": { - "@babel/highlight": "^7.23.4", - "chalk": "^2.4.2" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/code-frame/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/code-frame/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/code-frame/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/@babel/code-frame/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" - }, - "node_modules/@babel/code-frame/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/code-frame/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.20.tgz", - "integrity": "sha512-BQYjKbpXjoXwFW5jGqiizJQQT/aC7pFm9Ok1OWssonuguICi264lbgMzRp2ZMmRSlfkX6DsWDDcsrctK8Rwfiw==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.20.tgz", - "integrity": "sha512-Y6jd1ahLubuYweD/zJH+vvOY141v4f9igNQAQ+MBgq9JlHS2iTsZKn1aMsb3vGccZsXI16VzTBw52Xx0DWmtnA==", - "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.22.13", - "@babel/generator": "^7.22.15", - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-module-transforms": "^7.22.20", - "@babel/helpers": "^7.22.15", - "@babel/parser": "^7.22.16", - "@babel/template": "^7.22.15", - "@babel/traverse": "^7.22.20", - "@babel/types": "^7.22.19", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/generator": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.6.tgz", - "integrity": "sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==", - "dependencies": { - "@babel/types": "^7.23.6", - "@jridgewell/gen-mapping": "^0.3.2", - "@jridgewell/trace-mapping": "^0.3.17", - "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-annotate-as-pure": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz", - "integrity": "sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz", - "integrity": "sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==", - "dependencies": { - "@babel/compat-data": "^7.22.9", - "@babel/helper-validator-option": "^7.22.15", - "browserslist": "^4.21.9", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.15.tgz", - "integrity": "sha512-jKkwA59IXcvSaiK2UN45kKwSC9o+KuoXsBDvHvU/7BecYIp8GQ2UwrVvFgJASUT+hBnwJx6MhvMCuMzwZZ7jlg==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-environment-visitor": "^7.22.5", - "@babel/helper-function-name": "^7.22.5", - "@babel/helper-member-expression-to-functions": "^7.22.15", - "@babel/helper-optimise-call-expression": "^7.22.5", - "@babel/helper-replace-supers": "^7.22.9", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-environment-visitor": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", - "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-function-name": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", - "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", - "dependencies": { - "@babel/template": "^7.22.15", - "@babel/types": "^7.23.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-hoist-variables": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", - "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.22.15.tgz", - "integrity": "sha512-qLNsZbgrNh0fDQBCPocSL8guki1hcPvltGDv/NxvUoABwFq7GkKSu1nRXeJkVZc+wJvne2E0RKQz+2SQrz6eAA==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.15" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", - "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", - "dependencies": { - "@babel/types": "^7.22.15" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.20.tgz", - "integrity": "sha512-dLT7JVWIUUxKOs1UnJUBR3S70YK+pKX6AbJgB2vMIvEkZkrfJDbYDJesnPshtKV4LhDOR3Oc5YULeDizRek+5A==", - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-module-imports": "^7.22.15", - "@babel/helper-simple-access": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/helper-validator-identifier": "^7.22.20" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.22.5.tgz", - "integrity": "sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", - "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-replace-supers": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.20.tgz", - "integrity": "sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==", - "dev": true, - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-member-expression-to-functions": "^7.22.15", - "@babel/helper-optimise-call-expression": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-simple-access": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", - "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.22.5.tgz", - "integrity": "sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-split-export-declaration": { - "version": "7.22.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", - "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", - "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", - "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.15.tgz", - "integrity": "sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.15.tgz", - "integrity": "sha512-7pAjK0aSdxOwR+CcYAqgWOGy5dcfvzsTIfFTb2odQqW47MDfv14UaJDY6eng8ylM2EaeKXdxaSWESbkmaQHTmw==", - "dependencies": { - "@babel/template": "^7.22.15", - "@babel/traverse": "^7.22.15", - "@babel/types": "^7.22.15" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", - "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", - "dependencies": { - "@babel/helper-validator-identifier": "^7.22.20", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/@babel/highlight/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" - }, - "node_modules/@babel/highlight/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/parser": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.6.tgz", - "integrity": "sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==", - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-proposal-class-properties": { - "version": "7.17.12", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.17.12", - "@babel/helper-plugin-utils": "^7.17.12" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-object-rest-spread": { - "version": "7.18.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/compat-data": "^7.17.10", - "@babel/helper-compilation-targets": "^7.17.10", - "@babel/helper-plugin-utils": "^7.17.12", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.17.12" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.12.13" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-flow": { - "version": "7.17.12", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-assertions": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.22.5.tgz", - "integrity": "sha512-rdV97N7KqsRzeNGoWUOK6yUsWarLjE5Su/Snk9IYPU9CwkWHs4t+rTGOvffTR8XGkJMTAdLfO0xVnXm8wugIJg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.22.5.tgz", - "integrity": "sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.22.5.tgz", - "integrity": "sha512-26lTNXoVRdAnsaDXPpvCNUq+OVWEVC6bx7Vvz9rC53F2bagUWW4u4ii2+h8Fejfh7RYqPxn+libeFBBck9muEw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.22.5.tgz", - "integrity": "sha512-tdXZ2UdknEKQWKJP1KMNmuF5Lx3MymtMN/pvA+p/VEkhK8jVcQ1fzSy8KM9qRYhAf2/lV33hoMPKI/xaI9sADA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.22.15.tgz", - "integrity": "sha512-G1czpdJBZCtngoK1sJgloLiOHUnkb/bLZwqVZD8kXmq0ZnVfTTWUcs9OWtp0mBtYJ+4LQY1fllqBkOIPhXmFmw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-classes": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.22.15.tgz", - "integrity": "sha512-VbbC3PGjBdE0wAWDdHM9G8Gm977pnYI0XpqMd6LrKISj8/DJXEsWqgRuTYaNE9Bv0JGhTZUzHDlMk18IpOuoqw==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-environment-visitor": "^7.22.5", - "@babel/helper-function-name": "^7.22.5", - "@babel/helper-optimise-call-expression": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-replace-supers": "^7.22.9", - "@babel/helper-split-export-declaration": "^7.22.6", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.22.5.tgz", - "integrity": "sha512-4GHWBgRf0krxPX+AaPtgBAlTgTeZmqDynokHOX7aqqAB4tHs3U2Y02zH6ETFdLZGcg9UQSD1WCmkVrE9ErHeOg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/template": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.22.15.tgz", - "integrity": "sha512-HzG8sFl1ZVGTme74Nw+X01XsUTqERVQ6/RLHo3XjGRzm7XD6QTtfS3NJotVgCGy8BzkDqRjRBD8dAyJn5TuvSQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-flow-strip-types": { - "version": "7.17.12", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.17.12", - "@babel/plugin-syntax-flow": "^7.17.12" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-for-of": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.22.15.tgz", - "integrity": "sha512-me6VGeHsx30+xh9fbDLLPi0J1HzmeIIyenoOQHuw2D4m2SAU3NrspX5XxJLBpqn5yrLzrlw2Iy3RA//Bx27iOA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-function-name": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.22.5.tgz", - "integrity": "sha512-UIzQNMS0p0HHiQm3oelztj+ECwFnj+ZRV4KnguvlsD2of1whUeM6o7wGNj6oLwcDoAXQ8gEqfgC24D+VdIcevg==", - "dev": true, - "dependencies": { - "@babel/helper-compilation-targets": "^7.22.5", - "@babel/helper-function-name": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-literals": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.22.5.tgz", - "integrity": "sha512-fTLj4D79M+mepcw3dgFBTIDYpbcB9Sm0bpm4ppXPaO+U+PKFFyV9MGRvS0gvGw62sd10kT5lRMKXAADb9pWy8g==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.22.5.tgz", - "integrity": "sha512-RZEdkNtzzYCFl9SE9ATaUMTj2hqMb4StarOJLrZRbqqU4HSBE7UlBw9WBWQiDzrJZJdUWiMTVDI6Gv/8DPvfew==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.22.15.tgz", - "integrity": "sha512-jWL4eh90w0HQOTKP2MoXXUpVxilxsB2Vl4ji69rSjS3EcZ/v4sBmn+A3NpepuJzBhOaEBbR7udonlHHn5DWidg==", - "dev": true, - "dependencies": { - "@babel/helper-module-transforms": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-simple-access": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-super": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.22.5.tgz", - "integrity": "sha512-klXqyaT9trSjIUrcsYIfETAzmOEZL3cBYqOYLJxBHfMFFggmXOv+NYSX/Jbs9mzMVESw/WycLFPRx8ba/b2Ipw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-replace-supers": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-parameters": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.22.15.tgz", - "integrity": "sha512-hjk7qKIqhyzhhUvRT683TYQOFa/4cQKwQy7ALvTpODswN40MljzNDa0YldevS6tGbxwaEKVn502JmY0dP7qEtQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.22.5.tgz", - "integrity": "sha512-TiOArgddK3mK/x1Qwf5hay2pxI6wCZnvQqrFSqbtg1GLl2JcNMitVH/YnqjP+M31pLUeTfzY1HAXFDnUBV30rQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-display-name": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.22.5.tgz", - "integrity": "sha512-PVk3WPYudRF5z4GKMEYUrLjPl38fJSKNaEOkFuoprioowGuWN6w2RKznuFNSlJx7pzzXXStPUnNSOEO0jL5EVw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-jsx": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.22.15.tgz", - "integrity": "sha512-oKckg2eZFa8771O/5vi7XeTvmM6+O9cxZu+kanTU7tD4sin5nO/G8jGJhq8Hvt2Z0kUoEDRayuZLaUlYl8QuGA==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-module-imports": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-jsx": "^7.22.5", - "@babel/types": "^7.22.15" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.22.5.tgz", - "integrity": "sha512-vM4fq9IXHscXVKzDv5itkO1X52SmdFBFcMIBZ2FRn2nqVYqw6dBexUgMvAjHW+KXpPPViD/Yo3GrDEBaRC0QYA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-spread": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.22.5.tgz", - "integrity": "sha512-5ZzDQIGyvN4w8+dMmpohL6MBo+l2G7tfC/O2Dg7/hjpgeWvUx8FzfeOKxGog9IimPa4YekaQ9PlDqTLOljkcxg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.22.5.tgz", - "integrity": "sha512-5ciOehRNf+EyUeewo8NkbQiUs4d6ZxiHo6BcBcnFlgiJfu16q0bQUw9Jvo0b0gBKFG1SMhDSjeKXSYuJLeFSMA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/runtime": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "regenerator-runtime": "^0.13.11" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/template": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", - "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", - "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/parser": "^7.22.15", - "@babel/types": "^7.22.15" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.23.7", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.7.tgz", - "integrity": "sha512-tY3mM8rH9jM0YHFGyfC0/xf+SB5eKUu7HPj7/k3fpi9dAlsMc5YbQvDi0Sh2QTPXqMhyaAtzAr807TIyfQrmyg==", - "dependencies": { - "@babel/code-frame": "^7.23.5", - "@babel/generator": "^7.23.6", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.23.6", - "@babel/types": "^7.23.6", - "debug": "^4.3.1", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.6.tgz", - "integrity": "sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==", - "dependencies": { - "@babel/helper-string-parser": "^7.23.4", - "@babel/helper-validator-identifier": "^7.22.20", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@cspotcode/source-map-support": { - "version": "0.8.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/trace-mapping": "0.3.9" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { - "version": "0.3.9", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" - } - }, - "node_modules/@emotion/babel-plugin": { - "version": "11.11.0", - "license": "MIT", - "dependencies": { - "@babel/helper-module-imports": "^7.16.7", - "@babel/runtime": "^7.18.3", - "@emotion/hash": "^0.9.1", - "@emotion/memoize": "^0.8.1", - "@emotion/serialize": "^1.1.2", - "babel-plugin-macros": "^3.1.0", - "convert-source-map": "^1.5.0", - "escape-string-regexp": "^4.0.0", - "find-root": "^1.1.0", - "source-map": "^0.5.7", - "stylis": "4.2.0" - } - }, - "node_modules/@emotion/babel-plugin/node_modules/escape-string-regexp": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@emotion/babel-plugin/node_modules/source-map": { - "version": "0.5.7", - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/@emotion/cache": { - "version": "11.11.0", - "license": "MIT", - "dependencies": { - "@emotion/memoize": "^0.8.1", - "@emotion/sheet": "^1.2.2", - "@emotion/utils": "^1.2.1", - "@emotion/weak-memoize": "^0.3.1", - "stylis": "4.2.0" - } - }, - "node_modules/@emotion/hash": { - "version": "0.9.1", - "license": "MIT" - }, - "node_modules/@emotion/is-prop-valid": { - "version": "1.2.1", - "license": "MIT", - "dependencies": { - "@emotion/memoize": "^0.8.1" - } - }, - "node_modules/@emotion/memoize": { - "version": "0.8.1", - "license": "MIT" - }, - "node_modules/@emotion/react": { - "version": "11.11.1", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.18.3", - "@emotion/babel-plugin": "^11.11.0", - "@emotion/cache": "^11.11.0", - "@emotion/serialize": "^1.1.2", - "@emotion/use-insertion-effect-with-fallbacks": "^1.0.1", - "@emotion/utils": "^1.2.1", - "@emotion/weak-memoize": "^0.3.1", - "hoist-non-react-statics": "^3.3.1" - }, - "peerDependencies": { - "react": ">=16.8.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, - "node_modules/@emotion/serialize": { - "version": "1.1.2", - "license": "MIT", - "dependencies": { - "@emotion/hash": "^0.9.1", - "@emotion/memoize": "^0.8.1", - "@emotion/unitless": "^0.8.1", - "@emotion/utils": "^1.2.1", - "csstype": "^3.0.2" - } - }, - "node_modules/@emotion/sheet": { - "version": "1.2.2", - "license": "MIT" - }, - "node_modules/@emotion/styled": { - "version": "11.11.0", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.18.3", - "@emotion/babel-plugin": "^11.11.0", - "@emotion/is-prop-valid": "^1.2.1", - "@emotion/serialize": "^1.1.2", - "@emotion/use-insertion-effect-with-fallbacks": "^1.0.1", - "@emotion/utils": "^1.2.1" - }, - "peerDependencies": { - "@emotion/react": "^11.0.0-rc.0", - "react": ">=16.8.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, - "node_modules/@emotion/unitless": { - "version": "0.8.1", - "license": "MIT" - }, - "node_modules/@emotion/use-insertion-effect-with-fallbacks": { - "version": "1.0.1", - "license": "MIT", - "peerDependencies": { - "react": ">=16.8.0" - } - }, - "node_modules/@emotion/utils": { - "version": "1.2.1", - "license": "MIT" - }, - "node_modules/@emotion/weak-memoize": { - "version": "0.3.1", - "license": "MIT" - }, - "node_modules/@esbuild/android-arm": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz", - "integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==", - "cpu": [ - "arm" - ], - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz", - "integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.20.tgz", - "integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz", - "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz", - "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz", - "integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz", - "integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz", - "integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==", - "cpu": [ - "arm" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz", - "integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz", - "integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==", - "cpu": [ - "ia32" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz", - "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==", - "cpu": [ - "loong64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz", - "integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==", - "cpu": [ - "mips64el" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz", - "integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==", - "cpu": [ - "ppc64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz", - "integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==", - "cpu": [ - "riscv64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz", - "integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==", - "cpu": [ - "s390x" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz", - "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz", - "integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz", - "integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz", - "integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz", - "integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz", - "integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==", - "cpu": [ - "ia32" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz", - "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@fontsource/roboto": { - "version": "5.0.3", - "license": "Apache-2.0" - }, - "node_modules/@graphql-codegen/cli": { - "version": "2.16.5", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/generator": "^7.18.13", - "@babel/template": "^7.18.10", - "@babel/types": "^7.18.13", - "@graphql-codegen/core": "^2.6.8", - "@graphql-codegen/plugin-helpers": "^3.1.2", - "@graphql-tools/apollo-engine-loader": "^7.3.6", - "@graphql-tools/code-file-loader": "^7.3.13", - "@graphql-tools/git-loader": "^7.2.13", - "@graphql-tools/github-loader": "^7.3.20", - "@graphql-tools/graphql-file-loader": "^7.5.0", - "@graphql-tools/json-file-loader": "^7.4.1", - "@graphql-tools/load": "^7.8.0", - "@graphql-tools/prisma-loader": "^7.2.49", - "@graphql-tools/url-loader": "^7.13.2", - "@graphql-tools/utils": "^9.0.0", - "@whatwg-node/fetch": "^0.6.0", - "chalk": "^4.1.0", - "chokidar": "^3.5.2", - "cosmiconfig": "^7.0.0", - "cosmiconfig-typescript-loader": "^4.3.0", - "debounce": "^1.2.0", - "detect-indent": "^6.0.0", - "graphql-config": "^4.4.0", - "inquirer": "^8.0.0", - "is-glob": "^4.0.1", - "json-to-pretty-yaml": "^1.2.2", - "listr2": "^4.0.5", - "log-symbols": "^4.0.0", - "shell-quote": "^1.7.3", - "string-env-interpolation": "^1.0.1", - "ts-log": "^2.2.3", - "ts-node": "^10.9.1", - "tslib": "^2.4.0", - "yaml": "^1.10.0", - "yargs": "^17.0.0" - }, - "bin": { - "gql-gen": "cjs/bin.js", - "graphql-code-generator": "cjs/bin.js", - "graphql-codegen": "cjs/bin.js", - "graphql-codegen-esm": "esm/bin.js" - }, - "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" - } - }, - "node_modules/@graphql-codegen/cli/node_modules/@graphql-codegen/plugin-helpers": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-3.1.2.tgz", - "integrity": "sha512-emOQiHyIliVOIjKVKdsI5MXj312zmRDwmHpyUTZMjfpvxq/UVAHUJIVdVf+lnjjrI+LXBTgMlTWTgHQfmICxjg==", - "dev": true, - "dependencies": { - "@graphql-tools/utils": "^9.0.0", - "change-case-all": "1.0.15", - "common-tags": "1.8.2", - "import-from": "4.0.0", - "lodash": "~4.17.0", - "tslib": "~2.4.0" - }, - "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" - } - }, - "node_modules/@graphql-codegen/cli/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.2.1.tgz", - "integrity": "sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A==", - "dev": true, - "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-codegen/cli/node_modules/change-case-all": { - "version": "1.0.15", - "resolved": "https://registry.npmjs.org/change-case-all/-/change-case-all-1.0.15.tgz", - "integrity": "sha512-3+GIFhk3sNuvFAJKU46o26OdzudQlPNBCu1ZQi3cMeMHhty1bhDxu2WrEilVNYaGvqUtR1VSigFcJOiS13dRhQ==", - "dev": true, - "dependencies": { - "change-case": "^4.1.2", - "is-lower-case": "^2.0.2", - "is-upper-case": "^2.0.2", - "lower-case": "^2.0.2", - "lower-case-first": "^2.0.2", - "sponge-case": "^1.0.1", - "swap-case": "^2.0.2", - "title-case": "^3.0.3", - "upper-case": "^2.0.2", - "upper-case-first": "^2.0.2" - } - }, - "node_modules/@graphql-codegen/core": { - "version": "2.6.8", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.1.1", - "@graphql-tools/schema": "^9.0.0", - "@graphql-tools/utils": "^9.1.1", - "tslib": "~2.4.0" - }, - "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" - } - }, - "node_modules/@graphql-codegen/core/node_modules/@graphql-codegen/plugin-helpers": { - "version": "3.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/utils": "^9.0.0", - "change-case-all": "1.0.15", - "common-tags": "1.8.2", - "import-from": "4.0.0", - "lodash": "~4.17.0", - "tslib": "~2.4.0" - }, - "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" - } - }, - "node_modules/@graphql-codegen/core/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-codegen/core/node_modules/change-case-all": { - "version": "1.0.15", - "dev": true, - "license": "MIT", - "dependencies": { - "change-case": "^4.1.2", - "is-lower-case": "^2.0.2", - "is-upper-case": "^2.0.2", - "lower-case": "^2.0.2", - "lower-case-first": "^2.0.2", - "sponge-case": "^1.0.1", - "swap-case": "^2.0.2", - "title-case": "^3.0.3", - "upper-case": "^2.0.2", - "upper-case-first": "^2.0.2" - } - }, - "node_modules/@graphql-codegen/introspection": { - "version": "2.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-codegen/plugin-helpers": "^2.3.2", - "tslib": "~2.3.0" - }, - "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" - } - }, - "node_modules/@graphql-codegen/introspection/node_modules/tslib": { - "version": "2.3.1", - "dev": true, - "license": "0BSD" - }, - "node_modules/@graphql-codegen/plugin-helpers": { - "version": "2.4.2", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/utils": "^8.5.2", - "change-case-all": "1.0.14", - "common-tags": "1.8.2", - "import-from": "4.0.0", - "lodash": "~4.17.0", - "tslib": "~2.3.0" - }, - "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" - } - }, - "node_modules/@graphql-codegen/plugin-helpers/node_modules/tslib": { - "version": "2.3.1", - "dev": true, - "license": "0BSD" - }, - "node_modules/@graphql-codegen/schema-ast": { - "version": "2.4.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-codegen/plugin-helpers": "^2.3.2", - "@graphql-tools/utils": "^8.1.1", - "tslib": "~2.3.0" - }, - "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" - } - }, - "node_modules/@graphql-codegen/schema-ast/node_modules/tslib": { - "version": "2.3.1", - "dev": true, - "license": "0BSD" - }, - "node_modules/@graphql-codegen/typescript": { - "version": "2.4.11", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-codegen/plugin-helpers": "^2.4.0", - "@graphql-codegen/schema-ast": "^2.4.1", - "@graphql-codegen/visitor-plugin-common": "2.8.0", - "auto-bind": "~4.0.0", - "tslib": "~2.4.0" - }, - "peerDependencies": { - "graphql": "^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" - } - }, - "node_modules/@graphql-codegen/typescript-operations": { - "version": "2.4.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-codegen/plugin-helpers": "^2.4.0", - "@graphql-codegen/typescript": "^2.4.11", - "@graphql-codegen/visitor-plugin-common": "2.8.0", - "auto-bind": "~4.0.0", - "tslib": "~2.4.0" - }, - "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" - } - }, - "node_modules/@graphql-codegen/typescript-react-apollo": { - "version": "3.2.14", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-codegen/plugin-helpers": "^2.4.0", - "@graphql-codegen/visitor-plugin-common": "2.8.0", - "auto-bind": "~4.0.0", - "change-case-all": "1.0.14", - "tslib": "~2.4.0" - }, - "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", - "graphql-tag": "^2.0.0" - } - }, - "node_modules/@graphql-codegen/visitor-plugin-common": { - "version": "2.8.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-codegen/plugin-helpers": "^2.4.0", - "@graphql-tools/optimize": "^1.0.1", - "@graphql-tools/relay-operation-optimizer": "^6.3.7", - "@graphql-tools/utils": "^8.3.0", - "auto-bind": "~4.0.0", - "change-case-all": "1.0.14", - "dependency-graph": "^0.11.0", - "graphql-tag": "^2.11.0", - "parse-filepath": "^1.0.2", - "tslib": "~2.4.0" - }, - "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" - } - }, - "node_modules/@graphql-tools/apollo-engine-loader": { - "version": "7.3.26", - "dev": true, - "license": "MIT", - "dependencies": { - "@ardatan/sync-fetch": "^0.0.1", - "@graphql-tools/utils": "^9.2.1", - "@whatwg-node/fetch": "^0.8.0", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/apollo-engine-loader/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/apollo-engine-loader/node_modules/@whatwg-node/fetch": { - "version": "0.8.8", - "dev": true, - "license": "MIT", - "dependencies": { - "@peculiar/webcrypto": "^1.4.0", - "@whatwg-node/node-fetch": "^0.3.6", - "busboy": "^1.6.0", - "urlpattern-polyfill": "^8.0.0", - "web-streams-polyfill": "^3.2.1" - } - }, - "node_modules/@graphql-tools/apollo-engine-loader/node_modules/urlpattern-polyfill": { - "version": "8.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/@graphql-tools/batch-execute": { - "version": "8.5.22", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/utils": "^9.2.1", - "dataloader": "^2.2.2", - "tslib": "^2.4.0", - "value-or-promise": "^1.0.12" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/batch-execute/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/code-file-loader": { - "version": "7.3.23", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/graphql-tag-pluck": "7.5.2", - "@graphql-tools/utils": "^9.2.1", - "globby": "^11.0.3", - "tslib": "^2.4.0", - "unixify": "^1.0.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/code-file-loader/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/delegate": { - "version": "9.0.35", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/batch-execute": "^8.5.22", - "@graphql-tools/executor": "^0.0.20", - "@graphql-tools/schema": "^9.0.19", - "@graphql-tools/utils": "^9.2.1", - "dataloader": "^2.2.2", - "tslib": "^2.5.0", - "value-or-promise": "^1.0.12" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/delegate/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/delegate/node_modules/tslib": { - "version": "2.5.3", - "dev": true, - "license": "0BSD" - }, - "node_modules/@graphql-tools/executor": { - "version": "0.0.20", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/utils": "^9.2.1", - "@graphql-typed-document-node/core": "3.2.0", - "@repeaterjs/repeater": "^3.0.4", - "tslib": "^2.4.0", - "value-or-promise": "^1.0.12" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/executor-graphql-ws": { - "version": "0.0.14", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/utils": "^9.2.1", - "@repeaterjs/repeater": "3.0.4", - "@types/ws": "^8.0.0", - "graphql-ws": "5.12.1", - "isomorphic-ws": "5.0.0", - "tslib": "^2.4.0", - "ws": "8.13.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/executor-graphql-ws/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/executor-http": { - "version": "0.1.10", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/utils": "^9.2.1", - "@repeaterjs/repeater": "^3.0.4", - "@whatwg-node/fetch": "^0.8.1", - "dset": "^3.1.2", - "extract-files": "^11.0.0", - "meros": "^1.2.1", - "tslib": "^2.4.0", - "value-or-promise": "^1.0.12" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/executor-http/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/executor-http/node_modules/@whatwg-node/fetch": { - "version": "0.8.8", - "dev": true, - "license": "MIT", - "dependencies": { - "@peculiar/webcrypto": "^1.4.0", - "@whatwg-node/node-fetch": "^0.3.6", - "busboy": "^1.6.0", - "urlpattern-polyfill": "^8.0.0", - "web-streams-polyfill": "^3.2.1" - } - }, - "node_modules/@graphql-tools/executor-http/node_modules/urlpattern-polyfill": { - "version": "8.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/@graphql-tools/executor-legacy-ws": { - "version": "0.0.11", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/utils": "^9.2.1", - "@types/ws": "^8.0.0", - "isomorphic-ws": "5.0.0", - "tslib": "^2.4.0", - "ws": "8.13.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/executor-legacy-ws/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/executor/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/git-loader": { - "version": "7.3.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/graphql-tag-pluck": "7.5.2", - "@graphql-tools/utils": "^9.2.1", - "is-glob": "4.0.3", - "micromatch": "^4.0.4", - "tslib": "^2.4.0", - "unixify": "^1.0.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/git-loader/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/github-loader": { - "version": "7.3.28", - "dev": true, - "license": "MIT", - "dependencies": { - "@ardatan/sync-fetch": "^0.0.1", - "@graphql-tools/executor-http": "^0.1.9", - "@graphql-tools/graphql-tag-pluck": "^7.4.6", - "@graphql-tools/utils": "^9.2.1", - "@whatwg-node/fetch": "^0.8.0", - "tslib": "^2.4.0", - "value-or-promise": "^1.0.12" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/github-loader/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/github-loader/node_modules/@whatwg-node/fetch": { - "version": "0.8.8", - "dev": true, - "license": "MIT", - "dependencies": { - "@peculiar/webcrypto": "^1.4.0", - "@whatwg-node/node-fetch": "^0.3.6", - "busboy": "^1.6.0", - "urlpattern-polyfill": "^8.0.0", - "web-streams-polyfill": "^3.2.1" - } - }, - "node_modules/@graphql-tools/github-loader/node_modules/urlpattern-polyfill": { - "version": "8.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/@graphql-tools/graphql-file-loader": { - "version": "7.5.17", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/import": "6.7.18", - "@graphql-tools/utils": "^9.2.1", - "globby": "^11.0.3", - "tslib": "^2.4.0", - "unixify": "^1.0.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/graphql-file-loader/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/graphql-tag-pluck": { - "version": "7.5.2", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.16.8", - "@babel/plugin-syntax-import-assertions": "^7.20.0", - "@babel/traverse": "^7.16.8", - "@babel/types": "^7.16.8", - "@graphql-tools/utils": "^9.2.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/graphql-tag-pluck/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/import": { - "version": "6.7.18", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/utils": "^9.2.1", - "resolve-from": "5.0.0", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/import/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/json-file-loader": { - "version": "7.4.18", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/utils": "^9.2.1", - "globby": "^11.0.3", - "tslib": "^2.4.0", - "unixify": "^1.0.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/json-file-loader/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/load": { - "version": "7.8.14", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/schema": "^9.0.18", - "@graphql-tools/utils": "^9.2.1", - "p-limit": "3.1.0", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/load/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/merge": { - "version": "8.4.2", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/utils": "^9.2.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/merge/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/optimize": { - "version": "1.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "~2.3.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0" - } - }, - "node_modules/@graphql-tools/optimize/node_modules/tslib": { - "version": "2.3.1", - "dev": true, - "license": "0BSD" - }, - "node_modules/@graphql-tools/prisma-loader": { - "version": "7.2.72", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/url-loader": "^7.17.18", - "@graphql-tools/utils": "^9.2.1", - "@types/js-yaml": "^4.0.0", - "@types/json-stable-stringify": "^1.0.32", - "@whatwg-node/fetch": "^0.8.2", - "chalk": "^4.1.0", - "debug": "^4.3.1", - "dotenv": "^16.0.0", - "graphql-request": "^6.0.0", - "http-proxy-agent": "^6.0.0", - "https-proxy-agent": "^6.0.0", - "jose": "^4.11.4", - "js-yaml": "^4.0.0", - "json-stable-stringify": "^1.0.1", - "lodash": "^4.17.20", - "scuid": "^1.1.0", - "tslib": "^2.4.0", - "yaml-ast-parser": "^0.0.43" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/prisma-loader/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/prisma-loader/node_modules/@whatwg-node/fetch": { - "version": "0.8.8", - "dev": true, - "license": "MIT", - "dependencies": { - "@peculiar/webcrypto": "^1.4.0", - "@whatwg-node/node-fetch": "^0.3.6", - "busboy": "^1.6.0", - "urlpattern-polyfill": "^8.0.0", - "web-streams-polyfill": "^3.2.1" - } - }, - "node_modules/@graphql-tools/prisma-loader/node_modules/agent-base": { - "version": "7.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^4.3.4" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/@graphql-tools/prisma-loader/node_modules/https-proxy-agent": { - "version": "6.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "agent-base": "^7.0.2", - "debug": "4" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/@graphql-tools/prisma-loader/node_modules/urlpattern-polyfill": { - "version": "8.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/@graphql-tools/relay-operation-optimizer": { - "version": "6.4.12", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/utils": "8.6.12", - "relay-compiler": "12.0.0", - "tslib": "~2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/schema": { - "version": "9.0.19", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/merge": "^8.4.1", - "@graphql-tools/utils": "^9.2.1", - "tslib": "^2.4.0", - "value-or-promise": "^1.0.12" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/schema/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/url-loader": { - "version": "7.17.18", - "dev": true, - "license": "MIT", - "dependencies": { - "@ardatan/sync-fetch": "^0.0.1", - "@graphql-tools/delegate": "^9.0.31", - "@graphql-tools/executor-graphql-ws": "^0.0.14", - "@graphql-tools/executor-http": "^0.1.7", - "@graphql-tools/executor-legacy-ws": "^0.0.11", - "@graphql-tools/utils": "^9.2.1", - "@graphql-tools/wrap": "^9.4.2", - "@types/ws": "^8.0.0", - "@whatwg-node/fetch": "^0.8.0", - "isomorphic-ws": "^5.0.0", - "tslib": "^2.4.0", - "value-or-promise": "^1.0.11", - "ws": "^8.12.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/url-loader/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/url-loader/node_modules/@whatwg-node/fetch": { - "version": "0.8.8", - "dev": true, - "license": "MIT", - "dependencies": { - "@peculiar/webcrypto": "^1.4.0", - "@whatwg-node/node-fetch": "^0.3.6", - "busboy": "^1.6.0", - "urlpattern-polyfill": "^8.0.0", - "web-streams-polyfill": "^3.2.1" - } - }, - "node_modules/@graphql-tools/url-loader/node_modules/urlpattern-polyfill": { - "version": "8.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/@graphql-tools/utils": { - "version": "8.6.12", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "~2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/wrap": { - "version": "9.4.2", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/delegate": "^9.0.31", - "@graphql-tools/schema": "^9.0.18", - "@graphql-tools/utils": "^9.2.1", - "tslib": "^2.4.0", - "value-or-promise": "^1.0.12" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-tools/wrap/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@graphql-typed-document-node/core": { - "version": "3.2.0", - "license": "MIT", - "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.3", - "license": "MIT", - "dependencies": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.0", - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/set-array": { - "version": "1.1.1", - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/source-map": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.5.tgz", - "integrity": "sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==", - "optional": true, - "peer": true, - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "license": "MIT" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.18", - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "3.1.0", - "@jridgewell/sourcemap-codec": "1.4.14" - } - }, - "node_modules/@mui/base": { - "version": "5.0.0-beta.4", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.21.0", - "@emotion/is-prop-valid": "^1.2.1", - "@mui/types": "^7.2.4", - "@mui/utils": "^5.13.1", - "@popperjs/core": "^2.11.8", - "clsx": "^1.2.1", - "prop-types": "^15.8.1", - "react-is": "^18.2.0" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mui" - }, - "peerDependencies": { - "@types/react": "^17.0.0 || ^18.0.0", - "react": "^17.0.0 || ^18.0.0", - "react-dom": "^17.0.0 || ^18.0.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, - "node_modules/@mui/base/node_modules/react-is": { - "version": "18.2.0", - "license": "MIT" - }, - "node_modules/@mui/core-downloads-tracker": { - "version": "5.13.4", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mui" - } - }, - "node_modules/@mui/icons-material": { - "version": "5.11.16", - "resolved": "https://registry.npmjs.org/@mui/icons-material/-/icons-material-5.11.16.tgz", - "integrity": "sha512-oKkx9z9Kwg40NtcIajF9uOXhxiyTZrrm9nmIJ4UjkU2IdHpd4QVLbCc/5hZN/y0C6qzi2Zlxyr9TGddQx2vx2A==", - "dependencies": { - "@babel/runtime": "^7.21.0" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mui" - }, - "peerDependencies": { - "@mui/material": "^5.0.0", - "@types/react": "^17.0.0 || ^18.0.0", - "react": "^17.0.0 || ^18.0.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, - "node_modules/@mui/lab": { - "version": "5.0.0-alpha.134", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.21.0", - "@mui/base": "5.0.0-beta.4", - "@mui/system": "^5.13.5", - "@mui/types": "^7.2.4", - "@mui/utils": "^5.13.1", - "clsx": "^1.2.1", - "prop-types": "^15.8.1", - "react-is": "^18.2.0" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mui" - }, - "peerDependencies": { - "@emotion/react": "^11.5.0", - "@emotion/styled": "^11.3.0", - "@mui/material": "^5.0.0", - "@types/react": "^17.0.0 || ^18.0.0", - "react": "^17.0.0 || ^18.0.0", - "react-dom": "^17.0.0 || ^18.0.0" - }, - "peerDependenciesMeta": { - "@emotion/react": { - "optional": true - }, - "@emotion/styled": { - "optional": true - }, - "@types/react": { - "optional": true - } - } - }, - "node_modules/@mui/lab/node_modules/react-is": { - "version": "18.2.0", - "license": "MIT" - }, - "node_modules/@mui/material": { - "version": "5.13.5", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.21.0", - "@mui/base": "5.0.0-beta.4", - "@mui/core-downloads-tracker": "^5.13.4", - "@mui/system": "^5.13.5", - "@mui/types": "^7.2.4", - "@mui/utils": "^5.13.1", - "@types/react-transition-group": "^4.4.6", - "clsx": "^1.2.1", - "csstype": "^3.1.2", - "prop-types": "^15.8.1", - "react-is": "^18.2.0", - "react-transition-group": "^4.4.5" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mui" - }, - "peerDependencies": { - "@emotion/react": "^11.5.0", - "@emotion/styled": "^11.3.0", - "@types/react": "^17.0.0 || ^18.0.0", - "react": "^17.0.0 || ^18.0.0", - "react-dom": "^17.0.0 || ^18.0.0" - }, - "peerDependenciesMeta": { - "@emotion/react": { - "optional": true - }, - "@emotion/styled": { - "optional": true - }, - "@types/react": { - "optional": true - } - } - }, - "node_modules/@mui/material/node_modules/react-is": { - "version": "18.2.0", - "license": "MIT" - }, - "node_modules/@mui/private-theming": { - "version": "5.13.1", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.21.0", - "@mui/utils": "^5.13.1", - "prop-types": "^15.8.1" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mui" - }, - "peerDependencies": { - "@types/react": "^17.0.0 || ^18.0.0", - "react": "^17.0.0 || ^18.0.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, - "node_modules/@mui/styled-engine": { - "version": "5.13.2", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.21.0", - "@emotion/cache": "^11.11.0", - "csstype": "^3.1.2", - "prop-types": "^15.8.1" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mui" - }, - "peerDependencies": { - "@emotion/react": "^11.4.1", - "@emotion/styled": "^11.3.0", - "react": "^17.0.0 || ^18.0.0" - }, - "peerDependenciesMeta": { - "@emotion/react": { - "optional": true - }, - "@emotion/styled": { - "optional": true - } - } - }, - "node_modules/@mui/system": { - "version": "5.13.5", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.21.0", - "@mui/private-theming": "^5.13.1", - "@mui/styled-engine": "^5.13.2", - "@mui/types": "^7.2.4", - "@mui/utils": "^5.13.1", - "clsx": "^1.2.1", - "csstype": "^3.1.2", - "prop-types": "^15.8.1" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mui" - }, - "peerDependencies": { - "@emotion/react": "^11.5.0", - "@emotion/styled": "^11.3.0", - "@types/react": "^17.0.0 || ^18.0.0", - "react": "^17.0.0 || ^18.0.0" - }, - "peerDependenciesMeta": { - "@emotion/react": { - "optional": true - }, - "@emotion/styled": { - "optional": true - }, - "@types/react": { - "optional": true - } - } - }, - "node_modules/@mui/types": { - "version": "7.2.4", - "license": "MIT", - "peerDependencies": { - "@types/react": "*" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, - "node_modules/@mui/utils": { - "version": "5.13.1", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.21.0", - "@types/prop-types": "^15.7.5", - "@types/react-is": "^18.2.0", - "prop-types": "^15.8.1", - "react-is": "^18.2.0" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mui" - }, - "peerDependencies": { - "react": "^17.0.0 || ^18.0.0" - } - }, - "node_modules/@mui/utils/node_modules/react-is": { - "version": "18.2.0", - "license": "MIT" - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@peculiar/asn1-schema": { - "version": "2.3.6", - "dev": true, - "license": "MIT", - "dependencies": { - "asn1js": "^3.0.5", - "pvtsutils": "^1.3.2", - "tslib": "^2.4.0" - } - }, - "node_modules/@peculiar/json-schema": { - "version": "1.1.12", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^2.0.0" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/@peculiar/webcrypto": { - "version": "1.4.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@peculiar/asn1-schema": "^2.3.6", - "@peculiar/json-schema": "^1.1.12", - "pvtsutils": "^1.3.2", - "tslib": "^2.5.0", - "webcrypto-core": "^1.7.7" - }, - "engines": { - "node": ">=10.12.0" - } - }, - "node_modules/@peculiar/webcrypto/node_modules/tslib": { - "version": "2.5.3", - "dev": true, - "license": "0BSD" - }, - "node_modules/@popperjs/core": { - "version": "2.11.8", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/popperjs" - } - }, - "node_modules/@remix-run/router": { - "version": "1.15.1", - "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.15.1.tgz", - "integrity": "sha512-zcU0gM3z+3iqj8UX45AmWY810l3oUmXM7uH4dt5xtzvMhRtYVhKGOmgOd1877dOPPepfCjUv57w+syamWIYe7w==", - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@repeaterjs/repeater": { - "version": "3.0.4", - "dev": true, - "license": "MIT" - }, - "node_modules/@rollup/pluginutils": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.0.4.tgz", - "integrity": "sha512-0KJnIoRI8A+a1dqOYLxH8vBf8bphDmty5QvIm2hqm7oFCFYKCAZWWd2hXgMibaPsNDhI0AtpYfQZJG47pt/k4g==", - "dependencies": { - "@types/estree": "^1.0.0", - "estree-walker": "^2.0.2", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "rollup": "^1.20.0||^2.0.0||^3.0.0" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } - } - }, - "node_modules/@svgr/babel-plugin-add-jsx-attribute": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-7.0.0.tgz", - "integrity": "sha512-khWbXesWIP9v8HuKCl2NU2HNAyqpSQ/vkIl36Nbn4HIwEYSRWL0H7Gs6idJdha2DkpFDWlsqMELvoCE8lfFY6Q==", - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-remove-jsx-attribute": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-7.0.0.tgz", - "integrity": "sha512-iiZaIvb3H/c7d3TH2HBeK91uI2rMhZNwnsIrvd7ZwGLkFw6mmunOCoVnjdYua662MqGFxlN9xTq4fv9hgR4VXQ==", - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-remove-jsx-empty-expression": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-7.0.0.tgz", - "integrity": "sha512-sQQmyo+qegBx8DfFc04PFmIO1FP1MHI1/QEpzcIcclo5OAISsOJPW76ZIs0bDyO/DBSJEa/tDa1W26pVtt0FRw==", - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-replace-jsx-attribute-value": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-7.0.0.tgz", - "integrity": "sha512-i6MaAqIZXDOJeikJuzocByBf8zO+meLwfQ/qMHIjCcvpnfvWf82PFvredEZElErB5glQFJa2KVKk8N2xV6tRRA==", - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-svg-dynamic-title": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-7.0.0.tgz", - "integrity": "sha512-BoVSh6ge3SLLpKC0pmmN9DFlqgFy4NxNgdZNLPNJWBUU7TQpDWeBuyVuDW88iXydb5Cv0ReC+ffa5h3VrKfk1w==", - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-svg-em-dimensions": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-7.0.0.tgz", - "integrity": "sha512-tNDcBa+hYn0gO+GkP/AuNKdVtMufVhU9fdzu+vUQsR18RIJ9RWe7h/pSBY338RO08wArntwbDk5WhQBmhf2PaA==", - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-transform-react-native-svg": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-7.0.0.tgz", - "integrity": "sha512-qw54u8ljCJYL2KtBOjI5z7Nzg8LnSvQOP5hPKj77H4VQL4+HdKbAT5pnkkZLmHKYwzsIHSYKXxHouD8zZamCFQ==", - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-plugin-transform-svg-component": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-7.0.0.tgz", - "integrity": "sha512-CcFECkDj98daOg9jE3Bh3uyD9kzevCAnZ+UtzG6+BQG/jOQ2OA3jHnX6iG4G1MCJkUQFnUvEv33NvQfqrb/F3A==", - "engines": { - "node": ">=12" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/babel-preset": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-preset/-/babel-preset-7.0.0.tgz", - "integrity": "sha512-EX/NHeFa30j5UjldQGVQikuuQNHUdGmbh9kEpBKofGUtF0GUPJ4T4rhoYiqDAOmBOxojyot36JIFiDUHUK1ilQ==", - "dependencies": { - "@svgr/babel-plugin-add-jsx-attribute": "^7.0.0", - "@svgr/babel-plugin-remove-jsx-attribute": "^7.0.0", - "@svgr/babel-plugin-remove-jsx-empty-expression": "^7.0.0", - "@svgr/babel-plugin-replace-jsx-attribute-value": "^7.0.0", - "@svgr/babel-plugin-svg-dynamic-title": "^7.0.0", - "@svgr/babel-plugin-svg-em-dimensions": "^7.0.0", - "@svgr/babel-plugin-transform-react-native-svg": "^7.0.0", - "@svgr/babel-plugin-transform-svg-component": "^7.0.0" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@svgr/core": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@svgr/core/-/core-7.0.0.tgz", - "integrity": "sha512-ztAoxkaKhRVloa3XydohgQQCb0/8x9T63yXovpmHzKMkHO6pkjdsIAWKOS4bE95P/2quVh1NtjSKlMRNzSBffw==", - "dependencies": { - "@babel/core": "^7.21.3", - "@svgr/babel-preset": "^7.0.0", - "camelcase": "^6.2.0", - "cosmiconfig": "^8.1.3" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@svgr/core/node_modules/cosmiconfig": { - "version": "8.3.6", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.3.6.tgz", - "integrity": "sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==", - "dependencies": { - "import-fresh": "^3.3.0", - "js-yaml": "^4.1.0", - "parse-json": "^5.2.0", - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/d-fischer" - }, - "peerDependencies": { - "typescript": ">=4.9.5" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@svgr/hast-util-to-babel-ast": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-7.0.0.tgz", - "integrity": "sha512-42Ej9sDDEmsJKjrfQ1PHmiDiHagh/u9AHO9QWbeNx4KmD9yS5d1XHmXUNINfUcykAU+4431Cn+k6Vn5mWBYimQ==", - "dependencies": { - "@babel/types": "^7.21.3", - "entities": "^4.4.0" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@svgr/plugin-jsx": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@svgr/plugin-jsx/-/plugin-jsx-7.0.0.tgz", - "integrity": "sha512-SWlTpPQmBUtLKxXWgpv8syzqIU8XgFRvyhfkam2So8b3BE0OS0HPe5UfmlJ2KIC+a7dpuuYovPR2WAQuSyMoPw==", - "dependencies": { - "@babel/core": "^7.21.3", - "@svgr/babel-preset": "^7.0.0", - "@svgr/hast-util-to-babel-ast": "^7.0.0", - "svg-parser": "^2.0.4" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@swc/core": { - "version": "1.3.86", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.86.tgz", - "integrity": "sha512-bEXUtm37bcmJ3q+geG7Zy4rJNUzpxalXQUrrqX1ZoGj3HRtzdeVZ0L/um3fG2j16qe61t8TX/OIZ2G6j6dkG/w==", - "hasInstallScript": true, - "dependencies": { - "@swc/types": "^0.1.4" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/swc" - }, - "optionalDependencies": { - "@swc/core-darwin-arm64": "1.3.86", - "@swc/core-darwin-x64": "1.3.86", - "@swc/core-linux-arm-gnueabihf": "1.3.86", - "@swc/core-linux-arm64-gnu": "1.3.86", - "@swc/core-linux-arm64-musl": "1.3.86", - "@swc/core-linux-x64-gnu": "1.3.86", - "@swc/core-linux-x64-musl": "1.3.86", - "@swc/core-win32-arm64-msvc": "1.3.86", - "@swc/core-win32-ia32-msvc": "1.3.86", - "@swc/core-win32-x64-msvc": "1.3.86" - }, - "peerDependencies": { - "@swc/helpers": "^0.5.0" - }, - "peerDependenciesMeta": { - "@swc/helpers": { - "optional": true - } - } - }, - "node_modules/@swc/core-darwin-arm64": { - "version": "1.3.86", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.86.tgz", - "integrity": "sha512-hMvSDms0sJJHNtRa3Vhmr9StWN1vmikbf5VE0IZUYGnF1/JZTkXU1h6CdNUY4Hr6i7uCZjH6BEhxFHX1JtKV4w==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-darwin-x64": { - "version": "1.3.86", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.86.tgz", - "integrity": "sha512-Jro6HVH4uSOBM7tTDaQNKLNc8BJV7n+SO+Ft2HAZINyeKJS/8MfEYneG7Vmqg18gv00c6dz9AOCcyz+BR7BFkQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-linux-arm-gnueabihf": { - "version": "1.3.86", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.86.tgz", - "integrity": "sha512-wYB9m0pzXJVSzedXSl4JwS3gKtvcPinpe9MbkddezpqL7OjyDP6pHHW9qIucsfgCrtMtbPC2nqulXLPtAAyIjw==", - "cpu": [ - "arm" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-linux-arm64-gnu": { - "version": "1.3.86", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.86.tgz", - "integrity": "sha512-fR44IyK5cdCaO8cC++IEH0Jn03tWnunJnjzA99LxlE5TRInSIOvFm+g5OSUQZDAvEXmQ38sd31LO2HOoDS1Edw==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-linux-arm64-musl": { - "version": "1.3.86", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.86.tgz", - "integrity": "sha512-EUPfdbK4dUk/nkX3Vmv/47XH+DqHOa9JI0CTthvJ8/ZXei1MKDUsUc+tI1zMQX2uCuSkSWsEIEpCmA0tMwFhtw==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-linux-x64-gnu": { - "version": "1.3.86", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.86.tgz", - "integrity": "sha512-snVZZWv8XgNVaKrTxtO3rUN+BbbB6I8Fqwe8zM/DWGJ096J13r89doQ48x5ZyO+bW4D48eZIWP5pdfSW7oBE3w==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-linux-x64-musl": { - "version": "1.3.86", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.86.tgz", - "integrity": "sha512-PnnksUJymEJkdnbV2orOSOSB441UqsxYbJge9zbr5UTRXUfWO3eFRV0iTBegjTlOQGbW6yN+YRSDkenTbmCI6g==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-win32-arm64-msvc": { - "version": "1.3.86", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.86.tgz", - "integrity": "sha512-XlGEGyHwLndm08VvgeAPGj40L+Hx575MQC+2fsyB1uSNUN+uf7fvke+wc7k50a92CaQe/8foLyIR5faayozEJA==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-win32-ia32-msvc": { - "version": "1.3.86", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.86.tgz", - "integrity": "sha512-U1BhZa1x9yn+wZGTQmt1cYR79a0FzW/wL6Jas1Pn0bykKLxdRU4mCeZt2P+T3buLm8jr8LpPWiCrbvr658PzwA==", - "cpu": [ - "ia32" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-win32-x64-msvc": { - "version": "1.3.86", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.86.tgz", - "integrity": "sha512-wRoQUajqpE3wITHhZVj/6BPu/QwHriFHLHuJA+9y6PeGtUtTmntL42aBKXIFhfL767dYFtohyNg1uZ9eqbGyGQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/types": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.5.tgz", - "integrity": "sha512-myfUej5naTBWnqOCc/MdVOLVjXUXtIA+NpDrDBKJtLLg2shUjBu3cZmB/85RyitKc55+lUUyl7oRfLOvkr2hsw==" - }, - "node_modules/@tsconfig/node10": { - "version": "1.0.9", - "dev": true, - "license": "MIT" - }, - "node_modules/@tsconfig/node12": { - "version": "1.0.11", - "dev": true, - "license": "MIT" - }, - "node_modules/@tsconfig/node14": { - "version": "1.0.3", - "dev": true, - "license": "MIT" - }, - "node_modules/@tsconfig/node16": { - "version": "1.0.4", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/dataframe-js": { - "version": "1.4.0", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/estree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", - "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==" - }, - "node_modules/@types/js-yaml": { - "version": "4.0.5", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/json-stable-stringify": { - "version": "1.0.34", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "20.2.5", - "license": "MIT" - }, - "node_modules/@types/parse-json": { - "version": "4.0.0", - "license": "MIT" - }, - "node_modules/@types/prop-types": { - "version": "15.7.5", - "license": "MIT" - }, - "node_modules/@types/react": { - "version": "18.0.12", - "license": "MIT", - "dependencies": { - "@types/prop-types": "*", - "@types/scheduler": "*", - "csstype": "^3.0.2" - } - }, - "node_modules/@types/react-dom": { - "version": "18.2.4", - "license": "MIT", - "dependencies": { - "@types/react": "*" - } - }, - "node_modules/@types/react-infinite-scroller": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/@types/react-infinite-scroller/-/react-infinite-scroller-1.2.5.tgz", - "integrity": "sha512-fJU1jhMgoL6NJFrqTM0Ob7tnd2sQWGxe2ESwiU6FZWbJK/VO/Er5+AOhc+e2zbT0dk5pLygqctsulOLJ8xnSzw==", - "dependencies": { - "@types/react": "*" - } - }, - "node_modules/@types/react-is": { - "version": "18.2.1", - "license": "MIT", - "dependencies": { - "@types/react": "*" - } - }, - "node_modules/@types/react-transition-group": { - "version": "4.4.6", - "license": "MIT", - "dependencies": { - "@types/react": "*" - } - }, - "node_modules/@types/scheduler": { - "version": "0.16.2", - "license": "MIT" - }, - "node_modules/@types/ws": { - "version": "8.5.5", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.5.tgz", - "integrity": "sha512-lwhs8hktwxSjf9UaZ9tG5M03PGogvFaH8gUgLNbN9HKIg0dvv6q+gkSuJ8HN4/VbyxkuLzCjlN7GquQ0gUJfIg==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@vitejs/plugin-react-swc": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-react-swc/-/plugin-react-swc-3.3.2.tgz", - "integrity": "sha512-VJFWY5sfoZerQRvJrh518h3AcQt6f/yTuWn4/TRB+dqmYU0NX1qz7qM5Wfd+gOQqUzQW4gxKqKN3KpE/P3+zrA==", - "dependencies": { - "@swc/core": "^1.3.61" - }, - "peerDependencies": { - "vite": "^4" - } - }, - "node_modules/@whatwg-node/events": { - "version": "0.0.3", - "dev": true, - "license": "MIT" - }, - "node_modules/@whatwg-node/fetch": { - "version": "0.6.9", - "dev": true, - "license": "MIT", - "dependencies": { - "@peculiar/webcrypto": "^1.4.0", - "@whatwg-node/node-fetch": "^0.0.5", - "busboy": "^1.6.0", - "urlpattern-polyfill": "^6.0.2", - "web-streams-polyfill": "^3.2.1" - } - }, - "node_modules/@whatwg-node/fetch/node_modules/@types/node": { - "version": "18.16.16", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/@whatwg-node/fetch/node_modules/@whatwg-node/events": { - "version": "0.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/@whatwg-node/fetch/node_modules/@whatwg-node/node-fetch": { - "version": "0.0.5", - "dev": true, - "license": "MIT", - "dependencies": { - "@whatwg-node/events": "^0.0.2", - "busboy": "^1.6.0", - "tslib": "^2.3.1" - }, - "peerDependencies": { - "@types/node": "^18.0.6" - } - }, - "node_modules/@whatwg-node/node-fetch": { - "version": "0.3.6", - "dev": true, - "license": "MIT", - "dependencies": { - "@whatwg-node/events": "^0.0.3", - "busboy": "^1.6.0", - "fast-querystring": "^1.1.1", - "fast-url-parser": "^1.1.3", - "tslib": "^2.3.1" - } - }, - "node_modules/@wry/context": { - "version": "0.7.3", - "license": "MIT", - "dependencies": { - "tslib": "^2.3.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@wry/equality": { - "version": "0.5.2", - "license": "MIT", - "dependencies": { - "tslib": "^2.3.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@wry/trie": { - "version": "0.4.3", - "license": "MIT", - "dependencies": { - "tslib": "^2.3.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", - "devOptional": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/aggregate-error": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-escapes": { - "version": "4.3.2", - "dev": true, - "license": "MIT", - "dependencies": { - "type-fest": "^0.21.3" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "dev": true, - "license": "MIT", - "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.2", - "dev": true, - "license": "ISC", - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "license": "Python-2.0" - }, - "node_modules/array-union": { - "version": "2.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/array-uniq": { - "version": "1.0.3", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/asap": { - "version": "2.0.6", - "dev": true, - "license": "MIT" - }, - "node_modules/asn1js": { - "version": "3.0.5", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "pvtsutils": "^1.3.2", - "pvutils": "^1.1.3", - "tslib": "^2.4.0" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/astral-regex": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/async": { - "version": "3.2.4", - "license": "MIT" - }, - "node_modules/auto-bind": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/babel-plugin-macros": { - "version": "3.1.0", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.12.5", - "cosmiconfig": "^7.0.0", - "resolve": "^1.19.0" - }, - "engines": { - "node": ">=10", - "npm": ">=6" - } - }, - "node_modules/babel-plugin-syntax-trailing-function-commas": { - "version": "7.0.0-beta.0", - "dev": true, - "license": "MIT" - }, - "node_modules/babel-preset-fbjs": { - "version": "3.4.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/plugin-proposal-class-properties": "^7.0.0", - "@babel/plugin-proposal-object-rest-spread": "^7.0.0", - "@babel/plugin-syntax-class-properties": "^7.0.0", - "@babel/plugin-syntax-flow": "^7.0.0", - "@babel/plugin-syntax-jsx": "^7.0.0", - "@babel/plugin-syntax-object-rest-spread": "^7.0.0", - "@babel/plugin-transform-arrow-functions": "^7.0.0", - "@babel/plugin-transform-block-scoped-functions": "^7.0.0", - "@babel/plugin-transform-block-scoping": "^7.0.0", - "@babel/plugin-transform-classes": "^7.0.0", - "@babel/plugin-transform-computed-properties": "^7.0.0", - "@babel/plugin-transform-destructuring": "^7.0.0", - "@babel/plugin-transform-flow-strip-types": "^7.0.0", - "@babel/plugin-transform-for-of": "^7.0.0", - "@babel/plugin-transform-function-name": "^7.0.0", - "@babel/plugin-transform-literals": "^7.0.0", - "@babel/plugin-transform-member-expression-literals": "^7.0.0", - "@babel/plugin-transform-modules-commonjs": "^7.0.0", - "@babel/plugin-transform-object-super": "^7.0.0", - "@babel/plugin-transform-parameters": "^7.0.0", - "@babel/plugin-transform-property-literals": "^7.0.0", - "@babel/plugin-transform-react-display-name": "^7.0.0", - "@babel/plugin-transform-react-jsx": "^7.0.0", - "@babel/plugin-transform-shorthand-properties": "^7.0.0", - "@babel/plugin-transform-spread": "^7.0.0", - "@babel/plugin-transform-template-literals": "^7.0.0", - "babel-plugin-syntax-trailing-function-commas": "^7.0.0-beta.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "license": "MIT" - }, - "node_modules/base64-js": { - "version": "1.5.1", - "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" - } - ], - "license": "MIT" - }, - "node_modules/binary-extensions": { - "version": "2.2.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/bl": { - "version": "4.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - } - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/browserslist": { - "version": "4.21.10", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.10.tgz", - "integrity": "sha512-bipEBdZfVH5/pwrvqc+Ub0kUPVfGUhlKxbvfD+z1BDnPEO/X98ruXGA1WP5ASpAFKan7Qr6j736IacbZQuAlKQ==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "caniuse-lite": "^1.0.30001517", - "electron-to-chromium": "^1.4.477", - "node-releases": "^2.0.13", - "update-browserslist-db": "^1.0.11" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/bser": { - "version": "2.1.1", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "node-int64": "^0.4.0" - } - }, - "node_modules/buffer": { - "version": "5.7.1", - "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" - } - ], - "license": "MIT", - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "optional": true, - "peer": true - }, - "node_modules/busboy": { - "version": "1.6.0", - "dev": true, - "dependencies": { - "streamsearch": "^1.1.0" - }, - "engines": { - "node": ">=10.16.0" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/camel-case": { - "version": "4.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "pascal-case": "^3.1.2", - "tslib": "^2.0.3" - } - }, - "node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001520", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001520.tgz", - "integrity": "sha512-tahF5O9EiiTzwTUqAeFjIZbn4Dnqxzz7ktrgGlMYNLH43Ul26IgTMH/zvL3DG0lZxBYnlT04axvInszUsZULdA==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ] - }, - "node_modules/capital-case": { - "version": "1.0.4", - "dev": true, - "license": "MIT", - "dependencies": { - "no-case": "^3.0.4", - "tslib": "^2.0.3", - "upper-case-first": "^2.0.2" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "dev": true, - "license": "MIT", - "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/change-case": { - "version": "4.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "camel-case": "^4.1.2", - "capital-case": "^1.0.4", - "constant-case": "^3.0.4", - "dot-case": "^3.0.4", - "header-case": "^2.0.4", - "no-case": "^3.0.4", - "param-case": "^3.0.4", - "pascal-case": "^3.1.2", - "path-case": "^3.0.4", - "sentence-case": "^3.0.4", - "snake-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "node_modules/change-case-all": { - "version": "1.0.14", - "dev": true, - "license": "MIT", - "dependencies": { - "change-case": "^4.1.2", - "is-lower-case": "^2.0.2", - "is-upper-case": "^2.0.2", - "lower-case": "^2.0.2", - "lower-case-first": "^2.0.2", - "sponge-case": "^1.0.1", - "swap-case": "^2.0.2", - "title-case": "^3.0.3", - "upper-case": "^2.0.2", - "upper-case-first": "^2.0.2" - } - }, - "node_modules/chardet": { - "version": "0.7.0", - "dev": true, - "license": "MIT" - }, - "node_modules/chokidar": { - "version": "3.5.3", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "license": "MIT", - "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" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/clean-stack": { - "version": "2.2.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/cli-cursor": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "restore-cursor": "^3.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cli-spinners": { - "version": "2.6.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/cli-truncate": { - "version": "2.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "slice-ansi": "^3.0.0", - "string-width": "^4.2.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/cli-width": { - "version": "3.0.0", - "dev": true, - "license": "ISC", - "engines": { - "node": ">= 10" - } - }, - "node_modules/cliui": { - "version": "7.0.4", - "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "node_modules/clone": { - "version": "1.0.4", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8" - } - }, - "node_modules/clsx": { - "version": "1.2.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "dev": true, - "license": "MIT" - }, - "node_modules/colorette": { - "version": "2.0.17", - "dev": true, - "license": "MIT" - }, - "node_modules/commander": { - "version": "2.20.3", - "license": "MIT" - }, - "node_modules/common-tags": { - "version": "1.8.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/commondir": { - "version": "1.0.1", - "license": "MIT" - }, - "node_modules/concat-map": { - "version": "0.0.1", - "license": "MIT" - }, - "node_modules/constant-case": { - "version": "3.0.4", - "dev": true, - "license": "MIT", - "dependencies": { - "no-case": "^3.0.4", - "tslib": "^2.0.3", - "upper-case": "^2.0.2" - } - }, - "node_modules/convert-source-map": { - "version": "1.8.0", - "license": "MIT", - "dependencies": { - "safe-buffer": "~5.1.1" - } - }, - "node_modules/convert-source-map/node_modules/safe-buffer": { - "version": "5.1.2", - "license": "MIT" - }, - "node_modules/core-js": { - "version": "3.22.8", - "hasInstallScript": true, - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, - "node_modules/cosmiconfig": { - "version": "7.0.1", - "license": "MIT", - "dependencies": { - "@types/parse-json": "^4.0.0", - "import-fresh": "^3.2.1", - "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.10.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/cosmiconfig-typescript-loader": { - "version": "4.3.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12", - "npm": ">=6" - }, - "peerDependencies": { - "@types/node": "*", - "cosmiconfig": ">=7", - "ts-node": ">=10", - "typescript": ">=3" - } - }, - "node_modules/create-require": { - "version": "1.1.1", - "dev": true, - "license": "MIT" - }, - "node_modules/cross-fetch": { - "version": "3.1.5", - "dev": true, - "license": "MIT", - "dependencies": { - "node-fetch": "2.6.7" - } - }, - "node_modules/cross-fetch/node_modules/node-fetch": { - "version": "2.6.7", - "dev": true, - "license": "MIT", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/cross-fetch/node_modules/tr46": { - "version": "0.0.3", - "dev": true, - "license": "MIT" - }, - "node_modules/cross-fetch/node_modules/webidl-conversions": { - "version": "3.0.1", - "dev": true, - "license": "BSD-2-Clause" - }, - "node_modules/cross-fetch/node_modules/whatwg-url": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "node_modules/csstype": { - "version": "3.1.2", - "license": "MIT" - }, - "node_modules/d3-collection": { - "version": "1.0.7", - "license": "BSD-3-Clause" - }, - "node_modules/d3-dispatch": { - "version": "1.0.6", - "license": "BSD-3-Clause" - }, - "node_modules/d3-dsv": { - "version": "1.0.10", - "license": "BSD-3-Clause", - "dependencies": { - "commander": "2", - "iconv-lite": "0.4", - "rw": "1" - }, - "bin": { - "csv2json": "bin/dsv2json", - "csv2tsv": "bin/dsv2dsv", - "dsv2dsv": "bin/dsv2dsv", - "dsv2json": "bin/dsv2json", - "json2csv": "bin/json2dsv", - "json2dsv": "bin/json2dsv", - "json2tsv": "bin/json2dsv", - "tsv2csv": "bin/dsv2dsv", - "tsv2json": "bin/dsv2json" - } - }, - "node_modules/d3-request": { - "version": "1.0.6", - "license": "BSD-3-Clause", - "dependencies": { - "d3-collection": "1", - "d3-dispatch": "1", - "d3-dsv": "1", - "xmlhttprequest": "1" - } - }, - "node_modules/data-uri-to-buffer": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 12" - } - }, - "node_modules/dataframe-js": { - "version": "1.4.4", - "license": "MIT", - "dependencies": { - "core-js": "^3.1.4", - "d3-dsv": "~1.0.10", - "d3-request": "~1.0.6", - "regenerator-runtime": "^0.13.3" - } - }, - "node_modules/dataloader": { - "version": "2.2.2", - "dev": true, - "license": "MIT" - }, - "node_modules/debounce": { - "version": "1.2.1", - "dev": true, - "license": "MIT" - }, - "node_modules/debug": { - "version": "4.3.4", - "license": "MIT", - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/decamelize": { - "version": "1.2.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/defaults": { - "version": "1.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "clone": "^1.0.2" - } - }, - "node_modules/dependency-graph": { - "version": "0.11.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.6.0" - } - }, - "node_modules/detect-indent": { - "version": "6.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/diff": { - "version": "4.0.2", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/dir-glob": { - "version": "3.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/dom-helpers": { - "version": "5.2.1", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.8.7", - "csstype": "^3.0.2" - } - }, - "node_modules/dot-case": { - "version": "3.0.4", - "dev": true, - "license": "MIT", - "dependencies": { - "no-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "node_modules/dotenv": { - "version": "16.1.4", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/motdotla/dotenv?sponsor=1" - } - }, - "node_modules/dset": { - "version": "3.1.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/electron-to-chromium": { - "version": "1.4.524", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.524.tgz", - "integrity": "sha512-iTmhuiGXYo29QoFXwwXbxhAKiDRZQzme6wYVaZNoitg9h1iRaMGu3vNvDyk+gqu5ETK1D6ug9PC5GVS7kSURuw==" - }, - "node_modules/email-addresses": { - "version": "5.0.0", - "license": "MIT" - }, - "node_modules/entities": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", - "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", - "engines": { - "node": ">=0.12" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/error-ex": { - "version": "1.3.2", - "license": "MIT", - "dependencies": { - "is-arrayish": "^0.2.1" - } - }, - "node_modules/esbuild": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.20.tgz", - "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==", - "hasInstallScript": true, - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/android-arm": "0.18.20", - "@esbuild/android-arm64": "0.18.20", - "@esbuild/android-x64": "0.18.20", - "@esbuild/darwin-arm64": "0.18.20", - "@esbuild/darwin-x64": "0.18.20", - "@esbuild/freebsd-arm64": "0.18.20", - "@esbuild/freebsd-x64": "0.18.20", - "@esbuild/linux-arm": "0.18.20", - "@esbuild/linux-arm64": "0.18.20", - "@esbuild/linux-ia32": "0.18.20", - "@esbuild/linux-loong64": "0.18.20", - "@esbuild/linux-mips64el": "0.18.20", - "@esbuild/linux-ppc64": "0.18.20", - "@esbuild/linux-riscv64": "0.18.20", - "@esbuild/linux-s390x": "0.18.20", - "@esbuild/linux-x64": "0.18.20", - "@esbuild/netbsd-x64": "0.18.20", - "@esbuild/openbsd-x64": "0.18.20", - "@esbuild/sunos-x64": "0.18.20", - "@esbuild/win32-arm64": "0.18.20", - "@esbuild/win32-ia32": "0.18.20", - "@esbuild/win32-x64": "0.18.20" - } - }, - "node_modules/escalade": { - "version": "3.1.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-string-regexp": { - "version": "1.0.5", - "license": "MIT", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/estree-walker": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" - }, - "node_modules/external-editor": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "chardet": "^0.7.0", - "iconv-lite": "^0.4.24", - "tmp": "^0.0.33" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/extract-files": { - "version": "11.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.20 || >= 14.13" - }, - "funding": { - "url": "https://github.com/sponsors/jaydenseric" - } - }, - "node_modules/fast-decode-uri-component": { - "version": "1.0.1", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-glob": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", - "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", - "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-querystring": { - "version": "1.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-decode-uri-component": "^1.0.1" - } - }, - "node_modules/fast-url-parser": { - "version": "1.1.3", - "dev": true, - "license": "MIT", - "dependencies": { - "punycode": "^1.3.2" - } - }, - "node_modules/fast-url-parser/node_modules/punycode": { - "version": "1.4.1", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-xml-parser": { - "version": "4.2.7", - "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.7.tgz", - "integrity": "sha512-J8r6BriSLO1uj2miOk1NW0YVm8AGOOu3Si2HQp/cSmo6EA4m3fcwu2WKjJ4RK9wMLBtg69y1kS8baDiQBR41Ig==", - "funding": [ - { - "type": "paypal", - "url": "https://paypal.me/naturalintelligence" - }, - { - "type": "github", - "url": "https://github.com/sponsors/NaturalIntelligence" - } - ], - "dependencies": { - "strnum": "^1.0.5" - }, - "bin": { - "fxparser": "src/cli/cli.js" - } - }, - "node_modules/fastq": { - "version": "1.13.0", - "dev": true, - "license": "ISC", - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/fb-watchman": { - "version": "2.0.1", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "bser": "2.1.1" - } - }, - "node_modules/fbjs": { - "version": "3.0.4", - "dev": true, - "license": "MIT", - "dependencies": { - "cross-fetch": "^3.1.5", - "fbjs-css-vars": "^1.0.0", - "loose-envify": "^1.0.0", - "object-assign": "^4.1.0", - "promise": "^7.1.1", - "setimmediate": "^1.0.5", - "ua-parser-js": "^0.7.30" - } - }, - "node_modules/fbjs-css-vars": { - "version": "1.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/fbjs/node_modules/promise": { - "version": "7.3.1", - "dev": true, - "license": "MIT", - "dependencies": { - "asap": "~2.0.3" - } - }, - "node_modules/fetch-blob": { - "version": "3.1.5", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/jimmywarting" - }, - { - "type": "paypal", - "url": "https://paypal.me/jimmywarting" - } - ], - "license": "MIT", - "dependencies": { - "node-domexception": "^1.0.0", - "web-streams-polyfill": "^3.0.3" - }, - "engines": { - "node": "^12.20 || >= 14.13" - } - }, - "node_modules/figures": { - "version": "3.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "escape-string-regexp": "^1.0.5" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/filename-reserved-regex": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/filenamify": { - "version": "4.3.0", - "license": "MIT", - "dependencies": { - "filename-reserved-regex": "^2.0.0", - "strip-outer": "^1.0.1", - "trim-repeated": "^1.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/fill-range": { - "version": "7.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-cache-dir": { - "version": "3.3.2", - "license": "MIT", - "dependencies": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/avajs/find-cache-dir?sponsor=1" - } - }, - "node_modules/find-root": { - "version": "1.1.0", - "license": "MIT" - }, - "node_modules/find-up": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/formdata-polyfill": { - "version": "4.0.10", - "dev": true, - "license": "MIT", - "dependencies": { - "fetch-blob": "^3.1.2" - }, - "engines": { - "node": ">=12.20.0" - } - }, - "node_modules/fs-extra": { - "version": "8.1.0", - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - }, - "engines": { - "node": ">=6 <7 || >=8" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "license": "ISC" - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.1", - "license": "MIT" - }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "dev": true, - "license": "ISC", - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/gh-pages": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "async": "^3.2.4", - "commander": "^2.18.0", - "email-addresses": "^5.0.0", - "filenamify": "^4.3.0", - "find-cache-dir": "^3.3.1", - "fs-extra": "^8.1.0", - "globby": "^6.1.0" - }, - "bin": { - "gh-pages": "bin/gh-pages.js", - "gh-pages-clean": "bin/gh-pages-clean.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/gh-pages/node_modules/array-union": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", - "integrity": "sha512-Dxr6QJj/RdU/hCaBjOfxW+q6lyuVE6JFWIrAUpuOOhoJJoQ99cUn3igRaHVB5P9WrgFVN0FfArM3x0cueOU8ng==", - "dependencies": { - "array-uniq": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gh-pages/node_modules/globby": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", - "integrity": "sha512-KVbFv2TQtbzCoxAnfD6JcHZTYCzyliEaaeM/gH8qQdkKr5s0OP9scEgvdcngyk7AVdY6YVW/TJHd+lQ/Df3Daw==", - "dependencies": { - "array-union": "^1.0.1", - "glob": "^7.0.3", - "object-assign": "^4.0.1", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/glob": { - "version": "7.2.3", - "license": "ISC", - "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": "5.1.2", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/glob/node_modules/minimatch": { - "version": "3.1.2", - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/globals": { - "version": "11.12.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/globby": { - "version": "11.1.0", - "dev": true, - "license": "MIT", - "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/globrex": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz", - "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==" - }, - "node_modules/graceful-fs": { - "version": "4.2.10", - "license": "ISC" - }, - "node_modules/graphql": { - "version": "15.8.0", - "license": "MIT", - "peer": true, - "engines": { - "node": ">= 10.x" - } - }, - "node_modules/graphql-config": { - "version": "4.5.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/graphql-file-loader": "^7.3.7", - "@graphql-tools/json-file-loader": "^7.3.7", - "@graphql-tools/load": "^7.5.5", - "@graphql-tools/merge": "^8.2.6", - "@graphql-tools/url-loader": "^7.9.7", - "@graphql-tools/utils": "^9.0.0", - "cosmiconfig": "8.0.0", - "jiti": "1.17.1", - "minimatch": "4.2.3", - "string-env-interpolation": "1.0.1", - "tslib": "^2.4.0" - }, - "engines": { - "node": ">= 10.0.0" - }, - "peerDependencies": { - "cosmiconfig-toml-loader": "^1.0.0", - "graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" - }, - "peerDependenciesMeta": { - "cosmiconfig-toml-loader": { - "optional": true - } - } - }, - "node_modules/graphql-config/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/graphql-config/node_modules/cosmiconfig": { - "version": "8.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "parse-json": "^5.0.0", - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/graphql-request": { - "version": "6.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-typed-document-node/core": "^3.2.0", - "cross-fetch": "^3.1.5" - }, - "peerDependencies": { - "graphql": "14 - 16" - } - }, - "node_modules/graphql-tag": { - "version": "2.12.6", - "license": "MIT", - "dependencies": { - "tslib": "^2.1.0" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "graphql": "^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" - } - }, - "node_modules/graphql-ws": { - "version": "5.12.1", - "devOptional": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "graphql": ">=0.11 <=16" - } - }, - "node_modules/has": { - "version": "1.0.3", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/has-flag": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/header-case": { - "version": "2.0.4", - "dev": true, - "license": "MIT", - "dependencies": { - "capital-case": "^1.0.4", - "tslib": "^2.0.3" - } - }, - "node_modules/hoist-non-react-statics": { - "version": "3.3.2", - "license": "BSD-3-Clause", - "dependencies": { - "react-is": "^16.7.0" - } - }, - "node_modules/http-proxy-agent": { - "version": "6.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "agent-base": "^7.1.0", - "debug": "^4.3.4" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/http-proxy-agent/node_modules/agent-base": { - "version": "7.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^4.3.4" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "license": "MIT", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ieee754": { - "version": "1.2.1", - "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" - } - ], - "license": "BSD-3-Clause" - }, - "node_modules/ignore": { - "version": "5.2.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/immutable": { - "version": "3.7.6", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/import-fresh": { - "version": "3.3.0", - "license": "MIT", - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/import-fresh/node_modules/resolve-from": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/import-from": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.2" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/indent-string": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "license": "ISC", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "license": "ISC" - }, - "node_modules/inquirer": { - "version": "8.2.4", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-escapes": "^4.2.1", - "chalk": "^4.1.1", - "cli-cursor": "^3.1.0", - "cli-width": "^3.0.0", - "external-editor": "^3.0.3", - "figures": "^3.0.0", - "lodash": "^4.17.21", - "mute-stream": "0.0.8", - "ora": "^5.4.1", - "run-async": "^2.4.0", - "rxjs": "^7.5.5", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0", - "through": "^2.3.6", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/invariant": { - "version": "2.2.4", - "dev": true, - "license": "MIT", - "dependencies": { - "loose-envify": "^1.0.0" - } - }, - "node_modules/is-absolute": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "is-relative": "^1.0.0", - "is-windows": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "license": "MIT" - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-core-module": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.0.tgz", - "integrity": "sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==", - "dependencies": { - "has": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-interactive": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-lower-case": { - "version": "2.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^2.0.3" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-relative": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "is-unc-path": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-unc-path": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "unc-path-regex": "^0.1.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-unicode-supported": { - "version": "0.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-upper-case": { - "version": "2.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^2.0.3" - } - }, - "node_modules/is-windows": { - "version": "1.0.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/isomorphic-ws": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "peerDependencies": { - "ws": "*" - } - }, - "node_modules/jiti": { - "version": "1.17.1", - "dev": true, - "license": "MIT", - "bin": { - "jiti": "bin/jiti.js" - } - }, - "node_modules/jose": { - "version": "4.14.4", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/panva" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "license": "MIT" - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsesc": { - "version": "2.5.2", - "license": "MIT", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/json-parse-even-better-errors": { - "version": "2.3.1", - "license": "MIT" - }, - "node_modules/json-stable-stringify": { - "version": "1.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "jsonify": "^0.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/json-to-pretty-yaml": { - "version": "1.2.2", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "remedial": "^1.0.7", - "remove-trailing-spaces": "^1.0.6" - }, - "engines": { - "node": ">= 0.2.0" - } - }, - "node_modules/json5": { - "version": "2.2.3", - "license": "MIT", - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/jsonfile": { - "version": "4.0.0", - "license": "MIT", - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/jsonify": { - "version": "0.0.1", - "dev": true, - "license": "Public Domain", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/lines-and-columns": { - "version": "1.2.4", - "license": "MIT" - }, - "node_modules/listr2": { - "version": "4.0.5", - "dev": true, - "license": "MIT", - "dependencies": { - "cli-truncate": "^2.1.0", - "colorette": "^2.0.16", - "log-update": "^4.0.0", - "p-map": "^4.0.0", - "rfdc": "^1.3.0", - "rxjs": "^7.5.5", - "through": "^2.3.8", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" - }, - "peerDependencies": { - "enquirer": ">= 2.3.0 < 3" - }, - "peerDependenciesMeta": { - "enquirer": { - "optional": true - } - } - }, - "node_modules/locate-path": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/lodash": { - "version": "4.17.21", - "dev": true, - "license": "MIT" - }, - "node_modules/log-symbols": { - "version": "4.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "chalk": "^4.1.0", - "is-unicode-supported": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/log-update": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-escapes": "^4.3.0", - "cli-cursor": "^3.1.0", - "slice-ansi": "^4.0.0", - "wrap-ansi": "^6.2.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/log-update/node_modules/slice-ansi": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" - } - }, - "node_modules/log-update/node_modules/wrap-ansi": { - "version": "6.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/loose-envify": { - "version": "1.4.0", - "license": "MIT", - "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" - }, - "bin": { - "loose-envify": "cli.js" - } - }, - "node_modules/lower-case": { - "version": "2.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^2.0.3" - } - }, - "node_modules/lower-case-first": { - "version": "2.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^2.0.3" - } - }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/make-dir": { - "version": "3.1.0", - "license": "MIT", - "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/make-error": { - "version": "1.3.6", - "dev": true, - "license": "ISC" - }, - "node_modules/map-cache": { - "version": "0.2.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/merge2": { - "version": "1.4.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/meros": { - "version": "1.3.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=13" - }, - "peerDependencies": { - "@types/node": ">=13" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - } - } - }, - "node_modules/micromatch": { - "version": "4.0.5", - "dev": true, - "license": "MIT", - "dependencies": { - "braces": "^3.0.2", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mimic-fn": { - "version": "2.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/minimatch": { - "version": "4.2.3", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "license": "MIT" - }, - "node_modules/mute-stream": { - "version": "0.0.8", - "dev": true, - "license": "ISC" - }, - "node_modules/nanoid": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", - "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", - "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/no-case": { - "version": "3.0.4", - "dev": true, - "license": "MIT", - "dependencies": { - "lower-case": "^2.0.2", - "tslib": "^2.0.3" - } - }, - "node_modules/node-domexception": { - "version": "1.0.0", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/jimmywarting" - }, - { - "type": "github", - "url": "https://paypal.me/jimmywarting" - } - ], - "license": "MIT", - "engines": { - "node": ">=10.5.0" - } - }, - "node_modules/node-fetch": { - "version": "3.3.1", - "dev": true, - "license": "MIT", - "dependencies": { - "data-uri-to-buffer": "^4.0.0", - "fetch-blob": "^3.1.4", - "formdata-polyfill": "^4.0.10" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/node-fetch" - } - }, - "node_modules/node-int64": { - "version": "0.4.0", - "dev": true, - "license": "MIT" - }, - "node_modules/node-releases": { - "version": "2.0.13", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", - "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==" - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/nullthrows": { - "version": "1.1.1", - "dev": true, - "license": "MIT" - }, - "node_modules/object-assign": { - "version": "4.1.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/once": { - "version": "1.4.0", - "license": "ISC", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/onetime": { - "version": "5.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/optimism": { - "version": "0.16.2", - "license": "MIT", - "dependencies": { - "@wry/context": "^0.7.0", - "@wry/trie": "^0.3.0" - } - }, - "node_modules/optimism/node_modules/@wry/trie": { - "version": "0.3.2", - "license": "MIT", - "dependencies": { - "tslib": "^2.3.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/ora": { - "version": "5.4.1", - "dev": true, - "license": "MIT", - "dependencies": { - "bl": "^4.1.0", - "chalk": "^4.1.0", - "cli-cursor": "^3.1.0", - "cli-spinners": "^2.5.0", - "is-interactive": "^1.0.0", - "is-unicode-supported": "^0.1.0", - "log-symbols": "^4.1.0", - "strip-ansi": "^6.0.0", - "wcwidth": "^1.0.1" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/os-tmpdir": { - "version": "1.0.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/p-locate/node_modules/p-limit": { - "version": "2.3.0", - "license": "MIT", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-map": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "aggregate-error": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "engines": { - "node": ">=6" - } - }, - "node_modules/param-case": { - "version": "3.0.4", - "dev": true, - "license": "MIT", - "dependencies": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "license": "MIT", - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/parse-filepath": { - "version": "1.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "is-absolute": "^1.0.0", - "map-cache": "^0.2.0", - "path-root": "^0.1.1" - }, - "engines": { - "node": ">=0.8" - } - }, - "node_modules/parse-json": { - "version": "5.2.0", - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/pascal-case": { - "version": "3.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "no-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "node_modules/path-case": { - "version": "3.0.4", - "dev": true, - "license": "MIT", - "dependencies": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "license": "MIT" - }, - "node_modules/path-root": { - "version": "0.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "path-root-regex": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-root-regex": { - "version": "0.1.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-type": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/phaser": { - "version": "3.60.0", - "license": "MIT", - "dependencies": { - "eventemitter3": "^5.0.0" - } - }, - "node_modules/phaser/node_modules/eventemitter3": { - "version": "5.0.1", - "license": "MIT" - }, - "node_modules/picocolors": { - "version": "1.0.0", - "license": "ISC" - }, - "node_modules/picomatch": { - "version": "2.3.1", - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pify": { - "version": "2.3.0", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/pinkie": { - "version": "2.0.4", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/pinkie-promise": { - "version": "2.0.1", - "license": "MIT", - "dependencies": { - "pinkie": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/pkg-dir": { - "version": "4.2.0", - "license": "MIT", - "dependencies": { - "find-up": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/postcss": { - "version": "8.4.33", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.33.tgz", - "integrity": "sha512-Kkpbhhdjw2qQs2O2DGX+8m5OVqEcbB9HRBvuYM9pgrjEFUg30A9LmXNlTAUj4S9kgtGyrMbTzVjH7E+s5Re2yg==", - "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.0.2" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/prop-types": { - "version": "15.8.1", - "license": "MIT", - "dependencies": { - "loose-envify": "^1.4.0", - "object-assign": "^4.1.1", - "react-is": "^16.13.1" - } - }, - "node_modules/pvtsutils": { - "version": "1.3.2", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^2.4.0" - } - }, - "node_modules/pvutils": { - "version": "1.1.3", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "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" - } - ], - "license": "MIT" - }, - "node_modules/react": { - "version": "18.2.0", - "license": "MIT", - "dependencies": { - "loose-envify": "^1.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react-dom": { - "version": "18.2.0", - "license": "MIT", - "dependencies": { - "loose-envify": "^1.1.0", - "scheduler": "^0.23.0" - }, - "peerDependencies": { - "react": "^18.2.0" - } - }, - "node_modules/react-infinite-scroll": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/react-infinite-scroll/-/react-infinite-scroll-0.1.5.tgz", - "integrity": "sha512-5i6ndJNL68I4+Kc6+AxLwGho4TGBKG0cnIKjW2F6kTT8JNCzpYMhe+jCOo9u6yTXzFL5DE2OmmNvxkUIcAtUow==" - }, - "node_modules/react-is": { - "version": "16.13.1", - "license": "MIT" - }, - "node_modules/react-router": { - "version": "6.22.1", - "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.22.1.tgz", - "integrity": "sha512-0pdoRGwLtemnJqn1K0XHUbnKiX0S4X8CgvVVmHGOWmofESj31msHo/1YiqcJWK7Wxfq2a4uvvtS01KAQyWK/CQ==", - "dependencies": { - "@remix-run/router": "1.15.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "react": ">=16.8" - } - }, - "node_modules/react-router-dom": { - "version": "6.22.1", - "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.22.1.tgz", - "integrity": "sha512-iwMyyyrbL7zkKY7MRjOVRy+TMnS/OPusaFVxM2P11x9dzSzGmLsebkCvYirGq0DWB9K9hOspHYYtDz33gE5Duw==", - "dependencies": { - "@remix-run/router": "1.15.1", - "react-router": "6.22.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "react": ">=16.8", - "react-dom": ">=16.8" - } - }, - "node_modules/react-tabs": { - "version": "6.0.1", - "license": "MIT", - "dependencies": { - "clsx": "^1.1.0", - "prop-types": "^15.5.0" - }, - "peerDependencies": { - "react": "^18.0.0" - } - }, - "node_modules/react-transition-group": { - "version": "4.4.5", - "license": "BSD-3-Clause", - "dependencies": { - "@babel/runtime": "^7.5.5", - "dom-helpers": "^5.0.1", - "loose-envify": "^1.4.0", - "prop-types": "^15.6.2" - }, - "peerDependencies": { - "react": ">=16.6.0", - "react-dom": ">=16.6.0" - } - }, - "node_modules/readable-stream": { - "version": "3.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/readdirp": { - "version": "3.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/regenerator-runtime": { - "version": "0.13.11", - "license": "MIT" - }, - "node_modules/relay-compiler": { - "version": "12.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.14.0", - "@babel/generator": "^7.14.0", - "@babel/parser": "^7.14.0", - "@babel/runtime": "^7.0.0", - "@babel/traverse": "^7.14.0", - "@babel/types": "^7.0.0", - "babel-preset-fbjs": "^3.4.0", - "chalk": "^4.0.0", - "fb-watchman": "^2.0.0", - "fbjs": "^3.0.0", - "glob": "^7.1.1", - "immutable": "~3.7.6", - "invariant": "^2.2.4", - "nullthrows": "^1.1.1", - "relay-runtime": "12.0.0", - "signedsource": "^1.0.0", - "yargs": "^15.3.1" - }, - "bin": { - "relay-compiler": "bin/relay-compiler" - }, - "peerDependencies": { - "graphql": "^15.0.0" - } - }, - "node_modules/relay-compiler/node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/relay-compiler/node_modules/cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", - "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" - } - }, - "node_modules/relay-compiler/node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/relay-compiler/node_modules/y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true - }, - "node_modules/relay-compiler/node_modules/yargs": { - "version": "15.4.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", - "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", - "dev": true, - "dependencies": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/relay-compiler/node_modules/yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", - "dev": true, - "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/relay-runtime": { - "version": "12.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.0.0", - "fbjs": "^3.0.0", - "invariant": "^2.2.4" - } - }, - "node_modules/remedial": { - "version": "1.0.8", - "dev": true, - "license": "(MIT OR Apache-2.0)", - "engines": { - "node": "*" - } - }, - "node_modules/remove-trailing-separator": { - "version": "1.1.0", - "dev": true, - "license": "ISC" - }, - "node_modules/remove-trailing-spaces": { - "version": "1.0.8", - "dev": true, - "license": "MIT" - }, - "node_modules/require-directory": { - "version": "2.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-main-filename": { - "version": "2.0.0", - "dev": true, - "license": "ISC" - }, - "node_modules/resolve": { - "version": "1.22.6", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.6.tgz", - "integrity": "sha512-njhxM7mV12JfufShqGy3Rz8j11RPdLy4xi15UurGJeoHLfJpVXKdh3ueuOqbYUcDZnffr6X739JBo5LzyahEsw==", - "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": "5.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/response-iterator": { - "version": "0.2.6", - "license": "MIT", - "engines": { - "node": ">=0.8" - } - }, - "node_modules/restore-cursor": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "onetime": "^5.1.0", - "signal-exit": "^3.0.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/reusify": { - "version": "1.0.4", - "dev": true, - "license": "MIT", - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rfdc": { - "version": "1.3.0", - "dev": true, - "license": "MIT" - }, - "node_modules/rollup": { - "version": "3.29.2", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.29.2.tgz", - "integrity": "sha512-CJouHoZ27v6siztc21eEQGo0kIcE5D1gVPA571ez0mMYb25LGYGKnVNXpEj5MGlepmDWGXNjDB5q7uNiPHC11A==", - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=14.18.0", - "npm": ">=8.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/run-async": { - "version": "2.4.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "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" - } - ], - "license": "MIT", - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/rw": { - "version": "1.3.3", - "license": "BSD-3-Clause" - }, - "node_modules/rxjs": { - "version": "7.5.5", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.1.0" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "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" - } - ], - "license": "MIT" - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "license": "MIT" - }, - "node_modules/scheduler": { - "version": "0.23.0", - "license": "MIT", - "dependencies": { - "loose-envify": "^1.1.0" - } - }, - "node_modules/scuid": { - "version": "1.1.0", - "dev": true, - "license": "MIT" - }, - "node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/sentence-case": { - "version": "3.0.4", - "dev": true, - "license": "MIT", - "dependencies": { - "no-case": "^3.0.4", - "tslib": "^2.0.3", - "upper-case-first": "^2.0.2" - } - }, - "node_modules/set-blocking": { - "version": "2.0.0", - "dev": true, - "license": "ISC" - }, - "node_modules/setimmediate": { - "version": "1.0.5", - "dev": true, - "license": "MIT" - }, - "node_modules/shell-quote": { - "version": "1.7.3", - "dev": true, - "license": "MIT" - }, - "node_modules/signal-exit": { - "version": "3.0.7", - "dev": true, - "license": "ISC" - }, - "node_modules/signedsource": { - "version": "1.0.0", - "dev": true, - "license": "BSD-3-Clause" - }, - "node_modules/slash": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/slice-ansi": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/snake-case": { - "version": "3.0.4", - "dev": true, - "license": "MIT", - "dependencies": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "node_modules/source-map-js": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", - "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "optional": true, - "peer": true, - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/source-map-support/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "optional": true, - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sponge-case": { - "version": "1.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^2.0.3" - } - }, - "node_modules/streamsearch": { - "version": "1.1.0", - "dev": true, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "dev": true, - "license": "MIT", - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, - "node_modules/string-env-interpolation": { - "version": "1.0.1", - "dev": true, - "license": "MIT" - }, - "node_modules/string-width": { - "version": "4.2.3", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width/node_modules/emoji-regex": { - "version": "8.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-outer": { - "version": "1.0.1", - "license": "MIT", - "dependencies": { - "escape-string-regexp": "^1.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/strnum": { - "version": "1.0.5", - "license": "MIT" - }, - "node_modules/stylis": { - "version": "4.2.0", - "license": "MIT" - }, - "node_modules/supports-color": { - "version": "7.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/svg-parser": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/svg-parser/-/svg-parser-2.0.4.tgz", - "integrity": "sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==" - }, - "node_modules/swap-case": { - "version": "2.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^2.0.3" - } - }, - "node_modules/symbol-observable": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=0.10" - } - }, - "node_modules/terser": { - "version": "5.19.4", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.19.4.tgz", - "integrity": "sha512-6p1DjHeuluwxDXcuT9VR8p64klWJKo1ILiy19s6C9+0Bh2+NWTX6nD9EPppiER4ICkHDVB1RkVpin/YW2nQn/g==", - "optional": true, - "peer": true, - "dependencies": { - "@jridgewell/source-map": "^0.3.3", - "acorn": "^8.8.2", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" - }, - "bin": { - "terser": "bin/terser" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/through": { - "version": "2.3.8", - "dev": true, - "license": "MIT" - }, - "node_modules/title-case": { - "version": "3.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^2.0.3" - } - }, - "node_modules/tmp": { - "version": "0.0.33", - "dev": true, - "license": "MIT", - "dependencies": { - "os-tmpdir": "~1.0.2" - }, - "engines": { - "node": ">=0.6.0" - } - }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/trim-repeated": { - "version": "1.0.0", - "license": "MIT", - "dependencies": { - "escape-string-regexp": "^1.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ts-invariant": { - "version": "0.10.3", - "license": "MIT", - "dependencies": { - "tslib": "^2.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/ts-log": { - "version": "2.2.4", - "dev": true, - "license": "MIT" - }, - "node_modules/ts-node": { - "version": "10.9.1", - "dev": true, - "license": "MIT", - "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/ts-node/node_modules/acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/ts-node/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/tsconfck": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/tsconfck/-/tsconfck-2.1.2.tgz", - "integrity": "sha512-ghqN1b0puy3MhhviwO2kGF8SeMDNhEbnKxjK7h6+fvY9JAxqvXi8y5NAHSQv687OVboS2uZIByzGd45/YxrRHg==", - "bin": { - "tsconfck": "bin/tsconfck.js" - }, - "engines": { - "node": "^14.13.1 || ^16 || >=18" - }, - "peerDependencies": { - "typescript": "^4.3.5 || ^5.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/tslib": { - "version": "2.4.0", - "license": "0BSD" - }, - "node_modules/type-fest": { - "version": "0.21.3", - "dev": true, - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/typescript": { - "version": "4.9.5", - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, - "node_modules/ua-parser-js": { - "version": "0.7.35", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/ua-parser-js" - }, - { - "type": "paypal", - "url": "https://paypal.me/faisalman" - } - ], - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/unc-path-regex": { - "version": "0.1.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/universalify": { - "version": "0.1.2", - "license": "MIT", - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/unixify": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "normalize-path": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/unixify/node_modules/normalize-path": { - "version": "2.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "remove-trailing-separator": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", - "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/upper-case": { - "version": "2.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^2.0.3" - } - }, - "node_modules/upper-case-first": { - "version": "2.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^2.0.3" - } - }, - "node_modules/urlpattern-polyfill": { - "version": "6.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "braces": "^3.0.2" - } - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/v8-compile-cache-lib": { - "version": "3.0.1", - "dev": true, - "license": "MIT" - }, - "node_modules/value-or-promise": { - "version": "1.0.12", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - } - }, - "node_modules/vite": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.2.tgz", - "integrity": "sha512-tBCZBNSBbHQkaGyhGCDUGqeo2ph8Fstyp6FMSvTtsXeZSPpSMGlviAOav2hxVTqFcx8Hj/twtWKsMJXNY0xI8w==", - "dependencies": { - "esbuild": "^0.18.10", - "postcss": "^8.4.27", - "rollup": "^3.27.1" - }, - "bin": { - "vite": "bin/vite.js" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/vitejs/vite?sponsor=1" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - }, - "peerDependencies": { - "@types/node": ">= 14", - "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-plugin-svgr": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/vite-plugin-svgr/-/vite-plugin-svgr-3.2.0.tgz", - "integrity": "sha512-Uvq6niTvhqJU6ga78qLKBFJSDvxWhOnyfQSoKpDPMAGxJPo5S3+9hyjExE5YDj6Lpa4uaLkGc1cBgxXov+LjSw==", - "dependencies": { - "@rollup/pluginutils": "^5.0.2", - "@svgr/core": "^7.0.0", - "@svgr/plugin-jsx": "^7.0.0" - }, - "peerDependencies": { - "vite": "^2.6.0 || 3 || 4" - } - }, - "node_modules/vite-tsconfig-paths": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/vite-tsconfig-paths/-/vite-tsconfig-paths-4.2.1.tgz", - "integrity": "sha512-GNUI6ZgPqT3oervkvzU+qtys83+75N/OuDaQl7HmOqFTb0pjZsuARrRipsyJhJ3enqV8beI1xhGbToR4o78nSQ==", - "dependencies": { - "debug": "^4.1.1", - "globrex": "^0.1.2", - "tsconfck": "^2.1.0" - }, - "peerDependencies": { - "vite": "*" - }, - "peerDependenciesMeta": { - "vite": { - "optional": true - } - } - }, - "node_modules/wcwidth": { - "version": "1.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "defaults": "^1.0.3" - } - }, - "node_modules/web-streams-polyfill": { - "version": "3.2.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/web-vitals": { - "version": "3.3.2", - "license": "Apache-2.0" - }, - "node_modules/webcrypto-core": { - "version": "1.7.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@peculiar/asn1-schema": "^2.3.6", - "@peculiar/json-schema": "^1.1.12", - "asn1js": "^3.0.1", - "pvtsutils": "^1.3.2", - "tslib": "^2.4.0" - } - }, - "node_modules/which-module": { - "version": "2.0.0", - "dev": true, - "license": "ISC" - }, - "node_modules/wrap-ansi": { - "version": "7.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "license": "ISC" - }, - "node_modules/ws": { - "version": "8.13.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/xmlhttprequest": { - "version": "1.8.0", - "license": "MIT", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/y18n": { - "version": "5.0.8", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" - }, - "node_modules/yaml": { - "version": "1.10.2", - "license": "ISC", - "engines": { - "node": ">= 6" - } - }, - "node_modules/yaml-ast-parser": { - "version": "0.0.43", - "dev": true, - "license": "Apache-2.0" - }, - "node_modules/yargs": { - "version": "17.5.1", - "dev": true, - "license": "MIT", - "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/yargs-parser": { - "version": "21.0.1", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/yn": { - "version": "3.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/zen-observable": { - "version": "0.8.15", - "license": "MIT" - }, - "node_modules/zen-observable-ts": { - "version": "1.2.5", - "license": "MIT", - "dependencies": { - "zen-observable": "0.8.15" - } - } - } -} diff --git a/package.json b/package.json deleted file mode 100644 index 14b9b87c4..000000000 --- a/package.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "name": "app", - "type": "module", - "version": "0.1.0", - "homepage": "https://sprites.pmdcollab.org/", - "private": true, - "dependencies": { - "@apollo/client": "^3.7.15", - "@emotion/react": "^11.11.1", - "@emotion/styled": "^11.11.0", - "@fontsource/roboto": "^5.0.3", - "@mui/icons-material": "^5.11.16", - "@mui/lab": "^5.0.0-alpha.134", - "@mui/material": "^5.13.5", - "@types/node": "^20.2.5", - "@types/react-dom": "^18.2.4", - "@types/react-infinite-scroller": "^1.2.5", - "@vitejs/plugin-react-swc": "^3.3.2", - "dataframe-js": "^1.4.4", - "fast-xml-parser": "^4.2.4", - "gh-pages": "^5.0.0", - "phaser": "^3.60.0", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "react-infinite-scroll": "^0.1.5", - "react-router-dom": "^6.22.1", - "react-tabs": "^6.0.1", - "typescript": "^4.9.5", - "vite": "^4.4.9", - "vite-plugin-svgr": "^3.2.0", - "vite-tsconfig-paths": "^4.2.1", - "web-vitals": "^3.3.2" - }, - "scripts": { - "start": "vite", - "build": "tsc && vite build", - "serve": "vite preview", - "predeploy": "npm run build", - "deploy": "gh-pages -d build", - "preprocess": "node preprocess.js", - "graphql": "graphql-codegen --config codegen.yml" - }, - "eslintConfig": { - "extends": [ - "react-app" - ] - }, - "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" - ] - }, - "devDependencies": { - "@graphql-codegen/cli": "^2.6.2", - "@graphql-codegen/introspection": "2.1.1", - "@graphql-codegen/typescript": "2.4.11", - "@graphql-codegen/typescript-operations": "2.4.0", - "@graphql-codegen/typescript-react-apollo": "3.2.14", - "@types/dataframe-js": "^1.4.0", - "@types/react": "^18.0.12", - "node-fetch": "^3.2.4" - } -} diff --git a/public/robots.txt b/robots.txt similarity index 100% rename from public/robots.txt rename to robots.txt diff --git a/src/About.tsx b/src/About.tsx deleted file mode 100644 index 4ca9d8648..000000000 --- a/src/About.tsx +++ /dev/null @@ -1,331 +0,0 @@ -import { - Accordion, - AccordionDetails, - AccordionSummary, - Box, - Card, - CardActions, - CardContent, - Container, - Grid, - Link, - ListItemIcon, - ListItemText, - Typography -} from "@mui/material" -import { Bar } from "./components/bar" -import List from "@mui/material/List" -import ListItem from "@mui/material/ListItem" -import ExpandMoreIcon from "@mui/icons-material/ExpandMore" -import EditIcon from "@mui/icons-material/Edit" -import ShuffleIcon from "@mui/icons-material/Shuffle" -import VideogameAssetIcon from "@mui/icons-material/VideogameAsset" -import CheckIcon from "@mui/icons-material/Check" -import XIcon from "@mui/icons-material/Close" -import MovieIcon from "@mui/icons-material/Movie" - -export default function About() { - return ( - - - - - About PMDCollab SpriteCollab - - - - Terms of Use - - - Custom sprites are licensed under Attribution-NonCommercial 4.0 International. All acceptable use of custom sprites must be done with appropriate credit. We recommend including a file or link of the credit_names.txt, which contains all authors of the project. - - - Proper Crediting - - - All form pages contain credits.txt files for you to list in credits. - - - - - - - - Examples of Acceptable Use: - - - - - - - - - - ROMhacks, fangames - - - - - - - - Sprite comics, videos - - - - - - - - Use in profile pictures, banners, emotes - - - - - - - - Posting edits or recolors - - - - - - - - - - - Examples of Unacceptable Use: - - - - - - - - - - Printing and selling merchandise - - - - - - - - Commercial AI services - - - - - - - - Sharing generated images without credit - - - - - - - - Claiming ownership of sprites - - - - - - - - - - - FAQ - - - - }> - What is PMDCollab? - - - - PMDCollab is a collaborative project providing tools and resources - to help fans of Pokémon Mystery Dungeon create their own ROMhacks, - fangames, sprite comics, and more. This project, SpriteCollab, - aims to be a central resource for PMD-styled portrait art and - top-down dungeon sprites for Pokémon of all generations. - - - - - - - Portraits - - - - - - - - - - - - Sprites - - - - - - - - - - - - }> - Where did these sprites come from? - - - - The sprites and portraits in this repository includes both sprites - made by Chunsoft for the original games and custom, fan-made - sprites. Specific artist credits can be found on the pages for - each sprite. - - - - - }> - I can make sprites! How can I help? - - - - If you have created or want to learn how to create sprites, you - can join the #spriting-help channel of the{" "} - - SkyTemple discord server - - . Talk to the artists there and they'll help walk you through the - process of adding sprites to the repository. - - - Many of the artists there also take commissions for sprites, so if - you need sprites for a specific Pokémon that isn't currently in - the repository, you can commission someone to make them for you as - well. - - - If you're just interested in making sprites that fit the general - style, you may find this{" "} - - guidebook on how to make PMD-style sprites - {" "} - by veteran spriter Emmuffin useful. - - - - - }> - What other cool stuff does PMDCollab do? - - - Here are some links to our other projects: - - - - - - - - SkyTemple, a tool to - make ROMhacks of Pokémon Mystery Dungeon: Explorers of Sky - - - - - - - - - SkyTemple Randomizer - - , a program that randomizes all of the Pokémon in Explorers of - Sky. - - - - - - - - PMDO - , a Pokémon Mystery Dungeon fangame and fangame engine - - - - - - - - - Mystery Mail - - , a recurring event where participants make a section of an - Explorers of Sky cutscene before passing it off to the next - participant. - - - - - - - - - DreamNexus - - , a ROM editor for Rescue Team DX - - - - - - - - PMU, a Pokémon - Mystery Dungeon MMO - - - - - - - {/* I couldn't find a website or discord server or really anything to link for them. :/ If you find one feel free to add it */} - - PMR, a - Pokémon Mystery Dungeon action RPG - - - - - - - - ) -} diff --git a/src/Contributors.tsx b/src/Contributors.tsx deleted file mode 100644 index 9153e76ed..000000000 --- a/src/Contributors.tsx +++ /dev/null @@ -1,90 +0,0 @@ -import { - Box, - Container, - Link, - Table, - TableBody, - TableCell, - TableContainer, - TableHead, - TableRow, - Typography -} from "@mui/material" -import { Bar } from "./components/bar" -import { Credit, useContributorsQuery } from "./generated/graphql" -import { useEffect, useState } from "react" - -export default function Contributors() { - const [credits, setCredits] = useState([]) - const { data } = useContributorsQuery({ errorPolicy: "ignore" }) - - useEffect(() => { - if (data?.credit) { - setCredits(data.credit) - } - }, [data]) - - return ( - - - - {!credits.length ? ( - - Loading... - - ) : ( - - - - - - Name - - - Contact - - - - - {credits - .filter( - ({ name, discordHandle }) => - (name || discordHandle) && - !discordHandle?.includes("Deleted User") - ) - .sort((a, b) => { - const nameA = a.name || a.discordHandle || "" - const nameB = b.name || b.discordHandle || "" - return nameA.localeCompare(nameB) - }) - .map(({ name, id, discordHandle, contact }) => ( - - - - {name ?? discordHandle} - - - - {contact?.includes("http") ? ( - - {contact} - - ) : ( - contact && ( - {contact} - ) - )} - - - ))} - -
-
- )} -
-
- ) -} diff --git a/src/ErrorPage.tsx b/src/ErrorPage.tsx deleted file mode 100644 index 98117c3ed..000000000 --- a/src/ErrorPage.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import { Box, Typography, Link } from '@mui/material'; - -export default function ErrorPage() { - return -

Uh Oh!

- - Looks like the server ran into an error. This typically happens when our sprite server is down, and we'll try to get it back up as soon as possible. - - - If this problem still occurs, check server uptime at PMDCollab Status. - -
-} \ No newline at end of file diff --git a/src/Home.tsx b/src/Home.tsx deleted file mode 100644 index dc8f0a1ce..000000000 --- a/src/Home.tsx +++ /dev/null @@ -1,93 +0,0 @@ -import PokemonCarousel from "./components/pokemon-carousel" -import Search from "./components/search" -import { createContext, useState } from "react" -import { RankMethod } from "./types/enum" -import DisplayParameters from "./components/display-parameters" -import PokemonRanking from "./components/pokemon-ranking" -import { Meta } from "./generated/graphql" -import { - Accordion, - AccordionDetails, - AccordionSummary, - Box, - Container, - Link, - Typography, - useMediaQuery, - useTheme -} from "@mui/material" -import { Bar } from "./components/bar" -import { Footer } from "./components/footer" -import ExpandMoreIcon from "@mui/icons-material/ExpandMore" -import { Filter, MiscParams, Toggle, filters, miscParams, paramsToMap, paramsToObject, toggles } from "./types/params" -import { SetURLSearchParams, useSearchParams } from 'react-router-dom' -import { UseState } from './util' - -export const Context = createContext<{ - searchParamsState: [URLSearchParams, SetURLSearchParams] - toggleState: Map - filterState: Map - miscState: Record - rankState: UseState -} | null>(null); - -export default function Home({ ids, meta }: { ids: number[]; meta: Meta }) { - const textState = useState(""), [currentText] = textState; - const rankState = useState(RankMethod.POKEDEX_NUMBER); - // the lord the savior use search params - const searchParamsState = useSearchParams(), [searchParams] = searchParamsState; - // TODO: make these objects instead of maps - const toggleState = paramsToMap(searchParams, toggles, Boolean); - const filterState = paramsToMap(searchParams, filters, Boolean); - const miscState = paramsToObject(searchParams, miscParams, Boolean); - - const theme = useTheme(); - const isMobile = useMediaQuery(theme.breakpoints.down("md")); - - return ( - - - - - - Free to use WITH CREDIT for ROMhacks, fangames, etc. Don't use for - commercial projects. - - - - Search for a pokemon, artist or pokedex number ... - - - - }> - - Searching options - - - - - - - - - - -