From 4fd1a07bcd1156d7394d9d80c7dea170cef79c35 Mon Sep 17 00:00:00 2001 From: 1596941391qq <1596941391@qq.com> Date: Mon, 17 Jun 2024 22:34:11 +0800 Subject: [PATCH] gx --- .../{index-49ded0a8.js => index-59397f9f.js} | 3924 +++++++++------- app/src/main/assets/web/exp-sprites.json | 16 +- .../assets/web/images/events/pride-update.png | Bin 0 -> 1107643 bytes .../main/assets/web/images/pokemon/228.png | Bin 5979 -> 15091 bytes .../assets/web/images/pokemon/229-mega.png | Bin 1120 -> 2610 bytes .../main/assets/web/images/pokemon/229.png | Bin 10141 -> 23660 bytes .../main/assets/web/images/pokemon/232.png | Bin 8637 -> 25484 bytes .../main/assets/web/images/pokemon/357.png | Bin 15292 -> 36476 bytes .../main/assets/web/images/pokemon/401.png | Bin 5719 -> 17194 bytes .../main/assets/web/images/pokemon/402.png | Bin 12343 -> 39032 bytes .../assets/web/images/pokemon/531-mega.png | Bin 808 -> 1053 bytes .../main/assets/web/images/pokemon/772.png | Bin 1136 -> 2597 bytes .../assets/web/images/pokemon/773-bug.png | Bin 1056 -> 2464 bytes .../assets/web/images/pokemon/773-dark.png | Bin 1056 -> 2467 bytes .../assets/web/images/pokemon/773-dragon.png | Bin 1056 -> 2464 bytes .../web/images/pokemon/773-electric.png | Bin 1056 -> 2466 bytes .../assets/web/images/pokemon/773-fairy.png | Bin 1056 -> 2466 bytes .../web/images/pokemon/773-fighting.png | Bin 1056 -> 2467 bytes .../assets/web/images/pokemon/773-fire.png | Bin 1056 -> 2468 bytes .../assets/web/images/pokemon/773-flying.png | Bin 1056 -> 2460 bytes .../assets/web/images/pokemon/773-ghost.png | Bin 1056 -> 2466 bytes .../assets/web/images/pokemon/773-grass.png | Bin 1056 -> 2471 bytes .../assets/web/images/pokemon/773-ground.png | Bin 1056 -> 2470 bytes .../assets/web/images/pokemon/773-ice.png | Bin 1056 -> 2468 bytes .../assets/web/images/pokemon/773-poison.png | Bin 1056 -> 2462 bytes .../assets/web/images/pokemon/773-psychic.png | Bin 1056 -> 2467 bytes .../assets/web/images/pokemon/773-rock.png | Bin 1056 -> 2467 bytes .../assets/web/images/pokemon/773-steel.png | Bin 1056 -> 2468 bytes .../assets/web/images/pokemon/773-water.png | Bin 1056 -> 2470 bytes .../main/assets/web/images/pokemon/773.png | Bin 1057 -> 2465 bytes .../main/assets/web/images/pokemon/777.png | Bin 469 -> 1036 bytes .../web/images/pokemon/818-gigantamax.png | Bin 1099 -> 2744 bytes .../assets/web/images/pokemon/876-female.png | Bin 578 -> 1931 bytes .../main/assets/web/images/pokemon/876.png | Bin 590 -> 1879 bytes .../main/assets/web/images/pokemon/896.png | Bin 926 -> 2783 bytes .../assets/web/images/pokemon/898-ice.png | Bin 3744 -> 3776 bytes .../main/assets/web/images/pokemon/898.png | Bin 907 -> 2786 bytes .../main/assets/web/images/pokemon/974.png | Bin 581 -> 753 bytes .../main/assets/web/images/pokemon/975.png | Bin 963 -> 1190 bytes .../assets/web/images/pokemon/back/228.png | Bin 4462 -> 11370 bytes .../web/images/pokemon/back/229-mega.png | Bin 881 -> 1850 bytes .../assets/web/images/pokemon/back/229.png | Bin 7903 -> 19115 bytes .../assets/web/images/pokemon/back/232.png | Bin 5716 -> 8297 bytes .../assets/web/images/pokemon/back/357.png | Bin 11161 -> 26012 bytes .../assets/web/images/pokemon/back/401.png | Bin 5034 -> 13267 bytes .../assets/web/images/pokemon/back/402.png | Bin 10358 -> 37615 bytes .../assets/web/images/pokemon/back/772.png | Bin 1070 -> 2438 bytes .../web/images/pokemon/back/773-bug.png | Bin 1035 -> 2406 bytes .../web/images/pokemon/back/773-dark.png | Bin 1035 -> 2408 bytes .../web/images/pokemon/back/773-dragon.png | Bin 1036 -> 2402 bytes .../web/images/pokemon/back/773-electric.png | Bin 1036 -> 2406 bytes .../web/images/pokemon/back/773-fairy.png | Bin 1036 -> 2403 bytes .../web/images/pokemon/back/773-fighting.png | Bin 1035 -> 2405 bytes .../web/images/pokemon/back/773-fire.png | Bin 1036 -> 2409 bytes .../web/images/pokemon/back/773-flying.png | Bin 1031 -> 2394 bytes .../web/images/pokemon/back/773-ghost.png | Bin 1034 -> 2401 bytes .../web/images/pokemon/back/773-grass.png | Bin 1035 -> 2410 bytes .../web/images/pokemon/back/773-ground.png | Bin 1033 -> 2412 bytes .../web/images/pokemon/back/773-ice.png | Bin 1034 -> 2407 bytes .../web/images/pokemon/back/773-poison.png | Bin 1033 -> 2396 bytes .../web/images/pokemon/back/773-psychic.png | Bin 1036 -> 2405 bytes .../web/images/pokemon/back/773-rock.png | Bin 1034 -> 2405 bytes .../web/images/pokemon/back/773-steel.png | Bin 1035 -> 2409 bytes .../web/images/pokemon/back/773-water.png | Bin 1034 -> 2408 bytes .../assets/web/images/pokemon/back/773.png | Bin 1034 -> 2401 bytes .../images/pokemon/back/818-gigantamax.png | Bin 868 -> 2308 bytes .../web/images/pokemon/back/876-female.png | Bin 456 -> 1640 bytes .../assets/web/images/pokemon/back/876.png | Bin 475 -> 1636 bytes .../assets/web/images/pokemon/back/896.png | Bin 848 -> 2363 bytes .../web/images/pokemon/back/898-ice.png | Bin 3429 -> 3428 bytes .../assets/web/images/pokemon/back/898.png | Bin 801 -> 2247 bytes .../assets/web/images/pokemon/back/974.png | Bin 534 -> 678 bytes .../assets/web/images/pokemon/back/975.png | Bin 912 -> 1160 bytes .../web/images/pokemon/back/female/229.png | Bin 7694 -> 18666 bytes .../web/images/pokemon/back/female/232.png | Bin 5633 -> 8201 bytes .../web/images/pokemon/back/female/401.png | Bin 4820 -> 12945 bytes .../web/images/pokemon/back/female/402.png | Bin 10353 -> 37692 bytes .../web/images/pokemon/back/shiny/357.png | Bin 11162 -> 25590 bytes .../pokemon/back/shiny/569-gigantamax.png | Bin 1577 -> 2072 bytes .../web/images/pokemon/back/shiny/772.png | Bin 1093 -> 2399 bytes .../web/images/pokemon/back/shiny/773-bug.png | Bin 1037 -> 2415 bytes .../images/pokemon/back/shiny/773-dark.png | Bin 1036 -> 2413 bytes .../images/pokemon/back/shiny/773-dragon.png | Bin 1037 -> 2410 bytes .../pokemon/back/shiny/773-electric.png | Bin 1033 -> 2412 bytes .../images/pokemon/back/shiny/773-fairy.png | Bin 1033 -> 2402 bytes .../pokemon/back/shiny/773-fighting.png | Bin 1033 -> 2414 bytes .../images/pokemon/back/shiny/773-fire.png | Bin 1033 -> 2408 bytes .../images/pokemon/back/shiny/773-flying.png | Bin 1035 -> 2408 bytes .../images/pokemon/back/shiny/773-ghost.png | Bin 1033 -> 2410 bytes .../images/pokemon/back/shiny/773-grass.png | Bin 1036 -> 2414 bytes .../images/pokemon/back/shiny/773-ground.png | Bin 1035 -> 2411 bytes .../web/images/pokemon/back/shiny/773-ice.png | Bin 1035 -> 2418 bytes .../images/pokemon/back/shiny/773-poison.png | Bin 1037 -> 2417 bytes .../images/pokemon/back/shiny/773-psychic.png | Bin 1033 -> 2406 bytes .../images/pokemon/back/shiny/773-rock.png | Bin 1032 -> 2410 bytes .../images/pokemon/back/shiny/773-steel.png | Bin 1035 -> 2414 bytes .../images/pokemon/back/shiny/773-water.png | Bin 1033 -> 2416 bytes .../web/images/pokemon/back/shiny/773.png | Bin 1033 -> 2412 bytes .../pokemon/back/shiny/818-gigantamax.png | Bin 869 -> 2310 bytes .../web/images/pokemon/back/shiny/974.png | Bin 536 -> 673 bytes .../web/images/pokemon/back/shiny/975.png | Bin 911 -> 1160 bytes .../pokemon/exp/{4053.json => 2053.json} | 2 +- .../images/pokemon/exp/{4053.png => 2053.png} | Bin .../web/images/pokemon/exp/229-mega.png | Bin 4885 -> 12208 bytes .../web/images/pokemon/exp/531-mega.png | Bin 3180 -> 4427 bytes .../assets/web/images/pokemon/exp/752.png | Bin 5528 -> 17559 bytes .../assets/web/images/pokemon/exp/772.png | Bin 6307 -> 18027 bytes .../assets/web/images/pokemon/exp/773-bug.png | Bin 7366 -> 19803 bytes .../web/images/pokemon/exp/773-dark.png | Bin 7366 -> 19820 bytes .../web/images/pokemon/exp/773-dragon.png | Bin 7366 -> 19816 bytes .../web/images/pokemon/exp/773-electric.png | Bin 7366 -> 19802 bytes .../web/images/pokemon/exp/773-fairy.png | Bin 7366 -> 19834 bytes .../web/images/pokemon/exp/773-fighting.png | Bin 7366 -> 19807 bytes .../web/images/pokemon/exp/773-fire.png | Bin 7366 -> 19829 bytes .../web/images/pokemon/exp/773-flying.png | Bin 7366 -> 19770 bytes .../web/images/pokemon/exp/773-ghost.png | Bin 7366 -> 19819 bytes .../web/images/pokemon/exp/773-grass.png | Bin 7366 -> 19838 bytes .../web/images/pokemon/exp/773-ground.png | Bin 7366 -> 19830 bytes .../assets/web/images/pokemon/exp/773-ice.png | Bin 7366 -> 19809 bytes .../web/images/pokemon/exp/773-poison.png | Bin 7366 -> 19792 bytes .../web/images/pokemon/exp/773-psychic.png | Bin 7366 -> 19816 bytes .../web/images/pokemon/exp/773-rock.png | Bin 7366 -> 19809 bytes .../web/images/pokemon/exp/773-steel.png | Bin 7366 -> 19824 bytes .../web/images/pokemon/exp/773-water.png | Bin 7366 -> 19860 bytes .../assets/web/images/pokemon/exp/773.png | Bin 7366 -> 19822 bytes .../web/images/pokemon/exp/773_Test.png | Bin 0 -> 19868 bytes .../assets/web/images/pokemon/exp/776.png | Bin 4661 -> 19538 bytes .../assets/web/images/pokemon/exp/777.json | 1957 ++------ .../assets/web/images/pokemon/exp/777.png | Bin 1480 -> 5973 bytes .../assets/web/images/pokemon/exp/818.png | Bin 3168 -> 9562 bytes .../assets/web/images/pokemon/exp/864.png | Bin 34329 -> 35956 bytes .../web/images/pokemon/exp/876-female.png | Bin 2337 -> 6428 bytes .../assets/web/images/pokemon/exp/876.png | Bin 2166 -> 5759 bytes .../assets/web/images/pokemon/exp/896.png | Bin 3511 -> 9664 bytes .../assets/web/images/pokemon/exp/898-ice.png | Bin 14596 -> 14701 bytes .../assets/web/images/pokemon/exp/974.png | Bin 2673 -> 6012 bytes .../assets/web/images/pokemon/exp/975.png | Bin 17527 -> 24367 bytes .../pokemon/exp/back/{4053.json => 2053.json} | 2 +- .../pokemon/exp/back/{4053.png => 2053.png} | Bin .../web/images/pokemon/exp/back/229-mega.png | Bin 2810 -> 9468 bytes .../web/images/pokemon/exp/back/772.png | Bin 6305 -> 16930 bytes .../web/images/pokemon/exp/back/773-bug.png | Bin 6264 -> 19038 bytes .../web/images/pokemon/exp/back/773-dark.png | Bin 6264 -> 19045 bytes .../images/pokemon/exp/back/773-dragon.png | Bin 6263 -> 19030 bytes .../images/pokemon/exp/back/773-electric.png | Bin 6267 -> 19028 bytes .../web/images/pokemon/exp/back/773-fairy.png | Bin 6266 -> 19039 bytes .../images/pokemon/exp/back/773-fighting.png | Bin 6268 -> 19032 bytes .../web/images/pokemon/exp/back/773-fire.png | Bin 6268 -> 19058 bytes .../images/pokemon/exp/back/773-flying.png | Bin 6265 -> 18985 bytes .../web/images/pokemon/exp/back/773-ghost.png | Bin 6263 -> 19033 bytes .../web/images/pokemon/exp/back/773-grass.png | Bin 6262 -> 19058 bytes .../images/pokemon/exp/back/773-ground.png | Bin 6258 -> 19061 bytes .../web/images/pokemon/exp/back/773-ice.png | Bin 6259 -> 19041 bytes .../images/pokemon/exp/back/773-poison.png | Bin 6264 -> 19013 bytes .../images/pokemon/exp/back/773-psychic.png | Bin 6266 -> 19033 bytes .../web/images/pokemon/exp/back/773-rock.png | Bin 6268 -> 19035 bytes .../web/images/pokemon/exp/back/773-steel.png | Bin 6268 -> 19063 bytes .../web/images/pokemon/exp/back/773-water.png | Bin 6266 -> 19049 bytes .../web/images/pokemon/exp/back/773.png | Bin 6268 -> 19047 bytes .../web/images/pokemon/exp/back/776.png | Bin 2911 -> 9188 bytes .../web/images/pokemon/exp/back/777.json | 2011 ++------ .../web/images/pokemon/exp/back/777.png | Bin 1205 -> 3855 bytes .../web/images/pokemon/exp/back/797.png | Bin 5735 -> 21746 bytes .../images/pokemon/exp/back/876-female.png | Bin 1457 -> 3986 bytes .../web/images/pokemon/exp/back/876.png | Bin 1540 -> 4022 bytes .../web/images/pokemon/exp/back/896.png | Bin 3412 -> 10319 bytes .../web/images/pokemon/exp/back/898-ice.png | Bin 12417 -> 12436 bytes .../web/images/pokemon/exp/back/898.png | Bin 2530 -> 6848 bytes .../web/images/pokemon/exp/back/974.png | Bin 1970 -> 2780 bytes .../web/images/pokemon/exp/back/975.png | Bin 4289 -> 7651 bytes .../exp/back/shiny/{4053.json => 2053.json} | 2 +- .../exp/back/shiny/{4053.png => 2053.png} | Bin .../web/images/pokemon/exp/back/shiny/772.png | Bin 6308 -> 16902 bytes .../images/pokemon/exp/back/shiny/773-bug.png | Bin 6266 -> 19082 bytes .../pokemon/exp/back/shiny/773-dark.png | Bin 6268 -> 19074 bytes .../pokemon/exp/back/shiny/773-dragon.png | Bin 6268 -> 19067 bytes .../pokemon/exp/back/shiny/773-electric.png | Bin 6261 -> 19057 bytes .../pokemon/exp/back/shiny/773-fairy.png | Bin 6261 -> 19038 bytes .../pokemon/exp/back/shiny/773-fighting.png | Bin 6261 -> 19079 bytes .../pokemon/exp/back/shiny/773-fire.png | Bin 6263 -> 19057 bytes .../pokemon/exp/back/shiny/773-flying.png | Bin 6270 -> 19052 bytes .../pokemon/exp/back/shiny/773-ghost.png | Bin 6272 -> 19054 bytes .../pokemon/exp/back/shiny/773-grass.png | Bin 6271 -> 19082 bytes .../pokemon/exp/back/shiny/773-ground.png | Bin 6270 -> 19070 bytes .../images/pokemon/exp/back/shiny/773-ice.png | Bin 6269 -> 19076 bytes .../pokemon/exp/back/shiny/773-poison.png | Bin 6266 -> 19090 bytes .../pokemon/exp/back/shiny/773-psychic.png | Bin 6260 -> 19047 bytes .../pokemon/exp/back/shiny/773-rock.png | Bin 6264 -> 19058 bytes .../pokemon/exp/back/shiny/773-steel.png | Bin 6262 -> 19085 bytes .../pokemon/exp/back/shiny/773-water.png | Bin 6272 -> 19074 bytes .../web/images/pokemon/exp/back/shiny/773.png | Bin 6263 -> 19069 bytes .../web/images/pokemon/exp/back/shiny/776.png | Bin 2911 -> 9849 bytes .../web/images/pokemon/exp/back/shiny/974.png | Bin 1970 -> 2780 bytes .../web/images/pokemon/exp/back/shiny/975.png | Bin 4289 -> 7677 bytes .../exp/shiny/{4053.json => 2053.json} | 2 +- .../pokemon/exp/shiny/{4053.png => 2053.png} | Bin .../web/images/pokemon/exp/shiny/752.png | Bin 6367 -> 17739 bytes .../web/images/pokemon/exp/shiny/772.png | Bin 6307 -> 17986 bytes .../web/images/pokemon/exp/shiny/773-bug.png | Bin 7366 -> 19842 bytes .../web/images/pokemon/exp/shiny/773-dark.png | Bin 7366 -> 19805 bytes .../images/pokemon/exp/shiny/773-dragon.png | Bin 7366 -> 19816 bytes .../images/pokemon/exp/shiny/773-electric.png | Bin 7366 -> 19800 bytes .../images/pokemon/exp/shiny/773-fairy.png | Bin 7366 -> 19820 bytes .../images/pokemon/exp/shiny/773-fighting.png | Bin 7366 -> 19834 bytes .../web/images/pokemon/exp/shiny/773-fire.png | Bin 7366 -> 19833 bytes .../images/pokemon/exp/shiny/773-flying.png | Bin 7366 -> 19817 bytes .../images/pokemon/exp/shiny/773-ghost.png | Bin 7366 -> 19815 bytes .../images/pokemon/exp/shiny/773-grass.png | Bin 7366 -> 19835 bytes .../images/pokemon/exp/shiny/773-ground.png | Bin 7366 -> 19819 bytes .../web/images/pokemon/exp/shiny/773-ice.png | Bin 7366 -> 19838 bytes .../images/pokemon/exp/shiny/773-poison.png | Bin 7366 -> 19845 bytes .../images/pokemon/exp/shiny/773-psychic.png | Bin 7366 -> 19792 bytes .../web/images/pokemon/exp/shiny/773-rock.png | Bin 7366 -> 19811 bytes .../images/pokemon/exp/shiny/773-steel.png | Bin 7366 -> 19825 bytes .../images/pokemon/exp/shiny/773-water.png | Bin 7366 -> 19851 bytes .../web/images/pokemon/exp/shiny/773.png | Bin 7366 -> 19845 bytes .../web/images/pokemon/exp/shiny/776.png | Bin 4661 -> 18889 bytes .../web/images/pokemon/exp/shiny/777.json | 186 +- .../web/images/pokemon/exp/shiny/777.png | Bin 2455 -> 6025 bytes .../web/images/pokemon/exp/shiny/818.png | Bin 3168 -> 9769 bytes .../web/images/pokemon/exp/shiny/864.png | Bin 12677 -> 34329 bytes .../web/images/pokemon/exp/shiny/974.png | Bin 2689 -> 4129 bytes .../web/images/pokemon/exp/shiny/975.png | Bin 17477 -> 24419 bytes .../assets/web/images/pokemon/female/229.png | Bin 10057 -> 23540 bytes .../assets/web/images/pokemon/female/232.png | Bin 8485 -> 23993 bytes .../assets/web/images/pokemon/female/401.png | Bin 5808 -> 17520 bytes .../assets/web/images/pokemon/female/402.png | Bin 12359 -> 39401 bytes .../assets/web/images/pokemon/icons/4/401.png | Bin 326 -> 572 bytes .../assets/web/images/pokemon/icons/4/402.png | Bin 362 -> 661 bytes .../images/pokemon/icons/8/818-gigantamax.png | Bin 483 -> 888 bytes .../web/images/pokemon/icons/8/898s-ice.png | Bin 1036 -> 1503 bytes .../images/pokemon/icons/8/898s-shadow.png | Bin 1153 -> 1560 bytes .../assets/web/images/pokemon/icons/9/974.png | Bin 340 -> 340 bytes .../web/images/pokemon/icons/9/974s.png | Bin 348 -> 348 bytes .../assets/web/images/pokemon/icons/9/975.png | Bin 430 -> 429 bytes .../web/images/pokemon/icons/9/975s.png | Bin 435 -> 435 bytes .../images/pokemon/icons/variant/1/37_2.png | Bin 0 -> 633 bytes .../images/pokemon/icons/variant/1/37_3.png | Bin 0 -> 666 bytes .../images/pokemon/icons/variant/1/38_2.png | Bin 0 -> 737 bytes .../images/pokemon/icons/variant/1/38_3.png | Bin 0 -> 725 bytes .../images/pokemon/icons/variant/1/4_2.png | Bin 0 -> 372 bytes .../images/pokemon/icons/variant/1/4_3.png | Bin 0 -> 367 bytes .../images/pokemon/icons/variant/1/56_1.png | Bin 0 -> 762 bytes .../images/pokemon/icons/variant/1/56_2.png | Bin 0 -> 722 bytes .../images/pokemon/icons/variant/1/56_3.png | Bin 0 -> 738 bytes .../images/pokemon/icons/variant/1/57_1.png | Bin 0 -> 779 bytes .../images/pokemon/icons/variant/1/57_2.png | Bin 0 -> 800 bytes .../images/pokemon/icons/variant/1/57_3.png | Bin 0 -> 789 bytes .../images/pokemon/icons/variant/1/5_2.png | Bin 0 -> 419 bytes .../images/pokemon/icons/variant/1/5_3.png | Bin 0 -> 414 bytes .../icons/variant/1/6-gigantamax_2.png | Bin 0 -> 470 bytes .../icons/variant/1/6-gigantamax_3.png | Bin 0 -> 470 bytes .../pokemon/icons/variant/1/6-mega-x_2.png | Bin 0 -> 534 bytes .../pokemon/icons/variant/1/6-mega-x_3.png | Bin 0 -> 532 bytes .../pokemon/icons/variant/1/6-mega-y_2.png | Bin 0 -> 531 bytes .../pokemon/icons/variant/1/6-mega-y_3.png | Bin 0 -> 519 bytes .../images/pokemon/icons/variant/1/6_2.png | Bin 0 -> 467 bytes .../images/pokemon/icons/variant/1/6_3.png | Bin 0 -> 457 bytes .../images/pokemon/icons/variant/1/79_1.png | Bin 0 -> 564 bytes .../images/pokemon/icons/variant/2/199_1.png | Bin 0 -> 768 bytes .../images/pokemon/icons/variant/2/222_2.png | Bin 0 -> 646 bytes .../images/pokemon/icons/variant/2/222_3.png | Bin 0 -> 692 bytes .../images/pokemon/icons/variant/2/227_2.png | Bin 0 -> 736 bytes .../images/pokemon/icons/variant/2/227_3.png | Bin 0 -> 752 bytes .../images/pokemon/icons/variant/2/228_2.png | Bin 0 -> 627 bytes .../images/pokemon/icons/variant/2/228_3.png | Bin 0 -> 628 bytes .../pokemon/icons/variant/2/229-mega_2.png | Bin 0 -> 737 bytes .../pokemon/icons/variant/2/229-mega_3.png | Bin 0 -> 730 bytes .../images/pokemon/icons/variant/2/229_2.png | Bin 0 -> 665 bytes .../images/pokemon/icons/variant/2/229_3.png | Bin 0 -> 656 bytes .../images/pokemon/icons/variant/2/231_2.png | Bin 0 -> 500 bytes .../images/pokemon/icons/variant/2/231_3.png | Bin 0 -> 334 bytes .../3/292_3.png => icons/variant/2/232_2.png} | Bin 3280 -> 3469 bytes .../images/pokemon/icons/variant/2/232_3.png | Bin 0 -> 431 bytes .../images/pokemon/icons/variant/3/353_2.png | Bin 0 -> 544 bytes .../images/pokemon/icons/variant/3/353_3.png | Bin 0 -> 529 bytes .../images/pokemon/icons/variant/3/354_2.png | Bin 0 -> 809 bytes .../images/pokemon/icons/variant/3/354_3.png | Bin 0 -> 677 bytes .../images/pokemon/icons/variant/3/357_2.png | Bin 0 -> 828 bytes .../images/pokemon/icons/variant/3/357_3.png | Bin 0 -> 821 bytes .../images/pokemon/icons/variant/3/369_2.png | Bin 0 -> 624 bytes .../images/pokemon/icons/variant/3/369_3.png | Bin 0 -> 621 bytes .../images/pokemon/icons/variant/4/387_2.png | Bin 0 -> 593 bytes .../images/pokemon/icons/variant/4/387_3.png | Bin 0 -> 562 bytes .../images/pokemon/icons/variant/4/388_2.png | Bin 0 -> 798 bytes .../images/pokemon/icons/variant/4/388_3.png | Bin 0 -> 799 bytes .../images/pokemon/icons/variant/4/389_2.png | Bin 0 -> 862 bytes .../images/pokemon/icons/variant/4/389_3.png | Bin 0 -> 863 bytes .../images/pokemon/icons/variant/4/401_2.png | Bin 0 -> 632 bytes .../images/pokemon/icons/variant/4/401_3.png | Bin 0 -> 629 bytes .../images/pokemon/icons/variant/4/402_2.png | Bin 0 -> 727 bytes .../images/pokemon/icons/variant/4/402_3.png | Bin 0 -> 720 bytes .../images/pokemon/icons/variant/4/436_2.png | Bin 0 -> 238 bytes .../images/pokemon/icons/variant/4/436_3.png | Bin 0 -> 238 bytes .../images/pokemon/icons/variant/4/437_2.png | Bin 0 -> 310 bytes .../images/pokemon/icons/variant/4/437_3.png | Bin 0 -> 310 bytes .../icons/variant/4/480_1_GENERATED.png | Bin 782 -> 0 bytes .../pokemon/icons/variant/5/531-mega_2.png | Bin 0 -> 436 bytes .../pokemon/icons/variant/5/531-mega_3.png | Bin 0 -> 440 bytes .../images/pokemon/icons/variant/5/531_2.png | Bin 0 -> 405 bytes .../images/pokemon/icons/variant/5/531_3.png | Bin 0 -> 411 bytes .../images/pokemon/icons/variant/5/543_2.png | Bin 0 -> 457 bytes .../images/pokemon/icons/variant/5/543_3.png | Bin 0 -> 449 bytes .../images/pokemon/icons/variant/5/544_2.png | Bin 0 -> 689 bytes .../images/pokemon/icons/variant/5/544_3.png | Bin 0 -> 651 bytes .../images/pokemon/icons/variant/5/545_2.png | Bin 0 -> 809 bytes .../images/pokemon/icons/variant/5/545_3.png | Bin 0 -> 861 bytes .../images/pokemon/icons/variant/5/551_2.png | Bin 0 -> 599 bytes .../images/pokemon/icons/variant/5/551_3.png | Bin 0 -> 593 bytes .../images/pokemon/icons/variant/5/552_2.png | Bin 0 -> 698 bytes .../images/pokemon/icons/variant/5/552_3.png | Bin 0 -> 700 bytes .../images/pokemon/icons/variant/5/553_2.png | Bin 0 -> 835 bytes .../images/pokemon/icons/variant/5/553_3.png | Bin 0 -> 850 bytes .../pokemon/icons/variant/6/354-mega_2.png | Bin 0 -> 846 bytes .../pokemon/icons/variant/6/354-mega_3.png | Bin 0 -> 938 bytes .../6705_3.png => icons/variant/6/672_2.png} | Bin 3294 -> 3294 bytes .../1/92_3.png => icons/variant/6/672_3.png} | Bin 3312 -> 3286 bytes .../images/pokemon/icons/variant/6/673_2.png | Bin 0 -> 3528 bytes .../1/144_2.png => icons/variant/6/673_3.png} | Bin 3207 -> 3501 bytes .../images/pokemon/icons/variant/6/712_2.png | Bin 0 -> 8675 bytes .../images/pokemon/icons/variant/6/712_3.png | Bin 0 -> 8859 bytes .../images/pokemon/icons/variant/6/713_2.png | Bin 0 -> 12576 bytes .../images/pokemon/icons/variant/6/713_3.png | Bin 0 -> 12846 bytes .../3/358_1.png => icons/variant/6/742_2.png} | Bin 3200 -> 3219 bytes .../1/144_3.png => icons/variant/6/742_3.png} | Bin 3206 -> 3221 bytes .../3/292_2.png => icons/variant/6/743_2.png} | Bin 3269 -> 3272 bytes .../1/92_1.png => icons/variant/6/743_3.png} | Bin 3299 -> 3273 bytes .../images/pokemon/icons/variant/6/777_2.png | Bin 0 -> 541 bytes .../images/pokemon/icons/variant/6/777_3.png | Bin 0 -> 557 bytes .../images/pokemon/icons/variant/6/779_2.png | Bin 0 -> 697 bytes .../images/pokemon/icons/variant/6/779_3.png | Bin 0 -> 661 bytes .../images/pokemon/icons/variant/7/2052_2.png | Bin 0 -> 651 bytes .../images/pokemon/icons/variant/7/2052_3.png | Bin 0 -> 655 bytes .../images/pokemon/icons/variant/7/2053_2.png | Bin 0 -> 671 bytes .../images/pokemon/icons/variant/7/2053_3.png | Bin 0 -> 681 bytes .../images/pokemon/icons/variant/7/734_2.png | Bin 0 -> 285 bytes .../images/pokemon/icons/variant/7/734_3.png | Bin 0 -> 532 bytes .../images/pokemon/icons/variant/7/735_2.png | Bin 0 -> 297 bytes .../images/pokemon/icons/variant/7/735_3.png | Bin 0 -> 610 bytes .../images/pokemon/icons/variant/7/751_2.png | Bin 0 -> 513 bytes .../images/pokemon/icons/variant/7/751_3.png | Bin 0 -> 520 bytes .../images/pokemon/icons/variant/7/752_2.png | Bin 0 -> 658 bytes .../images/pokemon/icons/variant/7/752_3.png | Bin 0 -> 658 bytes .../images/pokemon/icons/variant/7/772_2.png | Bin 0 -> 801 bytes .../images/pokemon/icons/variant/7/772_3.png | Bin 0 -> 798 bytes .../pokemon/icons/variant/7/773-bug_2.png | Bin 0 -> 882 bytes .../pokemon/icons/variant/7/773-bug_3.png | Bin 0 -> 877 bytes .../pokemon/icons/variant/7/773-dark_2.png | Bin 0 -> 884 bytes .../pokemon/icons/variant/7/773-dark_3.png | Bin 0 -> 868 bytes .../pokemon/icons/variant/7/773-dragon_2.png | Bin 0 -> 884 bytes .../pokemon/icons/variant/7/773-dragon_3.png | Bin 0 -> 870 bytes .../icons/variant/7/773-electric_2.png | Bin 0 -> 884 bytes .../icons/variant/7/773-electric_3.png | Bin 0 -> 869 bytes .../pokemon/icons/variant/7/773-fairy_2.png | Bin 0 -> 880 bytes .../pokemon/icons/variant/7/773-fairy_3.png | Bin 0 -> 869 bytes .../icons/variant/7/773-fighting_2.png | Bin 0 -> 884 bytes .../icons/variant/7/773-fighting_3.png | Bin 0 -> 871 bytes .../pokemon/icons/variant/7/773-fire_2.png | Bin 0 -> 883 bytes .../pokemon/icons/variant/7/773-fire_3.png | Bin 0 -> 876 bytes .../pokemon/icons/variant/7/773-flying_2.png | Bin 0 -> 885 bytes .../pokemon/icons/variant/7/773-flying_3.png | Bin 0 -> 873 bytes .../pokemon/icons/variant/7/773-ghost_2.png | Bin 0 -> 883 bytes .../pokemon/icons/variant/7/773-ghost_3.png | Bin 0 -> 873 bytes .../pokemon/icons/variant/7/773-grass_2.png | Bin 0 -> 886 bytes .../pokemon/icons/variant/7/773-grass_3.png | Bin 0 -> 875 bytes .../pokemon/icons/variant/7/773-ground_2.png | Bin 0 -> 883 bytes .../pokemon/icons/variant/7/773-ground_3.png | Bin 0 -> 872 bytes .../pokemon/icons/variant/7/773-ice_2.png | Bin 0 -> 881 bytes .../pokemon/icons/variant/7/773-ice_3.png | Bin 0 -> 873 bytes .../pokemon/icons/variant/7/773-poison_2.png | Bin 0 -> 885 bytes .../pokemon/icons/variant/7/773-poison_3.png | Bin 0 -> 870 bytes .../pokemon/icons/variant/7/773-psychic_2.png | Bin 0 -> 883 bytes .../pokemon/icons/variant/7/773-psychic_3.png | Bin 0 -> 872 bytes .../pokemon/icons/variant/7/773-rock_2.png | Bin 0 -> 885 bytes .../pokemon/icons/variant/7/773-rock_3.png | Bin 0 -> 874 bytes .../pokemon/icons/variant/7/773-steel_2.png | Bin 0 -> 885 bytes .../pokemon/icons/variant/7/773-steel_3.png | Bin 0 -> 872 bytes .../pokemon/icons/variant/7/773-water_2.png | Bin 0 -> 883 bytes .../pokemon/icons/variant/7/773-water_3.png | Bin 0 -> 871 bytes .../images/pokemon/icons/variant/7/773_2.png | Bin 0 -> 876 bytes .../images/pokemon/icons/variant/7/773_3.png | Bin 0 -> 855 bytes .../images/pokemon/icons/variant/7/776_2.png | Bin 0 -> 967 bytes .../images/pokemon/icons/variant/7/776_3.png | Bin 0 -> 3754 bytes .../images/pokemon/icons/variant/7/797_2.png | Bin 0 -> 1045 bytes .../images/pokemon/icons/variant/7/797_3.png | Bin 0 -> 1002 bytes .../images/pokemon/icons/variant/8/4080_1.png | Bin 0 -> 810 bytes .../images/pokemon/icons/variant/8/4199_1.png | Bin 0 -> 846 bytes .../images/pokemon/icons/variant/8/6713_2.png | Bin 0 -> 11367 bytes .../images/pokemon/icons/variant/8/6713_3.png | Bin 0 -> 12150 bytes .../images/pokemon/icons/variant/8/816_2.png | Bin 0 -> 711 bytes .../2/226_2.png => icons/variant/8/816_3.png} | Bin 3295 -> 3423 bytes .../images/pokemon/icons/variant/8/817_2.png | Bin 0 -> 741 bytes .../1/141_3.png => icons/variant/8/817_3.png} | Bin 3283 -> 3497 bytes .../icons/variant/8/818-gigantamax_2.png | Bin 0 -> 883 bytes .../icons/variant/8/818-gigantamax_3.png | Bin 0 -> 3653 bytes .../images/pokemon/icons/variant/8/818_2.png | Bin 0 -> 707 bytes .../2/196_2.png => icons/variant/8/818_3.png} | Bin 3312 -> 3469 bytes .../images/pokemon/icons/variant/8/859_2.png | Bin 0 -> 1908 bytes .../images/pokemon/icons/variant/8/859_3.png | Bin 0 -> 1916 bytes .../images/pokemon/icons/variant/8/860_2.png | Bin 0 -> 2128 bytes .../images/pokemon/icons/variant/8/860_3.png | Bin 0 -> 2051 bytes .../icons/variant/8/861-gigantamax_2.png | Bin 0 -> 2222 bytes .../icons/variant/8/861-gigantamax_3.png | Bin 0 -> 2146 bytes .../images/pokemon/icons/variant/8/861_2.png | Bin 0 -> 2343 bytes .../images/pokemon/icons/variant/8/861_3.png | Bin 0 -> 2378 bytes .../pokemon/icons/variant/8/876-female_2.png | Bin 0 -> 1139 bytes .../pokemon/icons/variant/8/876-female_3.png | Bin 0 -> 1133 bytes .../images/pokemon/icons/variant/8/876_2.png | Bin 0 -> 1142 bytes .../images/pokemon/icons/variant/8/876_3.png | Bin 0 -> 1157 bytes .../images/pokemon/icons/variant/8/896_1.png | Bin 0 -> 1154 bytes .../images/pokemon/icons/variant/8/896_2.png | Bin 0 -> 1173 bytes .../images/pokemon/icons/variant/8/896_3.png | Bin 0 -> 1255 bytes .../images/pokemon/icons/variant/8/897_1.png | Bin 0 -> 1231 bytes .../images/pokemon/icons/variant/8/897_2.png | Bin 0 -> 1211 bytes .../images/pokemon/icons/variant/8/897_3.png | Bin 0 -> 1253 bytes .../pokemon/icons/variant/8/898-ice_1.png | Bin 0 -> 1461 bytes .../pokemon/icons/variant/8/898-ice_2.png | Bin 0 -> 1472 bytes .../pokemon/icons/variant/8/898-ice_3.png | Bin 0 -> 1529 bytes .../pokemon/icons/variant/8/898-shadow_1.png | Bin 0 -> 1577 bytes .../pokemon/icons/variant/8/898-shadow_2.png | Bin 0 -> 1579 bytes .../pokemon/icons/variant/8/898-shadow_3.png | Bin 0 -> 1558 bytes .../images/pokemon/icons/variant/8/898_1.png | Bin 0 -> 1096 bytes .../images/pokemon/icons/variant/8/898_2.png | Bin 0 -> 1097 bytes .../images/pokemon/icons/variant/8/898_3.png | Bin 0 -> 1147 bytes .../images/pokemon/icons/variant/9/951_2.png | Bin 0 -> 555 bytes .../images/pokemon/icons/variant/9/951_3.png | Bin 0 -> 555 bytes .../images/pokemon/icons/variant/9/952_2.png | Bin 0 -> 765 bytes .../images/pokemon/icons/variant/9/952_3.png | Bin 0 -> 774 bytes .../icons/variant/9/967_3_GENERATED.png | Bin 530 -> 0 bytes .../images/pokemon/icons/variant/9/974_2.png | Bin 0 -> 546 bytes .../images/pokemon/icons/variant/9/974_3.png | Bin 0 -> 509 bytes .../images/pokemon/icons/variant/9/975_2.png | Bin 0 -> 804 bytes .../images/pokemon/icons/variant/9/975_3.png | Bin 0 -> 784 bytes .../images/pokemon/icons/variant/9/979_1.png | Bin 0 -> 972 bytes .../images/pokemon/icons/variant/9/979_2.png | Bin 0 -> 994 bytes .../images/pokemon/icons/variant/9/979_3.png | Bin 0 -> 954 bytes .../images/pokemon/icons/variant/9/993_2.png | Bin 0 -> 416 bytes .../images/pokemon/icons/variant/9/993_3.png | Bin 0 -> 416 bytes .../assets/web/images/pokemon/shiny/357.png | Bin 15292 -> 35877 bytes .../images/pokemon/shiny/569-gigantamax.png | Bin 2019 -> 2623 bytes .../assets/web/images/pokemon/shiny/772.png | Bin 1153 -> 2585 bytes .../web/images/pokemon/shiny/773-bug.png | Bin 1039 -> 2467 bytes .../web/images/pokemon/shiny/773-dark.png | Bin 1039 -> 2463 bytes .../web/images/pokemon/shiny/773-dragon.png | Bin 1039 -> 2463 bytes .../web/images/pokemon/shiny/773-electric.png | Bin 1039 -> 2460 bytes .../web/images/pokemon/shiny/773-fairy.png | Bin 1039 -> 2463 bytes .../web/images/pokemon/shiny/773-fighting.png | Bin 1039 -> 2466 bytes .../web/images/pokemon/shiny/773-fire.png | Bin 1039 -> 2467 bytes .../web/images/pokemon/shiny/773-flying.png | Bin 1039 -> 2464 bytes .../web/images/pokemon/shiny/773-ghost.png | Bin 1039 -> 2462 bytes .../web/images/pokemon/shiny/773-grass.png | Bin 1039 -> 2465 bytes .../web/images/pokemon/shiny/773-ground.png | Bin 1039 -> 2467 bytes .../web/images/pokemon/shiny/773-ice.png | Bin 1039 -> 2471 bytes .../web/images/pokemon/shiny/773-poison.png | Bin 1039 -> 2468 bytes .../web/images/pokemon/shiny/773-psychic.png | Bin 1039 -> 2459 bytes .../web/images/pokemon/shiny/773-rock.png | Bin 1039 -> 2466 bytes .../web/images/pokemon/shiny/773-steel.png | Bin 1039 -> 2466 bytes .../web/images/pokemon/shiny/773-water.png | Bin 1040 -> 2467 bytes .../assets/web/images/pokemon/shiny/773.png | Bin 1040 -> 2467 bytes .../assets/web/images/pokemon/shiny/777.png | Bin 440 -> 1079 bytes .../images/pokemon/shiny/818-gigantamax.png | Bin 1104 -> 2807 bytes .../assets/web/images/pokemon/shiny/974.png | Bin 581 -> 753 bytes .../assets/web/images/pokemon/shiny/975.png | Bin 940 -> 1174 bytes .../web/images/pokemon/variant/199_1.json | 2876 ++++++++++++ .../web/images/pokemon/variant/199_1.png | Bin 0 -> 19098 bytes .../web/images/pokemon/variant/2052.json | 32 + .../web/images/pokemon/variant/2053.json | 30 + .../web/images/pokemon/variant/222.json | 26 + .../web/images/pokemon/variant/227.json | 36 + .../web/images/pokemon/variant/228.json | 40 + .../web/images/pokemon/variant/229-mega.json | 40 + .../web/images/pokemon/variant/229.json | 38 + .../web/images/pokemon/variant/231.json | 30 + .../web/images/pokemon/variant/232.json | 42 + .../web/images/pokemon/variant/330.json | 16 +- .../web/images/pokemon/variant/353.json | 34 + .../web/images/pokemon/variant/354-mega.json | 34 + .../web/images/pokemon/variant/354.json | 36 + .../web/images/pokemon/variant/357.json | 38 + .../web/images/pokemon/variant/369.json | 36 + .../assets/web/images/pokemon/variant/37.json | 34 + .../assets/web/images/pokemon/variant/38.json | 28 + .../web/images/pokemon/variant/387.json | 34 + .../web/images/pokemon/variant/388.json | 36 + .../web/images/pokemon/variant/389.json | 32 + .../assets/web/images/pokemon/variant/4.json | 34 + .../web/images/pokemon/variant/401.json | 34 + .../web/images/pokemon/variant/402.json | 42 + .../web/images/pokemon/variant/4080_1.json | 41 + .../web/images/pokemon/variant/4080_1.png | Bin 0 -> 2226 bytes .../web/images/pokemon/variant/4199_1.json | 41 + .../web/images/pokemon/variant/4199_1.png | Bin 0 -> 2052 bytes .../web/images/pokemon/variant/436.json | 22 + .../web/images/pokemon/variant/437.json | 28 + .../assets/web/images/pokemon/variant/5.json | 36 + .../web/images/pokemon/variant/531-mega.json | 32 + .../web/images/pokemon/variant/531.json | 32 + .../web/images/pokemon/variant/543.json | 18 + .../web/images/pokemon/variant/543_3.json | 4136 +++++++++++++++++ .../web/images/pokemon/variant/543_3.png | Bin 0 -> 7741 bytes .../web/images/pokemon/variant/544.json | 18 + .../web/images/pokemon/variant/544_3.json | 3044 ++++++++++++ .../web/images/pokemon/variant/544_3.png | Bin 0 -> 26334 bytes .../web/images/pokemon/variant/545.json | 32 + .../web/images/pokemon/variant/551.json | 28 + .../web/images/pokemon/variant/552.json | 34 + .../web/images/pokemon/variant/553.json | 34 + .../assets/web/images/pokemon/variant/56.json | 18 + .../web/images/pokemon/variant/56_2.json | 2540 ++++++++++ .../web/images/pokemon/variant/56_2.png | Bin 0 -> 19060 bytes .../web/images/pokemon/variant/56_3.json | 2540 ++++++++++ .../web/images/pokemon/variant/56_3.png | Bin 0 -> 19129 bytes .../web/images/pokemon/variant/57_1.json | 1196 +++++ .../web/images/pokemon/variant/57_1.png | Bin 0 -> 28080 bytes .../web/images/pokemon/variant/57_2.json | 1196 +++++ .../web/images/pokemon/variant/57_2.png | Bin 0 -> 25986 bytes .../web/images/pokemon/variant/57_3.json | 1196 +++++ .../web/images/pokemon/variant/57_3.png | Bin 0 -> 27986 bytes .../images/pokemon/variant/6-gigantamax.json | 18 + .../pokemon/variant/6-gigantamax_3.json | 41 + .../images/pokemon/variant/6-gigantamax_3.png | Bin 0 -> 2165 bytes .../web/images/pokemon/variant/6-mega-x.json | 18 + .../images/pokemon/variant/6-mega-x_3.json | 41 + .../web/images/pokemon/variant/6-mega-x_3.png | Bin 0 -> 1735 bytes .../web/images/pokemon/variant/6-mega-y.json | 17 + .../images/pokemon/variant/6-mega-y_3.json | 41 + .../web/images/pokemon/variant/6-mega-y_3.png | Bin 0 -> 1855 bytes .../web/images/pokemon/variant/6713.json | 36 + .../web/images/pokemon/variant/672.json | 18 + .../web/images/pokemon/variant/672_3.json | 41 + .../web/images/pokemon/variant/672_3.png | Bin 0 -> 4189 bytes .../web/images/pokemon/variant/673.json | 34 + .../web/images/pokemon/variant/6_2.json | 3044 ++++++++++++ .../assets/web/images/pokemon/variant/6_2.png | Bin 0 -> 53054 bytes .../web/images/pokemon/variant/6_3.json | 3044 ++++++++++++ .../assets/web/images/pokemon/variant/6_3.png | Bin 0 -> 53030 bytes .../web/images/pokemon/variant/712.json | 32 + .../web/images/pokemon/variant/713.json | 32 + .../web/images/pokemon/variant/734.json | 32 + .../web/images/pokemon/variant/735.json | 32 + .../web/images/pokemon/variant/742_2.json | 41 + .../web/images/pokemon/variant/742_2.png | Bin 0 -> 3509 bytes .../web/images/pokemon/variant/742_3.json | 41 + .../web/images/pokemon/variant/742_3.png | Bin 0 -> 3510 bytes .../web/images/pokemon/variant/743_2.json | 41 + .../web/images/pokemon/variant/743_2.png | Bin 0 -> 3971 bytes .../web/images/pokemon/variant/743_3.json | 41 + .../web/images/pokemon/variant/743_3.png | Bin 0 -> 3959 bytes .../web/images/pokemon/variant/751.json | 30 + .../web/images/pokemon/variant/752.json | 36 + .../web/images/pokemon/variant/772.json | 48 + .../web/images/pokemon/variant/773-bug_2.json | 41 + .../web/images/pokemon/variant/773-bug_2.png | Bin 0 -> 2476 bytes .../web/images/pokemon/variant/773-bug_3.json | 41 + .../web/images/pokemon/variant/773-bug_3.png | Bin 0 -> 2464 bytes .../images/pokemon/variant/773-dark_2.json | 41 + .../web/images/pokemon/variant/773-dark_2.png | Bin 0 -> 2469 bytes .../images/pokemon/variant/773-dark_3.json | 41 + .../web/images/pokemon/variant/773-dark_3.png | Bin 0 -> 2456 bytes .../images/pokemon/variant/773-dragon_2.json | 41 + .../images/pokemon/variant/773-dragon_2.png | Bin 0 -> 2471 bytes .../images/pokemon/variant/773-dragon_3.json | 41 + .../images/pokemon/variant/773-dragon_3.png | Bin 0 -> 2462 bytes .../pokemon/variant/773-electric_2.json | 41 + .../images/pokemon/variant/773-electric_2.png | Bin 0 -> 2466 bytes .../pokemon/variant/773-electric_3.json | 41 + .../images/pokemon/variant/773-electric_3.png | Bin 0 -> 2460 bytes .../images/pokemon/variant/773-fairy_2.json | 41 + .../images/pokemon/variant/773-fairy_2.png | Bin 0 -> 2474 bytes .../images/pokemon/variant/773-fairy_3.json | 41 + .../images/pokemon/variant/773-fairy_3.png | Bin 0 -> 2458 bytes .../pokemon/variant/773-fighting_2.json | 41 + .../images/pokemon/variant/773-fighting_2.png | Bin 0 -> 2471 bytes .../pokemon/variant/773-fighting_3.json | 41 + .../images/pokemon/variant/773-fighting_3.png | Bin 0 -> 2462 bytes .../images/pokemon/variant/773-fire_2.json | 41 + .../web/images/pokemon/variant/773-fire_2.png | Bin 0 -> 2470 bytes .../images/pokemon/variant/773-fire_3.json | 41 + .../web/images/pokemon/variant/773-fire_3.png | Bin 0 -> 2467 bytes .../images/pokemon/variant/773-flying_2.json | 41 + .../images/pokemon/variant/773-flying_2.png | Bin 0 -> 2466 bytes .../images/pokemon/variant/773-flying_3.json | 41 + .../images/pokemon/variant/773-flying_3.png | Bin 0 -> 2460 bytes .../images/pokemon/variant/773-ghost_2.json | 41 + .../images/pokemon/variant/773-ghost_2.png | Bin 0 -> 2464 bytes .../images/pokemon/variant/773-ghost_3.json | 41 + .../images/pokemon/variant/773-ghost_3.png | Bin 0 -> 2455 bytes .../images/pokemon/variant/773-grass_2.json | 41 + .../images/pokemon/variant/773-grass_2.png | Bin 0 -> 2469 bytes .../images/pokemon/variant/773-grass_3.json | 41 + .../images/pokemon/variant/773-grass_3.png | Bin 0 -> 2464 bytes .../images/pokemon/variant/773-ground_2.json | 41 + .../images/pokemon/variant/773-ground_2.png | Bin 0 -> 2470 bytes .../images/pokemon/variant/773-ground_3.json | 41 + .../images/pokemon/variant/773-ground_3.png | Bin 0 -> 2462 bytes .../web/images/pokemon/variant/773-ice_2.json | 41 + .../web/images/pokemon/variant/773-ice_2.png | Bin 0 -> 2470 bytes .../web/images/pokemon/variant/773-ice_3.json | 41 + .../web/images/pokemon/variant/773-ice_3.png | Bin 0 -> 2466 bytes .../images/pokemon/variant/773-poison_2.json | 41 + .../images/pokemon/variant/773-poison_2.png | Bin 0 -> 2465 bytes .../images/pokemon/variant/773-poison_3.json | 41 + .../images/pokemon/variant/773-poison_3.png | Bin 0 -> 2464 bytes .../images/pokemon/variant/773-psychic_2.json | 41 + .../images/pokemon/variant/773-psychic_2.png | Bin 0 -> 2473 bytes .../images/pokemon/variant/773-psychic_3.json | 41 + .../images/pokemon/variant/773-psychic_3.png | Bin 0 -> 2460 bytes .../images/pokemon/variant/773-rock_2.json | 41 + .../web/images/pokemon/variant/773-rock_2.png | Bin 0 -> 2473 bytes .../images/pokemon/variant/773-rock_3.json | 41 + .../web/images/pokemon/variant/773-rock_3.png | Bin 0 -> 2463 bytes .../images/pokemon/variant/773-steel_2.json | 41 + .../images/pokemon/variant/773-steel_2.png | Bin 0 -> 2475 bytes .../images/pokemon/variant/773-steel_3.json | 41 + .../images/pokemon/variant/773-steel_3.png | Bin 0 -> 2468 bytes .../images/pokemon/variant/773-water_2.json | 41 + .../images/pokemon/variant/773-water_2.png | Bin 0 -> 2470 bytes .../images/pokemon/variant/773-water_3.json | 41 + .../images/pokemon/variant/773-water_3.png | Bin 0 -> 2465 bytes .../web/images/pokemon/variant/773.json | 50 + .../web/images/pokemon/variant/776.json | 34 + .../web/images/pokemon/variant/777.json | 32 + .../web/images/pokemon/variant/779.json | 34 + .../assets/web/images/pokemon/variant/79.json | 17 + .../web/images/pokemon/variant/797.json | 30 + .../web/images/pokemon/variant/816.json | 34 + .../web/images/pokemon/variant/817.json | 34 + .../pokemon/variant/818-gigantamax.json | 56 + .../web/images/pokemon/variant/818.json | 36 + .../web/images/pokemon/variant/859_2.json | 41 + .../web/images/pokemon/variant/859_2.png | Bin 0 -> 2947 bytes .../web/images/pokemon/variant/859_3.json | 41 + .../web/images/pokemon/variant/859_3.png | Bin 0 -> 2893 bytes .../web/images/pokemon/variant/860.json | 34 + .../pokemon/variant/861-gigantamax.json | 34 + .../web/images/pokemon/variant/861.json | 34 + .../images/pokemon/variant/876-female.json | 34 + .../web/images/pokemon/variant/876.json | 34 + .../web/images/pokemon/variant/896.json | 38 + .../web/images/pokemon/variant/897.json | 28 + .../web/images/pokemon/variant/897_1.json | 41 + .../web/images/pokemon/variant/897_1.png | Bin 0 -> 2890 bytes .../web/images/pokemon/variant/898-ice.json | 65 + .../images/pokemon/variant/898-shadow.json | 71 + .../web/images/pokemon/variant/898.json | 50 + .../web/images/pokemon/variant/951.json | 32 + .../web/images/pokemon/variant/952.json | 42 + .../web/images/pokemon/variant/974.json | 36 + .../web/images/pokemon/variant/975_2.json | 41 + .../web/images/pokemon/variant/975_2.png | Bin 0 -> 2561 bytes .../web/images/pokemon/variant/975_3.json | 41 + .../web/images/pokemon/variant/975_3.png | Bin 0 -> 2568 bytes .../web/images/pokemon/variant/979_1.json | 41 + .../web/images/pokemon/variant/979_1.png | Bin 0 -> 2898 bytes .../web/images/pokemon/variant/979_2.json | 41 + .../web/images/pokemon/variant/979_2.png | Bin 0 -> 2869 bytes .../web/images/pokemon/variant/979_3.json | 41 + .../web/images/pokemon/variant/979_3.png | Bin 0 -> 2915 bytes .../web/images/pokemon/variant/993.json | 38 + .../images/pokemon/variant/_masterlist.json | 1732 ++++++- .../images/pokemon/variant/back/199_1.json | 2876 ++++++++++++ .../web/images/pokemon/variant/back/199_1.png | Bin 0 -> 17442 bytes .../web/images/pokemon/variant/back/2052.json | 28 + .../web/images/pokemon/variant/back/2053.json | 18 + .../web/images/pokemon/variant/back/222.json | 22 + .../web/images/pokemon/variant/back/227.json | 26 + .../web/images/pokemon/variant/back/228.json | 32 + .../images/pokemon/variant/back/229-mega.json | 42 + .../web/images/pokemon/variant/back/229.json | 38 + .../web/images/pokemon/variant/back/231.json | 28 + .../web/images/pokemon/variant/back/232.json | 38 + .../web/images/pokemon/variant/back/330.json | 14 +- .../web/images/pokemon/variant/back/353.json | 26 + .../images/pokemon/variant/back/354-mega.json | 32 + .../web/images/pokemon/variant/back/354.json | 26 + .../web/images/pokemon/variant/back/357.json | 32 + .../images/pokemon/variant/back/369_2.json | 2540 ++++++++++ .../web/images/pokemon/variant/back/369_2.png | Bin 0 -> 15180 bytes .../images/pokemon/variant/back/369_3.json | 2540 ++++++++++ .../web/images/pokemon/variant/back/369_3.png | Bin 0 -> 15174 bytes .../web/images/pokemon/variant/back/37.json | 28 + .../web/images/pokemon/variant/back/38.json | 20 + .../web/images/pokemon/variant/back/387.json | 18 + .../images/pokemon/variant/back/387_2.json | 1868 ++++++++ .../web/images/pokemon/variant/back/387_2.png | Bin 0 -> 10516 bytes .../web/images/pokemon/variant/back/388.json | 36 + .../web/images/pokemon/variant/back/389.json | 32 + .../web/images/pokemon/variant/back/4.json | 32 + .../web/images/pokemon/variant/back/401.json | 24 + .../web/images/pokemon/variant/back/402.json | 32 + .../images/pokemon/variant/back/4080_1.json | 41 + .../images/pokemon/variant/back/4080_1.png | Bin 0 -> 1566 bytes .../images/pokemon/variant/back/4199_1.json | 41 + .../images/pokemon/variant/back/4199_1.png | Bin 0 -> 1560 bytes .../web/images/pokemon/variant/back/436.json | 18 + .../web/images/pokemon/variant/back/437.json | 26 + .../web/images/pokemon/variant/back/5.json | 36 + .../images/pokemon/variant/back/531-mega.json | 24 + .../web/images/pokemon/variant/back/531.json | 28 + .../web/images/pokemon/variant/back/543.json | 32 + .../web/images/pokemon/variant/back/544.json | 34 + .../web/images/pokemon/variant/back/545.json | 30 + .../web/images/pokemon/variant/back/551.json | 22 + .../web/images/pokemon/variant/back/552.json | 30 + .../web/images/pokemon/variant/back/553.json | 26 + .../web/images/pokemon/variant/back/56.json | 35 + .../web/images/pokemon/variant/back/57.json | 41 + .../pokemon/variant/back/6-gigantamax.json | 18 + .../pokemon/variant/back/6-gigantamax_3.json | 41 + .../pokemon/variant/back/6-gigantamax_3.png | Bin 0 -> 1937 bytes .../images/pokemon/variant/back/6-mega-x.json | 15 + .../pokemon/variant/back/6-mega-x_3.json | 41 + .../pokemon/variant/back/6-mega-x_3.png | Bin 0 -> 1420 bytes .../images/pokemon/variant/back/6-mega-y.json | 18 + .../pokemon/variant/back/6-mega-y_3.json | 41 + .../pokemon/variant/back/6-mega-y_3.png | Bin 0 -> 1466 bytes .../web/images/pokemon/variant/back/6713.json | 34 + .../web/images/pokemon/variant/back/6_2.json | 3044 ++++++++++++ .../web/images/pokemon/variant/back/6_2.png | Bin 0 -> 46412 bytes .../web/images/pokemon/variant/back/6_3.json | 3044 ++++++++++++ .../web/images/pokemon/variant/back/6_3.png | Bin 0 -> 46421 bytes .../web/images/pokemon/variant/back/712.json | 24 + .../web/images/pokemon/variant/back/713.json | 22 + .../web/images/pokemon/variant/back/734.json | 22 + .../web/images/pokemon/variant/back/735.json | 24 + .../images/pokemon/variant/back/742_2.json | 41 + .../{icons/1/139_3.png => back/742_2.png} | Bin 3360 -> 3395 bytes .../images/pokemon/variant/back/742_3.json | 41 + .../{icons/1/141_2.png => back/742_3.png} | Bin 3281 -> 3414 bytes .../images/pokemon/variant/back/743_2.json | 41 + .../{icons/2/249_3.png => back/743_2.png} | Bin 3588 -> 3907 bytes .../images/pokemon/variant/back/743_3.json | 41 + .../web/images/pokemon/variant/back/743_3.png | Bin 0 -> 3927 bytes .../web/images/pokemon/variant/back/751.json | 32 + .../web/images/pokemon/variant/back/752.json | 34 + .../web/images/pokemon/variant/back/772.json | 44 + .../pokemon/variant/back/773-bug_2.json | 41 + .../images/pokemon/variant/back/773-bug_2.png | Bin 0 -> 2414 bytes .../pokemon/variant/back/773-bug_3.json | 41 + .../images/pokemon/variant/back/773-bug_3.png | Bin 0 -> 2403 bytes .../pokemon/variant/back/773-dark_2.json | 41 + .../pokemon/variant/back/773-dark_2.png | Bin 0 -> 2407 bytes .../pokemon/variant/back/773-dark_3.json | 41 + .../pokemon/variant/back/773-dark_3.png | Bin 0 -> 2404 bytes .../pokemon/variant/back/773-dragon_2.json | 41 + .../pokemon/variant/back/773-dragon_2.png | Bin 0 -> 2413 bytes .../pokemon/variant/back/773-dragon_3.json | 41 + .../pokemon/variant/back/773-dragon_3.png | Bin 0 -> 2401 bytes .../pokemon/variant/back/773-electric_2.json | 41 + .../pokemon/variant/back/773-electric_2.png | Bin 0 -> 2409 bytes .../pokemon/variant/back/773-electric_3.json | 41 + .../pokemon/variant/back/773-electric_3.png | Bin 0 -> 2399 bytes .../pokemon/variant/back/773-fairy_2.json | 41 + .../pokemon/variant/back/773-fairy_2.png | Bin 0 -> 2408 bytes .../pokemon/variant/back/773-fairy_3.json | 41 + .../pokemon/variant/back/773-fairy_3.png | Bin 0 -> 2398 bytes .../pokemon/variant/back/773-fighting_2.json | 41 + .../pokemon/variant/back/773-fighting_2.png | Bin 0 -> 2412 bytes .../pokemon/variant/back/773-fighting_3.json | 41 + .../pokemon/variant/back/773-fighting_3.png | Bin 0 -> 2401 bytes .../pokemon/variant/back/773-fire_2.json | 41 + .../pokemon/variant/back/773-fire_2.png | Bin 0 -> 2410 bytes .../pokemon/variant/back/773-fire_3.json | 41 + .../pokemon/variant/back/773-fire_3.png | Bin 0 -> 2403 bytes .../pokemon/variant/back/773-flying_2.json | 41 + .../pokemon/variant/back/773-flying_2.png | Bin 0 -> 2407 bytes .../pokemon/variant/back/773-flying_3.json | 41 + .../pokemon/variant/back/773-flying_3.png | Bin 0 -> 2402 bytes .../pokemon/variant/back/773-ghost_2.json | 41 + .../pokemon/variant/back/773-ghost_2.png | Bin 0 -> 2399 bytes .../pokemon/variant/back/773-ghost_3.json | 41 + .../pokemon/variant/back/773-ghost_3.png | Bin 0 -> 2389 bytes .../pokemon/variant/back/773-grass_2.json | 41 + .../pokemon/variant/back/773-grass_2.png | Bin 0 -> 2410 bytes .../pokemon/variant/back/773-grass_3.json | 41 + .../pokemon/variant/back/773-grass_3.png | Bin 0 -> 2399 bytes .../pokemon/variant/back/773-ground_2.json | 41 + .../pokemon/variant/back/773-ground_2.png | Bin 0 -> 2408 bytes .../pokemon/variant/back/773-ground_3.json | 41 + .../pokemon/variant/back/773-ground_3.png | Bin 0 -> 2407 bytes .../pokemon/variant/back/773-ice_2.json | 41 + .../images/pokemon/variant/back/773-ice_2.png | Bin 0 -> 2411 bytes .../pokemon/variant/back/773-ice_3.json | 41 + .../images/pokemon/variant/back/773-ice_3.png | Bin 0 -> 2405 bytes .../pokemon/variant/back/773-poison_2.json | 41 + .../pokemon/variant/back/773-poison_2.png | Bin 0 -> 2410 bytes .../pokemon/variant/back/773-poison_3.json | 41 + .../pokemon/variant/back/773-poison_3.png | Bin 0 -> 2405 bytes .../pokemon/variant/back/773-psychic_2.json | 41 + .../pokemon/variant/back/773-psychic_2.png | Bin 0 -> 2415 bytes .../pokemon/variant/back/773-psychic_3.json | 41 + .../pokemon/variant/back/773-psychic_3.png | Bin 0 -> 2400 bytes .../pokemon/variant/back/773-rock_2.json | 41 + .../pokemon/variant/back/773-rock_2.png | Bin 0 -> 2412 bytes .../pokemon/variant/back/773-rock_3.json | 41 + .../pokemon/variant/back/773-rock_3.png | Bin 0 -> 2402 bytes .../pokemon/variant/back/773-steel_2.json | 41 + .../pokemon/variant/back/773-steel_2.png | Bin 0 -> 2417 bytes .../pokemon/variant/back/773-steel_3.json | 41 + .../pokemon/variant/back/773-steel_3.png | Bin 0 -> 2405 bytes .../pokemon/variant/back/773-water_2.json | 41 + .../pokemon/variant/back/773-water_2.png | Bin 0 -> 2413 bytes .../pokemon/variant/back/773-water_3.json | 41 + .../pokemon/variant/back/773-water_3.png | Bin 0 -> 2398 bytes .../web/images/pokemon/variant/back/773.json | 48 + .../web/images/pokemon/variant/back/776.json | 32 + .../web/images/pokemon/variant/back/777.json | 26 + .../web/images/pokemon/variant/back/779.json | 34 + .../web/images/pokemon/variant/back/79.json | 17 + .../web/images/pokemon/variant/back/797.json | 30 + .../web/images/pokemon/variant/back/816.json | 24 + .../web/images/pokemon/variant/back/817.json | 34 + .../pokemon/variant/back/818-gigantamax.json | 56 + .../web/images/pokemon/variant/back/818.json | 34 + .../web/images/pokemon/variant/back/859.json | 22 + .../web/images/pokemon/variant/back/860.json | 28 + .../pokemon/variant/back/861-gigantamax.json | 16 + .../web/images/pokemon/variant/back/861.json | 22 + .../pokemon/variant/back/876-female.json | 28 + .../web/images/pokemon/variant/back/876.json | 28 + .../web/images/pokemon/variant/back/896.json | 41 + .../web/images/pokemon/variant/back/897.json | 41 + .../images/pokemon/variant/back/898-ice.json | 71 + .../pokemon/variant/back/898-shadow.json | 71 + .../web/images/pokemon/variant/back/898.json | 50 + .../web/images/pokemon/variant/back/951.json | 28 + .../web/images/pokemon/variant/back/952.json | 32 + .../web/images/pokemon/variant/back/974.json | 28 + .../web/images/pokemon/variant/back/975.json | 32 + .../web/images/pokemon/variant/back/979.json | 44 + .../web/images/pokemon/variant/back/993.json | 34 + .../pokemon/variant/back/female/229.json | 38 + .../pokemon/variant/back/female/232.json | 38 + .../pokemon/variant/back/female/369.json | 34 + .../pokemon/variant/back/female/401.json | 24 + .../pokemon/variant/back/female/402.json | 32 + .../web/images/pokemon/variant/exp/2052.json | 30 + .../web/images/pokemon/variant/exp/2053.json | 16 + .../images/pokemon/variant/exp/229-mega.json | 44 + .../images/pokemon/variant/exp/354-mega.json | 36 + .../images/pokemon/variant/exp/4080_1.json | 1847 ++++++++ .../web/images/pokemon/variant/exp/4080_1.png | Bin 0 -> 30411 bytes .../images/pokemon/variant/exp/4199_1.json | 1427 ++++++ .../web/images/pokemon/variant/exp/4199_1.png | Bin 0 -> 26169 bytes .../images/pokemon/variant/exp/531-mega.json | 30 + .../pokemon/variant/exp/6-mega-x_2.json | 2351 ++++++++++ .../images/pokemon/variant/exp/6-mega-x_2.png | Bin 0 -> 35696 bytes .../pokemon/variant/exp/6-mega-x_3.json | 2351 ++++++++++ .../images/pokemon/variant/exp/6-mega-x_3.png | Bin 0 -> 35720 bytes .../pokemon/variant/exp/6-mega-y_2.json | 566 +++ .../images/pokemon/variant/exp/6-mega-y_2.png | Bin 0 -> 29134 bytes .../pokemon/variant/exp/6-mega-y_3.json | 566 +++ .../images/pokemon/variant/exp/6-mega-y_3.png | Bin 0 -> 29280 bytes .../web/images/pokemon/variant/exp/6713.json | 36 + .../web/images/pokemon/variant/exp/672.json | 36 + .../web/images/pokemon/variant/exp/673.json | 36 + .../web/images/pokemon/variant/exp/712.json | 32 + .../web/images/pokemon/variant/exp/713.json | 26 + .../web/images/pokemon/variant/exp/734.json | 34 + .../web/images/pokemon/variant/exp/735.json | 32 + .../web/images/pokemon/variant/exp/742_2.json | 356 ++ .../web/images/pokemon/variant/exp/742_2.png | Bin 0 -> 7422 bytes .../web/images/pokemon/variant/exp/742_3.json | 356 ++ .../web/images/pokemon/variant/exp/742_3.png | Bin 0 -> 7442 bytes .../web/images/pokemon/variant/exp/743_2.json | 860 ++++ .../web/images/pokemon/variant/exp/743_2.png | Bin 0 -> 25943 bytes .../web/images/pokemon/variant/exp/743_3.json | 860 ++++ .../web/images/pokemon/variant/exp/743_3.png | Bin 0 -> 25874 bytes .../web/images/pokemon/variant/exp/751.json | 50 + .../web/images/pokemon/variant/exp/752.json | 38 + .../web/images/pokemon/variant/exp/772.json | 46 + .../images/pokemon/variant/exp/773-bug_2.json | 2834 +++++++++++ .../images/pokemon/variant/exp/773-bug_2.png | Bin 0 -> 19870 bytes .../images/pokemon/variant/exp/773-bug_3.json | 2834 +++++++++++ .../images/pokemon/variant/exp/773-bug_3.png | Bin 0 -> 19819 bytes .../pokemon/variant/exp/773-dark_2.json | 2834 +++++++++++ .../images/pokemon/variant/exp/773-dark_2.png | Bin 0 -> 19832 bytes .../pokemon/variant/exp/773-dark_3.json | 2834 +++++++++++ .../images/pokemon/variant/exp/773-dark_3.png | Bin 0 -> 19798 bytes .../pokemon/variant/exp/773-dragon_2.json | 2834 +++++++++++ .../pokemon/variant/exp/773-dragon_2.png | Bin 0 -> 19829 bytes .../pokemon/variant/exp/773-dragon_3.json | 2834 +++++++++++ .../pokemon/variant/exp/773-dragon_3.png | Bin 0 -> 19813 bytes .../pokemon/variant/exp/773-electric_2.json | 2834 +++++++++++ .../pokemon/variant/exp/773-electric_2.png | Bin 0 -> 19816 bytes .../pokemon/variant/exp/773-electric_3.json | 2834 +++++++++++ .../pokemon/variant/exp/773-electric_3.png | Bin 0 -> 19787 bytes .../pokemon/variant/exp/773-fairy_2.json | 2834 +++++++++++ .../pokemon/variant/exp/773-fairy_2.png | Bin 0 -> 19847 bytes .../pokemon/variant/exp/773-fairy_3.json | 2834 +++++++++++ .../pokemon/variant/exp/773-fairy_3.png | Bin 0 -> 19801 bytes .../pokemon/variant/exp/773-fighting_2.json | 2834 +++++++++++ .../pokemon/variant/exp/773-fighting_2.png | Bin 0 -> 19865 bytes .../pokemon/variant/exp/773-fighting_3.json | 2834 +++++++++++ .../pokemon/variant/exp/773-fighting_3.png | Bin 0 -> 19822 bytes .../pokemon/variant/exp/773-fire_2.json | 2834 +++++++++++ .../images/pokemon/variant/exp/773-fire_2.png | Bin 0 -> 19839 bytes .../pokemon/variant/exp/773-fire_3.json | 2834 +++++++++++ .../images/pokemon/variant/exp/773-fire_3.png | Bin 0 -> 19817 bytes .../pokemon/variant/exp/773-flying_2.json | 2834 +++++++++++ .../pokemon/variant/exp/773-flying_2.png | Bin 0 -> 19841 bytes .../pokemon/variant/exp/773-flying_3.json | 2834 +++++++++++ .../pokemon/variant/exp/773-flying_3.png | Bin 0 -> 19801 bytes .../pokemon/variant/exp/773-ghost_2.json | 2834 +++++++++++ .../pokemon/variant/exp/773-ghost_2.png | Bin 0 -> 19822 bytes .../pokemon/variant/exp/773-ghost_3.json | 2834 +++++++++++ .../pokemon/variant/exp/773-ghost_3.png | Bin 0 -> 19806 bytes .../pokemon/variant/exp/773-grass_2.json | 2834 +++++++++++ .../pokemon/variant/exp/773-grass_2.png | Bin 0 -> 19839 bytes .../pokemon/variant/exp/773-grass_3.json | 2834 +++++++++++ .../pokemon/variant/exp/773-grass_3.png | Bin 0 -> 19810 bytes .../pokemon/variant/exp/773-ground_2.json | 2834 +++++++++++ .../pokemon/variant/exp/773-ground_2.png | Bin 0 -> 19822 bytes .../pokemon/variant/exp/773-ground_3.json | 2834 +++++++++++ .../pokemon/variant/exp/773-ground_3.png | Bin 0 -> 19791 bytes .../images/pokemon/variant/exp/773-ice_2.json | 2834 +++++++++++ .../images/pokemon/variant/exp/773-ice_2.png | Bin 0 -> 19841 bytes .../images/pokemon/variant/exp/773-ice_3.json | 2834 +++++++++++ .../images/pokemon/variant/exp/773-ice_3.png | Bin 0 -> 19814 bytes .../pokemon/variant/exp/773-poison_2.json | 2834 +++++++++++ .../pokemon/variant/exp/773-poison_2.png | Bin 0 -> 19819 bytes .../pokemon/variant/exp/773-poison_3.json | 2834 +++++++++++ .../pokemon/variant/exp/773-poison_3.png | Bin 0 -> 19825 bytes .../pokemon/variant/exp/773-psychic_2.json | 2834 +++++++++++ .../pokemon/variant/exp/773-psychic_2.png | Bin 0 -> 19866 bytes .../pokemon/variant/exp/773-psychic_3.json | 2834 +++++++++++ .../pokemon/variant/exp/773-psychic_3.png | Bin 0 -> 19821 bytes .../pokemon/variant/exp/773-rock_2.json | 2834 +++++++++++ .../images/pokemon/variant/exp/773-rock_2.png | Bin 0 -> 19865 bytes .../pokemon/variant/exp/773-rock_3.json | 2834 +++++++++++ .../images/pokemon/variant/exp/773-rock_3.png | Bin 0 -> 19816 bytes .../pokemon/variant/exp/773-steel_2.json | 2834 +++++++++++ .../pokemon/variant/exp/773-steel_2.png | Bin 0 -> 19860 bytes .../pokemon/variant/exp/773-steel_3.json | 2834 +++++++++++ .../pokemon/variant/exp/773-steel_3.png | Bin 0 -> 19832 bytes .../pokemon/variant/exp/773-water_2.json | 2834 +++++++++++ .../pokemon/variant/exp/773-water_2.png | Bin 0 -> 19853 bytes .../pokemon/variant/exp/773-water_3.json | 2834 +++++++++++ .../pokemon/variant/exp/773-water_3.png | Bin 0 -> 19822 bytes .../web/images/pokemon/variant/exp/773_2.json | 2834 +++++++++++ .../web/images/pokemon/variant/exp/773_2.png | Bin 0 -> 19846 bytes .../web/images/pokemon/variant/exp/773_3.json | 2834 +++++++++++ .../web/images/pokemon/variant/exp/773_3.png | Bin 0 -> 19848 bytes .../web/images/pokemon/variant/exp/776.json | 34 + .../web/images/pokemon/variant/exp/777.json | 34 + .../web/images/pokemon/variant/exp/779.json | 34 + .../web/images/pokemon/variant/exp/797.json | 30 + .../web/images/pokemon/variant/exp/816.json | 34 + .../web/images/pokemon/variant/exp/817.json | 34 + .../web/images/pokemon/variant/exp/818.json | 53 + .../web/images/pokemon/variant/exp/859.json | 30 + .../web/images/pokemon/variant/exp/860.json | 36 + .../web/images/pokemon/variant/exp/861.json | 34 + .../pokemon/variant/exp/876-female.json | 34 + .../web/images/pokemon/variant/exp/876.json | 36 + .../web/images/pokemon/variant/exp/896.json | 38 + .../web/images/pokemon/variant/exp/897.json | 41 + .../images/pokemon/variant/exp/898-ice.json | 65 + .../pokemon/variant/exp/898-shadow.json | 71 + .../web/images/pokemon/variant/exp/898.json | 50 + .../web/images/pokemon/variant/exp/951.json | 34 + .../web/images/pokemon/variant/exp/952.json | 54 + .../web/images/pokemon/variant/exp/974.json | 36 + .../web/images/pokemon/variant/exp/975.json | 36 + .../web/images/pokemon/variant/exp/979_1.json | 692 +++ .../web/images/pokemon/variant/exp/979_1.png | Bin 0 -> 9601 bytes .../web/images/pokemon/variant/exp/979_2.json | 692 +++ .../web/images/pokemon/variant/exp/979_2.png | Bin 0 -> 9782 bytes .../web/images/pokemon/variant/exp/979_3.json | 692 +++ .../web/images/pokemon/variant/exp/979_3.png | Bin 0 -> 9887 bytes .../web/images/pokemon/variant/exp/993.json | 100 + .../images/pokemon/variant/exp/back/2052.json | 30 + .../images/pokemon/variant/exp/back/2053.json | 18 + .../pokemon/variant/exp/back/229-mega.json | 56 + .../pokemon/variant/exp/back/354-mega.json | 32 + .../pokemon/variant/exp/back/4080_1.json | 230 + .../pokemon/variant/exp/back/4080_1.png | Bin 0 -> 6696 bytes .../pokemon/variant/exp/back/4199_1.json | 230 + .../pokemon/variant/exp/back/4199_1.png | Bin 0 -> 5874 bytes .../pokemon/variant/exp/back/531-mega.json | 26 + .../pokemon/variant/exp/back/6-mega-x_2.json | 272 ++ .../pokemon/variant/exp/back/6-mega-x_2.png | Bin 0 -> 6610 bytes .../pokemon/variant/exp/back/6-mega-x_3.json | 272 ++ .../pokemon/variant/exp/back/6-mega-x_3.png | Bin 0 -> 6619 bytes .../pokemon/variant/exp/back/6-mega-y.json | 20 + .../pokemon/variant/exp/back/6-mega-y_3.json | 209 + .../pokemon/variant/exp/back/6-mega-y_3.png | Bin 0 -> 5963 bytes .../images/pokemon/variant/exp/back/6713.json | 34 + .../images/pokemon/variant/exp/back/672.json | 18 + .../pokemon/variant/exp/back/672_2.json | 965 ++++ .../images/pokemon/variant/exp/back/672_2.png | Bin 0 -> 28407 bytes .../images/pokemon/variant/exp/back/673.json | 18 + .../pokemon/variant/exp/back/673_2.json | 965 ++++ .../images/pokemon/variant/exp/back/673_2.png | Bin 0 -> 18268 bytes .../images/pokemon/variant/exp/back/712.json | 24 + .../images/pokemon/variant/exp/back/713.json | 22 + .../images/pokemon/variant/exp/back/734.json | 24 + .../images/pokemon/variant/exp/back/735.json | 26 + .../pokemon/variant/exp/back/742_2.json | 356 ++ .../images/pokemon/variant/exp/back/742_2.png | Bin 0 -> 7392 bytes .../pokemon/variant/exp/back/742_3.json | 356 ++ .../images/pokemon/variant/exp/back/742_3.png | Bin 0 -> 7423 bytes .../pokemon/variant/exp/back/743_2.json | 1532 ++++++ .../images/pokemon/variant/exp/back/743_2.png | Bin 0 -> 24147 bytes .../pokemon/variant/exp/back/743_3.json | 1532 ++++++ .../images/pokemon/variant/exp/back/743_3.png | Bin 0 -> 24280 bytes .../images/pokemon/variant/exp/back/751.json | 34 + .../images/pokemon/variant/exp/back/752.json | 42 + .../images/pokemon/variant/exp/back/772.json | 44 + .../pokemon/variant/exp/back/773-bug_2.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-bug_2.png | Bin 0 -> 19089 bytes .../pokemon/variant/exp/back/773-bug_3.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-bug_3.png | Bin 0 -> 19056 bytes .../pokemon/variant/exp/back/773-dark_2.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-dark_2.png | Bin 0 -> 19053 bytes .../pokemon/variant/exp/back/773-dark_3.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-dark_3.png | Bin 0 -> 19049 bytes .../variant/exp/back/773-dragon_2.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-dragon_2.png | Bin 0 -> 19065 bytes .../variant/exp/back/773-dragon_3.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-dragon_3.png | Bin 0 -> 19038 bytes .../variant/exp/back/773-electric_2.json | 2834 +++++++++++ .../variant/exp/back/773-electric_2.png | Bin 0 -> 19041 bytes .../variant/exp/back/773-electric_3.json | 2834 +++++++++++ .../variant/exp/back/773-electric_3.png | Bin 0 -> 19015 bytes .../pokemon/variant/exp/back/773-fairy_2.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-fairy_2.png | Bin 0 -> 19059 bytes .../pokemon/variant/exp/back/773-fairy_3.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-fairy_3.png | Bin 0 -> 19031 bytes .../variant/exp/back/773-fighting_2.json | 2834 +++++++++++ .../variant/exp/back/773-fighting_2.png | Bin 0 -> 19081 bytes .../variant/exp/back/773-fighting_3.json | 2834 +++++++++++ .../variant/exp/back/773-fighting_3.png | Bin 0 -> 19044 bytes .../pokemon/variant/exp/back/773-fire_2.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-fire_2.png | Bin 0 -> 19064 bytes .../pokemon/variant/exp/back/773-fire_3.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-fire_3.png | Bin 0 -> 19037 bytes .../variant/exp/back/773-flying_2.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-flying_2.png | Bin 0 -> 19065 bytes .../variant/exp/back/773-flying_3.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-flying_3.png | Bin 0 -> 19041 bytes .../pokemon/variant/exp/back/773-ghost_2.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-ghost_2.png | Bin 0 -> 19039 bytes .../pokemon/variant/exp/back/773-ghost_3.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-ghost_3.png | Bin 0 -> 19009 bytes .../pokemon/variant/exp/back/773-grass_2.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-grass_2.png | Bin 0 -> 19064 bytes .../pokemon/variant/exp/back/773-grass_3.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-grass_3.png | Bin 0 -> 19038 bytes .../variant/exp/back/773-ground_2.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-ground_2.png | Bin 0 -> 19056 bytes .../variant/exp/back/773-ground_3.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-ground_3.png | Bin 0 -> 19058 bytes .../pokemon/variant/exp/back/773-ice_2.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-ice_2.png | Bin 0 -> 19070 bytes .../pokemon/variant/exp/back/773-ice_3.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-ice_3.png | Bin 0 -> 19048 bytes .../variant/exp/back/773-poison_2.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-poison_2.png | Bin 0 -> 19043 bytes .../variant/exp/back/773-poison_3.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-poison_3.png | Bin 0 -> 19059 bytes .../variant/exp/back/773-psychic_2.json | 2834 +++++++++++ .../variant/exp/back/773-psychic_2.png | Bin 0 -> 19083 bytes .../variant/exp/back/773-psychic_3.json | 2834 +++++++++++ .../variant/exp/back/773-psychic_3.png | Bin 0 -> 19031 bytes .../pokemon/variant/exp/back/773-rock_2.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-rock_2.png | Bin 0 -> 19063 bytes .../pokemon/variant/exp/back/773-rock_3.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-rock_3.png | Bin 0 -> 19035 bytes .../pokemon/variant/exp/back/773-steel_2.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-steel_2.png | Bin 0 -> 19087 bytes .../pokemon/variant/exp/back/773-steel_3.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-steel_3.png | Bin 0 -> 19050 bytes .../pokemon/variant/exp/back/773-water_2.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-water_2.png | Bin 0 -> 19070 bytes .../pokemon/variant/exp/back/773-water_3.json | 2834 +++++++++++ .../pokemon/variant/exp/back/773-water_3.png | Bin 0 -> 19040 bytes .../images/pokemon/variant/exp/back/773.json | 50 + .../pokemon/variant/exp/back/776_2.json | 230 + .../images/pokemon/variant/exp/back/776_2.png | Bin 0 -> 9598 bytes .../pokemon/variant/exp/back/776_3.json | 230 + .../images/pokemon/variant/exp/back/776_3.png | Bin 0 -> 12477 bytes .../images/pokemon/variant/exp/back/777.json | 26 + .../images/pokemon/variant/exp/back/779.json | 30 + .../images/pokemon/variant/exp/back/797.json | 44 + .../images/pokemon/variant/exp/back/816.json | 24 + .../images/pokemon/variant/exp/back/817.json | 34 + .../images/pokemon/variant/exp/back/818.json | 34 + .../images/pokemon/variant/exp/back/859.json | 22 + .../images/pokemon/variant/exp/back/860.json | 30 + .../images/pokemon/variant/exp/back/861.json | 22 + .../pokemon/variant/exp/back/876-female.json | 28 + .../images/pokemon/variant/exp/back/876.json | 28 + .../images/pokemon/variant/exp/back/896.json | 44 + .../images/pokemon/variant/exp/back/897.json | 41 + .../pokemon/variant/exp/back/898-ice.json | 77 + .../pokemon/variant/exp/back/898-shadow.json | 68 + .../images/pokemon/variant/exp/back/898.json | 50 + .../images/pokemon/variant/exp/back/951.json | 28 + .../images/pokemon/variant/exp/back/952.json | 17 + .../pokemon/variant/exp/back/952_2.json | 398 ++ .../images/pokemon/variant/exp/back/952_2.png | Bin 0 -> 11529 bytes .../images/pokemon/variant/exp/back/974.json | 22 + .../images/pokemon/variant/exp/back/975.json | 18 + .../images/pokemon/variant/exp/back/979.json | 44 + .../images/pokemon/variant/exp/back/993.json | 34 + .../images/pokemon/variant/female/229.json | 38 + .../images/pokemon/variant/female/232.json | 44 + .../images/pokemon/variant/female/369.json | 36 + .../images/pokemon/variant/female/401.json | 34 + .../images/pokemon/variant/female/402_2.json | 2540 ++++++++++ .../images/pokemon/variant/female/402_2.png | Bin 0 -> 41301 bytes .../images/pokemon/variant/female/402_3.json | 2540 ++++++++++ .../images/pokemon/variant/female/402_3.png | Bin 0 -> 41864 bytes .../images/pokemon/variant/icons/1/113_1.png | Bin 624 -> 0 bytes .../images/pokemon/variant/icons/1/113_2.png | Bin 622 -> 0 bytes .../images/pokemon/variant/icons/1/113_3.png | Bin 631 -> 0 bytes .../images/pokemon/variant/icons/1/118_2.png | Bin 672 -> 0 bytes .../images/pokemon/variant/icons/1/118_3.png | Bin 671 -> 0 bytes .../images/pokemon/variant/icons/1/119_1.png | Bin 713 -> 0 bytes .../images/pokemon/variant/icons/1/119_2.png | Bin 721 -> 0 bytes .../images/pokemon/variant/icons/1/119_3.png | Bin 722 -> 0 bytes .../images/pokemon/variant/icons/1/123_1.png | Bin 532 -> 0 bytes .../images/pokemon/variant/icons/1/123_2.png | Bin 585 -> 0 bytes .../images/pokemon/variant/icons/1/123_3.png | Bin 565 -> 0 bytes .../images/pokemon/variant/icons/1/125_1.png | Bin 703 -> 0 bytes .../images/pokemon/variant/icons/1/125_2.png | Bin 709 -> 0 bytes .../images/pokemon/variant/icons/1/125_3.png | Bin 749 -> 0 bytes .../pokemon/variant/icons/1/127-mega_2.png | Bin 1125 -> 0 bytes .../pokemon/variant/icons/1/127-mega_3.png | Bin 1012 -> 0 bytes .../images/pokemon/variant/icons/1/127_2.png | Bin 662 -> 0 bytes .../images/pokemon/variant/icons/1/127_3.png | Bin 625 -> 0 bytes .../variant/icons/1/131-gigantamax_2.png | Bin 1027 -> 0 bytes .../variant/icons/1/131-gigantamax_3.png | Bin 1010 -> 0 bytes .../images/pokemon/variant/icons/1/131_2.png | Bin 697 -> 0 bytes .../images/pokemon/variant/icons/1/131_3.png | Bin 706 -> 0 bytes .../images/pokemon/variant/icons/1/133_2.png | Bin 479 -> 0 bytes .../images/pokemon/variant/icons/1/133_3.png | Bin 476 -> 0 bytes .../images/pokemon/variant/icons/1/134_2.png | Bin 724 -> 0 bytes .../images/pokemon/variant/icons/1/134_3.png | Bin 730 -> 0 bytes .../images/pokemon/variant/icons/1/135_1.png | Bin 628 -> 0 bytes .../images/pokemon/variant/icons/1/135_2.png | Bin 640 -> 0 bytes .../images/pokemon/variant/icons/1/135_3.png | Bin 615 -> 0 bytes .../images/pokemon/variant/icons/1/136_1.png | Bin 684 -> 0 bytes .../images/pokemon/variant/icons/1/136_2.png | Bin 667 -> 0 bytes .../images/pokemon/variant/icons/1/136_3.png | Bin 649 -> 0 bytes .../images/pokemon/variant/icons/1/138_2.png | Bin 520 -> 0 bytes .../images/pokemon/variant/icons/1/138_3.png | Bin 484 -> 0 bytes .../images/pokemon/variant/icons/1/139_2.png | Bin 648 -> 0 bytes .../images/pokemon/variant/icons/1/140_2.png | Bin 481 -> 0 bytes .../images/pokemon/variant/icons/1/140_3.png | Bin 471 -> 0 bytes .../pokemon/variant/icons/1/142-mega_2.png | Bin 782 -> 0 bytes .../pokemon/variant/icons/1/142-mega_3.png | Bin 780 -> 0 bytes .../images/pokemon/variant/icons/1/142_2.png | Bin 669 -> 0 bytes .../images/pokemon/variant/icons/1/142_3.png | Bin 665 -> 0 bytes .../images/pokemon/variant/icons/1/144_1.png | Bin 518 -> 0 bytes .../images/pokemon/variant/icons/1/145_1.png | Bin 541 -> 0 bytes .../images/pokemon/variant/icons/1/145_2.png | Bin 573 -> 0 bytes .../images/pokemon/variant/icons/1/145_3.png | Bin 562 -> 0 bytes .../images/pokemon/variant/icons/1/146_1.png | Bin 634 -> 0 bytes .../images/pokemon/variant/icons/1/146_2.png | Bin 620 -> 0 bytes .../images/pokemon/variant/icons/1/146_3.png | Bin 630 -> 0 bytes .../images/pokemon/variant/icons/1/147_2.png | Bin 536 -> 0 bytes .../images/pokemon/variant/icons/1/147_3.png | Bin 535 -> 0 bytes .../images/pokemon/variant/icons/1/148_2.png | Bin 604 -> 0 bytes .../images/pokemon/variant/icons/1/148_3.png | Bin 596 -> 0 bytes .../images/pokemon/variant/icons/1/149_2.png | Bin 702 -> 0 bytes .../images/pokemon/variant/icons/1/149_3.png | Bin 682 -> 0 bytes .../images/pokemon/variant/icons/1/150_2.png | Bin 644 -> 0 bytes .../images/pokemon/variant/icons/1/150_3.png | Bin 623 -> 0 bytes .../images/pokemon/variant/icons/1/151_2.png | Bin 627 -> 0 bytes .../images/pokemon/variant/icons/1/151_3.png | Bin 595 -> 0 bytes .../images/pokemon/variant/icons/1/1_2.png | Bin 606 -> 0 bytes .../images/pokemon/variant/icons/1/1_3.png | Bin 600 -> 0 bytes .../images/pokemon/variant/icons/1/29_2.png | Bin 491 -> 0 bytes .../images/pokemon/variant/icons/1/29_3.png | Bin 491 -> 0 bytes .../images/pokemon/variant/icons/1/2_2.png | Bin 707 -> 0 bytes .../images/pokemon/variant/icons/1/2_3.png | Bin 705 -> 0 bytes .../variant/icons/1/3-gigantamax_2.png | Bin 1091 -> 0 bytes .../variant/icons/1/3-gigantamax_3.png | Bin 1052 -> 0 bytes .../pokemon/variant/icons/1/3-mega_2.png | Bin 1088 -> 0 bytes .../pokemon/variant/icons/1/3-mega_3.png | Bin 1070 -> 0 bytes .../images/pokemon/variant/icons/1/30_2.png | Bin 651 -> 0 bytes .../images/pokemon/variant/icons/1/30_3.png | Bin 646 -> 0 bytes .../images/pokemon/variant/icons/1/31_1.png | Bin 771 -> 0 bytes .../images/pokemon/variant/icons/1/31_2.png | Bin 719 -> 0 bytes .../images/pokemon/variant/icons/1/31_3.png | Bin 728 -> 0 bytes .../images/pokemon/variant/icons/1/35_2.png | Bin 577 -> 0 bytes .../images/pokemon/variant/icons/1/35_3.png | Bin 3235 -> 0 bytes .../images/pokemon/variant/icons/1/36_2.png | Bin 698 -> 0 bytes .../images/pokemon/variant/icons/1/36_3.png | Bin 660 -> 0 bytes .../images/pokemon/variant/icons/1/3_2.png | Bin 944 -> 0 bytes .../images/pokemon/variant/icons/1/3_3.png | Bin 914 -> 0 bytes .../images/pokemon/variant/icons/1/41_1.png | Bin 319 -> 0 bytes .../images/pokemon/variant/icons/1/41_2.png | Bin 531 -> 0 bytes .../images/pokemon/variant/icons/1/41_3.png | Bin 545 -> 0 bytes .../images/pokemon/variant/icons/1/42_1.png | Bin 393 -> 0 bytes .../images/pokemon/variant/icons/1/42_2.png | Bin 576 -> 0 bytes .../images/pokemon/variant/icons/1/42_3.png | Bin 577 -> 0 bytes .../images/pokemon/variant/icons/1/46_1.png | Bin 717 -> 0 bytes .../images/pokemon/variant/icons/1/46_2.png | Bin 658 -> 0 bytes .../images/pokemon/variant/icons/1/46_3.png | Bin 669 -> 0 bytes .../images/pokemon/variant/icons/1/47_1.png | Bin 572 -> 0 bytes .../images/pokemon/variant/icons/1/47_2.png | Bin 576 -> 0 bytes .../images/pokemon/variant/icons/1/47_3.png | Bin 582 -> 0 bytes .../images/pokemon/variant/icons/1/50_2.png | Bin 7448 -> 0 bytes .../images/pokemon/variant/icons/1/50_3.png | Bin 7507 -> 0 bytes .../images/pokemon/variant/icons/1/51_2.png | Bin 9614 -> 0 bytes .../images/pokemon/variant/icons/1/51_3.png | Bin 9792 -> 0 bytes .../variant/icons/1/52-gigantamax_1.png | Bin 724 -> 0 bytes .../variant/icons/1/52-gigantamax_2.png | Bin 732 -> 0 bytes .../variant/icons/1/52-gigantamax_3.png | Bin 735 -> 0 bytes .../images/pokemon/variant/icons/1/52_1.png | Bin 495 -> 0 bytes .../images/pokemon/variant/icons/1/52_2.png | Bin 498 -> 0 bytes .../images/pokemon/variant/icons/1/52_3.png | Bin 503 -> 0 bytes .../images/pokemon/variant/icons/1/53_1.png | Bin 659 -> 0 bytes .../images/pokemon/variant/icons/1/53_2.png | Bin 674 -> 0 bytes .../images/pokemon/variant/icons/1/53_3.png | Bin 671 -> 0 bytes .../images/pokemon/variant/icons/1/69_2.png | Bin 479 -> 0 bytes .../images/pokemon/variant/icons/1/69_3.png | Bin 473 -> 0 bytes .../images/pokemon/variant/icons/1/70_2.png | Bin 645 -> 0 bytes .../images/pokemon/variant/icons/1/70_3.png | Bin 654 -> 0 bytes .../images/pokemon/variant/icons/1/71_2.png | Bin 787 -> 0 bytes .../images/pokemon/variant/icons/1/71_3.png | Bin 785 -> 0 bytes .../images/pokemon/variant/icons/1/7_2.png | Bin 595 -> 0 bytes .../images/pokemon/variant/icons/1/7_3.png | Bin 587 -> 0 bytes .../images/pokemon/variant/icons/1/83_2.png | Bin 930 -> 0 bytes .../images/pokemon/variant/icons/1/83_3.png | Bin 837 -> 0 bytes .../images/pokemon/variant/icons/1/86_1.png | Bin 627 -> 0 bytes .../images/pokemon/variant/icons/1/86_2.png | Bin 624 -> 0 bytes .../images/pokemon/variant/icons/1/86_3.png | Bin 666 -> 0 bytes .../images/pokemon/variant/icons/1/87_1.png | Bin 600 -> 0 bytes .../images/pokemon/variant/icons/1/87_2.png | Bin 604 -> 0 bytes .../images/pokemon/variant/icons/1/87_3.png | Bin 594 -> 0 bytes .../images/pokemon/variant/icons/1/8_2.png | Bin 824 -> 0 bytes .../images/pokemon/variant/icons/1/8_3.png | Bin 802 -> 0 bytes .../variant/icons/1/9-gigantamax_2.png | Bin 1040 -> 0 bytes .../variant/icons/1/9-gigantamax_3.png | Bin 1053 -> 0 bytes .../pokemon/variant/icons/1/9-mega_2.png | Bin 1108 -> 0 bytes .../pokemon/variant/icons/1/9-mega_3.png | Bin 1128 -> 0 bytes .../images/pokemon/variant/icons/1/92_2.png | Bin 3289 -> 0 bytes .../images/pokemon/variant/icons/1/93_1.png | Bin 569 -> 0 bytes .../images/pokemon/variant/icons/1/93_2.png | Bin 581 -> 0 bytes .../images/pokemon/variant/icons/1/93_3.png | Bin 562 -> 0 bytes .../variant/icons/1/94-gigantamax_1.png | Bin 1093 -> 0 bytes .../variant/icons/1/94-gigantamax_2.png | Bin 3754 -> 0 bytes .../variant/icons/1/94-gigantamax_3.png | Bin 3761 -> 0 bytes .../pokemon/variant/icons/1/94-mega_1.png | Bin 935 -> 0 bytes .../pokemon/variant/icons/1/94-mega_2.png | Bin 940 -> 0 bytes .../pokemon/variant/icons/1/94-mega_3.png | Bin 919 -> 0 bytes .../images/pokemon/variant/icons/1/94_1.png | Bin 666 -> 0 bytes .../images/pokemon/variant/icons/1/94_2.png | Bin 670 -> 0 bytes .../images/pokemon/variant/icons/1/94_3.png | Bin 642 -> 0 bytes .../images/pokemon/variant/icons/1/9_2.png | Bin 851 -> 0 bytes .../images/pokemon/variant/icons/1/9_3.png | Bin 889 -> 0 bytes .../images/pokemon/variant/icons/2/169_1.png | Bin 388 -> 0 bytes .../images/pokemon/variant/icons/2/169_2.png | Bin 594 -> 0 bytes .../images/pokemon/variant/icons/2/169_3.png | Bin 604 -> 0 bytes .../images/pokemon/variant/icons/2/173_2.png | Bin 455 -> 0 bytes .../images/pokemon/variant/icons/2/175_1.png | Bin 541 -> 0 bytes .../images/pokemon/variant/icons/2/175_2.png | Bin 584 -> 0 bytes .../images/pokemon/variant/icons/2/175_3.png | Bin 585 -> 0 bytes .../images/pokemon/variant/icons/2/176_1.png | Bin 519 -> 0 bytes .../images/pokemon/variant/icons/2/176_2.png | Bin 528 -> 0 bytes .../images/pokemon/variant/icons/2/176_3.png | Bin 538 -> 0 bytes .../images/pokemon/variant/icons/2/179_2.png | Bin 679 -> 0 bytes .../images/pokemon/variant/icons/2/179_3.png | Bin 696 -> 0 bytes .../images/pokemon/variant/icons/2/180_2.png | Bin 741 -> 0 bytes .../images/pokemon/variant/icons/2/180_3.png | Bin 694 -> 0 bytes .../pokemon/variant/icons/2/181-mega_2.png | Bin 846 -> 0 bytes .../pokemon/variant/icons/2/181-mega_3.png | Bin 850 -> 0 bytes .../images/pokemon/variant/icons/2/181_2.png | Bin 669 -> 0 bytes .../images/pokemon/variant/icons/2/181_3.png | Bin 656 -> 0 bytes .../images/pokemon/variant/icons/2/183_2.png | Bin 628 -> 0 bytes .../images/pokemon/variant/icons/2/183_3.png | Bin 629 -> 0 bytes .../images/pokemon/variant/icons/2/184_2.png | Bin 627 -> 0 bytes .../images/pokemon/variant/icons/2/184_3.png | Bin 669 -> 0 bytes .../images/pokemon/variant/icons/2/196_1.png | Bin 429 -> 0 bytes .../images/pokemon/variant/icons/2/196_3.png | Bin 429 -> 0 bytes .../images/pokemon/variant/icons/2/197_2.png | Bin 563 -> 0 bytes .../images/pokemon/variant/icons/2/197_3.png | Bin 589 -> 0 bytes .../images/pokemon/variant/icons/2/200_1.png | Bin 487 -> 0 bytes .../images/pokemon/variant/icons/2/200_2.png | Bin 472 -> 0 bytes .../images/pokemon/variant/icons/2/200_3.png | Bin 481 -> 0 bytes .../pokemon/variant/icons/2/212-mega_1.png | Bin 813 -> 0 bytes .../pokemon/variant/icons/2/212-mega_2.png | Bin 888 -> 0 bytes .../pokemon/variant/icons/2/212-mega_3.png | Bin 879 -> 0 bytes .../images/pokemon/variant/icons/2/212_1.png | Bin 713 -> 0 bytes .../images/pokemon/variant/icons/2/212_2.png | Bin 872 -> 0 bytes .../images/pokemon/variant/icons/2/212_3.png | Bin 837 -> 0 bytes .../images/pokemon/variant/icons/2/216_1.png | Bin 373 -> 0 bytes .../images/pokemon/variant/icons/2/216_2.png | Bin 361 -> 0 bytes .../images/pokemon/variant/icons/2/216_3.png | Bin 358 -> 0 bytes .../images/pokemon/variant/icons/2/217_1.png | Bin 387 -> 0 bytes .../images/pokemon/variant/icons/2/217_2.png | Bin 395 -> 0 bytes .../images/pokemon/variant/icons/2/217_3.png | Bin 395 -> 0 bytes .../images/pokemon/variant/icons/2/226_3.png | Bin 3291 -> 0 bytes .../images/pokemon/variant/icons/2/239_1.png | Bin 591 -> 0 bytes .../images/pokemon/variant/icons/2/239_2.png | Bin 621 -> 0 bytes .../images/pokemon/variant/icons/2/239_3.png | Bin 535 -> 0 bytes .../images/pokemon/variant/icons/2/242_1.png | Bin 3433 -> 0 bytes .../images/pokemon/variant/icons/2/242_2.png | Bin 3432 -> 0 bytes .../images/pokemon/variant/icons/2/242_3.png | Bin 3407 -> 0 bytes .../images/pokemon/variant/icons/2/243_2.png | Bin 863 -> 0 bytes .../images/pokemon/variant/icons/2/243_3.png | Bin 885 -> 0 bytes .../images/pokemon/variant/icons/2/244_2.png | Bin 3560 -> 0 bytes .../images/pokemon/variant/icons/2/244_3.png | Bin 3588 -> 0 bytes .../images/pokemon/variant/icons/2/245_2.png | Bin 1018 -> 0 bytes .../images/pokemon/variant/icons/2/245_3.png | Bin 1007 -> 0 bytes .../images/pokemon/variant/icons/2/249_2.png | Bin 3583 -> 0 bytes .../images/pokemon/variant/icons/2/250_2.png | Bin 3726 -> 0 bytes .../images/pokemon/variant/icons/2/250_3.png | Bin 3715 -> 0 bytes .../images/pokemon/variant/icons/2/251_2.png | Bin 533 -> 0 bytes .../images/pokemon/variant/icons/2/251_3.png | Bin 529 -> 0 bytes .../images/pokemon/variant/icons/3/263_2.png | Bin 526 -> 0 bytes .../images/pokemon/variant/icons/3/263_3.png | Bin 573 -> 0 bytes .../images/pokemon/variant/icons/3/264_2.png | Bin 563 -> 0 bytes .../images/pokemon/variant/icons/3/264_3.png | Bin 569 -> 0 bytes .../images/pokemon/variant/icons/3/280_2.png | Bin 334 -> 0 bytes .../images/pokemon/variant/icons/3/280_3.png | Bin 334 -> 0 bytes .../images/pokemon/variant/icons/3/281_2.png | Bin 410 -> 0 bytes .../images/pokemon/variant/icons/3/281_3.png | Bin 410 -> 0 bytes .../pokemon/variant/icons/3/282-mega_2.png | Bin 466 -> 0 bytes .../pokemon/variant/icons/3/282-mega_3.png | Bin 466 -> 0 bytes .../images/pokemon/variant/icons/3/282_2.png | Bin 445 -> 0 bytes .../images/pokemon/variant/icons/3/282_3.png | Bin 445 -> 0 bytes .../images/pokemon/variant/icons/3/285_2.png | Bin 457 -> 0 bytes .../images/pokemon/variant/icons/3/285_3.png | Bin 467 -> 0 bytes .../images/pokemon/variant/icons/3/286_2.png | Bin 758 -> 0 bytes .../images/pokemon/variant/icons/3/286_3.png | Bin 785 -> 0 bytes .../images/pokemon/variant/icons/3/290_1.png | Bin 618 -> 0 bytes .../images/pokemon/variant/icons/3/290_2.png | Bin 619 -> 0 bytes .../images/pokemon/variant/icons/3/290_3.png | Bin 616 -> 0 bytes .../images/pokemon/variant/icons/3/291_1.png | Bin 3394 -> 0 bytes .../images/pokemon/variant/icons/3/291_2.png | Bin 3375 -> 0 bytes .../images/pokemon/variant/icons/3/291_3.png | Bin 3381 -> 0 bytes .../images/pokemon/variant/icons/3/292_1.png | Bin 3287 -> 0 bytes .../images/pokemon/variant/icons/3/298_2.png | Bin 489 -> 0 bytes .../images/pokemon/variant/icons/3/298_3.png | Bin 492 -> 0 bytes .../images/pokemon/variant/icons/3/300_1.png | Bin 358 -> 0 bytes .../images/pokemon/variant/icons/3/300_2.png | Bin 358 -> 0 bytes .../images/pokemon/variant/icons/3/300_3.png | Bin 358 -> 0 bytes .../images/pokemon/variant/icons/3/301_1.png | Bin 395 -> 0 bytes .../images/pokemon/variant/icons/3/301_2.png | Bin 390 -> 0 bytes .../images/pokemon/variant/icons/3/301_3.png | Bin 395 -> 0 bytes .../pokemon/variant/icons/3/303-mega_1.png | Bin 3480 -> 0 bytes .../pokemon/variant/icons/3/303-mega_2.png | Bin 3483 -> 0 bytes .../pokemon/variant/icons/3/303-mega_3.png | Bin 3484 -> 0 bytes .../images/pokemon/variant/icons/3/303_2.png | Bin 642 -> 0 bytes .../images/pokemon/variant/icons/3/303_3.png | Bin 669 -> 0 bytes .../images/pokemon/variant/icons/3/304_1.png | Bin 463 -> 0 bytes .../images/pokemon/variant/icons/3/304_2.png | Bin 419 -> 0 bytes .../images/pokemon/variant/icons/3/304_3.png | Bin 409 -> 0 bytes .../images/pokemon/variant/icons/3/305_1.png | Bin 650 -> 0 bytes .../images/pokemon/variant/icons/3/305_2.png | Bin 653 -> 0 bytes .../images/pokemon/variant/icons/3/305_3.png | Bin 657 -> 0 bytes .../pokemon/variant/icons/3/306-mega_1.png | Bin 871 -> 0 bytes .../pokemon/variant/icons/3/306-mega_2.png | Bin 865 -> 0 bytes .../pokemon/variant/icons/3/306-mega_3.png | Bin 860 -> 0 bytes .../images/pokemon/variant/icons/3/306_1.png | Bin 785 -> 0 bytes .../images/pokemon/variant/icons/3/306_2.png | Bin 829 -> 0 bytes .../images/pokemon/variant/icons/3/306_3.png | Bin 810 -> 0 bytes .../images/pokemon/variant/icons/3/307_2.png | Bin 648 -> 0 bytes .../images/pokemon/variant/icons/3/307_3.png | Bin 644 -> 0 bytes .../pokemon/variant/icons/3/308-mega_2.png | Bin 897 -> 0 bytes .../pokemon/variant/icons/3/308-mega_3.png | Bin 956 -> 0 bytes .../images/pokemon/variant/icons/3/308_2.png | Bin 3359 -> 0 bytes .../images/pokemon/variant/icons/3/308_3.png | Bin 3357 -> 0 bytes .../images/pokemon/variant/icons/3/309_2.png | Bin 481 -> 0 bytes .../images/pokemon/variant/icons/3/309_3.png | Bin 508 -> 0 bytes .../pokemon/variant/icons/3/310-mega_2.png | Bin 751 -> 0 bytes .../pokemon/variant/icons/3/310-mega_3.png | Bin 710 -> 0 bytes .../images/pokemon/variant/icons/3/310_2.png | Bin 642 -> 0 bytes .../images/pokemon/variant/icons/3/310_3.png | Bin 625 -> 0 bytes .../images/pokemon/variant/icons/3/311_1.png | Bin 516 -> 0 bytes .../images/pokemon/variant/icons/3/311_2.png | Bin 538 -> 0 bytes .../images/pokemon/variant/icons/3/311_3.png | Bin 503 -> 0 bytes .../images/pokemon/variant/icons/3/312_2.png | Bin 508 -> 0 bytes .../images/pokemon/variant/icons/3/312_3.png | Bin 516 -> 0 bytes .../images/pokemon/variant/icons/3/328_2.png | Bin 487 -> 0 bytes .../images/pokemon/variant/icons/3/328_3.png | Bin 530 -> 0 bytes .../images/pokemon/variant/icons/3/329_2.png | Bin 582 -> 0 bytes .../images/pokemon/variant/icons/3/329_3.png | Bin 3304 -> 0 bytes .../images/pokemon/variant/icons/3/330_2.png | Bin 797 -> 0 bytes .../images/pokemon/variant/icons/3/330_3.png | Bin 751 -> 0 bytes .../images/pokemon/variant/icons/3/333_2.png | Bin 3239 -> 0 bytes .../images/pokemon/variant/icons/3/333_3.png | Bin 3245 -> 0 bytes .../pokemon/variant/icons/3/334-mega_2.png | Bin 3563 -> 0 bytes .../pokemon/variant/icons/3/334-mega_3.png | Bin 3538 -> 0 bytes .../images/pokemon/variant/icons/3/334_2.png | Bin 3391 -> 0 bytes .../images/pokemon/variant/icons/3/334_3.png | Bin 3394 -> 0 bytes .../images/pokemon/variant/icons/3/335_2.png | Bin 743 -> 0 bytes .../images/pokemon/variant/icons/3/335_3.png | Bin 733 -> 0 bytes .../images/pokemon/variant/icons/3/336_2.png | Bin 714 -> 0 bytes .../images/pokemon/variant/icons/3/336_3.png | Bin 640 -> 0 bytes .../images/pokemon/variant/icons/3/338_2.png | Bin 814 -> 0 bytes .../images/pokemon/variant/icons/3/338_3.png | Bin 874 -> 0 bytes .../images/pokemon/variant/icons/3/339_2.png | Bin 446 -> 0 bytes .../images/pokemon/variant/icons/3/339_3.png | Bin 437 -> 0 bytes .../images/pokemon/variant/icons/3/340_2.png | Bin 676 -> 0 bytes .../images/pokemon/variant/icons/3/340_3.png | Bin 690 -> 0 bytes .../pokemon/variant/icons/3/351-rainy_1.png | Bin 550 -> 0 bytes .../pokemon/variant/icons/3/351-rainy_2.png | Bin 3250 -> 0 bytes .../pokemon/variant/icons/3/351-rainy_3.png | Bin 3254 -> 0 bytes .../pokemon/variant/icons/3/351-snowy_1.png | Bin 629 -> 0 bytes .../pokemon/variant/icons/3/351-snowy_2.png | Bin 596 -> 0 bytes .../pokemon/variant/icons/3/351-snowy_3.png | Bin 579 -> 0 bytes .../pokemon/variant/icons/3/351-sunny_1.png | Bin 591 -> 0 bytes .../pokemon/variant/icons/3/351-sunny_2.png | Bin 3287 -> 0 bytes .../pokemon/variant/icons/3/351-sunny_3.png | Bin 3270 -> 0 bytes .../images/pokemon/variant/icons/3/351_2.png | Bin 3141 -> 0 bytes .../images/pokemon/variant/icons/3/351_3.png | Bin 3149 -> 0 bytes .../images/pokemon/variant/icons/3/352_1.png | Bin 577 -> 0 bytes .../images/pokemon/variant/icons/3/352_2.png | Bin 576 -> 0 bytes .../images/pokemon/variant/icons/3/352_3.png | Bin 580 -> 0 bytes .../images/pokemon/variant/icons/3/358_2.png | Bin 470 -> 0 bytes .../images/pokemon/variant/icons/3/358_3.png | Bin 469 -> 0 bytes .../images/pokemon/variant/icons/3/371_2.png | Bin 539 -> 0 bytes .../images/pokemon/variant/icons/3/371_3.png | Bin 551 -> 0 bytes .../images/pokemon/variant/icons/3/372_2.png | Bin 619 -> 0 bytes .../images/pokemon/variant/icons/3/372_3.png | Bin 630 -> 0 bytes .../pokemon/variant/icons/3/373-mega_2.png | Bin 3639 -> 0 bytes .../pokemon/variant/icons/3/373-mega_3.png | Bin 3633 -> 0 bytes .../images/pokemon/variant/icons/3/373_2.png | Bin 3579 -> 0 bytes .../images/pokemon/variant/icons/3/373_3.png | Bin 3572 -> 0 bytes .../images/pokemon/variant/icons/3/374_2.png | Bin 550 -> 0 bytes .../images/pokemon/variant/icons/3/374_3.png | Bin 546 -> 0 bytes .../images/pokemon/variant/icons/3/375_2.png | Bin 775 -> 0 bytes .../images/pokemon/variant/icons/3/375_3.png | Bin 793 -> 0 bytes .../pokemon/variant/icons/3/376-mega_2.png | Bin 855 -> 0 bytes .../pokemon/variant/icons/3/376-mega_3.png | Bin 916 -> 0 bytes .../images/pokemon/variant/icons/3/376_2.png | Bin 858 -> 0 bytes .../images/pokemon/variant/icons/3/376_3.png | Bin 888 -> 0 bytes .../pokemon/variant/icons/3/380-mega_2.png | Bin 741 -> 0 bytes .../pokemon/variant/icons/3/380-mega_3.png | Bin 743 -> 0 bytes .../images/pokemon/variant/icons/3/380_2.png | Bin 706 -> 0 bytes .../images/pokemon/variant/icons/3/380_3.png | Bin 711 -> 0 bytes .../pokemon/variant/icons/3/381-mega_2.png | Bin 748 -> 0 bytes .../pokemon/variant/icons/3/381-mega_3.png | Bin 740 -> 0 bytes .../images/pokemon/variant/icons/3/381_2.png | Bin 713 -> 0 bytes .../images/pokemon/variant/icons/3/381_3.png | Bin 709 -> 0 bytes .../pokemon/variant/icons/3/382-primal_2.png | Bin 859 -> 0 bytes .../pokemon/variant/icons/3/382-primal_3.png | Bin 867 -> 0 bytes .../images/pokemon/variant/icons/3/382_2.png | Bin 763 -> 0 bytes .../images/pokemon/variant/icons/3/382_3.png | Bin 771 -> 0 bytes .../pokemon/variant/icons/3/383-primal_2.png | Bin 1055 -> 0 bytes .../pokemon/variant/icons/3/383-primal_3.png | Bin 1053 -> 0 bytes .../images/pokemon/variant/icons/3/383_2.png | Bin 869 -> 0 bytes .../images/pokemon/variant/icons/3/383_3.png | Bin 890 -> 0 bytes .../pokemon/variant/icons/3/384-mega_2.png | Bin 3838 -> 0 bytes .../pokemon/variant/icons/3/384-mega_3.png | Bin 1130 -> 0 bytes .../images/pokemon/variant/icons/3/384_2.png | Bin 873 -> 0 bytes .../images/pokemon/variant/icons/3/384_3.png | Bin 882 -> 0 bytes .../images/pokemon/variant/icons/3/385_1.png | Bin 649 -> 0 bytes .../images/pokemon/variant/icons/3/385_2.png | Bin 635 -> 0 bytes .../images/pokemon/variant/icons/3/385_3.png | Bin 626 -> 0 bytes .../images/pokemon/variant/icons/4/399_2.png | Bin 519 -> 0 bytes .../images/pokemon/variant/icons/4/399_3.png | Bin 506 -> 0 bytes .../images/pokemon/variant/icons/4/400_2.png | Bin 642 -> 0 bytes .../images/pokemon/variant/icons/4/400_3.png | Bin 701 -> 0 bytes .../images/pokemon/variant/icons/4/425_2.png | Bin 499 -> 0 bytes .../images/pokemon/variant/icons/4/425_3.png | Bin 514 -> 0 bytes .../images/pokemon/variant/icons/4/426_2.png | Bin 708 -> 0 bytes .../images/pokemon/variant/icons/4/426_3.png | Bin 709 -> 0 bytes .../images/pokemon/variant/icons/4/427_2.png | Bin 376 -> 0 bytes .../images/pokemon/variant/icons/4/427_3.png | Bin 371 -> 0 bytes .../pokemon/variant/icons/4/428-mega_2.png | Bin 463 -> 0 bytes .../pokemon/variant/icons/4/428-mega_3.png | Bin 457 -> 0 bytes .../images/pokemon/variant/icons/4/428_2.png | Bin 414 -> 0 bytes .../images/pokemon/variant/icons/4/428_3.png | Bin 409 -> 0 bytes .../images/pokemon/variant/icons/4/429_1.png | Bin 612 -> 0 bytes .../images/pokemon/variant/icons/4/429_2.png | Bin 606 -> 0 bytes .../images/pokemon/variant/icons/4/429_3.png | Bin 595 -> 0 bytes .../images/pokemon/variant/icons/4/433_1.png | Bin 519 -> 0 bytes .../images/pokemon/variant/icons/4/433_2.png | Bin 502 -> 0 bytes .../images/pokemon/variant/icons/4/433_3.png | Bin 517 -> 0 bytes .../images/pokemon/variant/icons/4/440_1.png | Bin 476 -> 0 bytes .../images/pokemon/variant/icons/4/440_2.png | Bin 511 -> 0 bytes .../images/pokemon/variant/icons/4/440_3.png | Bin 3194 -> 0 bytes .../images/pokemon/variant/icons/4/442_2.png | Bin 617 -> 0 bytes .../images/pokemon/variant/icons/4/442_3.png | Bin 616 -> 0 bytes .../images/pokemon/variant/icons/4/443_1.png | Bin 478 -> 0 bytes .../images/pokemon/variant/icons/4/443_2.png | Bin 487 -> 0 bytes .../images/pokemon/variant/icons/4/443_3.png | Bin 524 -> 0 bytes .../images/pokemon/variant/icons/4/444_1.png | Bin 686 -> 0 bytes .../images/pokemon/variant/icons/4/444_2.png | Bin 676 -> 0 bytes .../images/pokemon/variant/icons/4/444_3.png | Bin 686 -> 0 bytes .../pokemon/variant/icons/4/445-mega_1.png | Bin 815 -> 0 bytes .../pokemon/variant/icons/4/445-mega_2.png | Bin 809 -> 0 bytes .../pokemon/variant/icons/4/445-mega_3.png | Bin 776 -> 0 bytes .../images/pokemon/variant/icons/4/445_1.png | Bin 675 -> 0 bytes .../images/pokemon/variant/icons/4/445_2.png | Bin 691 -> 0 bytes .../images/pokemon/variant/icons/4/445_3.png | Bin 678 -> 0 bytes .../images/pokemon/variant/icons/4/447_1.png | Bin 478 -> 0 bytes .../images/pokemon/variant/icons/4/447_2.png | Bin 536 -> 0 bytes .../images/pokemon/variant/icons/4/447_3.png | Bin 537 -> 0 bytes .../pokemon/variant/icons/4/448-mega_1.png | Bin 659 -> 0 bytes .../pokemon/variant/icons/4/448-mega_2.png | Bin 653 -> 0 bytes .../pokemon/variant/icons/4/448-mega_3.png | Bin 661 -> 0 bytes .../images/pokemon/variant/icons/4/448_1.png | Bin 501 -> 0 bytes .../images/pokemon/variant/icons/4/448_2.png | Bin 506 -> 0 bytes .../images/pokemon/variant/icons/4/448_3.png | Bin 498 -> 0 bytes .../images/pokemon/variant/icons/4/458_2.png | Bin 453 -> 0 bytes .../images/pokemon/variant/icons/4/458_3.png | Bin 492 -> 0 bytes .../images/pokemon/variant/icons/4/466_1.png | Bin 759 -> 0 bytes .../images/pokemon/variant/icons/4/466_2.png | Bin 789 -> 0 bytes .../images/pokemon/variant/icons/4/466_3.png | Bin 795 -> 0 bytes .../images/pokemon/variant/icons/4/468_1.png | Bin 514 -> 0 bytes .../images/pokemon/variant/icons/4/468_2.png | Bin 540 -> 0 bytes .../images/pokemon/variant/icons/4/468_3.png | Bin 558 -> 0 bytes .../images/pokemon/variant/icons/4/470_1.png | Bin 708 -> 0 bytes .../images/pokemon/variant/icons/4/470_2.png | Bin 702 -> 0 bytes .../images/pokemon/variant/icons/4/470_3.png | Bin 692 -> 0 bytes .../images/pokemon/variant/icons/4/471_1.png | Bin 676 -> 0 bytes .../images/pokemon/variant/icons/4/471_2.png | Bin 3406 -> 0 bytes .../images/pokemon/variant/icons/4/471_3.png | Bin 3434 -> 0 bytes .../pokemon/variant/icons/4/475-mega_2.png | Bin 497 -> 0 bytes .../pokemon/variant/icons/4/475-mega_3.png | Bin 503 -> 0 bytes .../images/pokemon/variant/icons/4/475_2.png | Bin 404 -> 0 bytes .../images/pokemon/variant/icons/4/475_3.png | Bin 404 -> 0 bytes .../images/pokemon/variant/icons/4/480_1.png | Bin 782 -> 0 bytes .../images/pokemon/variant/icons/4/480_2.png | Bin 788 -> 0 bytes .../images/pokemon/variant/icons/4/480_3.png | Bin 3490 -> 0 bytes .../images/pokemon/variant/icons/4/481_1.png | Bin 855 -> 0 bytes .../images/pokemon/variant/icons/4/481_2.png | Bin 878 -> 0 bytes .../images/pokemon/variant/icons/4/481_3.png | Bin 847 -> 0 bytes .../images/pokemon/variant/icons/4/482_1.png | Bin 786 -> 0 bytes .../images/pokemon/variant/icons/4/482_2.png | Bin 795 -> 0 bytes .../images/pokemon/variant/icons/4/482_3.png | Bin 795 -> 0 bytes .../images/pokemon/variant/icons/4/485_3.png | Bin 828 -> 0 bytes .../pokemon/variant/icons/4/487-altered_2.png | Bin 950 -> 0 bytes .../pokemon/variant/icons/4/487-altered_3.png | Bin 924 -> 0 bytes .../pokemon/variant/icons/4/487-origin_2.png | Bin 779 -> 0 bytes .../pokemon/variant/icons/4/487-origin_3.png | Bin 799 -> 0 bytes .../images/pokemon/variant/icons/4/488_2.png | Bin 808 -> 0 bytes .../images/pokemon/variant/icons/4/488_3.png | Bin 796 -> 0 bytes .../images/pokemon/variant/icons/4/489_1.png | Bin 532 -> 0 bytes .../images/pokemon/variant/icons/4/489_2.png | Bin 544 -> 0 bytes .../images/pokemon/variant/icons/4/489_3.png | Bin 548 -> 0 bytes .../images/pokemon/variant/icons/4/490_1.png | Bin 578 -> 0 bytes .../images/pokemon/variant/icons/4/490_2.png | Bin 581 -> 0 bytes .../images/pokemon/variant/icons/4/490_3.png | Bin 589 -> 0 bytes .../images/pokemon/variant/icons/4/491_2.png | Bin 720 -> 0 bytes .../images/pokemon/variant/icons/4/491_3.png | Bin 722 -> 0 bytes .../pokemon/variant/icons/4/492-land_2.png | Bin 601 -> 0 bytes .../pokemon/variant/icons/4/492-land_3.png | Bin 599 -> 0 bytes .../pokemon/variant/icons/4/492-sky_2.png | Bin 658 -> 0 bytes .../pokemon/variant/icons/4/492-sky_3.png | Bin 660 -> 0 bytes .../images/pokemon/variant/icons/4/494_2.png | Bin 510 -> 0 bytes .../images/pokemon/variant/icons/4/494_3.png | Bin 513 -> 0 bytes .../images/pokemon/variant/icons/5/495_2.png | Bin 367 -> 0 bytes .../images/pokemon/variant/icons/5/495_3.png | Bin 362 -> 0 bytes .../images/pokemon/variant/icons/5/496_2.png | Bin 375 -> 0 bytes .../images/pokemon/variant/icons/5/496_3.png | Bin 375 -> 0 bytes .../images/pokemon/variant/icons/5/497_2.png | Bin 438 -> 0 bytes .../images/pokemon/variant/icons/5/497_3.png | Bin 438 -> 0 bytes .../images/pokemon/variant/icons/5/532_2.png | Bin 623 -> 0 bytes .../images/pokemon/variant/icons/5/532_3.png | Bin 618 -> 0 bytes .../images/pokemon/variant/icons/5/533_2.png | Bin 680 -> 0 bytes .../images/pokemon/variant/icons/5/533_3.png | Bin 655 -> 0 bytes .../images/pokemon/variant/icons/5/534_2.png | Bin 820 -> 0 bytes .../images/pokemon/variant/icons/5/534_3.png | Bin 805 -> 0 bytes .../images/pokemon/variant/icons/5/538_2.png | Bin 714 -> 0 bytes .../images/pokemon/variant/icons/5/538_3.png | Bin 674 -> 0 bytes .../images/pokemon/variant/icons/5/540_2.png | Bin 510 -> 0 bytes .../images/pokemon/variant/icons/5/540_3.png | Bin 520 -> 0 bytes .../images/pokemon/variant/icons/5/541_2.png | Bin 454 -> 0 bytes .../images/pokemon/variant/icons/5/541_3.png | Bin 513 -> 0 bytes .../images/pokemon/variant/icons/5/542_2.png | Bin 530 -> 0 bytes .../images/pokemon/variant/icons/5/542_3.png | Bin 549 -> 0 bytes .../images/pokemon/variant/icons/5/546_2.png | Bin 473 -> 0 bytes .../images/pokemon/variant/icons/5/546_3.png | Bin 468 -> 0 bytes .../images/pokemon/variant/icons/5/547_2.png | Bin 717 -> 0 bytes .../images/pokemon/variant/icons/5/547_3.png | Bin 711 -> 0 bytes .../images/pokemon/variant/icons/5/548_1.png | Bin 417 -> 0 bytes .../images/pokemon/variant/icons/5/548_2.png | Bin 410 -> 0 bytes .../images/pokemon/variant/icons/5/548_3.png | Bin 416 -> 0 bytes .../images/pokemon/variant/icons/5/549_2.png | Bin 760 -> 0 bytes .../images/pokemon/variant/icons/5/549_3.png | Bin 3467 -> 0 bytes .../images/pokemon/variant/icons/5/559_1.png | Bin 471 -> 0 bytes .../images/pokemon/variant/icons/5/559_2.png | Bin 405 -> 0 bytes .../images/pokemon/variant/icons/5/559_3.png | Bin 445 -> 0 bytes .../images/pokemon/variant/icons/5/560_1.png | Bin 682 -> 0 bytes .../images/pokemon/variant/icons/5/560_2.png | Bin 680 -> 0 bytes .../images/pokemon/variant/icons/5/560_3.png | Bin 667 -> 0 bytes .../images/pokemon/variant/icons/5/562_2.png | Bin 373 -> 0 bytes .../images/pokemon/variant/icons/5/562_3.png | Bin 377 -> 0 bytes .../images/pokemon/variant/icons/5/563_2.png | Bin 3611 -> 0 bytes .../images/pokemon/variant/icons/5/563_3.png | Bin 3599 -> 0 bytes .../images/pokemon/variant/icons/5/570_2.png | Bin 438 -> 0 bytes .../images/pokemon/variant/icons/5/570_3.png | Bin 441 -> 0 bytes .../images/pokemon/variant/icons/5/571_2.png | Bin 702 -> 0 bytes .../images/pokemon/variant/icons/5/571_3.png | Bin 690 -> 0 bytes .../images/pokemon/variant/icons/5/572_2.png | Bin 625 -> 0 bytes .../images/pokemon/variant/icons/5/572_3.png | Bin 580 -> 0 bytes .../images/pokemon/variant/icons/5/577_1.png | Bin 392 -> 0 bytes .../images/pokemon/variant/icons/5/577_2.png | Bin 403 -> 0 bytes .../images/pokemon/variant/icons/5/577_3.png | Bin 343 -> 0 bytes .../images/pokemon/variant/icons/5/578_1.png | Bin 505 -> 0 bytes .../images/pokemon/variant/icons/5/578_2.png | Bin 496 -> 0 bytes .../images/pokemon/variant/icons/5/578_3.png | Bin 373 -> 0 bytes .../images/pokemon/variant/icons/5/579_1.png | Bin 725 -> 0 bytes .../images/pokemon/variant/icons/5/579_2.png | Bin 742 -> 0 bytes .../images/pokemon/variant/icons/5/579_3.png | Bin 477 -> 0 bytes .../pokemon/variant/icons/5/585-autumn_1.png | Bin 655 -> 0 bytes .../pokemon/variant/icons/5/585-spring_1.png | Bin 650 -> 0 bytes .../pokemon/variant/icons/5/585-summer_1.png | Bin 639 -> 0 bytes .../pokemon/variant/icons/5/585-winter_1.png | Bin 653 -> 0 bytes .../pokemon/variant/icons/5/586-autumn_1.png | Bin 829 -> 0 bytes .../pokemon/variant/icons/5/586-spring_1.png | Bin 733 -> 0 bytes .../pokemon/variant/icons/5/586-summer_1.png | Bin 708 -> 0 bytes .../pokemon/variant/icons/5/586-winter_1.png | Bin 722 -> 0 bytes .../images/pokemon/variant/icons/5/595_2.png | Bin 556 -> 0 bytes .../images/pokemon/variant/icons/5/595_3.png | Bin 565 -> 0 bytes .../images/pokemon/variant/icons/5/596_2.png | Bin 892 -> 0 bytes .../images/pokemon/variant/icons/5/596_3.png | Bin 866 -> 0 bytes .../images/pokemon/variant/icons/5/607_2.png | Bin 492 -> 0 bytes .../images/pokemon/variant/icons/5/607_3.png | Bin 478 -> 0 bytes .../images/pokemon/variant/icons/5/608_2.png | Bin 522 -> 0 bytes .../images/pokemon/variant/icons/5/608_3.png | Bin 506 -> 0 bytes .../images/pokemon/variant/icons/5/609_2.png | Bin 735 -> 0 bytes .../images/pokemon/variant/icons/5/609_3.png | Bin 735 -> 0 bytes .../images/pokemon/variant/icons/5/610_2.png | Bin 548 -> 0 bytes .../images/pokemon/variant/icons/5/610_3.png | Bin 563 -> 0 bytes .../images/pokemon/variant/icons/5/611_2.png | Bin 671 -> 0 bytes .../images/pokemon/variant/icons/5/611_3.png | Bin 667 -> 0 bytes .../images/pokemon/variant/icons/5/612_2.png | Bin 808 -> 0 bytes .../images/pokemon/variant/icons/5/612_3.png | Bin 771 -> 0 bytes .../images/pokemon/variant/icons/5/622_2.png | Bin 541 -> 0 bytes .../images/pokemon/variant/icons/5/622_3.png | Bin 550 -> 0 bytes .../images/pokemon/variant/icons/5/623_2.png | Bin 851 -> 0 bytes .../images/pokemon/variant/icons/5/623_3.png | Bin 868 -> 0 bytes .../images/pokemon/variant/icons/5/632_2.png | Bin 352 -> 0 bytes .../images/pokemon/variant/icons/5/632_3.png | Bin 352 -> 0 bytes .../images/pokemon/variant/icons/5/633_2.png | Bin 275 -> 0 bytes .../images/pokemon/variant/icons/5/633_3.png | Bin 275 -> 0 bytes .../images/pokemon/variant/icons/5/634_2.png | Bin 347 -> 0 bytes .../images/pokemon/variant/icons/5/634_3.png | Bin 347 -> 0 bytes .../images/pokemon/variant/icons/5/635_2.png | Bin 395 -> 0 bytes .../images/pokemon/variant/icons/5/635_3.png | Bin 395 -> 0 bytes .../images/pokemon/variant/icons/5/636_2.png | Bin 692 -> 0 bytes .../images/pokemon/variant/icons/5/636_3.png | Bin 693 -> 0 bytes .../images/pokemon/variant/icons/5/637_2.png | Bin 894 -> 0 bytes .../images/pokemon/variant/icons/5/637_3.png | Bin 867 -> 0 bytes .../variant/icons/5/641-incarnate_1.png | Bin 889 -> 0 bytes .../pokemon/variant/icons/5/641-therian_1.png | Bin 803 -> 0 bytes .../variant/icons/5/642-incarnate_1.png | Bin 855 -> 0 bytes .../pokemon/variant/icons/5/642-therian_1.png | Bin 848 -> 0 bytes .../variant/icons/5/645-incarnate_1.png | Bin 905 -> 0 bytes .../pokemon/variant/icons/5/645-therian_1.png | Bin 874 -> 0 bytes .../pokemon/variant/icons/5/648-aria_2.png | Bin 602 -> 0 bytes .../pokemon/variant/icons/5/648-aria_3.png | Bin 608 -> 0 bytes .../variant/icons/5/648-pirouette_2.png | Bin 676 -> 0 bytes .../variant/icons/5/648-pirouette_3.png | Bin 664 -> 0 bytes .../images/pokemon/variant/icons/6/653_2.png | Bin 585 -> 0 bytes .../images/pokemon/variant/icons/6/653_3.png | Bin 586 -> 0 bytes .../images/pokemon/variant/icons/6/654_2.png | Bin 699 -> 0 bytes .../images/pokemon/variant/icons/6/654_3.png | Bin 697 -> 0 bytes .../images/pokemon/variant/icons/6/655_2.png | Bin 785 -> 0 bytes .../images/pokemon/variant/icons/6/655_3.png | Bin 789 -> 0 bytes .../images/pokemon/variant/icons/6/664_2.png | Bin 905 -> 0 bytes .../images/pokemon/variant/icons/6/664_3.png | Bin 941 -> 0 bytes .../images/pokemon/variant/icons/6/665_2.png | Bin 945 -> 0 bytes .../images/pokemon/variant/icons/6/665_3.png | Bin 971 -> 0 bytes .../variant/icons/6/666-archipelago_2.png | Bin 1273 -> 0 bytes .../variant/icons/6/666-archipelago_3.png | Bin 1260 -> 0 bytes .../variant/icons/6/666-continental_2.png | Bin 1271 -> 0 bytes .../variant/icons/6/666-continental_3.png | Bin 1276 -> 0 bytes .../pokemon/variant/icons/6/666-elegant_2.png | Bin 1313 -> 0 bytes .../pokemon/variant/icons/6/666-elegant_3.png | Bin 1257 -> 0 bytes .../pokemon/variant/icons/6/666-fancy_2.png | Bin 1275 -> 0 bytes .../pokemon/variant/icons/6/666-fancy_3.png | Bin 1266 -> 0 bytes .../pokemon/variant/icons/6/666-garden_2.png | Bin 1263 -> 0 bytes .../pokemon/variant/icons/6/666-garden_3.png | Bin 1273 -> 0 bytes .../variant/icons/6/666-high-plains_2.png | Bin 1275 -> 0 bytes .../variant/icons/6/666-high-plains_3.png | Bin 1225 -> 0 bytes .../variant/icons/6/666-icy-snow_2.png | Bin 1179 -> 0 bytes .../variant/icons/6/666-icy-snow_3.png | Bin 1179 -> 0 bytes .../pokemon/variant/icons/6/666-jungle_2.png | Bin 1226 -> 0 bytes .../pokemon/variant/icons/6/666-jungle_3.png | Bin 1202 -> 0 bytes .../pokemon/variant/icons/6/666-marine_2.png | Bin 1272 -> 0 bytes .../pokemon/variant/icons/6/666-marine_3.png | Bin 1231 -> 0 bytes .../pokemon/variant/icons/6/666-meadow_2.png | Bin 1273 -> 0 bytes .../pokemon/variant/icons/6/666-meadow_3.png | Bin 1226 -> 0 bytes .../pokemon/variant/icons/6/666-modern_2.png | Bin 1309 -> 0 bytes .../pokemon/variant/icons/6/666-modern_3.png | Bin 1255 -> 0 bytes .../pokemon/variant/icons/6/666-monsoon_2.png | Bin 1246 -> 0 bytes .../pokemon/variant/icons/6/666-monsoon_3.png | Bin 1203 -> 0 bytes .../pokemon/variant/icons/6/666-ocean_2.png | Bin 1318 -> 0 bytes .../pokemon/variant/icons/6/666-ocean_3.png | Bin 1262 -> 0 bytes .../variant/icons/6/666-poke-ball_2.png | Bin 1245 -> 0 bytes .../variant/icons/6/666-poke-ball_3.png | Bin 1197 -> 0 bytes .../pokemon/variant/icons/6/666-polar_2.png | Bin 1224 -> 0 bytes .../pokemon/variant/icons/6/666-polar_3.png | Bin 1226 -> 0 bytes .../pokemon/variant/icons/6/666-river_2.png | Bin 1263 -> 0 bytes .../pokemon/variant/icons/6/666-river_3.png | Bin 1217 -> 0 bytes .../variant/icons/6/666-sandstorm_2.png | Bin 1271 -> 0 bytes .../variant/icons/6/666-sandstorm_3.png | Bin 1215 -> 0 bytes .../pokemon/variant/icons/6/666-savanna_2.png | Bin 1269 -> 0 bytes .../pokemon/variant/icons/6/666-savanna_3.png | Bin 1225 -> 0 bytes .../pokemon/variant/icons/6/666-sun_2.png | Bin 1266 -> 0 bytes .../pokemon/variant/icons/6/666-sun_3.png | Bin 1210 -> 0 bytes .../pokemon/variant/icons/6/666-tundra_2.png | Bin 1218 -> 0 bytes .../pokemon/variant/icons/6/666-tundra_3.png | Bin 1217 -> 0 bytes .../images/pokemon/variant/icons/6/690_2.png | Bin 611 -> 0 bytes .../images/pokemon/variant/icons/6/690_3.png | Bin 594 -> 0 bytes .../images/pokemon/variant/icons/6/691_2.png | Bin 742 -> 0 bytes .../images/pokemon/variant/icons/6/691_3.png | Bin 752 -> 0 bytes .../images/pokemon/variant/icons/6/696_2.png | Bin 570 -> 0 bytes .../images/pokemon/variant/icons/6/696_3.png | Bin 598 -> 0 bytes .../images/pokemon/variant/icons/6/697_2.png | Bin 976 -> 0 bytes .../images/pokemon/variant/icons/6/697_3.png | Bin 994 -> 0 bytes .../images/pokemon/variant/icons/6/700_2.png | Bin 675 -> 0 bytes .../images/pokemon/variant/icons/6/700_3.png | Bin 679 -> 0 bytes .../images/pokemon/variant/icons/6/704_2.png | Bin 358 -> 0 bytes .../images/pokemon/variant/icons/6/704_3.png | Bin 350 -> 0 bytes .../images/pokemon/variant/icons/6/705_2.png | Bin 492 -> 0 bytes .../images/pokemon/variant/icons/6/705_3.png | Bin 510 -> 0 bytes .../images/pokemon/variant/icons/6/706_2.png | Bin 765 -> 0 bytes .../images/pokemon/variant/icons/6/706_3.png | Bin 742 -> 0 bytes .../images/pokemon/variant/icons/6/708_2.png | Bin 576 -> 0 bytes .../images/pokemon/variant/icons/6/708_3.png | Bin 569 -> 0 bytes .../images/pokemon/variant/icons/6/709_2.png | Bin 491 -> 0 bytes .../images/pokemon/variant/icons/6/709_3.png | Bin 674 -> 0 bytes .../images/pokemon/variant/icons/6/710_2.png | Bin 442 -> 0 bytes .../images/pokemon/variant/icons/6/710_3.png | Bin 439 -> 0 bytes .../images/pokemon/variant/icons/6/711_1.png | Bin 567 -> 0 bytes .../images/pokemon/variant/icons/6/711_2.png | Bin 591 -> 0 bytes .../images/pokemon/variant/icons/6/711_3.png | Bin 574 -> 0 bytes .../pokemon/variant/icons/6/716-active_2.png | Bin 3671 -> 0 bytes .../pokemon/variant/icons/6/716-active_3.png | Bin 3670 -> 0 bytes .../pokemon/variant/icons/6/716-neutral_2.png | Bin 3659 -> 0 bytes .../pokemon/variant/icons/6/716-neutral_3.png | Bin 3654 -> 0 bytes .../images/pokemon/variant/icons/6/717_2.png | Bin 717 -> 0 bytes .../images/pokemon/variant/icons/6/717_3.png | Bin 732 -> 0 bytes .../pokemon/variant/icons/6/720-unbound_1.png | Bin 1077 -> 0 bytes .../pokemon/variant/icons/6/720-unbound_2.png | Bin 1054 -> 0 bytes .../pokemon/variant/icons/6/720-unbound_3.png | Bin 1068 -> 0 bytes .../images/pokemon/variant/icons/6/720_1.png | Bin 738 -> 0 bytes .../images/pokemon/variant/icons/6/720_2.png | Bin 761 -> 0 bytes .../images/pokemon/variant/icons/6/720_3.png | Bin 729 -> 0 bytes .../images/pokemon/variant/icons/7/728_2.png | Bin 1018 -> 0 bytes .../images/pokemon/variant/icons/7/728_3.png | Bin 1040 -> 0 bytes .../images/pokemon/variant/icons/7/729_2.png | Bin 1136 -> 0 bytes .../images/pokemon/variant/icons/7/729_3.png | Bin 1155 -> 0 bytes .../images/pokemon/variant/icons/7/730_2.png | Bin 1461 -> 0 bytes .../images/pokemon/variant/icons/7/730_3.png | Bin 1406 -> 0 bytes .../images/pokemon/variant/icons/7/747_2.png | Bin 636 -> 0 bytes .../images/pokemon/variant/icons/7/747_3.png | Bin 656 -> 0 bytes .../images/pokemon/variant/icons/7/748_2.png | Bin 738 -> 0 bytes .../images/pokemon/variant/icons/7/748_3.png | Bin 749 -> 0 bytes .../images/pokemon/variant/icons/7/753_2.png | Bin 554 -> 0 bytes .../images/pokemon/variant/icons/7/753_3.png | Bin 559 -> 0 bytes .../images/pokemon/variant/icons/7/754_2.png | Bin 682 -> 0 bytes .../images/pokemon/variant/icons/7/754_3.png | Bin 665 -> 0 bytes .../images/pokemon/variant/icons/7/755_2.png | Bin 540 -> 0 bytes .../images/pokemon/variant/icons/7/755_3.png | Bin 524 -> 0 bytes .../images/pokemon/variant/icons/7/756_2.png | Bin 612 -> 0 bytes .../images/pokemon/variant/icons/7/756_3.png | Bin 622 -> 0 bytes .../images/pokemon/variant/icons/7/761_2.png | Bin 257 -> 0 bytes .../images/pokemon/variant/icons/7/761_3.png | Bin 257 -> 0 bytes .../images/pokemon/variant/icons/7/762_2.png | Bin 291 -> 0 bytes .../images/pokemon/variant/icons/7/762_3.png | Bin 291 -> 0 bytes .../images/pokemon/variant/icons/7/763_2.png | Bin 322 -> 0 bytes .../images/pokemon/variant/icons/7/763_3.png | Bin 322 -> 0 bytes .../images/pokemon/variant/icons/7/767_2.png | Bin 547 -> 0 bytes .../images/pokemon/variant/icons/7/767_3.png | Bin 557 -> 0 bytes .../images/pokemon/variant/icons/7/768_2.png | Bin 718 -> 0 bytes .../images/pokemon/variant/icons/7/768_3.png | Bin 754 -> 0 bytes .../images/pokemon/variant/icons/7/789_1.png | Bin 248 -> 0 bytes .../images/pokemon/variant/icons/7/789_2.png | Bin 545 -> 0 bytes .../images/pokemon/variant/icons/7/789_3.png | Bin 571 -> 0 bytes .../images/pokemon/variant/icons/7/790_2.png | Bin 520 -> 0 bytes .../images/pokemon/variant/icons/7/790_3.png | Bin 535 -> 0 bytes .../images/pokemon/variant/icons/7/791_1.png | Bin 352 -> 0 bytes .../images/pokemon/variant/icons/7/791_2.png | Bin 966 -> 0 bytes .../images/pokemon/variant/icons/7/791_3.png | Bin 986 -> 0 bytes .../images/pokemon/variant/icons/7/792_2.png | Bin 824 -> 0 bytes .../images/pokemon/variant/icons/7/792_3.png | Bin 837 -> 0 bytes .../images/pokemon/variant/icons/7/793_2.png | Bin 3447 -> 0 bytes .../images/pokemon/variant/icons/7/793_3.png | Bin 3451 -> 0 bytes .../variant/icons/7/800-dawn-wings_2.png | Bin 1216 -> 0 bytes .../variant/icons/7/800-dawn-wings_3.png | Bin 1196 -> 0 bytes .../variant/icons/7/800-dusk-mane_2.png | Bin 1127 -> 0 bytes .../variant/icons/7/800-dusk-mane_3.png | Bin 1148 -> 0 bytes .../pokemon/variant/icons/7/800-ultra_2.png | Bin 843 -> 0 bytes .../pokemon/variant/icons/7/800-ultra_3.png | Bin 859 -> 0 bytes .../images/pokemon/variant/icons/7/800_2.png | Bin 618 -> 0 bytes .../images/pokemon/variant/icons/7/800_3.png | Bin 662 -> 0 bytes .../images/pokemon/variant/icons/7/802_1.png | Bin 565 -> 0 bytes .../images/pokemon/variant/icons/7/802_2.png | Bin 580 -> 0 bytes .../images/pokemon/variant/icons/7/802_3.png | Bin 582 -> 0 bytes .../images/pokemon/variant/icons/7/808_2.png | Bin 8893 -> 0 bytes .../images/pokemon/variant/icons/7/808_3.png | Bin 8620 -> 0 bytes .../variant/icons/7/809-gigantamax_2.png | Bin 12454 -> 0 bytes .../variant/icons/7/809-gigantamax_3.png | Bin 13683 -> 0 bytes .../images/pokemon/variant/icons/7/809_2.png | Bin 15699 -> 0 bytes .../images/pokemon/variant/icons/7/809_3.png | Bin 15804 -> 0 bytes .../images/pokemon/variant/icons/8/4052_2.png | Bin 640 -> 0 bytes .../images/pokemon/variant/icons/8/4052_3.png | Bin 682 -> 0 bytes .../images/pokemon/variant/icons/8/4263_2.png | Bin 546 -> 0 bytes .../images/pokemon/variant/icons/8/4263_3.png | Bin 573 -> 0 bytes .../images/pokemon/variant/icons/8/4264_2.png | Bin 584 -> 0 bytes .../images/pokemon/variant/icons/8/4264_3.png | Bin 575 -> 0 bytes .../images/pokemon/variant/icons/8/6215_2.png | Bin 690 -> 0 bytes .../images/pokemon/variant/icons/8/6215_3.png | Bin 688 -> 0 bytes .../images/pokemon/variant/icons/8/6549_2.png | Bin 662 -> 0 bytes .../images/pokemon/variant/icons/8/6549_3.png | Bin 684 -> 0 bytes .../images/pokemon/variant/icons/8/6570_2.png | Bin 645 -> 0 bytes .../images/pokemon/variant/icons/8/6570_3.png | Bin 658 -> 0 bytes .../images/pokemon/variant/icons/8/6571_2.png | Bin 748 -> 0 bytes .../images/pokemon/variant/icons/8/6571_3.png | Bin 733 -> 0 bytes .../images/pokemon/variant/icons/8/6705_2.png | Bin 3285 -> 0 bytes .../images/pokemon/variant/icons/8/6706_2.png | Bin 3660 -> 0 bytes .../images/pokemon/variant/icons/8/6706_3.png | Bin 3663 -> 0 bytes .../images/pokemon/variant/icons/8/821_2.png | Bin 484 -> 0 bytes .../images/pokemon/variant/icons/8/821_3.png | Bin 476 -> 0 bytes .../images/pokemon/variant/icons/8/822_2.png | Bin 595 -> 0 bytes .../images/pokemon/variant/icons/8/822_3.png | Bin 604 -> 0 bytes .../variant/icons/8/823-gigantamax_2.png | Bin 831 -> 0 bytes .../variant/icons/8/823-gigantamax_3.png | Bin 829 -> 0 bytes .../images/pokemon/variant/icons/8/823_2.png | Bin 815 -> 0 bytes .../images/pokemon/variant/icons/8/823_3.png | Bin 798 -> 0 bytes .../images/pokemon/variant/icons/8/829_2.png | Bin 567 -> 0 bytes .../images/pokemon/variant/icons/8/829_3.png | Bin 576 -> 0 bytes .../images/pokemon/variant/icons/8/830_2.png | Bin 700 -> 0 bytes .../images/pokemon/variant/icons/8/830_3.png | Bin 705 -> 0 bytes .../images/pokemon/variant/icons/8/835_2.png | Bin 664 -> 0 bytes .../images/pokemon/variant/icons/8/835_3.png | Bin 728 -> 0 bytes .../images/pokemon/variant/icons/8/836_2.png | Bin 577 -> 0 bytes .../images/pokemon/variant/icons/8/836_3.png | Bin 639 -> 0 bytes .../variant/icons/8/851-gigantamax_2.png | Bin 831 -> 0 bytes .../variant/icons/8/851-gigantamax_3.png | Bin 896 -> 0 bytes .../images/pokemon/variant/icons/8/856_2.png | Bin 482 -> 0 bytes .../images/pokemon/variant/icons/8/856_3.png | Bin 482 -> 0 bytes .../images/pokemon/variant/icons/8/857_2.png | Bin 3358 -> 0 bytes .../images/pokemon/variant/icons/8/857_3.png | Bin 3360 -> 0 bytes .../variant/icons/8/858-gigantamax_2.png | Bin 866 -> 0 bytes .../variant/icons/8/858-gigantamax_3.png | Bin 865 -> 0 bytes .../images/pokemon/variant/icons/8/858_2.png | Bin 685 -> 0 bytes .../images/pokemon/variant/icons/8/858_3.png | Bin 701 -> 0 bytes .../images/pokemon/variant/icons/8/862_2.png | Bin 819 -> 0 bytes .../images/pokemon/variant/icons/8/862_3.png | Bin 842 -> 0 bytes .../images/pokemon/variant/icons/8/863_2.png | Bin 825 -> 0 bytes .../images/pokemon/variant/icons/8/863_3.png | Bin 807 -> 0 bytes .../images/pokemon/variant/icons/8/872_1.png | Bin 383 -> 0 bytes .../images/pokemon/variant/icons/8/872_2.png | Bin 381 -> 0 bytes .../images/pokemon/variant/icons/8/872_3.png | Bin 381 -> 0 bytes .../images/pokemon/variant/icons/8/873_1.png | Bin 695 -> 0 bytes .../images/pokemon/variant/icons/8/873_2.png | Bin 664 -> 0 bytes .../images/pokemon/variant/icons/8/873_3.png | Bin 688 -> 0 bytes .../pokemon/variant/icons/8/877-hangry_1.png | Bin 528 -> 0 bytes .../pokemon/variant/icons/8/877-hangry_2.png | Bin 514 -> 0 bytes .../pokemon/variant/icons/8/877-hangry_3.png | Bin 526 -> 0 bytes .../images/pokemon/variant/icons/8/877_1.png | Bin 505 -> 0 bytes .../images/pokemon/variant/icons/8/877_2.png | Bin 575 -> 0 bytes .../images/pokemon/variant/icons/8/877_3.png | Bin 568 -> 0 bytes .../images/pokemon/variant/icons/8/885_1.png | Bin 543 -> 0 bytes .../images/pokemon/variant/icons/8/885_2.png | Bin 574 -> 0 bytes .../images/pokemon/variant/icons/8/885_3.png | Bin 579 -> 0 bytes .../images/pokemon/variant/icons/8/886_1.png | Bin 760 -> 0 bytes .../images/pokemon/variant/icons/8/886_2.png | Bin 738 -> 0 bytes .../images/pokemon/variant/icons/8/886_3.png | Bin 723 -> 0 bytes .../images/pokemon/variant/icons/8/887_1.png | Bin 3568 -> 0 bytes .../images/pokemon/variant/icons/8/887_2.png | Bin 858 -> 0 bytes .../images/pokemon/variant/icons/8/887_3.png | Bin 881 -> 0 bytes .../variant/icons/8/890-eternamax_2.png | Bin 921 -> 0 bytes .../variant/icons/8/890-eternamax_3.png | Bin 863 -> 0 bytes .../images/pokemon/variant/icons/8/890_2.png | Bin 902 -> 0 bytes .../images/pokemon/variant/icons/8/890_3.png | Bin 948 -> 0 bytes .../images/pokemon/variant/icons/8/900_2.png | Bin 907 -> 0 bytes .../images/pokemon/variant/icons/8/900_3.png | Bin 854 -> 0 bytes .../images/pokemon/variant/icons/8/901_1.png | Bin 1017 -> 0 bytes .../images/pokemon/variant/icons/8/901_2.png | Bin 470 -> 0 bytes .../images/pokemon/variant/icons/8/901_3.png | Bin 470 -> 0 bytes .../images/pokemon/variant/icons/8/903_2.png | Bin 876 -> 0 bytes .../images/pokemon/variant/icons/8/903_3.png | Bin 3538 -> 0 bytes .../images/pokemon/variant/icons/9/1000_1.png | Bin 730 -> 0 bytes .../images/pokemon/variant/icons/9/1000_2.png | Bin 755 -> 0 bytes .../images/pokemon/variant/icons/9/1000_3.png | Bin 722 -> 0 bytes .../images/pokemon/variant/icons/9/1001_2.png | Bin 1141 -> 0 bytes .../images/pokemon/variant/icons/9/1001_3.png | Bin 1133 -> 0 bytes .../images/pokemon/variant/icons/9/1004_2.png | Bin 379 -> 0 bytes .../images/pokemon/variant/icons/9/1004_3.png | Bin 379 -> 0 bytes .../variant/icons/9/1007-apex-build_2.png | Bin 586 -> 0 bytes .../variant/icons/9/1007-apex-build_3.png | Bin 586 -> 0 bytes .../variant/icons/9/1008-ultimate-mode_1.png | Bin 576 -> 0 bytes .../variant/icons/9/1008-ultimate-mode_2.png | Bin 570 -> 0 bytes .../variant/icons/9/1008-ultimate-mode_3.png | Bin 577 -> 0 bytes .../images/pokemon/variant/icons/9/8901_1.png | Bin 534 -> 0 bytes .../images/pokemon/variant/icons/9/8901_2.png | Bin 534 -> 0 bytes .../images/pokemon/variant/icons/9/8901_3.png | Bin 513 -> 0 bytes .../images/pokemon/variant/icons/9/909_2.png | Bin 8534 -> 0 bytes .../images/pokemon/variant/icons/9/909_3.png | Bin 568 -> 0 bytes .../images/pokemon/variant/icons/9/910_2.png | Bin 896 -> 0 bytes .../images/pokemon/variant/icons/9/910_3.png | Bin 878 -> 0 bytes .../images/pokemon/variant/icons/9/911_2.png | Bin 1088 -> 0 bytes .../images/pokemon/variant/icons/9/911_3.png | Bin 1081 -> 0 bytes .../images/pokemon/variant/icons/9/919_1.png | Bin 884 -> 0 bytes .../images/pokemon/variant/icons/9/919_2.png | Bin 903 -> 0 bytes .../images/pokemon/variant/icons/9/919_3.png | Bin 840 -> 0 bytes .../images/pokemon/variant/icons/9/920_1.png | Bin 1214 -> 0 bytes .../images/pokemon/variant/icons/9/920_2.png | Bin 1231 -> 0 bytes .../images/pokemon/variant/icons/9/920_3.png | Bin 1185 -> 0 bytes .../images/pokemon/variant/icons/9/924_1.png | Bin 619 -> 0 bytes .../images/pokemon/variant/icons/9/924_2.png | Bin 605 -> 0 bytes .../images/pokemon/variant/icons/9/924_3.png | Bin 587 -> 0 bytes .../pokemon/variant/icons/9/925-four_1.png | Bin 626 -> 0 bytes .../pokemon/variant/icons/9/925-four_2.png | Bin 660 -> 0 bytes .../pokemon/variant/icons/9/925-four_3.png | Bin 620 -> 0 bytes .../pokemon/variant/icons/9/925-three_1.png | Bin 652 -> 0 bytes .../pokemon/variant/icons/9/925-three_2.png | Bin 625 -> 0 bytes .../pokemon/variant/icons/9/925-three_3.png | Bin 599 -> 0 bytes .../images/pokemon/variant/icons/9/935_1.png | Bin 365 -> 0 bytes .../images/pokemon/variant/icons/9/935_2.png | Bin 370 -> 0 bytes .../images/pokemon/variant/icons/9/935_3.png | Bin 360 -> 0 bytes .../images/pokemon/variant/icons/9/936_1.png | Bin 465 -> 0 bytes .../images/pokemon/variant/icons/9/936_2.png | Bin 460 -> 0 bytes .../images/pokemon/variant/icons/9/936_3.png | Bin 459 -> 0 bytes .../images/pokemon/variant/icons/9/937_1.png | Bin 476 -> 0 bytes .../images/pokemon/variant/icons/9/937_2.png | Bin 469 -> 0 bytes .../images/pokemon/variant/icons/9/937_3.png | Bin 492 -> 0 bytes .../images/pokemon/variant/icons/9/937_9.png | Bin 3596 -> 0 bytes .../images/pokemon/variant/icons/9/948_2.png | Bin 539 -> 0 bytes .../images/pokemon/variant/icons/9/948_3.png | Bin 549 -> 0 bytes .../images/pokemon/variant/icons/9/949_2.png | Bin 596 -> 0 bytes .../images/pokemon/variant/icons/9/949_3.png | Bin 597 -> 0 bytes .../images/pokemon/variant/icons/9/962_1.png | Bin 663 -> 0 bytes .../images/pokemon/variant/icons/9/962_2.png | Bin 661 -> 0 bytes .../images/pokemon/variant/icons/9/962_3.png | Bin 667 -> 0 bytes .../images/pokemon/variant/icons/9/967_2.png | Bin 495 -> 0 bytes .../images/pokemon/variant/icons/9/967_3.png | Bin 530 -> 0 bytes .../variant/icons/9/967_3_GENERATED.png | Bin 530 -> 0 bytes .../images/pokemon/variant/icons/9/968_2.png | Bin 828 -> 0 bytes .../images/pokemon/variant/icons/9/968_3.png | Bin 830 -> 0 bytes .../images/pokemon/variant/icons/9/969_2.png | Bin 403 -> 0 bytes .../images/pokemon/variant/icons/9/969_3.png | Bin 418 -> 0 bytes .../images/pokemon/variant/icons/9/970_2.png | Bin 595 -> 0 bytes .../images/pokemon/variant/icons/9/970_3.png | Bin 594 -> 0 bytes .../images/pokemon/variant/icons/9/973_1.png | Bin 3279 -> 0 bytes .../images/pokemon/variant/icons/9/973_2.png | Bin 3277 -> 0 bytes .../images/pokemon/variant/icons/9/973_3.png | Bin 3283 -> 0 bytes .../pokemon/variant/icons/9/978-curly_2.png | Bin 478 -> 0 bytes .../pokemon/variant/icons/9/978-curly_3.png | Bin 474 -> 0 bytes .../pokemon/variant/icons/9/978-droopy_2.png | Bin 460 -> 0 bytes .../pokemon/variant/icons/9/978-droopy_3.png | Bin 448 -> 0 bytes .../variant/icons/9/978-stretchy_2.png | Bin 439 -> 0 bytes .../variant/icons/9/978-stretchy_3.png | Bin 456 -> 0 bytes .../images/pokemon/variant/icons/9/987_1.png | Bin 631 -> 0 bytes .../images/pokemon/variant/icons/9/987_2.png | Bin 636 -> 0 bytes .../images/pokemon/variant/icons/9/987_3.png | Bin 609 -> 0 bytes .../images/pokemon/variant/icons/9/988_2.png | Bin 999 -> 0 bytes .../images/pokemon/variant/icons/9/988_3.png | Bin 972 -> 0 bytes .../images/pokemon/variant/icons/9/994_2.png | Bin 807 -> 0 bytes .../images/pokemon/variant/icons/9/999_1.png | Bin 853 -> 0 bytes .../images/pokemon/variant/icons/9/999_2.png | Bin 855 -> 0 bytes .../images/pokemon/variant/icons/9/999_3.png | Bin 857 -> 0 bytes .../assets/web/images/pokemon_icons_1v.json | 3493 ++++++++------ .../assets/web/images/pokemon_icons_1v.png | Bin 39192 -> 43580 bytes .../assets/web/images/pokemon_icons_2v.json | 2616 ++++++----- .../assets/web/images/pokemon_icons_2v.png | Bin 61559 -> 25135 bytes .../assets/web/images/pokemon_icons_3v.json | 3034 ++++++------ .../assets/web/images/pokemon_icons_3v.png | Bin 34984 -> 35361 bytes .../assets/web/images/pokemon_icons_4.json | 2 +- .../assets/web/images/pokemon_icons_4.png | Bin 54648 -> 54686 bytes .../assets/web/images/pokemon_icons_4v.json | 2721 ++++++----- .../assets/web/images/pokemon_icons_4v.png | Bin 28647 -> 29855 bytes .../assets/web/images/pokemon_icons_5v.json | 2866 +++++++----- .../assets/web/images/pokemon_icons_5v.png | Bin 83034 -> 32058 bytes .../assets/web/images/pokemon_icons_6v.json | 1888 +++++--- .../assets/web/images/pokemon_icons_6v.png | Bin 18295 -> 21341 bytes .../assets/web/images/pokemon_icons_7v.json | 2118 +++++++-- .../assets/web/images/pokemon_icons_7v.png | Bin 14717 -> 22164 bytes .../assets/web/images/pokemon_icons_8.json | 2 +- .../assets/web/images/pokemon_icons_8.png | Bin 74949 -> 74919 bytes .../assets/web/images/pokemon_icons_8v.json | 2679 +++++++---- .../assets/web/images/pokemon_icons_8v.png | Bin 26950 -> 35308 bytes .../assets/web/images/pokemon_icons_9.json | 3710 +++++++-------- .../assets/web/images/pokemon_icons_9.png | Bin 53529 -> 52627 bytes .../assets/web/images/pokemon_icons_9v.json | 2048 ++++---- .../assets/web/images/pokemon_icons_9v.png | Bin 25671 -> 27715 bytes app/src/main/assets/web/index.html | 2 +- 1982 files changed, 297722 insertions(+), 16502 deletions(-) rename app/src/main/assets/web/assets/{index-49ded0a8.js => index-59397f9f.js} (69%) create mode 100644 app/src/main/assets/web/images/events/pride-update.png rename app/src/main/assets/web/images/pokemon/exp/{4053.json => 2053.json} (93%) rename app/src/main/assets/web/images/pokemon/exp/{4053.png => 2053.png} (100%) create mode 100644 app/src/main/assets/web/images/pokemon/exp/773_Test.png rename app/src/main/assets/web/images/pokemon/exp/back/{4053.json => 2053.json} (93%) rename app/src/main/assets/web/images/pokemon/exp/back/{4053.png => 2053.png} (100%) rename app/src/main/assets/web/images/pokemon/exp/back/shiny/{4053.json => 2053.json} (93%) rename app/src/main/assets/web/images/pokemon/exp/back/shiny/{4053.png => 2053.png} (100%) rename app/src/main/assets/web/images/pokemon/exp/shiny/{4053.json => 2053.json} (93%) rename app/src/main/assets/web/images/pokemon/exp/shiny/{4053.png => 2053.png} (100%) create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/1/37_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/1/37_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/1/38_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/1/38_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/1/4_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/1/4_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/1/56_1.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/1/56_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/1/56_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/1/57_1.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/1/57_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/1/57_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/1/5_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/1/5_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/1/6-gigantamax_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/1/6-gigantamax_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/1/6-mega-x_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/1/6-mega-x_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/1/6-mega-y_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/1/6-mega-y_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/1/6_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/1/6_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/1/79_1.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/2/199_1.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/2/222_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/2/222_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/2/227_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/2/227_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/2/228_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/2/228_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/2/229-mega_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/2/229-mega_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/2/229_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/2/229_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/2/231_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/2/231_3.png rename app/src/main/assets/web/images/pokemon/{variant/icons/3/292_3.png => icons/variant/2/232_2.png} (78%) create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/2/232_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/3/353_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/3/353_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/3/354_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/3/354_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/3/357_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/3/357_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/3/369_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/3/369_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/4/387_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/4/387_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/4/388_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/4/388_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/4/389_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/4/389_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/4/401_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/4/401_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/4/402_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/4/402_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/4/436_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/4/436_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/4/437_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/4/437_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/4/480_1_GENERATED.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/5/531-mega_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/5/531-mega_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/5/531_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/5/531_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/5/543_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/5/543_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/5/544_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/5/544_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/5/545_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/5/545_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/5/551_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/5/551_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/5/552_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/5/552_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/5/553_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/5/553_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/6/354-mega_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/6/354-mega_3.png rename app/src/main/assets/web/images/pokemon/{variant/icons/8/6705_3.png => icons/variant/6/672_2.png} (84%) rename app/src/main/assets/web/images/pokemon/{variant/icons/1/92_3.png => icons/variant/6/672_3.png} (84%) create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/6/673_2.png rename app/src/main/assets/web/images/pokemon/{variant/icons/1/144_2.png => icons/variant/6/673_3.png} (77%) create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/6/712_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/6/712_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/6/713_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/6/713_3.png rename app/src/main/assets/web/images/pokemon/{variant/icons/3/358_1.png => icons/variant/6/742_2.png} (84%) rename app/src/main/assets/web/images/pokemon/{variant/icons/1/144_3.png => icons/variant/6/742_3.png} (84%) rename app/src/main/assets/web/images/pokemon/{variant/icons/3/292_2.png => icons/variant/6/743_2.png} (83%) rename app/src/main/assets/web/images/pokemon/{variant/icons/1/92_1.png => icons/variant/6/743_3.png} (84%) create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/6/777_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/6/777_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/6/779_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/6/779_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/2052_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/2052_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/2053_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/2053_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/734_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/734_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/735_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/735_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/751_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/751_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/752_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/752_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/772_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/772_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-bug_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-bug_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-dark_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-dark_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-dragon_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-dragon_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-electric_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-electric_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-fairy_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-fairy_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-fighting_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-fighting_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-fire_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-fire_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-flying_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-flying_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-ghost_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-ghost_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-grass_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-grass_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-ground_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-ground_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-ice_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-ice_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-poison_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-poison_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-psychic_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-psychic_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-rock_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-rock_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-steel_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-steel_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-water_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773-water_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/773_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/776_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/776_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/797_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/7/797_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/4080_1.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/4199_1.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/6713_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/6713_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/816_2.png rename app/src/main/assets/web/images/pokemon/{variant/icons/2/226_2.png => icons/variant/8/816_3.png} (81%) create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/817_2.png rename app/src/main/assets/web/images/pokemon/{variant/icons/1/141_3.png => icons/variant/8/817_3.png} (77%) create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/818-gigantamax_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/818-gigantamax_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/818_2.png rename app/src/main/assets/web/images/pokemon/{variant/icons/2/196_2.png => icons/variant/8/818_3.png} (78%) create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/859_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/859_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/860_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/860_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/861-gigantamax_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/861-gigantamax_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/861_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/861_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/876-female_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/876-female_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/876_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/876_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/896_1.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/896_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/896_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/897_1.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/897_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/897_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/898-ice_1.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/898-ice_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/898-ice_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/898-shadow_1.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/898-shadow_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/898-shadow_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/898_1.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/898_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/8/898_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/9/951_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/9/951_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/9/952_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/9/952_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/9/967_3_GENERATED.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/9/974_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/9/974_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/9/975_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/9/975_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/9/979_1.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/9/979_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/9/979_3.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/9/993_2.png create mode 100644 app/src/main/assets/web/images/pokemon/icons/variant/9/993_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/199_1.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/199_1.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/2052.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/2053.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/222.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/227.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/228.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/229-mega.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/229.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/231.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/232.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/353.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/354-mega.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/354.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/357.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/369.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/37.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/38.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/387.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/388.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/389.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/4.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/401.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/402.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/4080_1.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/4080_1.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/4199_1.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/4199_1.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/436.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/437.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/5.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/531-mega.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/531.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/543.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/543_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/543_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/544.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/544_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/544_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/545.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/551.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/552.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/553.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/56.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/56_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/56_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/56_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/56_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/57_1.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/57_1.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/57_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/57_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/57_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/57_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/6-gigantamax.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/6-gigantamax_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/6-gigantamax_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/6-mega-x.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/6-mega-x_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/6-mega-x_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/6-mega-y.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/6-mega-y_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/6-mega-y_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/6713.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/672.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/672_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/672_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/673.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/6_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/6_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/6_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/6_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/712.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/713.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/734.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/735.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/742_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/742_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/742_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/742_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/743_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/743_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/743_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/743_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/751.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/752.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/772.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-bug_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-bug_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-bug_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-bug_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-dark_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-dark_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-dark_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-dark_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-dragon_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-dragon_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-dragon_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-dragon_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-electric_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-electric_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-electric_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-electric_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-fairy_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-fairy_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-fairy_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-fairy_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-fighting_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-fighting_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-fighting_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-fighting_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-fire_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-fire_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-fire_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-fire_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-flying_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-flying_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-flying_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-flying_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-ghost_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-ghost_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-ghost_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-ghost_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-grass_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-grass_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-grass_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-grass_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-ground_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-ground_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-ground_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-ground_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-ice_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-ice_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-ice_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-ice_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-poison_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-poison_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-poison_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-poison_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-psychic_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-psychic_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-psychic_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-psychic_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-rock_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-rock_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-rock_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-rock_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-steel_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-steel_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-steel_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-steel_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-water_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-water_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-water_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/773-water_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/773.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/776.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/777.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/779.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/79.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/797.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/816.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/817.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/818-gigantamax.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/818.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/859_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/859_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/859_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/859_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/860.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/861-gigantamax.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/861.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/876-female.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/876.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/896.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/897.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/897_1.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/897_1.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/898-ice.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/898-shadow.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/898.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/951.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/952.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/974.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/975_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/975_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/975_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/975_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/979_1.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/979_1.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/979_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/979_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/979_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/979_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/993.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/199_1.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/199_1.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/2052.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/2053.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/222.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/227.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/228.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/229-mega.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/229.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/231.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/232.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/353.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/354-mega.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/354.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/357.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/369_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/369_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/369_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/369_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/37.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/38.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/387.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/387_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/387_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/388.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/389.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/4.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/401.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/402.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/4080_1.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/4080_1.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/4199_1.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/4199_1.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/436.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/437.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/5.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/531-mega.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/531.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/543.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/544.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/545.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/551.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/552.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/553.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/56.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/57.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/6-gigantamax.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/6-gigantamax_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/6-gigantamax_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/6-mega-x.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/6-mega-x_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/6-mega-x_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/6-mega-y.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/6-mega-y_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/6-mega-y_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/6713.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/6_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/6_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/6_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/6_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/712.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/713.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/734.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/735.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/742_2.json rename app/src/main/assets/web/images/pokemon/variant/{icons/1/139_3.png => back/742_2.png} (78%) create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/742_3.json rename app/src/main/assets/web/images/pokemon/variant/{icons/1/141_2.png => back/742_3.png} (78%) create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/743_2.json rename app/src/main/assets/web/images/pokemon/variant/{icons/2/249_3.png => back/743_2.png} (69%) create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/743_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/743_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/751.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/752.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/772.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-bug_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-bug_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-bug_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-bug_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-dark_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-dark_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-dark_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-dark_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-dragon_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-dragon_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-dragon_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-dragon_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-electric_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-electric_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-electric_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-electric_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-fairy_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-fairy_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-fairy_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-fairy_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-fighting_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-fighting_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-fighting_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-fighting_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-fire_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-fire_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-fire_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-fire_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-flying_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-flying_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-flying_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-flying_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-ghost_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-ghost_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-ghost_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-ghost_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-grass_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-grass_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-grass_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-grass_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-ground_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-ground_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-ground_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-ground_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-ice_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-ice_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-ice_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-ice_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-poison_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-poison_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-poison_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-poison_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-psychic_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-psychic_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-psychic_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-psychic_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-rock_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-rock_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-rock_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-rock_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-steel_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-steel_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-steel_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-steel_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-water_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-water_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-water_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773-water_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/773.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/776.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/777.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/779.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/79.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/797.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/816.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/817.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/818-gigantamax.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/818.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/859.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/860.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/861-gigantamax.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/861.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/876-female.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/876.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/896.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/897.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/898-ice.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/898-shadow.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/898.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/951.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/952.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/974.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/975.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/979.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/993.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/female/229.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/female/232.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/female/369.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/female/401.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/back/female/402.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/2052.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/2053.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/229-mega.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/354-mega.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/4080_1.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/4080_1.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/4199_1.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/4199_1.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/531-mega.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/6-mega-x_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/6-mega-x_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/6-mega-x_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/6-mega-x_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/6-mega-y_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/6-mega-y_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/6-mega-y_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/6-mega-y_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/6713.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/672.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/673.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/712.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/713.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/734.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/735.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/742_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/742_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/742_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/742_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/743_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/743_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/743_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/743_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/751.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/752.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/772.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-bug_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-bug_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-bug_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-bug_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-dark_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-dark_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-dark_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-dark_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-dragon_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-dragon_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-dragon_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-dragon_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-electric_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-electric_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-electric_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-electric_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-fairy_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-fairy_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-fairy_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-fairy_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-fighting_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-fighting_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-fighting_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-fighting_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-fire_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-fire_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-fire_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-fire_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-flying_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-flying_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-flying_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-flying_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-ghost_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-ghost_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-ghost_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-ghost_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-grass_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-grass_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-grass_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-grass_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-ground_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-ground_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-ground_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-ground_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-ice_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-ice_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-ice_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-ice_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-poison_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-poison_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-poison_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-poison_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-psychic_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-psychic_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-psychic_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-psychic_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-rock_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-rock_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-rock_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-rock_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-steel_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-steel_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-steel_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-steel_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-water_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-water_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-water_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773-water_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/773_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/776.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/777.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/779.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/797.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/816.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/817.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/818.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/859.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/860.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/861.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/876-female.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/876.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/896.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/897.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/898-ice.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/898-shadow.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/898.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/951.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/952.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/974.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/975.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/979_1.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/979_1.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/979_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/979_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/979_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/979_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/993.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/2052.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/2053.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/229-mega.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/354-mega.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/4080_1.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/4080_1.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/4199_1.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/4199_1.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/531-mega.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/6-mega-x_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/6-mega-x_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/6-mega-x_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/6-mega-x_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/6-mega-y.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/6-mega-y_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/6-mega-y_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/6713.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/672.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/672_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/672_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/673.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/673_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/673_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/712.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/713.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/734.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/735.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/742_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/742_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/742_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/742_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/743_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/743_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/743_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/743_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/751.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/752.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/772.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-bug_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-bug_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-bug_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-bug_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-dark_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-dark_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-dark_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-dark_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-dragon_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-dragon_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-dragon_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-dragon_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-electric_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-electric_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-electric_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-electric_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-fairy_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-fairy_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-fairy_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-fairy_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-fighting_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-fighting_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-fighting_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-fighting_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-fire_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-fire_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-fire_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-fire_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-flying_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-flying_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-flying_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-flying_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-ghost_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-ghost_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-ghost_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-ghost_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-grass_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-grass_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-grass_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-grass_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-ground_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-ground_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-ground_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-ground_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-ice_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-ice_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-ice_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-ice_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-poison_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-poison_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-poison_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-poison_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-psychic_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-psychic_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-psychic_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-psychic_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-rock_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-rock_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-rock_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-rock_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-steel_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-steel_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-steel_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-steel_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-water_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-water_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-water_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773-water_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/773.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/776_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/776_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/776_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/776_3.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/777.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/779.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/797.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/816.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/817.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/818.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/859.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/860.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/861.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/876-female.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/876.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/896.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/897.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/898-ice.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/898-shadow.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/898.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/951.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/952.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/952_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/952_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/974.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/975.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/979.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/exp/back/993.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/female/229.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/female/232.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/female/369.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/female/401.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/female/402_2.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/female/402_2.png create mode 100644 app/src/main/assets/web/images/pokemon/variant/female/402_3.json create mode 100644 app/src/main/assets/web/images/pokemon/variant/female/402_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/113_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/113_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/113_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/118_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/118_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/119_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/119_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/119_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/123_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/123_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/123_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/125_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/125_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/125_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/127-mega_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/127-mega_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/127_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/127_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/131-gigantamax_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/131-gigantamax_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/131_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/131_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/133_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/133_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/134_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/134_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/135_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/135_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/135_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/136_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/136_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/136_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/138_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/138_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/139_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/140_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/140_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/142-mega_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/142-mega_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/142_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/142_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/144_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/145_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/145_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/145_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/146_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/146_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/146_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/147_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/147_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/148_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/148_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/149_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/149_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/150_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/150_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/151_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/151_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/1_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/1_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/29_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/29_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/2_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/2_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/3-gigantamax_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/3-gigantamax_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/3-mega_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/3-mega_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/30_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/30_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/31_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/31_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/31_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/35_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/35_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/36_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/36_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/3_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/3_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/41_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/41_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/41_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/42_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/42_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/42_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/46_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/46_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/46_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/47_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/47_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/47_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/50_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/50_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/51_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/51_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/52-gigantamax_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/52-gigantamax_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/52-gigantamax_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/52_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/52_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/52_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/53_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/53_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/53_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/69_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/69_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/70_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/70_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/71_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/71_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/7_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/7_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/83_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/83_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/86_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/86_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/86_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/87_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/87_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/87_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/8_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/8_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/9-gigantamax_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/9-gigantamax_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/9-mega_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/9-mega_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/92_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/93_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/93_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/93_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/94-gigantamax_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/94-gigantamax_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/94-gigantamax_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/94-mega_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/94-mega_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/94-mega_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/94_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/94_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/94_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/9_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/1/9_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/169_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/169_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/169_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/173_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/175_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/175_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/175_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/176_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/176_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/176_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/179_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/179_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/180_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/180_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/181-mega_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/181-mega_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/181_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/181_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/183_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/183_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/184_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/184_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/196_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/196_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/197_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/197_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/200_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/200_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/200_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/212-mega_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/212-mega_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/212-mega_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/212_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/212_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/212_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/216_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/216_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/216_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/217_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/217_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/217_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/226_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/239_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/239_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/239_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/242_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/242_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/242_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/243_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/243_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/244_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/244_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/245_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/245_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/249_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/250_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/250_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/251_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/2/251_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/263_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/263_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/264_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/264_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/280_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/280_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/281_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/281_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/282-mega_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/282-mega_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/282_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/282_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/285_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/285_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/286_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/286_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/290_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/290_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/290_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/291_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/291_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/291_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/292_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/298_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/298_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/300_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/300_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/300_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/301_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/301_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/301_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/303-mega_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/303-mega_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/303-mega_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/303_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/303_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/304_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/304_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/304_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/305_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/305_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/305_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/306-mega_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/306-mega_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/306-mega_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/306_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/306_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/306_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/307_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/307_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/308-mega_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/308-mega_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/308_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/308_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/309_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/309_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/310-mega_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/310-mega_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/310_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/310_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/311_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/311_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/311_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/312_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/312_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/328_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/328_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/329_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/329_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/330_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/330_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/333_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/333_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/334-mega_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/334-mega_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/334_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/334_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/335_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/335_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/336_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/336_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/338_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/338_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/339_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/339_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/340_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/340_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/351-rainy_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/351-rainy_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/351-rainy_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/351-snowy_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/351-snowy_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/351-snowy_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/351-sunny_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/351-sunny_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/351-sunny_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/351_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/351_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/352_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/352_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/352_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/358_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/358_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/371_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/371_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/372_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/372_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/373-mega_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/373-mega_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/373_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/373_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/374_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/374_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/375_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/375_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/376-mega_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/376-mega_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/376_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/376_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/380-mega_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/380-mega_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/380_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/380_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/381-mega_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/381-mega_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/381_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/381_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/382-primal_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/382-primal_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/382_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/382_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/383-primal_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/383-primal_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/383_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/383_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/384-mega_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/384-mega_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/384_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/384_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/385_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/385_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/3/385_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/399_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/399_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/400_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/400_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/425_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/425_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/426_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/426_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/427_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/427_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/428-mega_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/428-mega_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/428_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/428_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/429_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/429_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/429_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/433_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/433_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/433_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/440_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/440_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/440_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/442_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/442_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/443_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/443_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/443_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/444_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/444_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/444_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/445-mega_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/445-mega_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/445-mega_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/445_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/445_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/445_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/447_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/447_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/447_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/448-mega_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/448-mega_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/448-mega_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/448_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/448_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/448_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/458_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/458_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/466_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/466_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/466_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/468_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/468_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/468_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/470_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/470_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/470_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/471_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/471_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/471_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/475-mega_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/475-mega_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/475_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/475_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/480_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/480_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/480_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/481_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/481_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/481_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/482_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/482_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/482_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/485_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/487-altered_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/487-altered_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/487-origin_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/487-origin_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/488_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/488_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/489_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/489_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/489_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/490_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/490_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/490_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/491_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/491_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/492-land_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/492-land_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/492-sky_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/492-sky_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/494_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/4/494_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/495_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/495_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/496_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/496_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/497_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/497_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/532_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/532_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/533_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/533_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/534_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/534_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/538_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/538_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/540_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/540_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/541_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/541_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/542_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/542_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/546_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/546_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/547_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/547_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/548_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/548_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/548_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/549_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/549_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/559_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/559_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/559_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/560_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/560_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/560_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/562_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/562_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/563_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/563_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/570_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/570_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/571_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/571_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/572_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/572_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/577_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/577_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/577_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/578_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/578_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/578_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/579_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/579_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/579_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/585-autumn_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/585-spring_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/585-summer_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/585-winter_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/586-autumn_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/586-spring_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/586-summer_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/586-winter_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/595_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/595_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/596_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/596_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/607_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/607_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/608_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/608_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/609_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/609_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/610_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/610_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/611_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/611_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/612_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/612_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/622_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/622_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/623_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/623_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/632_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/632_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/633_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/633_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/634_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/634_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/635_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/635_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/636_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/636_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/637_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/637_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/641-incarnate_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/641-therian_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/642-incarnate_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/642-therian_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/645-incarnate_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/645-therian_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/648-aria_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/648-aria_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/648-pirouette_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/5/648-pirouette_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/653_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/653_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/654_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/654_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/655_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/655_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/664_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/664_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/665_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/665_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-archipelago_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-archipelago_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-continental_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-continental_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-elegant_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-elegant_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-fancy_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-fancy_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-garden_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-garden_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-high-plains_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-high-plains_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-icy-snow_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-icy-snow_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-jungle_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-jungle_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-marine_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-marine_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-meadow_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-meadow_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-modern_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-modern_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-monsoon_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-monsoon_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-ocean_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-ocean_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-poke-ball_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-poke-ball_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-polar_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-polar_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-river_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-river_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-sandstorm_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-sandstorm_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-savanna_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-savanna_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-sun_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-sun_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-tundra_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/666-tundra_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/690_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/690_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/691_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/691_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/696_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/696_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/697_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/697_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/700_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/700_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/704_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/704_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/705_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/705_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/706_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/706_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/708_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/708_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/709_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/709_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/710_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/710_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/711_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/711_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/711_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/716-active_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/716-active_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/716-neutral_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/716-neutral_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/717_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/717_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/720-unbound_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/720-unbound_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/720-unbound_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/720_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/720_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/6/720_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/728_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/728_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/729_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/729_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/730_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/730_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/747_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/747_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/748_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/748_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/753_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/753_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/754_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/754_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/755_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/755_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/756_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/756_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/761_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/761_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/762_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/762_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/763_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/763_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/767_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/767_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/768_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/768_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/789_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/789_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/789_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/790_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/790_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/791_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/791_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/791_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/792_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/792_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/793_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/793_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/800-dawn-wings_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/800-dawn-wings_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/800-dusk-mane_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/800-dusk-mane_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/800-ultra_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/800-ultra_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/800_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/800_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/802_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/802_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/802_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/808_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/808_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/809-gigantamax_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/809-gigantamax_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/809_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/7/809_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/4052_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/4052_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/4263_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/4263_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/4264_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/4264_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/6215_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/6215_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/6549_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/6549_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/6570_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/6570_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/6571_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/6571_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/6705_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/6706_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/6706_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/821_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/821_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/822_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/822_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/823-gigantamax_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/823-gigantamax_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/823_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/823_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/829_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/829_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/830_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/830_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/835_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/835_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/836_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/836_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/851-gigantamax_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/851-gigantamax_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/856_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/856_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/857_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/857_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/858-gigantamax_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/858-gigantamax_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/858_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/858_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/862_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/862_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/863_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/863_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/872_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/872_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/872_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/873_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/873_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/873_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/877-hangry_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/877-hangry_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/877-hangry_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/877_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/877_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/877_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/885_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/885_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/885_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/886_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/886_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/886_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/887_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/887_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/887_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/890-eternamax_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/890-eternamax_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/890_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/890_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/900_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/900_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/901_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/901_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/901_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/903_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/8/903_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/1000_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/1000_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/1000_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/1001_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/1001_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/1004_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/1004_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/1007-apex-build_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/1007-apex-build_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/1008-ultimate-mode_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/1008-ultimate-mode_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/1008-ultimate-mode_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/8901_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/8901_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/8901_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/909_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/909_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/910_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/910_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/911_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/911_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/919_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/919_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/919_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/920_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/920_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/920_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/924_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/924_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/924_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/925-four_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/925-four_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/925-four_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/925-three_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/925-three_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/925-three_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/935_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/935_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/935_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/936_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/936_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/936_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/937_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/937_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/937_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/937_9.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/948_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/948_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/949_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/949_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/962_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/962_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/962_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/967_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/967_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/967_3_GENERATED.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/968_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/968_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/969_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/969_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/970_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/970_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/973_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/973_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/973_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/978-curly_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/978-curly_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/978-droopy_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/978-droopy_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/978-stretchy_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/978-stretchy_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/987_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/987_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/987_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/988_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/988_3.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/994_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/999_1.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/999_2.png delete mode 100644 app/src/main/assets/web/images/pokemon/variant/icons/9/999_3.png diff --git a/app/src/main/assets/web/assets/index-49ded0a8.js b/app/src/main/assets/web/assets/index-59397f9f.js similarity index 69% rename from app/src/main/assets/web/assets/index-49ded0a8.js rename to app/src/main/assets/web/assets/index-59397f9f.js index c557b8c27..c6e665d87 100644 --- a/app/src/main/assets/web/assets/index-49ded0a8.js +++ b/app/src/main/assets/web/assets/index-59397f9f.js @@ -1,237 +1,237 @@ -var dne=Object.defineProperty;var P=(n,t)=>dne(n,"name",{value:t,configurable:!0});P(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const E of l)if(E.type==="childList")for(const o of E.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function i(l){const E={};return l.integrity&&(E.integrity=l.integrity),l.referrerPolicy&&(E.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?E.credentials="include":l.crossOrigin==="anonymous"?E.credentials="omit":E.credentials="same-origin",E}P(i,"getFetchOpts");function r(l){if(l.ep)return;l.ep=!0;const E=i(l);fetch(l.href,E)}P(r,"processPreload")},"polyfill")();var _t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function RB(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}P(RB,"getDefaultExportFromCjs");function Ene(n){if(n.__esModule)return n;var t=n.default;if(typeof t=="function"){var i=P(function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)},"a");i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var l=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(i,r,l.get?l:{enumerable:!0,get:function(){return n[r]}})}),i}P(Ene,"getAugmentedNamespace");var RQ={exports:{}};(function(n,t){P(function(r,l){n.exports=l()},"webpackUniversalModuleDefinition")(_t,()=>(()=>{var i={50792:o=>{var m=Object.prototype.hasOwnProperty,s="~";function u(){}P(u,"Events"),Object.create&&(u.prototype=Object.create(null),new u().__proto__||(s=!1));function T(h,f,S){this.fn=h,this.context=f,this.once=S||!1}P(T,"EE");function d(h,f,S,O,L){if(typeof S!="function")throw new TypeError("The listener must be a function");var p=new T(S,O||h,L),N=s?s+f:f;return h._events[N]?h._events[N].fn?h._events[N]=[h._events[N],p]:h._events[N].push(p):(h._events[N]=p,h._eventsCount++),h}P(d,"addListener");function c(h,f){--h._eventsCount===0?h._events=new u:delete h._events[f]}P(c,"clearEvent");function A(){this._events=new u,this._eventsCount=0}P(A,"EventEmitter"),A.prototype.eventNames=P(function(){var f=[],S,O;if(this._eventsCount===0)return f;for(O in S=this._events)m.call(S,O)&&f.push(s?O.slice(1):O);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(S)):f},"eventNames"),A.prototype.listeners=P(function(f){var S=s?s+f:f,O=this._events[S];if(!O)return[];if(O.fn)return[O.fn];for(var L=0,p=O.length,N=new Array(p);L{/** +var Tne=Object.defineProperty;var v=(n,t)=>Tne(n,"name",{value:t,configurable:!0});v(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const E of l)if(E.type==="childList")for(const o of E.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function i(l){const E={};return l.integrity&&(E.integrity=l.integrity),l.referrerPolicy&&(E.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?E.credentials="include":l.crossOrigin==="anonymous"?E.credentials="omit":E.credentials="same-origin",E}v(i,"getFetchOpts");function r(l){if(l.ep)return;l.ep=!0;const E=i(l);fetch(l.href,E)}v(r,"processPreload")},"polyfill")();var bt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function LB(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}v(LB,"getDefaultExportFromCjs");function Lne(n){if(n.__esModule)return n;var t=n.default;if(typeof t=="function"){var i=v(function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)},"a");i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var l=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(i,r,l.get?l:{enumerable:!0,get:function(){return n[r]}})}),i}v(Lne,"getAugmentedNamespace");var gQ={exports:{}};(function(n,t){v(function(r,l){n.exports=l()},"webpackUniversalModuleDefinition")(bt,()=>(()=>{var i={50792:o=>{var O=Object.prototype.hasOwnProperty,s="~";function u(){}v(u,"Events"),Object.create&&(u.prototype=Object.create(null),new u().__proto__||(s=!1));function T(h,f,S){this.fn=h,this.context=f,this.once=S||!1}v(T,"EE");function A(h,f,S,R,L){if(typeof S!="function")throw new TypeError("The listener must be a function");var p=new T(S,R||h,L),N=s?s+f:f;return h._events[N]?h._events[N].fn?h._events[N]=[h._events[N],p]:h._events[N].push(p):(h._events[N]=p,h._eventsCount++),h}v(A,"addListener");function c(h,f){--h._eventsCount===0?h._events=new u:delete h._events[f]}v(c,"clearEvent");function d(){this._events=new u,this._eventsCount=0}v(d,"EventEmitter"),d.prototype.eventNames=v(function(){var f=[],S,R;if(this._eventsCount===0)return f;for(R in S=this._events)O.call(S,R)&&f.push(s?R.slice(1):R);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(S)):f},"eventNames"),d.prototype.listeners=v(function(f){var S=s?s+f:f,R=this._events[S];if(!R)return[];if(R.fn)return[R.fn];for(var L=0,p=R.length,N=new Array(p);L{/** * @author samme * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(38829),T=P(function(d,c,A,h){for(var f=d[0],S=1;S{/** + */var u=s(38829),T=v(function(A,c,d,h){for(var f=A[0],S=1;S{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(66979),T=P(function(d,c,A,h,f){return u(d,"angle",c,A,h,f)},"Angle");o.exports=T},60757:o=>{/** + */var u=s(66979),T=v(function(A,c,d,h,f){return u(A,"angle",c,d,h,f)},"Angle");o.exports=T},60757:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){for(var d=0;d{/** + */var O=v(function(s,u,T){for(var A=0;A{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){T===void 0&&(T=0);for(var d=T;d{/** + */var O=v(function(s,u,T){T===void 0&&(T=0);for(var A=T;A{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){T===void 0&&(T=0);for(var d=s.length-1;d>=T;d--){var c=s[d],A=!0;for(var h in u)c[h]!==u[h]&&(A=!1);if(A)return c}return null},"GetLast");o.exports=m},94420:(o,m,s)=>{/** + */var O=v(function(s,u,T){T===void 0&&(T=0);for(var A=s.length-1;A>=T;A--){var c=s[A],d=!0;for(var h in u)c[h]!==u[h]&&(d=!1);if(d)return c}return null},"GetLast");o.exports=O},94420:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(11879),T=s(60461),d=s(95540),c=s(29747),A=s(41481),h=new A({sys:{queueDepthSort:c,events:{once:c}}},0,0,1,1).setOrigin(0,0),f=P(function(S,O){O===void 0&&(O={});var L=O.hasOwnProperty("width"),p=O.hasOwnProperty("height"),N=d(O,"width",-1),g=d(O,"height",-1),C=d(O,"cellWidth",1),v=d(O,"cellHeight",C),M=d(O,"position",T.TOP_LEFT),D=d(O,"x",0),G=d(O,"y",0),H=0,B=0,_=N*C,w=g*v;h.setPosition(D,G),h.setSize(C,v);for(var b=0;b{/** + */var u=s(11879),T=s(60461),A=s(95540),c=s(29747),d=s(41481),h=new d({sys:{queueDepthSort:c,events:{once:c}}},0,0,1,1).setOrigin(0,0),f=v(function(S,R){R===void 0&&(R={});var L=R.hasOwnProperty("width"),p=R.hasOwnProperty("height"),N=A(R,"width",-1),g=A(R,"height",-1),C=A(R,"cellWidth",1),P=A(R,"cellHeight",C),M=A(R,"position",T.TOP_LEFT),D=A(R,"x",0),G=A(R,"y",0),H=0,B=0,b=N*C,w=g*P;h.setPosition(D,G),h.setSize(C,P);for(var _=0;_{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(66979),T=P(function(d,c,A,h,f){return u(d,"alpha",c,A,h,f)},"IncAlpha");o.exports=T},67285:(o,m,s)=>{/** + */var u=s(66979),T=v(function(A,c,d,h,f){return u(A,"alpha",c,d,h,f)},"IncAlpha");o.exports=T},67285:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(66979),T=P(function(d,c,A,h,f){return u(d,"x",c,A,h,f)},"IncX");o.exports=T},9074:(o,m,s)=>{/** + */var u=s(66979),T=v(function(A,c,d,h,f){return u(A,"x",c,d,h,f)},"IncX");o.exports=T},9074:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(66979),T=P(function(d,c,A,h,f,S,O){return A==null&&(A=c),u(d,"x",c,h,S,O),u(d,"y",A,f,S,O)},"IncXY");o.exports=T},75222:(o,m,s)=>{/** + */var u=s(66979),T=v(function(A,c,d,h,f,S,R){return d==null&&(d=c),u(A,"x",c,h,S,R),u(A,"y",d,f,S,R)},"IncXY");o.exports=T},75222:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(66979),T=P(function(d,c,A,h,f){return u(d,"y",c,A,h,f)},"IncY");o.exports=T},22983:o=>{/** + */var u=s(66979),T=v(function(A,c,d,h,f){return u(A,"y",c,d,h,f)},"IncY");o.exports=T},22983:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){T===void 0&&(T=0),d===void 0&&(d=6.28);for(var c=T,A=(d-T)/s.length,h=u.x,f=u.y,S=u.radius,O=0;O{/** + */var O=v(function(s,u,T,A){T===void 0&&(T=0),A===void 0&&(A=6.28);for(var c=T,d=(A-T)/s.length,h=u.x,f=u.y,S=u.radius,R=0;R{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){T===void 0&&(T=0),d===void 0&&(d=6.28);for(var c=T,A=(d-T)/s.length,h=u.width/2,f=u.height/2,S=0;S{/** + */var O=v(function(s,u,T,A){T===void 0&&(T=0),A===void 0&&(A=6.28);for(var c=T,d=(A-T)/s.length,h=u.width/2,f=u.height/2,S=0;S{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(15258),T=s(26708),d=P(function(c,A,h){var f;h?f=T(A,h,c.length):f=u(A,c.length);for(var S=0;S{/** + */var u=s(15258),T=s(26708),A=v(function(c,d,h){var f;h?f=T(d,h,c.length):f=u(d,c.length);for(var S=0;S{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(14649),T=s(86003),d=s(49498),c=P(function(A,h,f){f===void 0&&(f=0);var S=u(h,!1,A.length);f>0?T(S,f):f<0&&d(S,Math.abs(f));for(var O=0;O{/** + */var u=s(14649),T=s(86003),A=s(49498),c=v(function(d,h,f){f===void 0&&(f=0);var S=u(h,!1,d.length);f>0?T(S,f):f<0&&A(S,Math.abs(f));for(var R=0;R{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(84993),T=P(function(d,c,A){var h=u({x1:c.x1,y1:c.y1,x2:c.x2,y2:c.y2},A),f=u({x1:c.x2,y1:c.y2,x2:c.x3,y2:c.y3},A),S=u({x1:c.x3,y1:c.y3,x2:c.x1,y2:c.y1},A);h.pop(),f.pop(),S.pop(),h=h.concat(f,S);for(var O=h.length/d.length,L=0,p=0;p{/** + */var u=s(84993),T=v(function(A,c,d){var h=u({x1:c.x1,y1:c.y1,x2:c.x2,y2:c.y2},d),f=u({x1:c.x2,y1:c.y2,x2:c.x3,y2:c.y3},d),S=u({x1:c.x3,y1:c.y3,x2:c.x1,y2:c.y1},d);h.pop(),f.pop(),S.pop(),h=h.concat(f,S);for(var R=h.length/A.length,L=0,p=0;p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){for(var d=0;d{/** + */var O=v(function(s,u,T){for(var A=0;A{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d,c,A){d===void 0&&(d=0),c===void 0&&(c=0),A===void 0&&(A=1);var h,f=0,S=s.length;if(A===1)for(h=c;h=0;h--)s[h][u]+=T+f*d,f++;return s},"PropertyValueInc");o.exports=m},43967:o=>{/** + */var O=v(function(s,u,T,A,c,d){A===void 0&&(A=0),c===void 0&&(c=0),d===void 0&&(d=1);var h,f=0,S=s.length;if(d===1)for(h=c;h=0;h--)s[h][u]+=T+f*A,f++;return s},"PropertyValueInc");o.exports=O},43967:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d,c,A){d===void 0&&(d=0),c===void 0&&(c=0),A===void 0&&(A=1);var h,f=0,S=s.length;if(A===1)for(h=c;h=0;h--)s[h][u]=T+f*d,f++;return s},"PropertyValueSet");o.exports=m},88926:(o,m,s)=>{/** + */var O=v(function(s,u,T,A,c,d){A===void 0&&(A=0),c===void 0&&(c=0),d===void 0&&(d=1);var h,f=0,S=s.length;if(d===1)for(h=c;h=0;h--)s[h][u]=T+f*A,f++;return s},"PropertyValueSet");o.exports=O},88926:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(28176),T=P(function(d,c){for(var A=0;A{/** + */var u=s(28176),T=v(function(A,c){for(var d=0;d{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(24820),T=P(function(d,c){for(var A=0;A{/** + */var u=s(24820),T=v(function(A,c){for(var d=0;d{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(65822),T=P(function(d,c){for(var A=0;A{/** + */var u=s(65822),T=v(function(A,c){for(var d=0;d{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(26597),T=P(function(d,c){for(var A=0;A{/** + */var u=s(26597),T=v(function(A,c){for(var d=0;d{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(90260),T=P(function(d,c){for(var A=0;A{/** + */var u=s(90260),T=v(function(A,c){for(var d=0;d{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(66979),T=P(function(d,c,A,h,f){return u(d,"rotation",c,A,h,f)},"Rotate");o.exports=T},91051:(o,m,s)=>{/** + */var u=s(66979),T=v(function(A,c,d,h,f){return u(A,"rotation",c,d,h,f)},"Rotate");o.exports=T},91051:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(1163),T=s(20339),d=P(function(c,A,h){for(var f=A.x,S=A.y,O=0;O{/** + */var u=s(1163),T=s(20339),A=v(function(c,d,h){for(var f=d.x,S=d.y,R=0;R{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(1163),T=P(function(d,c,A,h){var f=c.x,S=c.y;if(h===0)return d;for(var O=0;O{/** + */var u=s(1163),T=v(function(A,c,d,h){var f=c.x,S=c.y;if(h===0)return A;for(var R=0;R{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(66979),T=P(function(d,c,A,h,f){return u(d,"scaleX",c,A,h,f)},"ScaleX");o.exports=T},94868:(o,m,s)=>{/** + */var u=s(66979),T=v(function(A,c,d,h,f){return u(A,"scaleX",c,d,h,f)},"ScaleX");o.exports=T},94868:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(66979),T=P(function(d,c,A,h,f,S,O){return A==null&&(A=c),u(d,"scaleX",c,h,S,O),u(d,"scaleY",A,f,S,O)},"ScaleXY");o.exports=T},95532:(o,m,s)=>{/** + */var u=s(66979),T=v(function(A,c,d,h,f,S,R){return d==null&&(d=c),u(A,"scaleX",c,h,S,R),u(A,"scaleY",d,f,S,R)},"ScaleXY");o.exports=T},95532:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(66979),T=P(function(d,c,A,h,f){return u(d,"scaleY",c,A,h,f)},"ScaleY");o.exports=T},8689:(o,m,s)=>{/** + */var u=s(66979),T=v(function(A,c,d,h,f){return u(A,"scaleY",c,d,h,f)},"ScaleY");o.exports=T},8689:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(43967),T=P(function(d,c,A,h,f){return u(d,"alpha",c,A,h,f)},"SetAlpha");o.exports=T},2645:(o,m,s)=>{/** + */var u=s(43967),T=v(function(A,c,d,h,f){return u(A,"alpha",c,d,h,f)},"SetAlpha");o.exports=T},2645:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(43967),T=P(function(d,c,A,h){return u(d,"blendMode",c,0,A,h)},"SetBlendMode");o.exports=T},32372:(o,m,s)=>{/** + */var u=s(43967),T=v(function(A,c,d,h){return u(A,"blendMode",c,0,d,h)},"SetBlendMode");o.exports=T},32372:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(43967),T=P(function(d,c,A,h,f){return u(d,"depth",c,A,h,f)},"SetDepth");o.exports=T},85373:o=>{/** + */var u=s(43967),T=v(function(A,c,d,h,f){return u(A,"depth",c,d,h,f)},"SetDepth");o.exports=T},85373:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){for(var d=0;d{/** + */var O=v(function(s,u,T){for(var A=0;A{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(43967),T=P(function(d,c,A,h,f,S,O){return A==null&&(A=c),u(d,"originX",c,h,S,O),u(d,"originY",A,f,S,O),d.forEach(function(L){L.updateDisplayOrigin()}),d},"SetOrigin");o.exports=T},79939:(o,m,s)=>{/** + */var u=s(43967),T=v(function(A,c,d,h,f,S,R){return d==null&&(d=c),u(A,"originX",c,h,S,R),u(A,"originY",d,f,S,R),A.forEach(function(L){L.updateDisplayOrigin()}),A},"SetOrigin");o.exports=T},79939:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(43967),T=P(function(d,c,A,h,f){return u(d,"rotation",c,A,h,f)},"SetRotation");o.exports=T},2699:(o,m,s)=>{/** + */var u=s(43967),T=v(function(A,c,d,h,f){return u(A,"rotation",c,d,h,f)},"SetRotation");o.exports=T},2699:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(43967),T=P(function(d,c,A,h,f,S,O){return A==null&&(A=c),u(d,"scaleX",c,h,S,O),u(d,"scaleY",A,f,S,O)},"SetScale");o.exports=T},98739:(o,m,s)=>{/** + */var u=s(43967),T=v(function(A,c,d,h,f,S,R){return d==null&&(d=c),u(A,"scaleX",c,h,S,R),u(A,"scaleY",d,f,S,R)},"SetScale");o.exports=T},98739:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(43967),T=P(function(d,c,A,h,f){return u(d,"scaleX",c,A,h,f)},"SetScaleX");o.exports=T},98476:(o,m,s)=>{/** + */var u=s(43967),T=v(function(A,c,d,h,f){return u(A,"scaleX",c,d,h,f)},"SetScaleX");o.exports=T},98476:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(43967),T=P(function(d,c,A,h,f){return u(d,"scaleY",c,A,h,f)},"SetScaleY");o.exports=T},6207:(o,m,s)=>{/** + */var u=s(43967),T=v(function(A,c,d,h,f){return u(A,"scaleY",c,d,h,f)},"SetScaleY");o.exports=T},6207:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(43967),T=P(function(d,c,A,h,f,S,O){return A==null&&(A=c),u(d,"scrollFactorX",c,h,S,O),u(d,"scrollFactorY",A,f,S,O)},"SetScrollFactor");o.exports=T},6607:(o,m,s)=>{/** + */var u=s(43967),T=v(function(A,c,d,h,f,S,R){return d==null&&(d=c),u(A,"scrollFactorX",c,h,S,R),u(A,"scrollFactorY",d,f,S,R)},"SetScrollFactor");o.exports=T},6607:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(43967),T=P(function(d,c,A,h,f){return u(d,"scrollFactorX",c,A,h,f)},"SetScrollFactorX");o.exports=T},72248:(o,m,s)=>{/** + */var u=s(43967),T=v(function(A,c,d,h,f){return u(A,"scrollFactorX",c,d,h,f)},"SetScrollFactorX");o.exports=T},72248:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(43967),T=P(function(d,c,A,h,f){return u(d,"scrollFactorY",c,A,h,f)},"SetScrollFactorY");o.exports=T},14036:o=>{/** + */var u=s(43967),T=v(function(A,c,d,h,f){return u(A,"scrollFactorY",c,d,h,f)},"SetScrollFactorY");o.exports=T},14036:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d,c){for(var A=0;A{/** + */var O=v(function(s,u,T,A,c){for(var d=0;d{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(43967),T=P(function(d,c,A,h){return u(d,"visible",c,0,A,h)},"SetVisible");o.exports=T},77597:(o,m,s)=>{/** + */var u=s(43967),T=v(function(A,c,d,h){return u(A,"visible",c,0,d,h)},"SetVisible");o.exports=T},77597:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(43967),T=P(function(d,c,A,h,f){return u(d,"x",c,A,h,f)},"SetX");o.exports=T},83194:(o,m,s)=>{/** + */var u=s(43967),T=v(function(A,c,d,h,f){return u(A,"x",c,d,h,f)},"SetX");o.exports=T},83194:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(43967),T=P(function(d,c,A,h,f,S,O){return A==null&&(A=c),u(d,"x",c,h,S,O),u(d,"y",A,f,S,O)},"SetXY");o.exports=T},67678:(o,m,s)=>{/** + */var u=s(43967),T=v(function(A,c,d,h,f,S,R){return d==null&&(d=c),u(A,"x",c,h,S,R),u(A,"y",d,f,S,R)},"SetXY");o.exports=T},67678:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(43967),T=P(function(d,c,A,h,f){return u(d,"y",c,A,h,f)},"SetY");o.exports=T},35850:(o,m,s)=>{/** + */var u=s(43967),T=v(function(A,c,d,h,f){return u(A,"y",c,d,h,f)},"SetY");o.exports=T},35850:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(26099),T=P(function(d,c,A,h,f){h===void 0&&(h=0),f===void 0&&(f=new u);var S,O,L=d.length;if(L===1)S=d[0].x,O=d[0].y,d[0].x=c,d[0].y=A;else{var p=1,N=0;h===0&&(N=L-1,p=L-2),S=d[N].x,O=d[N].y,d[N].x=c,d[N].y=A;for(var g=0;g=L||p===-1)){var C=d[p],v=C.x,M=C.y;C.x=S,C.y=O,S=v,O=M,h===0?p--:p++}}return f.x=S,f.y=O,f},"ShiftPosition");o.exports=T},8628:(o,m,s)=>{/** + */var u=s(26099),T=v(function(A,c,d,h,f){h===void 0&&(h=0),f===void 0&&(f=new u);var S,R,L=A.length;if(L===1)S=A[0].x,R=A[0].y,A[0].x=c,A[0].y=d;else{var p=1,N=0;h===0&&(N=L-1,p=L-2),S=A[N].x,R=A[N].y,A[N].x=c,A[N].y=d;for(var g=0;g=L||p===-1)){var C=A[p],P=C.x,M=C.y;C.x=S,C.y=R,S=P,R=M,h===0?p--:p++}}return f.x=S,f.y=R,f},"ShiftPosition");o.exports=T},8628:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(33680),T=P(function(d){return u(d)},"Shuffle");o.exports=T},21837:(o,m,s)=>{/** + */var u=s(33680),T=v(function(A){return u(A)},"Shuffle");o.exports=T},21837:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(7602),T=P(function(d,c,A,h,f){f===void 0&&(f=!1);var S=Math.abs(h-A)/d.length,O;if(f)for(O=0;O{/** + */var u=s(7602),T=v(function(A,c,d,h,f){f===void 0&&(f=!1);var S=Math.abs(h-d)/A.length,R;if(f)for(R=0;R{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(54261),T=P(function(d,c,A,h,f){f===void 0&&(f=!1);var S=Math.abs(h-A)/d.length,O;if(f)for(O=0;O{/** + */var u=s(54261),T=v(function(A,c,d,h,f){f===void 0&&(f=!1);var S=Math.abs(h-d)/A.length,R;if(f)for(R=0;R{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d,c){if(c===void 0&&(c=!1),s.length===0)return s;if(s.length===1)return c?s[0][u]+=(d+T)/2:s[0][u]=(d+T)/2,s;var A=Math.abs(d-T)/(s.length-1),h;if(c)for(h=0;h{/** + */var O=v(function(s,u,T,A,c){if(c===void 0&&(c=!1),s.length===0)return s;if(s.length===1)return c?s[0][u]+=(A+T)/2:s[0][u]=(A+T)/2,s;var d=Math.abs(A-T)/(s.length-1),h;if(c)for(h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){for(var u=0;u{/** + */var O=v(function(s){for(var u=0;u{/** * @author Richard Davey * @author samme * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(15994),T=P(function(d,c,A){A===void 0&&(A=0);for(var h=0;h{/** + */var u=s(15994),T=v(function(A,c,d){d===void 0&&(d=0);for(var h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={AlignTo:s(11517),Angle:s(80318),Call:s(60757),GetFirst:s(69927),GetLast:s(32265),GridAlign:s(94420),IncAlpha:s(41721),IncX:s(67285),IncXY:s(9074),IncY:s(75222),PlaceOnCircle:s(22983),PlaceOnEllipse:s(95253),PlaceOnLine:s(88505),PlaceOnRectangle:s(41346),PlaceOnTriangle:s(11575),PlayAnimation:s(29953),PropertyValueInc:s(66979),PropertyValueSet:s(43967),RandomCircle:s(88926),RandomEllipse:s(33286),RandomLine:s(96e3),RandomRectangle:s(28789),RandomTriangle:s(97154),Rotate:s(20510),RotateAround:s(91051),RotateAroundDistance:s(76332),ScaleX:s(61619),ScaleXY:s(94868),ScaleY:s(95532),SetAlpha:s(8689),SetBlendMode:s(2645),SetDepth:s(32372),SetHitArea:s(85373),SetOrigin:s(81583),SetRotation:s(79939),SetScale:s(2699),SetScaleX:s(98739),SetScaleY:s(98476),SetScrollFactor:s(6207),SetScrollFactorX:s(6607),SetScrollFactorY:s(72248),SetTint:s(14036),SetVisible:s(50159),SetX:s(77597),SetXY:s(83194),SetY:s(67678),ShiftPosition:s(35850),Shuffle:s(8628),SmootherStep:s(21910),SmoothStep:s(21837),Spread:s(62054),ToggleVisible:s(79815),WrapInRectangle:s(39665)}},42099:(o,m,s)=>{/** + */o.exports={AlignTo:s(11517),Angle:s(80318),Call:s(60757),GetFirst:s(69927),GetLast:s(32265),GridAlign:s(94420),IncAlpha:s(41721),IncX:s(67285),IncXY:s(9074),IncY:s(75222),PlaceOnCircle:s(22983),PlaceOnEllipse:s(95253),PlaceOnLine:s(88505),PlaceOnRectangle:s(41346),PlaceOnTriangle:s(11575),PlayAnimation:s(29953),PropertyValueInc:s(66979),PropertyValueSet:s(43967),RandomCircle:s(88926),RandomEllipse:s(33286),RandomLine:s(96e3),RandomRectangle:s(28789),RandomTriangle:s(97154),Rotate:s(20510),RotateAround:s(91051),RotateAroundDistance:s(76332),ScaleX:s(61619),ScaleXY:s(94868),ScaleY:s(95532),SetAlpha:s(8689),SetBlendMode:s(2645),SetDepth:s(32372),SetHitArea:s(85373),SetOrigin:s(81583),SetRotation:s(79939),SetScale:s(2699),SetScaleX:s(98739),SetScaleY:s(98476),SetScrollFactor:s(6207),SetScrollFactorX:s(6607),SetScrollFactorY:s(72248),SetTint:s(14036),SetVisible:s(50159),SetX:s(77597),SetXY:s(83194),SetY:s(67678),ShiftPosition:s(35850),Shuffle:s(8628),SmootherStep:s(21910),SmoothStep:s(21837),Spread:s(62054),ToggleVisible:s(79815),WrapInRectangle:s(39665)}},42099:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(45319),T=s(83419),d=s(74943),c=s(81957),A=s(41138),h=s(35154),f=s(90126),S=new T({initialize:P(function(L,p,N){this.manager=L,this.key=p,this.type="frame",this.frames=this.getFrames(L.textureManager,h(N,"frames",[]),h(N,"defaultTextureKey",null),h(N,"sortFrames",!0)),this.frameRate=h(N,"frameRate",null),this.duration=h(N,"duration",null),this.msPerFrame,this.skipMissedFrames=h(N,"skipMissedFrames",!0),this.delay=h(N,"delay",0),this.repeat=h(N,"repeat",0),this.repeatDelay=h(N,"repeatDelay",0),this.yoyo=h(N,"yoyo",!1),this.showBeforeDelay=h(N,"showBeforeDelay",!1),this.showOnStart=h(N,"showOnStart",!1),this.hideOnComplete=h(N,"hideOnComplete",!1),this.randomFrame=h(N,"randomFrame",!1),this.paused=!1,this.calculateDuration(this,this.getTotalFrames(),this.duration,this.frameRate),this.manager.on&&(this.manager.on(d.PAUSE_ALL,this.pause,this),this.manager.on(d.RESUME_ALL,this.resume,this))},"Animation"),getTotalFrames:function(){return this.frames.length},calculateDuration:function(O,L,p,N){p===null&&N===null?(O.frameRate=24,O.duration=24/L*1e3):p&&N===null?(O.duration=p,O.frameRate=L/(p/1e3)):(O.frameRate=N,O.duration=L/N*1e3),O.msPerFrame=1e3/O.frameRate},addFrame:function(O){return this.addFrameAt(this.frames.length,O)},addFrameAt:function(O,L){var p=this.getFrames(this.manager.textureManager,L);if(p.length>0){if(O===0)this.frames=p.concat(this.frames);else if(O===this.frames.length)this.frames=this.frames.concat(p);else{var N=this.frames.slice(0,O),g=this.frames.slice(O);this.frames=N.concat(p,g)}this.updateFrameSequence()}return this},checkFrame:function(O){return O>=0&&O0){v.isLast=!0,v.nextFrame=g[0],g[0].prevFrame=v;var k=1/(g.length-1);for(D=0;D0?O.inReverse&&O.forward?O.forward=!1:this.repeatAnimation(O):O.complete():this.updateAndGetNextTick(O,L.nextFrame)},handleYoyoFrame:function(O,L){if(L||(L=!1),O.inReverse===!L&&O.repeatCounter>0){(O.repeatDelay===0||O.pendingRepeat)&&(O.forward=L),this.repeatAnimation(O);return}if(O.inReverse!==L&&O.repeatCounter===0){O.complete();return}O.forward=L;var p=L?O.currentFrame.nextFrame:O.currentFrame.prevFrame;this.updateAndGetNextTick(O,p)},getLastFrame:function(){return this.frames[this.frames.length-1]},previousFrame:function(O){var L=O.currentFrame;L.isFirst?O.yoyo?this.handleYoyoFrame(O,!0):O.repeatCounter>0?O.inReverse&&!O.forward?this.repeatAnimation(O):(O.forward=!0,this.repeatAnimation(O)):O.complete():this.updateAndGetNextTick(O,L.prevFrame)},updateAndGetNextTick:function(O,L){O.setCurrentFrame(L),this.getNextTick(O)},removeFrame:function(O){var L=this.frames.indexOf(O);return L!==-1&&this.removeFrameAt(L),this},removeFrameAt:function(O){return this.frames.splice(O,1),this.updateFrameSequence(),this},repeatAnimation:function(O){if(O._pendingStop===2){if(O._pendingStopValue===0)return O.stop();O._pendingStopValue--}O.repeatDelay>0&&!O.pendingRepeat?(O.pendingRepeat=!0,O.accumulator-=O.nextTick,O.nextTick+=O.repeatDelay):(O.repeatCounter--,O.forward?O.setCurrentFrame(O.currentFrame.nextFrame):O.setCurrentFrame(O.currentFrame.prevFrame),O.isPlaying&&(this.getNextTick(O),O.handleRepeat()))},toJSON:function(){var O={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,randomFrame:this.randomFrame,hideOnComplete:this.hideOnComplete};return this.frames.forEach(function(L){O.frames.push(L.toJSON())}),O},updateFrameSequence:function(){for(var O=this.frames.length,L=1/(O-1),p,N=0;N1?(p.isLast=!0,p.prevFrame=this.frames[O-2],p.nextFrame=this.frames[0]):O>1&&(p.prevFrame=this.frames[N-1],p.nextFrame=this.frames[N+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(d.PAUSE_ALL,this.pause,this),this.manager.off(d.RESUME_ALL,this.resume,this)),this.manager.remove(this.key);for(var O=0;O{/** + */var u=s(45319),T=s(83419),A=s(74943),c=s(81957),d=s(41138),h=s(35154),f=s(90126),S=new T({initialize:v(function(L,p,N){this.manager=L,this.key=p,this.type="frame",this.frames=this.getFrames(L.textureManager,h(N,"frames",[]),h(N,"defaultTextureKey",null),h(N,"sortFrames",!0)),this.frameRate=h(N,"frameRate",null),this.duration=h(N,"duration",null),this.msPerFrame,this.skipMissedFrames=h(N,"skipMissedFrames",!0),this.delay=h(N,"delay",0),this.repeat=h(N,"repeat",0),this.repeatDelay=h(N,"repeatDelay",0),this.yoyo=h(N,"yoyo",!1),this.showBeforeDelay=h(N,"showBeforeDelay",!1),this.showOnStart=h(N,"showOnStart",!1),this.hideOnComplete=h(N,"hideOnComplete",!1),this.randomFrame=h(N,"randomFrame",!1),this.paused=!1,this.calculateDuration(this,this.getTotalFrames(),this.duration,this.frameRate),this.manager.on&&(this.manager.on(A.PAUSE_ALL,this.pause,this),this.manager.on(A.RESUME_ALL,this.resume,this))},"Animation"),getTotalFrames:function(){return this.frames.length},calculateDuration:function(R,L,p,N){p===null&&N===null?(R.frameRate=24,R.duration=24/L*1e3):p&&N===null?(R.duration=p,R.frameRate=L/(p/1e3)):(R.frameRate=N,R.duration=L/N*1e3),R.msPerFrame=1e3/R.frameRate},addFrame:function(R){return this.addFrameAt(this.frames.length,R)},addFrameAt:function(R,L){var p=this.getFrames(this.manager.textureManager,L);if(p.length>0){if(R===0)this.frames=p.concat(this.frames);else if(R===this.frames.length)this.frames=this.frames.concat(p);else{var N=this.frames.slice(0,R),g=this.frames.slice(R);this.frames=N.concat(p,g)}this.updateFrameSequence()}return this},checkFrame:function(R){return R>=0&&R0){P.isLast=!0,P.nextFrame=g[0],g[0].prevFrame=P;var x=1/(g.length-1);for(D=0;D0?R.inReverse&&R.forward?R.forward=!1:this.repeatAnimation(R):R.complete():this.updateAndGetNextTick(R,L.nextFrame)},handleYoyoFrame:function(R,L){if(L||(L=!1),R.inReverse===!L&&R.repeatCounter>0){(R.repeatDelay===0||R.pendingRepeat)&&(R.forward=L),this.repeatAnimation(R);return}if(R.inReverse!==L&&R.repeatCounter===0){R.complete();return}R.forward=L;var p=L?R.currentFrame.nextFrame:R.currentFrame.prevFrame;this.updateAndGetNextTick(R,p)},getLastFrame:function(){return this.frames[this.frames.length-1]},previousFrame:function(R){var L=R.currentFrame;L.isFirst?R.yoyo?this.handleYoyoFrame(R,!0):R.repeatCounter>0?R.inReverse&&!R.forward?this.repeatAnimation(R):(R.forward=!0,this.repeatAnimation(R)):R.complete():this.updateAndGetNextTick(R,L.prevFrame)},updateAndGetNextTick:function(R,L){R.setCurrentFrame(L),this.getNextTick(R)},removeFrame:function(R){var L=this.frames.indexOf(R);return L!==-1&&this.removeFrameAt(L),this},removeFrameAt:function(R){return this.frames.splice(R,1),this.updateFrameSequence(),this},repeatAnimation:function(R){if(R._pendingStop===2){if(R._pendingStopValue===0)return R.stop();R._pendingStopValue--}R.repeatDelay>0&&!R.pendingRepeat?(R.pendingRepeat=!0,R.accumulator-=R.nextTick,R.nextTick+=R.repeatDelay):(R.repeatCounter--,R.forward?R.setCurrentFrame(R.currentFrame.nextFrame):R.setCurrentFrame(R.currentFrame.prevFrame),R.isPlaying&&(this.getNextTick(R),R.handleRepeat()))},toJSON:function(){var R={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,randomFrame:this.randomFrame,hideOnComplete:this.hideOnComplete};return this.frames.forEach(function(L){R.frames.push(L.toJSON())}),R},updateFrameSequence:function(){for(var R=this.frames.length,L=1/(R-1),p,N=0;N1?(p.isLast=!0,p.prevFrame=this.frames[R-2],p.nextFrame=this.frames[0]):R>1&&(p.prevFrame=this.frames[N-1],p.nextFrame=this.frames[N+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(A.PAUSE_ALL,this.pause,this),this.manager.off(A.RESUME_ALL,this.resume,this)),this.manager.remove(this.key);for(var R=0;R{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=new u({initialize:P(function(c,A,h,f,S){S===void 0&&(S=!1),this.textureKey=c,this.textureFrame=A,this.index=h,this.frame=f,this.isFirst=!1,this.isLast=!1,this.prevFrame=null,this.nextFrame=null,this.duration=0,this.progress=0,this.isKeyFrame=S},"AnimationFrame"),toJSON:function(){return{key:this.textureKey,frame:this.textureFrame,duration:this.duration,keyframe:this.isKeyFrame}},destroy:function(){this.frame=void 0}});o.exports=T},60848:(o,m,s)=>{/** + */var u=s(83419),T=new u({initialize:v(function(c,d,h,f,S){S===void 0&&(S=!1),this.textureKey=c,this.textureFrame=d,this.index=h,this.frame=f,this.isFirst=!1,this.isLast=!1,this.prevFrame=null,this.nextFrame=null,this.duration=0,this.progress=0,this.isKeyFrame=S},"AnimationFrame"),toJSON:function(){return{key:this.textureKey,frame:this.textureFrame,duration:this.duration,keyframe:this.isKeyFrame}},destroy:function(){this.frame=void 0}});o.exports=T},60848:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(42099),T=s(83419),d=s(90330),c=s(50792),A=s(74943),h=s(8443),f=s(95540),S=s(35154),O=s(36383),L=s(20283),p=s(41836),N=new T({Extends:c,initialize:P(function(C){c.call(this),this.game=C,this.textureManager=null,this.globalTimeScale=1,this.anims=new d,this.mixes=new d,this.paused=!1,this.name="AnimationManager",C.events.once(h.BOOT,this.boot,this)},"AnimationManager"),boot:function(){this.textureManager=this.game.textures,this.game.events.once(h.DESTROY,this.destroy,this)},addMix:function(g,C,v){var M=this.anims,D=this.mixes,G=typeof g=="string"?g:g.key,H=typeof C=="string"?C:C.key;if(M.has(G)&&M.has(H)){var B=D.get(G);B||(B={}),B[H]=v,D.set(G,B)}return this},removeMix:function(g,C){var v=this.mixes,M=typeof g=="string"?g:g.key,D=v.get(M);if(D)if(C){var G=typeof C=="string"?C:C.key;D.hasOwnProperty(G)&&delete D[G]}else C||v.delete(M);return this},getMix:function(g,C){var v=this.mixes,M=typeof g=="string"?g:g.key,D=typeof C=="string"?C:C.key,G=v.get(M);return G&&G.hasOwnProperty(D)?G[D]:0},add:function(g,C){return this.anims.has(g)?(console.warn("Animation key exists: "+g),this):(C.key=g,this.anims.set(g,C),this.emit(A.ADD_ANIMATION,g,C),this)},exists:function(g){return this.anims.has(g)},createFromAseprite:function(g,C,v){var M=[],D=this.game.cache.json.get(g);if(!D)return console.warn("No Aseprite data found for: "+g),M;var G=this,H=S(D,"meta",null),B=S(D,"frames",null);if(H&&B){var _=S(H,"frameTags",[]);_.forEach(function(w){var b=[],F=f(w,"name",null),k=f(w,"from",0),V=f(w,"to",0),Z=f(w,"direction","forward");if(F&&(!C||C&&C.indexOf(F)>-1)){for(var $=0,Q=k;Q<=V;Q++){var te=Q.toString(),z=B[te];if(z){var j=f(z,"duration",O.MAX_SAFE_INTEGER);b.push({key:g,frame:te,duration:j}),$+=j}}Z==="reverse"&&(b=b.reverse());var x={key:F,frames:b,duration:$,yoyo:Z==="pingpong"},X;v?v.anims&&(X=v.anims.create(x)):X=G.create(x),X&&M.push(X)}})}return M},create:function(g){var C=g.key,v=!1;return C&&(v=this.get(C),v?console.warn("AnimationManager key already exists: "+C):(v=new u(this,C,g),this.anims.set(C,v),this.emit(A.ADD_ANIMATION,C,v))),v},fromJSON:function(g,C){C===void 0&&(C=!1),C&&this.anims.clear(),typeof g=="string"&&(g=JSON.parse(g));var v=[];if(g.hasOwnProperty("anims")&&Array.isArray(g.anims)){for(var M=0;M{/** + */var u=s(42099),T=s(83419),A=s(90330),c=s(50792),d=s(74943),h=s(8443),f=s(95540),S=s(35154),R=s(36383),L=s(20283),p=s(41836),N=new T({Extends:c,initialize:v(function(C){c.call(this),this.game=C,this.textureManager=null,this.globalTimeScale=1,this.anims=new A,this.mixes=new A,this.paused=!1,this.name="AnimationManager",C.events.once(h.BOOT,this.boot,this)},"AnimationManager"),boot:function(){this.textureManager=this.game.textures,this.game.events.once(h.DESTROY,this.destroy,this)},addMix:function(g,C,P){var M=this.anims,D=this.mixes,G=typeof g=="string"?g:g.key,H=typeof C=="string"?C:C.key;if(M.has(G)&&M.has(H)){var B=D.get(G);B||(B={}),B[H]=P,D.set(G,B)}return this},removeMix:function(g,C){var P=this.mixes,M=typeof g=="string"?g:g.key,D=P.get(M);if(D)if(C){var G=typeof C=="string"?C:C.key;D.hasOwnProperty(G)&&delete D[G]}else C||P.delete(M);return this},getMix:function(g,C){var P=this.mixes,M=typeof g=="string"?g:g.key,D=typeof C=="string"?C:C.key,G=P.get(M);return G&&G.hasOwnProperty(D)?G[D]:0},add:function(g,C){return this.anims.has(g)?(console.warn("Animation key exists: "+g),this):(C.key=g,this.anims.set(g,C),this.emit(d.ADD_ANIMATION,g,C),this)},exists:function(g){return this.anims.has(g)},createFromAseprite:function(g,C,P){var M=[],D=this.game.cache.json.get(g);if(!D)return console.warn("No Aseprite data found for: "+g),M;var G=this,H=S(D,"meta",null),B=S(D,"frames",null);if(H&&B){var b=S(H,"frameTags",[]);b.forEach(function(w){var _=[],F=f(w,"name",null),x=f(w,"from",0),V=f(w,"to",0),Z=f(w,"direction","forward");if(F&&(!C||C&&C.indexOf(F)>-1)){for(var $=0,Q=x;Q<=V;Q++){var te=Q.toString(),z=B[te];if(z){var j=f(z,"duration",R.MAX_SAFE_INTEGER);_.push({key:g,frame:te,duration:j}),$+=j}}Z==="reverse"&&(_=_.reverse());var k={key:F,frames:_,duration:$,yoyo:Z==="pingpong"},X;P?P.anims&&(X=P.anims.create(k)):X=G.create(k),X&&M.push(X)}})}return M},create:function(g){var C=g.key,P=!1;return C&&(P=this.get(C),P?console.warn("AnimationManager key already exists: "+C):(P=new u(this,C,g),this.anims.set(C,P),this.emit(d.ADD_ANIMATION,C,P))),P},fromJSON:function(g,C){C===void 0&&(C=!1),C&&this.anims.clear(),typeof g=="string"&&(g=JSON.parse(g));var P=[];if(g.hasOwnProperty("anims")&&Array.isArray(g.anims)){for(var M=0;M{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(42099),T=s(30976),d=s(83419),c=s(90330),A=s(74943),h=s(95540),f=new d({initialize:P(function(O){this.parent=O,this.animationManager=O.scene.sys.anims,this.animationManager.on(A.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.randomFrame=!1,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},"AnimationState"),chain:function(S){var O=this.parent;if(S===void 0)return this.nextAnimsQueue.length=0,this.nextAnim=null,O;Array.isArray(S)||(S=[S]);for(var L=0;LN&&(v=0),this.randomFrame&&(v=T(0,N-1));var M=p.frames[v];v===0&&!this.forward&&(M=p.getLastFrame()),this.currentFrame=M}return this.parent},pause:function(S){return this._paused||(this._paused=!0,this._wasPlaying=this.isPlaying,this.isPlaying=!1),S!==void 0&&this.setCurrentFrame(S),this.parent},resume:function(S){return this._paused&&(this._paused=!1,this.isPlaying=this._wasPlaying),S!==void 0&&this.setCurrentFrame(S),this.parent},playAfterDelay:function(S,O){if(!this.isPlaying)this.delayCounter=O,this.play(S,!0);else{var L=this.nextAnim,p=this.nextAnimsQueue;L&&p.unshift(L),this.nextAnim=S,this._pendingStop=1,this._pendingStopValue=O}return this.parent},playAfterRepeat:function(S,O){if(O===void 0&&(O=1),!this.isPlaying)this.play(S);else{var L=this.nextAnim,p=this.nextAnimsQueue;L&&p.unshift(L),this.repeatCounter!==-1&&O>this.repeatCounter&&(O=this.repeatCounter),this.nextAnim=S,this._pendingStop=2,this._pendingStopValue=O}return this.parent},play:function(S,O){O===void 0&&(O=!1);var L=this.currentAnim,p=this.parent,N=typeof S=="string"?S:S.key;if(O&&this.isPlaying&&L.key===N)return p;if(L&&this.isPlaying){var g=this.animationManager.getMix(L.key,S);if(g>0)return this.playAfterDelay(S,g)}return this.forward=!0,this.inReverse=!1,this._paused=!1,this._wasPlaying=!0,this.startAnimation(S)},playReverse:function(S,O){O===void 0&&(O=!1);var L=typeof S=="string"?S:S.key;return O&&this.isPlaying&&this.currentAnim.key===L?this.parent:(this.forward=!1,this.inReverse=!0,this._paused=!1,this._wasPlaying=!0,this.startAnimation(S))},startAnimation:function(S){this.load(S);var O=this.currentAnim,L=this.parent;return O&&(this.repeatCounter=this.repeat===-1?Number.MAX_VALUE:this.repeat,O.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)),L},handleStart:function(){this.showOnStart&&this.parent.setVisible(!0),this.setCurrentFrame(this.currentFrame),this.hasStarted=!0,this.emitEvents(A.ANIMATION_START)},handleRepeat:function(){this.pendingRepeat=!1,this.emitEvents(A.ANIMATION_REPEAT)},handleStop:function(){this._pendingStop=0,this.isPlaying=!1,this.emitEvents(A.ANIMATION_STOP)},handleComplete:function(){this._pendingStop=0,this.isPlaying=!1,this.hideOnComplete&&this.parent.setVisible(!1),this.emitEvents(A.ANIMATION_COMPLETE,A.ANIMATION_COMPLETE_KEY)},emitEvents:function(S,O){var L=this.currentAnim;if(L){var p=this.currentFrame,N=this.parent,g=p.textureFrame;N.emit(S,L,p,N,g),O&&N.emit(O+L.key,L,p,N,g)}},reverse:function(){return this.isPlaying&&(this.inReverse=!this.inReverse,this.forward=!this.forward),this.parent},getProgress:function(){var S=this.currentFrame;if(!S)return 0;var O=S.progress;return this.inReverse&&(O*=-1),O},setProgress:function(S){return this.forward||(S=1-S),this.setCurrentFrame(this.currentAnim.getFrameByProgress(S)),this.parent},setRepeat:function(S){return this.repeatCounter=S===-1?Number.MAX_VALUE:S,this.parent},globalRemove:function(S,O){O===void 0&&(O=this.currentAnim),this.isPlaying&&O.key===this.currentAnim.key&&(this.stop(),this.setCurrentFrame(this.currentAnim.frames[0]))},restart:function(S,O){S===void 0&&(S=!1),O===void 0&&(O=!1);var L=this.currentAnim,p=this.parent;return L?(O&&(this.repeatCounter=this.repeat===-1?Number.MAX_VALUE:this.repeat),L.getFirstTick(this),this.emitEvents(A.ANIMATION_RESTART),this.isPlaying=!0,this.pendingRepeat=!1,this.hasStarted=!S,this._pendingStop=0,this._pendingStopValue=0,this._paused=!1,this.setCurrentFrame(L.frames[0]),this.parent):p},complete:function(){if(this._pendingStop=0,this.isPlaying=!1,this.currentAnim&&this.handleComplete(),this.nextAnim){var S=this.nextAnim;this.nextAnim=this.nextAnimsQueue.length>0?this.nextAnimsQueue.shift():null,this.play(S)}return this.parent},stop:function(){if(this._pendingStop=0,this.isPlaying=!1,this.delayCounter=0,this.currentAnim&&this.handleStop(),this.nextAnim){var S=this.nextAnim;this.nextAnim=this.nextAnimsQueue.shift(),this.play(S)}return this.parent},stopAfterDelay:function(S){return this._pendingStop=1,this._pendingStopValue=S,this.parent},stopAfterRepeat:function(S){return S===void 0&&(S=1),this.repeatCounter!==-1&&S>this.repeatCounter&&(S=this.repeatCounter),this._pendingStop=2,this._pendingStopValue=S,this.parent},stopOnFrame:function(S){return this._pendingStop=3,this._pendingStopValue=S,this.parent},getTotalFrames:function(){return this.currentAnim?this.currentAnim.getTotalFrames():0},update:function(S,O){var L=this.currentAnim;if(!(!this.isPlaying||!L||L.paused)){if(this.accumulator+=O*this.timeScale*this.animationManager.globalTimeScale,this._pendingStop===1&&(this._pendingStopValue-=O,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?L.nextFrame(this):L.previousFrame(this),this.isPlaying&&this._pendingStop===0&&this.skipMissedFrames&&this.accumulator>this.nextTick)){var p=0;do this.forward?L.nextFrame(this):L.previousFrame(this),p++;while(this.isPlaying&&this.accumulator>this.nextTick&&p<60)}}},setCurrentFrame:function(S){var O=this.parent;return this.currentFrame=S,O.texture=S.frame.texture,O.frame=S.frame,O.isCropped&&O.frame.updateCropUVs(O._crop,O.flipX,O.flipY),S.setAlpha&&(O.alpha=S.alpha),O.setSizeToFrame(),O._originComponent&&(S.frame.customPivot?O.setOrigin(S.frame.pivotX,S.frame.pivotY):O.updateDisplayOrigin()),this.isPlaying&&this.hasStarted&&(this.emitEvents(A.ANIMATION_UPDATE),this._pendingStop===3&&this._pendingStopValue===S&&this.stop()),O},nextFrame:function(){return this.currentAnim&&this.currentAnim.nextFrame(this),this.parent},previousFrame:function(){return this.currentAnim&&this.currentAnim.previousFrame(this),this.parent},get:function(S){return this.anims?this.anims.get(S):null},exists:function(S){return this.anims?this.anims.has(S):!1},create:function(S){var O=S.key,L=!1;return O&&(L=this.get(O),L?console.warn("Animation key already exists: "+O):(L=new u(this,O,S),this.anims||(this.anims=new c),this.anims.set(O,L))),L},createFromAseprite:function(S,O){return this.animationManager.createFromAseprite(S,O,this.parent)},generateFrameNames:function(S,O){return this.animationManager.generateFrameNames(S,O)},generateFrameNumbers:function(S,O){return this.animationManager.generateFrameNumbers(S,O)},remove:function(S){var O=this.get(S);return O&&(this.currentAnim===O&&this.stop(),this.anims.delete(S)),O},destroy:function(){this.animationManager.off(A.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}}});o.exports=f},57090:o=>{/** + */var u=s(42099),T=s(30976),A=s(83419),c=s(90330),d=s(74943),h=s(95540),f=new A({initialize:v(function(R){this.parent=R,this.animationManager=R.scene.sys.anims,this.animationManager.on(d.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.randomFrame=!1,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},"AnimationState"),chain:function(S){var R=this.parent;if(S===void 0)return this.nextAnimsQueue.length=0,this.nextAnim=null,R;Array.isArray(S)||(S=[S]);for(var L=0;LN&&(P=0),this.randomFrame&&(P=T(0,N-1));var M=p.frames[P];P===0&&!this.forward&&(M=p.getLastFrame()),this.currentFrame=M}return this.parent},pause:function(S){return this._paused||(this._paused=!0,this._wasPlaying=this.isPlaying,this.isPlaying=!1),S!==void 0&&this.setCurrentFrame(S),this.parent},resume:function(S){return this._paused&&(this._paused=!1,this.isPlaying=this._wasPlaying),S!==void 0&&this.setCurrentFrame(S),this.parent},playAfterDelay:function(S,R){if(!this.isPlaying)this.delayCounter=R,this.play(S,!0);else{var L=this.nextAnim,p=this.nextAnimsQueue;L&&p.unshift(L),this.nextAnim=S,this._pendingStop=1,this._pendingStopValue=R}return this.parent},playAfterRepeat:function(S,R){if(R===void 0&&(R=1),!this.isPlaying)this.play(S);else{var L=this.nextAnim,p=this.nextAnimsQueue;L&&p.unshift(L),this.repeatCounter!==-1&&R>this.repeatCounter&&(R=this.repeatCounter),this.nextAnim=S,this._pendingStop=2,this._pendingStopValue=R}return this.parent},play:function(S,R){R===void 0&&(R=!1);var L=this.currentAnim,p=this.parent,N=typeof S=="string"?S:S.key;if(R&&this.isPlaying&&L.key===N)return p;if(L&&this.isPlaying){var g=this.animationManager.getMix(L.key,S);if(g>0)return this.playAfterDelay(S,g)}return this.forward=!0,this.inReverse=!1,this._paused=!1,this._wasPlaying=!0,this.startAnimation(S)},playReverse:function(S,R){R===void 0&&(R=!1);var L=typeof S=="string"?S:S.key;return R&&this.isPlaying&&this.currentAnim.key===L?this.parent:(this.forward=!1,this.inReverse=!0,this._paused=!1,this._wasPlaying=!0,this.startAnimation(S))},startAnimation:function(S){this.load(S);var R=this.currentAnim,L=this.parent;return R&&(this.repeatCounter=this.repeat===-1?Number.MAX_VALUE:this.repeat,R.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)),L},handleStart:function(){this.showOnStart&&this.parent.setVisible(!0),this.setCurrentFrame(this.currentFrame),this.hasStarted=!0,this.emitEvents(d.ANIMATION_START)},handleRepeat:function(){this.pendingRepeat=!1,this.emitEvents(d.ANIMATION_REPEAT)},handleStop:function(){this._pendingStop=0,this.isPlaying=!1,this.emitEvents(d.ANIMATION_STOP)},handleComplete:function(){this._pendingStop=0,this.isPlaying=!1,this.hideOnComplete&&this.parent.setVisible(!1),this.emitEvents(d.ANIMATION_COMPLETE,d.ANIMATION_COMPLETE_KEY)},emitEvents:function(S,R){var L=this.currentAnim;if(L){var p=this.currentFrame,N=this.parent,g=p.textureFrame;N.emit(S,L,p,N,g),R&&N.emit(R+L.key,L,p,N,g)}},reverse:function(){return this.isPlaying&&(this.inReverse=!this.inReverse,this.forward=!this.forward),this.parent},getProgress:function(){var S=this.currentFrame;if(!S)return 0;var R=S.progress;return this.inReverse&&(R*=-1),R},setProgress:function(S){return this.forward||(S=1-S),this.setCurrentFrame(this.currentAnim.getFrameByProgress(S)),this.parent},setRepeat:function(S){return this.repeatCounter=S===-1?Number.MAX_VALUE:S,this.parent},globalRemove:function(S,R){R===void 0&&(R=this.currentAnim),this.isPlaying&&R.key===this.currentAnim.key&&(this.stop(),this.setCurrentFrame(this.currentAnim.frames[0]))},restart:function(S,R){S===void 0&&(S=!1),R===void 0&&(R=!1);var L=this.currentAnim,p=this.parent;return L?(R&&(this.repeatCounter=this.repeat===-1?Number.MAX_VALUE:this.repeat),L.getFirstTick(this),this.emitEvents(d.ANIMATION_RESTART),this.isPlaying=!0,this.pendingRepeat=!1,this.hasStarted=!S,this._pendingStop=0,this._pendingStopValue=0,this._paused=!1,this.setCurrentFrame(L.frames[0]),this.parent):p},complete:function(){if(this._pendingStop=0,this.isPlaying=!1,this.currentAnim&&this.handleComplete(),this.nextAnim){var S=this.nextAnim;this.nextAnim=this.nextAnimsQueue.length>0?this.nextAnimsQueue.shift():null,this.play(S)}return this.parent},stop:function(){if(this._pendingStop=0,this.isPlaying=!1,this.delayCounter=0,this.currentAnim&&this.handleStop(),this.nextAnim){var S=this.nextAnim;this.nextAnim=this.nextAnimsQueue.shift(),this.play(S)}return this.parent},stopAfterDelay:function(S){return this._pendingStop=1,this._pendingStopValue=S,this.parent},stopAfterRepeat:function(S){return S===void 0&&(S=1),this.repeatCounter!==-1&&S>this.repeatCounter&&(S=this.repeatCounter),this._pendingStop=2,this._pendingStopValue=S,this.parent},stopOnFrame:function(S){return this._pendingStop=3,this._pendingStopValue=S,this.parent},getTotalFrames:function(){return this.currentAnim?this.currentAnim.getTotalFrames():0},update:function(S,R){var L=this.currentAnim;if(!(!this.isPlaying||!L||L.paused)){if(this.accumulator+=R*this.timeScale*this.animationManager.globalTimeScale,this._pendingStop===1&&(this._pendingStopValue-=R,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?L.nextFrame(this):L.previousFrame(this),this.isPlaying&&this._pendingStop===0&&this.skipMissedFrames&&this.accumulator>this.nextTick)){var p=0;do this.forward?L.nextFrame(this):L.previousFrame(this),p++;while(this.isPlaying&&this.accumulator>this.nextTick&&p<60)}}},setCurrentFrame:function(S){var R=this.parent;return this.currentFrame=S,R.texture=S.frame.texture,R.frame=S.frame,R.isCropped&&R.frame.updateCropUVs(R._crop,R.flipX,R.flipY),S.setAlpha&&(R.alpha=S.alpha),R.setSizeToFrame(),R._originComponent&&(S.frame.customPivot?R.setOrigin(S.frame.pivotX,S.frame.pivotY):R.updateDisplayOrigin()),this.isPlaying&&this.hasStarted&&(this.emitEvents(d.ANIMATION_UPDATE),this._pendingStop===3&&this._pendingStopValue===S&&this.stop()),R},nextFrame:function(){return this.currentAnim&&this.currentAnim.nextFrame(this),this.parent},previousFrame:function(){return this.currentAnim&&this.currentAnim.previousFrame(this),this.parent},get:function(S){return this.anims?this.anims.get(S):null},exists:function(S){return this.anims?this.anims.has(S):!1},create:function(S){var R=S.key,L=!1;return R&&(L=this.get(R),L?console.warn("Animation key already exists: "+R):(L=new u(this,R,S),this.anims||(this.anims=new c),this.anims.set(R,L))),L},createFromAseprite:function(S,R){return this.animationManager.createFromAseprite(S,R,this.parent)},generateFrameNames:function(S,R){return this.animationManager.generateFrameNames(S,R)},generateFrameNumbers:function(S,R){return this.animationManager.generateFrameNumbers(S,R)},remove:function(S){var R=this.get(S);return R&&(this.currentAnim===R&&this.stop(),this.anims.delete(S)),R},destroy:function(){this.animationManager.off(d.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}}});o.exports=f},57090:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -275,23 +275,23 @@ var dne=Object.defineProperty;var P=(n,t)=>dne(n,"name",{value:t,configurable:!0 * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports="resumeall"},74943:(o,m,s)=>{/** + */o.exports="resumeall"},74943:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={ADD_ANIMATION:s(57090),ANIMATION_COMPLETE:s(25312),ANIMATION_COMPLETE_KEY:s(89580),ANIMATION_REPEAT:s(52860),ANIMATION_RESTART:s(63850),ANIMATION_START:s(99085),ANIMATION_STOP:s(28087),ANIMATION_UPDATE:s(1794),PAUSE_ALL:s(52562),REMOVE_ANIMATION:s(57953),RESUME_ALL:s(68339)}},60421:(o,m,s)=>{/** + */o.exports={ADD_ANIMATION:s(57090),ANIMATION_COMPLETE:s(25312),ANIMATION_COMPLETE_KEY:s(89580),ANIMATION_REPEAT:s(52860),ANIMATION_RESTART:s(63850),ANIMATION_START:s(99085),ANIMATION_STOP:s(28087),ANIMATION_UPDATE:s(1794),PAUSE_ALL:s(52562),REMOVE_ANIMATION:s(57953),RESUME_ALL:s(68339)}},60421:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={Animation:s(42099),AnimationFrame:s(41138),AnimationManager:s(60848),AnimationState:s(9674),Events:s(74943)}},2161:(o,m,s)=>{/** + */o.exports={Animation:s(42099),AnimationFrame:s(41138),AnimationManager:s(60848),AnimationState:s(9674),Events:s(74943)}},2161:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(90330),d=s(50792),c=s(24736),A=new u({initialize:P(function(){this.entries=new T,this.events=new d},"BaseCache"),add:function(h,f){return this.entries.set(h,f),this.events.emit(c.ADD,this,h,f),this},has:function(h){return this.entries.has(h)},exists:function(h){return this.entries.has(h)},get:function(h){return this.entries.get(h)},remove:function(h){var f=this.get(h);return f&&(this.entries.delete(h),this.events.emit(c.REMOVE,this,h,f.data)),this},getKeys:function(){return this.entries.keys()},destroy:function(){this.entries.clear(),this.events.removeAllListeners(),this.entries=null,this.events=null}});o.exports=A},24047:(o,m,s)=>{/** + */var u=s(83419),T=s(90330),A=s(50792),c=s(24736),d=new u({initialize:v(function(){this.entries=new T,this.events=new A},"BaseCache"),add:function(h,f){return this.entries.set(h,f),this.events.emit(c.ADD,this,h,f),this},has:function(h){return this.entries.has(h)},exists:function(h){return this.entries.has(h)},get:function(h){return this.entries.get(h)},remove:function(h){var f=this.get(h);return f&&(this.entries.delete(h),this.events.emit(c.REMOVE,this,h,f.data)),this},getKeys:function(){return this.entries.keys()},destroy:function(){this.entries.clear(),this.events.removeAllListeners(),this.entries=null,this.events=null}});o.exports=d},24047:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2161),T=s(83419),d=s(8443),c=new T({initialize:P(function(h){this.game=h,this.binary=new u,this.bitmapFont=new u,this.json=new u,this.physics=new u,this.shader=new u,this.audio=new u,this.video=new u,this.text=new u,this.html=new u,this.obj=new u,this.tilemap=new u,this.xml=new u,this.custom={},this.game.events.once(d.DESTROY,this.destroy,this)},"CacheManager"),addCustom:function(A){return this.custom.hasOwnProperty(A)||(this.custom[A]=new u),this.custom[A]},destroy:function(){for(var A=["binary","bitmapFont","json","physics","shader","audio","video","text","html","obj","tilemap","xml"],h=0;h{/** + */var u=s(2161),T=s(83419),A=s(8443),c=new T({initialize:v(function(h){this.game=h,this.binary=new u,this.bitmapFont=new u,this.json=new u,this.physics=new u,this.shader=new u,this.audio=new u,this.video=new u,this.text=new u,this.html=new u,this.obj=new u,this.tilemap=new u,this.xml=new u,this.custom={},this.game.events.once(A.DESTROY,this.destroy,this)},"CacheManager"),addCustom:function(d){return this.custom.hasOwnProperty(d)||(this.custom[d]=new u),this.custom[d]},destroy:function(){for(var d=["binary","bitmapFont","json","physics","shader","audio","video","text","html","obj","tilemap","xml"],h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -299,51 +299,51 @@ var dne=Object.defineProperty;var P=(n,t)=>dne(n,"name",{value:t,configurable:!0 * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports="remove"},24736:(o,m,s)=>{/** + */o.exports="remove"},24736:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={ADD:s(51464),REMOVE:s(59261)}},83388:(o,m,s)=>{/** + */o.exports={ADD:s(51464),REMOVE:s(59261)}},83388:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={BaseCache:s(2161),CacheManager:s(24047),Events:s(24736)}},71911:(o,m,s)=>{/** + */o.exports={BaseCache:s(2161),CacheManager:s(24047),Events:s(24736)}},71911:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(31401),d=s(39506),c=s(50792),A=s(19715),h=s(87841),f=s(61340),S=s(80333),O=s(26099),L=new u({Extends:c,Mixins:[T.AlphaSingle,T.Visible],initialize:P(function(N,g,C,v){N===void 0&&(N=0),g===void 0&&(g=0),C===void 0&&(C=0),v===void 0&&(v=0),c.call(this),this.scene,this.sceneManager,this.scaleManager,this.cameraManager,this.id=0,this.name="",this.roundPixels=!1,this.useBounds=!1,this.worldView=new h,this.dirty=!0,this._x=N,this._y=g,this._width=C,this._height=v,this._bounds=new h,this._scrollX=0,this._scrollY=0,this._zoomX=1,this._zoomY=1,this._rotation=0,this.matrix=new f,this.transparent=!0,this.backgroundColor=S("rgba(0,0,0,0)"),this.disableCull=!1,this.culledObjects=[],this.midPoint=new O(C/2,v/2),this.originX=.5,this.originY=.5,this._customViewport=!1,this.mask=null,this._maskCamera=null,this.renderList=[],this.isSceneCamera=!0},"BaseCamera"),addToRenderList:function(p){this.renderList.push(p)},setOrigin:function(p,N){return p===void 0&&(p=.5),N===void 0&&(N=p),this.originX=p,this.originY=N,this},getScroll:function(p,N,g){g===void 0&&(g=new O);var C=this.width*.5,v=this.height*.5;return g.x=p-C,g.y=N-v,this.useBounds&&(g.x=this.clampX(g.x),g.y=this.clampY(g.y)),g},centerOnX:function(p){var N=this.width*.5;return this.midPoint.x=p,this.scrollX=p-N,this.useBounds&&(this.scrollX=this.clampX(this.scrollX)),this},centerOnY:function(p){var N=this.height*.5;return this.midPoint.y=p,this.scrollY=p-N,this.useBounds&&(this.scrollY=this.clampY(this.scrollY)),this},centerOn:function(p,N){return this.centerOnX(p),this.centerOnY(N),this},centerToBounds:function(){if(this.useBounds){var p=this._bounds,N=this.width*.5,g=this.height*.5;this.midPoint.set(p.centerX,p.centerY),this.scrollX=p.centerX-N,this.scrollY=p.centerY-g}return this},centerToSize:function(){return this.scrollX=this.width*.5,this.scrollY=this.height*.5,this},cull:function(p){if(this.disableCull)return p;var N=this.matrix.matrix,g=N[0],C=N[1],v=N[2],M=N[3],D=g*M-C*v;if(!D)return p;var G=N[4],H=N[5],B=this.scrollX,_=this.scrollY,w=this.width,b=this.height,F=this.y,k=F+b,V=this.x,Z=V+w,$=this.culledObjects,Q=p.length;D=1/D,$.length=0;for(var te=0;teV&&JF&&aev&&(p=v),p},clampY:function(p){var N=this._bounds,g=this.displayHeight,C=N.y+(g-this.height)/2,v=Math.max(C,C+N.height-g);return pv&&(p=v),p},removeBounds:function(){return this.useBounds=!1,this.dirty=!0,this._bounds.setEmpty(),this},setAngle:function(p){return p===void 0&&(p=0),this.rotation=d(p),this},setBackgroundColor:function(p){return p===void 0&&(p="rgba(0,0,0,0)"),this.backgroundColor=S(p),this.transparent=this.backgroundColor.alpha===0,this},setBounds:function(p,N,g,C,v){return v===void 0&&(v=!1),this._bounds.setTo(p,N,g,C),this.dirty=!0,this.useBounds=!0,v?this.centerToBounds():(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},getBounds:function(p){p===void 0&&(p=new h);var N=this._bounds;return p.setTo(N.x,N.y,N.width,N.height),p},setName:function(p){return p===void 0&&(p=""),this.name=p,this},setPosition:function(p,N){return N===void 0&&(N=p),this.x=p,this.y=N,this},setRotation:function(p){return p===void 0&&(p=0),this.rotation=p,this},setRoundPixels:function(p){return this.roundPixels=p,this},setScene:function(p,N){N===void 0&&(N=!0),this.scene&&this._customViewport&&this.sceneManager.customViewports--,this.scene=p,this.isSceneCamera=N;var g=p.sys;return this.sceneManager=g.game.scene,this.scaleManager=g.scale,this.cameraManager=g.cameras,this.updateSystem(),this},setScroll:function(p,N){return N===void 0&&(N=p),this.scrollX=p,this.scrollY=N,this},setSize:function(p,N){return N===void 0&&(N=p),this.width=p,this.height=N,this},setViewport:function(p,N,g,C){return this.x=p,this.y=N,this.width=g,this.height=C,this},setZoom:function(p,N){return p===void 0&&(p=1),N===void 0&&(N=p),p===0&&(p=.001),N===0&&(N=.001),this.zoomX=p,this.zoomY=N,this},setMask:function(p,N){return N===void 0&&(N=!0),this.mask=p,this._maskCamera=N?this.cameraManager.default:this,this},clearMask:function(p){return p===void 0&&(p=!1),p&&this.mask&&this.mask.destroy(),this.mask=null,this},toJSON:function(){var p={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&&(p.bounds={x:this._bounds.x,y:this._bounds.y,width:this._bounds.width,height:this._bounds.height}),p},update:function(){},setIsSceneCamera:function(p){return this.isSceneCamera=p,this},updateSystem:function(){if(!(!this.scaleManager||!this.isSceneCamera)){var p=this._x!==0||this._y!==0||this.scaleManager.width!==this._width||this.scaleManager.height!==this._height,N=this.sceneManager;p&&!this._customViewport?N.customViewports++:!p&&this._customViewport&&N.customViewports--,this.dirty=!0,this._customViewport=p}},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(p){this._x=p,this.updateSystem()}},y:{get:function(){return this._y},set:function(p){this._y=p,this.updateSystem()}},width:{get:function(){return this._width},set:function(p){this._width=p,this.updateSystem()}},height:{get:function(){return this._height},set:function(p){this._height=p,this.updateSystem()}},scrollX:{get:function(){return this._scrollX},set:function(p){p!==this._scrollX&&(this._scrollX=p,this.dirty=!0)}},scrollY:{get:function(){return this._scrollY},set:function(p){p!==this._scrollY&&(this._scrollY=p,this.dirty=!0)}},zoom:{get:function(){return(this._zoomX+this._zoomY)/2},set:function(p){this._zoomX=p,this._zoomY=p,this.dirty=!0}},zoomX:{get:function(){return this._zoomX},set:function(p){this._zoomX=p,this.dirty=!0}},zoomY:{get:function(){return this._zoomY},set:function(p){this._zoomY=p,this.dirty=!0}},rotation:{get:function(){return this._rotation},set:function(p){this._rotation=p,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}}});o.exports=L},38058:(o,m,s)=>{/** + */var u=s(83419),T=s(31401),A=s(39506),c=s(50792),d=s(19715),h=s(87841),f=s(61340),S=s(80333),R=s(26099),L=new u({Extends:c,Mixins:[T.AlphaSingle,T.Visible],initialize:v(function(N,g,C,P){N===void 0&&(N=0),g===void 0&&(g=0),C===void 0&&(C=0),P===void 0&&(P=0),c.call(this),this.scene,this.sceneManager,this.scaleManager,this.cameraManager,this.id=0,this.name="",this.roundPixels=!1,this.useBounds=!1,this.worldView=new h,this.dirty=!0,this._x=N,this._y=g,this._width=C,this._height=P,this._bounds=new h,this._scrollX=0,this._scrollY=0,this._zoomX=1,this._zoomY=1,this._rotation=0,this.matrix=new f,this.transparent=!0,this.backgroundColor=S("rgba(0,0,0,0)"),this.disableCull=!1,this.culledObjects=[],this.midPoint=new R(C/2,P/2),this.originX=.5,this.originY=.5,this._customViewport=!1,this.mask=null,this._maskCamera=null,this.renderList=[],this.isSceneCamera=!0},"BaseCamera"),addToRenderList:function(p){this.renderList.push(p)},setOrigin:function(p,N){return p===void 0&&(p=.5),N===void 0&&(N=p),this.originX=p,this.originY=N,this},getScroll:function(p,N,g){g===void 0&&(g=new R);var C=this.width*.5,P=this.height*.5;return g.x=p-C,g.y=N-P,this.useBounds&&(g.x=this.clampX(g.x),g.y=this.clampY(g.y)),g},centerOnX:function(p){var N=this.width*.5;return this.midPoint.x=p,this.scrollX=p-N,this.useBounds&&(this.scrollX=this.clampX(this.scrollX)),this},centerOnY:function(p){var N=this.height*.5;return this.midPoint.y=p,this.scrollY=p-N,this.useBounds&&(this.scrollY=this.clampY(this.scrollY)),this},centerOn:function(p,N){return this.centerOnX(p),this.centerOnY(N),this},centerToBounds:function(){if(this.useBounds){var p=this._bounds,N=this.width*.5,g=this.height*.5;this.midPoint.set(p.centerX,p.centerY),this.scrollX=p.centerX-N,this.scrollY=p.centerY-g}return this},centerToSize:function(){return this.scrollX=this.width*.5,this.scrollY=this.height*.5,this},cull:function(p){if(this.disableCull)return p;var N=this.matrix.matrix,g=N[0],C=N[1],P=N[2],M=N[3],D=g*M-C*P;if(!D)return p;var G=N[4],H=N[5],B=this.scrollX,b=this.scrollY,w=this.width,_=this.height,F=this.y,x=F+_,V=this.x,Z=V+w,$=this.culledObjects,Q=p.length;D=1/D,$.length=0;for(var te=0;teV&&JF&&neP&&(p=P),p},clampY:function(p){var N=this._bounds,g=this.displayHeight,C=N.y+(g-this.height)/2,P=Math.max(C,C+N.height-g);return pP&&(p=P),p},removeBounds:function(){return this.useBounds=!1,this.dirty=!0,this._bounds.setEmpty(),this},setAngle:function(p){return p===void 0&&(p=0),this.rotation=A(p),this},setBackgroundColor:function(p){return p===void 0&&(p="rgba(0,0,0,0)"),this.backgroundColor=S(p),this.transparent=this.backgroundColor.alpha===0,this},setBounds:function(p,N,g,C,P){return P===void 0&&(P=!1),this._bounds.setTo(p,N,g,C),this.dirty=!0,this.useBounds=!0,P?this.centerToBounds():(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},getBounds:function(p){p===void 0&&(p=new h);var N=this._bounds;return p.setTo(N.x,N.y,N.width,N.height),p},setName:function(p){return p===void 0&&(p=""),this.name=p,this},setPosition:function(p,N){return N===void 0&&(N=p),this.x=p,this.y=N,this},setRotation:function(p){return p===void 0&&(p=0),this.rotation=p,this},setRoundPixels:function(p){return this.roundPixels=p,this},setScene:function(p,N){N===void 0&&(N=!0),this.scene&&this._customViewport&&this.sceneManager.customViewports--,this.scene=p,this.isSceneCamera=N;var g=p.sys;return this.sceneManager=g.game.scene,this.scaleManager=g.scale,this.cameraManager=g.cameras,this.updateSystem(),this},setScroll:function(p,N){return N===void 0&&(N=p),this.scrollX=p,this.scrollY=N,this},setSize:function(p,N){return N===void 0&&(N=p),this.width=p,this.height=N,this},setViewport:function(p,N,g,C){return this.x=p,this.y=N,this.width=g,this.height=C,this},setZoom:function(p,N){return p===void 0&&(p=1),N===void 0&&(N=p),p===0&&(p=.001),N===0&&(N=.001),this.zoomX=p,this.zoomY=N,this},setMask:function(p,N){return N===void 0&&(N=!0),this.mask=p,this._maskCamera=N?this.cameraManager.default:this,this},clearMask:function(p){return p===void 0&&(p=!1),p&&this.mask&&this.mask.destroy(),this.mask=null,this},toJSON:function(){var p={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&&(p.bounds={x:this._bounds.x,y:this._bounds.y,width:this._bounds.width,height:this._bounds.height}),p},update:function(){},setIsSceneCamera:function(p){return this.isSceneCamera=p,this},updateSystem:function(){if(!(!this.scaleManager||!this.isSceneCamera)){var p=this._x!==0||this._y!==0||this.scaleManager.width!==this._width||this.scaleManager.height!==this._height,N=this.sceneManager;p&&!this._customViewport?N.customViewports++:!p&&this._customViewport&&N.customViewports--,this.dirty=!0,this._customViewport=p}},destroy:function(){this.emit(d.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(p){this._x=p,this.updateSystem()}},y:{get:function(){return this._y},set:function(p){this._y=p,this.updateSystem()}},width:{get:function(){return this._width},set:function(p){this._width=p,this.updateSystem()}},height:{get:function(){return this._height},set:function(p){this._height=p,this.updateSystem()}},scrollX:{get:function(){return this._scrollX},set:function(p){p!==this._scrollX&&(this._scrollX=p,this.dirty=!0)}},scrollY:{get:function(){return this._scrollY},set:function(p){p!==this._scrollY&&(this._scrollY=p,this.dirty=!0)}},zoom:{get:function(){return(this._zoomX+this._zoomY)/2},set:function(p){this._zoomX=p,this._zoomY=p,this.dirty=!0}},zoomX:{get:function(){return this._zoomX},set:function(p){this._zoomX=p,this.dirty=!0}},zoomY:{get:function(){return this._zoomY},set:function(p){this._zoomY=p,this.dirty=!0}},rotation:{get:function(){return this._rotation},set:function(p){this._rotation=p,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}}});o.exports=L},38058:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(71911),T=s(67502),d=s(45319),c=s(83419),A=s(31401),h=s(20052),f=s(19715),S=s(28915),O=s(87841),L=s(26099),p=new c({Extends:u,Mixins:[A.PostPipeline],initialize:P(function(g,C,v,M){u.call(this,g,C,v,M),this.initPostPipeline(),this.inputEnabled=!0,this.fadeEffect=new h.Fade(this),this.flashEffect=new h.Flash(this),this.shakeEffect=new h.Shake(this),this.panEffect=new h.Pan(this),this.rotateToEffect=new h.RotateTo(this),this.zoomEffect=new h.Zoom(this),this.lerp=new L(1,1),this.followOffset=new L,this.deadzone=null,this._follow=null},"Camera"),setDeadzone:function(N,g){if(N===void 0)this.deadzone=null;else{if(this.deadzone?(this.deadzone.width=N,this.deadzone.height=g):this.deadzone=new O(0,0,N,g),this._follow){var C=this.width/2,v=this.height/2,M=this._follow.x-this.followOffset.x,D=this._follow.y-this.followOffset.y;this.midPoint.set(M,D),this.scrollX=M-C,this.scrollY=D-v}T(this.deadzone,this.midPoint.x,this.midPoint.y)}return this},fadeIn:function(N,g,C,v,M,D){return this.fadeEffect.start(!1,N,g,C,v,!0,M,D)},fadeOut:function(N,g,C,v,M,D){return this.fadeEffect.start(!0,N,g,C,v,!0,M,D)},fadeFrom:function(N,g,C,v,M,D,G){return this.fadeEffect.start(!1,N,g,C,v,M,D,G)},fade:function(N,g,C,v,M,D,G){return this.fadeEffect.start(!0,N,g,C,v,M,D,G)},flash:function(N,g,C,v,M,D,G){return this.flashEffect.start(N,g,C,v,M,D,G)},shake:function(N,g,C,v,M){return this.shakeEffect.start(N,g,C,v,M)},pan:function(N,g,C,v,M,D,G){return this.panEffect.start(N,g,C,v,M,D,G)},rotateTo:function(N,g,C,v,M,D,G){return this.rotateToEffect.start(N,g,C,v,M,D,G)},zoomTo:function(N,g,C,v,M,D){return this.zoomEffect.start(N,g,C,v,M,D)},preRender:function(){this.renderList.length=0;var N=this.width,g=this.height,C=N*.5,v=g*.5,M=this.zoom,D=this.matrix,G=N*this.originX,H=g*this.originY,B=this._follow,_=this.deadzone,w=this.scrollX,b=this.scrollY;_&&T(_,this.midPoint.x,this.midPoint.y);var F=!1;if(B&&!this.panEffect.isRunning){var k=this.lerp,V=B.x-this.followOffset.x,Z=B.y-this.followOffset.y;_?(V<_.x?w=S(w,w-(_.x-V),k.x):V>_.right&&(w=S(w,w+(V-_.right),k.x)),Z<_.y?b=S(b,b-(_.y-Z),k.y):Z>_.bottom&&(b=S(b,b+(Z-_.bottom),k.y))):(w=S(w,V-G,k.x),b=S(b,Z-H,k.y)),F=!0}this.useBounds&&(w=this.clampX(w),b=this.clampY(b)),this.scrollX=w,this.scrollY=b;var $=w+C,Q=b+v;this.midPoint.set($,Q);var te=N/M,z=g/M,j=Math.floor($-te/2),x=Math.floor(Q-z/2);this.worldView.setTo(j,x,te,z),D.applyITRS(Math.floor(this.x+G),Math.floor(this.y+H),this.rotation,M,M),D.translate(-G,-H),this.shakeEffect.preRender(),F&&this.emit(f.FOLLOW_UPDATE,this,B)},setLerp:function(N,g){return N===void 0&&(N=1),g===void 0&&(g=N),this.lerp.set(N,g),this},setFollowOffset:function(N,g){return N===void 0&&(N=0),g===void 0&&(g=0),this.followOffset.set(N,g),this},startFollow:function(N,g,C,v,M,D){g===void 0&&(g=!1),C===void 0&&(C=1),v===void 0&&(v=C),M===void 0&&(M=0),D===void 0&&(D=M),this._follow=N,this.roundPixels=g,C=d(C,0,1),v=d(v,0,1),this.lerp.set(C,v),this.followOffset.set(M,D);var G=this.width/2,H=this.height/2,B=N.x-M,_=N.y-D;return this.midPoint.set(B,_),this.scrollX=B-G,this.scrollY=_-H,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(N,g){this.visible&&(this.rotateToEffect.update(N,g),this.panEffect.update(N,g),this.zoomEffect.update(N,g),this.shakeEffect.update(N,g),this.flashEffect.update(N,g),this.fadeEffect.update(N,g))},destroy:function(){this.resetFX(),u.prototype.destroy.call(this),this._follow=null,this.deadzone=null}});o.exports=p},32743:(o,m,s)=>{/** + */var u=s(71911),T=s(67502),A=s(45319),c=s(83419),d=s(31401),h=s(20052),f=s(19715),S=s(28915),R=s(87841),L=s(26099),p=new c({Extends:u,Mixins:[d.PostPipeline],initialize:v(function(g,C,P,M){u.call(this,g,C,P,M),this.initPostPipeline(),this.inputEnabled=!0,this.fadeEffect=new h.Fade(this),this.flashEffect=new h.Flash(this),this.shakeEffect=new h.Shake(this),this.panEffect=new h.Pan(this),this.rotateToEffect=new h.RotateTo(this),this.zoomEffect=new h.Zoom(this),this.lerp=new L(1,1),this.followOffset=new L,this.deadzone=null,this._follow=null},"Camera"),setDeadzone:function(N,g){if(N===void 0)this.deadzone=null;else{if(this.deadzone?(this.deadzone.width=N,this.deadzone.height=g):this.deadzone=new R(0,0,N,g),this._follow){var C=this.width/2,P=this.height/2,M=this._follow.x-this.followOffset.x,D=this._follow.y-this.followOffset.y;this.midPoint.set(M,D),this.scrollX=M-C,this.scrollY=D-P}T(this.deadzone,this.midPoint.x,this.midPoint.y)}return this},fadeIn:function(N,g,C,P,M,D){return this.fadeEffect.start(!1,N,g,C,P,!0,M,D)},fadeOut:function(N,g,C,P,M,D){return this.fadeEffect.start(!0,N,g,C,P,!0,M,D)},fadeFrom:function(N,g,C,P,M,D,G){return this.fadeEffect.start(!1,N,g,C,P,M,D,G)},fade:function(N,g,C,P,M,D,G){return this.fadeEffect.start(!0,N,g,C,P,M,D,G)},flash:function(N,g,C,P,M,D,G){return this.flashEffect.start(N,g,C,P,M,D,G)},shake:function(N,g,C,P,M){return this.shakeEffect.start(N,g,C,P,M)},pan:function(N,g,C,P,M,D,G){return this.panEffect.start(N,g,C,P,M,D,G)},rotateTo:function(N,g,C,P,M,D,G){return this.rotateToEffect.start(N,g,C,P,M,D,G)},zoomTo:function(N,g,C,P,M,D){return this.zoomEffect.start(N,g,C,P,M,D)},preRender:function(){this.renderList.length=0;var N=this.width,g=this.height,C=N*.5,P=g*.5,M=this.zoom,D=this.matrix,G=N*this.originX,H=g*this.originY,B=this._follow,b=this.deadzone,w=this.scrollX,_=this.scrollY;b&&T(b,this.midPoint.x,this.midPoint.y);var F=!1;if(B&&!this.panEffect.isRunning){var x=this.lerp,V=B.x-this.followOffset.x,Z=B.y-this.followOffset.y;b?(Vb.right&&(w=S(w,w+(V-b.right),x.x)),Zb.bottom&&(_=S(_,_+(Z-b.bottom),x.y))):(w=S(w,V-G,x.x),_=S(_,Z-H,x.y)),F=!0}this.useBounds&&(w=this.clampX(w),_=this.clampY(_)),this.scrollX=w,this.scrollY=_;var $=w+C,Q=_+P;this.midPoint.set($,Q);var te=N/M,z=g/M,j=Math.floor($-te/2),k=Math.floor(Q-z/2);this.worldView.setTo(j,k,te,z),D.applyITRS(Math.floor(this.x+G),Math.floor(this.y+H),this.rotation,M,M),D.translate(-G,-H),this.shakeEffect.preRender(),F&&this.emit(f.FOLLOW_UPDATE,this,B)},setLerp:function(N,g){return N===void 0&&(N=1),g===void 0&&(g=N),this.lerp.set(N,g),this},setFollowOffset:function(N,g){return N===void 0&&(N=0),g===void 0&&(g=0),this.followOffset.set(N,g),this},startFollow:function(N,g,C,P,M,D){g===void 0&&(g=!1),C===void 0&&(C=1),P===void 0&&(P=C),M===void 0&&(M=0),D===void 0&&(D=M),this._follow=N,this.roundPixels=g,C=A(C,0,1),P=A(P,0,1),this.lerp.set(C,P),this.followOffset.set(M,D);var G=this.width/2,H=this.height/2,B=N.x-M,b=N.y-D;return this.midPoint.set(B,b),this.scrollX=B-G,this.scrollY=b-H,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(N,g){this.visible&&(this.rotateToEffect.update(N,g),this.panEffect.update(N,g),this.zoomEffect.update(N,g),this.shakeEffect.update(N,g),this.flashEffect.update(N,g),this.fadeEffect.update(N,g))},destroy:function(){this.resetFX(),u.prototype.destroy.call(this),this._follow=null,this.deadzone=null}});o.exports=p},32743:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(38058),T=s(83419),d=s(95540),c=s(37277),A=s(37303),h=s(97480),f=s(44594),S=new T({initialize:P(function(L){this.scene=L,this.systems=L.sys,this.roundPixels=L.sys.game.config.roundPixels,this.cameras=[],this.main,this.default,L.sys.events.once(f.BOOT,this.boot,this),L.sys.events.on(f.START,this.start,this)},"CameraManager"),boot:function(){var O=this.systems;O.settings.cameras?this.fromJSON(O.settings.cameras):this.add(),this.main=this.cameras[0],this.default=new u(0,0,O.scale.width,O.scale.height).setScene(this.scene),O.game.scale.on(h.RESIZE,this.onResize,this),this.systems.events.once(f.DESTROY,this.destroy,this)},start:function(){if(!this.main){var O=this.systems;O.settings.cameras?this.fromJSON(O.settings.cameras):this.add(),this.main=this.cameras[0]}var L=this.systems.events;L.on(f.UPDATE,this.update,this),L.once(f.SHUTDOWN,this.shutdown,this)},add:function(O,L,p,N,g,C){O===void 0&&(O=0),L===void 0&&(L=0),p===void 0&&(p=this.scene.sys.scale.width),N===void 0&&(N=this.scene.sys.scale.height),g===void 0&&(g=!1),C===void 0&&(C="");var v=new u(O,L,p,N);return v.setName(C),v.setScene(this.scene),v.setRoundPixels(this.roundPixels),v.id=this.getNextID(),this.cameras.push(v),g&&(this.main=v),v},addExisting:function(O,L){L===void 0&&(L=!1);var p=this.cameras.indexOf(O);return p===-1?(O.id=this.getNextID(),O.setRoundPixels(this.roundPixels),this.cameras.push(O),L&&(this.main=O),O):null},getNextID:function(){for(var O=this.cameras,L=1,p=0;p<32;p++){for(var N=!1,g=0;g0){C.preRender();var v=this.getVisibleChildren(L.getChildren(),C);O.render(p,v,C)}}},getVisibleChildren:function(O,L){return O.filter(function(p){return p.willRender(L)})},resetAll:function(){for(var O=0;O{/** + */var u=s(38058),T=s(83419),A=s(95540),c=s(37277),d=s(37303),h=s(97480),f=s(44594),S=new T({initialize:v(function(L){this.scene=L,this.systems=L.sys,this.roundPixels=L.sys.game.config.roundPixels,this.cameras=[],this.main,this.default,L.sys.events.once(f.BOOT,this.boot,this),L.sys.events.on(f.START,this.start,this)},"CameraManager"),boot:function(){var R=this.systems;R.settings.cameras?this.fromJSON(R.settings.cameras):this.add(),this.main=this.cameras[0],this.default=new u(0,0,R.scale.width,R.scale.height).setScene(this.scene),R.game.scale.on(h.RESIZE,this.onResize,this),this.systems.events.once(f.DESTROY,this.destroy,this)},start:function(){if(!this.main){var R=this.systems;R.settings.cameras?this.fromJSON(R.settings.cameras):this.add(),this.main=this.cameras[0]}var L=this.systems.events;L.on(f.UPDATE,this.update,this),L.once(f.SHUTDOWN,this.shutdown,this)},add:function(R,L,p,N,g,C){R===void 0&&(R=0),L===void 0&&(L=0),p===void 0&&(p=this.scene.sys.scale.width),N===void 0&&(N=this.scene.sys.scale.height),g===void 0&&(g=!1),C===void 0&&(C="");var P=new u(R,L,p,N);return P.setName(C),P.setScene(this.scene),P.setRoundPixels(this.roundPixels),P.id=this.getNextID(),this.cameras.push(P),g&&(this.main=P),P},addExisting:function(R,L){L===void 0&&(L=!1);var p=this.cameras.indexOf(R);return p===-1?(R.id=this.getNextID(),R.setRoundPixels(this.roundPixels),this.cameras.push(R),L&&(this.main=R),R):null},getNextID:function(){for(var R=this.cameras,L=1,p=0;p<32;p++){for(var N=!1,g=0;g0){C.preRender();var P=this.getVisibleChildren(L.getChildren(),C);R.render(p,P,C)}}},getVisibleChildren:function(R,L){return R.filter(function(p){return p.willRender(L)})},resetAll:function(){for(var R=0;R{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(45319),T=s(83419),d=s(19715),c=new T({initialize:P(function(h){this.camera=h,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},"Fade"),start:function(A,h,f,S,O,L,p,N){if(A===void 0&&(A=!0),h===void 0&&(h=1e3),f===void 0&&(f=0),S===void 0&&(S=0),O===void 0&&(O=0),L===void 0&&(L=!1),p===void 0&&(p=null),N===void 0&&(N=this.camera.scene),!L&&this.isRunning)return this.camera;this.isRunning=!0,this.isComplete=!1,this.duration=h,this.direction=A,this.progress=0,this.red=f,this.green=S,this.blue=O,this.alpha=A?Number.MIN_VALUE:1,this._elapsed=0,this._onUpdate=p,this._onUpdateScope=N;var g=A?d.FADE_OUT_START:d.FADE_IN_START;return this.camera.emit(g,this.camera,this,h,f,S,O),this.camera},update:function(A,h){this.isRunning&&(this._elapsed+=h,this.progress=u(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{/** + */var u=s(45319),T=s(83419),A=s(19715),c=new T({initialize:v(function(h){this.camera=h,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},"Fade"),start:function(d,h,f,S,R,L,p,N){if(d===void 0&&(d=!0),h===void 0&&(h=1e3),f===void 0&&(f=0),S===void 0&&(S=0),R===void 0&&(R=0),L===void 0&&(L=!1),p===void 0&&(p=null),N===void 0&&(N=this.camera.scene),!L&&this.isRunning)return this.camera;this.isRunning=!0,this.isComplete=!1,this.duration=h,this.direction=d,this.progress=0,this.red=f,this.green=S,this.blue=R,this.alpha=d?Number.MIN_VALUE:1,this._elapsed=0,this._onUpdate=p,this._onUpdateScope=N;var g=d?A.FADE_OUT_START:A.FADE_IN_START;return this.camera.emit(g,this.camera,this,h,f,S,R),this.camera},update:function(d,h){this.isRunning&&(this._elapsed+=h,this.progress=u(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(45319),T=s(83419),d=s(19715),c=new T({initialize:P(function(h){this.camera=h,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},"Flash"),start:function(A,h,f,S,O,L,p){return A===void 0&&(A=250),h===void 0&&(h=255),f===void 0&&(f=255),S===void 0&&(S=255),O===void 0&&(O=!1),L===void 0&&(L=null),p===void 0&&(p=this.camera.scene),!O&&this.isRunning?this.camera:(this.isRunning=!0,this.duration=A,this.progress=0,this.red=h,this.green=f,this.blue=S,this._alpha=this.alpha,this._elapsed=0,this._onUpdate=L,this._onUpdateScope=p,this.camera.emit(d.FLASH_START,this.camera,this,A,h,f,S),this.camera)},update:function(A,h){this.isRunning&&(this._elapsed+=h,this.progress=u(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{/** + */var u=s(45319),T=s(83419),A=s(19715),c=new T({initialize:v(function(h){this.camera=h,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},"Flash"),start:function(d,h,f,S,R,L,p){return d===void 0&&(d=250),h===void 0&&(h=255),f===void 0&&(f=255),S===void 0&&(S=255),R===void 0&&(R=!1),L===void 0&&(L=null),p===void 0&&(p=this.camera.scene),!R&&this.isRunning?this.camera:(this.isRunning=!0,this.duration=d,this.progress=0,this.red=h,this.green=f,this.blue=S,this._alpha=this.alpha,this._elapsed=0,this._onUpdate=L,this._onUpdateScope=p,this.camera.emit(A.FLASH_START,this.camera,this,d,h,f,S),this.camera)},update:function(d,h){this.isRunning&&(this._elapsed+=h,this.progress=u(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(45319),T=s(83419),d=s(62640),c=s(19715),A=s(26099),h=new T({initialize:P(function(S){this.camera=S,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},"Pan"),start:function(f,S,O,L,p,N,g){O===void 0&&(O=1e3),L===void 0&&(L=d.Linear),p===void 0&&(p=!1),N===void 0&&(N=null),g===void 0&&(g=this.camera.scene);var C=this.camera;return!p&&this.isRunning||(this.isRunning=!0,this.duration=O,this.progress=0,this.source.set(C.scrollX,C.scrollY),this.destination.set(f,S),C.getScroll(f,S,this.current),typeof L=="string"&&d.hasOwnProperty(L)?this.ease=d[L]:typeof L=="function"&&(this.ease=L),this._elapsed=0,this._onUpdate=N,this._onUpdateScope=g,this.camera.emit(c.PAN_START,this.camera,this,O,f,S)),C},update:function(f,S){if(this.isRunning){this._elapsed+=S;var O=u(this._elapsed/this.duration,0,1);this.progress=O;var L=this.camera;if(this._elapsed{/** + */var u=s(45319),T=s(83419),A=s(62640),c=s(19715),d=s(26099),h=new T({initialize:v(function(S){this.camera=S,this.isRunning=!1,this.duration=0,this.source=new d,this.current=new d,this.destination=new d,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},"Pan"),start:function(f,S,R,L,p,N,g){R===void 0&&(R=1e3),L===void 0&&(L=A.Linear),p===void 0&&(p=!1),N===void 0&&(N=null),g===void 0&&(g=this.camera.scene);var C=this.camera;return!p&&this.isRunning||(this.isRunning=!0,this.duration=R,this.progress=0,this.source.set(C.scrollX,C.scrollY),this.destination.set(f,S),C.getScroll(f,S,this.current),typeof L=="string"&&A.hasOwnProperty(L)?this.ease=A[L]:typeof L=="function"&&(this.ease=L),this._elapsed=0,this._onUpdate=N,this._onUpdateScope=g,this.camera.emit(c.PAN_START,this.camera,this,R,f,S)),C},update:function(f,S){if(this.isRunning){this._elapsed+=S;var R=u(this._elapsed/this.duration,0,1);this.progress=R;var L=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 u=s(45319),T=s(83419),d=s(19715),c=s(62640),A=new T({initialize:P(function(f){this.camera=f,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},"RotateTo"),start:function(h,f,S,O,L,p,N){S===void 0&&(S=1e3),O===void 0&&(O=c.Linear),L===void 0&&(L=!1),p===void 0&&(p=null),N===void 0&&(N=this.camera.scene),f===void 0&&(f=!1),this.shortestPath=f;var g=h;h<0?(g=-1*h,this.clockwise=!1):this.clockwise=!0;var C=360*Math.PI/180;g=g-Math.floor(g/C)*C;var v=this.camera;if(!L&&this.isRunning)return v;if(this.isRunning=!0,this.duration=S,this.progress=0,this.source=v.rotation,this.destination=g,typeof O=="string"&&c.hasOwnProperty(O)?this.ease=c[O]:typeof O=="function"&&(this.ease=O),this._elapsed=0,this._onUpdate=p,this._onUpdateScope=N,this.shortestPath){var M=0,D=0;this.destination>this.source?M=Math.abs(this.destination-this.source):M=Math.abs(this.destination+C)-this.source,this.source>this.destination?D=Math.abs(this.source-this.destination):D=Math.abs(this.source+C)-this.destination,MD&&(this.clockwise=!1)}return this.camera.emit(d.ROTATE_START,this.camera,this,S,g),v},update:function(h,f){if(this.isRunning){this._elapsed+=f;var S=u(this._elapsed/this.duration,0,1);this.progress=S;var O=this.camera;if(this._elapsed=C?p=Math.abs(g-C):p=Math.abs(g+N)-C;var v=0;this.clockwise?v=O.rotation+p*L:v=O.rotation-p*L,O.rotation=v,this._onUpdate&&this._onUpdate.call(this._onUpdateScope,O,S,v)}else O.rotation=this.destination,this._onUpdate&&this._onUpdate.call(this._onUpdateScope,O,S,this.destination),this.effectComplete()}},effectComplete:function(){this._onUpdate=null,this._onUpdateScope=null,this.isRunning=!1,this.camera.emit(d.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}});o.exports=A},30330:(o,m,s)=>{/** + */var u=s(45319),T=s(83419),A=s(19715),c=s(62640),d=new T({initialize:v(function(f){this.camera=f,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},"RotateTo"),start:function(h,f,S,R,L,p,N){S===void 0&&(S=1e3),R===void 0&&(R=c.Linear),L===void 0&&(L=!1),p===void 0&&(p=null),N===void 0&&(N=this.camera.scene),f===void 0&&(f=!1),this.shortestPath=f;var g=h;h<0?(g=-1*h,this.clockwise=!1):this.clockwise=!0;var C=360*Math.PI/180;g=g-Math.floor(g/C)*C;var P=this.camera;if(!L&&this.isRunning)return P;if(this.isRunning=!0,this.duration=S,this.progress=0,this.source=P.rotation,this.destination=g,typeof R=="string"&&c.hasOwnProperty(R)?this.ease=c[R]:typeof R=="function"&&(this.ease=R),this._elapsed=0,this._onUpdate=p,this._onUpdateScope=N,this.shortestPath){var M=0,D=0;this.destination>this.source?M=Math.abs(this.destination-this.source):M=Math.abs(this.destination+C)-this.source,this.source>this.destination?D=Math.abs(this.source-this.destination):D=Math.abs(this.source+C)-this.destination,MD&&(this.clockwise=!1)}return this.camera.emit(A.ROTATE_START,this.camera,this,S,g),P},update:function(h,f){if(this.isRunning){this._elapsed+=f;var S=u(this._elapsed/this.duration,0,1);this.progress=S;var R=this.camera;if(this._elapsed=C?p=Math.abs(g-C):p=Math.abs(g+N)-C;var P=0;this.clockwise?P=R.rotation+p*L:P=R.rotation-p*L,R.rotation=P,this._onUpdate&&this._onUpdate.call(this._onUpdateScope,R,S,P)}else R.rotation=this.destination,this._onUpdate&&this._onUpdate.call(this._onUpdateScope,R,S,this.destination),this.effectComplete()}},effectComplete:function(){this._onUpdate=null,this._onUpdateScope=null,this.isRunning=!1,this.camera.emit(A.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}});o.exports=d},30330:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(45319),T=s(83419),d=s(19715),c=s(26099),A=new T({initialize:P(function(f){this.camera=f,this.isRunning=!1,this.duration=0,this.intensity=new c,this.progress=0,this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate,this._onUpdateScope},"Shake"),start:function(h,f,S,O,L){return h===void 0&&(h=100),f===void 0&&(f=.05),S===void 0&&(S=!1),O===void 0&&(O=null),L===void 0&&(L=this.camera.scene),!S&&this.isRunning?this.camera:(this.isRunning=!0,this.duration=h,this.progress=0,typeof f=="number"?this.intensity.set(f):this.intensity.set(f.x,f.y),this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate=O,this._onUpdateScope=L,this.camera.emit(d.SHAKE_START,this.camera,this,h,f),this.camera)},preRender:function(){this.isRunning&&this.camera.matrix.translate(this._offsetX,this._offsetY)},update:function(h,f){if(this.isRunning)if(this._elapsed+=f,this.progress=u(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{/** + */var u=s(45319),T=s(83419),A=s(19715),c=s(26099),d=new T({initialize:v(function(f){this.camera=f,this.isRunning=!1,this.duration=0,this.intensity=new c,this.progress=0,this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate,this._onUpdateScope},"Shake"),start:function(h,f,S,R,L){return h===void 0&&(h=100),f===void 0&&(f=.05),S===void 0&&(S=!1),R===void 0&&(R=null),L===void 0&&(L=this.camera.scene),!S&&this.isRunning?this.camera:(this.isRunning=!0,this.duration=h,this.progress=0,typeof f=="number"?this.intensity.set(f):this.intensity.set(f.x,f.y),this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate=R,this._onUpdateScope=L,this.camera.emit(A.SHAKE_START,this.camera,this,h,f),this.camera)},preRender:function(){this.isRunning&&this.camera.matrix.translate(this._offsetX,this._offsetY)},update:function(h,f){if(this.isRunning)if(this._elapsed+=f,this.progress=u(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(45319),T=s(83419),d=s(62640),c=s(19715),A=new T({initialize:P(function(f){this.camera=f,this.isRunning=!1,this.duration=0,this.source=1,this.destination=1,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},"Zoom"),start:function(h,f,S,O,L,p){f===void 0&&(f=1e3),S===void 0&&(S=d.Linear),O===void 0&&(O=!1),L===void 0&&(L=null),p===void 0&&(p=this.camera.scene);var N=this.camera;return!O&&this.isRunning||(this.isRunning=!0,this.duration=f,this.progress=0,this.source=N.zoom,this.destination=h,typeof S=="string"&&d.hasOwnProperty(S)?this.ease=d[S]:typeof S=="function"&&(this.ease=S),this._elapsed=0,this._onUpdate=L,this._onUpdateScope=p,this.camera.emit(c.ZOOM_START,this.camera,this,f,h)),N},update:function(h,f){this.isRunning&&(this._elapsed+=f,this.progress=u(this._elapsed/this.duration,0,1),this._elapsed{/** + */var u=s(45319),T=s(83419),A=s(62640),c=s(19715),d=new T({initialize:v(function(f){this.camera=f,this.isRunning=!1,this.duration=0,this.source=1,this.destination=1,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},"Zoom"),start:function(h,f,S,R,L,p){f===void 0&&(f=1e3),S===void 0&&(S=A.Linear),R===void 0&&(R=!1),L===void 0&&(L=null),p===void 0&&(p=this.camera.scene);var N=this.camera;return!R&&this.isRunning||(this.isRunning=!0,this.duration=f,this.progress=0,this.source=N.zoom,this.destination=h,typeof S=="string"&&A.hasOwnProperty(S)?this.ease=A[S]:typeof S=="function"&&(this.ease=S),this._elapsed=0,this._onUpdate=L,this._onUpdateScope=p,this.camera.emit(c.ZOOM_START,this.camera,this,f,h)),N},update:function(h,f){this.isRunning&&(this._elapsed+=f,this.progress=u(this._elapsed/this.duration,0,1),this._elapsed{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -419,59 +419,59 @@ var dne=Object.defineProperty;var P=(n,t)=>dne(n,"name",{value:t,configurable:!0 * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports="camerazoomstart"},19715:(o,m,s)=>{/** + */o.exports="camerazoomstart"},19715:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={DESTROY:s(16438),FADE_IN_COMPLETE:s(32726),FADE_IN_START:s(87807),FADE_OUT_COMPLETE:s(45917),FADE_OUT_START:s(95666),FLASH_COMPLETE:s(47056),FLASH_START:s(91261),FOLLOW_UPDATE:s(45047),PAN_COMPLETE:s(81927),PAN_START:s(74264),POST_RENDER:s(54419),PRE_RENDER:s(79330),ROTATE_COMPLETE:s(93183),ROTATE_START:s(80112),SHAKE_COMPLETE:s(62252),SHAKE_START:s(86017),ZOOM_COMPLETE:s(539),ZOOM_START:s(51892)}},87969:(o,m,s)=>{/** + */o.exports={DESTROY:s(16438),FADE_IN_COMPLETE:s(32726),FADE_IN_START:s(87807),FADE_OUT_COMPLETE:s(45917),FADE_OUT_START:s(95666),FLASH_COMPLETE:s(47056),FLASH_START:s(91261),FOLLOW_UPDATE:s(45047),PAN_COMPLETE:s(81927),PAN_START:s(74264),POST_RENDER:s(54419),PRE_RENDER:s(79330),ROTATE_COMPLETE:s(93183),ROTATE_START:s(80112),SHAKE_COMPLETE:s(62252),SHAKE_START:s(86017),ZOOM_COMPLETE:s(539),ZOOM_START:s(51892)}},87969:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={Camera:s(38058),BaseCamera:s(71911),CameraManager:s(32743),Effects:s(20052),Events:s(19715)}},63091:(o,m,s)=>{/** + */o.exports={Camera:s(38058),BaseCamera:s(71911),CameraManager:s(32743),Effects:s(20052),Events:s(19715)}},63091:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(35154),d=new u({initialize:P(function(A){this.camera=T(A,"camera",null),this.left=T(A,"left",null),this.right=T(A,"right",null),this.up=T(A,"up",null),this.down=T(A,"down",null),this.zoomIn=T(A,"zoomIn",null),this.zoomOut=T(A,"zoomOut",null),this.zoomSpeed=T(A,"zoomSpeed",.01),this.minZoom=T(A,"minZoom",.001),this.maxZoom=T(A,"maxZoom",1e3),this.speedX=0,this.speedY=0;var h=T(A,"speed",null);typeof h=="number"?(this.speedX=h,this.speedY=h):(this.speedX=T(A,"speed.x",0),this.speedY=T(A,"speed.y",0)),this._zoom=0,this.active=this.camera!==null},"FixedKeyControl"),start:function(){return this.active=this.camera!==null,this},stop:function(){return this.active=!1,this},setCamera:function(c){return this.camera=c,this},update:function(c){if(this.active){c===void 0&&(c=1);var A=this.camera;this.up&&this.up.isDown?A.scrollY-=this.speedY*c|0:this.down&&this.down.isDown&&(A.scrollY+=this.speedY*c|0),this.left&&this.left.isDown?A.scrollX-=this.speedX*c|0:this.right&&this.right.isDown&&(A.scrollX+=this.speedX*c|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}});o.exports=d},58818:(o,m,s)=>{/** + */var u=s(83419),T=s(35154),A=new u({initialize:v(function(d){this.camera=T(d,"camera",null),this.left=T(d,"left",null),this.right=T(d,"right",null),this.up=T(d,"up",null),this.down=T(d,"down",null),this.zoomIn=T(d,"zoomIn",null),this.zoomOut=T(d,"zoomOut",null),this.zoomSpeed=T(d,"zoomSpeed",.01),this.minZoom=T(d,"minZoom",.001),this.maxZoom=T(d,"maxZoom",1e3),this.speedX=0,this.speedY=0;var h=T(d,"speed",null);typeof h=="number"?(this.speedX=h,this.speedY=h):(this.speedX=T(d,"speed.x",0),this.speedY=T(d,"speed.y",0)),this._zoom=0,this.active=this.camera!==null},"FixedKeyControl"),start:function(){return this.active=this.camera!==null,this},stop:function(){return this.active=!1,this},setCamera:function(c){return this.camera=c,this},update:function(c){if(this.active){c===void 0&&(c=1);var d=this.camera;this.up&&this.up.isDown?d.scrollY-=this.speedY*c|0:this.down&&this.down.isDown&&(d.scrollY+=this.speedY*c|0),this.left&&this.left.isDown?d.scrollX-=this.speedX*c|0:this.right&&this.right.isDown&&(d.scrollX+=this.speedX*c|0),this.zoomIn&&this.zoomIn.isDown?(d.zoom-=this.zoomSpeed,d.zoomthis.maxZoom&&(d.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}});o.exports=A},58818:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(35154),d=new u({initialize:P(function(A){this.camera=T(A,"camera",null),this.left=T(A,"left",null),this.right=T(A,"right",null),this.up=T(A,"up",null),this.down=T(A,"down",null),this.zoomIn=T(A,"zoomIn",null),this.zoomOut=T(A,"zoomOut",null),this.zoomSpeed=T(A,"zoomSpeed",.01),this.minZoom=T(A,"minZoom",.001),this.maxZoom=T(A,"maxZoom",1e3),this.accelX=0,this.accelY=0;var h=T(A,"acceleration",null);typeof h=="number"?(this.accelX=h,this.accelY=h):(this.accelX=T(A,"acceleration.x",0),this.accelY=T(A,"acceleration.y",0)),this.dragX=0,this.dragY=0;var f=T(A,"drag",null);typeof f=="number"?(this.dragX=f,this.dragY=f):(this.dragX=T(A,"drag.x",0),this.dragY=T(A,"drag.y",0)),this.maxSpeedX=0,this.maxSpeedY=0;var S=T(A,"maxSpeed",null);typeof S=="number"?(this.maxSpeedX=S,this.maxSpeedY=S):(this.maxSpeedX=T(A,"maxSpeed.x",0),this.maxSpeedY=T(A,"maxSpeed.y",0)),this._speedX=0,this._speedY=0,this._zoom=0,this.active=this.camera!==null},"SmoothedKeyControl"),start:function(){return this.active=this.camera!==null,this},stop:function(){return this.active=!1,this},setCamera:function(c){return this.camera=c,this},update:function(c){if(this.active){c===void 0&&(c=1);var A=this.camera;this._speedX>0?(this._speedX-=this.dragX*c,this._speedX<0&&(this._speedX=0)):this._speedX<0&&(this._speedX+=this.dragX*c,this._speedX>0&&(this._speedX=0)),this._speedY>0?(this._speedY-=this.dragY*c,this._speedY<0&&(this._speedY=0)):this._speedY<0&&(this._speedY+=this.dragY*c,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*c|0),this._speedY!==0&&(A.scrollY-=this._speedY*c|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}});o.exports=d},38865:(o,m,s)=>{/** + */var u=s(83419),T=s(35154),A=new u({initialize:v(function(d){this.camera=T(d,"camera",null),this.left=T(d,"left",null),this.right=T(d,"right",null),this.up=T(d,"up",null),this.down=T(d,"down",null),this.zoomIn=T(d,"zoomIn",null),this.zoomOut=T(d,"zoomOut",null),this.zoomSpeed=T(d,"zoomSpeed",.01),this.minZoom=T(d,"minZoom",.001),this.maxZoom=T(d,"maxZoom",1e3),this.accelX=0,this.accelY=0;var h=T(d,"acceleration",null);typeof h=="number"?(this.accelX=h,this.accelY=h):(this.accelX=T(d,"acceleration.x",0),this.accelY=T(d,"acceleration.y",0)),this.dragX=0,this.dragY=0;var f=T(d,"drag",null);typeof f=="number"?(this.dragX=f,this.dragY=f):(this.dragX=T(d,"drag.x",0),this.dragY=T(d,"drag.y",0)),this.maxSpeedX=0,this.maxSpeedY=0;var S=T(d,"maxSpeed",null);typeof S=="number"?(this.maxSpeedX=S,this.maxSpeedY=S):(this.maxSpeedX=T(d,"maxSpeed.x",0),this.maxSpeedY=T(d,"maxSpeed.y",0)),this._speedX=0,this._speedY=0,this._zoom=0,this.active=this.camera!==null},"SmoothedKeyControl"),start:function(){return this.active=this.camera!==null,this},stop:function(){return this.active=!1,this},setCamera:function(c){return this.camera=c,this},update:function(c){if(this.active){c===void 0&&(c=1);var d=this.camera;this._speedX>0?(this._speedX-=this.dragX*c,this._speedX<0&&(this._speedX=0)):this._speedX<0&&(this._speedX+=this.dragX*c,this._speedX>0&&(this._speedX=0)),this._speedY>0?(this._speedY-=this.dragY*c,this._speedY<0&&(this._speedY=0)):this._speedY<0&&(this._speedY+=this.dragY*c,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&&(d.scrollX-=this._speedX*c|0),this._speedY!==0&&(d.scrollY-=this._speedY*c|0),this._zoom!==0&&(d.zoom+=this._zoom,d.zoomthis.maxZoom&&(d.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}});o.exports=A},38865:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={FixedKeyControl:s(63091),SmoothedKeyControl:s(58818)}},26638:(o,m,s)=>{/** + */o.exports={FixedKeyControl:s(63091),SmoothedKeyControl:s(58818)}},26638:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={Controls:s(38865),Scene2D:s(87969)}},8054:(o,m,s)=>{/** + */o.exports={Controls:s(38865),Scene2D:s(87969)}},8054:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u={VERSION:"3.80.1",BlendModes:s(10312),ScaleModes:s(29795),AUTO:0,CANVAS:1,WEBGL:2,HEADLESS:3,FOREVER:-1,NONE:4,UP:5,DOWN:6,LEFT:7,RIGHT:8};o.exports=u},69547:(o,m,s)=>{/** + */var u={VERSION:"3.80.1",BlendModes:s(10312),ScaleModes:s(29795),AUTO:0,CANVAS:1,WEBGL:2,HEADLESS:3,FOREVER:-1,NONE:4,UP:5,DOWN:6,LEFT:7,RIGHT:8};o.exports=u},69547:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(8054),d=s(42363),c=s(82264),A=s(95540),h=s(35154),f=s(41212),S=s(29747),O=s(75508),L=s(36060),p=s(80333),N=new u({initialize:P(function(C){C===void 0&&(C={});var v=["#ff0000","#ffff00","#00ff00","#00ffff","#000000"],M="#ffffff",D=h(C,"scale",null);this.width=h(D,"width",1024,C),this.height=h(D,"height",768,C),this.zoom=h(D,"zoom",1,C),this.parent=h(D,"parent",void 0,C),this.scaleMode=h(D,D?"mode":"scaleMode",0,C),this.expandParent=h(D,"expandParent",!0,C),this.autoRound=h(D,"autoRound",!1,C),this.autoCenter=h(D,"autoCenter",0,C),this.resizeInterval=h(D,"resizeInterval",500,C),this.fullscreenTarget=h(D,"fullscreenTarget",null,C),this.minWidth=h(D,"min.width",0,C),this.maxWidth=h(D,"max.width",0,C),this.minHeight=h(D,"min.height",0,C),this.maxHeight=h(D,"max.height",0,C),this.snapWidth=h(D,"snap.width",0,C),this.snapHeight=h(D,"snap.height",0,C),this.renderType=h(C,"type",T.AUTO),this.canvas=h(C,"canvas",null),this.context=h(C,"context",null),this.canvasStyle=h(C,"canvasStyle",null),this.customEnvironment=h(C,"customEnvironment",!1),this.sceneConfig=h(C,"scene",null),this.seed=h(C,"seed",[(Date.now()*Math.random()).toString()]),O.RND=new O.RandomDataGenerator(this.seed),this.gameTitle=h(C,"title",""),this.gameURL=h(C,"url","https://phaser.io"),this.gameVersion=h(C,"version",""),this.autoFocus=h(C,"autoFocus",!0),this.stableSort=h(C,"stableSort",-1),this.stableSort===-1&&(this.stableSort=c.browser.es2019?1:0),c.features.stableSort=this.stableSort,this.domCreateContainer=h(C,"dom.createContainer",!1),this.domPointerEvents=h(C,"dom.pointerEvents","none"),this.inputKeyboard=h(C,"input.keyboard",!0),this.inputKeyboardEventTarget=h(C,"input.keyboard.target",window),this.inputKeyboardCapture=h(C,"input.keyboard.capture",[]),this.inputMouse=h(C,"input.mouse",!0),this.inputMouseEventTarget=h(C,"input.mouse.target",null),this.inputMousePreventDefaultDown=h(C,"input.mouse.preventDefaultDown",!0),this.inputMousePreventDefaultUp=h(C,"input.mouse.preventDefaultUp",!0),this.inputMousePreventDefaultMove=h(C,"input.mouse.preventDefaultMove",!0),this.inputMousePreventDefaultWheel=h(C,"input.mouse.preventDefaultWheel",!0),this.inputTouch=h(C,"input.touch",c.input.touch),this.inputTouchEventTarget=h(C,"input.touch.target",null),this.inputTouchCapture=h(C,"input.touch.capture",!0),this.inputActivePointers=h(C,"input.activePointers",1),this.inputSmoothFactor=h(C,"input.smoothFactor",0),this.inputWindowEvents=h(C,"input.windowEvents",!0),this.inputGamepad=h(C,"input.gamepad",!1),this.inputGamepadEventTarget=h(C,"input.gamepad.target",window),this.disableContextMenu=h(C,"disableContextMenu",!1),this.audio=h(C,"audio",{}),this.hideBanner=h(C,"banner",null)===!1,this.hidePhaser=h(C,"banner.hidePhaser",!1),this.bannerTextColor=h(C,"banner.text",M),this.bannerBackgroundColor=h(C,"banner.background",v),this.gameTitle===""&&this.hidePhaser&&(this.hideBanner=!0),this.fps=h(C,"fps",null),this.disablePreFX=h(C,"disablePreFX",!1),this.disablePostFX=h(C,"disablePostFX",!1);var G=h(C,"render",null);this.pipeline=h(G,"pipeline",null,C),this.autoMobilePipeline=h(G,"autoMobilePipeline",!0,C),this.defaultPipeline=h(G,"defaultPipeline",L.MULTI_PIPELINE,C),this.antialias=h(G,"antialias",!0,C),this.antialiasGL=h(G,"antialiasGL",!0,C),this.mipmapFilter=h(G,"mipmapFilter","",C),this.desynchronized=h(G,"desynchronized",!1,C),this.roundPixels=h(G,"roundPixels",!0,C),this.pixelArt=h(G,"pixelArt",this.zoom!==1,C),this.pixelArt&&(this.antialias=!1,this.antialiasGL=!1,this.roundPixels=!0),this.transparent=h(G,"transparent",!1,C),this.clearBeforeRender=h(G,"clearBeforeRender",!0,C),this.preserveDrawingBuffer=h(G,"preserveDrawingBuffer",!1,C),this.premultipliedAlpha=h(G,"premultipliedAlpha",!0,C),this.failIfMajorPerformanceCaveat=h(G,"failIfMajorPerformanceCaveat",!1,C),this.powerPreference=h(G,"powerPreference","default",C),this.batchSize=h(G,"batchSize",4096,C),this.maxTextures=h(G,"maxTextures",-1,C),this.maxLights=h(G,"maxLights",10,C);var H=h(C,"backgroundColor",0);this.backgroundColor=p(H),this.transparent&&(this.backgroundColor=p(0),this.backgroundColor.alpha=0),this.preBoot=h(C,"callbacks.preBoot",S),this.postBoot=h(C,"callbacks.postBoot",S),this.physics=h(C,"physics",{}),this.defaultPhysicsSystem=h(this.physics,"default",!1),this.loaderBaseURL=h(C,"loader.baseURL",""),this.loaderPath=h(C,"loader.path",""),this.loaderMaxParallelDownloads=h(C,"loader.maxParallelDownloads",c.os.android?6:32),this.loaderCrossOrigin=h(C,"loader.crossOrigin",void 0),this.loaderResponseType=h(C,"loader.responseType",""),this.loaderAsync=h(C,"loader.async",!0),this.loaderUser=h(C,"loader.user",""),this.loaderPassword=h(C,"loader.password",""),this.loaderTimeout=h(C,"loader.timeout",0),this.loaderWithCredentials=h(C,"loader.withCredentials",!1),this.loaderImageLoadType=h(C,"loader.imageLoadType","XHR"),this.loaderLocalScheme=h(C,"loader.localScheme",["file://","capacitor://"]),this.glowFXQuality=h(C,"fx.glow.quality",.1),this.glowFXDistance=h(C,"fx.glow.distance",10),this.installGlobalPlugins=[],this.installScenePlugins=[];var B=h(C,"plugins",null),_=d.DefaultScene;B&&(Array.isArray(B)?this.defaultPlugins=B:f(B)&&(this.installGlobalPlugins=A(B,"global",[]),this.installScenePlugins=A(B,"scene",[]),Array.isArray(B.default)?_=B.default:Array.isArray(B.defaultMerge)&&(_=_.concat(B.defaultMerge)))),this.defaultPlugins=_;var w="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAg";this.defaultImage=h(C,"images.default",w+"AQMAAABJtOi3AAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAABVJREFUeF7NwIEAAAAAgKD9qdeocAMAoAABm3DkcAAAAABJRU5ErkJggg=="),this.missingImage=h(C,"images.missing",w+"CAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJ9JREFUeNq01ssOwyAMRFG46v//Mt1ESmgh+DFmE2GPOBARKb2NVjo+17PXLD8a1+pl5+A+wSgFygymWYHBb0FtsKhJDdZlncG2IzJ4ayoMDv20wTmSMzClEgbWYNTAkQ0Z+OJ+A/eWnAaR9+oxCF4Os0H8htsMUp+pwcgBBiMNnAwF8GqIgL2hAzaGFFgZauDPKABmowZ4GL369/0rwACp2yA/ttmvsQAAAABJRU5ErkJggg=="),this.whiteImage=h(C,"images.white","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABdJREFUeNpi/P//PwMMMDEgAdwcgAADAJZuAwXJYZOzAAAAAElFTkSuQmCC"),window&&(window.FORCE_WEBGL?this.renderType=T.WEBGL:window.FORCE_CANVAS&&(this.renderType=T.CANVAS))},"Config")});o.exports=N},86054:(o,m,s)=>{/** + */var u=s(83419),T=s(8054),A=s(42363),c=s(82264),d=s(95540),h=s(35154),f=s(41212),S=s(29747),R=s(75508),L=s(36060),p=s(80333),N=new u({initialize:v(function(C){C===void 0&&(C={});var P=["#ff0000","#ffff00","#00ff00","#00ffff","#000000"],M="#ffffff",D=h(C,"scale",null);this.width=h(D,"width",1024,C),this.height=h(D,"height",768,C),this.zoom=h(D,"zoom",1,C),this.parent=h(D,"parent",void 0,C),this.scaleMode=h(D,D?"mode":"scaleMode",0,C),this.expandParent=h(D,"expandParent",!0,C),this.autoRound=h(D,"autoRound",!1,C),this.autoCenter=h(D,"autoCenter",0,C),this.resizeInterval=h(D,"resizeInterval",500,C),this.fullscreenTarget=h(D,"fullscreenTarget",null,C),this.minWidth=h(D,"min.width",0,C),this.maxWidth=h(D,"max.width",0,C),this.minHeight=h(D,"min.height",0,C),this.maxHeight=h(D,"max.height",0,C),this.snapWidth=h(D,"snap.width",0,C),this.snapHeight=h(D,"snap.height",0,C),this.renderType=h(C,"type",T.AUTO),this.canvas=h(C,"canvas",null),this.context=h(C,"context",null),this.canvasStyle=h(C,"canvasStyle",null),this.customEnvironment=h(C,"customEnvironment",!1),this.sceneConfig=h(C,"scene",null),this.seed=h(C,"seed",[(Date.now()*Math.random()).toString()]),R.RND=new R.RandomDataGenerator(this.seed),this.gameTitle=h(C,"title",""),this.gameURL=h(C,"url","https://phaser.io"),this.gameVersion=h(C,"version",""),this.autoFocus=h(C,"autoFocus",!0),this.stableSort=h(C,"stableSort",-1),this.stableSort===-1&&(this.stableSort=c.browser.es2019?1:0),c.features.stableSort=this.stableSort,this.domCreateContainer=h(C,"dom.createContainer",!1),this.domPointerEvents=h(C,"dom.pointerEvents","none"),this.inputKeyboard=h(C,"input.keyboard",!0),this.inputKeyboardEventTarget=h(C,"input.keyboard.target",window),this.inputKeyboardCapture=h(C,"input.keyboard.capture",[]),this.inputMouse=h(C,"input.mouse",!0),this.inputMouseEventTarget=h(C,"input.mouse.target",null),this.inputMousePreventDefaultDown=h(C,"input.mouse.preventDefaultDown",!0),this.inputMousePreventDefaultUp=h(C,"input.mouse.preventDefaultUp",!0),this.inputMousePreventDefaultMove=h(C,"input.mouse.preventDefaultMove",!0),this.inputMousePreventDefaultWheel=h(C,"input.mouse.preventDefaultWheel",!0),this.inputTouch=h(C,"input.touch",c.input.touch),this.inputTouchEventTarget=h(C,"input.touch.target",null),this.inputTouchCapture=h(C,"input.touch.capture",!0),this.inputActivePointers=h(C,"input.activePointers",1),this.inputSmoothFactor=h(C,"input.smoothFactor",0),this.inputWindowEvents=h(C,"input.windowEvents",!0),this.inputGamepad=h(C,"input.gamepad",!1),this.inputGamepadEventTarget=h(C,"input.gamepad.target",window),this.disableContextMenu=h(C,"disableContextMenu",!1),this.audio=h(C,"audio",{}),this.hideBanner=h(C,"banner",null)===!1,this.hidePhaser=h(C,"banner.hidePhaser",!1),this.bannerTextColor=h(C,"banner.text",M),this.bannerBackgroundColor=h(C,"banner.background",P),this.gameTitle===""&&this.hidePhaser&&(this.hideBanner=!0),this.fps=h(C,"fps",null),this.disablePreFX=h(C,"disablePreFX",!1),this.disablePostFX=h(C,"disablePostFX",!1);var G=h(C,"render",null);this.pipeline=h(G,"pipeline",null,C),this.autoMobilePipeline=h(G,"autoMobilePipeline",!0,C),this.defaultPipeline=h(G,"defaultPipeline",L.MULTI_PIPELINE,C),this.antialias=h(G,"antialias",!0,C),this.antialiasGL=h(G,"antialiasGL",!0,C),this.mipmapFilter=h(G,"mipmapFilter","",C),this.desynchronized=h(G,"desynchronized",!1,C),this.roundPixels=h(G,"roundPixels",!0,C),this.pixelArt=h(G,"pixelArt",this.zoom!==1,C),this.pixelArt&&(this.antialias=!1,this.antialiasGL=!1,this.roundPixels=!0),this.transparent=h(G,"transparent",!1,C),this.clearBeforeRender=h(G,"clearBeforeRender",!0,C),this.preserveDrawingBuffer=h(G,"preserveDrawingBuffer",!1,C),this.premultipliedAlpha=h(G,"premultipliedAlpha",!0,C),this.failIfMajorPerformanceCaveat=h(G,"failIfMajorPerformanceCaveat",!1,C),this.powerPreference=h(G,"powerPreference","default",C),this.batchSize=h(G,"batchSize",4096,C),this.maxTextures=h(G,"maxTextures",-1,C),this.maxLights=h(G,"maxLights",10,C);var H=h(C,"backgroundColor",0);this.backgroundColor=p(H),this.transparent&&(this.backgroundColor=p(0),this.backgroundColor.alpha=0),this.preBoot=h(C,"callbacks.preBoot",S),this.postBoot=h(C,"callbacks.postBoot",S),this.physics=h(C,"physics",{}),this.defaultPhysicsSystem=h(this.physics,"default",!1),this.loaderBaseURL=h(C,"loader.baseURL",""),this.loaderPath=h(C,"loader.path",""),this.loaderMaxParallelDownloads=h(C,"loader.maxParallelDownloads",c.os.android?6:32),this.loaderCrossOrigin=h(C,"loader.crossOrigin",void 0),this.loaderResponseType=h(C,"loader.responseType",""),this.loaderAsync=h(C,"loader.async",!0),this.loaderUser=h(C,"loader.user",""),this.loaderPassword=h(C,"loader.password",""),this.loaderTimeout=h(C,"loader.timeout",0),this.loaderWithCredentials=h(C,"loader.withCredentials",!1),this.loaderImageLoadType=h(C,"loader.imageLoadType","XHR"),this.loaderLocalScheme=h(C,"loader.localScheme",["file://","capacitor://"]),this.glowFXQuality=h(C,"fx.glow.quality",.1),this.glowFXDistance=h(C,"fx.glow.distance",10),this.installGlobalPlugins=[],this.installScenePlugins=[];var B=h(C,"plugins",null),b=A.DefaultScene;B&&(Array.isArray(B)?this.defaultPlugins=B:f(B)&&(this.installGlobalPlugins=d(B,"global",[]),this.installScenePlugins=d(B,"scene",[]),Array.isArray(B.default)?b=B.default:Array.isArray(B.defaultMerge)&&(b=b.concat(B.defaultMerge)))),this.defaultPlugins=b;var w="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAg";this.defaultImage=h(C,"images.default",w+"AQMAAABJtOi3AAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAABVJREFUeF7NwIEAAAAAgKD9qdeocAMAoAABm3DkcAAAAABJRU5ErkJggg=="),this.missingImage=h(C,"images.missing",w+"CAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJ9JREFUeNq01ssOwyAMRFG46v//Mt1ESmgh+DFmE2GPOBARKb2NVjo+17PXLD8a1+pl5+A+wSgFygymWYHBb0FtsKhJDdZlncG2IzJ4ayoMDv20wTmSMzClEgbWYNTAkQ0Z+OJ+A/eWnAaR9+oxCF4Os0H8htsMUp+pwcgBBiMNnAwF8GqIgL2hAzaGFFgZauDPKABmowZ4GL369/0rwACp2yA/ttmvsQAAAABJRU5ErkJggg=="),this.whiteImage=h(C,"images.white","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABdJREFUeNpi/P//PwMMMDEgAdwcgAADAJZuAwXJYZOzAAAAAElFTkSuQmCC"),window&&(window.FORCE_WEBGL?this.renderType=T.WEBGL:window.FORCE_CANVAS&&(this.renderType=T.CANVAS))},"Config")});o.exports=N},86054:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(20623),T=s(27919),d=s(8054),c=s(89357),A=P(function(h){var f=h.config;if((f.customEnvironment||f.canvas)&&f.renderType===d.AUTO)throw new Error("Must set explicit renderType in custom environment");if(!f.customEnvironment&&!f.canvas&&f.renderType!==d.HEADLESS)if(f.renderType===d.AUTO&&(f.renderType=c.webGL?d.WEBGL:d.CANVAS),f.renderType===d.WEBGL){if(!c.webGL)throw new Error("Cannot create WebGL context, aborting.")}else if(f.renderType===d.CANVAS){if(!c.canvas)throw new Error("Cannot create Canvas context, aborting.")}else throw new Error("Unknown value for renderer type: "+f.renderType);f.antialias||T.disableSmoothing();var S=h.scale.baseSize,O=S.width,L=S.height;if(f.canvas?(h.canvas=f.canvas,h.canvas.width=O,h.canvas.height=L):h.canvas=T.create(h,O,L,f.renderType),f.canvasStyle&&(h.canvas.style=f.canvasStyle),f.antialias||u.setCrisp(h.canvas),f.renderType!==d.HEADLESS){var p,N;p=s(68627),N=s(74797),f.renderType===d.WEBGL?h.renderer=new N(h):(h.renderer=new p(h),h.context=h.renderer.gameContext)}},"CreateRenderer");o.exports=A},96391:(o,m,s)=>{/** + */var u=s(20623),T=s(27919),A=s(8054),c=s(89357),d=v(function(h){var f=h.config;if((f.customEnvironment||f.canvas)&&f.renderType===A.AUTO)throw new Error("Must set explicit renderType in custom environment");if(!f.customEnvironment&&!f.canvas&&f.renderType!==A.HEADLESS)if(f.renderType===A.AUTO&&(f.renderType=c.webGL?A.WEBGL:A.CANVAS),f.renderType===A.WEBGL){if(!c.webGL)throw new Error("Cannot create WebGL context, aborting.")}else if(f.renderType===A.CANVAS){if(!c.canvas)throw new Error("Cannot create Canvas context, aborting.")}else throw new Error("Unknown value for renderer type: "+f.renderType);f.antialias||T.disableSmoothing();var S=h.scale.baseSize,R=S.width,L=S.height;if(f.canvas?(h.canvas=f.canvas,h.canvas.width=R,h.canvas.height=L):h.canvas=T.create(h,R,L,f.renderType),f.canvasStyle&&(h.canvas.style=f.canvasStyle),f.antialias||u.setCrisp(h.canvas),f.renderType!==A.HEADLESS){var p,N;p=s(68627),N=s(74797),f.renderType===A.WEBGL?h.renderer=new N(h):(h.renderer=new p(h),h.context=h.renderer.gameContext)}},"CreateRenderer");o.exports=d},96391:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(8054),T=P(function(d){var c=d.config;if(!c.hideBanner){var A="WebGL";c.renderType===u.CANVAS?A="Canvas":c.renderType===u.HEADLESS&&(A="Headless");var h=c.audio,f=d.device.audio,S;if(f.webAudio&&!h.disableWebAudio?S="Web Audio":h.noAudio||!f.webAudio&&!f.audioData?S="No Audio":S="HTML5 Audio",d.device.browser.ie)window.console&&console.log("Phaser v"+u.VERSION+" / https://phaser.io");else{var O="",L=[O];if(Array.isArray(c.bannerBackgroundColor)){var p;c.bannerBackgroundColor.forEach(function(g){O=O.concat("%c "),L.push("background: "+g),p=g}),L[L.length-1]="color: "+c.bannerTextColor+"; background: "+p}else O=O.concat("%c "),L.push("color: "+c.bannerTextColor+"; background: "+c.bannerBackgroundColor);L.push("background: transparent"),c.gameTitle&&(O=O.concat(c.gameTitle),c.gameVersion&&(O=O.concat(" v"+c.gameVersion)),c.hidePhaser||(O=O.concat(" / ")));var N="";c.hidePhaser||(O=O.concat("Phaser v"+u.VERSION+N+" ("+A+" | "+S+")")),O=O.concat(" %c "+c.gameURL),L[0]=O,console.log.apply(console,L)}}},"DebugHeader");o.exports=T},50127:(o,m,s)=>{/** + */var u=s(8054),T=v(function(A){var c=A.config;if(!c.hideBanner){var d="WebGL";c.renderType===u.CANVAS?d="Canvas":c.renderType===u.HEADLESS&&(d="Headless");var h=c.audio,f=A.device.audio,S;if(f.webAudio&&!h.disableWebAudio?S="Web Audio":h.noAudio||!f.webAudio&&!f.audioData?S="No Audio":S="HTML5 Audio",A.device.browser.ie)window.console&&console.log("Phaser v"+u.VERSION+" / https://phaser.io");else{var R="",L=[R];if(Array.isArray(c.bannerBackgroundColor)){var p;c.bannerBackgroundColor.forEach(function(g){R=R.concat("%c "),L.push("background: "+g),p=g}),L[L.length-1]="color: "+c.bannerTextColor+"; background: "+p}else R=R.concat("%c "),L.push("color: "+c.bannerTextColor+"; background: "+c.bannerBackgroundColor);L.push("background: transparent"),c.gameTitle&&(R=R.concat(c.gameTitle),c.gameVersion&&(R=R.concat(" v"+c.gameVersion)),c.hidePhaser||(R=R.concat(" / ")));var N="";c.hidePhaser||(R=R.concat("Phaser v"+u.VERSION+N+" ("+d+" | "+S+")")),R=R.concat(" %c "+c.gameURL),L[0]=R,console.log.apply(console,L)}}},"DebugHeader");o.exports=T},50127:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(40366),T=s(60848),d=s(24047),c=s(27919),A=s(83419),h=s(69547),f=s(83719),S=s(86054),O=s(45893),L=s(96391),p=s(82264),N=s(57264),g=s(50792),C=s(8443),v=s(7003),M=s(37277),D=s(77332),G=s(76531),H=s(60903),B=s(69442),_=s(17130),w=s(65898),b=s(51085),F=s(14747),k=new A({initialize:P(function(Z){this.config=new h(Z),this.renderer=null,this.domContainer=null,this.canvas=null,this.context=null,this.isBooted=!1,this.isRunning=!1,this.events=new g,this.anims=new T(this),this.textures=new _(this),this.cache=new d(this),this.registry=new O(this,new g),this.input=new v(this,this.config),this.scene=new H(this,this.config.sceneConfig),this.device=p,this.scale=new G(this,this.config),this.sound=null,this.sound=F.create(this),this.loop=new w(this,this.config.fps),this.plugins=new D(this,this.config),this.pendingDestroy=!1,this.removeCanvas=!1,this.noReturn=!1,this.hasFocus=!1,this.isPaused=!1,N(this.boot.bind(this))},"Game"),boot:function(){if(!M.hasCore("EventEmitter")){console.warn("Aborting. Core Plugins missing.");return}this.isBooted=!0,this.config.preBoot(this),this.scale.preBoot(),S(this),f(this),L(this),u(this.canvas,this.config.parent),this.textures.once(B.READY,this.texturesReady,this),this.events.emit(C.BOOT)},texturesReady:function(){this.events.emit(C.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)),b(this);var V=this.events;V.on(C.HIDDEN,this.onHidden,this),V.on(C.VISIBLE,this.onVisible,this),V.on(C.BLUR,this.onBlur,this),V.on(C.FOCUS,this.onFocus,this)},step:function(V,Z){if(this.pendingDestroy)return this.runDestroy();if(!this.isPaused){var $=this.events;$.emit(C.PRE_STEP,V,Z),$.emit(C.STEP,V,Z),this.scene.update(V,Z),$.emit(C.POST_STEP,V,Z);var Q=this.renderer;Q.preRender(),$.emit(C.PRE_RENDER,Q,V,Z),this.scene.render(Q),Q.postRender(),$.emit(C.POST_RENDER,Q,V,Z)}},headlessStep:function(V,Z){if(this.pendingDestroy)return this.runDestroy();if(!this.isPaused){var $=this.events;$.emit(C.PRE_STEP,V,Z),$.emit(C.STEP,V,Z),this.scene.update(V,Z),$.emit(C.POST_STEP,V,Z),this.scene.isProcessing=!1,$.emit(C.PRE_RENDER,null,V,Z),$.emit(C.POST_RENDER,null,V,Z)}},onHidden:function(){this.loop.pause(),this.events.emit(C.PAUSE)},pause:function(){var V=this.isPaused;this.isPaused=!0,V||this.events.emit(C.PAUSE)},onVisible:function(){this.loop.resume(),this.events.emit(C.RESUME)},resume:function(){var V=this.isPaused;this.isPaused=!1,V&&this.events.emit(C.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(V,Z){Z===void 0&&(Z=!1),this.pendingDestroy=!0,this.removeCanvas=V,this.noReturn=Z},runDestroy:function(){this.scene.destroy(),this.events.emit(C.DESTROY),this.events.removeAllListeners(),this.renderer&&this.renderer.destroy(),this.removeCanvas&&this.canvas&&(c.remove(this.canvas),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)),this.domContainer&&this.domContainer.parentNode&&this.domContainer.parentNode.removeChild(this.domContainer),this.loop.destroy(),this.pendingDestroy=!1}});o.exports=k},65898:(o,m,s)=>{/** + */var u=s(40366),T=s(60848),A=s(24047),c=s(27919),d=s(83419),h=s(69547),f=s(83719),S=s(86054),R=s(45893),L=s(96391),p=s(82264),N=s(57264),g=s(50792),C=s(8443),P=s(7003),M=s(37277),D=s(77332),G=s(76531),H=s(60903),B=s(69442),b=s(17130),w=s(65898),_=s(51085),F=s(14747),x=new d({initialize:v(function(Z){this.config=new h(Z),this.renderer=null,this.domContainer=null,this.canvas=null,this.context=null,this.isBooted=!1,this.isRunning=!1,this.events=new g,this.anims=new T(this),this.textures=new b(this),this.cache=new A(this),this.registry=new R(this,new g),this.input=new P(this,this.config),this.scene=new H(this,this.config.sceneConfig),this.device=p,this.scale=new G(this,this.config),this.sound=null,this.sound=F.create(this),this.loop=new w(this,this.config.fps),this.plugins=new D(this,this.config),this.pendingDestroy=!1,this.removeCanvas=!1,this.noReturn=!1,this.hasFocus=!1,this.isPaused=!1,N(this.boot.bind(this))},"Game"),boot:function(){if(!M.hasCore("EventEmitter")){console.warn("Aborting. Core Plugins missing.");return}this.isBooted=!0,this.config.preBoot(this),this.scale.preBoot(),S(this),f(this),L(this),u(this.canvas,this.config.parent),this.textures.once(B.READY,this.texturesReady,this),this.events.emit(C.BOOT)},texturesReady:function(){this.events.emit(C.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)),_(this);var V=this.events;V.on(C.HIDDEN,this.onHidden,this),V.on(C.VISIBLE,this.onVisible,this),V.on(C.BLUR,this.onBlur,this),V.on(C.FOCUS,this.onFocus,this)},step:function(V,Z){if(this.pendingDestroy)return this.runDestroy();if(!this.isPaused){var $=this.events;$.emit(C.PRE_STEP,V,Z),$.emit(C.STEP,V,Z),this.scene.update(V,Z),$.emit(C.POST_STEP,V,Z);var Q=this.renderer;Q.preRender(),$.emit(C.PRE_RENDER,Q,V,Z),this.scene.render(Q),Q.postRender(),$.emit(C.POST_RENDER,Q,V,Z)}},headlessStep:function(V,Z){if(this.pendingDestroy)return this.runDestroy();if(!this.isPaused){var $=this.events;$.emit(C.PRE_STEP,V,Z),$.emit(C.STEP,V,Z),this.scene.update(V,Z),$.emit(C.POST_STEP,V,Z),this.scene.isProcessing=!1,$.emit(C.PRE_RENDER,null,V,Z),$.emit(C.POST_RENDER,null,V,Z)}},onHidden:function(){this.loop.pause(),this.events.emit(C.PAUSE)},pause:function(){var V=this.isPaused;this.isPaused=!0,V||this.events.emit(C.PAUSE)},onVisible:function(){this.loop.resume(),this.events.emit(C.RESUME)},resume:function(){var V=this.isPaused;this.isPaused=!1,V&&this.events.emit(C.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(V,Z){Z===void 0&&(Z=!1),this.pendingDestroy=!0,this.removeCanvas=V,this.noReturn=Z},runDestroy:function(){this.scene.destroy(),this.events.emit(C.DESTROY),this.events.removeAllListeners(),this.renderer&&this.renderer.destroy(),this.removeCanvas&&this.canvas&&(c.remove(this.canvas),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)),this.domContainer&&this.domContainer.parentNode&&this.domContainer.parentNode.removeChild(this.domContainer),this.loop.destroy(),this.pendingDestroy=!1}});o.exports=x},65898:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(35154),d=s(29747),c=s(43092),A=new u({initialize:P(function(f,S){this.game=f,this.raf=new c,this.started=!1,this.running=!1,this.minFps=T(S,"min",5),this.targetFps=T(S,"target",60),this.fpsLimit=T(S,"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=d,this.forceSetTimeOut=T(S,"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=T(S,"deltaHistory",10),this.panicMax=T(S,"panicMax",120),this.rawDelta=0,this.now=0,this.smoothStep=T(S,"smoothStep",!0)},"TimeStep"),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 h=window.performance.now();this.time=h,this.lastTime=h,this.nextFpsUpdate=h+1e3,this.framesThisSecond=0;for(var f=0;f0||!this.inFocus)&&(this._coolDown--,h=Math.min(h,this._target)),h>this._min&&(h=S[f],h=Math.min(h,this._min)),S[f]=h,this.deltaIndex++,this.deltaIndex>=O&&(this.deltaIndex=0);for(var L=0,p=0;p=this.nextFpsUpdate&&this.updateFPS(h),this.framesThisSecond++,this.delta>=this._limitRate&&(this.callback(h,this.delta),this.delta=0),this.lastTime=h,this.frame++},step:function(h){this.now=h;var f=Math.max(0,h-this.lastTime);this.rawDelta=f,this.time+=this.rawDelta,this.smoothStep&&(f=this.smoothDelta(f)),this.delta=f,h>=this.nextFpsUpdate&&this.updateFPS(h),this.framesThisSecond++,this.callback(h,f),this.lastTime=h,this.frame++},tick:function(){var h=window.performance.now();this.hasFpsLimit?this.stepLimitFPS(h):this.step(h)},sleep:function(){this.running&&(this.raf.stop(),this.running=!1)},wake:function(h){h===void 0&&(h=!1);var f=window.performance.now();if(!this.running){h&&(this.startTime+=-this.lastTime+(this.lastTime+f));var S=this.hasFpsLimit?this.stepLimitFPS.bind(this):this.step.bind(this);this.raf.start(S,this.forceSetTimeOut,this._target),this.running=!0,this.nextFpsUpdate=f+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}});o.exports=A},51085:(o,m,s)=>{/** + */var u=s(83419),T=s(35154),A=s(29747),c=s(43092),d=new u({initialize:v(function(f,S){this.game=f,this.raf=new c,this.started=!1,this.running=!1,this.minFps=T(S,"min",5),this.targetFps=T(S,"target",60),this.fpsLimit=T(S,"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=A,this.forceSetTimeOut=T(S,"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=T(S,"deltaHistory",10),this.panicMax=T(S,"panicMax",120),this.rawDelta=0,this.now=0,this.smoothStep=T(S,"smoothStep",!0)},"TimeStep"),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 h=window.performance.now();this.time=h,this.lastTime=h,this.nextFpsUpdate=h+1e3,this.framesThisSecond=0;for(var f=0;f0||!this.inFocus)&&(this._coolDown--,h=Math.min(h,this._target)),h>this._min&&(h=S[f],h=Math.min(h,this._min)),S[f]=h,this.deltaIndex++,this.deltaIndex>=R&&(this.deltaIndex=0);for(var L=0,p=0;p=this.nextFpsUpdate&&this.updateFPS(h),this.framesThisSecond++,this.delta>=this._limitRate&&(this.callback(h,this.delta),this.delta=0),this.lastTime=h,this.frame++},step:function(h){this.now=h;var f=Math.max(0,h-this.lastTime);this.rawDelta=f,this.time+=this.rawDelta,this.smoothStep&&(f=this.smoothDelta(f)),this.delta=f,h>=this.nextFpsUpdate&&this.updateFPS(h),this.framesThisSecond++,this.callback(h,f),this.lastTime=h,this.frame++},tick:function(){var h=window.performance.now();this.hasFpsLimit?this.stepLimitFPS(h):this.step(h)},sleep:function(){this.running&&(this.raf.stop(),this.running=!1)},wake:function(h){h===void 0&&(h=!1);var f=window.performance.now();if(!this.running){h&&(this.startTime+=-this.lastTime+(this.lastTime+f));var S=this.hasFpsLimit?this.stepLimitFPS.bind(this):this.step.bind(this);this.raf.start(S,this.forceSetTimeOut,this._target),this.running=!0,this.nextFpsUpdate=f+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}});o.exports=d},51085:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(8443),T=P(function(d){var c,A=d.events;if(document.hidden!==void 0)c="visibilitychange";else{var h=["webkit","moz","ms"];h.forEach(function(S){document[S+"Hidden"]!==void 0&&(document.hidden=function(){return document[S+"Hidden"]},c=S+"visibilitychange")})}var f=P(function(S){document.hidden||S.type==="pause"?A.emit(u.HIDDEN):A.emit(u.VISIBLE)},"onChange");c&&document.addEventListener(c,f,!1),window.onblur=function(){A.emit(u.BLUR)},window.onfocus=function(){A.emit(u.FOCUS)},window.focus&&d.config.autoFocus&&window.focus()},"VisibilityHandler");o.exports=T},97217:o=>{/** + */var u=s(8443),T=v(function(A){var c,d=A.events;if(document.hidden!==void 0)c="visibilitychange";else{var h=["webkit","moz","ms"];h.forEach(function(S){document[S+"Hidden"]!==void 0&&(document.hidden=function(){return document[S+"Hidden"]},c=S+"visibilitychange")})}var f=v(function(S){document.hidden||S.type==="pause"?d.emit(u.HIDDEN):d.emit(u.VISIBLE)},"onChange");c&&document.addEventListener(c,f,!1),window.onblur=function(){d.emit(u.BLUR)},window.onfocus=function(){d.emit(u.FOCUS)},window.focus&&A.config.autoFocus&&window.focus()},"VisibilityHandler");o.exports=T},97217:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -535,19 +535,19 @@ var dne=Object.defineProperty;var P=(n,t)=>dne(n,"name",{value:t,configurable:!0 * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports="visible"},8443:(o,m,s)=>{/** + */o.exports="visible"},8443:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={BLUR:s(97217),BOOT:s(47548),CONTEXT_LOST:s(19814),DESTROY:s(68446),FOCUS:s(41700),HIDDEN:s(25432),PAUSE:s(65942),POST_RENDER:s(59211),POST_STEP:s(47789),PRE_RENDER:s(39066),PRE_STEP:s(460),READY:s(16175),RESUME:s(42331),STEP:s(11966),SYSTEM_READY:s(32969),VISIBLE:s(94830)}},42857:(o,m,s)=>{/** + */o.exports={BLUR:s(97217),BOOT:s(47548),CONTEXT_LOST:s(19814),DESTROY:s(68446),FOCUS:s(41700),HIDDEN:s(25432),PAUSE:s(65942),POST_RENDER:s(59211),POST_STEP:s(47789),PRE_RENDER:s(39066),PRE_STEP:s(460),READY:s(16175),RESUME:s(42331),STEP:s(11966),SYSTEM_READY:s(32969),VISIBLE:s(94830)}},42857:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={Config:s(69547),CreateRenderer:s(86054),DebugHeader:s(96391),Events:s(8443),TimeStep:s(65898),VisibilityHandler:s(51085)}},99584:(o,m,s)=>{/** + */o.exports={Config:s(69547),CreateRenderer:s(86054),DebugHeader:s(96391),Events:s(8443),TimeStep:s(65898),VisibilityHandler:s(51085)}},99584:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(5290),T=s(27919),d=s(35154),c=P(function(A){var h=d(A,"data",[]),f=d(A,"canvas",null),S=d(A,"palette",u),O=d(A,"pixelWidth",1),L=d(A,"pixelHeight",O),p=d(A,"resizeCanvas",!0),N=d(A,"clearCanvas",!0),g=d(A,"preRender",null),C=d(A,"postRender",null),v=Math.floor(Math.abs(h[0].length*O)),M=Math.floor(Math.abs(h.length*L));f||(f=T.create2D(this,v,M),p=!1,N=!1),p&&(f.width=v,f.height=M);var D=f.getContext("2d",{willReadFrequently:!0});N&&D.clearRect(0,0,v,M),g&&g(f,D);for(var G=0;G{/** + */var u=s(5290),T=s(27919),A=s(35154),c=v(function(d){var h=A(d,"data",[]),f=A(d,"canvas",null),S=A(d,"palette",u),R=A(d,"pixelWidth",1),L=A(d,"pixelHeight",R),p=A(d,"resizeCanvas",!0),N=A(d,"clearCanvas",!0),g=A(d,"preRender",null),C=A(d,"postRender",null),P=Math.floor(Math.abs(h[0].length*R)),M=Math.floor(Math.abs(h.length*L));f||(f=T.create2D(this,P,M),p=!1,N=!1),p&&(f.width=P,f.height=M);var D=f.getContext("2d",{willReadFrequently:!0});N&&D.clearRect(0,0,P,M),g&&g(f,D);for(var G=0;G{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -571,55 +571,55 @@ var dne=Object.defineProperty;var P=(n,t)=>dne(n,"name",{value:t,configurable:!0 * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.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"}},57763:(o,m,s)=>{/** + */o.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"}},57763:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={ARNE16:s(5290),C64:s(23816),CGA:s(9866),JMP:s(77552),MSX:s(92259)}},46728:(o,m,s)=>{/** + */o.exports={ARNE16:s(5290),C64:s(23816),CGA:s(9866),JMP:s(77552),MSX:s(92259)}},46728:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(36316),d=s(80021),c=s(26099),A=new u({Extends:d,initialize:P(function(f,S,O,L){d.call(this,"CubicBezierCurve"),Array.isArray(f)&&(L=new c(f[6],f[7]),O=new c(f[4],f[5]),S=new c(f[2],f[3]),f=new c(f[0],f[1])),this.p0=f,this.p1=S,this.p2=O,this.p3=L},"CubicBezierCurve"),getStartPoint:function(h){return h===void 0&&(h=new c),h.copy(this.p0)},getResolution:function(h){return h},getPoint:function(h,f){f===void 0&&(f=new c);var S=this.p0,O=this.p1,L=this.p2,p=this.p3;return f.set(T(h,S.x,O.x,L.x,p.x),T(h,S.y,O.y,L.y,p.y))},draw:function(h,f){f===void 0&&(f=32);var S=this.getPoints(f);h.beginPath(),h.moveTo(this.p0.x,this.p0.y);for(var O=1;O{/** + */var u=s(83419),T=s(36316),A=s(80021),c=s(26099),d=new u({Extends:A,initialize:v(function(f,S,R,L){A.call(this,"CubicBezierCurve"),Array.isArray(f)&&(L=new c(f[6],f[7]),R=new c(f[4],f[5]),S=new c(f[2],f[3]),f=new c(f[0],f[1])),this.p0=f,this.p1=S,this.p2=R,this.p3=L},"CubicBezierCurve"),getStartPoint:function(h){return h===void 0&&(h=new c),h.copy(this.p0)},getResolution:function(h){return h},getPoint:function(h,f){f===void 0&&(f=new c);var S=this.p0,R=this.p1,L=this.p2,p=this.p3;return f.set(T(h,S.x,R.x,L.x,p.x),T(h,S.y,R.y,L.y,p.y))},draw:function(h,f){f===void 0&&(f=32);var S=this.getPoints(f);h.beginPath(),h.moveTo(this.p0.x,this.p0.y);for(var R=1;R{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(19217),d=s(87841),c=s(26099),A=new u({initialize:P(function(f){this.type=f,this.defaultDivisions=5,this.arcLengthDivisions=100,this.cacheArcLengths=[],this.needsUpdate=!0,this.active=!0,this._tmpVec2A=new c,this._tmpVec2B=new c},"Curve"),draw:function(h,f){return f===void 0&&(f=32),h.strokePoints(this.getPoints(f))},getBounds:function(h,f){h||(h=new d),f===void 0&&(f=16);var S=this.getLength();f>S&&(f=S/2);var O=Math.max(1,Math.round(S/f));return T(this.getSpacedPoints(O),h)},getDistancePoints:function(h){var f=this.getLength(),S=Math.max(1,f/h);return this.getSpacedPoints(S)},getEndPoint:function(h){return h===void 0&&(h=new c),this.getPointAt(1,h)},getLength:function(){var h=this.getLengths();return h[h.length-1]},getLengths:function(h){if(h===void 0&&(h=this.arcLengthDivisions),this.cacheArcLengths.length===h+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var f=[],S,O=this.getPoint(0,this._tmpVec2A),L=0;f.push(0);for(var p=1;p<=h;p++)S=this.getPoint(p/h,this._tmpVec2B),L+=S.distance(O),f.push(L),O.copy(S);return this.cacheArcLengths=f,f},getPointAt:function(h,f){var S=this.getUtoTmapping(h);return this.getPoint(S,f)},getPoints:function(h,f,S){S===void 0&&(S=[]),h||(f?h=this.getLength()/f:h=this.defaultDivisions);for(var O=0;O<=h;O++)S.push(this.getPoint(O/h));return S},getRandomPoint:function(h){return h===void 0&&(h=new c),this.getPoint(Math.random(),h)},getSpacedPoints:function(h,f,S){S===void 0&&(S=[]),h||(f?h=this.getLength()/f:h=this.defaultDivisions);for(var O=0;O<=h;O++){var L=this.getUtoTmapping(O/h,null,h);S.push(this.getPoint(L))}return S},getStartPoint:function(h){return h===void 0&&(h=new c),this.getPointAt(0,h)},getTangent:function(h,f){f===void 0&&(f=new c);var S=1e-4,O=h-S,L=h+S;return O<0&&(O=0),L>1&&(L=1),this.getPoint(O,this._tmpVec2A),this.getPoint(L,f),f.subtract(this._tmpVec2A).normalize()},getTangentAt:function(h,f){var S=this.getUtoTmapping(h);return this.getTangent(S,f)},getTFromDistance:function(h,f){return h<=0?0:this.getUtoTmapping(0,h,f)},getUtoTmapping:function(h,f,S){var O=this.getLengths(S),L=0,p=O.length,N;f?N=Math.min(f,O[p-1]):N=h*O[p-1];for(var g=0,C=p-1,v;g<=C;)if(L=Math.floor(g+(C-g)/2),v=O[L]-N,v<0)g=L+1;else if(v>0)C=L-1;else{C=L;break}if(L=C,O[L]===N)return L/(p-1);var M=O[L],D=O[L+1],G=D-M,H=(N-M)/G;return(L+H)/(p-1)},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()}});o.exports=A},73825:(o,m,s)=>{/** + */var u=s(83419),T=s(19217),A=s(87841),c=s(26099),d=new u({initialize:v(function(f){this.type=f,this.defaultDivisions=5,this.arcLengthDivisions=100,this.cacheArcLengths=[],this.needsUpdate=!0,this.active=!0,this._tmpVec2A=new c,this._tmpVec2B=new c},"Curve"),draw:function(h,f){return f===void 0&&(f=32),h.strokePoints(this.getPoints(f))},getBounds:function(h,f){h||(h=new A),f===void 0&&(f=16);var S=this.getLength();f>S&&(f=S/2);var R=Math.max(1,Math.round(S/f));return T(this.getSpacedPoints(R),h)},getDistancePoints:function(h){var f=this.getLength(),S=Math.max(1,f/h);return this.getSpacedPoints(S)},getEndPoint:function(h){return h===void 0&&(h=new c),this.getPointAt(1,h)},getLength:function(){var h=this.getLengths();return h[h.length-1]},getLengths:function(h){if(h===void 0&&(h=this.arcLengthDivisions),this.cacheArcLengths.length===h+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var f=[],S,R=this.getPoint(0,this._tmpVec2A),L=0;f.push(0);for(var p=1;p<=h;p++)S=this.getPoint(p/h,this._tmpVec2B),L+=S.distance(R),f.push(L),R.copy(S);return this.cacheArcLengths=f,f},getPointAt:function(h,f){var S=this.getUtoTmapping(h);return this.getPoint(S,f)},getPoints:function(h,f,S){S===void 0&&(S=[]),h||(f?h=this.getLength()/f:h=this.defaultDivisions);for(var R=0;R<=h;R++)S.push(this.getPoint(R/h));return S},getRandomPoint:function(h){return h===void 0&&(h=new c),this.getPoint(Math.random(),h)},getSpacedPoints:function(h,f,S){S===void 0&&(S=[]),h||(f?h=this.getLength()/f:h=this.defaultDivisions);for(var R=0;R<=h;R++){var L=this.getUtoTmapping(R/h,null,h);S.push(this.getPoint(L))}return S},getStartPoint:function(h){return h===void 0&&(h=new c),this.getPointAt(0,h)},getTangent:function(h,f){f===void 0&&(f=new c);var S=1e-4,R=h-S,L=h+S;return R<0&&(R=0),L>1&&(L=1),this.getPoint(R,this._tmpVec2A),this.getPoint(L,f),f.subtract(this._tmpVec2A).normalize()},getTangentAt:function(h,f){var S=this.getUtoTmapping(h);return this.getTangent(S,f)},getTFromDistance:function(h,f){return h<=0?0:this.getUtoTmapping(0,h,f)},getUtoTmapping:function(h,f,S){var R=this.getLengths(S),L=0,p=R.length,N;f?N=Math.min(f,R[p-1]):N=h*R[p-1];for(var g=0,C=p-1,P;g<=C;)if(L=Math.floor(g+(C-g)/2),P=R[L]-N,P<0)g=L+1;else if(P>0)C=L-1;else{C=L;break}if(L=C,R[L]===N)return L/(p-1);var M=R[L],D=R[L+1],G=D-M,H=(N-M)/G;return(L+H)/(p-1)},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()}});o.exports=d},73825:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(80021),d=s(39506),c=s(35154),A=s(43396),h=s(26099),f=new u({Extends:T,initialize:P(function(O,L,p,N,g,C,v,M){if(typeof O=="object"){var D=O;O=c(D,"x",0),L=c(D,"y",0),p=c(D,"xRadius",0),N=c(D,"yRadius",p),g=c(D,"startAngle",0),C=c(D,"endAngle",360),v=c(D,"clockwise",!1),M=c(D,"rotation",0)}else N===void 0&&(N=p),g===void 0&&(g=0),C===void 0&&(C=360),v===void 0&&(v=!1),M===void 0&&(M=0);T.call(this,"EllipseCurve"),this.p0=new h(O,L),this._xRadius=p,this._yRadius=N,this._startAngle=d(g),this._endAngle=d(C),this._clockwise=v,this._rotation=d(M)},"EllipseCurve"),getStartPoint:function(S){return S===void 0&&(S=new h),this.getPoint(0,S)},getResolution:function(S){return S*2},getPoint:function(S,O){O===void 0&&(O=new h);for(var L=Math.PI*2,p=this._endAngle-this._startAngle,N=Math.abs(p)L;)p-=L;p{/** + */var u=s(83419),T=s(80021),A=s(39506),c=s(35154),d=s(43396),h=s(26099),f=new u({Extends:T,initialize:v(function(R,L,p,N,g,C,P,M){if(typeof R=="object"){var D=R;R=c(D,"x",0),L=c(D,"y",0),p=c(D,"xRadius",0),N=c(D,"yRadius",p),g=c(D,"startAngle",0),C=c(D,"endAngle",360),P=c(D,"clockwise",!1),M=c(D,"rotation",0)}else N===void 0&&(N=p),g===void 0&&(g=0),C===void 0&&(C=360),P===void 0&&(P=!1),M===void 0&&(M=0);T.call(this,"EllipseCurve"),this.p0=new h(R,L),this._xRadius=p,this._yRadius=N,this._startAngle=A(g),this._endAngle=A(C),this._clockwise=P,this._rotation=A(M)},"EllipseCurve"),getStartPoint:function(S){return S===void 0&&(S=new h),this.getPoint(0,S)},getResolution:function(S){return S*2},getPoint:function(S,R){R===void 0&&(R=new h);for(var L=Math.PI*2,p=this._endAngle-this._startAngle,N=Math.abs(p)L;)p-=L;p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(80021),d=s(19217),c=s(87841),A=s(26099),h=new u({Extends:T,initialize:P(function(S,O){T.call(this,"LineCurve"),Array.isArray(S)&&(O=new A(S[2],S[3]),S=new A(S[0],S[1])),this.p0=S,this.p1=O,this.arcLengthDivisions=1},"LineCurve"),getBounds:function(f){return f===void 0&&(f=new c),d([this.p0,this.p1],f)},getStartPoint:function(f){return f===void 0&&(f=new A),f.copy(this.p0)},getResolution:function(f){return f===void 0&&(f=1),f},getPoint:function(f,S){return S===void 0&&(S=new A),f===1?S.copy(this.p1):(S.copy(this.p1).subtract(this.p0).scale(f).add(this.p0),S)},getPointAt:function(f,S){return this.getPoint(f,S)},getTangent:function(f,S){return S===void 0&&(S=new A),S.copy(this.p1).subtract(this.p0).normalize(),S},getUtoTmapping:function(f,S,O){var L;if(S){var p=this.getLengths(O),N=p[p.length-1],g=Math.min(S,N);L=g/N}else L=f;return L},draw:function(f){return f.lineBetween(this.p0.x,this.p0.y,this.p1.x,this.p1.y),f},toJSON:function(){return{type:this.type,points:[this.p0.x,this.p0.y,this.p1.x,this.p1.y]}}});h.fromJSON=function(f){var S=f.points,O=new A(S[0],S[1]),L=new A(S[2],S[3]);return new h(O,L)},o.exports=h},14744:(o,m,s)=>{/** + */var u=s(83419),T=s(80021),A=s(19217),c=s(87841),d=s(26099),h=new u({Extends:T,initialize:v(function(S,R){T.call(this,"LineCurve"),Array.isArray(S)&&(R=new d(S[2],S[3]),S=new d(S[0],S[1])),this.p0=S,this.p1=R,this.arcLengthDivisions=1},"LineCurve"),getBounds:function(f){return f===void 0&&(f=new c),A([this.p0,this.p1],f)},getStartPoint:function(f){return f===void 0&&(f=new d),f.copy(this.p0)},getResolution:function(f){return f===void 0&&(f=1),f},getPoint:function(f,S){return S===void 0&&(S=new d),f===1?S.copy(this.p1):(S.copy(this.p1).subtract(this.p0).scale(f).add(this.p0),S)},getPointAt:function(f,S){return this.getPoint(f,S)},getTangent:function(f,S){return S===void 0&&(S=new d),S.copy(this.p1).subtract(this.p0).normalize(),S},getUtoTmapping:function(f,S,R){var L;if(S){var p=this.getLengths(R),N=p[p.length-1],g=Math.min(S,N);L=g/N}else L=f;return L},draw:function(f){return f.lineBetween(this.p0.x,this.p0.y,this.p1.x,this.p1.y),f},toJSON:function(){return{type:this.type,points:[this.p0.x,this.p0.y,this.p1.x,this.p1.y]}}});h.fromJSON=function(f){var S=f.points,R=new d(S[0],S[1]),L=new d(S[2],S[3]);return new h(R,L)},o.exports=h},14744:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(80021),d=s(32112),c=s(26099),A=new u({Extends:T,initialize:P(function(f,S,O){T.call(this,"QuadraticBezierCurve"),Array.isArray(f)&&(O=new c(f[4],f[5]),S=new c(f[2],f[3]),f=new c(f[0],f[1])),this.p0=f,this.p1=S,this.p2=O},"QuadraticBezier"),getStartPoint:function(h){return h===void 0&&(h=new c),h.copy(this.p0)},getResolution:function(h){return h},getPoint:function(h,f){f===void 0&&(f=new c);var S=this.p0,O=this.p1,L=this.p2;return f.set(d(h,S.x,O.x,L.x),d(h,S.y,O.y,L.y))},draw:function(h,f){f===void 0&&(f=32);var S=this.getPoints(f);h.beginPath(),h.moveTo(this.p0.x,this.p0.y);for(var O=1;O{/** + */var u=s(83419),T=s(80021),A=s(32112),c=s(26099),d=new u({Extends:T,initialize:v(function(f,S,R){T.call(this,"QuadraticBezierCurve"),Array.isArray(f)&&(R=new c(f[4],f[5]),S=new c(f[2],f[3]),f=new c(f[0],f[1])),this.p0=f,this.p1=S,this.p2=R},"QuadraticBezier"),getStartPoint:function(h){return h===void 0&&(h=new c),h.copy(this.p0)},getResolution:function(h){return h},getPoint:function(h,f){f===void 0&&(f=new c);var S=this.p0,R=this.p1,L=this.p2;return f.set(A(h,S.x,R.x,L.x),A(h,S.y,R.y,L.y))},draw:function(h,f){f===void 0&&(f=32);var S=this.getPoints(f);h.beginPath(),h.moveTo(this.p0.x,this.p0.y);for(var R=1;R{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(87842),T=s(83419),d=s(80021),c=s(26099),A=new T({Extends:d,initialize:P(function(f){f===void 0&&(f=[]),d.call(this,"SplineCurve"),this.points=[],this.addPoints(f)},"SplineCurve"),addPoints:function(h){for(var f=0;fS.length-2?S.length-1:L+1],v=S[L>S.length-3?S.length-1:L+2];return f.set(u(p,N.x,g.x,C.x,v.x),u(p,N.y,g.y,C.y,v.y))},toJSON:function(){for(var h=[],f=0;f{/** + */var u=s(87842),T=s(83419),A=s(80021),c=s(26099),d=new T({Extends:A,initialize:v(function(f){f===void 0&&(f=[]),A.call(this,"SplineCurve"),this.points=[],this.addPoints(f)},"SplineCurve"),addPoints:function(h){for(var f=0;fS.length-2?S.length-1:L+1],P=S[L>S.length-3?S.length-1:L+2];return f.set(u(p,N.x,g.x,C.x,P.x),u(p,N.y,g.y,C.y,P.y))},toJSON:function(){for(var h=[],f=0;f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={Path:s(46669),MoveTo:s(68618),CubicBezier:s(46728),Curve:s(80021),Ellipse:s(73825),Line:s(33951),QuadraticBezier:s(14744),Spline:s(42534)}},68618:(o,m,s)=>{/** + */o.exports={Path:s(46669),MoveTo:s(68618),CubicBezier:s(46728),Curve:s(80021),Ellipse:s(73825),Line:s(33951),QuadraticBezier:s(14744),Spline:s(42534)}},68618:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(26099),d=new u({initialize:P(function(A,h){this.active=!1,this.p0=new T(A,h)},"MoveTo"),getPoint:function(c,A){return A===void 0&&(A=new T),A.copy(this.p0)},getPointAt:function(c,A){return this.getPoint(c,A)},getResolution:function(){return 1},getLength:function(){return 0},toJSON:function(){return{type:"MoveTo",points:[this.p0.x,this.p0.y]}}});o.exports=d},46669:(o,m,s)=>{/** + */var u=s(83419),T=s(26099),A=new u({initialize:v(function(d,h){this.active=!1,this.p0=new T(d,h)},"MoveTo"),getPoint:function(c,d){return d===void 0&&(d=new T),d.copy(this.p0)},getPointAt:function(c,d){return this.getPoint(c,d)},getResolution:function(){return 1},getLength:function(){return 0},toJSON:function(){return{type:"MoveTo",points:[this.p0.x,this.p0.y]}}});o.exports=A},46669:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(46728),d=s(73825),c=s(39429),A=s(33951),h=s(68618),f=s(14744),S=s(87841),O=s(42534),L=s(26099),p=s(36383),N=new u({initialize:P(function(C,v){C===void 0&&(C=0),v===void 0&&(v=0),this.name="",this.defaultDivisions=12,this.curves=[],this.cacheLengths=[],this.autoClose=!1,this.startPoint=new L,this._tmpVec2A=new L,this._tmpVec2B=new L,typeof C=="object"?this.fromJSON(C):this.startPoint.set(C,v)},"Path"),add:function(g){return this.curves.push(g),this},circleTo:function(g,C,v){return C===void 0&&(C=!1),this.ellipseTo(g,g,0,360,C,v)},closePath:function(){var g=this.curves[0].getPoint(0),C=this.curves[this.curves.length-1].getPoint(1);return g.equals(C)||this.curves.push(new A(C,g)),this},cubicBezierTo:function(g,C,v,M,D,G){var H=this.getEndPoint(),B,_,w;return g instanceof L?(B=g,_=C,w=v):(B=new L(v,M),_=new L(D,G),w=new L(g,C)),this.add(new T(H,B,_,w))},quadraticBezierTo:function(g,C,v,M){var D=this.getEndPoint(),G,H;return g instanceof L?(G=g,H=C):(G=new L(v,M),H=new L(g,C)),this.add(new f(D,G,H))},draw:function(g,C){for(var v=0;v=C)return this.curves[M];M++}return null},getEndPoint:function(g){return g===void 0&&(g=new L),this.curves.length>0?this.curves[this.curves.length-1].getPoint(1,g):g.copy(this.startPoint),g},getLength:function(){var g=this.getCurveLengths();return g[g.length-1]},getPoint:function(g,C){C===void 0&&(C=new L);for(var v=g*this.getLength(),M=this.getCurveLengths(),D=0;D=v){var G=M[D]-v,H=this.curves[D],B=H.getLength(),_=B===0?0:1-G/B;return H.getPointAt(_,C)}D++}return null},getPoints:function(g,C){!g&&!C&&(g=this.defaultDivisions);for(var v=[],M,D=0;D1&&!v[v.length-1].equals(v[0])&&v.push(v[0]),v},getRandomPoint:function(g){return g===void 0&&(g=new L),this.getPoint(Math.random(),g)},getSpacedPoints:function(g){g===void 0&&(g=40);for(var C=[],v=0;v<=g;v++)C.push(this.getPoint(v/g));return this.autoClose&&C.push(C[0]),C},getStartPoint:function(g){return g===void 0&&(g=new L),g.copy(this.startPoint)},getTangent:function(g,C){C===void 0&&(C=new L);for(var v=g*this.getLength(),M=this.getCurveLengths(),D=0;D=v){var G=M[D]-v,H=this.curves[D],B=H.getLength(),_=B===0?0:1-G/B;return H.getTangentAt(_,C)}D++}return null},lineTo:function(g,C){g instanceof L?this._tmpVec2B.copy(g):typeof g=="object"?this._tmpVec2B.setFromObject(g):this._tmpVec2B.set(g,C);var v=this.getEndPoint(this._tmpVec2A);return this.add(new A([v.x,v.y,this._tmpVec2B.x,this._tmpVec2B.y]))},splineTo:function(g){return g.unshift(this.getEndPoint()),this.add(new O(g))},moveTo:function(g,C){return g instanceof L?this.add(new h(g.x,g.y)):this.add(new h(g,C))},toJSON:function(){for(var g=[],C=0;C{/** + */var u=s(83419),T=s(46728),A=s(73825),c=s(39429),d=s(33951),h=s(68618),f=s(14744),S=s(87841),R=s(42534),L=s(26099),p=s(36383),N=new u({initialize:v(function(C,P){C===void 0&&(C=0),P===void 0&&(P=0),this.name="",this.defaultDivisions=12,this.curves=[],this.cacheLengths=[],this.autoClose=!1,this.startPoint=new L,this._tmpVec2A=new L,this._tmpVec2B=new L,typeof C=="object"?this.fromJSON(C):this.startPoint.set(C,P)},"Path"),add:function(g){return this.curves.push(g),this},circleTo:function(g,C,P){return C===void 0&&(C=!1),this.ellipseTo(g,g,0,360,C,P)},closePath:function(){var g=this.curves[0].getPoint(0),C=this.curves[this.curves.length-1].getPoint(1);return g.equals(C)||this.curves.push(new d(C,g)),this},cubicBezierTo:function(g,C,P,M,D,G){var H=this.getEndPoint(),B,b,w;return g instanceof L?(B=g,b=C,w=P):(B=new L(P,M),b=new L(D,G),w=new L(g,C)),this.add(new T(H,B,b,w))},quadraticBezierTo:function(g,C,P,M){var D=this.getEndPoint(),G,H;return g instanceof L?(G=g,H=C):(G=new L(P,M),H=new L(g,C)),this.add(new f(D,G,H))},draw:function(g,C){for(var P=0;P=C)return this.curves[M];M++}return null},getEndPoint:function(g){return g===void 0&&(g=new L),this.curves.length>0?this.curves[this.curves.length-1].getPoint(1,g):g.copy(this.startPoint),g},getLength:function(){var g=this.getCurveLengths();return g[g.length-1]},getPoint:function(g,C){C===void 0&&(C=new L);for(var P=g*this.getLength(),M=this.getCurveLengths(),D=0;D=P){var G=M[D]-P,H=this.curves[D],B=H.getLength(),b=B===0?0:1-G/B;return H.getPointAt(b,C)}D++}return null},getPoints:function(g,C){!g&&!C&&(g=this.defaultDivisions);for(var P=[],M,D=0;D1&&!P[P.length-1].equals(P[0])&&P.push(P[0]),P},getRandomPoint:function(g){return g===void 0&&(g=new L),this.getPoint(Math.random(),g)},getSpacedPoints:function(g){g===void 0&&(g=40);for(var C=[],P=0;P<=g;P++)C.push(this.getPoint(P/g));return this.autoClose&&C.push(C[0]),C},getStartPoint:function(g){return g===void 0&&(g=new L),g.copy(this.startPoint)},getTangent:function(g,C){C===void 0&&(C=new L);for(var P=g*this.getLength(),M=this.getCurveLengths(),D=0;D=P){var G=M[D]-P,H=this.curves[D],B=H.getLength(),b=B===0?0:1-G/B;return H.getTangentAt(b,C)}D++}return null},lineTo:function(g,C){g instanceof L?this._tmpVec2B.copy(g):typeof g=="object"?this._tmpVec2B.setFromObject(g):this._tmpVec2B.set(g,C);var P=this.getEndPoint(this._tmpVec2A);return this.add(new d([P.x,P.y,this._tmpVec2B.x,this._tmpVec2B.y]))},splineTo:function(g){return g.unshift(this.getEndPoint()),this.add(new R(g))},moveTo:function(g,C){return g instanceof L?this.add(new h(g.x,g.y)):this.add(new h(g,C))},toJSON:function(){for(var g=[],C=0;C{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(24882),d=new u({initialize:P(function(A,h){this.parent=A,this.events=h,h||(this.events=A.events?A.events:A),this.list={},this.values={},this._frozen=!1,!A.hasOwnProperty("sys")&&this.events&&this.events.once(T.DESTROY,this.destroy,this)},"DataManager"),get:function(c){var A=this.list;if(Array.isArray(c)){for(var h=[],f=0;f{/** + */var u=s(83419),T=s(24882),A=new u({initialize:v(function(d,h){this.parent=d,this.events=h,h||(this.events=d.events?d.events:d),this.list={},this.values={},this._frozen=!1,!d.hasOwnProperty("sys")&&this.events&&this.events.once(T.DESTROY,this.destroy,this)},"DataManager"),get:function(c){var d=this.list;if(Array.isArray(c)){for(var h=[],f=0;f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(45893),d=s(37277),c=s(44594),A=new u({Extends:T,initialize:P(function(f){T.call(this,f,f.sys.events),this.scene=f,this.systems=f.sys,f.sys.events.once(c.BOOT,this.boot,this),f.sys.events.on(c.START,this.start,this)},"DataManagerPlugin"),boot:function(){this.events=this.systems.events,this.events.once(c.DESTROY,this.destroy,this)},start:function(){this.events.once(c.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.systems.events.off(c.SHUTDOWN,this.shutdown,this)},destroy:function(){T.prototype.destroy.call(this),this.events.off(c.START,this.start,this),this.scene=null,this.systems=null}});d.register("DataManagerPlugin",A,"data"),o.exports=A},10700:o=>{/** + */var u=s(83419),T=s(45893),A=s(37277),c=s(44594),d=new u({Extends:T,initialize:v(function(f){T.call(this,f,f.sys.events),this.scene=f,this.systems=f.sys,f.sys.events.once(c.BOOT,this.boot,this),f.sys.events.on(c.START,this.start,this)},"DataManagerPlugin"),boot:function(){this.events=this.systems.events,this.events.once(c.DESTROY,this.destroy,this)},start:function(){this.events.once(c.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.systems.events.off(c.SHUTDOWN,this.shutdown,this)},destroy:function(){T.prototype.destroy.call(this),this.events.off(c.START,this.start,this),this.scene=null,this.systems=null}});A.register("DataManagerPlugin",d,"data"),o.exports=d},10700:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -639,231 +639,231 @@ var dne=Object.defineProperty;var P=(n,t)=>dne(n,"name",{value:t,configurable:!0 * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports="setdata"},24882:(o,m,s)=>{/** + */o.exports="setdata"},24882:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={CHANGE_DATA:s(10700),CHANGE_DATA_KEY:s(93608),DESTROY:s(60883),REMOVE_DATA:s(69780),SET_DATA:s(22166)}},44965:(o,m,s)=>{/** + */o.exports={CHANGE_DATA:s(10700),CHANGE_DATA_KEY:s(93608),DESTROY:s(60883),REMOVE_DATA:s(69780),SET_DATA:s(22166)}},44965:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={DataManager:s(45893),DataManagerPlugin:s(63646),Events:s(24882)}},7098:(o,m,s)=>{/** + */o.exports={DataManager:s(45893),DataManagerPlugin:s(63646),Events:s(24882)}},7098:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(84148),T={flac:!1,aac:!1,audioData:!1,dolby:!1,m4a:!1,mp3:!1,ogg:!1,opus:!1,wav:!1,webAudio:!1,webm:!1};function d(){if(typeof importScripts=="function")return T;T.audioData=!!window.Audio,T.webAudio=!!(window.AudioContext||window.webkitAudioContext);var c=document.createElement("audio"),A=!!c.canPlayType;try{if(A){var h=P(function(O,L){var p=c.canPlayType("audio/"+O).replace(/^no$/,"");return L?!!(p||c.canPlayType("audio/"+L).replace(/^no$/,"")):!!p},"CanPlay");if(T.ogg=h('ogg; codecs="vorbis"'),T.opus=h('ogg; codecs="opus"',"opus"),T.mp3=h("mpeg"),T.wav=h("wav"),T.m4a=h("x-m4a"),T.aac=h("aac"),T.flac=h("flac","x-flac"),T.webm=h('webm; codecs="vorbis"'),c.canPlayType('audio/mp4; codecs="ec-3"')!==""){if(u.edge)T.dolby=!0;else if(u.safari&&u.safariVersion>=9&&/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent)){var f=parseInt(RegExp.$1,10),S=parseInt(RegExp.$2,10);(f===10&&S>=11||f>10)&&(T.dolby=!0)}}}}catch{}return T}P(d,"init"),o.exports=d()},84148:(o,m,s)=>{/** + */var u=s(84148),T={flac:!1,aac:!1,audioData:!1,dolby:!1,m4a:!1,mp3:!1,ogg:!1,opus:!1,wav:!1,webAudio:!1,webm:!1};function A(){if(typeof importScripts=="function")return T;T.audioData=!!window.Audio,T.webAudio=!!(window.AudioContext||window.webkitAudioContext);var c=document.createElement("audio"),d=!!c.canPlayType;try{if(d){var h=v(function(R,L){var p=c.canPlayType("audio/"+R).replace(/^no$/,"");return L?!!(p||c.canPlayType("audio/"+L).replace(/^no$/,"")):!!p},"CanPlay");if(T.ogg=h('ogg; codecs="vorbis"'),T.opus=h('ogg; codecs="opus"',"opus"),T.mp3=h("mpeg"),T.wav=h("wav"),T.m4a=h("x-m4a"),T.aac=h("aac"),T.flac=h("flac","x-flac"),T.webm=h('webm; codecs="vorbis"'),c.canPlayType('audio/mp4; codecs="ec-3"')!==""){if(u.edge)T.dolby=!0;else if(u.safari&&u.safariVersion>=9&&/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent)){var f=parseInt(RegExp.$1,10),S=parseInt(RegExp.$2,10);(f===10&&S>=11||f>10)&&(T.dolby=!0)}}}}catch{}return T}v(A,"init"),o.exports=A()},84148:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(25892),T={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 d(){var c=navigator.userAgent;return/Edg\/\d+/.test(c)?(T.edge=!0,T.es2019=!0):/OPR/.test(c)?(T.opera=!0,T.es2019=!0):/Chrome\/(\d+)/.test(c)&&!u.windowsPhone?(T.chrome=!0,T.chromeVersion=parseInt(RegExp.$1,10),T.es2019=T.chromeVersion>69):/Firefox\D+(\d+)/.test(c)?(T.firefox=!0,T.firefoxVersion=parseInt(RegExp.$1,10),T.es2019=T.firefoxVersion>10):/AppleWebKit\/(?!.*CriOS)/.test(c)&&u.iOS?(T.mobileSafari=!0,T.es2019=!0):/MSIE (\d+\.\d+);/.test(c)?(T.ie=!0,T.ieVersion=parseInt(RegExp.$1,10)):/Version\/(\d+\.\d+(\.\d+)?) Safari/.test(c)&&!u.windowsPhone?(T.safari=!0,T.safariVersion=parseInt(RegExp.$1,10),T.es2019=T.safariVersion>10):/Trident\/(\d+\.\d+)(.*)rv:(\d+\.\d+)/.test(c)&&(T.ie=!0,T.trident=!0,T.tridentVersion=parseInt(RegExp.$1,10),T.ieVersion=parseInt(RegExp.$3,10)),/Silk/.test(c)&&(T.silk=!0),T}P(d,"init"),o.exports=d()},89289:(o,m,s)=>{/** + */var u=s(25892),T={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 A(){var c=navigator.userAgent;return/Edg\/\d+/.test(c)?(T.edge=!0,T.es2019=!0):/OPR/.test(c)?(T.opera=!0,T.es2019=!0):/Chrome\/(\d+)/.test(c)&&!u.windowsPhone?(T.chrome=!0,T.chromeVersion=parseInt(RegExp.$1,10),T.es2019=T.chromeVersion>69):/Firefox\D+(\d+)/.test(c)?(T.firefox=!0,T.firefoxVersion=parseInt(RegExp.$1,10),T.es2019=T.firefoxVersion>10):/AppleWebKit\/(?!.*CriOS)/.test(c)&&u.iOS?(T.mobileSafari=!0,T.es2019=!0):/MSIE (\d+\.\d+);/.test(c)?(T.ie=!0,T.ieVersion=parseInt(RegExp.$1,10)):/Version\/(\d+\.\d+(\.\d+)?) Safari/.test(c)&&!u.windowsPhone?(T.safari=!0,T.safariVersion=parseInt(RegExp.$1,10),T.es2019=T.safariVersion>10):/Trident\/(\d+\.\d+)(.*)rv:(\d+\.\d+)/.test(c)&&(T.ie=!0,T.trident=!0,T.tridentVersion=parseInt(RegExp.$1,10),T.ieVersion=parseInt(RegExp.$3,10)),/Silk/.test(c)&&(T.silk=!0),T}v(A,"init"),o.exports=A()},89289:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(27919),T={supportInverseAlpha:!1,supportNewBlendModes:!1};function d(){var h="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/",f="AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",S=new Image;return S.onload=function(){var O=new Image;O.onload=function(){var L=u.create2D(O,6),p=L.getContext("2d",{willReadFrequently:!0});if(p.globalCompositeOperation="multiply",p.drawImage(S,0,0),p.drawImage(O,2,0),!p.getImageData(2,0,1,1))return!1;var N=p.getImageData(2,0,1,1).data;u.remove(O),T.supportNewBlendModes=N[0]===255&&N[1]===0&&N[2]===0},O.src=h+"/wCKxvRF"+f},S.src=h+"AP804Oa6"+f,!1}P(d,"checkBlendMode");function c(){var h=u.create2D(this,2),f=h.getContext("2d",{willReadFrequently:!0});f.fillStyle="rgba(10, 20, 30, 0.5)",f.fillRect(0,0,1,1);var S=f.getImageData(0,0,1,1);if(S===null)return!1;f.putImageData(S,1,0);var O=f.getImageData(1,0,1,1),L=O.data[0]===S.data[0]&&O.data[1]===S.data[1]&&O.data[2]===S.data[2]&&O.data[3]===S.data[3];return u.remove(this),L}P(c,"checkInverseAlpha");function A(){return typeof importScripts!="function"&&document!==void 0&&(T.supportNewBlendModes=d(),T.supportInverseAlpha=c()),T}P(A,"init"),o.exports=A()},89357:(o,m,s)=>{/** + */var u=s(27919),T={supportInverseAlpha:!1,supportNewBlendModes:!1};function A(){var h="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/",f="AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",S=new Image;return S.onload=function(){var R=new Image;R.onload=function(){var L=u.create2D(R,6),p=L.getContext("2d",{willReadFrequently:!0});if(p.globalCompositeOperation="multiply",p.drawImage(S,0,0),p.drawImage(R,2,0),!p.getImageData(2,0,1,1))return!1;var N=p.getImageData(2,0,1,1).data;u.remove(R),T.supportNewBlendModes=N[0]===255&&N[1]===0&&N[2]===0},R.src=h+"/wCKxvRF"+f},S.src=h+"AP804Oa6"+f,!1}v(A,"checkBlendMode");function c(){var h=u.create2D(this,2),f=h.getContext("2d",{willReadFrequently:!0});f.fillStyle="rgba(10, 20, 30, 0.5)",f.fillRect(0,0,1,1);var S=f.getImageData(0,0,1,1);if(S===null)return!1;f.putImageData(S,1,0);var R=f.getImageData(1,0,1,1),L=R.data[0]===S.data[0]&&R.data[1]===S.data[1]&&R.data[2]===S.data[2]&&R.data[3]===S.data[3];return u.remove(this),L}v(c,"checkInverseAlpha");function d(){return typeof importScripts!="function"&&document!==void 0&&(T.supportNewBlendModes=A(),T.supportInverseAlpha=c()),T}v(d,"init"),o.exports=d()},89357:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(25892),T=s(84148),d=s(27919),c={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 f=new ArrayBuffer(4),S=new Uint8Array(f),O=new Uint32Array(f);return S[0]=161,S[1]=178,S[2]=195,S[3]=212,O[0]===3569595041?!0:O[0]===2712847316?!1:null}P(A,"checkIsLittleEndian");function h(){if(typeof importScripts=="function")return c;c.canvas=!!window.CanvasRenderingContext2D;try{c.localStorage=!!localStorage.getItem}catch{c.localStorage=!1}c.file=!!window.File&&!!window.FileReader&&!!window.FileList&&!!window.Blob,c.fileSystem=!!window.requestFileSystem;var f=!1,S=P(function(){if(window.WebGLRenderingContext)try{var O=d.createWebGL(this),L=O.getContext("webgl")||O.getContext("experimental-webgl"),p=d.create2D(this),N=p.getContext("2d",{willReadFrequently:!0}),g=N.createImageData(1,1);return f=g.data instanceof Uint8ClampedArray,d.remove(O),d.remove(p),!!L}catch{return!1}return!1},"testWebGL");return c.webGL=S(),c.worker=!!window.Worker,c.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,c.getUserMedia=c.getUserMedia&&!!navigator.getUserMedia&&!!window.URL,T.firefox&&T.firefoxVersion<21&&(c.getUserMedia=!1),!u.iOS&&(T.ie||T.firefox||T.chrome)&&(c.canvasBitBltShift=!0),(T.safari||T.mobileSafari)&&(c.canvasBitBltShift=!1),navigator.vibrate=navigator.vibrate||navigator.webkitVibrate||navigator.mozVibrate||navigator.msVibrate,navigator.vibrate&&(c.vibration=!0),typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint32Array<"u"&&(c.littleEndian=A()),c.support32bit=typeof ArrayBuffer<"u"&&typeof Uint8ClampedArray<"u"&&typeof Int32Array<"u"&&c.littleEndian!==null&&f,c}P(h,"init"),o.exports=h()},91639:o=>{/** + */var u=s(25892),T=s(84148),A=s(27919),c={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 d(){var f=new ArrayBuffer(4),S=new Uint8Array(f),R=new Uint32Array(f);return S[0]=161,S[1]=178,S[2]=195,S[3]=212,R[0]===3569595041?!0:R[0]===2712847316?!1:null}v(d,"checkIsLittleEndian");function h(){if(typeof importScripts=="function")return c;c.canvas=!!window.CanvasRenderingContext2D;try{c.localStorage=!!localStorage.getItem}catch{c.localStorage=!1}c.file=!!window.File&&!!window.FileReader&&!!window.FileList&&!!window.Blob,c.fileSystem=!!window.requestFileSystem;var f=!1,S=v(function(){if(window.WebGLRenderingContext)try{var R=A.createWebGL(this),L=R.getContext("webgl")||R.getContext("experimental-webgl"),p=A.create2D(this),N=p.getContext("2d",{willReadFrequently:!0}),g=N.createImageData(1,1);return f=g.data instanceof Uint8ClampedArray,A.remove(R),A.remove(p),!!L}catch{return!1}return!1},"testWebGL");return c.webGL=S(),c.worker=!!window.Worker,c.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,c.getUserMedia=c.getUserMedia&&!!navigator.getUserMedia&&!!window.URL,T.firefox&&T.firefoxVersion<21&&(c.getUserMedia=!1),!u.iOS&&(T.ie||T.firefox||T.chrome)&&(c.canvasBitBltShift=!0),(T.safari||T.mobileSafari)&&(c.canvasBitBltShift=!1),navigator.vibrate=navigator.vibrate||navigator.webkitVibrate||navigator.mozVibrate||navigator.msVibrate,navigator.vibrate&&(c.vibration=!0),typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint32Array<"u"&&(c.littleEndian=d()),c.support32bit=typeof ArrayBuffer<"u"&&typeof Uint8ClampedArray<"u"&&typeof Int32Array<"u"&&c.littleEndian!==null&&f,c}v(h,"init"),o.exports=h()},91639:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={available:!1,cancel:"",keyboard:!1,request:""};function s(){if(typeof importScripts=="function")return m;var u,T="Fullscreen",d="FullScreen",c=["request"+T,"request"+d,"webkitRequest"+T,"webkitRequest"+d,"msRequest"+T,"msRequest"+d,"mozRequest"+d,"mozRequest"+T];for(u=0;u{/** + */var O={available:!1,cancel:"",keyboard:!1,request:""};function s(){if(typeof importScripts=="function")return O;var u,T="Fullscreen",A="FullScreen",c=["request"+T,"request"+A,"webkitRequest"+T,"webkitRequest"+A,"msRequest"+T,"msRequest"+A,"mozRequest"+A,"mozRequest"+T];for(u=0;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(84148),T={gamepads:!1,mspointer:!1,touch:!1,wheelEvent:null};function d(){return typeof importScripts=="function"||(("ontouchstart"in document.documentElement||navigator.maxTouchPoints&&navigator.maxTouchPoints>=1)&&(T.touch=!0),(navigator.msPointerEnabled||navigator.pointerEnabled)&&(T.mspointer=!0),navigator.getGamepads&&(T.gamepads=!0),"onwheel"in window||u.ie&&"WheelEvent"in window?T.wheelEvent="wheel":"onmousewheel"in window?T.wheelEvent="mousewheel":u.firefox&&"MouseScrollEvent"in window&&(T.wheelEvent="DOMMouseScroll")),T}P(d,"init"),o.exports=d()},25892:o=>{/** + */var u=s(84148),T={gamepads:!1,mspointer:!1,touch:!1,wheelEvent:null};function A(){return typeof importScripts=="function"||(("ontouchstart"in document.documentElement||navigator.maxTouchPoints&&navigator.maxTouchPoints>=1)&&(T.touch=!0),(navigator.msPointerEnabled||navigator.pointerEnabled)&&(T.mspointer=!0),navigator.getGamepads&&(T.gamepads=!0),"onwheel"in window||u.ie&&"WheelEvent"in window?T.wheelEvent="wheel":"onmousewheel"in window?T.wheelEvent="mousewheel":u.firefox&&"MouseScrollEvent"in window&&(T.wheelEvent="DOMMouseScroll")),T}v(A,"init"),o.exports=A()},25892:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={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 s(){if(typeof importScripts=="function")return m;var u=navigator.userAgent;/Windows/.test(u)?m.windows=!0:/Mac OS/.test(u)&&!/like Mac OS/.test(u)?navigator.maxTouchPoints&&navigator.maxTouchPoints>2?(m.iOS=!0,m.iPad=!0,navigator.appVersion.match(/Version\/(\d+)/),m.iOSVersion=parseInt(RegExp.$1,10)):m.macOS=!0:/Android/.test(u)?m.android=!0:/Linux/.test(u)?m.linux=!0:/iP[ao]d|iPhone/i.test(u)?(m.iOS=!0,navigator.appVersion.match(/OS (\d+)/),m.iOSVersion=parseInt(RegExp.$1,10),m.iPhone=u.toLowerCase().indexOf("iphone")!==-1,m.iPad=u.toLowerCase().indexOf("ipad")!==-1):/Kindle/.test(u)||/\bKF[A-Z][A-Z]+/.test(u)||/Silk.*Mobile Safari/.test(u)?m.kindle=!0:/CrOS/.test(u)&&(m.chromeOS=!0),(/Windows Phone/i.test(u)||/IEMobile/i.test(u))&&(m.android=!1,m.iOS=!1,m.macOS=!1,m.windows=!0,m.windowsPhone=!0);var T=/Silk/.test(u);return(m.windows||m.macOS||m.linux&&!T||m.chromeOS)&&(m.desktop=!0),(m.windowsPhone||/Windows NT/i.test(u)&&/Touch/i.test(u))&&(m.desktop=!1),navigator.standalone&&(m.webApp=!0),typeof importScripts!="function"&&(window.cordova!==void 0&&(m.cordova=!0),window.ejecta!==void 0&&(m.ejecta=!0)),typeof process<"u"&&process.versions&&process.versions.node&&(m.node=!0),m.node&&typeof process.versions=="object"&&(m.nodeWebkit=!!process.versions["node-webkit"],m.electron=!!process.versions.electron),/Crosswalk/.test(u)&&(m.crosswalk=!0),m.pixelRatio=window.devicePixelRatio||1,m}P(s,"init"),o.exports=s()},43267:(o,m,s)=>{/** + */var O={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 s(){if(typeof importScripts=="function")return O;var u=navigator.userAgent;/Windows/.test(u)?O.windows=!0:/Mac OS/.test(u)&&!/like Mac OS/.test(u)?navigator.maxTouchPoints&&navigator.maxTouchPoints>2?(O.iOS=!0,O.iPad=!0,navigator.appVersion.match(/Version\/(\d+)/),O.iOSVersion=parseInt(RegExp.$1,10)):O.macOS=!0:/Android/.test(u)?O.android=!0:/Linux/.test(u)?O.linux=!0:/iP[ao]d|iPhone/i.test(u)?(O.iOS=!0,navigator.appVersion.match(/OS (\d+)/),O.iOSVersion=parseInt(RegExp.$1,10),O.iPhone=u.toLowerCase().indexOf("iphone")!==-1,O.iPad=u.toLowerCase().indexOf("ipad")!==-1):/Kindle/.test(u)||/\bKF[A-Z][A-Z]+/.test(u)||/Silk.*Mobile Safari/.test(u)?O.kindle=!0:/CrOS/.test(u)&&(O.chromeOS=!0),(/Windows Phone/i.test(u)||/IEMobile/i.test(u))&&(O.android=!1,O.iOS=!1,O.macOS=!1,O.windows=!0,O.windowsPhone=!0);var T=/Silk/.test(u);return(O.windows||O.macOS||O.linux&&!T||O.chromeOS)&&(O.desktop=!0),(O.windowsPhone||/Windows NT/i.test(u)&&/Touch/i.test(u))&&(O.desktop=!1),navigator.standalone&&(O.webApp=!0),typeof importScripts!="function"&&(window.cordova!==void 0&&(O.cordova=!0),window.ejecta!==void 0&&(O.ejecta=!0)),typeof process<"u"&&process.versions&&process.versions.node&&(O.node=!0),O.node&&typeof process.versions=="object"&&(O.nodeWebkit=!!process.versions["node-webkit"],O.electron=!!process.versions.electron),/Crosswalk/.test(u)&&(O.crosswalk=!0),O.pixelRatio=window.devicePixelRatio||1,O}v(s,"init"),o.exports=s()},43267:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(95540),T={h264:!1,hls:!1,mp4:!1,m4v:!1,ogg:!1,vp9:!1,webm:!1,hasRequestVideoFrame:!1};function d(){if(typeof importScripts=="function")return T;var c=document.createElement("video"),A=!!c.canPlayType,h=/^no$/;try{A&&(c.canPlayType('video/ogg; codecs="theora"').replace(h,"")&&(T.ogg=!0),c.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(h,"")&&(T.h264=!0,T.mp4=!0),c.canPlayType("video/x-m4v").replace(h,"")&&(T.m4v=!0),c.canPlayType('video/webm; codecs="vp8, vorbis"').replace(h,"")&&(T.webm=!0),c.canPlayType('video/webm; codecs="vp9"').replace(h,"")&&(T.vp9=!0),c.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(h,"")&&(T.hls=!0))}catch{}return c.parentNode&&c.parentNode.removeChild(c),T.getVideoURL=function(f){Array.isArray(f)||(f=[f]);for(var S=0;S{/** + */var u=s(95540),T={h264:!1,hls:!1,mp4:!1,m4v:!1,ogg:!1,vp9:!1,webm:!1,hasRequestVideoFrame:!1};function A(){if(typeof importScripts=="function")return T;var c=document.createElement("video"),d=!!c.canPlayType,h=/^no$/;try{d&&(c.canPlayType('video/ogg; codecs="theora"').replace(h,"")&&(T.ogg=!0),c.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(h,"")&&(T.h264=!0,T.mp4=!0),c.canPlayType("video/x-m4v").replace(h,"")&&(T.m4v=!0),c.canPlayType('video/webm; codecs="vp8, vorbis"').replace(h,"")&&(T.webm=!0),c.canPlayType('video/webm; codecs="vp9"').replace(h,"")&&(T.vp9=!0),c.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(h,"")&&(T.hls=!0))}catch{}return c.parentNode&&c.parentNode.removeChild(c),T.getVideoURL=function(f){Array.isArray(f)||(f=[f]);for(var S=0;S{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={os:s(25892),browser:s(84148),features:s(89357),input:s(31784),audio:s(7098),video:s(43267),fullscreen:s(91639),canvasFeatures:s(89289)}},89422:(o,m,s)=>{/** + */o.exports={os:s(25892),browser:s(84148),features:s(89357),input:s(31784),audio:s(7098),video:s(43267),fullscreen:s(91639),canvasFeatures:s(89289)}},89422:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=new Float32Array(20),d=new u({initialize:P(function(){this._matrix=new Float32Array(20),this.alpha=1,this._dirty=!0,this._data=new Float32Array(20),this.reset()},"ColorMatrix"),set:function(c){return this._matrix.set(c),this._dirty=!0,this},reset:function(){var c=this._matrix;return c.fill(0),c[0]=1,c[6]=1,c[12]=1,c[18]=1,this.alpha=1,this._dirty=!0,this},getData:function(){var c=this._data;return this._dirty&&(c.set(this._matrix),c[4]/=255,c[9]/=255,c[14]/=255,c[19]/=255,this._dirty=!1),c},brightness:function(c,A){c===void 0&&(c=0),A===void 0&&(A=!1);var h=c;return this.multiply([h,0,0,0,0,0,h,0,0,0,0,0,h,0,0,0,0,0,1,0],A)},saturate:function(c,A){c===void 0&&(c=0),A===void 0&&(A=!1);var h=c*2/3+1,f=(h-1)*-.5;return this.multiply([h,f,f,0,0,f,h,f,0,0,f,f,h,0,0,0,0,0,1,0],A)},desaturate:function(c){return c===void 0&&(c=!1),this.saturate(-1,c)},hue:function(c,A){c===void 0&&(c=0),A===void 0&&(A=!1),c=c/180*Math.PI;var h=Math.cos(c),f=Math.sin(c),S=.213,O=.715,L=.072;return this.multiply([S+h*(1-S)+f*-S,O+h*-O+f*-O,L+h*-L+f*(1-L),0,0,S+h*-S+f*.143,O+h*(1-O)+f*.14,L+h*-L+f*-.283,0,0,S+h*-S+f*-(1-S),O+h*-O+f*O,L+h*(1-L)+f*L,0,0,0,0,0,1,0],A)},grayscale:function(c,A){return c===void 0&&(c=1),A===void 0&&(A=!1),this.saturate(-c,A)},blackWhite:function(c){return c===void 0&&(c=!1),this.multiply(d.BLACK_WHITE,c)},contrast:function(c,A){c===void 0&&(c=0),A===void 0&&(A=!1);var h=c+1,f=-.5*(h-1);return this.multiply([h,0,0,0,f,0,h,0,0,f,0,0,h,0,f,0,0,0,1,0],A)},negative:function(c){return c===void 0&&(c=!1),this.multiply(d.NEGATIVE,c)},desaturateLuminance:function(c){return c===void 0&&(c=!1),this.multiply(d.DESATURATE_LUMINANCE,c)},sepia:function(c){return c===void 0&&(c=!1),this.multiply(d.SEPIA,c)},night:function(c,A){return c===void 0&&(c=.1),A===void 0&&(A=!1),this.multiply([c*-2,-c,0,0,0,-c,0,c,0,0,0,c,c*2,0,0,0,0,0,1,0],A)},lsd:function(c){return c===void 0&&(c=!1),this.multiply(d.LSD,c)},brown:function(c){return c===void 0&&(c=!1),this.multiply(d.BROWN,c)},vintagePinhole:function(c){return c===void 0&&(c=!1),this.multiply(d.VINTAGE,c)},kodachrome:function(c){return c===void 0&&(c=!1),this.multiply(d.KODACHROME,c)},technicolor:function(c){return c===void 0&&(c=!1),this.multiply(d.TECHNICOLOR,c)},polaroid:function(c){return c===void 0&&(c=!1),this.multiply(d.POLAROID,c)},shiftToBGR:function(c){return c===void 0&&(c=!1),this.multiply(d.SHIFT_BGR,c)},multiply:function(c,A){A===void 0&&(A=!1),A||this.reset();var h=this._matrix,f=T;return f.set(h),h.set([f[0]*c[0]+f[1]*c[5]+f[2]*c[10]+f[3]*c[15],f[0]*c[1]+f[1]*c[6]+f[2]*c[11]+f[3]*c[16],f[0]*c[2]+f[1]*c[7]+f[2]*c[12]+f[3]*c[17],f[0]*c[3]+f[1]*c[8]+f[2]*c[13]+f[3]*c[18],f[0]*c[4]+f[1]*c[9]+f[2]*c[14]+f[3]*c[19]+f[4],f[5]*c[0]+f[6]*c[5]+f[7]*c[10]+f[8]*c[15],f[5]*c[1]+f[6]*c[6]+f[7]*c[11]+f[8]*c[16],f[5]*c[2]+f[6]*c[7]+f[7]*c[12]+f[8]*c[17],f[5]*c[3]+f[6]*c[8]+f[7]*c[13]+f[8]*c[18],f[5]*c[4]+f[6]*c[9]+f[7]*c[14]+f[8]*c[19]+f[9],f[10]*c[0]+f[11]*c[5]+f[12]*c[10]+f[13]*c[15],f[10]*c[1]+f[11]*c[6]+f[12]*c[11]+f[13]*c[16],f[10]*c[2]+f[11]*c[7]+f[12]*c[12]+f[13]*c[17],f[10]*c[3]+f[11]*c[8]+f[12]*c[13]+f[13]*c[18],f[10]*c[4]+f[11]*c[9]+f[12]*c[14]+f[13]*c[19]+f[14],f[15]*c[0]+f[16]*c[5]+f[17]*c[10]+f[18]*c[15],f[15]*c[1]+f[16]*c[6]+f[17]*c[11]+f[18]*c[16],f[15]*c[2]+f[16]*c[7]+f[17]*c[12]+f[18]*c[17],f[15]*c[3]+f[16]*c[8]+f[17]*c[13]+f[18]*c[18],f[15]*c[4]+f[16]*c[9]+f[17]*c[14]+f[18]*c[19]+f[19]]),this._dirty=!0,this}});d.BLACK_WHITE=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0],d.NEGATIVE=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0],d.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],d.SEPIA=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0],d.LSD=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],d.BROWN=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0],d.VINTAGE=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0],d.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],d.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],d.POLAROID=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],d.SHIFT_BGR=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],o.exports=d},51767:(o,m,s)=>{/** + */var u=s(83419),T=new Float32Array(20),A=new u({initialize:v(function(){this._matrix=new Float32Array(20),this.alpha=1,this._dirty=!0,this._data=new Float32Array(20),this.reset()},"ColorMatrix"),set:function(c){return this._matrix.set(c),this._dirty=!0,this},reset:function(){var c=this._matrix;return c.fill(0),c[0]=1,c[6]=1,c[12]=1,c[18]=1,this.alpha=1,this._dirty=!0,this},getData:function(){var c=this._data;return this._dirty&&(c.set(this._matrix),c[4]/=255,c[9]/=255,c[14]/=255,c[19]/=255,this._dirty=!1),c},brightness:function(c,d){c===void 0&&(c=0),d===void 0&&(d=!1);var h=c;return this.multiply([h,0,0,0,0,0,h,0,0,0,0,0,h,0,0,0,0,0,1,0],d)},saturate:function(c,d){c===void 0&&(c=0),d===void 0&&(d=!1);var h=c*2/3+1,f=(h-1)*-.5;return this.multiply([h,f,f,0,0,f,h,f,0,0,f,f,h,0,0,0,0,0,1,0],d)},desaturate:function(c){return c===void 0&&(c=!1),this.saturate(-1,c)},hue:function(c,d){c===void 0&&(c=0),d===void 0&&(d=!1),c=c/180*Math.PI;var h=Math.cos(c),f=Math.sin(c),S=.213,R=.715,L=.072;return this.multiply([S+h*(1-S)+f*-S,R+h*-R+f*-R,L+h*-L+f*(1-L),0,0,S+h*-S+f*.143,R+h*(1-R)+f*.14,L+h*-L+f*-.283,0,0,S+h*-S+f*-(1-S),R+h*-R+f*R,L+h*(1-L)+f*L,0,0,0,0,0,1,0],d)},grayscale:function(c,d){return c===void 0&&(c=1),d===void 0&&(d=!1),this.saturate(-c,d)},blackWhite:function(c){return c===void 0&&(c=!1),this.multiply(A.BLACK_WHITE,c)},contrast:function(c,d){c===void 0&&(c=0),d===void 0&&(d=!1);var h=c+1,f=-.5*(h-1);return this.multiply([h,0,0,0,f,0,h,0,0,f,0,0,h,0,f,0,0,0,1,0],d)},negative:function(c){return c===void 0&&(c=!1),this.multiply(A.NEGATIVE,c)},desaturateLuminance:function(c){return c===void 0&&(c=!1),this.multiply(A.DESATURATE_LUMINANCE,c)},sepia:function(c){return c===void 0&&(c=!1),this.multiply(A.SEPIA,c)},night:function(c,d){return c===void 0&&(c=.1),d===void 0&&(d=!1),this.multiply([c*-2,-c,0,0,0,-c,0,c,0,0,0,c,c*2,0,0,0,0,0,1,0],d)},lsd:function(c){return c===void 0&&(c=!1),this.multiply(A.LSD,c)},brown:function(c){return c===void 0&&(c=!1),this.multiply(A.BROWN,c)},vintagePinhole:function(c){return c===void 0&&(c=!1),this.multiply(A.VINTAGE,c)},kodachrome:function(c){return c===void 0&&(c=!1),this.multiply(A.KODACHROME,c)},technicolor:function(c){return c===void 0&&(c=!1),this.multiply(A.TECHNICOLOR,c)},polaroid:function(c){return c===void 0&&(c=!1),this.multiply(A.POLAROID,c)},shiftToBGR:function(c){return c===void 0&&(c=!1),this.multiply(A.SHIFT_BGR,c)},multiply:function(c,d){d===void 0&&(d=!1),d||this.reset();var h=this._matrix,f=T;return f.set(h),h.set([f[0]*c[0]+f[1]*c[5]+f[2]*c[10]+f[3]*c[15],f[0]*c[1]+f[1]*c[6]+f[2]*c[11]+f[3]*c[16],f[0]*c[2]+f[1]*c[7]+f[2]*c[12]+f[3]*c[17],f[0]*c[3]+f[1]*c[8]+f[2]*c[13]+f[3]*c[18],f[0]*c[4]+f[1]*c[9]+f[2]*c[14]+f[3]*c[19]+f[4],f[5]*c[0]+f[6]*c[5]+f[7]*c[10]+f[8]*c[15],f[5]*c[1]+f[6]*c[6]+f[7]*c[11]+f[8]*c[16],f[5]*c[2]+f[6]*c[7]+f[7]*c[12]+f[8]*c[17],f[5]*c[3]+f[6]*c[8]+f[7]*c[13]+f[8]*c[18],f[5]*c[4]+f[6]*c[9]+f[7]*c[14]+f[8]*c[19]+f[9],f[10]*c[0]+f[11]*c[5]+f[12]*c[10]+f[13]*c[15],f[10]*c[1]+f[11]*c[6]+f[12]*c[11]+f[13]*c[16],f[10]*c[2]+f[11]*c[7]+f[12]*c[12]+f[13]*c[17],f[10]*c[3]+f[11]*c[8]+f[12]*c[13]+f[13]*c[18],f[10]*c[4]+f[11]*c[9]+f[12]*c[14]+f[13]*c[19]+f[14],f[15]*c[0]+f[16]*c[5]+f[17]*c[10]+f[18]*c[15],f[15]*c[1]+f[16]*c[6]+f[17]*c[11]+f[18]*c[16],f[15]*c[2]+f[16]*c[7]+f[17]*c[12]+f[18]*c[17],f[15]*c[3]+f[16]*c[8]+f[17]*c[13]+f[18]*c[18],f[15]*c[4]+f[16]*c[9]+f[17]*c[14]+f[18]*c[19]+f[19]]),this._dirty=!0,this}});A.BLACK_WHITE=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0],A.NEGATIVE=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0],A.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],A.SEPIA=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0],A.LSD=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],A.BROWN=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0],A.VINTAGE=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0],A.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],A.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],A.POLAROID=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],A.SHIFT_BGR=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],o.exports=A},51767:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(29747),d=new u({initialize:P(function(A,h,f){this._rgb=[0,0,0],this.onChangeCallback=T,this.dirty=!1,this.set(A,h,f)},"RGB"),set:function(c,A,h){return c===void 0&&(c=0),A===void 0&&(A=0),h===void 0&&(h=0),this._rgb=[c,A,h],this.onChange(),this},equals:function(c,A,h){var f=this._rgb;return f[0]===c&&f[1]===A&&f[2]===h},onChange:function(){this.dirty=!0;var c=this._rgb;this.onChangeCallback.call(this,c[0],c[1],c[2])},r:{get:function(){return this._rgb[0]},set:function(c){this._rgb[0]=c,this.onChange()}},g:{get:function(){return this._rgb[1]},set:function(c){this._rgb[1]=c,this.onChange()}},b:{get:function(){return this._rgb[2]},set:function(c){this._rgb[2]=c,this.onChange()}},destroy:function(){this.onChangeCallback=null}});o.exports=d},60461:o=>{/** + */var u=s(83419),T=s(29747),A=new u({initialize:v(function(d,h,f){this._rgb=[0,0,0],this.onChangeCallback=T,this.dirty=!1,this.set(d,h,f)},"RGB"),set:function(c,d,h){return c===void 0&&(c=0),d===void 0&&(d=0),h===void 0&&(h=0),this._rgb=[c,d,h],this.onChange(),this},equals:function(c,d,h){var f=this._rgb;return f[0]===c&&f[1]===d&&f[2]===h},onChange:function(){this.dirty=!0;var c=this._rgb;this.onChangeCallback.call(this,c[0],c[1],c[2])},r:{get:function(){return this._rgb[0]},set:function(c){this._rgb[0]=c,this.onChange()}},g:{get:function(){return this._rgb[1]},set:function(c){this._rgb[1]=c,this.onChange()}},b:{get:function(){return this._rgb[2]},set:function(c){this._rgb[2]=c,this.onChange()}},destroy:function(){this.onChangeCallback=null}});o.exports=A},60461:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={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};o.exports=m},54312:(o,m,s)=>{/** + */var O={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};o.exports=O},54312:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(62235),T=s(35893),d=s(86327),c=s(88417),A=P(function(h,f,S,O){return S===void 0&&(S=0),O===void 0&&(O=0),c(h,T(f)+S),d(h,u(f)+O),h},"BottomCenter");o.exports=A},46768:(o,m,s)=>{/** + */var u=s(62235),T=s(35893),A=s(86327),c=s(88417),d=v(function(h,f,S,R){return S===void 0&&(S=0),R===void 0&&(R=0),c(h,T(f)+S),A(h,u(f)+R),h},"BottomCenter");o.exports=d},46768:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(62235),T=s(26541),d=s(86327),c=s(385),A=P(function(h,f,S,O){return S===void 0&&(S=0),O===void 0&&(O=0),c(h,T(f)-S),d(h,u(f)+O),h},"BottomLeft");o.exports=A},35827:(o,m,s)=>{/** + */var u=s(62235),T=s(26541),A=s(86327),c=s(385),d=v(function(h,f,S,R){return S===void 0&&(S=0),R===void 0&&(R=0),c(h,T(f)-S),A(h,u(f)+R),h},"BottomLeft");o.exports=d},35827:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(62235),T=s(54380),d=s(86327),c=s(40136),A=P(function(h,f,S,O){return S===void 0&&(S=0),O===void 0&&(O=0),c(h,T(f)+S),d(h,u(f)+O),h},"BottomRight");o.exports=A},46871:(o,m,s)=>{/** + */var u=s(62235),T=s(54380),A=s(86327),c=s(40136),d=v(function(h,f,S,R){return S===void 0&&(S=0),R===void 0&&(R=0),c(h,T(f)+S),A(h,u(f)+R),h},"BottomRight");o.exports=d},46871:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(66786),T=s(35893),d=s(7702),c=P(function(A,h,f,S){return f===void 0&&(f=0),S===void 0&&(S=0),u(A,T(h)+f,d(h)+S),A},"Center");o.exports=c},5198:(o,m,s)=>{/** + */var u=s(66786),T=s(35893),A=s(7702),c=v(function(d,h,f,S){return f===void 0&&(f=0),S===void 0&&(S=0),u(d,T(h)+f,A(h)+S),d},"Center");o.exports=c},5198:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(7702),T=s(26541),d=s(20786),c=s(385),A=P(function(h,f,S,O){return S===void 0&&(S=0),O===void 0&&(O=0),c(h,T(f)-S),d(h,u(f)+O),h},"LeftCenter");o.exports=A},11879:(o,m,s)=>{/** + */var u=s(7702),T=s(26541),A=s(20786),c=s(385),d=v(function(h,f,S,R){return S===void 0&&(S=0),R===void 0&&(R=0),c(h,T(f)-S),A(h,u(f)+R),h},"LeftCenter");o.exports=d},11879:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(60461),T=[];T[u.BOTTOM_CENTER]=s(54312),T[u.BOTTOM_LEFT]=s(46768),T[u.BOTTOM_RIGHT]=s(35827),T[u.CENTER]=s(46871),T[u.LEFT_CENTER]=s(5198),T[u.RIGHT_CENTER]=s(80503),T[u.TOP_CENTER]=s(89698),T[u.TOP_LEFT]=s(922),T[u.TOP_RIGHT]=s(21373),T[u.LEFT_BOTTOM]=T[u.BOTTOM_LEFT],T[u.LEFT_TOP]=T[u.TOP_LEFT],T[u.RIGHT_BOTTOM]=T[u.BOTTOM_RIGHT],T[u.RIGHT_TOP]=T[u.TOP_RIGHT];var d=P(function(c,A,h,f,S){return T[h](c,A,f,S)},"QuickSet");o.exports=d},80503:(o,m,s)=>{/** + */var u=s(60461),T=[];T[u.BOTTOM_CENTER]=s(54312),T[u.BOTTOM_LEFT]=s(46768),T[u.BOTTOM_RIGHT]=s(35827),T[u.CENTER]=s(46871),T[u.LEFT_CENTER]=s(5198),T[u.RIGHT_CENTER]=s(80503),T[u.TOP_CENTER]=s(89698),T[u.TOP_LEFT]=s(922),T[u.TOP_RIGHT]=s(21373),T[u.LEFT_BOTTOM]=T[u.BOTTOM_LEFT],T[u.LEFT_TOP]=T[u.TOP_LEFT],T[u.RIGHT_BOTTOM]=T[u.BOTTOM_RIGHT],T[u.RIGHT_TOP]=T[u.TOP_RIGHT];var A=v(function(c,d,h,f,S){return T[h](c,d,f,S)},"QuickSet");o.exports=A},80503:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(7702),T=s(54380),d=s(20786),c=s(40136),A=P(function(h,f,S,O){return S===void 0&&(S=0),O===void 0&&(O=0),c(h,T(f)+S),d(h,u(f)+O),h},"RightCenter");o.exports=A},89698:(o,m,s)=>{/** + */var u=s(7702),T=s(54380),A=s(20786),c=s(40136),d=v(function(h,f,S,R){return S===void 0&&(S=0),R===void 0&&(R=0),c(h,T(f)+S),A(h,u(f)+R),h},"RightCenter");o.exports=d},89698:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(35893),T=s(17717),d=s(88417),c=s(66737),A=P(function(h,f,S,O){return S===void 0&&(S=0),O===void 0&&(O=0),d(h,u(f)+S),c(h,T(f)-O),h},"TopCenter");o.exports=A},922:(o,m,s)=>{/** + */var u=s(35893),T=s(17717),A=s(88417),c=s(66737),d=v(function(h,f,S,R){return S===void 0&&(S=0),R===void 0&&(R=0),A(h,u(f)+S),c(h,T(f)-R),h},"TopCenter");o.exports=d},922:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(26541),T=s(17717),d=s(385),c=s(66737),A=P(function(h,f,S,O){return S===void 0&&(S=0),O===void 0&&(O=0),d(h,u(f)-S),c(h,T(f)-O),h},"TopLeft");o.exports=A},21373:(o,m,s)=>{/** + */var u=s(26541),T=s(17717),A=s(385),c=s(66737),d=v(function(h,f,S,R){return S===void 0&&(S=0),R===void 0&&(R=0),A(h,u(f)-S),c(h,T(f)-R),h},"TopLeft");o.exports=d},21373:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(54380),T=s(17717),d=s(40136),c=s(66737),A=P(function(h,f,S,O){return S===void 0&&(S=0),O===void 0&&(O=0),d(h,u(f)+S),c(h,T(f)-O),h},"TopRight");o.exports=A},91660:(o,m,s)=>{/** + */var u=s(54380),T=s(17717),A=s(40136),c=s(66737),d=v(function(h,f,S,R){return S===void 0&&(S=0),R===void 0&&(R=0),A(h,u(f)+S),c(h,T(f)-R),h},"TopRight");o.exports=d},91660:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={BottomCenter:s(54312),BottomLeft:s(46768),BottomRight:s(35827),Center:s(46871),LeftCenter:s(5198),QuickSet:s(11879),RightCenter:s(80503),TopCenter:s(89698),TopLeft:s(922),TopRight:s(21373)}},71926:(o,m,s)=>{/** + */o.exports={BottomCenter:s(54312),BottomLeft:s(46768),BottomRight:s(35827),Center:s(46871),LeftCenter:s(5198),QuickSet:s(11879),RightCenter:s(80503),TopCenter:s(89698),TopLeft:s(922),TopRight:s(21373)}},71926:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(60461),T=s(79291),d={In:s(91660),To:s(16694)};d=T(!1,d,u),o.exports=d},21578:(o,m,s)=>{/** + */var u=s(60461),T=s(79291),A={In:s(91660),To:s(16694)};A=T(!1,A,u),o.exports=A},21578:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(62235),T=s(35893),d=s(88417),c=s(66737),A=P(function(h,f,S,O){return S===void 0&&(S=0),O===void 0&&(O=0),d(h,T(f)+S),c(h,u(f)+O),h},"BottomCenter");o.exports=A},10210:(o,m,s)=>{/** + */var u=s(62235),T=s(35893),A=s(88417),c=s(66737),d=v(function(h,f,S,R){return S===void 0&&(S=0),R===void 0&&(R=0),A(h,T(f)+S),c(h,u(f)+R),h},"BottomCenter");o.exports=d},10210:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(62235),T=s(26541),d=s(385),c=s(66737),A=P(function(h,f,S,O){return S===void 0&&(S=0),O===void 0&&(O=0),d(h,T(f)-S),c(h,u(f)+O),h},"BottomLeft");o.exports=A},82341:(o,m,s)=>{/** + */var u=s(62235),T=s(26541),A=s(385),c=s(66737),d=v(function(h,f,S,R){return S===void 0&&(S=0),R===void 0&&(R=0),A(h,T(f)-S),c(h,u(f)+R),h},"BottomLeft");o.exports=d},82341:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(62235),T=s(54380),d=s(40136),c=s(66737),A=P(function(h,f,S,O){return S===void 0&&(S=0),O===void 0&&(O=0),d(h,T(f)+S),c(h,u(f)+O),h},"BottomRight");o.exports=A},87958:(o,m,s)=>{/** + */var u=s(62235),T=s(54380),A=s(40136),c=s(66737),d=v(function(h,f,S,R){return S===void 0&&(S=0),R===void 0&&(R=0),A(h,T(f)+S),c(h,u(f)+R),h},"BottomRight");o.exports=d},87958:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(62235),T=s(26541),d=s(86327),c=s(40136),A=P(function(h,f,S,O){return S===void 0&&(S=0),O===void 0&&(O=0),c(h,T(f)-S),d(h,u(f)+O),h},"LeftBottom");o.exports=A},40080:(o,m,s)=>{/** + */var u=s(62235),T=s(26541),A=s(86327),c=s(40136),d=v(function(h,f,S,R){return S===void 0&&(S=0),R===void 0&&(R=0),c(h,T(f)-S),A(h,u(f)+R),h},"LeftBottom");o.exports=d},40080:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(7702),T=s(26541),d=s(20786),c=s(40136),A=P(function(h,f,S,O){return S===void 0&&(S=0),O===void 0&&(O=0),c(h,T(f)-S),d(h,u(f)+O),h},"LeftCenter");o.exports=A},88466:(o,m,s)=>{/** + */var u=s(7702),T=s(26541),A=s(20786),c=s(40136),d=v(function(h,f,S,R){return S===void 0&&(S=0),R===void 0&&(R=0),c(h,T(f)-S),A(h,u(f)+R),h},"LeftCenter");o.exports=d},88466:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(26541),T=s(17717),d=s(40136),c=s(66737),A=P(function(h,f,S,O){return S===void 0&&(S=0),O===void 0&&(O=0),d(h,u(f)-S),c(h,T(f)-O),h},"LeftTop");o.exports=A},38829:(o,m,s)=>{/** + */var u=s(26541),T=s(17717),A=s(40136),c=s(66737),d=v(function(h,f,S,R){return S===void 0&&(S=0),R===void 0&&(R=0),A(h,u(f)-S),c(h,T(f)-R),h},"LeftTop");o.exports=d},38829:(o,O,s)=>{/** * @author samme * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(60461),T=[];T[u.BOTTOM_CENTER]=s(21578),T[u.BOTTOM_LEFT]=s(10210),T[u.BOTTOM_RIGHT]=s(82341),T[u.LEFT_BOTTOM]=s(87958),T[u.LEFT_CENTER]=s(40080),T[u.LEFT_TOP]=s(88466),T[u.RIGHT_BOTTOM]=s(19211),T[u.RIGHT_CENTER]=s(34609),T[u.RIGHT_TOP]=s(48741),T[u.TOP_CENTER]=s(49440),T[u.TOP_LEFT]=s(81288),T[u.TOP_RIGHT]=s(61323);var d=P(function(c,A,h,f,S){return T[h](c,A,f,S)},"QuickSet");o.exports=d},19211:(o,m,s)=>{/** + */var u=s(60461),T=[];T[u.BOTTOM_CENTER]=s(21578),T[u.BOTTOM_LEFT]=s(10210),T[u.BOTTOM_RIGHT]=s(82341),T[u.LEFT_BOTTOM]=s(87958),T[u.LEFT_CENTER]=s(40080),T[u.LEFT_TOP]=s(88466),T[u.RIGHT_BOTTOM]=s(19211),T[u.RIGHT_CENTER]=s(34609),T[u.RIGHT_TOP]=s(48741),T[u.TOP_CENTER]=s(49440),T[u.TOP_LEFT]=s(81288),T[u.TOP_RIGHT]=s(61323);var A=v(function(c,d,h,f,S){return T[h](c,d,f,S)},"QuickSet");o.exports=A},19211:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(62235),T=s(54380),d=s(86327),c=s(385),A=P(function(h,f,S,O){return S===void 0&&(S=0),O===void 0&&(O=0),c(h,T(f)+S),d(h,u(f)+O),h},"RightBottom");o.exports=A},34609:(o,m,s)=>{/** + */var u=s(62235),T=s(54380),A=s(86327),c=s(385),d=v(function(h,f,S,R){return S===void 0&&(S=0),R===void 0&&(R=0),c(h,T(f)+S),A(h,u(f)+R),h},"RightBottom");o.exports=d},34609:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(7702),T=s(54380),d=s(20786),c=s(385),A=P(function(h,f,S,O){return S===void 0&&(S=0),O===void 0&&(O=0),c(h,T(f)+S),d(h,u(f)+O),h},"RightCenter");o.exports=A},48741:(o,m,s)=>{/** + */var u=s(7702),T=s(54380),A=s(20786),c=s(385),d=v(function(h,f,S,R){return S===void 0&&(S=0),R===void 0&&(R=0),c(h,T(f)+S),A(h,u(f)+R),h},"RightCenter");o.exports=d},48741:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(54380),T=s(17717),d=s(385),c=s(66737),A=P(function(h,f,S,O){return S===void 0&&(S=0),O===void 0&&(O=0),d(h,u(f)+S),c(h,T(f)-O),h},"RightTop");o.exports=A},49440:(o,m,s)=>{/** + */var u=s(54380),T=s(17717),A=s(385),c=s(66737),d=v(function(h,f,S,R){return S===void 0&&(S=0),R===void 0&&(R=0),A(h,u(f)+S),c(h,T(f)-R),h},"RightTop");o.exports=d},49440:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(35893),T=s(17717),d=s(86327),c=s(88417),A=P(function(h,f,S,O){return S===void 0&&(S=0),O===void 0&&(O=0),c(h,u(f)+S),d(h,T(f)-O),h},"TopCenter");o.exports=A},81288:(o,m,s)=>{/** + */var u=s(35893),T=s(17717),A=s(86327),c=s(88417),d=v(function(h,f,S,R){return S===void 0&&(S=0),R===void 0&&(R=0),c(h,u(f)+S),A(h,T(f)-R),h},"TopCenter");o.exports=d},81288:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(26541),T=s(17717),d=s(86327),c=s(385),A=P(function(h,f,S,O){return S===void 0&&(S=0),O===void 0&&(O=0),c(h,u(f)-S),d(h,T(f)-O),h},"TopLeft");o.exports=A},61323:(o,m,s)=>{/** + */var u=s(26541),T=s(17717),A=s(86327),c=s(385),d=v(function(h,f,S,R){return S===void 0&&(S=0),R===void 0&&(R=0),c(h,u(f)-S),A(h,T(f)-R),h},"TopLeft");o.exports=d},61323:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(54380),T=s(17717),d=s(86327),c=s(40136),A=P(function(h,f,S,O){return S===void 0&&(S=0),O===void 0&&(O=0),c(h,u(f)+S),d(h,T(f)-O),h},"TopRight");o.exports=A},16694:(o,m,s)=>{/** + */var u=s(54380),T=s(17717),A=s(86327),c=s(40136),d=v(function(h,f,S,R){return S===void 0&&(S=0),R===void 0&&(R=0),c(h,u(f)+S),A(h,T(f)-R),h},"TopRight");o.exports=d},16694:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={BottomCenter:s(21578),BottomLeft:s(10210),BottomRight:s(82341),LeftBottom:s(87958),LeftCenter:s(40080),LeftTop:s(88466),QuickSet:s(38829),RightBottom:s(19211),RightCenter:s(34609),RightTop:s(48741),TopCenter:s(49440),TopLeft:s(81288),TopRight:s(61323)}},66786:(o,m,s)=>{/** + */o.exports={BottomCenter:s(21578),BottomLeft:s(10210),BottomRight:s(82341),LeftBottom:s(87958),LeftCenter:s(40080),LeftTop:s(88466),QuickSet:s(38829),RightBottom:s(19211),RightCenter:s(34609),RightTop:s(48741),TopCenter:s(49440),TopLeft:s(81288),TopRight:s(61323)}},66786:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(88417),T=s(20786),d=P(function(c,A,h){return u(c,A),T(c,h)},"CenterOn");o.exports=d},62235:o=>{/** + */var u=s(88417),T=s(20786),A=v(function(c,d,h){return u(c,d),T(c,h)},"CenterOn");o.exports=A},62235:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s.y+s.height-s.height*s.originY},"GetBottom");o.exports=m},72873:(o,m,s)=>{/** + */var O=v(function(s){return s.y+s.height-s.height*s.originY},"GetBottom");o.exports=O},72873:(o,O,s)=>{/** * @author samme * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(62235),T=s(26541),d=s(54380),c=s(17717),A=s(87841),h=P(function(f,S){S===void 0&&(S=new A);var O=T(f),L=c(f);return S.x=O,S.y=L,S.width=d(f)-O,S.height=u(f)-L,S},"GetBounds");o.exports=h},35893:o=>{/** + */var u=s(62235),T=s(26541),A=s(54380),c=s(17717),d=s(87841),h=v(function(f,S){S===void 0&&(S=new d);var R=T(f),L=c(f);return S.x=R,S.y=L,S.width=A(f)-R,S.height=u(f)-L,S},"GetBounds");o.exports=h},35893:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s.x-s.width*s.originX+s.width*.5},"GetCenterX");o.exports=m},7702:o=>{/** + */var O=v(function(s){return s.x-s.width*s.originX+s.width*.5},"GetCenterX");o.exports=O},7702:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s.y-s.height*s.originY+s.height*.5},"GetCenterY");o.exports=m},26541:o=>{/** + */var O=v(function(s){return s.y-s.height*s.originY+s.height*.5},"GetCenterY");o.exports=O},26541:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s.x-s.width*s.originX},"GetLeft");o.exports=m},87431:o=>{/** + */var O=v(function(s){return s.x-s.width*s.originX},"GetLeft");o.exports=O},87431:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s.width*s.originX},"GetOffsetX");o.exports=m},46928:o=>{/** + */var O=v(function(s){return s.width*s.originX},"GetOffsetX");o.exports=O},46928:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s.height*s.originY},"GetOffsetY");o.exports=m},54380:o=>{/** + */var O=v(function(s){return s.height*s.originY},"GetOffsetY");o.exports=O},54380:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s.x+s.width-s.width*s.originX},"GetRight");o.exports=m},17717:o=>{/** + */var O=v(function(s){return s.x+s.width-s.width*s.originX},"GetRight");o.exports=O},17717:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s.y-s.height*s.originY},"GetTop");o.exports=m},86327:o=>{/** + */var O=v(function(s){return s.y-s.height*s.originY},"GetTop");o.exports=O},86327:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return s.y=u-s.height+s.height*s.originY,s},"SetBottom");o.exports=m},88417:o=>{/** + */var O=v(function(s,u){return s.y=u-s.height+s.height*s.originY,s},"SetBottom");o.exports=O},88417:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){var T=s.width*s.originX;return s.x=u+T-s.width*.5,s},"SetCenterX");o.exports=m},20786:o=>{/** + */var O=v(function(s,u){var T=s.width*s.originX;return s.x=u+T-s.width*.5,s},"SetCenterX");o.exports=O},20786:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){var T=s.height*s.originY;return s.y=u+T-s.height*.5,s},"SetCenterY");o.exports=m},385:o=>{/** + */var O=v(function(s,u){var T=s.height*s.originY;return s.y=u+T-s.height*.5,s},"SetCenterY");o.exports=O},385:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return s.x=u+s.width*s.originX,s},"SetLeft");o.exports=m},40136:o=>{/** + */var O=v(function(s,u){return s.x=u+s.width*s.originX,s},"SetLeft");o.exports=O},40136:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return s.x=u-s.width+s.width*s.originX,s},"SetRight");o.exports=m},66737:o=>{/** + */var O=v(function(s,u){return s.x=u-s.width+s.width*s.originX,s},"SetRight");o.exports=O},66737:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return s.y=u+s.height*s.originY,s},"SetTop");o.exports=m},58724:(o,m,s)=>{/** + */var O=v(function(s,u){return s.y=u+s.height*s.originY,s},"SetTop");o.exports=O},58724:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -871,533 +871,533 @@ var dne=Object.defineProperty;var P=(n,t)=>dne(n,"name",{value:t,configurable:!0 * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={setCrisp:function(s){var u=["optimizeSpeed","-moz-crisp-edges","-o-crisp-edges","-webkit-optimize-contrast","optimize-contrast","crisp-edges","pixelated"];return u.forEach(function(T){s.style["image-rendering"]=T}),s.style.msInterpolationMode="nearest-neighbor",s},setBicubic:function(s){return s.style["image-rendering"]="auto",s.style.msInterpolationMode="bicubic",s}};o.exports=m},27919:(o,m,s)=>{/** + */var O={setCrisp:function(s){var u=["optimizeSpeed","-moz-crisp-edges","-o-crisp-edges","-webkit-optimize-contrast","optimize-contrast","crisp-edges","pixelated"];return u.forEach(function(T){s.style["image-rendering"]=T}),s.style.msInterpolationMode="nearest-neighbor",s},setBicubic:function(s){return s.style["image-rendering"]="auto",s.style.msInterpolationMode="bicubic",s}};o.exports=O},27919:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(8054),T=s(68703),d=[],c=!1,A=P(function(){var h=P(function(v,M,D,G,H){M===void 0&&(M=1),D===void 0&&(D=1),G===void 0&&(G=u.CANVAS),H===void 0&&(H=!1);var B,_=O(G);return _===null?(_={parent:v,canvas:document.createElement("canvas"),type:G},G===u.CANVAS&&d.push(_),B=_.canvas):(_.parent=v,B=_.canvas),H&&(_.parent=B),B.width=M,B.height=D,c&&G===u.CANVAS&&T.disable(B.getContext("2d",{willReadFrequently:!1})),B},"create"),f=P(function(v,M,D){return h(v,M,D,u.CANVAS)},"create2D"),S=P(function(v,M,D){return h(v,M,D,u.WEBGL)},"createWebGL"),O=P(function(v){if(v===void 0&&(v=u.CANVAS),v===u.WEBGL)return null;for(var M=0;M{/** + */var u=s(8054),T=s(68703),A=[],c=!1,d=v(function(){var h=v(function(P,M,D,G,H){M===void 0&&(M=1),D===void 0&&(D=1),G===void 0&&(G=u.CANVAS),H===void 0&&(H=!1);var B,b=R(G);return b===null?(b={parent:P,canvas:document.createElement("canvas"),type:G},G===u.CANVAS&&A.push(b),B=b.canvas):(b.parent=P,B=b.canvas),H&&(b.parent=B),B.width=M,B.height=D,c&&G===u.CANVAS&&T.disable(B.getContext("2d",{willReadFrequently:!1})),B},"create"),f=v(function(P,M,D){return h(P,M,D,u.CANVAS)},"create2D"),S=v(function(P,M,D){return h(P,M,D,u.WEBGL)},"createWebGL"),R=v(function(P){if(P===void 0&&(P=u.CANVAS),P===u.WEBGL)return null;for(var M=0;M{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m="",s=P(function(){var u=P(function(A){for(var h=["i","webkitI","msI","mozI","oI"],f=0;f{/** + */var O="",s=v(function(){var u=v(function(d){for(var h=["i","webkitI","msI","mozI","oI"],f=0;f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return u===void 0&&(u="none"),s.style.msTouchAction=u,s.style["ms-touch-action"]=u,s.style["touch-action"]=u,s},"TouchAction");o.exports=m},91610:o=>{/** + */var O=v(function(s,u){return u===void 0&&(u="none"),s.style.msTouchAction=u,s.style["ms-touch-action"]=u,s.style["touch-action"]=u,s},"TouchAction");o.exports=O},91610:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){u===void 0&&(u="none");var T=["-webkit-","-khtml-","-moz-","-ms-",""];return T.forEach(function(d){s.style[d+"user-select"]=u}),s.style["-webkit-touch-callout"]=u,s.style["-webkit-tap-highlight-color"]="rgba(0, 0, 0, 0)",s},"UserSelect");o.exports=m},26253:(o,m,s)=>{/** + */var O=v(function(s,u){u===void 0&&(u="none");var T=["-webkit-","-khtml-","-moz-","-ms-",""];return T.forEach(function(A){s.style[A+"user-select"]=u}),s.style["-webkit-touch-callout"]=u,s.style["-webkit-tap-highlight-color"]="rgba(0, 0, 0, 0)",s},"UserSelect");o.exports=O},26253:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={CanvasInterpolation:s(20623),CanvasPool:s(27919),Smoothing:s(68703),TouchAction:s(65208),UserSelect:s(91610)}},40987:(o,m,s)=>{/** + */o.exports={CanvasInterpolation:s(20623),CanvasPool:s(27919),Smoothing:s(68703),TouchAction:s(65208),UserSelect:s(91610)}},40987:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(37589),d=s(1e3),c=s(7537),A=s(87837),h=new u({initialize:P(function(S,O,L,p){S===void 0&&(S=0),O===void 0&&(O=0),L===void 0&&(L=0),p===void 0&&(p=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(S,O,L,p)},"Color"),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(f,S,O,L,p){return L===void 0&&(L=255),p===void 0&&(p=!0),this._locked=!0,this.red=f,this.green=S,this.blue=O,this.alpha=L,this._locked=!1,this.update(p)},setGLTo:function(f,S,O,L){return L===void 0&&(L=1),this._locked=!0,this.redGL=f,this.greenGL=S,this.blueGL=O,this.alphaGL=L,this._locked=!1,this.update(!0)},setFromRGB:function(f){return this._locked=!0,this.red=f.r,this.green=f.g,this.blue=f.b,f.hasOwnProperty("a")&&(this.alpha=f.a),this._locked=!1,this.update(!0)},setFromHSV:function(f,S,O){return c(f,S,O,this)},update:function(f){if(f===void 0&&(f=!1),this._locked)return this;var S=this.r,O=this.g,L=this.b,p=this.a;return this._color=T(S,O,L),this._color32=d(S,O,L,p),this._rgba="rgba("+S+","+O+","+L+","+p/255+")",f&&A(S,O,L,this),this},updateHSV:function(){var f=this.r,S=this.g,O=this.b;return A(f,S,O,this),this},clone:function(){return new h(this.r,this.g,this.b,this.a)},gray:function(f){return this.setTo(f,f,f)},random:function(f,S){f===void 0&&(f=0),S===void 0&&(S=255);var O=Math.floor(f+Math.random()*(S-f)),L=Math.floor(f+Math.random()*(S-f)),p=Math.floor(f+Math.random()*(S-f));return this.setTo(O,L,p)},randomGray:function(f,S){f===void 0&&(f=0),S===void 0&&(S=255);var O=Math.floor(f+Math.random()*(S-f));return this.setTo(O,O,O)},saturate:function(f){return this.s+=f/100,this},desaturate:function(f){return this.s-=f/100,this},lighten:function(f){return this.v+=f/100,this},darken:function(f){return this.v-=f/100,this},brighten:function(f){var S=this.r,O=this.g,L=this.b;return S=Math.max(0,Math.min(255,S-Math.round(255*-(f/100)))),O=Math.max(0,Math.min(255,O-Math.round(255*-(f/100)))),L=Math.max(0,Math.min(255,L-Math.round(255*-(f/100)))),this.setTo(S,O,L)},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(f){this.gl[0]=Math.min(Math.abs(f),1),this.r=Math.floor(this.gl[0]*255),this.update(!0)}},greenGL:{get:function(){return this.gl[1]},set:function(f){this.gl[1]=Math.min(Math.abs(f),1),this.g=Math.floor(this.gl[1]*255),this.update(!0)}},blueGL:{get:function(){return this.gl[2]},set:function(f){this.gl[2]=Math.min(Math.abs(f),1),this.b=Math.floor(this.gl[2]*255),this.update(!0)}},alphaGL:{get:function(){return this.gl[3]},set:function(f){this.gl[3]=Math.min(Math.abs(f),1),this.a=Math.floor(this.gl[3]*255),this.update()}},red:{get:function(){return this.r},set:function(f){f=Math.floor(Math.abs(f)),this.r=Math.min(f,255),this.gl[0]=f/255,this.update(!0)}},green:{get:function(){return this.g},set:function(f){f=Math.floor(Math.abs(f)),this.g=Math.min(f,255),this.gl[1]=f/255,this.update(!0)}},blue:{get:function(){return this.b},set:function(f){f=Math.floor(Math.abs(f)),this.b=Math.min(f,255),this.gl[2]=f/255,this.update(!0)}},alpha:{get:function(){return this.a},set:function(f){f=Math.floor(Math.abs(f)),this.a=Math.min(f,255),this.gl[3]=f/255,this.update()}},h:{get:function(){return this._h},set:function(f){this._h=f,c(f,this._s,this._v,this)}},s:{get:function(){return this._s},set:function(f){this._s=f,c(this._h,f,this._v,this)}},v:{get:function(){return this._v},set:function(f){this._v=f,c(this._h,this._s,f,this)}}});o.exports=h},92728:(o,m,s)=>{/** + */var u=s(83419),T=s(37589),A=s(1e3),c=s(7537),d=s(87837),h=new u({initialize:v(function(S,R,L,p){S===void 0&&(S=0),R===void 0&&(R=0),L===void 0&&(L=0),p===void 0&&(p=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(S,R,L,p)},"Color"),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(f,S,R,L,p){return L===void 0&&(L=255),p===void 0&&(p=!0),this._locked=!0,this.red=f,this.green=S,this.blue=R,this.alpha=L,this._locked=!1,this.update(p)},setGLTo:function(f,S,R,L){return L===void 0&&(L=1),this._locked=!0,this.redGL=f,this.greenGL=S,this.blueGL=R,this.alphaGL=L,this._locked=!1,this.update(!0)},setFromRGB:function(f){return this._locked=!0,this.red=f.r,this.green=f.g,this.blue=f.b,f.hasOwnProperty("a")&&(this.alpha=f.a),this._locked=!1,this.update(!0)},setFromHSV:function(f,S,R){return c(f,S,R,this)},update:function(f){if(f===void 0&&(f=!1),this._locked)return this;var S=this.r,R=this.g,L=this.b,p=this.a;return this._color=T(S,R,L),this._color32=A(S,R,L,p),this._rgba="rgba("+S+","+R+","+L+","+p/255+")",f&&d(S,R,L,this),this},updateHSV:function(){var f=this.r,S=this.g,R=this.b;return d(f,S,R,this),this},clone:function(){return new h(this.r,this.g,this.b,this.a)},gray:function(f){return this.setTo(f,f,f)},random:function(f,S){f===void 0&&(f=0),S===void 0&&(S=255);var R=Math.floor(f+Math.random()*(S-f)),L=Math.floor(f+Math.random()*(S-f)),p=Math.floor(f+Math.random()*(S-f));return this.setTo(R,L,p)},randomGray:function(f,S){f===void 0&&(f=0),S===void 0&&(S=255);var R=Math.floor(f+Math.random()*(S-f));return this.setTo(R,R,R)},saturate:function(f){return this.s+=f/100,this},desaturate:function(f){return this.s-=f/100,this},lighten:function(f){return this.v+=f/100,this},darken:function(f){return this.v-=f/100,this},brighten:function(f){var S=this.r,R=this.g,L=this.b;return S=Math.max(0,Math.min(255,S-Math.round(255*-(f/100)))),R=Math.max(0,Math.min(255,R-Math.round(255*-(f/100)))),L=Math.max(0,Math.min(255,L-Math.round(255*-(f/100)))),this.setTo(S,R,L)},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(f){this.gl[0]=Math.min(Math.abs(f),1),this.r=Math.floor(this.gl[0]*255),this.update(!0)}},greenGL:{get:function(){return this.gl[1]},set:function(f){this.gl[1]=Math.min(Math.abs(f),1),this.g=Math.floor(this.gl[1]*255),this.update(!0)}},blueGL:{get:function(){return this.gl[2]},set:function(f){this.gl[2]=Math.min(Math.abs(f),1),this.b=Math.floor(this.gl[2]*255),this.update(!0)}},alphaGL:{get:function(){return this.gl[3]},set:function(f){this.gl[3]=Math.min(Math.abs(f),1),this.a=Math.floor(this.gl[3]*255),this.update()}},red:{get:function(){return this.r},set:function(f){f=Math.floor(Math.abs(f)),this.r=Math.min(f,255),this.gl[0]=f/255,this.update(!0)}},green:{get:function(){return this.g},set:function(f){f=Math.floor(Math.abs(f)),this.g=Math.min(f,255),this.gl[1]=f/255,this.update(!0)}},blue:{get:function(){return this.b},set:function(f){f=Math.floor(Math.abs(f)),this.b=Math.min(f,255),this.gl[2]=f/255,this.update(!0)}},alpha:{get:function(){return this.a},set:function(f){f=Math.floor(Math.abs(f)),this.a=Math.min(f,255),this.gl[3]=f/255,this.update()}},h:{get:function(){return this._h},set:function(f){this._h=f,c(f,this._s,this._v,this)}},s:{get:function(){return this._s},set:function(f){this._s=f,c(this._h,f,this._v,this)}},v:{get:function(){return this._v},set:function(f){this._v=f,c(this._h,this._s,f,this)}}});o.exports=h},92728:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(37589),T=P(function(d){d===void 0&&(d=1024);var c=[],A=255,h,f=255,S=0,O=0;for(h=0;h<=A;h++)c.push({r:f,g:h,b:O,color:u(f,h,O)});for(S=255,h=A;h>=0;h--)c.push({r:h,g:S,b:O,color:u(h,S,O)});for(f=0,h=0;h<=A;h++,S--)c.push({r:f,g:S,b:h,color:u(f,S,h)});for(S=0,O=255,h=0;h<=A;h++,O--,f++)c.push({r:f,g:S,b:O,color:u(f,S,O)});if(d===1024)return c;var L=[],p=0,N=1024/d;for(h=0;h{/** + */var u=s(37589),T=v(function(A){A===void 0&&(A=1024);var c=[],d=255,h,f=255,S=0,R=0;for(h=0;h<=d;h++)c.push({r:f,g:h,b:R,color:u(f,h,R)});for(S=255,h=d;h>=0;h--)c.push({r:h,g:S,b:R,color:u(h,S,R)});for(f=0,h=0;h<=d;h++,S--)c.push({r:f,g:S,b:h,color:u(f,S,h)});for(S=0,R=255,h=0;h<=d;h++,R--,f++)c.push({r:f,g:S,b:R,color:u(f,S,R)});if(A===1024)return c;var L=[],p=0,N=1024/A;for(h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){var u={r:s>>16&255,g:s>>8&255,b:s&255,a:255};return s>16777215&&(u.a=s>>>24),u},"ColorToRGBA");o.exports=m},62957:o=>{/** + */var O=v(function(s){var u={r:s>>16&255,g:s>>8&255,b:s&255,a:255};return s>16777215&&(u.a=s>>>24),u},"ColorToRGBA");o.exports=O},62957:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){var u=s.toString(16);return u.length===1?"0"+u:u},"ComponentToHex");o.exports=m},37589:o=>{/** + */var O=v(function(s){var u=s.toString(16);return u.length===1?"0"+u:u},"ComponentToHex");o.exports=O},37589:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){return s<<16|u<<8|T},"GetColor");o.exports=m},1e3:o=>{/** + */var O=v(function(s,u,T){return s<<16|u<<8|T},"GetColor");o.exports=O},1e3:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){return d<<24|s<<16|u<<8|T},"GetColor32");o.exports=m},62183:(o,m,s)=>{/** + */var O=v(function(s,u,T,A){return A<<24|s<<16|u<<8|T},"GetColor32");o.exports=O},62183:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(40987),T=s(89528),d=P(function(c,A,h){var f=h,S=h,O=h;if(A!==0){var L=h<.5?h*(1+A):h+A-h*A,p=2*h-L;f=T(p,L,c+1/3),S=T(p,L,c),O=T(p,L,c-1/3)}var N=new u;return N.setGLTo(f,S,O,1)},"HSLToColor");o.exports=d},27939:(o,m,s)=>{/** + */var u=s(40987),T=s(89528),A=v(function(c,d,h){var f=h,S=h,R=h;if(d!==0){var L=h<.5?h*(1+d):h+d-h*d,p=2*h-L;f=T(p,L,c+1/3),S=T(p,L,c),R=T(p,L,c-1/3)}var N=new u;return N.setGLTo(f,S,R,1)},"HSLToColor");o.exports=A},27939:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(7537),T=P(function(d,c){d===void 0&&(d=1),c===void 0&&(c=1);for(var A=[],h=0;h<=359;h++)A.push(u(h/359,d,c));return A},"HSVColorWheel");o.exports=T},7537:(o,m,s)=>{/** + */var u=s(7537),T=v(function(A,c){A===void 0&&(A=1),c===void 0&&(c=1);for(var d=[],h=0;h<=359;h++)d.push(u(h/359,A,c));return d},"HSVColorWheel");o.exports=T},7537:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(37589);function T(c,A,h,f){var S=(c+A*6)%6,O=Math.min(S,4-S,1);return Math.round(255*(f-f*h*Math.max(0,O)))}P(T,"ConvertValue");var d=P(function(c,A,h,f){A===void 0&&(A=1),h===void 0&&(h=1);var S=T(5,c,A,h),O=T(3,c,A,h),L=T(1,c,A,h);return f?f.setTo?f.setTo(S,O,L,f.alpha,!0):(f.r=S,f.g=O,f.b=L,f.color=u(S,O,L),f):{r:S,g:O,b:L,color:u(S,O,L)}},"HSVToRGB");o.exports=d},70238:(o,m,s)=>{/** + */var u=s(37589);function T(c,d,h,f){var S=(c+d*6)%6,R=Math.min(S,4-S,1);return Math.round(255*(f-f*h*Math.max(0,R)))}v(T,"ConvertValue");var A=v(function(c,d,h,f){d===void 0&&(d=1),h===void 0&&(h=1);var S=T(5,c,d,h),R=T(3,c,d,h),L=T(1,c,d,h);return f?f.setTo?f.setTo(S,R,L,f.alpha,!0):(f.r=S,f.g=R,f.b=L,f.color=u(S,R,L),f):{r:S,g:R,b:L,color:u(S,R,L)}},"HSVToRGB");o.exports=A},70238:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(40987),T=P(function(d){var c=new u;d=d.replace(/^(?:#|0x)?([a-f\d])([a-f\d])([a-f\d])$/i,function(O,L,p,N){return L+L+p+p+N+N});var A=/^(?:#|0x)?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(d);if(A){var h=parseInt(A[1],16),f=parseInt(A[2],16),S=parseInt(A[3],16);c.setTo(h,f,S)}return c},"HexStringToColor");o.exports=T},89528:o=>{/** + */var u=s(40987),T=v(function(A){var c=new u;A=A.replace(/^(?:#|0x)?([a-f\d])([a-f\d])([a-f\d])$/i,function(R,L,p,N){return L+L+p+p+N+N});var d=/^(?:#|0x)?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(A);if(d){var h=parseInt(d[1],16),f=parseInt(d[2],16),S=parseInt(d[3],16);c.setTo(h,f,S)}return c},"HexStringToColor");o.exports=T},89528:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){return T<0&&(T+=1),T>1&&(T-=1),T<.16666666666666666?s+(u-s)*6*T:T<.5?u:T<.6666666666666666?s+(u-s)*(.6666666666666666-T)*6:s},"HueToComponent");o.exports=m},30100:(o,m,s)=>{/** + */var O=v(function(s,u,T){return T<0&&(T+=1),T>1&&(T-=1),T<.16666666666666666?s+(u-s)*6*T:T<.5?u:T<.6666666666666666?s+(u-s)*(.6666666666666666-T)*6:s},"HueToComponent");o.exports=O},30100:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(40987),T=s(90664),d=P(function(c){var A=T(c);return new u(A.r,A.g,A.b,A.a)},"IntegerToColor");o.exports=d},90664:o=>{/** + */var u=s(40987),T=s(90664),A=v(function(c){var d=T(c);return new u(d.r,d.g,d.b,d.a)},"IntegerToColor");o.exports=A},90664:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s>16777215?{a:s>>>24,r:s>>16&255,g:s>>8&255,b:s&255}:{a:255,r:s>>16&255,g:s>>8&255,b:s&255}},"IntegerToRGB");o.exports=m},13699:(o,m,s)=>{/** + */var O=v(function(s){return s>16777215?{a:s>>>24,r:s>>16&255,g:s>>8&255,b:s&255}:{a:255,r:s>>16&255,g:s>>8&255,b:s&255}},"IntegerToRGB");o.exports=O},13699:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(28915),T=P(function(A,h,f,S,O,L,p,N){p===void 0&&(p=100),N===void 0&&(N=0);var g=N/p;return{r:u(A,S,g),g:u(h,O,g),b:u(f,L,g)}},"RGBWithRGB"),d=P(function(A,h,f,S){return f===void 0&&(f=100),S===void 0&&(S=0),T(A.r,A.g,A.b,h.r,h.g,h.b,f,S)},"ColorWithColor"),c=P(function(A,h,f,S,O,L){return O===void 0&&(O=100),L===void 0&&(L=0),T(A.r,A.g,A.b,h,f,S,O,L)},"ColorWithRGB");o.exports={RGBWithRGB:T,ColorWithRGB:c,ColorWithColor:d}},68957:(o,m,s)=>{/** + */var u=s(28915),T=v(function(d,h,f,S,R,L,p,N){p===void 0&&(p=100),N===void 0&&(N=0);var g=N/p;return{r:u(d,S,g),g:u(h,R,g),b:u(f,L,g)}},"RGBWithRGB"),A=v(function(d,h,f,S){return f===void 0&&(f=100),S===void 0&&(S=0),T(d.r,d.g,d.b,h.r,h.g,h.b,f,S)},"ColorWithColor"),c=v(function(d,h,f,S,R,L){return R===void 0&&(R=100),L===void 0&&(L=0),T(d.r,d.g,d.b,h,f,S,R,L)},"ColorWithRGB");o.exports={RGBWithRGB:T,ColorWithRGB:c,ColorWithColor:A}},68957:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(40987),T=P(function(d){return new u(d.r,d.g,d.b,d.a)},"ObjectToColor");o.exports=T},87388:(o,m,s)=>{/** + */var u=s(40987),T=v(function(A){return new u(A.r,A.g,A.b,A.a)},"ObjectToColor");o.exports=T},87388:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(40987),T=P(function(d){var c=new u,A=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+(?:\.\d+)?))?\s*\)$/.exec(d.toLowerCase());if(A){var h=parseInt(A[1],10),f=parseInt(A[2],10),S=parseInt(A[3],10),O=A[4]!==void 0?parseFloat(A[4]):1;c.setTo(h,f,S,O*255)}return c},"RGBStringToColor");o.exports=T},87837:o=>{/** + */var u=s(40987),T=v(function(A){var c=new u,d=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+(?:\.\d+)?))?\s*\)$/.exec(A.toLowerCase());if(d){var h=parseInt(d[1],10),f=parseInt(d[2],10),S=parseInt(d[3],10),R=d[4]!==void 0?parseFloat(d[4]):1;c.setTo(h,f,S,R*255)}return c},"RGBStringToColor");o.exports=T},87837:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){d===void 0&&(d={h:0,s:0,v:0}),s/=255,u/=255,T/=255;var c=Math.min(s,u,T),A=Math.max(s,u,T),h=A-c,f=0,S=A===0?0:h/A,O=A;return A!==c&&(A===s?f=(u-T)/h+(u{/** + */var O=v(function(s,u,T,A){A===void 0&&(A={h:0,s:0,v:0}),s/=255,u/=255,T/=255;var c=Math.min(s,u,T),d=Math.max(s,u,T),h=d-c,f=0,S=d===0?0:h/d,R=d;return d!==c&&(d===s?f=(u-T)/h+(u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(62957),T=P(function(d,c,A,h,f){return h===void 0&&(h=255),f===void 0&&(f="#"),f==="#"?"#"+((1<<24)+(d<<16)+(c<<8)+A).toString(16).slice(1,7):"0x"+u(h)+u(d)+u(c)+u(A)},"RGBToString");o.exports=T},85386:(o,m,s)=>{/** + */var u=s(62957),T=v(function(A,c,d,h,f){return h===void 0&&(h=255),f===void 0&&(f="#"),f==="#"?"#"+((1<<24)+(A<<16)+(c<<8)+d).toString(16).slice(1,7):"0x"+u(h)+u(A)+u(c)+u(d)},"RGBToString");o.exports=T},85386:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(30976),T=s(40987),d=P(function(c,A){return c===void 0&&(c=0),A===void 0&&(A=255),new T(u(c,A),u(c,A),u(c,A))},"RandomRGB");o.exports=d},80333:(o,m,s)=>{/** + */var u=s(30976),T=s(40987),A=v(function(c,d){return c===void 0&&(c=0),d===void 0&&(d=255),new T(u(c,d),u(c,d),u(c,d))},"RandomRGB");o.exports=A},80333:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(70238),T=s(30100),d=s(68957),c=s(87388),A=P(function(h){var f=typeof h;switch(f){case"string":return h.substr(0,3).toLowerCase()==="rgb"?c(h):u(h);case"number":return T(h);case"object":return d(h)}},"ValueToColor");o.exports=A},3956:(o,m,s)=>{/** + */var u=s(70238),T=s(30100),A=s(68957),c=s(87388),d=v(function(h){var f=typeof h;switch(f){case"string":return h.substr(0,3).toLowerCase()==="rgb"?c(h):u(h);case"number":return T(h);case"object":return A(h)}},"ValueToColor");o.exports=d},3956:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(40987);u.ColorSpectrum=s(92728),u.ColorToRGBA=s(91588),u.ComponentToHex=s(62957),u.GetColor=s(37589),u.GetColor32=s(1e3),u.HexStringToColor=s(70238),u.HSLToColor=s(62183),u.HSVColorWheel=s(27939),u.HSVToRGB=s(7537),u.HueToComponent=s(89528),u.IntegerToColor=s(30100),u.IntegerToRGB=s(90664),u.Interpolate=s(13699),u.ObjectToColor=s(68957),u.RandomRGB=s(85386),u.RGBStringToColor=s(87388),u.RGBToHSV=s(87837),u.RGBToString=s(75723),u.ValueToColor=s(80333),o.exports=u},27460:(o,m,s)=>{/** + */var u=s(40987);u.ColorSpectrum=s(92728),u.ColorToRGBA=s(91588),u.ComponentToHex=s(62957),u.GetColor=s(37589),u.GetColor32=s(1e3),u.HexStringToColor=s(70238),u.HSLToColor=s(62183),u.HSVColorWheel=s(27939),u.HSVToRGB=s(7537),u.HueToComponent=s(89528),u.IntegerToColor=s(30100),u.IntegerToRGB=s(90664),u.Interpolate=s(13699),u.ObjectToColor=s(68957),u.RandomRGB=s(85386),u.RGBStringToColor=s(87388),u.RGBToHSV=s(87837),u.RGBToString=s(75723),u.ValueToColor=s(80333),o.exports=u},27460:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={Align:s(71926),BaseShader:s(73894),Bounds:s(58724),Canvas:s(26253),Color:s(3956),ColorMatrix:s(89422),Masks:s(69781),RGB:s(51767)}},6858:(o,m,s)=>{/** + */o.exports={Align:s(71926),BaseShader:s(73894),Bounds:s(58724),Canvas:s(26253),Color:s(3956),ColorMatrix:s(89422),Masks:s(69781),RGB:s(51767)}},6858:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(39429),d=new u({initialize:P(function(A,h,f,S,O,L){h||(h=A.sys.make.image({x:f,y:S,key:O,frame:L,add:!1})),this.bitmapMask=h,this.invertAlpha=!1,this.isStencil=!1},"BitmapMask"),setBitmap:function(c){this.bitmapMask=c},preRenderWebGL:function(c,A,h){c.pipelines.BITMAPMASK_PIPELINE.beginMask(this,A,h)},postRenderWebGL:function(c,A,h){c.pipelines.BITMAPMASK_PIPELINE.endMask(this,A,h)},preRenderCanvas:function(){},postRenderCanvas:function(){},destroy:function(){this.bitmapMask=null}});T.register("bitmapMask",function(c,A,h,f,S){return new d(this.scene,c,A,h,f,S)}),o.exports=d},80661:(o,m,s)=>{/** + */var u=s(83419),T=s(39429),A=new u({initialize:v(function(d,h,f,S,R,L){h||(h=d.sys.make.image({x:f,y:S,key:R,frame:L,add:!1})),this.bitmapMask=h,this.invertAlpha=!1,this.isStencil=!1},"BitmapMask"),setBitmap:function(c){this.bitmapMask=c},preRenderWebGL:function(c,d,h){c.pipelines.BITMAPMASK_PIPELINE.beginMask(this,d,h)},postRenderWebGL:function(c,d,h){c.pipelines.BITMAPMASK_PIPELINE.endMask(this,d,h)},preRenderCanvas:function(){},postRenderCanvas:function(){},destroy:function(){this.bitmapMask=null}});T.register("bitmapMask",function(c,d,h,f,S){return new A(this.scene,c,d,h,f,S)}),o.exports=A},80661:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=new u({initialize:P(function(c,A){this.geometryMask=A,this.invertAlpha=!1,this.isStencil=!0,this.level=0},"GeometryMask"),setShape:function(d){return this.geometryMask=d,this},setInvertAlpha:function(d){return d===void 0&&(d=!0),this.invertAlpha=d,this},preRenderWebGL:function(d,c,A){var h=d.gl;d.flush(),d.maskStack.length===0&&(h.enable(h.STENCIL_TEST),h.clear(h.STENCIL_BUFFER_BIT),d.maskCount=0),d.currentCameraMask.mask!==this&&(d.currentMask.mask=this),d.maskStack.push({mask:this,camera:A}),this.applyStencil(d,A,!0),d.maskCount++},applyStencil:function(d,c,A){var h=d.gl,f=this.geometryMask,S=d.maskCount,O=255;h.colorMask(!1,!1,!1,!1),A?(h.stencilFunc(h.EQUAL,S,O),h.stencilOp(h.KEEP,h.KEEP,h.INCR),S++):(h.stencilFunc(h.EQUAL,S+1,O),h.stencilOp(h.KEEP,h.KEEP,h.DECR)),this.level=S,f.renderWebGL(d,f,c),d.flush(),h.colorMask(!0,!0,!0,!0),h.stencilOp(h.KEEP,h.KEEP,h.KEEP),this.invertAlpha?h.stencilFunc(h.NOTEQUAL,S,O):h.stencilFunc(h.EQUAL,S,O)},postRenderWebGL:function(d){var c=d.gl;d.maskStack.pop(),d.maskCount--,d.flush();var A=d.currentMask;if(d.maskStack.length===0)A.mask=null,c.disable(c.STENCIL_TEST);else{var h=d.maskStack[d.maskStack.length-1];h.mask.applyStencil(d,h.camera,!1),d.currentCameraMask.mask!==h.mask?(A.mask=h.mask,A.camera=h.camera):A.mask=null}},preRenderCanvas:function(d,c,A){var h=this.geometryMask;d.currentContext.save(),h.renderCanvas(d,h,A,null,null,!0),d.currentContext.clip()},postRenderCanvas:function(d){d.currentContext.restore()},destroy:function(){this.geometryMask=null}});o.exports=T},69781:(o,m,s)=>{/** + */var u=s(83419),T=new u({initialize:v(function(c,d){this.geometryMask=d,this.invertAlpha=!1,this.isStencil=!0,this.level=0},"GeometryMask"),setShape:function(A){return this.geometryMask=A,this},setInvertAlpha:function(A){return A===void 0&&(A=!0),this.invertAlpha=A,this},preRenderWebGL:function(A,c,d){var h=A.gl;A.flush(),A.maskStack.length===0&&(h.enable(h.STENCIL_TEST),h.clear(h.STENCIL_BUFFER_BIT),A.maskCount=0),A.currentCameraMask.mask!==this&&(A.currentMask.mask=this),A.maskStack.push({mask:this,camera:d}),this.applyStencil(A,d,!0),A.maskCount++},applyStencil:function(A,c,d){var h=A.gl,f=this.geometryMask,S=A.maskCount,R=255;h.colorMask(!1,!1,!1,!1),d?(h.stencilFunc(h.EQUAL,S,R),h.stencilOp(h.KEEP,h.KEEP,h.INCR),S++):(h.stencilFunc(h.EQUAL,S+1,R),h.stencilOp(h.KEEP,h.KEEP,h.DECR)),this.level=S,f.renderWebGL(A,f,c),A.flush(),h.colorMask(!0,!0,!0,!0),h.stencilOp(h.KEEP,h.KEEP,h.KEEP),this.invertAlpha?h.stencilFunc(h.NOTEQUAL,S,R):h.stencilFunc(h.EQUAL,S,R)},postRenderWebGL:function(A){var c=A.gl;A.maskStack.pop(),A.maskCount--,A.flush();var d=A.currentMask;if(A.maskStack.length===0)d.mask=null,c.disable(c.STENCIL_TEST);else{var h=A.maskStack[A.maskStack.length-1];h.mask.applyStencil(A,h.camera,!1),A.currentCameraMask.mask!==h.mask?(d.mask=h.mask,d.camera=h.camera):d.mask=null}},preRenderCanvas:function(A,c,d){var h=this.geometryMask;A.currentContext.save(),h.renderCanvas(A,h,d,null,null,!0),A.currentContext.clip()},postRenderCanvas:function(A){A.currentContext.restore()},destroy:function(){this.geometryMask=null}});o.exports=T},69781:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={BitmapMask:s(6858),GeometryMask:s(80661)}},73894:(o,m,s)=>{/** + */o.exports={BitmapMask:s(6858),GeometryMask:s(80661)}},73894:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=new u({initialize:P(function(c,A,h,f){(!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(` + */var u=s(83419),T=new u({initialize:v(function(c,d,h,f){(!d||d==="")&&(d=["precision mediump float;","uniform vec2 resolution;","varying vec2 fragCoord;","void main () {"," vec2 uv = fragCoord / resolution.xy;"," gl_FragColor = vec4(uv.xyx, 1.0);","}"].join(` `)),(!h||h==="")&&(h=["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(` -`)),f===void 0&&(f=null),this.key=c,this.fragmentSrc=A,this.vertexSrc=h,this.uniforms=f},"BaseShader")});o.exports=T},40366:o=>{/** +`)),f===void 0&&(f=null),this.key=c,this.fragmentSrc=d,this.vertexSrc=h,this.uniforms=f},"BaseShader")});o.exports=T},40366:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){var T;if(u)typeof u=="string"?T=document.getElementById(u):typeof u=="object"&&u.nodeType===1&&(T=u);else if(s.parentElement||u===null)return s;return T||(T=document.body),T.appendChild(s),s},"AddToDOM");o.exports=m},83719:(o,m,s)=>{/** + */var O=v(function(s,u){var T;if(u)typeof u=="string"?T=document.getElementById(u):typeof u=="object"&&u.nodeType===1&&(T=u);else if(s.parentElement||u===null)return s;return T||(T=document.body),T.appendChild(s),s},"AddToDOM");o.exports=O},83719:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(40366),T=P(function(d){var c=d.config;if(!(!c.parent||!c.domCreateContainer)){var A=document.createElement("div");A.style.cssText=["display: block;","width: "+d.scale.width+"px;","height: "+d.scale.height+"px;","padding: 0; margin: 0;","position: absolute;","overflow: hidden;","pointer-events: "+c.domPointerEvents+";","transform: scale(1);","transform-origin: left top;"].join(" "),d.domContainer=A,u(A,c.parent)}},"CreateDOMContainer");o.exports=T},57264:(o,m,s)=>{/** + */var u=s(40366),T=v(function(A){var c=A.config;if(!(!c.parent||!c.domCreateContainer)){var d=document.createElement("div");d.style.cssText=["display: block;","width: "+A.scale.width+"px;","height: "+A.scale.height+"px;","padding: 0; margin: 0;","position: absolute;","overflow: hidden;","pointer-events: "+c.domPointerEvents+";","transform: scale(1);","transform-origin: left top;"].join(" "),A.domContainer=d,u(d,c.parent)}},"CreateDOMContainer");o.exports=T},57264:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(25892),T=P(function(d){if(document.readyState==="complete"||document.readyState==="interactive"){d();return}var c=P(function(){document.removeEventListener("deviceready",c,!0),document.removeEventListener("DOMContentLoaded",c,!0),window.removeEventListener("load",c,!0),d()},"check");document.body?u.cordova?document.addEventListener("deviceready",c,!1):(document.addEventListener("DOMContentLoaded",c,!0),window.addEventListener("load",c,!0)):window.setTimeout(c,20)},"DOMContentLoaded");o.exports=T},57811:o=>{/** + */var u=s(25892),T=v(function(A){if(document.readyState==="complete"||document.readyState==="interactive"){A();return}var c=v(function(){document.removeEventListener("deviceready",c,!0),document.removeEventListener("DOMContentLoaded",c,!0),window.removeEventListener("load",c,!0),A()},"check");document.body?u.cordova?document.addEventListener("deviceready",c,!1):(document.addEventListener("DOMContentLoaded",c,!0),window.addEventListener("load",c,!0)):window.setTimeout(c,20)},"DOMContentLoaded");o.exports=T},57811:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){if(!s)return window.innerHeight;var u=Math.abs(window.orientation),T={w:0,h:0},d=document.createElement("div");return d.setAttribute("style","position: fixed; height: 100vh; width: 0; top: 0"),document.documentElement.appendChild(d),T.w=u===90?d.offsetHeight:window.innerWidth,T.h=u===90?window.innerWidth:d.offsetHeight,document.documentElement.removeChild(d),d=null,Math.abs(window.orientation)!==90?T.h:T.w},"GetInnerHeight");o.exports=m},45818:(o,m,s)=>{/** + */var O=v(function(s){if(!s)return window.innerHeight;var u=Math.abs(window.orientation),T={w:0,h:0},A=document.createElement("div");return A.setAttribute("style","position: fixed; height: 100vh; width: 0; top: 0"),document.documentElement.appendChild(A),T.w=u===90?A.offsetHeight:window.innerWidth,T.h=u===90?window.innerWidth:A.offsetHeight,document.documentElement.removeChild(A),A=null,Math.abs(window.orientation)!==90?T.h:T.w},"GetInnerHeight");o.exports=O},45818:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(13560),T=P(function(d,c){var A=window.screen,h=A?A.orientation||A.mozOrientation||A.msOrientation:!1;if(h&&typeof h.type=="string")return h.type;if(typeof h=="string")return h;if(typeof window.orientation=="number")return window.orientation===0||window.orientation===180?u.ORIENTATION.PORTRAIT:u.ORIENTATION.LANDSCAPE;if(window.matchMedia){if(window.matchMedia("(orientation: portrait)").matches)return u.ORIENTATION.PORTRAIT;if(window.matchMedia("(orientation: landscape)").matches)return u.ORIENTATION.LANDSCAPE}else return c>d?u.ORIENTATION.PORTRAIT:u.ORIENTATION.LANDSCAPE},"GetScreenOrientation");o.exports=T},74403:o=>{/** + */var u=s(13560),T=v(function(A,c){var d=window.screen,h=d?d.orientation||d.mozOrientation||d.msOrientation:!1;if(h&&typeof h.type=="string")return h.type;if(typeof h=="string")return h;if(typeof window.orientation=="number")return window.orientation===0||window.orientation===180?u.ORIENTATION.PORTRAIT:u.ORIENTATION.LANDSCAPE;if(window.matchMedia){if(window.matchMedia("(orientation: portrait)").matches)return u.ORIENTATION.PORTRAIT;if(window.matchMedia("(orientation: landscape)").matches)return u.ORIENTATION.LANDSCAPE}else return c>A?u.ORIENTATION.PORTRAIT:u.ORIENTATION.LANDSCAPE},"GetScreenOrientation");o.exports=T},74403:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){var u;return s!==""&&(typeof s=="string"?u=document.getElementById(s):s&&s.nodeType===1&&(u=s)),u||(u=document.body),u},"GetTarget");o.exports=m},56836:o=>{/** + */var O=v(function(s){var u;return s!==""&&(typeof s=="string"?u=document.getElementById(s):s&&s.nodeType===1&&(u=s)),u||(u=document.body),u},"GetTarget");o.exports=O},56836:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){var u="";try{if(window.DOMParser){var T=new DOMParser;u=T.parseFromString(s,"text/xml")}else u=new ActiveXObject("Microsoft.XMLDOM"),u.loadXML(s)}catch{u=null}return!u||!u.documentElement||u.getElementsByTagName("parsererror").length?null:u},"ParseXML");o.exports=m},35846:o=>{/** + */var O=v(function(s){var u="";try{if(window.DOMParser){var T=new DOMParser;u=T.parseFromString(s,"text/xml")}else u=new ActiveXObject("Microsoft.XMLDOM"),u.loadXML(s)}catch{u=null}return!u||!u.documentElement||u.getElementsByTagName("parsererror").length?null:u},"ParseXML");o.exports=O},35846:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){s.parentNode&&s.parentNode.removeChild(s)},"RemoveFromDOM");o.exports=m},43092:(o,m,s)=>{/** + */var O=v(function(s){s.parentNode&&s.parentNode.removeChild(s)},"RemoveFromDOM");o.exports=O},43092:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(29747),d=new u({initialize:P(function(){this.isRunning=!1,this.callback=T,this.isSetTimeOut=!1,this.timeOutID=null,this.delay=0;var A=this;this.step=P(function h(f){A.callback(f),A.isRunning&&(A.timeOutID=window.requestAnimationFrame(h))},"step"),this.stepTimeout=P(function h(){A.isRunning&&(A.timeOutID=window.setTimeout(h,A.delay)),A.callback(window.performance.now())},"stepTimeout")},"RequestAnimationFrame"),start:function(c,A,h){this.isRunning||(this.callback=c,this.isSetTimeOut=A,this.delay=h,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=T}});o.exports=d},84902:(o,m,s)=>{/** + */var u=s(83419),T=s(29747),A=new u({initialize:v(function(){this.isRunning=!1,this.callback=T,this.isSetTimeOut=!1,this.timeOutID=null,this.delay=0;var d=this;this.step=v(function h(f){d.callback(f),d.isRunning&&(d.timeOutID=window.requestAnimationFrame(h))},"step"),this.stepTimeout=v(function h(){d.isRunning&&(d.timeOutID=window.setTimeout(h,d.delay)),d.callback(window.performance.now())},"stepTimeout")},"RequestAnimationFrame"),start:function(c,d,h){this.isRunning||(this.callback=c,this.isSetTimeOut=d,this.delay=h,this.isRunning=!0,this.timeOutID=d?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=T}});o.exports=A},84902:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u={AddToDOM:s(40366),DOMContentLoaded:s(57264),GetInnerHeight:s(57811),GetScreenOrientation:s(45818),GetTarget:s(74403),ParseXML:s(56836),RemoveFromDOM:s(35846),RequestAnimationFrame:s(43092)};o.exports=u},47565:(o,m,s)=>{/** + */var u={AddToDOM:s(40366),DOMContentLoaded:s(57264),GetInnerHeight:s(57811),GetScreenOrientation:s(45818),GetTarget:s(74403),ParseXML:s(56836),RemoveFromDOM:s(35846),RequestAnimationFrame:s(43092)};o.exports=u},47565:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(50792),d=s(37277),c=new u({Extends:T,initialize:P(function(){T.call(this)},"EventEmitter"),shutdown:function(){this.removeAllListeners()},destroy:function(){this.removeAllListeners()}});d.register("EventEmitter",c,"events"),o.exports=c},93055:(o,m,s)=>{/** + */var u=s(83419),T=s(50792),A=s(37277),c=new u({Extends:T,initialize:v(function(){T.call(this)},"EventEmitter"),shutdown:function(){this.removeAllListeners()},destroy:function(){this.removeAllListeners()}});A.register("EventEmitter",c,"events"),o.exports=c},93055:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={EventEmitter:s(47565)}},20122:(o,m,s)=>{/** + */o.exports={EventEmitter:s(47565)}},20122:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(72898),d=s(14811),c=new u({Extends:T,initialize:P(function(h,f){f===void 0&&(f=1),T.call(this,d.BARREL,h),this.amount=f},"Barrel")});o.exports=c},32251:(o,m,s)=>{/** + */var u=s(83419),T=s(72898),A=s(14811),c=new u({Extends:T,initialize:v(function(h,f){f===void 0&&(f=1),T.call(this,A.BARREL,h),this.amount=f},"Barrel")});o.exports=c},32251:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(72898),d=s(14811),c=new u({Extends:T,initialize:P(function(h,f,S,O,L,p,N){S===void 0&&(S=1),O===void 0&&(O=1),L===void 0&&(L=1),p===void 0&&(p=1),N===void 0&&(N=4),T.call(this,d.BLOOM,h),this.steps=N,this.offsetX=S,this.offsetY=O,this.blurStrength=L,this.strength=p,this.glcolor=[1,1,1],f!=null&&(this.color=f)},"Bloom"),color:{get:function(){var A=this.glcolor;return(A[0]*255<<16)+(A[1]*255<<8)+(A[2]*255|0)},set:function(A){var h=this.glcolor;h[0]=(A>>16&255)/255,h[1]=(A>>8&255)/255,h[2]=(A&255)/255}}});o.exports=c},9047:(o,m,s)=>{/** + */var u=s(83419),T=s(72898),A=s(14811),c=new u({Extends:T,initialize:v(function(h,f,S,R,L,p,N){S===void 0&&(S=1),R===void 0&&(R=1),L===void 0&&(L=1),p===void 0&&(p=1),N===void 0&&(N=4),T.call(this,A.BLOOM,h),this.steps=N,this.offsetX=S,this.offsetY=R,this.blurStrength=L,this.strength=p,this.glcolor=[1,1,1],f!=null&&(this.color=f)},"Bloom"),color:{get:function(){var d=this.glcolor;return(d[0]*255<<16)+(d[1]*255<<8)+(d[2]*255|0)},set:function(d){var h=this.glcolor;h[0]=(d>>16&255)/255,h[1]=(d>>8&255)/255,h[2]=(d&255)/255}}});o.exports=c},9047:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(72898),d=s(14811),c=new u({Extends:T,initialize:P(function(h,f,S,O,L,p,N){f===void 0&&(f=0),S===void 0&&(S=2),O===void 0&&(O=2),L===void 0&&(L=1),N===void 0&&(N=4),T.call(this,d.BLUR,h),this.quality=f,this.x=S,this.y=O,this.steps=N,this.strength=L,this.glcolor=[1,1,1],p!=null&&(this.color=p)},"Blur"),color:{get:function(){var A=this.glcolor;return(A[0]*255<<16)+(A[1]*255<<8)+(A[2]*255|0)},set:function(A){var h=this.glcolor;h[0]=(A>>16&255)/255,h[1]=(A>>8&255)/255,h[2]=(A&255)/255}}});o.exports=c},27885:(o,m,s)=>{/** + */var u=s(83419),T=s(72898),A=s(14811),c=new u({Extends:T,initialize:v(function(h,f,S,R,L,p,N){f===void 0&&(f=0),S===void 0&&(S=2),R===void 0&&(R=2),L===void 0&&(L=1),N===void 0&&(N=4),T.call(this,A.BLUR,h),this.quality=f,this.x=S,this.y=R,this.steps=N,this.strength=L,this.glcolor=[1,1,1],p!=null&&(this.color=p)},"Blur"),color:{get:function(){var d=this.glcolor;return(d[0]*255<<16)+(d[1]*255<<8)+(d[2]*255|0)},set:function(d){var h=this.glcolor;h[0]=(d>>16&255)/255,h[1]=(d>>8&255)/255,h[2]=(d&255)/255}}});o.exports=c},27885:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(72898),d=s(14811),c=new u({Extends:T,initialize:P(function(h,f,S,O,L,p,N,g){f===void 0&&(f=.5),S===void 0&&(S=1),O===void 0&&(O=.2),L===void 0&&(L=!1),p===void 0&&(p=1),N===void 0&&(N=1),g===void 0&&(g=1),T.call(this,d.BOKEH,h),this.radius=f,this.amount=S,this.contrast=O,this.isTiltShift=L,this.strength=g,this.blurX=p,this.blurY=N},"Bokeh")});o.exports=c},12578:(o,m,s)=>{/** + */var u=s(83419),T=s(72898),A=s(14811),c=new u({Extends:T,initialize:v(function(h,f,S,R,L,p,N,g){f===void 0&&(f=.5),S===void 0&&(S=1),R===void 0&&(R=.2),L===void 0&&(L=!1),p===void 0&&(p=1),N===void 0&&(N=1),g===void 0&&(g=1),T.call(this,A.BOKEH,h),this.radius=f,this.amount=S,this.contrast=R,this.isTiltShift=L,this.strength=g,this.blurX=p,this.blurY=N},"Bokeh")});o.exports=c},12578:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(72898),d=s(14811),c=new u({Extends:T,initialize:P(function(h,f,S,O,L,p){f===void 0&&(f=8),L===void 0&&(L=1),p===void 0&&(p=.005),T.call(this,d.CIRCLE,h),this.scale=L,this.feather=p,this.thickness=f,this.glcolor=[1,.2,.7],this.glcolor2=[1,0,0,.4],S!=null&&(this.color=S),O!=null&&(this.backgroundColor=O)},"Circle"),color:{get:function(){var A=this.glcolor;return(A[0]*255<<16)+(A[1]*255<<8)+(A[2]*255|0)},set:function(A){var h=this.glcolor;h[0]=(A>>16&255)/255,h[1]=(A>>8&255)/255,h[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 h=this.glcolor2;h[0]=(A>>16&255)/255,h[1]=(A>>8&255)/255,h[2]=(A&255)/255}},backgroundAlpha:{get:function(){return this.glcolor2[3]},set:function(A){this.glcolor2[3]=A}}});o.exports=c},15802:(o,m,s)=>{/** + */var u=s(83419),T=s(72898),A=s(14811),c=new u({Extends:T,initialize:v(function(h,f,S,R,L,p){f===void 0&&(f=8),L===void 0&&(L=1),p===void 0&&(p=.005),T.call(this,A.CIRCLE,h),this.scale=L,this.feather=p,this.thickness=f,this.glcolor=[1,.2,.7],this.glcolor2=[1,0,0,.4],S!=null&&(this.color=S),R!=null&&(this.backgroundColor=R)},"Circle"),color:{get:function(){var d=this.glcolor;return(d[0]*255<<16)+(d[1]*255<<8)+(d[2]*255|0)},set:function(d){var h=this.glcolor;h[0]=(d>>16&255)/255,h[1]=(d>>8&255)/255,h[2]=(d&255)/255}},backgroundColor:{get:function(){var d=this.glcolor2;return(d[0]*255<<16)+(d[1]*255<<8)+(d[2]*255|0)},set:function(d){var h=this.glcolor2;h[0]=(d>>16&255)/255,h[1]=(d>>8&255)/255,h[2]=(d&255)/255}},backgroundAlpha:{get:function(){return this.glcolor2[3]},set:function(d){this.glcolor2[3]=d}}});o.exports=c},15802:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(89422),d=s(14811),c=new u({Extends:T,initialize:P(function(h){T.call(this),this.type=d.COLOR_MATRIX,this.gameObject=h,this.active=!0},"ColorMatrix"),destroy:function(){this.gameObject=null,this._matrix=null,this._data=null}});o.exports=c},72898:(o,m,s)=>{/** + */var u=s(83419),T=s(89422),A=s(14811),c=new u({Extends:T,initialize:v(function(h){T.call(this),this.type=A.COLOR_MATRIX,this.gameObject=h,this.active=!0},"ColorMatrix"),destroy:function(){this.gameObject=null,this._matrix=null,this._data=null}});o.exports=c},72898:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=new u({initialize:P(function(c,A){this.type=c,this.gameObject=A,this.active=!0},"Controller"),setActive:function(d){return this.active=d,this},destroy:function(){this.gameObject=null,this.active=!1}});o.exports=T},44553:(o,m,s)=>{/** + */var u=s(83419),T=new u({initialize:v(function(c,d){this.type=c,this.gameObject=d,this.active=!0},"Controller"),setActive:function(A){return this.active=A,this},destroy:function(){this.gameObject=null,this.active=!1}});o.exports=T},44553:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(72898),d=s(14811),c=new u({Extends:T,initialize:P(function(h,f,S,O){f===void 0&&(f="__WHITE"),S===void 0&&(S=.005),O===void 0&&(O=.005),T.call(this,d.DISPLACEMENT,h),this.x=S,this.y=O,this.glTexture,this.setTexture(f)},"Displacement"),setTexture:function(A){var h=this.gameObject.scene.sys.textures.getFrame(A);return h&&(this.glTexture=h.glTexture),this}});o.exports=c},68531:(o,m,s)=>{/** + */var u=s(83419),T=s(72898),A=s(14811),c=new u({Extends:T,initialize:v(function(h,f,S,R){f===void 0&&(f="__WHITE"),S===void 0&&(S=.005),R===void 0&&(R=.005),T.call(this,A.DISPLACEMENT,h),this.x=S,this.y=R,this.glTexture,this.setTexture(f)},"Displacement"),setTexture:function(d){var h=this.gameObject.scene.sys.textures.getFrame(d);return h&&(this.glTexture=h.glTexture),this}});o.exports=c},68531:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(72898),d=s(14811),c=new u({Extends:T,initialize:P(function(h,f,S,O,L){S===void 0&&(S=4),O===void 0&&(O=0),L===void 0&&(L=!1),T.call(this,d.GLOW,h),this.outerStrength=S,this.innerStrength=O,this.knockout=L,this.glcolor=[1,1,1,1],f!==void 0&&(this.color=f)},"Glow"),color:{get:function(){var A=this.glcolor;return(A[0]*255<<16)+(A[1]*255<<8)+(A[2]*255|0)},set:function(A){var h=this.glcolor;h[0]=(A>>16&255)/255,h[1]=(A>>8&255)/255,h[2]=(A&255)/255}}});o.exports=c},37102:(o,m,s)=>{/** + */var u=s(83419),T=s(72898),A=s(14811),c=new u({Extends:T,initialize:v(function(h,f,S,R,L){S===void 0&&(S=4),R===void 0&&(R=0),L===void 0&&(L=!1),T.call(this,A.GLOW,h),this.outerStrength=S,this.innerStrength=R,this.knockout=L,this.glcolor=[1,1,1,1],f!==void 0&&(this.color=f)},"Glow"),color:{get:function(){var d=this.glcolor;return(d[0]*255<<16)+(d[1]*255<<8)+(d[2]*255|0)},set:function(d){var h=this.glcolor;h[0]=(d>>16&255)/255,h[1]=(d>>8&255)/255,h[2]=(d&255)/255}}});o.exports=c},37102:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(72898),d=s(14811),c=new u({Extends:T,initialize:P(function(h,f,S,O,L,p,N,g,C){O===void 0&&(O=.2),L===void 0&&(L=0),p===void 0&&(p=0),N===void 0&&(N=0),g===void 0&&(g=1),C===void 0&&(C=0),T.call(this,d.GRADIENT,h),this.alpha=O,this.size=C,this.fromX=L,this.fromY=p,this.toX=N,this.toY=g,this.glcolor1=[255,0,0],this.glcolor2=[0,255,0],f!=null&&(this.color1=f),S!=null&&(this.color2=S)},"Gradient"),color1:{get:function(){var A=this.glcolor1;return(A[0]<<16)+(A[1]<<8)+(A[2]|0)},set:function(A){var h=this.glcolor1;h[0]=A>>16&255,h[1]=A>>8&255,h[2]=A&255}},color2:{get:function(){var A=this.glcolor2;return(A[0]<<16)+(A[1]<<8)+(A[2]|0)},set:function(A){var h=this.glcolor2;h[0]=A>>16&255,h[1]=A>>8&255,h[2]=A&255}}});o.exports=c},86886:(o,m,s)=>{/** + */var u=s(83419),T=s(72898),A=s(14811),c=new u({Extends:T,initialize:v(function(h,f,S,R,L,p,N,g,C){R===void 0&&(R=.2),L===void 0&&(L=0),p===void 0&&(p=0),N===void 0&&(N=0),g===void 0&&(g=1),C===void 0&&(C=0),T.call(this,A.GRADIENT,h),this.alpha=R,this.size=C,this.fromX=L,this.fromY=p,this.toX=N,this.toY=g,this.glcolor1=[255,0,0],this.glcolor2=[0,255,0],f!=null&&(this.color1=f),S!=null&&(this.color2=S)},"Gradient"),color1:{get:function(){var d=this.glcolor1;return(d[0]<<16)+(d[1]<<8)+(d[2]|0)},set:function(d){var h=this.glcolor1;h[0]=d>>16&255,h[1]=d>>8&255,h[2]=d&255}},color2:{get:function(){var d=this.glcolor2;return(d[0]<<16)+(d[1]<<8)+(d[2]|0)},set:function(d){var h=this.glcolor2;h[0]=d>>16&255,h[1]=d>>8&255,h[2]=d&255}}});o.exports=c},86886:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(72898),d=s(14811),c=new u({Extends:T,initialize:P(function(h,f){f===void 0&&(f=1),T.call(this,d.PIXELATE,h),this.amount=f},"Pixelate")});o.exports=c},92322:(o,m,s)=>{/** + */var u=s(83419),T=s(72898),A=s(14811),c=new u({Extends:T,initialize:v(function(h,f){f===void 0&&(f=1),T.call(this,A.PIXELATE,h),this.amount=f},"Pixelate")});o.exports=c},92322:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(72898),d=s(14811),c=new u({Extends:T,initialize:P(function(h,f,S,O,L,p,N,g){f===void 0&&(f=0),S===void 0&&(S=0),O===void 0&&(O=.1),L===void 0&&(L=1),N===void 0&&(N=6),g===void 0&&(g=1),T.call(this,d.SHADOW,h),this.x=f,this.y=S,this.decay=O,this.power=L,this.glcolor=[0,0,0,1],this.samples=N,this.intensity=g,p!==void 0&&(this.color=p)},"Shadow"),color:{get:function(){var A=this.glcolor;return(A[0]*255<<16)+(A[1]*255<<8)+(A[2]*255|0)},set:function(A){var h=this.glcolor;h[0]=(A>>16&255)/255,h[1]=(A>>8&255)/255,h[2]=(A&255)/255}}});o.exports=c},39563:(o,m,s)=>{/** + */var u=s(83419),T=s(72898),A=s(14811),c=new u({Extends:T,initialize:v(function(h,f,S,R,L,p,N,g){f===void 0&&(f=0),S===void 0&&(S=0),R===void 0&&(R=.1),L===void 0&&(L=1),N===void 0&&(N=6),g===void 0&&(g=1),T.call(this,A.SHADOW,h),this.x=f,this.y=S,this.decay=R,this.power=L,this.glcolor=[0,0,0,1],this.samples=N,this.intensity=g,p!==void 0&&(this.color=p)},"Shadow"),color:{get:function(){var d=this.glcolor;return(d[0]*255<<16)+(d[1]*255<<8)+(d[2]*255|0)},set:function(d){var h=this.glcolor;h[0]=(d>>16&255)/255,h[1]=(d>>8&255)/255,h[2]=(d&255)/255}}});o.exports=c},39563:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(72898),d=s(14811),c=new u({Extends:T,initialize:P(function(h,f,S,O,L){f===void 0&&(f=.5),S===void 0&&(S=.5),O===void 0&&(O=3),L===void 0&&(L=!1),T.call(this,d.SHINE,h),this.speed=f,this.lineWidth=S,this.gradient=O,this.reveal=L},"Shine")});o.exports=c},56448:(o,m,s)=>{/** + */var u=s(83419),T=s(72898),A=s(14811),c=new u({Extends:T,initialize:v(function(h,f,S,R,L){f===void 0&&(f=.5),S===void 0&&(S=.5),R===void 0&&(R=3),L===void 0&&(L=!1),T.call(this,A.SHINE,h),this.speed=f,this.lineWidth=S,this.gradient=R,this.reveal=L},"Shine")});o.exports=c},56448:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(72898),d=s(14811),c=new u({Extends:T,initialize:P(function(h,f,S,O,L){f===void 0&&(f=.5),S===void 0&&(S=.5),O===void 0&&(O=.5),L===void 0&&(L=.5),T.call(this,d.VIGNETTE,h),this.x=f,this.y=S,this.radius=O,this.strength=L},"Vignette")});o.exports=c},38433:(o,m,s)=>{/** + */var u=s(83419),T=s(72898),A=s(14811),c=new u({Extends:T,initialize:v(function(h,f,S,R,L){f===void 0&&(f=.5),S===void 0&&(S=.5),R===void 0&&(R=.5),L===void 0&&(L=.5),T.call(this,A.VIGNETTE,h),this.x=f,this.y=S,this.radius=R,this.strength=L},"Vignette")});o.exports=c},38433:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(72898),d=s(14811),c=new u({Extends:T,initialize:P(function(h,f,S,O,L){f===void 0&&(f=.1),S===void 0&&(S=0),O===void 0&&(O=0),L===void 0&&(L=!1),T.call(this,d.WIPE,h),this.progress=0,this.wipeWidth=f,this.direction=S,this.axis=O,this.reveal=L},"Wipe")});o.exports=c},14811:o=>{/** + */var u=s(83419),T=s(72898),A=s(14811),c=new u({Extends:T,initialize:v(function(h,f,S,R,L){f===void 0&&(f=.1),S===void 0&&(S=0),R===void 0&&(R=0),L===void 0&&(L=!1),T.call(this,A.WIPE,h),this.progress=0,this.wipeWidth=f,this.direction=S,this.axis=R,this.reveal=L},"Wipe")});o.exports=c},14811:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={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};o.exports=m},66064:(o,m,s)=>{/** + */var O={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};o.exports=O},66064:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(79291),T=s(14811),d={Barrel:s(20122),Controller:s(72898),Bloom:s(32251),Blur:s(9047),Bokeh:s(27885),Circle:s(12578),ColorMatrix:s(15802),Displacement:s(44553),Glow:s(68531),Gradient:s(37102),Pixelate:s(86886),Shadow:s(92322),Shine:s(39563),Vignette:s(56448),Wipe:s(38433)};d=u(!1,d,T),o.exports=d},25305:(o,m,s)=>{/** + */var u=s(79291),T=s(14811),A={Barrel:s(20122),Controller:s(72898),Bloom:s(32251),Blur:s(9047),Bokeh:s(27885),Circle:s(12578),ColorMatrix:s(15802),Displacement:s(44553),Glow:s(68531),Gradient:s(37102),Pixelate:s(86886),Shadow:s(92322),Shine:s(39563),Vignette:s(56448),Wipe:s(38433)};A=u(!1,A,T),o.exports=A},25305:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(10312),T=s(23568),d=P(function(c,A,h){A.x=T(h,"x",0),A.y=T(h,"y",0),A.depth=T(h,"depth",0),A.flipX=T(h,"flipX",!1),A.flipY=T(h,"flipY",!1);var f=T(h,"scale",null);typeof f=="number"?A.setScale(f):f!==null&&(A.scaleX=T(f,"x",1),A.scaleY=T(f,"y",1));var S=T(h,"scrollFactor",null);typeof S=="number"?A.setScrollFactor(S):S!==null&&(A.scrollFactorX=T(S,"x",1),A.scrollFactorY=T(S,"y",1)),A.rotation=T(h,"rotation",0);var O=T(h,"angle",null);O!==null&&(A.angle=O),A.alpha=T(h,"alpha",1);var L=T(h,"origin",null);if(typeof L=="number")A.setOrigin(L);else if(L!==null){var p=T(L,"x",.5),N=T(L,"y",.5);A.setOrigin(p,N)}A.blendMode=T(h,"blendMode",u.NORMAL),A.visible=T(h,"visible",!0);var g=T(h,"add",!0);return g&&c.sys.displayList.add(A),A.preUpdate&&c.sys.updateList.add(A),A},"BuildGameObject");o.exports=d},13059:(o,m,s)=>{/** + */var u=s(10312),T=s(23568),A=v(function(c,d,h){d.x=T(h,"x",0),d.y=T(h,"y",0),d.depth=T(h,"depth",0),d.flipX=T(h,"flipX",!1),d.flipY=T(h,"flipY",!1);var f=T(h,"scale",null);typeof f=="number"?d.setScale(f):f!==null&&(d.scaleX=T(f,"x",1),d.scaleY=T(f,"y",1));var S=T(h,"scrollFactor",null);typeof S=="number"?d.setScrollFactor(S):S!==null&&(d.scrollFactorX=T(S,"x",1),d.scrollFactorY=T(S,"y",1)),d.rotation=T(h,"rotation",0);var R=T(h,"angle",null);R!==null&&(d.angle=R),d.alpha=T(h,"alpha",1);var L=T(h,"origin",null);if(typeof L=="number")d.setOrigin(L);else if(L!==null){var p=T(L,"x",.5),N=T(L,"y",.5);d.setOrigin(p,N)}d.blendMode=T(h,"blendMode",u.NORMAL),d.visible=T(h,"visible",!0);var g=T(h,"add",!0);return g&&c.sys.displayList.add(d),d.preUpdate&&c.sys.updateList.add(d),d},"BuildGameObject");o.exports=A},13059:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(23568),T=P(function(d,c){var A=u(c,"anims",null);if(A===null)return d;if(typeof A=="string")d.anims.play(A);else if(typeof A=="object"){var h=d.anims,f=u(A,"key",void 0);if(f){var S=u(A,"startFrame",void 0),O=u(A,"delay",0),L=u(A,"repeat",0),p=u(A,"repeatDelay",0),N=u(A,"yoyo",!1),g=u(A,"play",!1),C=u(A,"delayedPlay",0),v={key:f,delay:O,repeat:L,repeatDelay:p,yoyo:N,startFrame:S};g?h.play(v):C>0?h.playAfterDelay(v,C):h.load(v)}}return d},"BuildGameObjectAnimation");o.exports=T},8050:(o,m,s)=>{/** + */var u=s(23568),T=v(function(A,c){var d=u(c,"anims",null);if(d===null)return A;if(typeof d=="string")A.anims.play(d);else if(typeof d=="object"){var h=A.anims,f=u(d,"key",void 0);if(f){var S=u(d,"startFrame",void 0),R=u(d,"delay",0),L=u(d,"repeat",0),p=u(d,"repeatDelay",0),N=u(d,"yoyo",!1),g=u(d,"play",!1),C=u(d,"delayedPlay",0),P={key:f,delay:R,repeat:L,repeatDelay:p,yoyo:N,startFrame:S};g?h.play(P):C>0?h.playAfterDelay(P,C):h.load(P)}}return A},"BuildGameObjectAnimation");o.exports=T},8050:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(73162),d=s(37277),c=s(51708),A=s(44594),h=s(19186),f=new u({Extends:T,initialize:P(function(O){T.call(this,O),this.sortChildrenFlag=!1,this.scene=O,this.systems=O.sys,this.events=O.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)},"DisplayList"),boot:function(){this.events.once(A.DESTROY,this.destroy,this)},addChildCallback:function(S){S.displayList&&S.displayList!==this&&S.removeFromDisplayList(),S.parentContainer&&S.parentContainer.remove(S),S.displayList||(this.queueDepthSort(),S.displayList=this,S.emit(c.ADDED_TO_SCENE,S,this.scene),this.events.emit(A.ADDED_TO_SCENE,S,this.scene))},removeChildCallback:function(S){this.queueDepthSort(),S.displayList=null,S.emit(c.REMOVED_FROM_SCENE,S,this.scene),this.events.emit(A.REMOVED_FROM_SCENE,S,this.scene)},start:function(){this.events.once(A.SHUTDOWN,this.shutdown,this)},queueDepthSort:function(){this.sortChildrenFlag=!0},depthSort:function(){this.sortChildrenFlag&&(h(this.list,this.sortByDepth),this.sortChildrenFlag=!1)},sortByDepth:function(S,O){return S._depth-O._depth},getChildren:function(){return this.list},shutdown:function(){for(var S=this.list;S.length;)S[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}});d.register("DisplayList",f,"displayList"),o.exports=f},95643:(o,m,s)=>{/** + */var u=s(83419),T=s(73162),A=s(37277),c=s(51708),d=s(44594),h=s(19186),f=new u({Extends:T,initialize:v(function(R){T.call(this,R),this.sortChildrenFlag=!1,this.scene=R,this.systems=R.sys,this.events=R.sys.events,this.addCallback=this.addChildCallback,this.removeCallback=this.removeChildCallback,this.events.once(d.BOOT,this.boot,this),this.events.on(d.START,this.start,this)},"DisplayList"),boot:function(){this.events.once(d.DESTROY,this.destroy,this)},addChildCallback:function(S){S.displayList&&S.displayList!==this&&S.removeFromDisplayList(),S.parentContainer&&S.parentContainer.remove(S),S.displayList||(this.queueDepthSort(),S.displayList=this,S.emit(c.ADDED_TO_SCENE,S,this.scene),this.events.emit(d.ADDED_TO_SCENE,S,this.scene))},removeChildCallback:function(S){this.queueDepthSort(),S.displayList=null,S.emit(c.REMOVED_FROM_SCENE,S,this.scene),this.events.emit(d.REMOVED_FROM_SCENE,S,this.scene)},start:function(){this.events.once(d.SHUTDOWN,this.shutdown,this)},queueDepthSort:function(){this.sortChildrenFlag=!0},depthSort:function(){this.sortChildrenFlag&&(h(this.list,this.sortByDepth),this.sortChildrenFlag=!1)},sortByDepth:function(S,R){return S._depth-R._depth},getChildren:function(){return this.list},shutdown:function(){for(var S=this.list;S.length;)S[0].destroy(!0);this.events.off(d.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(d.START,this.start,this),this.scene=null,this.systems=null,this.events=null}});A.register("DisplayList",f,"displayList"),o.exports=f},95643:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(53774),d=s(45893),c=s(50792),A=s(51708),h=s(44594),f=new u({Extends:c,initialize:P(function(O,L){c.call(this),this.scene=O,this.displayList=null,this.type=L,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),O.sys.queueDepthSort()},"GameObject"),setActive:function(S){return this.active=S,this},setName:function(S){return this.name=S,this},setState:function(S){return this.state=S,this},setDataEnabled:function(){return this.data||(this.data=new d(this)),this},setData:function(S,O){return this.data||(this.data=new d(this)),this.data.set(S,O),this},incData:function(S,O){return this.data||(this.data=new d(this)),this.data.inc(S,O),this},toggleData:function(S){return this.data||(this.data=new d(this)),this.data.toggle(S),this},getData:function(S){return this.data||(this.data=new d(this)),this.data.get(S)},setInteractive:function(S,O,L){return this.scene.sys.input.enable(this,S,O,L),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 T(this)},willRender:function(S){var O=this.displayList&&this.displayList.active?this.displayList.willRender(S):!0;return!(!O||f.RENDER_MASK!==this.renderFlags||this.cameraFilter!==0&&this.cameraFilter&S.id)},getIndexList:function(){for(var S=this,O=this.parentContainer,L=[];O&&(L.unshift(O.getIndex(S)),S=O,O.parentContainer);)O=O.parentContainer;return this.displayList?L.unshift(this.displayList.getIndex(S)):L.unshift(this.scene.sys.displayList.getIndex(S)),L},addToDisplayList:function(S){return S===void 0&&(S=this.scene.sys.displayList),this.displayList&&this.displayList!==S&&this.removeFromDisplayList(),S.exists(this)||(this.displayList=S,S.add(this,!0),S.queueDepthSort(),this.emit(A.ADDED_TO_SCENE,this,this.scene),S.events.emit(h.ADDED_TO_SCENE,this,this.scene)),this},addToUpdateList:function(){return this.scene&&this.preUpdate&&this.scene.sys.updateList.add(this),this},removeFromDisplayList:function(){var S=this.displayList||this.scene.sys.displayList;return S&&S.exists(this)&&(S.remove(this,!0),S.queueDepthSort(),this.displayList=null,this.emit(A.REMOVED_FROM_SCENE,this,this.scene),S.events.emit(h.REMOVED_FROM_SCENE,this,this.scene)),this},removeFromUpdateList:function(){return this.scene&&this.preUpdate&&this.scene.sys.updateList.remove(this),this},destroy:function(S){!this.scene||this.ignoreDestroy||(S===void 0&&(S=!1),this.preDestroy&&this.preDestroy.call(this),this.emit(A.DESTROY,this,S),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)}});f.RENDER_MASK=15,o.exports=f},44603:(o,m,s)=>{/** + */var u=s(83419),T=s(53774),A=s(45893),c=s(50792),d=s(51708),h=s(44594),f=new u({Extends:c,initialize:v(function(R,L){c.call(this),this.scene=R,this.displayList=null,this.type=L,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(d.ADDED_TO_SCENE,this.addedToScene,this),this.on(d.REMOVED_FROM_SCENE,this.removedFromScene,this),R.sys.queueDepthSort()},"GameObject"),setActive:function(S){return this.active=S,this},setName:function(S){return this.name=S,this},setState:function(S){return this.state=S,this},setDataEnabled:function(){return this.data||(this.data=new A(this)),this},setData:function(S,R){return this.data||(this.data=new A(this)),this.data.set(S,R),this},incData:function(S,R){return this.data||(this.data=new A(this)),this.data.inc(S,R),this},toggleData:function(S){return this.data||(this.data=new A(this)),this.data.toggle(S),this},getData:function(S){return this.data||(this.data=new A(this)),this.data.get(S)},setInteractive:function(S,R,L){return this.scene.sys.input.enable(this,S,R,L),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 T(this)},willRender:function(S){var R=this.displayList&&this.displayList.active?this.displayList.willRender(S):!0;return!(!R||f.RENDER_MASK!==this.renderFlags||this.cameraFilter!==0&&this.cameraFilter&S.id)},getIndexList:function(){for(var S=this,R=this.parentContainer,L=[];R&&(L.unshift(R.getIndex(S)),S=R,R.parentContainer);)R=R.parentContainer;return this.displayList?L.unshift(this.displayList.getIndex(S)):L.unshift(this.scene.sys.displayList.getIndex(S)),L},addToDisplayList:function(S){return S===void 0&&(S=this.scene.sys.displayList),this.displayList&&this.displayList!==S&&this.removeFromDisplayList(),S.exists(this)||(this.displayList=S,S.add(this,!0),S.queueDepthSort(),this.emit(d.ADDED_TO_SCENE,this,this.scene),S.events.emit(h.ADDED_TO_SCENE,this,this.scene)),this},addToUpdateList:function(){return this.scene&&this.preUpdate&&this.scene.sys.updateList.add(this),this},removeFromDisplayList:function(){var S=this.displayList||this.scene.sys.displayList;return S&&S.exists(this)&&(S.remove(this,!0),S.queueDepthSort(),this.displayList=null,this.emit(d.REMOVED_FROM_SCENE,this,this.scene),S.events.emit(h.REMOVED_FROM_SCENE,this,this.scene)),this},removeFromUpdateList:function(){return this.scene&&this.preUpdate&&this.scene.sys.updateList.remove(this),this},destroy:function(S){!this.scene||this.ignoreDestroy||(S===void 0&&(S=!1),this.preDestroy&&this.preDestroy.call(this),this.emit(d.DESTROY,this,S),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)}});f.RENDER_MASK=15,o.exports=f},44603:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(37277),d=s(44594),c=new u({initialize:P(function(h){this.scene=h,this.systems=h.sys,this.events=h.sys.events,this.displayList,this.updateList,this.events.once(d.BOOT,this.boot,this),this.events.on(d.START,this.start,this)},"GameObjectCreator"),boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.events.once(d.DESTROY,this.destroy,this)},start:function(){this.events.once(d.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.events.off(d.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(d.START,this.start,this),this.scene=null,this.systems=null,this.events=null,this.displayList=null,this.updateList=null}});c.register=function(A,h){c.prototype.hasOwnProperty(A)||(c.prototype[A]=h)},c.remove=function(A){c.prototype.hasOwnProperty(A)&&delete c.prototype[A]},T.register("GameObjectCreator",c,"make"),o.exports=c},39429:(o,m,s)=>{/** + */var u=s(83419),T=s(37277),A=s(44594),c=new u({initialize:v(function(h){this.scene=h,this.systems=h.sys,this.events=h.sys.events,this.displayList,this.updateList,this.events.once(A.BOOT,this.boot,this),this.events.on(A.START,this.start,this)},"GameObjectCreator"),boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.events.once(A.DESTROY,this.destroy,this)},start:function(){this.events.once(A.SHUTDOWN,this.shutdown,this)},shutdown:function(){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,this.displayList=null,this.updateList=null}});c.register=function(d,h){c.prototype.hasOwnProperty(d)||(c.prototype[d]=h)},c.remove=function(d){c.prototype.hasOwnProperty(d)&&delete c.prototype[d]},T.register("GameObjectCreator",c,"make"),o.exports=c},39429:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(37277),d=s(44594),c=new u({initialize:P(function(h){this.scene=h,this.systems=h.sys,this.events=h.sys.events,this.displayList,this.updateList,this.events.once(d.BOOT,this.boot,this),this.events.on(d.START,this.start,this)},"GameObjectFactory"),boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.events.once(d.DESTROY,this.destroy,this)},start:function(){this.events.once(d.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(d.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(d.START,this.start,this),this.scene=null,this.systems=null,this.events=null,this.displayList=null,this.updateList=null}});c.register=function(A,h){c.prototype.hasOwnProperty(A)||(c.prototype[A]=h)},c.remove=function(A){c.prototype.hasOwnProperty(A)&&delete c.prototype[A]},T.register("GameObjectFactory",c,"add"),o.exports=c},91296:(o,m,s)=>{/** + */var u=s(83419),T=s(37277),A=s(44594),c=new u({initialize:v(function(h){this.scene=h,this.systems=h.sys,this.events=h.sys.events,this.displayList,this.updateList,this.events.once(A.BOOT,this.boot,this),this.events.on(A.START,this.start,this)},"GameObjectFactory"),boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.events.once(A.DESTROY,this.destroy,this)},start:function(){this.events.once(A.SHUTDOWN,this.shutdown,this)},existing:function(d){return(d.renderCanvas||d.renderWebGL)&&this.displayList.add(d),d.preUpdate&&this.updateList.add(d),d},shutdown:function(){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,this.displayList=null,this.updateList=null}});c.register=function(d,h){c.prototype.hasOwnProperty(d)||(c.prototype[d]=h)},c.remove=function(d){c.prototype.hasOwnProperty(d)&&delete c.prototype[d]},T.register("GameObjectFactory",c,"add"),o.exports=c},91296:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(61340),T=new u,d=new u,c=new u,A={camera:T,sprite:d,calc:c},h=P(function(f,S,O){var L=T,p=d,N=c;return p.applyITRS(f.x,f.y,f.rotation,f.scaleX,f.scaleY),L.copyFrom(S.matrix),O?(L.multiplyWithOffset(O,-S.scrollX*f.scrollFactorX,-S.scrollY*f.scrollFactorY),p.e=f.x,p.f=f.y):(p.e-=S.scrollX*f.scrollFactorX,p.f-=S.scrollY*f.scrollFactorY),L.multiply(p,N),A},"GetCalcMatrix");o.exports=h},45027:(o,m,s)=>{/** + */var u=s(61340),T=new u,A=new u,c=new u,d={camera:T,sprite:A,calc:c},h=v(function(f,S,R){var L=T,p=A,N=c;return p.applyITRS(f.x,f.y,f.rotation,f.scaleX,f.scaleY),L.copyFrom(S.matrix),R?(L.multiplyWithOffset(R,-S.scrollX*f.scrollFactorX,-S.scrollY*f.scrollFactorY),p.e=f.x,p.f=f.y):(p.e-=S.scrollX*f.scrollFactorX,p.f-=S.scrollY*f.scrollFactorY),L.multiply(p,N),d},"GetCalcMatrix");o.exports=h},45027:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(25774),d=s(37277),c=s(44594),A=new u({Extends:T,initialize:P(function(f){T.call(this),this.checkQueue=!0,this.scene=f,this.systems=f.sys,f.sys.events.once(c.BOOT,this.boot,this),f.sys.events.on(c.START,this.start,this)},"UpdateList"),boot:function(){this.systems.events.once(c.DESTROY,this.destroy,this)},start:function(){var h=this.systems.events;h.on(c.PRE_UPDATE,this.update,this),h.on(c.UPDATE,this.sceneUpdate,this),h.once(c.SHUTDOWN,this.shutdown,this)},sceneUpdate:function(h,f){for(var S=this._active,O=S.length,L=0;L{/** + */var u=s(83419),T=s(25774),A=s(37277),c=s(44594),d=new u({Extends:T,initialize:v(function(f){T.call(this),this.checkQueue=!0,this.scene=f,this.systems=f.sys,f.sys.events.once(c.BOOT,this.boot,this),f.sys.events.on(c.START,this.start,this)},"UpdateList"),boot:function(){this.systems.events.once(c.DESTROY,this.destroy,this)},start:function(){var h=this.systems.events;h.on(c.PRE_UPDATE,this.update,this),h.on(c.UPDATE,this.sceneUpdate,this),h.once(c.SHUTDOWN,this.shutdown,this)},sceneUpdate:function(h,f){for(var S=this._active,R=S.length,L=0;L{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d,c,A,h,f,S,O,L,p,N,g,C){var v=T.x-u.displayOriginX+c,M=T.y-u.displayOriginY+A,D=v+T.w,G=M+T.h,H=h.getXRound(v,M,f),B=h.getYRound(v,M,f),_=h.getXRound(v,G,f),w=h.getYRound(v,G,f),b=h.getXRound(D,G,f),F=h.getYRound(D,G,f),k=h.getXRound(D,M,f),V=h.getYRound(D,M,f);s.batchQuad(u,H,B,_,w,b,F,k,V,d.u0,d.v0,d.u1,d.v1,S,O,L,p,N,g,C)},"BatchChar");o.exports=m},53048:o=>{/** + */var O=v(function(s,u,T,A,c,d,h,f,S,R,L,p,N,g,C){var P=T.x-u.displayOriginX+c,M=T.y-u.displayOriginY+d,D=P+T.w,G=M+T.h,H=h.getXRound(P,M,f),B=h.getYRound(P,M,f),b=h.getXRound(P,G,f),w=h.getYRound(P,G,f),_=h.getXRound(D,G,f),F=h.getYRound(D,G,f),x=h.getXRound(D,M,f),V=h.getYRound(D,M,f);s.batchQuad(u,H,B,b,w,_,F,x,V,A.u0,A.v0,A.u1,A.v1,S,R,L,p,N,g,C)},"BatchChar");o.exports=O},53048:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){if(T===void 0&&(T=!1),d===void 0)return d={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},d;var c=s.text,A=c.length,h=s.maxWidth,f=s.wordWrapCharCode,S=Number.MAX_VALUE,O=Number.MAX_VALUE,L=0,p=0,N=s.fontData.chars,g=s.fontData.lineHeight,C=s.letterSpacing,v=s.lineSpacing,M=0,D=0,G=0,H=null,B=s._align,_=0,w=0,b=s.fontSize/s.fontData.size,F=b*s.scaleX,k=b*s.scaleY,V=null,Z=0,$=[],Q=Number.MAX_VALUE,te=0,z=0,j=0,x,X=[],q=[],J=null;if(h>0){for(x=0;xh||ke>h?(Ee.push(Re.i-1),Re.cr?(Ee.push(Re.i+Re.word.length),oe=0,re=null):re=Re):Re.cr&&(Ee.push(Re.i+Re.word.length),oe=0,re=null)}var it=P(function(oa,Sn,Tn){return oa.substr(0,Sn)+Tn+oa.substr(Sn+1)},"stringInsert");for(x=Ee.length-1;x>=0;x--)c=it(c,Ee[x],` -`);d.wrappedText=c,A=c.length,X=[],J=null}var lt=0;for(x=0;xte&&(te=j),j_&&(S=_),O>w&&(O=w);var Ge=_+H.xAdvance,Je=w+g;Lte&&(te=j),j0)for(var Ut=0;Ut{/** + */var O=v(function(s,u,T,A){if(T===void 0&&(T=!1),A===void 0)return A={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},A;var c=s.text,d=c.length,h=s.maxWidth,f=s.wordWrapCharCode,S=Number.MAX_VALUE,R=Number.MAX_VALUE,L=0,p=0,N=s.fontData.chars,g=s.fontData.lineHeight,C=s.letterSpacing,P=s.lineSpacing,M=0,D=0,G=0,H=null,B=s._align,b=0,w=0,_=s.fontSize/s.fontData.size,F=_*s.scaleX,x=_*s.scaleY,V=null,Z=0,$=[],Q=Number.MAX_VALUE,te=0,z=0,j=0,k,X=[],q=[],J=null;if(h>0){for(k=0;kh||xe>h?(Ee.push(me.i-1),me.cr?(Ee.push(me.i+me.word.length),oe=0,re=null):re=me):me.cr&&(Ee.push(me.i+me.word.length),oe=0,re=null)}var it=v(function(la,Sn,Tn){return la.substr(0,Sn)+Tn+la.substr(Sn+1)},"stringInsert");for(k=Ee.length-1;k>=0;k--)c=it(c,Ee[k],` +`);A.wrappedText=c,d=c.length,X=[],J=null}var lt=0;for(k=0;kte&&(te=j),jb&&(S=b),R>w&&(R=w);var Ge=b+H.xAdvance,Je=w+g;Lte&&(te=j),j0)for(var Ut=0;Ut{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(21859),T=P(function(d,c,A,h,f,S,O){var L=d.sys.textures.get(A),p=L.get(h),N=d.sys.cache.xml.get(f);if(p&&N){var g=u(N,p,S,O,L);return d.sys.cache.bitmapFont.add(c,{data:g,texture:A,frame:h,fromAtlas:!0}),!0}else return!1},"ParseFromAtlas");o.exports=T},6925:(o,m,s)=>{/** + */var u=s(21859),T=v(function(A,c,d,h,f,S,R){var L=A.sys.textures.get(d),p=L.get(h),N=A.sys.cache.xml.get(f);if(p&&N){var g=u(N,p,S,R,L);return A.sys.cache.bitmapFont.add(c,{data:g,texture:d,frame:h,fromAtlas:!0}),!0}else return!1},"ParseFromAtlas");o.exports=T},6925:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(35154),T=P(function(d,c){var A=c.width,h=c.height,f=Math.floor(A/2),S=Math.floor(h/2),O=u(c,"chars","");if(O!==""){var L=u(c,"image",""),p=d.sys.textures.getFrame(L),N=p.cutX,g=p.cutY,C=p.source.width,v=p.source.height,M=u(c,"offset.x",0),D=u(c,"offset.y",0),G=u(c,"spacing.x",0),H=u(c,"spacing.y",0),B=u(c,"lineSpacing",0),_=u(c,"charsPerRow",null);_===null&&(_=C/A,_>O.length&&(_=O.length));for(var w=M,b=D,F={retroFont:!0,font:L,size:A,lineHeight:h+B,chars:{}},k=0,V=0;V{/** + */var u=s(35154),T=v(function(A,c){var d=c.width,h=c.height,f=Math.floor(d/2),S=Math.floor(h/2),R=u(c,"chars","");if(R!==""){var L=u(c,"image",""),p=A.sys.textures.getFrame(L),N=p.cutX,g=p.cutY,C=p.source.width,P=p.source.height,M=u(c,"offset.x",0),D=u(c,"offset.y",0),G=u(c,"spacing.x",0),H=u(c,"spacing.y",0),B=u(c,"lineSpacing",0),b=u(c,"charsPerRow",null);b===null&&(b=C/d,b>R.length&&(b=R.length));for(var w=M,_=D,F={retroFont:!0,font:L,size:d,lineHeight:h+B,chars:{}},x=0,V=0;V{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */function m(u,T){return parseInt(u.getAttribute(T),10)}P(m,"getValue");var s=P(function(u,T,d,c,A){d===void 0&&(d=0),c===void 0&&(c=0);var h=T.cutX,f=T.cutY,S=T.source.width,O=T.source.height,L=T.sourceIndex,p={},N=u.getElementsByTagName("info")[0],g=u.getElementsByTagName("common")[0];p.font=N.getAttribute("face"),p.size=m(N,"size"),p.lineHeight=m(g,"lineHeight")+c,p.chars={};var C=u.getElementsByTagName("char"),v=T!==void 0&&T.trimmed;if(v)var M=T.height,D=T.width;for(var G=0;G{/** + */function O(u,T){return parseInt(u.getAttribute(T),10)}v(O,"getValue");var s=v(function(u,T,A,c,d){A===void 0&&(A=0),c===void 0&&(c=0);var h=T.cutX,f=T.cutY,S=T.source.width,R=T.source.height,L=T.sourceIndex,p={},N=u.getElementsByTagName("info")[0],g=u.getElementsByTagName("common")[0];p.font=N.getAttribute("face"),p.size=O(N,"size"),p.lineHeight=O(g,"lineHeight")+c,p.chars={};var C=u.getElementsByTagName("char"),P=T!==void 0&&T.trimmed;if(P)var M=T.height,D=T.width;for(var G=0;G{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(87662),T=s(79291),d={Parse:s(6925)};d=T(!1,d,u),o.exports=d},87662:o=>{/** + */var u=s(87662),T=s(79291),A={Parse:s(6925)};A=T(!1,A,u),o.exports=A},87662:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={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`};o.exports=m},2638:(o,m,s)=>{/** + */var O={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`};o.exports=O},2638:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(22186),T=s(83419),d=s(12310),c=new T({Extends:u,Mixins:[d],initialize:P(function(h,f,S,O,L,p,N){u.call(this,h,f,S,O,L,p,N),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}},"DynamicBitmapText"),setSize:function(A,h){return this.cropWidth=A,this.cropHeight=h,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}});o.exports=c},86741:(o,m,s)=>{/** + */var u=s(22186),T=s(83419),A=s(12310),c=new T({Extends:u,Mixins:[A],initialize:v(function(h,f,S,R,L,p,N){u.call(this,h,f,S,R,L,p,N),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}},"DynamicBitmapText"),setSize:function(d,h){return this.cropWidth=d,this.cropHeight=h,this},setDisplayCallback:function(d){return this.displayCallback=d,this},setScrollX:function(d){return this.scrollX=d,this},setScrollY:function(d){return this.scrollY=d,this}});o.exports=c},86741:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(20926),T=P(function(d,c,A,h){var f=c._text,S=f.length,O=d.currentContext;if(!(S===0||!u(d,O,c,A,h))){A.addToRenderList(c);var L=c.fromAtlas?c.frame:c.texture.frames.__BASE,p=c.displayCallback,N=c.callbackData,g=c.fontData.chars,C=c.fontData.lineHeight,v=c._letterSpacing,M=0,D=0,G=0,H=null,B=0,_=0,w=0,b=0,F=0,k=0,V=null,Z=0,$=c.frame.source.image,Q=L.cutX,te=L.cutY,z=0,j=0,x=c._fontSize/c.fontData.size,X=c._align,q=0,J=0;c.getTextBounds(!1);var ae=c._bounds.lines;X===1?J=(ae.longest-ae.lengths[0])/2:X===2&&(J=ae.longest-ae.lengths[0]),O.translate(-c.displayOriginX,-c.displayOriginY);var re=A.roundPixels;c.cropWidth>0&&c.cropHeight>0&&(O.beginPath(),O.rect(0,0,c.cropWidth,c.cropHeight),O.clip());for(var oe=0;oe{/** + */var u=s(20926),T=v(function(A,c,d,h){var f=c._text,S=f.length,R=A.currentContext;if(!(S===0||!u(A,R,c,d,h))){d.addToRenderList(c);var L=c.fromAtlas?c.frame:c.texture.frames.__BASE,p=c.displayCallback,N=c.callbackData,g=c.fontData.chars,C=c.fontData.lineHeight,P=c._letterSpacing,M=0,D=0,G=0,H=null,B=0,b=0,w=0,_=0,F=0,x=0,V=null,Z=0,$=c.frame.source.image,Q=L.cutX,te=L.cutY,z=0,j=0,k=c._fontSize/c.fontData.size,X=c._align,q=0,J=0;c.getTextBounds(!1);var ne=c._bounds.lines;X===1?J=(ne.longest-ne.lengths[0])/2:X===2&&(J=ne.longest-ne.lengths[0]),R.translate(-c.displayOriginX,-c.displayOriginY);var re=d.roundPixels;c.cropWidth>0&&c.cropHeight>0&&(R.beginPath(),R.rect(0,0,c.cropWidth,c.cropHeight),R.clip());for(var oe=0;oe{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2638),T=s(25305),d=s(44603),c=s(23568);d.register("dynamicBitmapText",function(A,h){A===void 0&&(A={});var f=c(A,"font",""),S=c(A,"text",""),O=c(A,"size",!1),L=new u(this.scene,0,0,f,S,O);return h!==void 0&&(A.add=h),T(this.scene,L,A),L})},72566:(o,m,s)=>{/** + */var u=s(2638),T=s(25305),A=s(44603),c=s(23568);A.register("dynamicBitmapText",function(d,h){d===void 0&&(d={});var f=c(d,"font",""),S=c(d,"text",""),R=c(d,"size",!1),L=new u(this.scene,0,0,f,S,R);return h!==void 0&&(d.add=h),T(this.scene,L,d),L})},72566:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2638),T=s(39429);T.register("dynamicBitmapText",function(d,c,A,h,f){return this.displayList.add(new u(this.scene,d,c,A,h,f))})},12310:(o,m,s)=>{/** + */var u=s(2638),T=s(39429);T.register("dynamicBitmapText",function(A,c,d,h,f){return this.displayList.add(new u(this.scene,A,c,d,h,f))})},12310:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(73482),d=s(86741),o.exports={renderWebGL:T,renderCanvas:d}},73482:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(73482),A=s(86741),o.exports={renderWebGL:T,renderCanvas:A}},73482:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91296),T=s(61340),d=s(70554),c=new T,A=P(function(h,f,S,O){var L=f.text,p=L.length;if(p!==0){S.addToRenderList(f);var N=h.pipelines.set(f.pipeline,f),g=u(f,S,O);h.pipelines.preBatch(f);var C=g.sprite,v=g.calc,M=c,D=f.cropWidth>0||f.cropHeight>0;D&&(N.flush(),h.pushScissor(v.tx,v.ty,f.cropWidth*v.scaleX,f.cropHeight*v.scaleY));var G=f.frame,H=G.glTexture,B=f.tintFill,_=d.getTintAppendFloatAlpha(f.tintTopLeft,S.alpha*f._alphaTL),w=d.getTintAppendFloatAlpha(f.tintTopRight,S.alpha*f._alphaTR),b=d.getTintAppendFloatAlpha(f.tintBottomLeft,S.alpha*f._alphaBL),F=d.getTintAppendFloatAlpha(f.tintBottomRight,S.alpha*f._alphaBR),k=N.setGameObject(f),V=0,Z=0,$=0,Q=0,te=f.letterSpacing,z,j=0,x=0,X,q=f.scrollX,J=f.scrollY,ae=f.fontData,re=ae.chars,oe=ae.lineHeight,Ee=f.fontSize/ae.size,Re=0,Le=f._align,ve=0,ye=0,De=f.getTextBounds(!1);f.maxWidth>0&&(L=De.wrappedText,p=L.length);var ke=f._bounds.lines;Le===1?ye=(ke.longest-ke.lengths[0])/2:Le===2&&(ye=ke.longest-ke.lengths[0]);for(var it=S.roundPixels,lt=f.displayCallback,at=f.callbackData,Ge=0;Ge{/** + */var u=s(91296),T=s(61340),A=s(70554),c=new T,d=v(function(h,f,S,R){var L=f.text,p=L.length;if(p!==0){S.addToRenderList(f);var N=h.pipelines.set(f.pipeline,f),g=u(f,S,R);h.pipelines.preBatch(f);var C=g.sprite,P=g.calc,M=c,D=f.cropWidth>0||f.cropHeight>0;D&&(N.flush(),h.pushScissor(P.tx,P.ty,f.cropWidth*P.scaleX,f.cropHeight*P.scaleY));var G=f.frame,H=G.glTexture,B=f.tintFill,b=A.getTintAppendFloatAlpha(f.tintTopLeft,S.alpha*f._alphaTL),w=A.getTintAppendFloatAlpha(f.tintTopRight,S.alpha*f._alphaTR),_=A.getTintAppendFloatAlpha(f.tintBottomLeft,S.alpha*f._alphaBL),F=A.getTintAppendFloatAlpha(f.tintBottomRight,S.alpha*f._alphaBR),x=N.setGameObject(f),V=0,Z=0,$=0,Q=0,te=f.letterSpacing,z,j=0,k=0,X,q=f.scrollX,J=f.scrollY,ne=f.fontData,re=ne.chars,oe=ne.lineHeight,Ee=f.fontSize/ne.size,me=0,Le=f._align,Pe=0,ye=0,De=f.getTextBounds(!1);f.maxWidth>0&&(L=De.wrappedText,p=L.length);var xe=f._bounds.lines;Le===1?ye=(xe.longest-xe.lengths[0])/2:Le===2&&(ye=xe.longest-xe.lengths[0]);for(var it=S.roundPixels,lt=f.displayCallback,at=f.callbackData,Ge=0;Ge{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(45319),d=s(31401),c=s(95643),A=s(53048),h=s(61327),f=s(21859),S=s(87841),O=s(18658),L=new u({Extends:c,Mixins:[d.Alpha,d.BlendMode,d.Depth,d.GetBounds,d.Mask,d.Origin,d.Pipeline,d.PostPipeline,d.ScrollFactor,d.Texture,d.Tint,d.Transform,d.Visible,O],initialize:P(function(N,g,C,v,M,D,G){M===void 0&&(M=""),G===void 0&&(G=0),c.call(this,N,"BitmapText"),this.font=v;var H=this.scene.sys.cache.bitmapFont.get(v);H||console.warn("Invalid BitmapText key: "+v),this.fontData=H.data,this._text="",this._fontSize=D||this.fontData.size,this._letterSpacing=0,this._lineSpacing=0,this._align=G,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=H.fromAtlas,this.setTexture(H.texture,H.frame),this.setPosition(g,C),this.setOrigin(0,0),this.initPipeline(),this.initPostPipeline(),this.setText(M)},"BitmapText"),setLeftAlign:function(){return this._align=L.ALIGN_LEFT,this._dirty=!0,this},setCenterAlign:function(){return this._align=L.ALIGN_CENTER,this._dirty=!0,this},setRightAlign:function(){return this._align=L.ALIGN_RIGHT,this._dirty=!0,this},setFontSize:function(p){return this._fontSize=p,this._dirty=!0,this},setLetterSpacing:function(p){return p===void 0&&(p=0),this._letterSpacing=p,this._dirty=!0,this},setLineSpacing:function(p){return p===void 0&&(p=0),this.lineSpacing=p,this},setText:function(p){return!p&&p!==0&&(p=""),Array.isArray(p)&&(p=p.join(` -`)),p!==this.text&&(this._text=p.toString(),this._dirty=!0,this.updateDisplayOrigin()),this},setDropShadow:function(p,N,g,C){return p===void 0&&(p=0),N===void 0&&(N=0),g===void 0&&(g=0),C===void 0&&(C=.5),this.dropShadowX=p,this.dropShadowY=N,this.dropShadowColor=g,this.dropShadowAlpha=C,this},setCharacterTint:function(p,N,g,C,v,M,D){p===void 0&&(p=0),N===void 0&&(N=1),g===void 0&&(g=!1),C===void 0&&(C=-1),v===void 0&&(v=C,M=C,D=C);var G=this.text.length;N===-1&&(N=G),p<0&&(p=G+p),p=T(p,0,G-1);for(var H=T(p+N,p,G),B=this.charColors,_=p;_{/** + */var u=s(83419),T=s(45319),A=s(31401),c=s(95643),d=s(53048),h=s(61327),f=s(21859),S=s(87841),R=s(18658),L=new u({Extends:c,Mixins:[A.Alpha,A.BlendMode,A.Depth,A.GetBounds,A.Mask,A.Origin,A.Pipeline,A.PostPipeline,A.ScrollFactor,A.Texture,A.Tint,A.Transform,A.Visible,R],initialize:v(function(N,g,C,P,M,D,G){M===void 0&&(M=""),G===void 0&&(G=0),c.call(this,N,"BitmapText"),this.font=P;var H=this.scene.sys.cache.bitmapFont.get(P);H||console.warn("Invalid BitmapText key: "+P),this.fontData=H.data,this._text="",this._fontSize=D||this.fontData.size,this._letterSpacing=0,this._lineSpacing=0,this._align=G,this._bounds=d(),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=H.fromAtlas,this.setTexture(H.texture,H.frame),this.setPosition(g,C),this.setOrigin(0,0),this.initPipeline(),this.initPostPipeline(),this.setText(M)},"BitmapText"),setLeftAlign:function(){return this._align=L.ALIGN_LEFT,this._dirty=!0,this},setCenterAlign:function(){return this._align=L.ALIGN_CENTER,this._dirty=!0,this},setRightAlign:function(){return this._align=L.ALIGN_RIGHT,this._dirty=!0,this},setFontSize:function(p){return this._fontSize=p,this._dirty=!0,this},setLetterSpacing:function(p){return p===void 0&&(p=0),this._letterSpacing=p,this._dirty=!0,this},setLineSpacing:function(p){return p===void 0&&(p=0),this.lineSpacing=p,this},setText:function(p){return!p&&p!==0&&(p=""),Array.isArray(p)&&(p=p.join(` +`)),p!==this.text&&(this._text=p.toString(),this._dirty=!0,this.updateDisplayOrigin()),this},setDropShadow:function(p,N,g,C){return p===void 0&&(p=0),N===void 0&&(N=0),g===void 0&&(g=0),C===void 0&&(C=.5),this.dropShadowX=p,this.dropShadowY=N,this.dropShadowColor=g,this.dropShadowAlpha=C,this},setCharacterTint:function(p,N,g,C,P,M,D){p===void 0&&(p=0),N===void 0&&(N=1),g===void 0&&(g=!1),C===void 0&&(C=-1),P===void 0&&(P=C,M=C,D=C);var G=this.text.length;N===-1&&(N=G),p<0&&(p=G+p),p=T(p,0,G-1);for(var H=T(p+N,p,G),B=this.charColors,b=p;b{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(20926),T=P(function(d,c,A,h){var f=c._text,S=f.length,O=d.currentContext;if(!(S===0||!u(d,O,c,A,h))){A.addToRenderList(c);var L=c.fromAtlas?c.frame:c.texture.frames.__BASE,p=c.fontData.chars,N=c.fontData.lineHeight,g=c._letterSpacing,C=c._lineSpacing,v=0,M=0,D=0,G=null,H=0,B=0,_=0,w=0,b=0,F=0,k=null,V=0,Z=L.source.image,$=L.cutX,Q=L.cutY,te=c._fontSize/c.fontData.size,z=c._align,j=0,x=0,X=c.getTextBounds(!1);c.maxWidth>0&&(f=X.wrappedText,S=f.length);var q=c._bounds.lines;z===1?x=(q.longest-q.lengths[0])/2:z===2&&(x=q.longest-q.lengths[0]),O.translate(-c.displayOriginX,-c.displayOriginY);for(var J=A.roundPixels,ae=0;ae{/** + */var u=s(20926),T=v(function(A,c,d,h){var f=c._text,S=f.length,R=A.currentContext;if(!(S===0||!u(A,R,c,d,h))){d.addToRenderList(c);var L=c.fromAtlas?c.frame:c.texture.frames.__BASE,p=c.fontData.chars,N=c.fontData.lineHeight,g=c._letterSpacing,C=c._lineSpacing,P=0,M=0,D=0,G=null,H=0,B=0,b=0,w=0,_=0,F=0,x=null,V=0,Z=L.source.image,$=L.cutX,Q=L.cutY,te=c._fontSize/c.fontData.size,z=c._align,j=0,k=0,X=c.getTextBounds(!1);c.maxWidth>0&&(f=X.wrappedText,S=f.length);var q=c._bounds.lines;z===1?k=(q.longest-q.lengths[0])/2:z===2&&(k=q.longest-q.lengths[0]),R.translate(-c.displayOriginX,-c.displayOriginY);for(var J=d.roundPixels,ne=0;ne{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(22186),T=s(25305),d=s(44603),c=s(23568),A=s(35154);d.register("bitmapText",function(h,f){h===void 0&&(h={});var S=A(h,"font",""),O=c(h,"text",""),L=c(h,"size",!1),p=A(h,"align",0),N=new u(this.scene,0,0,S,O,L,p);return f!==void 0&&(h.add=f),T(this.scene,N,h),N})},34914:(o,m,s)=>{/** + */var u=s(22186),T=s(25305),A=s(44603),c=s(23568),d=s(35154);A.register("bitmapText",function(h,f){h===void 0&&(h={});var S=d(h,"font",""),R=c(h,"text",""),L=c(h,"size",!1),p=d(h,"align",0),N=new u(this.scene,0,0,S,R,L,p);return f!==void 0&&(h.add=f),T(this.scene,N,h),N})},34914:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(22186),T=s(39429);T.register("bitmapText",function(d,c,A,h,f,S){return this.displayList.add(new u(this.scene,d,c,A,h,f,S))})},18658:(o,m,s)=>{/** + */var u=s(22186),T=s(39429);T.register("bitmapText",function(A,c,d,h,f,S){return this.displayList.add(new u(this.scene,A,c,d,h,f,S))})},18658:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(33590),d=s(37289),o.exports={renderWebGL:T,renderCanvas:d}},33590:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(33590),A=s(37289),o.exports={renderWebGL:T,renderCanvas:A}},33590:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(3217),T=s(91296),d=s(70554),c=P(function(A,h,f,S){var O=h._text,L=O.length;if(L!==0){f.addToRenderList(h);var p=A.pipelines.set(h.pipeline,h),N=T(h,f,S).calc;A.pipelines.preBatch(h);var g=f.roundPixels,C=f.alpha,v=h.charColors,M=h.tintFill,D=d.getTintAppendFloatAlpha,G=D(h.tintTopLeft,C*h._alphaTL),H=D(h.tintTopRight,C*h._alphaTR),B=D(h.tintBottomLeft,C*h._alphaBL),_=D(h.tintBottomRight,C*h._alphaBR),w=h.frame.glTexture,b=p.setGameObject(h),F=h.getTextBounds(!1),k,V,Z,$=F.characters,Q=h.dropShadowX,te=h.dropShadowY,z=Q!==0||te!==0;if(z){var j=h.dropShadowColor,x=h.dropShadowAlpha,X=D(j,C*x*h._alphaTL),q=D(j,C*x*h._alphaTR),J=D(j,C*x*h._alphaBL),ae=D(j,C*x*h._alphaBR);for(k=0;k<$.length;k++)V=$[k],Z=V.glyph,!(V.code===32||Z.width===0||Z.height===0)&&u(p,h,V,Z,Q,te,N,g,X,q,J,ae,1,w,b)}for(k=0;k<$.length;k++)if(V=$[k],Z=V.glyph,!(V.code===32||Z.width===0||Z.height===0))if(p.shouldFlush(6)&&(p.flush(),b=p.setGameObject(h)),v[V.i]){var re=v[V.i],oe=re.tintEffect,Ee=D(re.tintTL,C*h._alphaTL),Re=D(re.tintTR,C*h._alphaTR),Le=D(re.tintBL,C*h._alphaBL),ve=D(re.tintBR,C*h._alphaBR);u(p,h,V,Z,0,0,N,g,Ee,Re,Le,ve,oe,w,b)}else u(p,h,V,Z,0,0,N,g,G,H,B,_,M,w,b);A.pipelines.postBatch(h)}},"BitmapTextWebGLRenderer");o.exports=c},6107:(o,m,s)=>{/** + */var u=s(3217),T=s(91296),A=s(70554),c=v(function(d,h,f,S){var R=h._text,L=R.length;if(L!==0){f.addToRenderList(h);var p=d.pipelines.set(h.pipeline,h),N=T(h,f,S).calc;d.pipelines.preBatch(h);var g=f.roundPixels,C=f.alpha,P=h.charColors,M=h.tintFill,D=A.getTintAppendFloatAlpha,G=D(h.tintTopLeft,C*h._alphaTL),H=D(h.tintTopRight,C*h._alphaTR),B=D(h.tintBottomLeft,C*h._alphaBL),b=D(h.tintBottomRight,C*h._alphaBR),w=h.frame.glTexture,_=p.setGameObject(h),F=h.getTextBounds(!1),x,V,Z,$=F.characters,Q=h.dropShadowX,te=h.dropShadowY,z=Q!==0||te!==0;if(z){var j=h.dropShadowColor,k=h.dropShadowAlpha,X=D(j,C*k*h._alphaTL),q=D(j,C*k*h._alphaTR),J=D(j,C*k*h._alphaBL),ne=D(j,C*k*h._alphaBR);for(x=0;x<$.length;x++)V=$[x],Z=V.glyph,!(V.code===32||Z.width===0||Z.height===0)&&u(p,h,V,Z,Q,te,N,g,X,q,J,ne,1,w,_)}for(x=0;x<$.length;x++)if(V=$[x],Z=V.glyph,!(V.code===32||Z.width===0||Z.height===0))if(p.shouldFlush(6)&&(p.flush(),_=p.setGameObject(h)),P[V.i]){var re=P[V.i],oe=re.tintEffect,Ee=D(re.tintTL,C*h._alphaTL),me=D(re.tintTR,C*h._alphaTR),Le=D(re.tintBL,C*h._alphaBL),Pe=D(re.tintBR,C*h._alphaBR);u(p,h,V,Z,0,0,N,g,Ee,me,Le,Pe,oe,w,_)}else u(p,h,V,Z,0,0,N,g,G,H,B,b,M,w,_);d.pipelines.postBatch(h)}},"BitmapTextWebGLRenderer");o.exports=c},6107:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(48011),T=s(46590),d=s(83419),c=s(31401),A=s(4327),h=s(95643),f=s(73162),S=new d({Extends:h,Mixins:[c.Alpha,c.BlendMode,c.Depth,c.Mask,c.Pipeline,c.PostPipeline,c.ScrollFactor,c.Size,c.Texture,c.Transform,c.Visible,u],initialize:P(function(L,p,N,g,C){h.call(this,L,"Blitter"),this.setTexture(g,C),this.setPosition(p,N),this.initPipeline(),this.initPostPipeline(),this.children=new f,this.renderList=[],this.dirty=!1},"Blitter"),create:function(O,L,p,N,g){N===void 0&&(N=!0),g===void 0&&(g=this.children.length),p===void 0?p=this.frame:p instanceof A||(p=this.texture.get(p));var C=new T(this,O,L,p,N);return this.children.addAt(C,g,!1),this.dirty=!0,C},createFromCallback:function(O,L,p,N){for(var g=this.createMultiple(L,p,N),C=0;C0},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=[]}});o.exports=S},72396:o=>{/** + */var u=s(48011),T=s(46590),A=s(83419),c=s(31401),d=s(4327),h=s(95643),f=s(73162),S=new A({Extends:h,Mixins:[c.Alpha,c.BlendMode,c.Depth,c.Mask,c.Pipeline,c.PostPipeline,c.ScrollFactor,c.Size,c.Texture,c.Transform,c.Visible,u],initialize:v(function(L,p,N,g,C){h.call(this,L,"Blitter"),this.setTexture(g,C),this.setPosition(p,N),this.initPipeline(),this.initPostPipeline(),this.children=new f,this.renderList=[],this.dirty=!1},"Blitter"),create:function(R,L,p,N,g){N===void 0&&(N=!0),g===void 0&&(g=this.children.length),p===void 0?p=this.frame:p instanceof d||(p=this.texture.get(p));var C=new T(this,R,L,p,N);return this.children.addAt(C,g,!1),this.dirty=!0,C},createFromCallback:function(R,L,p,N){for(var g=this.createMultiple(L,p,N),C=0;C0},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=[]}});o.exports=S},72396:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){var c=u.getRenderList();if(c.length!==0){var A=s.currentContext,h=T.alpha*u.alpha;if(h!==0){T.addToRenderList(u),A.globalCompositeOperation=s.blendModes[u.blendMode],A.imageSmoothingEnabled=!u.frame.source.scaleMode;var f=u.x-T.scrollX*u.scrollFactorX,S=u.y-T.scrollY*u.scrollFactorY;A.save(),d&&d.copyToContext(A);for(var O=T.roundPixels,L=0;L0&&C.height>0&&(A.save(),A.translate(p.x+f,p.y+S),A.scale(D,G),A.drawImage(g.source.image,C.x,C.y,C.width,C.height,v,M,C.width,C.height),A.restore())):(O&&(v=Math.round(v),M=Math.round(M)),C.width>0&&C.height>0&&A.drawImage(g.source.image,C.x,C.y,C.width,C.height,v+p.x+f,M+p.y+S,C.width,C.height)))}A.restore()}}},"BlitterCanvasRenderer");o.exports=m},9403:(o,m,s)=>{/** + */var O=v(function(s,u,T,A){var c=u.getRenderList();if(c.length!==0){var d=s.currentContext,h=T.alpha*u.alpha;if(h!==0){T.addToRenderList(u),d.globalCompositeOperation=s.blendModes[u.blendMode],d.imageSmoothingEnabled=!u.frame.source.scaleMode;var f=u.x-T.scrollX*u.scrollFactorX,S=u.y-T.scrollY*u.scrollFactorY;d.save(),A&&A.copyToContext(d);for(var R=T.roundPixels,L=0;L0&&C.height>0&&(d.save(),d.translate(p.x+f,p.y+S),d.scale(D,G),d.drawImage(g.source.image,C.x,C.y,C.width,C.height,P,M,C.width,C.height),d.restore())):(R&&(P=Math.round(P),M=Math.round(M)),C.width>0&&C.height>0&&d.drawImage(g.source.image,C.x,C.y,C.width,C.height,P+p.x+f,M+p.y+S,C.width,C.height)))}d.restore()}}},"BlitterCanvasRenderer");o.exports=O},9403:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(6107),T=s(25305),d=s(44603),c=s(23568);d.register("blitter",function(A,h){A===void 0&&(A={});var f=c(A,"key",null),S=c(A,"frame",null),O=new u(this.scene,0,0,f,S);return h!==void 0&&(A.add=h),T(this.scene,O,A),O})},12709:(o,m,s)=>{/** + */var u=s(6107),T=s(25305),A=s(44603),c=s(23568);A.register("blitter",function(d,h){d===void 0&&(d={});var f=c(d,"key",null),S=c(d,"frame",null),R=new u(this.scene,0,0,f,S);return h!==void 0&&(d.add=h),T(this.scene,R,d),R})},12709:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(6107),T=s(39429);T.register("blitter",function(d,c,A,h){return this.displayList.add(new u(this.scene,d,c,A,h))})},48011:(o,m,s)=>{/** + */var u=s(6107),T=s(39429);T.register("blitter",function(A,c,d,h){return this.displayList.add(new u(this.scene,A,c,d,h))})},48011:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(99485),d=s(72396),o.exports={renderWebGL:T,renderCanvas:d}},99485:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(99485),A=s(72396),o.exports={renderWebGL:T,renderCanvas:A}},99485:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(61340),T=s(70554),d=new u,c=P(function(A,h,f,S){var O=h.getRenderList(),L=f.alpha*h.alpha;if(!(O.length===0||L===0)){f.addToRenderList(h);var p=A.pipelines.set(this.pipeline,h),N=f.scrollX*h.scrollFactorX,g=f.scrollY*h.scrollFactorY,C=d.copyFrom(f.matrix);S&&(C.multiplyWithOffset(S,-N,-g),N=0,g=0);var v=h.x-N,M=h.y-g,D=-1,G=!1;A.pipelines.preBatch(h);for(var H=0;H{/** + */var u=s(61340),T=s(70554),A=new u,c=v(function(d,h,f,S){var R=h.getRenderList(),L=f.alpha*h.alpha;if(!(R.length===0||L===0)){f.addToRenderList(h);var p=d.pipelines.set(this.pipeline,h),N=f.scrollX*h.scrollFactorX,g=f.scrollY*h.scrollFactorY,C=A.copyFrom(f.matrix);S&&(C.multiplyWithOffset(S,-N,-g),N=0,g=0);var P=h.x-N,M=h.y-g,D=-1,G=!1;d.pipelines.preBatch(h);for(var H=0;H{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(4327),d=new u({initialize:P(function(A,h,f,S,O){this.parent=A,this.x=h,this.y=f,this.frame=S,this.data={},this.tint=16777215,this._visible=O,this._alpha=1,this.flipX=!1,this.flipY=!1,this.hasTransformComponent=!0},"Bob"),setFrame:function(c){return c===void 0?this.frame=this.parent.frame:c instanceof T&&c.texture===this.parent.texture?this.frame=c:this.frame=this.parent.texture.get(c),this},resetFlip:function(){return this.flipX=!1,this.flipY=!1,this},reset:function(c,A,h){return this.x=c,this.y=A,this.flipX=!1,this.flipY=!1,this._alpha=1,this._visible=!0,this.parent.dirty=!0,h&&this.setFrame(h),this},setPosition:function(c,A){return this.x=c,this.y=A,this},setFlipX:function(c){return this.flipX=c,this},setFlipY:function(c){return this.flipY=c,this},setFlip:function(c,A){return this.flipX=c,this.flipY=A,this},setVisible:function(c){return this.visible=c,this},setAlpha:function(c){return this.alpha=c,this},setTint:function(c){return this.tint=c,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(c){this.parent.dirty|=this._visible!==c,this._visible=c}},alpha:{get:function(){return this._alpha},set:function(c){this.parent.dirty|=this._alpha>0!=c>0,this._alpha=c}}});o.exports=d},16005:(o,m,s)=>{/** + */var u=s(83419),T=s(4327),A=new u({initialize:v(function(d,h,f,S,R){this.parent=d,this.x=h,this.y=f,this.frame=S,this.data={},this.tint=16777215,this._visible=R,this._alpha=1,this.flipX=!1,this.flipY=!1,this.hasTransformComponent=!0},"Bob"),setFrame:function(c){return c===void 0?this.frame=this.parent.frame:c instanceof T&&c.texture===this.parent.texture?this.frame=c:this.frame=this.parent.texture.get(c),this},resetFlip:function(){return this.flipX=!1,this.flipY=!1,this},reset:function(c,d,h){return this.x=c,this.y=d,this.flipX=!1,this.flipY=!1,this._alpha=1,this._visible=!0,this.parent.dirty=!0,h&&this.setFrame(h),this},setPosition:function(c,d){return this.x=c,this.y=d,this},setFlipX:function(c){return this.flipX=c,this},setFlipY:function(c){return this.flipY=c,this},setFlip:function(c,d){return this.flipX=c,this.flipY=d,this},setVisible:function(c){return this.visible=c,this},setAlpha:function(c){return this.alpha=c,this},setTint:function(c){return this.tint=c,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(c){this.parent.dirty|=this._visible!==c,this._visible=c}},alpha:{get:function(){return this._alpha},set:function(c){this.parent.dirty|=this._alpha>0!=c>0,this._alpha=c}}});o.exports=A},16005:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(45319),T=2,d={_alpha:1,_alphaTL:1,_alphaTR:1,_alphaBL:1,_alphaBR:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(c,A,h,f){return c===void 0&&(c=1),A===void 0?this.alpha=c:(this._alphaTL=u(c,0,1),this._alphaTR=u(A,0,1),this._alphaBL=u(h,0,1),this._alphaBR=u(f,0,1)),this},alpha:{get:function(){return this._alpha},set:function(c){var A=u(c,0,1);this._alpha=A,this._alphaTL=A,this._alphaTR=A,this._alphaBL=A,this._alphaBR=A,A===0?this.renderFlags&=~T:this.renderFlags|=T}},alphaTopLeft:{get:function(){return this._alphaTL},set:function(c){var A=u(c,0,1);this._alphaTL=A,A!==0&&(this.renderFlags|=T)}},alphaTopRight:{get:function(){return this._alphaTR},set:function(c){var A=u(c,0,1);this._alphaTR=A,A!==0&&(this.renderFlags|=T)}},alphaBottomLeft:{get:function(){return this._alphaBL},set:function(c){var A=u(c,0,1);this._alphaBL=A,A!==0&&(this.renderFlags|=T)}},alphaBottomRight:{get:function(){return this._alphaBR},set:function(c){var A=u(c,0,1);this._alphaBR=A,A!==0&&(this.renderFlags|=T)}}};o.exports=d},88509:(o,m,s)=>{/** + */var u=s(45319),T=2,A={_alpha:1,_alphaTL:1,_alphaTR:1,_alphaBL:1,_alphaBR:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(c,d,h,f){return c===void 0&&(c=1),d===void 0?this.alpha=c:(this._alphaTL=u(c,0,1),this._alphaTR=u(d,0,1),this._alphaBL=u(h,0,1),this._alphaBR=u(f,0,1)),this},alpha:{get:function(){return this._alpha},set:function(c){var d=u(c,0,1);this._alpha=d,this._alphaTL=d,this._alphaTR=d,this._alphaBL=d,this._alphaBR=d,d===0?this.renderFlags&=~T:this.renderFlags|=T}},alphaTopLeft:{get:function(){return this._alphaTL},set:function(c){var d=u(c,0,1);this._alphaTL=d,d!==0&&(this.renderFlags|=T)}},alphaTopRight:{get:function(){return this._alphaTR},set:function(c){var d=u(c,0,1);this._alphaTR=d,d!==0&&(this.renderFlags|=T)}},alphaBottomLeft:{get:function(){return this._alphaBL},set:function(c){var d=u(c,0,1);this._alphaBL=d,d!==0&&(this.renderFlags|=T)}},alphaBottomRight:{get:function(){return this._alphaBR},set:function(c){var d=u(c,0,1);this._alphaBR=d,d!==0&&(this.renderFlags|=T)}}};o.exports=A},88509:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(45319),T=2,d={_alpha:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(c){return c===void 0&&(c=1),this.alpha=c,this},alpha:{get:function(){return this._alpha},set:function(c){var A=u(c,0,1);this._alpha=A,A===0?this.renderFlags&=~T:this.renderFlags|=T}}};o.exports=d},90065:(o,m,s)=>{/** + */var u=s(45319),T=2,A={_alpha:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(c){return c===void 0&&(c=1),this.alpha=c,this},alpha:{get:function(){return this._alpha},set:function(c){var d=u(c,0,1);this._alpha=d,d===0?this.renderFlags&=~T:this.renderFlags|=T}}};o.exports=A},90065:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(10312),T={_blendMode:u.NORMAL,blendMode:{get:function(){return this._blendMode},set:function(d){typeof d=="string"&&(d=u[d]),d|=0,d>=-1&&(this._blendMode=d)}},setBlendMode:function(d){return this.blendMode=d,this}};o.exports=T},94215:o=>{/** + */var u=s(10312),T={_blendMode:u.NORMAL,blendMode:{get:function(){return this._blendMode},set:function(A){typeof A=="string"&&(A=u[A]),A|=0,A>=-1&&(this._blendMode=A)}},setBlendMode:function(A){return this.blendMode=A,this}};o.exports=T},94215:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={width:0,height:0,displayWidth:{get:function(){return this.scaleX*this.width},set:function(s){this.scaleX=s/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(s){this.scaleY=s/this.height}},setSize:function(s,u){return this.width=s,this.height=u,this},setDisplaySize:function(s,u){return this.displayWidth=s,this.displayHeight=u,this}};o.exports=m},61683:o=>{/** + */var O={width:0,height:0,displayWidth:{get:function(){return this.scaleX*this.width},set:function(s){this.scaleX=s/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(s){this.scaleY=s/this.height}},setSize:function(s,u){return this.width=s,this.height=u,this},setDisplaySize:function(s,u){return this.displayWidth=s,this.displayHeight=u,this}};o.exports=O},61683:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={texture:null,frame:null,isCropped:!1,setCrop:function(s,u,T,d){if(s===void 0)this.isCropped=!1;else if(this.frame){if(typeof s=="number")this.frame.setCropUVs(this._crop,s,u,T,d,this.flipX,this.flipY);else{var c=s;this.frame.setCropUVs(this._crop,c.x,c.y,c.width,c.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}}};o.exports=m},89272:o=>{/** + */var O={texture:null,frame:null,isCropped:!1,setCrop:function(s,u,T,A){if(s===void 0)this.isCropped=!1;else if(this.frame){if(typeof s=="number")this.frame.setCropUVs(this._crop,s,u,T,A,this.flipX,this.flipY);else{var c=s;this.frame.setCropUVs(this._crop,c.x,c.y,c.width,c.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}}};o.exports=O},89272:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={_depth:0,depth:{get:function(){return this._depth},set:function(s){this.displayList&&this.displayList.queueDepthSort(),this._depth=s}},setDepth:function(s){return s===void 0&&(s=0),this.depth=s,this}};o.exports=m},47059:(o,m,s)=>{/** + */var O={_depth:0,depth:{get:function(){return this._depth},set:function(s){this.displayList&&this.displayList.queueDepthSort(),this._depth=s}},setDepth:function(s){return s===void 0&&(s=0),this.depth=s,this}};o.exports=O},47059:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(66064),d=s(19133),c=new u({initialize:P(function(h,f){this.gameObject=h,this.isPost=f,this.enabled=!1,this.list=[],this.padding=0},"FX"),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 h=this.gameObject.scene.sys.renderer;h&&h.pipelines?(this.gameObject.pipeline=h.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,h=0;h{/** + */var u=s(83419),T=s(66064),A=s(19133),c=new u({initialize:v(function(h,f){this.gameObject=h,this.isPost=f,this.enabled=!1,this.list=[],this.padding=0},"FX"),setPadding:function(d){return d===void 0&&(d=0),this.padding=d,this.gameObject},onFXCopy:function(){},onFX:function(){},enable:function(d){if(!this.isPost){var h=this.gameObject.scene.sys.renderer;h&&h.pipelines?(this.gameObject.pipeline=h.pipelines.FX_PIPELINE,d!==void 0&&(this.padding=d),this.enabled=!0):this.enabled=!1}},clear:function(){if(this.isPost)this.gameObject.resetPostPipeline(!0);else{for(var d=this.list,h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={flipX:!1,flipY:!1,toggleFlipX:function(){return this.flipX=!this.flipX,this},toggleFlipY:function(){return this.flipY=!this.flipY,this},setFlipX:function(s){return this.flipX=s,this},setFlipY:function(s){return this.flipY=s,this},setFlip:function(s,u){return this.flipX=s,this.flipY=u,this},resetFlip:function(){return this.flipX=!1,this.flipY=!1,this}};o.exports=m},8004:(o,m,s)=>{/** + */var O={flipX:!1,flipY:!1,toggleFlipX:function(){return this.flipX=!this.flipX,this},toggleFlipY:function(){return this.flipY=!this.flipY,this},setFlipX:function(s){return this.flipX=s,this},setFlipY:function(s){return this.flipY=s,this},setFlip:function(s,u){return this.flipX=s,this.flipY=u,this},resetFlip:function(){return this.flipX=!1,this.flipY=!1,this}};o.exports=O},8004:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(87841),T=s(11520),d=s(26099),c={prepareBoundsOutput:function(A,h){if(h===void 0&&(h=!1),this.rotation!==0&&T(A,this.x,this.y,this.rotation),h&&this.parentContainer){var f=this.parentContainer.getBoundsTransformMatrix();f.transformPoint(A.x,A.y,A)}return A},getCenter:function(A,h){return A===void 0&&(A=new d),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,h)},getTopLeft:function(A,h){return A||(A=new d),A.x=this.x-this.displayWidth*this.originX,A.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(A,h)},getTopCenter:function(A,h){return A||(A=new d),A.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,A.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(A,h)},getTopRight:function(A,h){return A||(A=new d),A.x=this.x-this.displayWidth*this.originX+this.displayWidth,A.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(A,h)},getLeftCenter:function(A,h){return A||(A=new d),A.x=this.x-this.displayWidth*this.originX,A.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(A,h)},getRightCenter:function(A,h){return A||(A=new d),A.x=this.x-this.displayWidth*this.originX+this.displayWidth,A.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(A,h)},getBottomLeft:function(A,h){return A||(A=new d),A.x=this.x-this.displayWidth*this.originX,A.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(A,h)},getBottomCenter:function(A,h){return A||(A=new d),A.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,A.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(A,h)},getBottomRight:function(A,h){return A||(A=new d),A.x=this.x-this.displayWidth*this.originX+this.displayWidth,A.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(A,h)},getBounds:function(A){A===void 0&&(A=new u);var h,f,S,O,L,p,N,g;if(this.parentContainer){var C=this.parentContainer.getBoundsTransformMatrix();this.getTopLeft(A),C.transformPoint(A.x,A.y,A),h=A.x,f=A.y,this.getTopRight(A),C.transformPoint(A.x,A.y,A),S=A.x,O=A.y,this.getBottomLeft(A),C.transformPoint(A.x,A.y,A),L=A.x,p=A.y,this.getBottomRight(A),C.transformPoint(A.x,A.y,A),N=A.x,g=A.y}else this.getTopLeft(A),h=A.x,f=A.y,this.getTopRight(A),S=A.x,O=A.y,this.getBottomLeft(A),L=A.x,p=A.y,this.getBottomRight(A),N=A.x,g=A.y;return A.x=Math.min(h,S,L,N),A.y=Math.min(f,O,p,g),A.width=Math.max(h,S,L,N)-A.x,A.height=Math.max(f,O,p,g)-A.y,A}};o.exports=c},8573:(o,m,s)=>{/** + */var u=s(87841),T=s(11520),A=s(26099),c={prepareBoundsOutput:function(d,h){if(h===void 0&&(h=!1),this.rotation!==0&&T(d,this.x,this.y,this.rotation),h&&this.parentContainer){var f=this.parentContainer.getBoundsTransformMatrix();f.transformPoint(d.x,d.y,d)}return d},getCenter:function(d,h){return d===void 0&&(d=new A),d.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,d.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(d,h)},getTopLeft:function(d,h){return d||(d=new A),d.x=this.x-this.displayWidth*this.originX,d.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(d,h)},getTopCenter:function(d,h){return d||(d=new A),d.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,d.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(d,h)},getTopRight:function(d,h){return d||(d=new A),d.x=this.x-this.displayWidth*this.originX+this.displayWidth,d.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(d,h)},getLeftCenter:function(d,h){return d||(d=new A),d.x=this.x-this.displayWidth*this.originX,d.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(d,h)},getRightCenter:function(d,h){return d||(d=new A),d.x=this.x-this.displayWidth*this.originX+this.displayWidth,d.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(d,h)},getBottomLeft:function(d,h){return d||(d=new A),d.x=this.x-this.displayWidth*this.originX,d.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(d,h)},getBottomCenter:function(d,h){return d||(d=new A),d.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,d.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(d,h)},getBottomRight:function(d,h){return d||(d=new A),d.x=this.x-this.displayWidth*this.originX+this.displayWidth,d.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(d,h)},getBounds:function(d){d===void 0&&(d=new u);var h,f,S,R,L,p,N,g;if(this.parentContainer){var C=this.parentContainer.getBoundsTransformMatrix();this.getTopLeft(d),C.transformPoint(d.x,d.y,d),h=d.x,f=d.y,this.getTopRight(d),C.transformPoint(d.x,d.y,d),S=d.x,R=d.y,this.getBottomLeft(d),C.transformPoint(d.x,d.y,d),L=d.x,p=d.y,this.getBottomRight(d),C.transformPoint(d.x,d.y,d),N=d.x,g=d.y}else this.getTopLeft(d),h=d.x,f=d.y,this.getTopRight(d),S=d.x,R=d.y,this.getBottomLeft(d),L=d.x,p=d.y,this.getBottomRight(d),N=d.x,g=d.y;return d.x=Math.min(h,S,L,N),d.y=Math.min(f,R,p,g),d.width=Math.max(h,S,L,N)-d.x,d.height=Math.max(f,R,p,g)-d.y,d}};o.exports=c},8573:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(6858),T=s(80661),d={mask:null,setMask:function(c){return this.mask=c,this},clearMask:function(c){return c===void 0&&(c=!1),c&&this.mask&&this.mask.destroy(),this.mask=null,this},createBitmapMask:function(c,A,h,f,S){return c===void 0&&(this.texture||this.shader||this.geom)&&(c=this),new u(this.scene,c,A,h,f,S)},createGeometryMask:function(c){return c===void 0&&(this.type==="Graphics"||this.geom)&&(c=this),new T(this.scene,c)}};o.exports=d},27387:o=>{/** + */var u=s(6858),T=s(80661),A={mask:null,setMask:function(c){return this.mask=c,this},clearMask:function(c){return c===void 0&&(c=!1),c&&this.mask&&this.mask.destroy(),this.mask=null,this},createBitmapMask:function(c,d,h,f,S){return c===void 0&&(this.texture||this.shader||this.geom)&&(c=this),new u(this.scene,c,d,h,f,S)},createGeometryMask:function(c){return c===void 0&&(this.type==="Graphics"||this.geom)&&(c=this),new T(this.scene,c)}};o.exports=A},27387:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={_originComponent:!0,originX:.5,originY:.5,_displayOriginX:0,_displayOriginY:0,displayOriginX:{get:function(){return this._displayOriginX},set:function(s){this._displayOriginX=s,this.originX=s/this.width}},displayOriginY:{get:function(){return this._displayOriginY},set:function(s){this._displayOriginY=s,this.originY=s/this.height}},setOrigin:function(s,u){return s===void 0&&(s=.5),u===void 0&&(u=s),this.originX=s,this.originY=u,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(s,u){return s===void 0&&(s=0),u===void 0&&(u=s),this.displayOriginX=s,this.displayOriginY=u,this},updateDisplayOrigin:function(){return this._displayOriginX=this.originX*this.width,this._displayOriginY=this.originY*this.height,this}};o.exports=m},37640:(o,m,s)=>{/** + */var O={_originComponent:!0,originX:.5,originY:.5,_displayOriginX:0,_displayOriginY:0,displayOriginX:{get:function(){return this._displayOriginX},set:function(s){this._displayOriginX=s,this.originX=s/this.width}},displayOriginY:{get:function(){return this._displayOriginY},set:function(s){this._displayOriginY=s,this.originY=s/this.height}},setOrigin:function(s,u){return s===void 0&&(s=.5),u===void 0&&(u=s),this.originX=s,this.originY=u,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(s,u){return s===void 0&&(s=0),u===void 0&&(u=s),this.displayOriginX=s,this.displayOriginY=u,this},updateDisplayOrigin:function(){return this._displayOriginX=this.originX*this.width,this._displayOriginY=this.originY*this.height,this}};o.exports=O},37640:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(39506),T=s(57355),d=s(35154),c=s(86353),A=s(26099),h={path:null,rotateToPath:!1,pathRotationOffset:0,pathOffset:null,pathVector:null,pathDelta:null,pathTween:null,pathConfig:null,_prevDirection:c.PLAYING_FORWARD,setPath:function(f,S){S===void 0&&(S=this.pathConfig);var O=this.pathTween;return O&&O.isPlaying()&&O.stop(),this.path=f,S&&this.startFollow(S),this},setRotateToPath:function(f,S){return S===void 0&&(S=0),this.rotateToPath=f,this.pathRotationOffset=S,this},isFollowing:function(){var f=this.pathTween;return f&&f.isPlaying()},startFollow:function(f,S){f===void 0&&(f={}),S===void 0&&(S=0);var O=this.pathTween;O&&O.isPlaying()&&O.stop(),typeof f=="number"&&(f={duration:f}),f.from=d(f,"from",0),f.to=d(f,"to",1);var L=T(f,"positionOnPath",!1);this.rotateToPath=T(f,"rotateToPath",!1),this.pathRotationOffset=d(f,"rotationOffset",0);var p=d(f,"startAt",S);if(p&&(f.onStart=function(g){var C=g.data[0];C.progress=p,C.elapsed=C.duration*p;var v=C.ease(C.progress);C.current=C.start+(C.end-C.start)*v,C.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(),f.persist=!0,this.pathTween=this.scene.sys.tweens.addCounter(f),this.path.getStartPoint(this.pathOffset),L&&(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=c.PLAYING_FORWARD,this.rotateToPath){var N=this.path.getPoint(.1);this.rotation=Math.atan2(N.y-this.y,N.x-this.x)+u(this.pathRotationOffset)}return this.pathConfig=f,this},pauseFollow:function(){var f=this.pathTween;return f&&f.isPlaying()&&f.pause(),this},resumeFollow:function(){var f=this.pathTween;return f&&f.isPaused()&&f.resume(),this},stopFollow:function(){var f=this.pathTween;return f&&f.isPlaying()&&f.stop(),this},pathUpdate:function(){var f=this.pathTween;if(f&&f.data){var S=f.data[0],O=this.pathDelta,L=this.pathVector;if(O.copy(L).negate(),S.state===c.COMPLETE){this.path.getPoint(S.end,L),O.add(L),L.add(this.pathOffset),this.setPosition(L.x,L.y);return}else if(S.state!==c.PLAYING_FORWARD&&S.state!==c.PLAYING_BACKWARD)return;this.path.getPoint(f.getValue(),L),O.add(L),L.add(this.pathOffset);var p=this.x,N=this.y;this.setPosition(L.x,L.y);var g=this.x-p,C=this.y-N;if(g===0&&C===0)return;if(S.state!==this._prevDirection){this._prevDirection=S.state;return}this.rotateToPath&&(this.rotation=Math.atan2(C,g)+u(this.pathRotationOffset))}}};o.exports=h},72699:(o,m,s)=>{/** + */var u=s(39506),T=s(57355),A=s(35154),c=s(86353),d=s(26099),h={path:null,rotateToPath:!1,pathRotationOffset:0,pathOffset:null,pathVector:null,pathDelta:null,pathTween:null,pathConfig:null,_prevDirection:c.PLAYING_FORWARD,setPath:function(f,S){S===void 0&&(S=this.pathConfig);var R=this.pathTween;return R&&R.isPlaying()&&R.stop(),this.path=f,S&&this.startFollow(S),this},setRotateToPath:function(f,S){return S===void 0&&(S=0),this.rotateToPath=f,this.pathRotationOffset=S,this},isFollowing:function(){var f=this.pathTween;return f&&f.isPlaying()},startFollow:function(f,S){f===void 0&&(f={}),S===void 0&&(S=0);var R=this.pathTween;R&&R.isPlaying()&&R.stop(),typeof f=="number"&&(f={duration:f}),f.from=A(f,"from",0),f.to=A(f,"to",1);var L=T(f,"positionOnPath",!1);this.rotateToPath=T(f,"rotateToPath",!1),this.pathRotationOffset=A(f,"rotationOffset",0);var p=A(f,"startAt",S);if(p&&(f.onStart=function(g){var C=g.data[0];C.progress=p,C.elapsed=C.duration*p;var P=C.ease(C.progress);C.current=C.start+(C.end-C.start)*P,C.setTargetValue()}),this.pathOffset||(this.pathOffset=new d(this.x,this.y)),this.pathVector||(this.pathVector=new d),this.pathDelta||(this.pathDelta=new d),this.pathDelta.reset(),f.persist=!0,this.pathTween=this.scene.sys.tweens.addCounter(f),this.path.getStartPoint(this.pathOffset),L&&(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=c.PLAYING_FORWARD,this.rotateToPath){var N=this.path.getPoint(.1);this.rotation=Math.atan2(N.y-this.y,N.x-this.x)+u(this.pathRotationOffset)}return this.pathConfig=f,this},pauseFollow:function(){var f=this.pathTween;return f&&f.isPlaying()&&f.pause(),this},resumeFollow:function(){var f=this.pathTween;return f&&f.isPaused()&&f.resume(),this},stopFollow:function(){var f=this.pathTween;return f&&f.isPlaying()&&f.stop(),this},pathUpdate:function(){var f=this.pathTween;if(f&&f.data){var S=f.data[0],R=this.pathDelta,L=this.pathVector;if(R.copy(L).negate(),S.state===c.COMPLETE){this.path.getPoint(S.end,L),R.add(L),L.add(this.pathOffset),this.setPosition(L.x,L.y);return}else if(S.state!==c.PLAYING_FORWARD&&S.state!==c.PLAYING_BACKWARD)return;this.path.getPoint(f.getValue(),L),R.add(L),L.add(this.pathOffset);var p=this.x,N=this.y;this.setPosition(L.x,L.y);var g=this.x-p,C=this.y-N;if(g===0&&C===0)return;if(S.state!==this._prevDirection){this._prevDirection=S.state;return}this.rotateToPath&&(this.rotation=Math.atan2(C,g)+u(this.pathRotationOffset))}}};o.exports=h},72699:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(62644),T={defaultPipeline:null,pipeline:null,pipelineData:null,initPipeline:function(d){this.pipelineData={};var c=this.scene.sys.renderer;if(!c)return!1;var A=c.pipelines;if(A){d===void 0&&(d=A.default);var h=A.get(d);if(h)return this.defaultPipeline=h,this.pipeline=h,!0}return!1},setPipeline:function(d,c,A){var h=this.scene.sys.renderer;if(!h)return this;var f=h.pipelines;if(f){var S=f.get(d);S&&(this.pipeline=S),c&&(this.pipelineData=A?u(c):c)}return this},setPipelineData:function(d,c){var A=this.pipelineData;return c===void 0?delete A[d]:A[d]=c,this},resetPipeline:function(d){return d===void 0&&(d=!1),this.pipeline=this.defaultPipeline,d&&(this.pipelineData={}),this.pipeline!==null},getPipelineName:function(){return this.pipeline.name}};o.exports=T},17581:(o,m,s)=>{/** + */var u=s(62644),T={defaultPipeline:null,pipeline:null,pipelineData:null,initPipeline:function(A){this.pipelineData={};var c=this.scene.sys.renderer;if(!c)return!1;var d=c.pipelines;if(d){A===void 0&&(A=d.default);var h=d.get(A);if(h)return this.defaultPipeline=h,this.pipeline=h,!0}return!1},setPipeline:function(A,c,d){var h=this.scene.sys.renderer;if(!h)return this;var f=h.pipelines;if(f){var S=f.get(A);S&&(this.pipeline=S),c&&(this.pipelineData=d?u(c):c)}return this},setPipelineData:function(A,c){var d=this.pipelineData;return c===void 0?delete d[A]:d[A]=c,this},resetPipeline:function(A){return A===void 0&&(A=!1),this.pipeline=this.defaultPipeline,A&&(this.pipelineData={}),this.pipeline!==null},getPipelineName:function(){return this.pipeline.name}};o.exports=T},17581:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(62644),T=s(47059),d=s(19133),c={hasPostPipeline:!1,postPipelines:null,postPipelineData:null,preFX:null,postFX:null,initPostPipeline:function(A){this.postPipelines=[],this.postPipelineData={},this.postFX=new T(this,!0),A&&(this.preFX=new T(this,!1))},setPostPipeline:function(A,h,f){var S=this.scene.sys.renderer;if(!S)return this;var O=S.pipelines;if(O){Array.isArray(A)||(A=[A]);for(var L=0;L0,this},setPostPipelineData:function(A,h){var f=this.postPipelineData;return h===void 0?delete f[A]:f[A]=h,this},getPostPipeline:function(A){for(var h=typeof A=="string",f=this.postPipelines,S=[],O=0;O=0;S--){var O=f[S];(h&&O.name===A||!h&&O===A)&&(O.destroy(),d(f,S))}return this.hasPostPipeline=this.postPipelines.length>0,this},clearFX:function(){return this.preFX&&this.preFX.clear(),this.postFX&&this.postFX.clear(),this}};o.exports=c},80227:o=>{/** + */var u=s(62644),T=s(47059),A=s(19133),c={hasPostPipeline:!1,postPipelines:null,postPipelineData:null,preFX:null,postFX:null,initPostPipeline:function(d){this.postPipelines=[],this.postPipelineData={},this.postFX=new T(this,!0),d&&(this.preFX=new T(this,!1))},setPostPipeline:function(d,h,f){var S=this.scene.sys.renderer;if(!S)return this;var R=S.pipelines;if(R){Array.isArray(d)||(d=[d]);for(var L=0;L0,this},setPostPipelineData:function(d,h){var f=this.postPipelineData;return h===void 0?delete f[d]:f[d]=h,this},getPostPipeline:function(d){for(var h=typeof d=="string",f=this.postPipelines,S=[],R=0;R=0;S--){var R=f[S];(h&&R.name===d||!h&&R===d)&&(R.destroy(),A(f,S))}return this.hasPostPipeline=this.postPipelines.length>0,this},clearFX:function(){return this.preFX&&this.preFX.clear(),this.postFX&&this.postFX.clear(),this}};o.exports=c},80227:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={scrollFactorX:1,scrollFactorY:1,setScrollFactor:function(s,u){return u===void 0&&(u=s),this.scrollFactorX=s,this.scrollFactorY=u,this}};o.exports=m},16736:o=>{/** + */var O={scrollFactorX:1,scrollFactorY:1,setScrollFactor:function(s,u){return u===void 0&&(u=s),this.scrollFactorX=s,this.scrollFactorY=u,this}};o.exports=O},16736:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={_sizeComponent:!0,width:0,height:0,displayWidth:{get:function(){return Math.abs(this.scaleX*this.frame.realWidth)},set:function(s){this.scaleX=s/this.frame.realWidth}},displayHeight:{get:function(){return Math.abs(this.scaleY*this.frame.realHeight)},set:function(s){this.scaleY=s/this.frame.realHeight}},setSizeToFrame:function(s){s||(s=this.frame),this.width=s.realWidth,this.height=s.realHeight;var u=this.input;return u&&!u.customHitArea&&(u.hitArea.width=this.width,u.hitArea.height=this.height),this},setSize:function(s,u){return this.width=s,this.height=u,this},setDisplaySize:function(s,u){return this.displayWidth=s,this.displayHeight=u,this}};o.exports=m},37726:(o,m,s)=>{/** + */var O={_sizeComponent:!0,width:0,height:0,displayWidth:{get:function(){return Math.abs(this.scaleX*this.frame.realWidth)},set:function(s){this.scaleX=s/this.frame.realWidth}},displayHeight:{get:function(){return Math.abs(this.scaleY*this.frame.realHeight)},set:function(s){this.scaleY=s/this.frame.realHeight}},setSizeToFrame:function(s){s||(s=this.frame),this.width=s.realWidth,this.height=s.realHeight;var u=this.input;return u&&!u.customHitArea&&(u.hitArea.width=this.width,u.hitArea.height=this.height),this},setSize:function(s,u){return this.width=s,this.height=u,this},setDisplaySize:function(s,u){return this.displayWidth=s,this.displayHeight=u,this}};o.exports=O},37726:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(4327),T=8,d={texture:null,frame:null,isCropped:!1,setTexture:function(c,A,h,f){return this.texture=this.scene.sys.textures.get(c),this.setFrame(A,h,f)},setFrame:function(c,A,h){return A===void 0&&(A=!0),h===void 0&&(h=!0),c instanceof u?(this.texture=this.scene.sys.textures.get(c.texture.key),this.frame=c):this.frame=this.texture.get(c),!this.frame.cutWidth||!this.frame.cutHeight?this.renderFlags&=~T:this.renderFlags|=T,this._sizeComponent&&A&&this.setSizeToFrame(),this._originComponent&&h&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this}};o.exports=d},79812:(o,m,s)=>{/** + */var u=s(4327),T=8,A={texture:null,frame:null,isCropped:!1,setTexture:function(c,d,h,f){return this.texture=this.scene.sys.textures.get(c),this.setFrame(d,h,f)},setFrame:function(c,d,h){return d===void 0&&(d=!0),h===void 0&&(h=!0),c instanceof u?(this.texture=this.scene.sys.textures.get(c.texture.key),this.frame=c):this.frame=this.texture.get(c),!this.frame.cutWidth||!this.frame.cutHeight?this.renderFlags&=~T:this.renderFlags|=T,this._sizeComponent&&d&&this.setSizeToFrame(),this._originComponent&&h&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this}};o.exports=A},79812:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(4327),T=8,d={texture:null,frame:null,isCropped:!1,setCrop:function(c,A,h,f){if(c===void 0)this.isCropped=!1;else if(this.frame){if(typeof c=="number")this.frame.setCropUVs(this._crop,c,A,h,f,this.flipX,this.flipY);else{var S=c;this.frame.setCropUVs(this._crop,S.x,S.y,S.width,S.height,this.flipX,this.flipY)}this.isCropped=!0}return this},setTexture:function(c,A){return this.texture=this.scene.sys.textures.get(c),this.setFrame(A)},setFrame:function(c,A,h){return A===void 0&&(A=!0),h===void 0&&(h=!0),c instanceof u?(this.texture=this.scene.sys.textures.get(c.texture.key),this.frame=c):this.frame=this.texture.get(c),!this.frame.cutWidth||!this.frame.cutHeight?this.renderFlags&=~T:this.renderFlags|=T,this._sizeComponent&&A&&this.setSizeToFrame(),this._originComponent&&h&&(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}}};o.exports=d},27472:o=>{/** + */var u=s(4327),T=8,A={texture:null,frame:null,isCropped:!1,setCrop:function(c,d,h,f){if(c===void 0)this.isCropped=!1;else if(this.frame){if(typeof c=="number")this.frame.setCropUVs(this._crop,c,d,h,f,this.flipX,this.flipY);else{var S=c;this.frame.setCropUVs(this._crop,S.x,S.y,S.width,S.height,this.flipX,this.flipY)}this.isCropped=!0}return this},setTexture:function(c,d){return this.texture=this.scene.sys.textures.get(c),this.setFrame(d)},setFrame:function(c,d,h){return d===void 0&&(d=!0),h===void 0&&(h=!0),c instanceof u?(this.texture=this.scene.sys.textures.get(c.texture.key),this.frame=c):this.frame=this.texture.get(c),!this.frame.cutWidth||!this.frame.cutHeight?this.renderFlags&=~T:this.renderFlags|=T,this._sizeComponent&&d&&this.setSizeToFrame(),this._originComponent&&h&&(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}}};o.exports=A},27472:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={tintTopLeft:16777215,tintTopRight:16777215,tintBottomLeft:16777215,tintBottomRight:16777215,tintFill:!1,clearTint:function(){return this.setTint(16777215),this},setTint:function(s,u,T,d){return s===void 0&&(s=16777215),u===void 0&&(u=s,T=s,d=s),this.tintTopLeft=s,this.tintTopRight=u,this.tintBottomLeft=T,this.tintBottomRight=d,this.tintFill=!1,this},setTintFill:function(s,u,T,d){return this.setTint(s,u,T,d),this.tintFill=!0,this},tint:{get:function(){return this.tintTopLeft},set:function(s){this.setTint(s,s,s,s)}},isTinted:{get:function(){var s=16777215;return this.tintFill||this.tintTopLeft!==s||this.tintTopRight!==s||this.tintBottomLeft!==s||this.tintBottomRight!==s}}};o.exports=m},53774:o=>{/** + */var O={tintTopLeft:16777215,tintTopRight:16777215,tintBottomLeft:16777215,tintBottomRight:16777215,tintFill:!1,clearTint:function(){return this.setTint(16777215),this},setTint:function(s,u,T,A){return s===void 0&&(s=16777215),u===void 0&&(u=s,T=s,A=s),this.tintTopLeft=s,this.tintTopRight=u,this.tintBottomLeft=T,this.tintBottomRight=A,this.tintFill=!1,this},setTintFill:function(s,u,T,A){return this.setTint(s,u,T,A),this.tintFill=!0,this},tint:{get:function(){return this.tintTopLeft},set:function(s){this.setTint(s,s,s,s)}},isTinted:{get:function(){var s=16777215;return this.tintFill||this.tintTopLeft!==s||this.tintTopRight!==s||this.tintBottomLeft!==s||this.tintBottomRight!==s}}};o.exports=O},53774:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){var u={name:s.name,type:s.type,x:s.x,y:s.y,depth:s.depth,scale:{x:s.scaleX,y:s.scaleY},origin:{x:s.originX,y:s.originY},flipX:s.flipX,flipY:s.flipY,rotation:s.rotation,alpha:s.alpha,visible:s.visible,blendMode:s.blendMode,textureKey:"",frameKey:"",data:{}};return s.texture&&(u.textureKey=s.texture.key,u.frameKey=s.frame.name),u},"ToJSON");o.exports=m},16901:(o,m,s)=>{/** + */var O=v(function(s){var u={name:s.name,type:s.type,x:s.x,y:s.y,depth:s.depth,scale:{x:s.scaleX,y:s.scaleY},origin:{x:s.originX,y:s.originY},flipX:s.flipX,flipY:s.flipY,rotation:s.rotation,alpha:s.alpha,visible:s.visible,blendMode:s.blendMode,textureKey:"",frameKey:"",data:{}};return s.texture&&(u.textureKey=s.texture.key,u.frameKey=s.frame.name),u},"ToJSON");o.exports=O},16901:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(36383),T=s(61340),d=s(85955),c=s(86554),A=s(30954),h=s(26099),f=4,S={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(O){this._scaleX=O,this._scaleY=O,O===0?this.renderFlags&=~f:this.renderFlags|=f}},scaleX:{get:function(){return this._scaleX},set:function(O){this._scaleX=O,O===0?this.renderFlags&=~f:this._scaleY!==0&&(this.renderFlags|=f)}},scaleY:{get:function(){return this._scaleY},set:function(O){this._scaleY=O,O===0?this.renderFlags&=~f:this._scaleX!==0&&(this.renderFlags|=f)}},angle:{get:function(){return A(this._rotation*u.RAD_TO_DEG)},set:function(O){this.rotation=A(O)*u.DEG_TO_RAD}},rotation:{get:function(){return this._rotation},set:function(O){this._rotation=c(O)}},setPosition:function(O,L,p,N){return O===void 0&&(O=0),L===void 0&&(L=O),p===void 0&&(p=0),N===void 0&&(N=0),this.x=O,this.y=L,this.z=p,this.w=N,this},copyPosition:function(O){return O.x!==void 0&&(this.x=O.x),O.y!==void 0&&(this.y=O.y),O.z!==void 0&&(this.z=O.z),O.w!==void 0&&(this.w=O.w),this},setRandomPosition:function(O,L,p,N){return O===void 0&&(O=0),L===void 0&&(L=0),p===void 0&&(p=this.scene.sys.scale.width),N===void 0&&(N=this.scene.sys.scale.height),this.x=O+Math.random()*p,this.y=L+Math.random()*N,this},setRotation:function(O){return O===void 0&&(O=0),this.rotation=O,this},setAngle:function(O){return O===void 0&&(O=0),this.angle=O,this},setScale:function(O,L){return O===void 0&&(O=1),L===void 0&&(L=O),this.scaleX=O,this.scaleY=L,this},setX:function(O){return O===void 0&&(O=0),this.x=O,this},setY:function(O){return O===void 0&&(O=0),this.y=O,this},setZ:function(O){return O===void 0&&(O=0),this.z=O,this},setW:function(O){return O===void 0&&(O=0),this.w=O,this},getLocalTransformMatrix:function(O){return O===void 0&&(O=new T),O.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY)},getWorldTransformMatrix:function(O,L){O===void 0&&(O=new T);var p=this.parentContainer;if(!p)return this.getLocalTransformMatrix(O);for(L||(L=new T),O.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY);p;)L.applyITRS(p.x,p.y,p._rotation,p._scaleX,p._scaleY),L.multiply(O,O),p=p.parentContainer;return O},getLocalPoint:function(O,L,p,N){p||(p=new h),N||(N=this.scene.sys.cameras.main);var g=N.scrollX,C=N.scrollY,v=O+g*this.scrollFactorX-g,M=L+C*this.scrollFactorY-C;return this.parentContainer?this.getWorldTransformMatrix().applyInverse(v,M,p):d(v,M,this.x,this.y,this.rotation,this.scaleX,this.scaleY,p),this._originComponent&&(p.x+=this._displayOriginX,p.y+=this._displayOriginY),p},getParentRotation:function(){for(var O=0,L=this.parentContainer;L;)O+=L.rotation,L=L.parentContainer;return O}};o.exports=S},61340:(o,m,s)=>{/** + */var u=s(36383),T=s(61340),A=s(85955),c=s(86554),d=s(30954),h=s(26099),f=4,S={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(R){this._scaleX=R,this._scaleY=R,R===0?this.renderFlags&=~f:this.renderFlags|=f}},scaleX:{get:function(){return this._scaleX},set:function(R){this._scaleX=R,R===0?this.renderFlags&=~f:this._scaleY!==0&&(this.renderFlags|=f)}},scaleY:{get:function(){return this._scaleY},set:function(R){this._scaleY=R,R===0?this.renderFlags&=~f:this._scaleX!==0&&(this.renderFlags|=f)}},angle:{get:function(){return d(this._rotation*u.RAD_TO_DEG)},set:function(R){this.rotation=d(R)*u.DEG_TO_RAD}},rotation:{get:function(){return this._rotation},set:function(R){this._rotation=c(R)}},setPosition:function(R,L,p,N){return R===void 0&&(R=0),L===void 0&&(L=R),p===void 0&&(p=0),N===void 0&&(N=0),this.x=R,this.y=L,this.z=p,this.w=N,this},copyPosition:function(R){return R.x!==void 0&&(this.x=R.x),R.y!==void 0&&(this.y=R.y),R.z!==void 0&&(this.z=R.z),R.w!==void 0&&(this.w=R.w),this},setRandomPosition:function(R,L,p,N){return R===void 0&&(R=0),L===void 0&&(L=0),p===void 0&&(p=this.scene.sys.scale.width),N===void 0&&(N=this.scene.sys.scale.height),this.x=R+Math.random()*p,this.y=L+Math.random()*N,this},setRotation:function(R){return R===void 0&&(R=0),this.rotation=R,this},setAngle:function(R){return R===void 0&&(R=0),this.angle=R,this},setScale:function(R,L){return R===void 0&&(R=1),L===void 0&&(L=R),this.scaleX=R,this.scaleY=L,this},setX:function(R){return R===void 0&&(R=0),this.x=R,this},setY:function(R){return R===void 0&&(R=0),this.y=R,this},setZ:function(R){return R===void 0&&(R=0),this.z=R,this},setW:function(R){return R===void 0&&(R=0),this.w=R,this},getLocalTransformMatrix:function(R){return R===void 0&&(R=new T),R.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY)},getWorldTransformMatrix:function(R,L){R===void 0&&(R=new T);var p=this.parentContainer;if(!p)return this.getLocalTransformMatrix(R);for(L||(L=new T),R.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY);p;)L.applyITRS(p.x,p.y,p._rotation,p._scaleX,p._scaleY),L.multiply(R,R),p=p.parentContainer;return R},getLocalPoint:function(R,L,p,N){p||(p=new h),N||(N=this.scene.sys.cameras.main);var g=N.scrollX,C=N.scrollY,P=R+g*this.scrollFactorX-g,M=L+C*this.scrollFactorY-C;return this.parentContainer?this.getWorldTransformMatrix().applyInverse(P,M,p):A(P,M,this.x,this.y,this.rotation,this.scaleX,this.scaleY,p),this._originComponent&&(p.x+=this._displayOriginX,p.y+=this._displayOriginY),p},getParentRotation:function(){for(var R=0,L=this.parentContainer;L;)R+=L.rotation,L=L.parentContainer;return R}};o.exports=S},61340:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(36383),d=s(26099),c=new u({initialize:P(function(h,f,S,O,L,p){h===void 0&&(h=1),f===void 0&&(f=0),S===void 0&&(S=0),O===void 0&&(O=1),L===void 0&&(L=0),p===void 0&&(p=0),this.matrix=new Float32Array([h,f,S,O,L,p,0,0,1]),this.decomposedMatrix={translateX:0,translateY:0,scaleX:1,scaleY:1,rotation:0},this.quad=new Float32Array(8)},"TransformMatrix"),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,h=A[0],f=A[1],S=A[2],O=A[3];return h||f?f>0?Math.acos(h/this.scaleX):-Math.acos(h/this.scaleX):S||O?T.TAU-(O>0?Math.acos(-S/this.scaleY):-Math.acos(S/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,h){var f=this.matrix;return f[4]=f[0]*A+f[2]*h+f[4],f[5]=f[1]*A+f[3]*h+f[5],this},scale:function(A,h){var f=this.matrix;return f[0]*=A,f[1]*=A,f[2]*=h,f[3]*=h,this},rotate:function(A){var h=Math.sin(A),f=Math.cos(A),S=this.matrix,O=S[0],L=S[1],p=S[2],N=S[3];return S[0]=O*f+p*h,S[1]=L*f+N*h,S[2]=O*-h+p*f,S[3]=L*-h+N*f,this},multiply:function(A,h){var f=this.matrix,S=A.matrix,O=f[0],L=f[1],p=f[2],N=f[3],g=f[4],C=f[5],v=S[0],M=S[1],D=S[2],G=S[3],H=S[4],B=S[5],_=h===void 0?f:h.matrix;return _[0]=v*O+M*p,_[1]=v*L+M*N,_[2]=D*O+G*p,_[3]=D*L+G*N,_[4]=H*O+B*p+g,_[5]=H*L+B*N+C,_},multiplyWithOffset:function(A,h,f){var S=this.matrix,O=A.matrix,L=S[0],p=S[1],N=S[2],g=S[3],C=S[4],v=S[5],M=h*L+f*N+C,D=h*p+f*g+v,G=O[0],H=O[1],B=O[2],_=O[3],w=O[4],b=O[5];return S[0]=G*L+H*N,S[1]=G*p+H*g,S[2]=B*L+_*N,S[3]=B*p+_*g,S[4]=w*L+b*N+M,S[5]=w*p+b*g+D,this},transform:function(A,h,f,S,O,L){var p=this.matrix,N=p[0],g=p[1],C=p[2],v=p[3],M=p[4],D=p[5];return p[0]=A*N+h*C,p[1]=A*g+h*v,p[2]=f*N+S*C,p[3]=f*g+S*v,p[4]=O*N+L*C+M,p[5]=O*g+L*v+D,this},transformPoint:function(A,h,f){f===void 0&&(f={x:0,y:0});var S=this.matrix,O=S[0],L=S[1],p=S[2],N=S[3],g=S[4],C=S[5];return f.x=A*O+h*p+g,f.y=A*L+h*N+C,f},invert:function(){var A=this.matrix,h=A[0],f=A[1],S=A[2],O=A[3],L=A[4],p=A[5],N=h*O-f*S;return A[0]=O/N,A[1]=-f/N,A[2]=-S/N,A[3]=h/N,A[4]=(S*p-O*L)/N,A[5]=-(h*p-f*L)/N,this},copyFrom:function(A){var h=this.matrix;return h[0]=A.a,h[1]=A.b,h[2]=A.c,h[3]=A.d,h[4]=A.e,h[5]=A.f,this},copyFromArray:function(A){var h=this.matrix;return h[0]=A[0],h[1]=A[1],h[2]=A[2],h[3]=A[3],h[4]=A[4],h[5]=A[5],this},copyToContext:function(A){var h=this.matrix;return A.transform(h[0],h[1],h[2],h[3],h[4],h[5]),A},setToContext:function(A){return A.setTransform(this),A},copyToArray:function(A){var h=this.matrix;return A===void 0?A=[h[0],h[1],h[2],h[3],h[4],h[5]]:(A[0]=h[0],A[1]=h[1],A[2]=h[2],A[3]=h[3],A[4]=h[4],A[5]=h[5]),A},setTransform:function(A,h,f,S,O,L){var p=this.matrix;return p[0]=A,p[1]=h,p[2]=f,p[3]=S,p[4]=O,p[5]=L,this},decomposeMatrix:function(){var A=this.decomposedMatrix,h=this.matrix,f=h[0],S=h[1],O=h[2],L=h[3],p=f*L-S*O;if(A.translateX=h[4],A.translateY=h[5],f||S){var N=Math.sqrt(f*f+S*S);A.rotation=S>0?Math.acos(f/N):-Math.acos(f/N),A.scaleX=N,A.scaleY=p/N}else if(O||L){var g=Math.sqrt(O*O+L*L);A.rotation=Math.PI*.5-(L>0?Math.acos(-O/g):-Math.acos(O/g)),A.scaleX=p/g,A.scaleY=g}else A.rotation=0,A.scaleX=0,A.scaleY=0;return A},applyITRS:function(A,h,f,S,O){var L=this.matrix,p=Math.sin(f),N=Math.cos(f);return L[4]=A,L[5]=h,L[0]=N*S,L[1]=p*S,L[2]=-p*O,L[3]=N*O,this},applyInverse:function(A,h,f){f===void 0&&(f=new d);var S=this.matrix,O=S[0],L=S[1],p=S[2],N=S[3],g=S[4],C=S[5],v=1/(O*N+p*-L);return f.x=N*v*A+-p*v*h+(C*p-g*N)*v,f.y=O*v*h+-L*v*A+(-C*O+g*L)*v,f},setQuad:function(A,h,f,S,O,L){O===void 0&&(O=!1),L===void 0&&(L=this.quad);var p=this.matrix,N=p[0],g=p[1],C=p[2],v=p[3],M=p[4],D=p[5];return O?(L[0]=Math.round(A*N+h*C+M),L[1]=Math.round(A*g+h*v+D),L[2]=Math.round(A*N+S*C+M),L[3]=Math.round(A*g+S*v+D),L[4]=Math.round(f*N+S*C+M),L[5]=Math.round(f*g+S*v+D),L[6]=Math.round(f*N+h*C+M),L[7]=Math.round(f*g+h*v+D)):(L[0]=A*N+h*C+M,L[1]=A*g+h*v+D,L[2]=A*N+S*C+M,L[3]=A*g+S*v+D,L[4]=f*N+S*C+M,L[5]=f*g+S*v+D,L[6]=f*N+h*C+M,L[7]=f*g+h*v+D),L},getX:function(A,h){return A*this.a+h*this.c+this.e},getY:function(A,h){return A*this.b+h*this.d+this.f},getXRound:function(A,h,f){var S=this.getX(A,h);return f&&(S=Math.round(S)),S},getYRound:function(A,h,f){var S=this.getY(A,h);return f&&(S=Math.round(S)),S},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}});o.exports=c},59715:o=>{/** + */var u=s(83419),T=s(36383),A=s(26099),c=new u({initialize:v(function(h,f,S,R,L,p){h===void 0&&(h=1),f===void 0&&(f=0),S===void 0&&(S=0),R===void 0&&(R=1),L===void 0&&(L=0),p===void 0&&(p=0),this.matrix=new Float32Array([h,f,S,R,L,p,0,0,1]),this.decomposedMatrix={translateX:0,translateY:0,scaleX:1,scaleY:1,rotation:0},this.quad=new Float32Array(8)},"TransformMatrix"),a:{get:function(){return this.matrix[0]},set:function(d){this.matrix[0]=d}},b:{get:function(){return this.matrix[1]},set:function(d){this.matrix[1]=d}},c:{get:function(){return this.matrix[2]},set:function(d){this.matrix[2]=d}},d:{get:function(){return this.matrix[3]},set:function(d){this.matrix[3]=d}},e:{get:function(){return this.matrix[4]},set:function(d){this.matrix[4]=d}},f:{get:function(){return this.matrix[5]},set:function(d){this.matrix[5]=d}},tx:{get:function(){return this.matrix[4]},set:function(d){this.matrix[4]=d}},ty:{get:function(){return this.matrix[5]},set:function(d){this.matrix[5]=d}},rotation:{get:function(){return Math.acos(this.a/this.scaleX)*(Math.atan(-this.c/this.a)<0?-1:1)}},rotationNormalized:{get:function(){var d=this.matrix,h=d[0],f=d[1],S=d[2],R=d[3];return h||f?f>0?Math.acos(h/this.scaleX):-Math.acos(h/this.scaleX):S||R?T.TAU-(R>0?Math.acos(-S/this.scaleY):-Math.acos(S/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 d=this.matrix;return d[0]=1,d[1]=0,d[2]=0,d[3]=1,d[4]=0,d[5]=0,this},translate:function(d,h){var f=this.matrix;return f[4]=f[0]*d+f[2]*h+f[4],f[5]=f[1]*d+f[3]*h+f[5],this},scale:function(d,h){var f=this.matrix;return f[0]*=d,f[1]*=d,f[2]*=h,f[3]*=h,this},rotate:function(d){var h=Math.sin(d),f=Math.cos(d),S=this.matrix,R=S[0],L=S[1],p=S[2],N=S[3];return S[0]=R*f+p*h,S[1]=L*f+N*h,S[2]=R*-h+p*f,S[3]=L*-h+N*f,this},multiply:function(d,h){var f=this.matrix,S=d.matrix,R=f[0],L=f[1],p=f[2],N=f[3],g=f[4],C=f[5],P=S[0],M=S[1],D=S[2],G=S[3],H=S[4],B=S[5],b=h===void 0?f:h.matrix;return b[0]=P*R+M*p,b[1]=P*L+M*N,b[2]=D*R+G*p,b[3]=D*L+G*N,b[4]=H*R+B*p+g,b[5]=H*L+B*N+C,b},multiplyWithOffset:function(d,h,f){var S=this.matrix,R=d.matrix,L=S[0],p=S[1],N=S[2],g=S[3],C=S[4],P=S[5],M=h*L+f*N+C,D=h*p+f*g+P,G=R[0],H=R[1],B=R[2],b=R[3],w=R[4],_=R[5];return S[0]=G*L+H*N,S[1]=G*p+H*g,S[2]=B*L+b*N,S[3]=B*p+b*g,S[4]=w*L+_*N+M,S[5]=w*p+_*g+D,this},transform:function(d,h,f,S,R,L){var p=this.matrix,N=p[0],g=p[1],C=p[2],P=p[3],M=p[4],D=p[5];return p[0]=d*N+h*C,p[1]=d*g+h*P,p[2]=f*N+S*C,p[3]=f*g+S*P,p[4]=R*N+L*C+M,p[5]=R*g+L*P+D,this},transformPoint:function(d,h,f){f===void 0&&(f={x:0,y:0});var S=this.matrix,R=S[0],L=S[1],p=S[2],N=S[3],g=S[4],C=S[5];return f.x=d*R+h*p+g,f.y=d*L+h*N+C,f},invert:function(){var d=this.matrix,h=d[0],f=d[1],S=d[2],R=d[3],L=d[4],p=d[5],N=h*R-f*S;return d[0]=R/N,d[1]=-f/N,d[2]=-S/N,d[3]=h/N,d[4]=(S*p-R*L)/N,d[5]=-(h*p-f*L)/N,this},copyFrom:function(d){var h=this.matrix;return h[0]=d.a,h[1]=d.b,h[2]=d.c,h[3]=d.d,h[4]=d.e,h[5]=d.f,this},copyFromArray:function(d){var h=this.matrix;return h[0]=d[0],h[1]=d[1],h[2]=d[2],h[3]=d[3],h[4]=d[4],h[5]=d[5],this},copyToContext:function(d){var h=this.matrix;return d.transform(h[0],h[1],h[2],h[3],h[4],h[5]),d},setToContext:function(d){return d.setTransform(this),d},copyToArray:function(d){var h=this.matrix;return d===void 0?d=[h[0],h[1],h[2],h[3],h[4],h[5]]:(d[0]=h[0],d[1]=h[1],d[2]=h[2],d[3]=h[3],d[4]=h[4],d[5]=h[5]),d},setTransform:function(d,h,f,S,R,L){var p=this.matrix;return p[0]=d,p[1]=h,p[2]=f,p[3]=S,p[4]=R,p[5]=L,this},decomposeMatrix:function(){var d=this.decomposedMatrix,h=this.matrix,f=h[0],S=h[1],R=h[2],L=h[3],p=f*L-S*R;if(d.translateX=h[4],d.translateY=h[5],f||S){var N=Math.sqrt(f*f+S*S);d.rotation=S>0?Math.acos(f/N):-Math.acos(f/N),d.scaleX=N,d.scaleY=p/N}else if(R||L){var g=Math.sqrt(R*R+L*L);d.rotation=Math.PI*.5-(L>0?Math.acos(-R/g):-Math.acos(R/g)),d.scaleX=p/g,d.scaleY=g}else d.rotation=0,d.scaleX=0,d.scaleY=0;return d},applyITRS:function(d,h,f,S,R){var L=this.matrix,p=Math.sin(f),N=Math.cos(f);return L[4]=d,L[5]=h,L[0]=N*S,L[1]=p*S,L[2]=-p*R,L[3]=N*R,this},applyInverse:function(d,h,f){f===void 0&&(f=new A);var S=this.matrix,R=S[0],L=S[1],p=S[2],N=S[3],g=S[4],C=S[5],P=1/(R*N+p*-L);return f.x=N*P*d+-p*P*h+(C*p-g*N)*P,f.y=R*P*h+-L*P*d+(-C*R+g*L)*P,f},setQuad:function(d,h,f,S,R,L){R===void 0&&(R=!1),L===void 0&&(L=this.quad);var p=this.matrix,N=p[0],g=p[1],C=p[2],P=p[3],M=p[4],D=p[5];return R?(L[0]=Math.round(d*N+h*C+M),L[1]=Math.round(d*g+h*P+D),L[2]=Math.round(d*N+S*C+M),L[3]=Math.round(d*g+S*P+D),L[4]=Math.round(f*N+S*C+M),L[5]=Math.round(f*g+S*P+D),L[6]=Math.round(f*N+h*C+M),L[7]=Math.round(f*g+h*P+D)):(L[0]=d*N+h*C+M,L[1]=d*g+h*P+D,L[2]=d*N+S*C+M,L[3]=d*g+S*P+D,L[4]=f*N+S*C+M,L[5]=f*g+S*P+D,L[6]=f*N+h*C+M,L[7]=f*g+h*P+D),L},getX:function(d,h){return d*this.a+h*this.c+this.e},getY:function(d,h){return d*this.b+h*this.d+this.f},getXRound:function(d,h,f){var S=this.getX(d,h);return f&&(S=Math.round(S)),S},getYRound:function(d,h,f){var S=this.getY(d,h);return f&&(S=Math.round(S)),S},getCSSMatrix:function(){var d=this.matrix;return"matrix("+d[0]+","+d[1]+","+d[2]+","+d[3]+","+d[4]+","+d[5]+")"},destroy:function(){this.matrix=null,this.quad=null,this.decomposedMatrix=null}});o.exports=c},59715:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=1,s={_visible:!0,visible:{get:function(){return this._visible},set:function(u){u?(this._visible=!0,this.renderFlags|=m):(this._visible=!1,this.renderFlags&=~m)}},setVisible:function(u){return this.visible=u,this}};o.exports=s},31401:(o,m,s)=>{/** + */var O=1,s={_visible:!0,visible:{get:function(){return this._visible},set:function(u){u?(this._visible=!0,this.renderFlags|=O):(this._visible=!1,this.renderFlags&=~O)}},setVisible:function(u){return this.visible=u,this}};o.exports=s},31401:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={Alpha:s(16005),AlphaSingle:s(88509),BlendMode:s(90065),ComputedSize:s(94215),Crop:s(61683),Depth:s(89272),Flip:s(54434),FX:s(47059),GetBounds:s(8004),Mask:s(8573),Origin:s(27387),PathFollower:s(37640),Pipeline:s(72699),PostPipeline:s(17581),ScrollFactor:s(80227),Size:s(16736),Texture:s(37726),TextureCrop:s(79812),Tint:s(27472),ToJSON:s(53774),Transform:s(16901),TransformMatrix:s(61340),Visible:s(59715)}},31559:(o,m,s)=>{/** + */o.exports={Alpha:s(16005),AlphaSingle:s(88509),BlendMode:s(90065),ComputedSize:s(94215),Crop:s(61683),Depth:s(89272),Flip:s(54434),FX:s(47059),GetBounds:s(8004),Mask:s(8573),Origin:s(27387),PathFollower:s(37640),Pipeline:s(72699),PostPipeline:s(17581),ScrollFactor:s(80227),Size:s(16736),Texture:s(37726),TextureCrop:s(79812),Tint:s(27472),ToJSON:s(53774),Transform:s(16901),TransformMatrix:s(61340),Visible:s(59715)}},31559:(o,O,s)=>{/** * @author Richard Davey * @author Felipe Alfonso <@bitnenfer> * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(37105),T=s(10312),d=s(83419),c=s(31401),A=s(51708),h=s(95643),f=s(87841),S=s(29959),O=s(36899),L=s(26099),p=new d({Extends:h,Mixins:[c.AlphaSingle,c.BlendMode,c.ComputedSize,c.Depth,c.Mask,c.PostPipeline,c.Transform,c.Visible,S],initialize:P(function(g,C,v,M){h.call(this,g,"Container"),this.list=[],this.exclusive=!0,this.maxSize=-1,this.position=0,this.localTransform=new c.TransformMatrix,this.tempTransformMatrix=new c.TransformMatrix,this._sortKey="",this._sysEvents=g.sys.events,this.scrollFactorX=1,this.scrollFactorY=1,this.initPostPipeline(),this.setPosition(C,v),this.setBlendMode(T.SKIP_CHECK),M&&this.add(M)},"Container"),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(N){return N===void 0&&(N=!0),this.exclusive=N,this},getBounds:function(N){if(N===void 0&&(N=new f),N.setTo(this.x,this.y,0,0),this.parentContainer){var g=this.parentContainer.getBoundsTransformMatrix(),C=g.transformPoint(this.x,this.y);N.setTo(C.x,C.y,0,0)}if(this.list.length>0){var v=this.list,M=new f,D=!1;N.setEmpty();for(var G=0;G-1},setAll:function(N,g,C,v){return u.SetAll(this.list,N,g,C,v),this},each:function(N,g){var C=[null],v,M=this.list.slice(),D=M.length;for(v=2;v0?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=[]},onChildDestroyed:function(N){u.Remove(this.list,N),this.exclusive&&(N.parentContainer=null,N.removedFromScene())}});o.exports=p},53584:o=>{/** + */var u=s(37105),T=s(10312),A=s(83419),c=s(31401),d=s(51708),h=s(95643),f=s(87841),S=s(29959),R=s(36899),L=s(26099),p=new A({Extends:h,Mixins:[c.AlphaSingle,c.BlendMode,c.ComputedSize,c.Depth,c.Mask,c.PostPipeline,c.Transform,c.Visible,S],initialize:v(function(g,C,P,M){h.call(this,g,"Container"),this.list=[],this.exclusive=!0,this.maxSize=-1,this.position=0,this.localTransform=new c.TransformMatrix,this.tempTransformMatrix=new c.TransformMatrix,this._sortKey="",this._sysEvents=g.sys.events,this.scrollFactorX=1,this.scrollFactorY=1,this.initPostPipeline(),this.setPosition(C,P),this.setBlendMode(T.SKIP_CHECK),M&&this.add(M)},"Container"),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(N){return N===void 0&&(N=!0),this.exclusive=N,this},getBounds:function(N){if(N===void 0&&(N=new f),N.setTo(this.x,this.y,0,0),this.parentContainer){var g=this.parentContainer.getBoundsTransformMatrix(),C=g.transformPoint(this.x,this.y);N.setTo(C.x,C.y,0,0)}if(this.list.length>0){var P=this.list,M=new f,D=!1;N.setEmpty();for(var G=0;G-1},setAll:function(N,g,C,P){return u.SetAll(this.list,N,g,C,P),this},each:function(N,g){var C=[null],P,M=this.list.slice(),D=M.length;for(P=2;P0?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=[]},onChildDestroyed:function(N){u.Remove(this.list,N),this.exclusive&&(N.parentContainer=null,N.removedFromScene())}});o.exports=p},53584:o=>{/** * @author Richard Davey * @author Felipe Alfonso <@bitnenfer> * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){T.addToRenderList(u);var c=u.list;if(c.length!==0){var A=u.localTransform;d?(A.loadIdentity(),A.multiply(d),A.translate(u.x,u.y),A.rotate(u.rotation),A.scale(u.scaleX,u.scaleY)):A.applyITRS(u.x,u.y,u.rotation,u.scaleX,u.scaleY);var h=u.blendMode!==-1;h||s.setBlendMode(0);var f=u._alpha,S=u.scrollFactorX,O=u.scrollFactorY;u.mask&&u.mask.preRenderCanvas(s,null,T);for(var L=0;L{/** + */var O=v(function(s,u,T,A){T.addToRenderList(u);var c=u.list;if(c.length!==0){var d=u.localTransform;A?(d.loadIdentity(),d.multiply(A),d.translate(u.x,u.y),d.rotate(u.rotation),d.scale(u.scaleX,u.scaleY)):d.applyITRS(u.x,u.y,u.rotation,u.scaleX,u.scaleY);var h=u.blendMode!==-1;h||s.setBlendMode(0);var f=u._alpha,S=u.scrollFactorX,R=u.scrollFactorY;u.mask&&u.mask.preRenderCanvas(s,null,T);for(var L=0;L{/** * @author Richard Davey * @author Felipe Alfonso <@bitnenfer> * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(25305),T=s(31559),d=s(44603),c=s(23568),A=s(95540);d.register("container",function(h,f){h===void 0&&(h={});var S=c(h,"x",0),O=c(h,"y",0),L=A(h,"children",null),p=new T(this.scene,S,O,L);return f!==void 0&&(h.add=f),u(this.scene,p,h),p})},24961:(o,m,s)=>{/** + */var u=s(25305),T=s(31559),A=s(44603),c=s(23568),d=s(95540);A.register("container",function(h,f){h===void 0&&(h={});var S=c(h,"x",0),R=c(h,"y",0),L=d(h,"children",null),p=new T(this.scene,S,R,L);return f!==void 0&&(h.add=f),u(this.scene,p,h),p})},24961:(o,O,s)=>{/** * @author Richard Davey * @author Felipe Alfonso <@bitnenfer> * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(31559),T=s(39429);T.register("container",function(d,c,A){return this.displayList.add(new u(this.scene,d,c,A))})},29959:(o,m,s)=>{/** + */var u=s(31559),T=s(39429);T.register("container",function(A,c,d){return this.displayList.add(new u(this.scene,A,c,d))})},29959:(o,O,s)=>{/** * @author Richard Davey * @author Felipe Alfonso <@bitnenfer> * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(72249),d=s(53584),o.exports={renderWebGL:T,renderCanvas:d}},72249:o=>{/** + */var u=s(29747),T=u,A=u;T=s(72249),A=s(53584),o.exports={renderWebGL:T,renderCanvas:A}},72249:o=>{/** * @author Richard Davey * @author Felipe Alfonso <@bitnenfer> * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){T.addToRenderList(u);var c=u.list,A=c.length;if(A!==0){var h=u.localTransform;d?(h.loadIdentity(),h.multiply(d),h.translate(u.x,u.y),h.rotate(u.rotation),h.scale(u.scaleX,u.scaleY)):h.applyITRS(u.x,u.y,u.rotation,u.scaleX,u.scaleY),s.pipelines.preBatch(u);var f=u.blendMode!==-1;f||s.setBlendMode(0);for(var S=u.alpha,O=u.scrollFactorX,L=u.scrollFactorY,p=0;p{/** + */var O=v(function(s,u,T,A){T.addToRenderList(u);var c=u.list,d=c.length;if(d!==0){var h=u.localTransform;A?(h.loadIdentity(),h.multiply(A),h.translate(u.x,u.y),h.rotate(u.rotation),h.scale(u.scaleX,u.scaleY)):h.applyITRS(u.x,u.y,u.rotation,u.scaleX,u.scaleY),s.pipelines.preBatch(u);var f=u.blendMode!==-1;f||s.setBlendMode(0);for(var S=u.alpha,R=u.scrollFactorX,L=u.scrollFactorY,p=0;p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports=["normal","multiply","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},3069:(o,m,s)=>{/** + */o.exports=["normal","multiply","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},3069:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(31401),d=s(441),c=s(95643),A=s(41212),h=s(35846),f=s(44594),S=s(61369),O=new u({Extends:c,Mixins:[T.AlphaSingle,T.BlendMode,T.Depth,T.Origin,T.ScrollFactor,T.Transform,T.Visible,d],initialize:P(function(p,N,g,C,v,M){c.call(this,p,"DOMElement"),this.parent=p.sys.game.domContainer,this.cache=p.sys.cache.html,this.node,this.transformOnly=!1,this.skewX=0,this.skewY=0,this.rotate3d=new S,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(N,g),typeof C=="string"?C[0]==="#"?this.setElement(C.substr(1),v,M):this.createElement(C,v,M):C&&this.setElement(C,v,M),p.sys.events.on(f.SLEEP,this.handleSceneEvent,this),p.sys.events.on(f.WAKE,this.handleSceneEvent,this),p.sys.events.on(f.PRE_RENDER,this.preRender,this)},"DOMElement"),handleSceneEvent:function(L){var p=this.node,N=p.style;p&&(N.display=L.settings.visible?"block":"none")},setSkew:function(L,p){return L===void 0&&(L=0),p===void 0&&(p=L),this.skewX=L,this.skewY=p,this},setPerspective:function(L){return this.parent.style.perspective=L+"px",this},perspective:{get:function(){return parseFloat(this.parent.style.perspective)},set:function(L){this.parent.style.perspective=L+"px"}},addListener:function(L){if(this.node){L=L.split(" ");for(var p=0;p{/** + */var u=s(83419),T=s(31401),A=s(441),c=s(95643),d=s(41212),h=s(35846),f=s(44594),S=s(61369),R=new u({Extends:c,Mixins:[T.AlphaSingle,T.BlendMode,T.Depth,T.Origin,T.ScrollFactor,T.Transform,T.Visible,A],initialize:v(function(p,N,g,C,P,M){c.call(this,p,"DOMElement"),this.parent=p.sys.game.domContainer,this.cache=p.sys.cache.html,this.node,this.transformOnly=!1,this.skewX=0,this.skewY=0,this.rotate3d=new S,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(N,g),typeof C=="string"?C[0]==="#"?this.setElement(C.substr(1),P,M):this.createElement(C,P,M):C&&this.setElement(C,P,M),p.sys.events.on(f.SLEEP,this.handleSceneEvent,this),p.sys.events.on(f.WAKE,this.handleSceneEvent,this),p.sys.events.on(f.PRE_RENDER,this.preRender,this)},"DOMElement"),handleSceneEvent:function(L){var p=this.node,N=p.style;p&&(N.display=L.settings.visible?"block":"none")},setSkew:function(L,p){return L===void 0&&(L=0),p===void 0&&(p=L),this.skewX=L,this.skewY=p,this},setPerspective:function(L){return this.parent.style.perspective=L+"px",this},perspective:{get:function(){return parseFloat(this.parent.style.perspective)},set:function(L){this.parent.style.perspective=L+"px"}},addListener:function(L){if(this.node){L=L.split(" ");for(var p=0;p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(47407),T=s(95643),d=s(61340),c=new d,A=new d,h=new d,f=P(function(S,O,L,p){if(O.node){var N=O.node.style,g=O.scene.sys.settings;if(!N||!g.visible||T.RENDER_MASK!==O.renderFlags||O.cameraFilter!==0&&O.cameraFilter&L.id||O.parentContainer&&!O.parentContainer.willRender()){N.display="none";return}var C=O.parentContainer,v=L.alpha*O.alpha;C&&(v*=C.alpha);var M=c,D=A,G=h,H=0,B=0,_="0%",w="0%";p?(H=O.width*O.scaleX*O.originX,B=O.height*O.scaleY*O.originY,D.applyITRS(O.x-H,O.y-B,O.rotation,O.scaleX,O.scaleY),M.copyFrom(L.matrix),M.multiplyWithOffset(p,-L.scrollX*O.scrollFactorX,-L.scrollY*O.scrollFactorY),D.e=O.x-H,D.f=O.y-B,M.multiply(D,G)):(H=O.width*O.originX,B=O.height*O.originY,D.applyITRS(O.x-H,O.y-B,O.rotation,O.scaleX,O.scaleY),M.copyFrom(L.matrix),_=100*O.originX+"%",w=100*O.originY+"%",D.e-=L.scrollX*O.scrollFactorX,D.f-=L.scrollY*O.scrollFactorY,M.multiply(D,G)),O.transformOnly||(N.display="block",N.opacity=v,N.zIndex=O._depth,N.pointerEvents=O.pointerEvents,N.mixBlendMode=u[O._blendMode]),N.transform=G.getCSSMatrix()+" skew("+O.skewX+"rad, "+O.skewY+"rad) rotate3d("+O.rotate3d.x+","+O.rotate3d.y+","+O.rotate3d.z+","+O.rotate3d.w+O.rotate3dAngle+")",N.transformOrigin=_+" "+w}},"DOMElementCSSRenderer");o.exports=f},2611:(o,m,s)=>{/** + */var u=s(47407),T=s(95643),A=s(61340),c=new A,d=new A,h=new A,f=v(function(S,R,L,p){if(R.node){var N=R.node.style,g=R.scene.sys.settings;if(!N||!g.visible||T.RENDER_MASK!==R.renderFlags||R.cameraFilter!==0&&R.cameraFilter&L.id||R.parentContainer&&!R.parentContainer.willRender()){N.display="none";return}var C=R.parentContainer,P=L.alpha*R.alpha;C&&(P*=C.alpha);var M=c,D=d,G=h,H=0,B=0,b="0%",w="0%";p?(H=R.width*R.scaleX*R.originX,B=R.height*R.scaleY*R.originY,D.applyITRS(R.x-H,R.y-B,R.rotation,R.scaleX,R.scaleY),M.copyFrom(L.matrix),M.multiplyWithOffset(p,-L.scrollX*R.scrollFactorX,-L.scrollY*R.scrollFactorY),D.e=R.x-H,D.f=R.y-B,M.multiply(D,G)):(H=R.width*R.originX,B=R.height*R.originY,D.applyITRS(R.x-H,R.y-B,R.rotation,R.scaleX,R.scaleY),M.copyFrom(L.matrix),b=100*R.originX+"%",w=100*R.originY+"%",D.e-=L.scrollX*R.scrollFactorX,D.f-=L.scrollY*R.scrollFactorY,M.multiply(D,G)),R.transformOnly||(N.display="block",N.opacity=P,N.zIndex=R._depth,N.pointerEvents=R.pointerEvents,N.mixBlendMode=u[R._blendMode]),N.transform=G.getCSSMatrix()+" skew("+R.skewX+"rad, "+R.skewY+"rad) rotate3d("+R.rotate3d.x+","+R.rotate3d.y+","+R.rotate3d.z+","+R.rotate3d.w+R.rotate3dAngle+")",N.transformOrigin=b+" "+w}},"DOMElementCSSRenderer");o.exports=f},2611:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(3069),T=s(39429);T.register("dom",function(d,c,A,h,f){var S=new u(this.scene,d,c,A,h,f);return this.displayList.add(S),S})},441:(o,m,s)=>{/** + */var u=s(3069),T=s(39429);T.register("dom",function(A,c,d,h,f){var S=new u(this.scene,A,c,d,h,f);return this.displayList.add(S),S})},441:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(49381),d=s(49381),o.exports={renderWebGL:T,renderCanvas:d}},62980:o=>{/** + */var u=s(29747),T=u,A=u;T=s(49381),A=s(49381),o.exports={renderWebGL:T,renderCanvas:A}},62980:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -1469,223 +1469,223 @@ var dne=Object.defineProperty;var P=(n,t)=>dne(n,"name",{value:t,configurable:!0 * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports="unsupported"},51708:(o,m,s)=>{/** + */o.exports="unsupported"},51708:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={ADDED_TO_SCENE:s(62980),DESTROY:s(41337),REMOVED_FROM_SCENE:s(44947),VIDEO_COMPLETE:s(49358),VIDEO_CREATED:s(35163),VIDEO_ERROR:s(97249),VIDEO_LOCKED:s(19483),VIDEO_LOOP:s(56059),VIDEO_METADATA:s(26772),VIDEO_PLAY:s(83411),VIDEO_PLAYING:s(64437),VIDEO_SEEKED:s(75780),VIDEO_SEEKING:s(67799),VIDEO_STALLED:s(63500),VIDEO_STOP:s(55541),VIDEO_TEXTURE:s(53208),VIDEO_UNLOCKED:s(4992),VIDEO_UNSUPPORTED:s(12)}},42421:(o,m,s)=>{/** + */o.exports={ADDED_TO_SCENE:s(62980),DESTROY:s(41337),REMOVED_FROM_SCENE:s(44947),VIDEO_COMPLETE:s(49358),VIDEO_CREATED:s(35163),VIDEO_ERROR:s(97249),VIDEO_LOCKED:s(19483),VIDEO_LOOP:s(56059),VIDEO_METADATA:s(26772),VIDEO_PLAY:s(83411),VIDEO_PLAYING:s(64437),VIDEO_SEEKED:s(75780),VIDEO_SEEKING:s(67799),VIDEO_STALLED:s(63500),VIDEO_STOP:s(55541),VIDEO_TEXTURE:s(53208),VIDEO_UNLOCKED:s(4992),VIDEO_UNSUPPORTED:s(12)}},42421:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(31401),d=s(95643),c=s(64993),A=new u({Extends:d,Mixins:[T.Alpha,T.BlendMode,T.Depth,T.Flip,T.Origin,T.ScrollFactor,T.Size,T.Texture,T.Tint,T.Transform,T.Visible,c],initialize:P(function(f){d.call(this,f,"Extern")},"Extern"),addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(){},render:function(){}});o.exports=A},70217:()=>{},56315:(o,m,s)=>{/** + */var u=s(83419),T=s(31401),A=s(95643),c=s(64993),d=new u({Extends:A,Mixins:[T.Alpha,T.BlendMode,T.Depth,T.Flip,T.Origin,T.ScrollFactor,T.Size,T.Texture,T.Tint,T.Transform,T.Visible,c],initialize:v(function(f){A.call(this,f,"Extern")},"Extern"),addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(){},render:function(){}});o.exports=d},70217:()=>{},56315:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(42421),T=s(39429);T.register("extern",function(){var d=new u(this.scene);return this.displayList.add(d),d})},64993:(o,m,s)=>{/** + */var u=s(42421),T=s(39429);T.register("extern",function(){var A=new u(this.scene);return this.displayList.add(A),A})},64993:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(80287),d=s(70217),o.exports={renderWebGL:T,renderCanvas:d}},80287:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(80287),A=s(70217),o.exports={renderWebGL:T,renderCanvas:A}},80287:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91296),T=P(function(d,c,A,h){d.pipelines.clear();var f=u(c,A,h).calc;c.render.call(c,d,A,f),d.pipelines.rebind()},"ExternWebGLRenderer");o.exports=T},85592:o=>{/** + */var u=s(91296),T=v(function(A,c,d,h){A.pipelines.clear();var f=u(c,d,h).calc;c.render.call(c,A,d,f),A.pipelines.rebind()},"ExternWebGLRenderer");o.exports=T},85592:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.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}},43831:(o,m,s)=>{/** + */o.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}},43831:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(71911),T=s(83419),d=s(85592),c=s(31401),A=s(8497),h=s(95643),f=s(95540),S=s(35154),O=s(36383),L=s(84503),p=new T({Extends:h,Mixins:[c.AlphaSingle,c.BlendMode,c.Depth,c.Mask,c.Pipeline,c.PostPipeline,c.Transform,c.Visible,c.ScrollFactor,L],initialize:P(function(g,C){var v=S(C,"x",0),M=S(C,"y",0);h.call(this,g,"Graphics"),this.setPosition(v,M),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.lineStyle(1,0,0),this.fillStyle(0,0),this.setDefaultStyles(C)},"Graphics"),setDefaultStyles:function(N){return S(N,"lineStyle",null)&&(this.defaultStrokeWidth=S(N,"lineStyle.width",1),this.defaultStrokeColor=S(N,"lineStyle.color",16777215),this.defaultStrokeAlpha=S(N,"lineStyle.alpha",1),this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha)),S(N,"fillStyle",null)&&(this.defaultFillColor=S(N,"fillStyle.color",16777215),this.defaultFillAlpha=S(N,"fillStyle.alpha",1),this.fillStyle(this.defaultFillColor,this.defaultFillAlpha)),this},lineStyle:function(N,g,C){return C===void 0&&(C=1),this.commandBuffer.push(d.LINE_STYLE,N,g,C),this._lineWidth=N,this},fillStyle:function(N,g){return g===void 0&&(g=1),this.commandBuffer.push(d.FILL_STYLE,N,g),this},fillGradientStyle:function(N,g,C,v,M,D,G,H){return M===void 0&&(M=1),D===void 0&&(D=M),G===void 0&&(G=M),H===void 0&&(H=M),this.commandBuffer.push(d.GRADIENT_FILL_STYLE,M,D,G,H,N,g,C,v),this},lineGradientStyle:function(N,g,C,v,M,D){return D===void 0&&(D=1),this.commandBuffer.push(d.GRADIENT_LINE_STYLE,N,D,g,C,v,M),this},beginPath:function(){return this.commandBuffer.push(d.BEGIN_PATH),this},closePath:function(){return this.commandBuffer.push(d.CLOSE_PATH),this},fillPath:function(){return this.commandBuffer.push(d.FILL_PATH),this},fill:function(){return this.commandBuffer.push(d.FILL_PATH),this},strokePath:function(){return this.commandBuffer.push(d.STROKE_PATH),this},stroke:function(){return this.commandBuffer.push(d.STROKE_PATH),this},fillCircleShape:function(N){return this.fillCircle(N.x,N.y,N.radius)},strokeCircleShape:function(N){return this.strokeCircle(N.x,N.y,N.radius)},fillCircle:function(N,g,C){return this.beginPath(),this.arc(N,g,C,0,O.PI2),this.fillPath(),this},strokeCircle:function(N,g,C){return this.beginPath(),this.arc(N,g,C,0,O.PI2),this.strokePath(),this},fillRectShape:function(N){return this.fillRect(N.x,N.y,N.width,N.height)},strokeRectShape:function(N){return this.strokeRect(N.x,N.y,N.width,N.height)},fillRect:function(N,g,C,v){return this.commandBuffer.push(d.FILL_RECT,N,g,C,v),this},strokeRect:function(N,g,C,v){var M=this._lineWidth/2,D=N-M,G=N+M;return this.beginPath(),this.moveTo(N,g),this.lineTo(N,g+v),this.strokePath(),this.beginPath(),this.moveTo(N+C,g),this.lineTo(N+C,g+v),this.strokePath(),this.beginPath(),this.moveTo(D,g),this.lineTo(G+C,g),this.strokePath(),this.beginPath(),this.moveTo(D,g+v),this.lineTo(G+C,g+v),this.strokePath(),this},fillRoundedRect:function(N,g,C,v,M){M===void 0&&(M=20);var D=M,G=M,H=M,B=M;typeof M!="number"&&(D=f(M,"tl",20),G=f(M,"tr",20),H=f(M,"bl",20),B=f(M,"br",20));var _=D>=0,w=G>=0,b=H>=0,F=B>=0;return D=Math.abs(D),G=Math.abs(G),H=Math.abs(H),B=Math.abs(B),this.beginPath(),this.moveTo(N+D,g),this.lineTo(N+C-G,g),w?this.arc(N+C-G,g+G,G,-O.TAU,0):this.arc(N+C,g,G,Math.PI,O.TAU,!0),this.lineTo(N+C,g+v-B),F?this.arc(N+C-B,g+v-B,B,0,O.TAU):this.arc(N+C,g+v,B,-O.TAU,Math.PI,!0),this.lineTo(N+H,g+v),b?this.arc(N+H,g+v-H,H,O.TAU,Math.PI):this.arc(N,g+v,H,0,-O.TAU,!0),this.lineTo(N,g+D),_?this.arc(N+D,g+D,D,-Math.PI,-O.TAU):this.arc(N,g,D,O.TAU,0,!0),this.fillPath(),this},strokeRoundedRect:function(N,g,C,v,M){M===void 0&&(M=20);var D=M,G=M,H=M,B=M,_=Math.min(C,v)/2;typeof M!="number"&&(D=f(M,"tl",20),G=f(M,"tr",20),H=f(M,"bl",20),B=f(M,"br",20));var w=D>=0,b=G>=0,F=H>=0,k=B>=0;return D=Math.min(Math.abs(D),_),G=Math.min(Math.abs(G),_),H=Math.min(Math.abs(H),_),B=Math.min(Math.abs(B),_),this.beginPath(),this.moveTo(N+D,g),this.lineTo(N+C-G,g),this.moveTo(N+C-G,g),b?this.arc(N+C-G,g+G,G,-O.TAU,0):this.arc(N+C,g,G,Math.PI,O.TAU,!0),this.lineTo(N+C,g+v-B),this.moveTo(N+C,g+v-B),k?this.arc(N+C-B,g+v-B,B,0,O.TAU):this.arc(N+C,g+v,B,-O.TAU,Math.PI,!0),this.lineTo(N+H,g+v),this.moveTo(N+H,g+v),F?this.arc(N+H,g+v-H,H,O.TAU,Math.PI):this.arc(N,g+v,H,0,-O.TAU,!0),this.lineTo(N,g+D),this.moveTo(N,g+D),w?this.arc(N+D,g+D,D,-Math.PI,-O.TAU):this.arc(N,g,D,O.TAU,0,!0),this.strokePath(),this},fillPointShape:function(N,g){return this.fillPoint(N.x,N.y,g)},fillPoint:function(N,g,C){return!C||C<1?C=1:(N-=C/2,g-=C/2),this.commandBuffer.push(d.FILL_RECT,N,g,C,C),this},fillTriangleShape:function(N){return this.fillTriangle(N.x1,N.y1,N.x2,N.y2,N.x3,N.y3)},strokeTriangleShape:function(N){return this.strokeTriangle(N.x1,N.y1,N.x2,N.y2,N.x3,N.y3)},fillTriangle:function(N,g,C,v,M,D){return this.commandBuffer.push(d.FILL_TRIANGLE,N,g,C,v,M,D),this},strokeTriangle:function(N,g,C,v,M,D){return this.commandBuffer.push(d.STROKE_TRIANGLE,N,g,C,v,M,D),this},strokeLineShape:function(N){return this.lineBetween(N.x1,N.y1,N.x2,N.y2)},lineBetween:function(N,g,C,v){return this.beginPath(),this.moveTo(N,g),this.lineTo(C,v),this.strokePath(),this},lineTo:function(N,g){return this.commandBuffer.push(d.LINE_TO,N,g),this},moveTo:function(N,g){return this.commandBuffer.push(d.MOVE_TO,N,g),this},strokePoints:function(N,g,C,v){g===void 0&&(g=!1),C===void 0&&(C=!1),v===void 0&&(v=N.length),this.beginPath(),this.moveTo(N[0].x,N[0].y);for(var M=1;M-1&&this.fillStyle(this.defaultFillColor,this.defaultFillAlpha),this.defaultStrokeColor>-1&&this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha),this},generateTexture:function(N,g,C){var v=this.scene.sys,M=v.game.renderer;g===void 0&&(g=v.scale.width),C===void 0&&(C=v.scale.height),p.TargetCamera.setScene(this.scene),p.TargetCamera.setViewport(0,0,g,C),p.TargetCamera.scrollX=this.x,p.TargetCamera.scrollY=this.y;var D,G,H={willReadFrequently:!0};if(typeof N=="string")if(v.textures.exists(N)){D=v.textures.get(N);var B=D.getSourceImage();B instanceof HTMLCanvasElement&&(G=B.getContext("2d",H))}else D=v.textures.createCanvas(N,g,C),G=D.getSourceImage().getContext("2d",H);else N instanceof HTMLCanvasElement&&(G=N.getContext("2d",H));return G&&(this.renderCanvas(M,this,p.TargetCamera,null,G,!1),D&&D.refresh()),this},preDestroy:function(){this.commandBuffer=[]}});p.TargetCamera=new u,o.exports=p},32768:(o,m,s)=>{/** + */var u=s(71911),T=s(83419),A=s(85592),c=s(31401),d=s(8497),h=s(95643),f=s(95540),S=s(35154),R=s(36383),L=s(84503),p=new T({Extends:h,Mixins:[c.AlphaSingle,c.BlendMode,c.Depth,c.Mask,c.Pipeline,c.PostPipeline,c.Transform,c.Visible,c.ScrollFactor,L],initialize:v(function(g,C){var P=S(C,"x",0),M=S(C,"y",0);h.call(this,g,"Graphics"),this.setPosition(P,M),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.lineStyle(1,0,0),this.fillStyle(0,0),this.setDefaultStyles(C)},"Graphics"),setDefaultStyles:function(N){return S(N,"lineStyle",null)&&(this.defaultStrokeWidth=S(N,"lineStyle.width",1),this.defaultStrokeColor=S(N,"lineStyle.color",16777215),this.defaultStrokeAlpha=S(N,"lineStyle.alpha",1),this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha)),S(N,"fillStyle",null)&&(this.defaultFillColor=S(N,"fillStyle.color",16777215),this.defaultFillAlpha=S(N,"fillStyle.alpha",1),this.fillStyle(this.defaultFillColor,this.defaultFillAlpha)),this},lineStyle:function(N,g,C){return C===void 0&&(C=1),this.commandBuffer.push(A.LINE_STYLE,N,g,C),this._lineWidth=N,this},fillStyle:function(N,g){return g===void 0&&(g=1),this.commandBuffer.push(A.FILL_STYLE,N,g),this},fillGradientStyle:function(N,g,C,P,M,D,G,H){return M===void 0&&(M=1),D===void 0&&(D=M),G===void 0&&(G=M),H===void 0&&(H=M),this.commandBuffer.push(A.GRADIENT_FILL_STYLE,M,D,G,H,N,g,C,P),this},lineGradientStyle:function(N,g,C,P,M,D){return D===void 0&&(D=1),this.commandBuffer.push(A.GRADIENT_LINE_STYLE,N,D,g,C,P,M),this},beginPath:function(){return this.commandBuffer.push(A.BEGIN_PATH),this},closePath:function(){return this.commandBuffer.push(A.CLOSE_PATH),this},fillPath:function(){return this.commandBuffer.push(A.FILL_PATH),this},fill:function(){return this.commandBuffer.push(A.FILL_PATH),this},strokePath:function(){return this.commandBuffer.push(A.STROKE_PATH),this},stroke:function(){return this.commandBuffer.push(A.STROKE_PATH),this},fillCircleShape:function(N){return this.fillCircle(N.x,N.y,N.radius)},strokeCircleShape:function(N){return this.strokeCircle(N.x,N.y,N.radius)},fillCircle:function(N,g,C){return this.beginPath(),this.arc(N,g,C,0,R.PI2),this.fillPath(),this},strokeCircle:function(N,g,C){return this.beginPath(),this.arc(N,g,C,0,R.PI2),this.strokePath(),this},fillRectShape:function(N){return this.fillRect(N.x,N.y,N.width,N.height)},strokeRectShape:function(N){return this.strokeRect(N.x,N.y,N.width,N.height)},fillRect:function(N,g,C,P){return this.commandBuffer.push(A.FILL_RECT,N,g,C,P),this},strokeRect:function(N,g,C,P){var M=this._lineWidth/2,D=N-M,G=N+M;return this.beginPath(),this.moveTo(N,g),this.lineTo(N,g+P),this.strokePath(),this.beginPath(),this.moveTo(N+C,g),this.lineTo(N+C,g+P),this.strokePath(),this.beginPath(),this.moveTo(D,g),this.lineTo(G+C,g),this.strokePath(),this.beginPath(),this.moveTo(D,g+P),this.lineTo(G+C,g+P),this.strokePath(),this},fillRoundedRect:function(N,g,C,P,M){M===void 0&&(M=20);var D=M,G=M,H=M,B=M;typeof M!="number"&&(D=f(M,"tl",20),G=f(M,"tr",20),H=f(M,"bl",20),B=f(M,"br",20));var b=D>=0,w=G>=0,_=H>=0,F=B>=0;return D=Math.abs(D),G=Math.abs(G),H=Math.abs(H),B=Math.abs(B),this.beginPath(),this.moveTo(N+D,g),this.lineTo(N+C-G,g),w?this.arc(N+C-G,g+G,G,-R.TAU,0):this.arc(N+C,g,G,Math.PI,R.TAU,!0),this.lineTo(N+C,g+P-B),F?this.arc(N+C-B,g+P-B,B,0,R.TAU):this.arc(N+C,g+P,B,-R.TAU,Math.PI,!0),this.lineTo(N+H,g+P),_?this.arc(N+H,g+P-H,H,R.TAU,Math.PI):this.arc(N,g+P,H,0,-R.TAU,!0),this.lineTo(N,g+D),b?this.arc(N+D,g+D,D,-Math.PI,-R.TAU):this.arc(N,g,D,R.TAU,0,!0),this.fillPath(),this},strokeRoundedRect:function(N,g,C,P,M){M===void 0&&(M=20);var D=M,G=M,H=M,B=M,b=Math.min(C,P)/2;typeof M!="number"&&(D=f(M,"tl",20),G=f(M,"tr",20),H=f(M,"bl",20),B=f(M,"br",20));var w=D>=0,_=G>=0,F=H>=0,x=B>=0;return D=Math.min(Math.abs(D),b),G=Math.min(Math.abs(G),b),H=Math.min(Math.abs(H),b),B=Math.min(Math.abs(B),b),this.beginPath(),this.moveTo(N+D,g),this.lineTo(N+C-G,g),this.moveTo(N+C-G,g),_?this.arc(N+C-G,g+G,G,-R.TAU,0):this.arc(N+C,g,G,Math.PI,R.TAU,!0),this.lineTo(N+C,g+P-B),this.moveTo(N+C,g+P-B),x?this.arc(N+C-B,g+P-B,B,0,R.TAU):this.arc(N+C,g+P,B,-R.TAU,Math.PI,!0),this.lineTo(N+H,g+P),this.moveTo(N+H,g+P),F?this.arc(N+H,g+P-H,H,R.TAU,Math.PI):this.arc(N,g+P,H,0,-R.TAU,!0),this.lineTo(N,g+D),this.moveTo(N,g+D),w?this.arc(N+D,g+D,D,-Math.PI,-R.TAU):this.arc(N,g,D,R.TAU,0,!0),this.strokePath(),this},fillPointShape:function(N,g){return this.fillPoint(N.x,N.y,g)},fillPoint:function(N,g,C){return!C||C<1?C=1:(N-=C/2,g-=C/2),this.commandBuffer.push(A.FILL_RECT,N,g,C,C),this},fillTriangleShape:function(N){return this.fillTriangle(N.x1,N.y1,N.x2,N.y2,N.x3,N.y3)},strokeTriangleShape:function(N){return this.strokeTriangle(N.x1,N.y1,N.x2,N.y2,N.x3,N.y3)},fillTriangle:function(N,g,C,P,M,D){return this.commandBuffer.push(A.FILL_TRIANGLE,N,g,C,P,M,D),this},strokeTriangle:function(N,g,C,P,M,D){return this.commandBuffer.push(A.STROKE_TRIANGLE,N,g,C,P,M,D),this},strokeLineShape:function(N){return this.lineBetween(N.x1,N.y1,N.x2,N.y2)},lineBetween:function(N,g,C,P){return this.beginPath(),this.moveTo(N,g),this.lineTo(C,P),this.strokePath(),this},lineTo:function(N,g){return this.commandBuffer.push(A.LINE_TO,N,g),this},moveTo:function(N,g){return this.commandBuffer.push(A.MOVE_TO,N,g),this},strokePoints:function(N,g,C,P){g===void 0&&(g=!1),C===void 0&&(C=!1),P===void 0&&(P=N.length),this.beginPath(),this.moveTo(N[0].x,N[0].y);for(var M=1;M-1&&this.fillStyle(this.defaultFillColor,this.defaultFillAlpha),this.defaultStrokeColor>-1&&this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha),this},generateTexture:function(N,g,C){var P=this.scene.sys,M=P.game.renderer;g===void 0&&(g=P.scale.width),C===void 0&&(C=P.scale.height),p.TargetCamera.setScene(this.scene),p.TargetCamera.setViewport(0,0,g,C),p.TargetCamera.scrollX=this.x,p.TargetCamera.scrollY=this.y;var D,G,H={willReadFrequently:!0};if(typeof N=="string")if(P.textures.exists(N)){D=P.textures.get(N);var B=D.getSourceImage();B instanceof HTMLCanvasElement&&(G=B.getContext("2d",H))}else D=P.textures.createCanvas(N,g,C),G=D.getSourceImage().getContext("2d",H);else N instanceof HTMLCanvasElement&&(G=N.getContext("2d",H));return G&&(this.renderCanvas(M,this,p.TargetCamera,null,G,!1),D&&D.refresh()),this},preDestroy:function(){this.commandBuffer=[]}});p.TargetCamera=new u,o.exports=p},32768:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(85592),T=s(20926),d=P(function(c,A,h,f,S,O){var L=A.commandBuffer,p=L.length,N=S||c.currentContext;if(!(p===0||!T(c,N,A,h,f))){h.addToRenderList(A);var g=1,C=1,v=0,M=0,D=1,G=0,H=0,B=0;N.beginPath();for(var _=0;_>>16,H=(v&65280)>>>8,B=v&255,N.strokeStyle="rgba("+G+","+H+","+B+","+g+")",N.lineWidth=D,_+=3;break;case u.FILL_STYLE:M=L[_+1],C=L[_+2],G=(M&16711680)>>>16,H=(M&65280)>>>8,B=M&255,N.fillStyle="rgba("+G+","+H+","+B+","+C+")",_+=2;break;case u.BEGIN_PATH:N.beginPath();break;case u.CLOSE_PATH:N.closePath();break;case u.FILL_PATH:O||N.fill();break;case u.STROKE_PATH:O||N.stroke();break;case u.FILL_RECT:O?N.rect(L[_+1],L[_+2],L[_+3],L[_+4]):N.fillRect(L[_+1],L[_+2],L[_+3],L[_+4]),_+=4;break;case u.FILL_TRIANGLE:N.beginPath(),N.moveTo(L[_+1],L[_+2]),N.lineTo(L[_+3],L[_+4]),N.lineTo(L[_+5],L[_+6]),N.closePath(),O||N.fill(),_+=6;break;case u.STROKE_TRIANGLE:N.beginPath(),N.moveTo(L[_+1],L[_+2]),N.lineTo(L[_+3],L[_+4]),N.lineTo(L[_+5],L[_+6]),N.closePath(),O||N.stroke(),_+=6;break;case u.LINE_TO:N.lineTo(L[_+1],L[_+2]),_+=2;break;case u.MOVE_TO:N.moveTo(L[_+1],L[_+2]),_+=2;break;case u.LINE_FX_TO:N.lineTo(L[_+1],L[_+2]),_+=5;break;case u.MOVE_FX_TO:N.moveTo(L[_+1],L[_+2]),_+=5;break;case u.SAVE:N.save();break;case u.RESTORE:N.restore();break;case u.TRANSLATE:N.translate(L[_+1],L[_+2]),_+=2;break;case u.SCALE:N.scale(L[_+1],L[_+2]),_+=2;break;case u.ROTATE:N.rotate(L[_+1]),_+=1;break;case u.GRADIENT_FILL_STYLE:_+=5;break;case u.GRADIENT_LINE_STYLE:_+=6;break}}N.restore()}},"GraphicsCanvasRenderer");o.exports=d},87079:(o,m,s)=>{/** + */var u=s(85592),T=s(20926),A=v(function(c,d,h,f,S,R){var L=d.commandBuffer,p=L.length,N=S||c.currentContext;if(!(p===0||!T(c,N,d,h,f))){h.addToRenderList(d);var g=1,C=1,P=0,M=0,D=1,G=0,H=0,B=0;N.beginPath();for(var b=0;b>>16,H=(P&65280)>>>8,B=P&255,N.strokeStyle="rgba("+G+","+H+","+B+","+g+")",N.lineWidth=D,b+=3;break;case u.FILL_STYLE:M=L[b+1],C=L[b+2],G=(M&16711680)>>>16,H=(M&65280)>>>8,B=M&255,N.fillStyle="rgba("+G+","+H+","+B+","+C+")",b+=2;break;case u.BEGIN_PATH:N.beginPath();break;case u.CLOSE_PATH:N.closePath();break;case u.FILL_PATH:R||N.fill();break;case u.STROKE_PATH:R||N.stroke();break;case u.FILL_RECT:R?N.rect(L[b+1],L[b+2],L[b+3],L[b+4]):N.fillRect(L[b+1],L[b+2],L[b+3],L[b+4]),b+=4;break;case u.FILL_TRIANGLE:N.beginPath(),N.moveTo(L[b+1],L[b+2]),N.lineTo(L[b+3],L[b+4]),N.lineTo(L[b+5],L[b+6]),N.closePath(),R||N.fill(),b+=6;break;case u.STROKE_TRIANGLE:N.beginPath(),N.moveTo(L[b+1],L[b+2]),N.lineTo(L[b+3],L[b+4]),N.lineTo(L[b+5],L[b+6]),N.closePath(),R||N.stroke(),b+=6;break;case u.LINE_TO:N.lineTo(L[b+1],L[b+2]),b+=2;break;case u.MOVE_TO:N.moveTo(L[b+1],L[b+2]),b+=2;break;case u.LINE_FX_TO:N.lineTo(L[b+1],L[b+2]),b+=5;break;case u.MOVE_FX_TO:N.moveTo(L[b+1],L[b+2]),b+=5;break;case u.SAVE:N.save();break;case u.RESTORE:N.restore();break;case u.TRANSLATE:N.translate(L[b+1],L[b+2]),b+=2;break;case u.SCALE:N.scale(L[b+1],L[b+2]),b+=2;break;case u.ROTATE:N.rotate(L[b+1]),b+=1;break;case u.GRADIENT_FILL_STYLE:b+=5;break;case u.GRADIENT_LINE_STYLE:b+=6;break}}N.restore()}},"GraphicsCanvasRenderer");o.exports=A},87079:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(44603),T=s(43831);u.register("graphics",function(d,c){d===void 0&&(d={}),c!==void 0&&(d.add=c);var A=new T(this.scene,d);return d.add&&this.scene.sys.displayList.add(A),A})},1201:(o,m,s)=>{/** + */var u=s(44603),T=s(43831);u.register("graphics",function(A,c){A===void 0&&(A={}),c!==void 0&&(A.add=c);var d=new T(this.scene,A);return A.add&&this.scene.sys.displayList.add(d),d})},1201:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(43831),T=s(39429);T.register("graphics",function(d){return this.displayList.add(new u(this.scene,d))})},84503:(o,m,s)=>{/** + */var u=s(43831),T=s(39429);T.register("graphics",function(A){return this.displayList.add(new u(this.scene,A))})},84503:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(77545),d=s(32768),d=s(32768),o.exports={renderWebGL:T,renderCanvas:d}},77545:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(77545),A=s(32768),A=s(32768),o.exports={renderWebGL:T,renderCanvas:A}},77545:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(85592),T=s(91296),d=s(61340),c=s(70554),A=P(function(L,p,N){this.x=L,this.y=p,this.width=N},"Point"),h=P(function(L,p,N){this.points=[],this.pointsLength=1,this.points[0]=new A(L,p,N)},"Path"),f=[],S=new d,O=P(function(L,p,N,g){if(p.commandBuffer.length!==0){N.addToRenderList(p);var C=L.pipelines.set(p.pipeline,p);L.pipelines.preBatch(p);for(var v=T(p,N,g).calc,M=S.loadIdentity(),D=p.commandBuffer,G=N.alpha*p.alpha,H=1,B=C.fillTint,_=C.strokeTint,w=0,b=0,F=0,k=.01,V=Math.PI*2,Z,$=[],Q=0,te=!0,z=null,j=c.getTintAppendFloatAlpha,x=0;x0&&(Ge=-V+Ge%V):Ge>V?Ge=V:Ge<0&&(Ge=V+Ge%V),z===null&&(z=new h(ke+Math.cos(at)*lt,it+Math.sin(at)*lt,H),$.push(z),De+=k);De<1+tt;)F=Ge*De+at,w=ke+Math.cos(F)*lt,b=it+Math.sin(F)*lt,z.points.push(new A(w,b,H)),De+=k;F=Ge+at,w=ke+Math.cos(F)*lt,b=it+Math.sin(F)*lt,z.points.push(new A(w,b,H));break}case u.FILL_RECT:{C.batchFillRect(D[++x],D[++x],D[++x],D[++x],M,v);break}case u.FILL_TRIANGLE:{C.batchFillTriangle(D[++x],D[++x],D[++x],D[++x],D[++x],D[++x],M,v);break}case u.STROKE_TRIANGLE:{C.batchStrokeTriangle(D[++x],D[++x],D[++x],D[++x],D[++x],D[++x],H,M,v);break}case u.LINE_TO:{z!==null?z.points.push(new A(D[++x],D[++x],H)):(z=new h(D[++x],D[++x],H),$.push(z));break}case u.MOVE_TO:{z=new h(D[++x],D[++x],H),$.push(z);break}case u.SAVE:{f.push(M.copyToArray());break}case u.RESTORE:{M.copyFromArray(f.pop());break}case u.TRANSLATE:{ke=D[++x],it=D[++x],M.translate(ke,it);break}case u.SCALE:{ke=D[++x],it=D[++x],M.scale(ke,it);break}case u.ROTATE:{M.rotate(D[++x]);break}}L.pipelines.postBatch(p)}},"GraphicsWebGLRenderer");o.exports=O},26479:(o,m,s)=>{/** + */var u=s(85592),T=s(91296),A=s(61340),c=s(70554),d=v(function(L,p,N){this.x=L,this.y=p,this.width=N},"Point"),h=v(function(L,p,N){this.points=[],this.pointsLength=1,this.points[0]=new d(L,p,N)},"Path"),f=[],S=new A,R=v(function(L,p,N,g){if(p.commandBuffer.length!==0){N.addToRenderList(p);var C=L.pipelines.set(p.pipeline,p);L.pipelines.preBatch(p);for(var P=T(p,N,g).calc,M=S.loadIdentity(),D=p.commandBuffer,G=N.alpha*p.alpha,H=1,B=C.fillTint,b=C.strokeTint,w=0,_=0,F=0,x=.01,V=Math.PI*2,Z,$=[],Q=0,te=!0,z=null,j=c.getTintAppendFloatAlpha,k=0;k0&&(Ge=-V+Ge%V):Ge>V?Ge=V:Ge<0&&(Ge=V+Ge%V),z===null&&(z=new h(xe+Math.cos(at)*lt,it+Math.sin(at)*lt,H),$.push(z),De+=x);De<1+tt;)F=Ge*De+at,w=xe+Math.cos(F)*lt,_=it+Math.sin(F)*lt,z.points.push(new d(w,_,H)),De+=x;F=Ge+at,w=xe+Math.cos(F)*lt,_=it+Math.sin(F)*lt,z.points.push(new d(w,_,H));break}case u.FILL_RECT:{C.batchFillRect(D[++k],D[++k],D[++k],D[++k],M,P);break}case u.FILL_TRIANGLE:{C.batchFillTriangle(D[++k],D[++k],D[++k],D[++k],D[++k],D[++k],M,P);break}case u.STROKE_TRIANGLE:{C.batchStrokeTriangle(D[++k],D[++k],D[++k],D[++k],D[++k],D[++k],H,M,P);break}case u.LINE_TO:{z!==null?z.points.push(new d(D[++k],D[++k],H)):(z=new h(D[++k],D[++k],H),$.push(z));break}case u.MOVE_TO:{z=new h(D[++k],D[++k],H),$.push(z);break}case u.SAVE:{f.push(M.copyToArray());break}case u.RESTORE:{M.copyFromArray(f.pop());break}case u.TRANSLATE:{xe=D[++k],it=D[++k],M.translate(xe,it);break}case u.SCALE:{xe=D[++k],it=D[++k],M.scale(xe,it);break}case u.ROTATE:{M.rotate(D[++k]);break}}L.pipelines.postBatch(p)}},"GraphicsWebGLRenderer");o.exports=R},26479:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(61061),T=s(83419),d=s(51708),c=s(50792),A=s(46710),h=s(95540),f=s(35154),S=s(97022),O=s(41212),L=s(88492),p=s(35072),N=s(68287),g=new T({Extends:c,initialize:P(function(v,M,D){c.call(this),D?M&&!Array.isArray(M)&&(M=[M]):Array.isArray(M)?O(M[0])&&(D=M,M=null):O(M)&&(D=M,M=null),this.scene=v,this.children=new p,this.isParent=!0,this.type="Group",this.classType=h(D,"classType",N),this.name=h(D,"name",""),this.active=h(D,"active",!0),this.maxSize=h(D,"maxSize",-1),this.defaultKey=h(D,"defaultKey",null),this.defaultFrame=h(D,"defaultFrame",null),this.runChildUpdate=h(D,"runChildUpdate",!1),this.createCallback=h(D,"createCallback",null),this.removeCallback=h(D,"removeCallback",null),this.createMultipleCallback=h(D,"createMultipleCallback",null),this.internalCreateCallback=h(D,"internalCreateCallback",null),this.internalRemoveCallback=h(D,"internalRemoveCallback",null),M&&this.addMultiple(M),D&&this.createMultiple(D),this.on(d.ADDED_TO_SCENE,this.addedToScene,this),this.on(d.REMOVED_FROM_SCENE,this.removedFromScene,this)},"Group"),addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},create:function(C,v,M,D,G,H){if(C===void 0&&(C=0),v===void 0&&(v=0),M===void 0&&(M=this.defaultKey),D===void 0&&(D=this.defaultFrame),G===void 0&&(G=!0),H===void 0&&(H=!0),this.isFull())return null;var B=new this.classType(this.scene,C,v,M,D);return B.addToDisplayList(this.scene.sys.displayList),B.addToUpdateList(),B.visible=G,B.setActive(H),this.add(B),B},createMultiple:function(C){if(this.isFull())return[];Array.isArray(C)||(C=[C]);var v=[];if(C[0].key)for(var M=0;M=0;F--)if(b=V[F],b.active===M){if(k++,k===v)break}else b=null;return b?(typeof G=="number"&&(b.x=G),typeof H=="number"&&(b.y=H),b):D?this.create(G,H,B,_,w):null},get:function(C,v,M,D,G){return this.getFirst(!1,!0,C,v,M,D,G)},getFirstAlive:function(C,v,M,D,G,H){return this.getFirst(!0,C,v,M,D,G,H)},getFirstDead:function(C,v,M,D,G,H){return this.getFirst(!1,C,v,M,D,G,H)},playAnimation:function(C,v){return u.PlayAnimation(this.children.entries,C,v),this},isFull:function(){return this.maxSize===-1?!1:this.children.size>=this.maxSize},countActive:function(C){C===void 0&&(C=!0);for(var v=0,M=0;M{/** + */var u=s(61061),T=s(83419),A=s(51708),c=s(50792),d=s(46710),h=s(95540),f=s(35154),S=s(97022),R=s(41212),L=s(88492),p=s(35072),N=s(68287),g=new T({Extends:c,initialize:v(function(P,M,D){c.call(this),D?M&&!Array.isArray(M)&&(M=[M]):Array.isArray(M)?R(M[0])&&(D=M,M=null):R(M)&&(D=M,M=null),this.scene=P,this.children=new p,this.isParent=!0,this.type="Group",this.classType=h(D,"classType",N),this.name=h(D,"name",""),this.active=h(D,"active",!0),this.maxSize=h(D,"maxSize",-1),this.defaultKey=h(D,"defaultKey",null),this.defaultFrame=h(D,"defaultFrame",null),this.runChildUpdate=h(D,"runChildUpdate",!1),this.createCallback=h(D,"createCallback",null),this.removeCallback=h(D,"removeCallback",null),this.createMultipleCallback=h(D,"createMultipleCallback",null),this.internalCreateCallback=h(D,"internalCreateCallback",null),this.internalRemoveCallback=h(D,"internalRemoveCallback",null),M&&this.addMultiple(M),D&&this.createMultiple(D),this.on(A.ADDED_TO_SCENE,this.addedToScene,this),this.on(A.REMOVED_FROM_SCENE,this.removedFromScene,this)},"Group"),addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},create:function(C,P,M,D,G,H){if(C===void 0&&(C=0),P===void 0&&(P=0),M===void 0&&(M=this.defaultKey),D===void 0&&(D=this.defaultFrame),G===void 0&&(G=!0),H===void 0&&(H=!0),this.isFull())return null;var B=new this.classType(this.scene,C,P,M,D);return B.addToDisplayList(this.scene.sys.displayList),B.addToUpdateList(),B.visible=G,B.setActive(H),this.add(B),B},createMultiple:function(C){if(this.isFull())return[];Array.isArray(C)||(C=[C]);var P=[];if(C[0].key)for(var M=0;M=0;F--)if(_=V[F],_.active===M){if(x++,x===P)break}else _=null;return _?(typeof G=="number"&&(_.x=G),typeof H=="number"&&(_.y=H),_):D?this.create(G,H,B,b,w):null},get:function(C,P,M,D,G){return this.getFirst(!1,!0,C,P,M,D,G)},getFirstAlive:function(C,P,M,D,G,H){return this.getFirst(!0,C,P,M,D,G,H)},getFirstDead:function(C,P,M,D,G,H){return this.getFirst(!1,C,P,M,D,G,H)},playAnimation:function(C,P){return u.PlayAnimation(this.children.entries,C,P),this},isFull:function(){return this.maxSize===-1?!1:this.children.size>=this.maxSize},countActive:function(C){C===void 0&&(C=!0);for(var P=0,M=0;M{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(44603),T=s(26479);u.register("group",function(d){return new T(this.scene,null,d)})},3385:(o,m,s)=>{/** + */var u=s(44603),T=s(26479);u.register("group",function(A){return new T(this.scene,null,A)})},3385:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(26479),T=s(39429);T.register("group",function(d,c){return this.updateList.add(new u(this.scene,d,c))})},88571:(o,m,s)=>{/** + */var u=s(26479),T=s(39429);T.register("group",function(A,c){return this.updateList.add(new u(this.scene,A,c))})},88571:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(31401),d=s(95643),c=s(59819),A=new u({Extends:d,Mixins:[T.Alpha,T.BlendMode,T.Depth,T.Flip,T.GetBounds,T.Mask,T.Origin,T.Pipeline,T.PostPipeline,T.ScrollFactor,T.Size,T.TextureCrop,T.Tint,T.Transform,T.Visible,c],initialize:P(function(f,S,O,L,p){d.call(this,f,"Image"),this._crop=this.resetCropObject(),this.setTexture(L,p),this.setPosition(S,O),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)},"Image")});o.exports=A},40652:o=>{/** + */var u=s(83419),T=s(31401),A=s(95643),c=s(59819),d=new u({Extends:A,Mixins:[T.Alpha,T.BlendMode,T.Depth,T.Flip,T.GetBounds,T.Mask,T.Origin,T.Pipeline,T.PostPipeline,T.ScrollFactor,T.Size,T.TextureCrop,T.Tint,T.Transform,T.Visible,c],initialize:v(function(f,S,R,L,p){A.call(this,f,"Image"),this._crop=this.resetCropObject(),this.setTexture(L,p),this.setPosition(S,R),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)},"Image")});o.exports=d},40652:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){T.addToRenderList(u),s.batchSprite(u,u.frame,T,d)},"ImageCanvasRenderer");o.exports=m},82459:(o,m,s)=>{/** + */var O=v(function(s,u,T,A){T.addToRenderList(u),s.batchSprite(u,u.frame,T,A)},"ImageCanvasRenderer");o.exports=O},82459:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(25305),T=s(44603),d=s(23568),c=s(88571);T.register("image",function(A,h){A===void 0&&(A={});var f=d(A,"key",null),S=d(A,"frame",null),O=new c(this.scene,0,0,f,S);return h!==void 0&&(A.add=h),u(this.scene,O,A),O})},2117:(o,m,s)=>{/** + */var u=s(25305),T=s(44603),A=s(23568),c=s(88571);T.register("image",function(d,h){d===void 0&&(d={});var f=A(d,"key",null),S=A(d,"frame",null),R=new c(this.scene,0,0,f,S);return h!==void 0&&(d.add=h),u(this.scene,R,d),R})},2117:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(88571),T=s(39429);T.register("image",function(d,c,A,h){return this.displayList.add(new u(this.scene,d,c,A,h))})},59819:(o,m,s)=>{/** + */var u=s(88571),T=s(39429);T.register("image",function(A,c,d,h){return this.displayList.add(new u(this.scene,A,c,d,h))})},59819:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(99517),d=s(40652),o.exports={renderWebGL:T,renderCanvas:d}},99517:o=>{/** + */var u=s(29747),T=u,A=u;T=s(99517),A=s(40652),o.exports={renderWebGL:T,renderCanvas:A}},99517:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){T.addToRenderList(u),this.pipeline.batchSprite(u,T,d)},"ImageWebGLRenderer");o.exports=m},77856:(o,m,s)=>{/** + */var O=v(function(s,u,T,A){T.addToRenderList(u),this.pipeline.batchSprite(u,T,A)},"ImageWebGLRenderer");o.exports=O},77856:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u={Events:s(51708),DisplayList:s(8050),GameObjectCreator:s(44603),GameObjectFactory:s(39429),UpdateList:s(45027),Components:s(31401),GetCalcMatrix:s(91296),BuildGameObject:s(25305),BuildGameObjectAnimation:s(13059),GameObject:s(95643),BitmapText:s(22186),Blitter:s(6107),Bob:s(46590),Container:s(31559),DOMElement:s(3069),DynamicBitmapText:s(2638),Extern:s(42421),Graphics:s(43831),Group:s(26479),Image:s(88571),Layer:s(93595),Particles:s(18404),PathFollower:s(1159),RenderTexture:s(591),RetroFont:s(196),Rope:s(77757),Sprite:s(68287),Text:s(50171),GetTextSize:s(14220),MeasureText:s(79557),TextStyle:s(35762),TileSprite:s(20839),Zone:s(41481),Video:s(18471),Shape:s(17803),Arc:s(23629),Curve:s(89),Ellipse:s(19921),Grid:s(30479),IsoBox:s(61475),IsoTriangle:s(16933),Line:s(57847),Polygon:s(24949),Rectangle:s(74561),Star:s(55911),Triangle:s(36931),Factories:{Blitter:s(12709),Container:s(24961),DOMElement:s(2611),DynamicBitmapText:s(72566),Extern:s(56315),Graphics:s(1201),Group:s(3385),Image:s(2117),Layer:s(20005),Particles:s(676),PathFollower:s(90145),RenderTexture:s(60505),Rope:s(96819),Sprite:s(46409),StaticBitmapText:s(34914),Text:s(68005),TileSprite:s(91681),Zone:s(84175),Video:s(89025),Arc:s(42563),Curve:s(40511),Ellipse:s(1543),Grid:s(34137),IsoBox:s(3933),IsoTriangle:s(49803),Line:s(2481),Polygon:s(64827),Rectangle:s(87959),Star:s(93697),Triangle:s(45245)},Creators:{Blitter:s(9403),Container:s(77143),DynamicBitmapText:s(11164),Graphics:s(87079),Group:s(94975),Image:s(82459),Layer:s(25179),Particles:s(92730),RenderTexture:s(34495),Rope:s(26209),Sprite:s(15567),StaticBitmapText:s(57336),Text:s(71259),TileSprite:s(14167),Zone:s(95261),Video:s(11511)}};u.Shader=s(20071),u.Mesh=s(4703),u.NineSlice=s(28103),u.PointLight=s(80321),u.Plane=s(33663),u.Factories.Shader=s(74177),u.Factories.Mesh=s(9225),u.Factories.NineSlice=s(47521),u.Factories.PointLight=s(71255),u.Factories.Plane=s(30985),u.Creators.Shader=s(54935),u.Creators.Mesh=s(20527),u.Creators.NineSlice=s(28279),u.Creators.PointLight=s(39829),u.Creators.Plane=s(56015),u.Light=s(41432),u.LightsManager=s(61356),u.LightsPlugin=s(88992),o.exports=u},93595:(o,m,s)=>{/** + */var u={Events:s(51708),DisplayList:s(8050),GameObjectCreator:s(44603),GameObjectFactory:s(39429),UpdateList:s(45027),Components:s(31401),GetCalcMatrix:s(91296),BuildGameObject:s(25305),BuildGameObjectAnimation:s(13059),GameObject:s(95643),BitmapText:s(22186),Blitter:s(6107),Bob:s(46590),Container:s(31559),DOMElement:s(3069),DynamicBitmapText:s(2638),Extern:s(42421),Graphics:s(43831),Group:s(26479),Image:s(88571),Layer:s(93595),Particles:s(18404),PathFollower:s(1159),RenderTexture:s(591),RetroFont:s(196),Rope:s(77757),Sprite:s(68287),Text:s(50171),GetTextSize:s(14220),MeasureText:s(79557),TextStyle:s(35762),TileSprite:s(20839),Zone:s(41481),Video:s(18471),Shape:s(17803),Arc:s(23629),Curve:s(89),Ellipse:s(19921),Grid:s(30479),IsoBox:s(61475),IsoTriangle:s(16933),Line:s(57847),Polygon:s(24949),Rectangle:s(74561),Star:s(55911),Triangle:s(36931),Factories:{Blitter:s(12709),Container:s(24961),DOMElement:s(2611),DynamicBitmapText:s(72566),Extern:s(56315),Graphics:s(1201),Group:s(3385),Image:s(2117),Layer:s(20005),Particles:s(676),PathFollower:s(90145),RenderTexture:s(60505),Rope:s(96819),Sprite:s(46409),StaticBitmapText:s(34914),Text:s(68005),TileSprite:s(91681),Zone:s(84175),Video:s(89025),Arc:s(42563),Curve:s(40511),Ellipse:s(1543),Grid:s(34137),IsoBox:s(3933),IsoTriangle:s(49803),Line:s(2481),Polygon:s(64827),Rectangle:s(87959),Star:s(93697),Triangle:s(45245)},Creators:{Blitter:s(9403),Container:s(77143),DynamicBitmapText:s(11164),Graphics:s(87079),Group:s(94975),Image:s(82459),Layer:s(25179),Particles:s(92730),RenderTexture:s(34495),Rope:s(26209),Sprite:s(15567),StaticBitmapText:s(57336),Text:s(71259),TileSprite:s(14167),Zone:s(95261),Video:s(11511)}};u.Shader=s(20071),u.Mesh=s(4703),u.NineSlice=s(28103),u.PointLight=s(80321),u.Plane=s(33663),u.Factories.Shader=s(74177),u.Factories.Mesh=s(9225),u.Factories.NineSlice=s(47521),u.Factories.PointLight=s(71255),u.Factories.Plane=s(30985),u.Creators.Shader=s(54935),u.Creators.Mesh=s(20527),u.Creators.NineSlice=s(28279),u.Creators.PointLight=s(39829),u.Creators.Plane=s(56015),u.Light=s(41432),u.LightsManager=s(61356),u.LightsPlugin=s(88992),o.exports=u},93595:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(10312),T=s(83419),d=s(31401),c=s(53774),A=s(45893),h=s(50792),f=s(51708),S=s(73162),O=s(33963),L=s(44594),p=s(19186),N=new T({Extends:S,Mixins:[d.AlphaSingle,d.BlendMode,d.Depth,d.Mask,d.PostPipeline,d.Visible,h,O],initialize:P(function(C,v){S.call(this,C),h.call(this),this.scene=C,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=C.sys,this.events=C.sys.events,this.sortChildrenFlag=!1,this.addCallback=this.addChildCallback,this.removeCallback=this.removeChildCallback,this.initPostPipeline(),this.clearAlpha(),this.setBlendMode(u.SKIP_CHECK),v&&this.add(v),C.sys.queueDepthSort()},"Layer"),setActive:function(g){return this.active=g,this},setName:function(g){return this.name=g,this},setState:function(g){return this.state=g,this},setDataEnabled:function(){return this.data||(this.data=new A(this)),this},setData:function(g,C){return this.data||(this.data=new A(this)),this.data.set(g,C),this},incData:function(g,C){return this.data||(this.data=new A(this)),this.data.inc(g,C),this},toggleData:function(g){return this.data||(this.data=new A(this)),this.data.toggle(g),this},getData:function(g){return this.data||(this.data=new A(this)),this.data.get(g)},setInteractive:function(){return this},disableInteractive:function(){return this},removeInteractive:function(){return this},addedToScene:function(){},removedFromScene:function(){},update:function(){},toJSON:function(){return c(this)},willRender:function(g){return!(this.renderFlags!==15||this.list.length===0||this.cameraFilter!==0&&this.cameraFilter&g.id)},getIndexList:function(){for(var g=this,C=this.parentContainer,v=[];C&&(v.unshift(C.getIndex(g)),g=C,C.parentContainer);)C=C.parentContainer;return v.unshift(this.displayList.getIndex(g)),v},addChildCallback:function(g){var C=g.displayList;C&&C!==this&&g.removeFromDisplayList(),g.displayList||(this.queueDepthSort(),g.displayList=this,g.emit(f.ADDED_TO_SCENE,g,this.scene),this.events.emit(L.ADDED_TO_SCENE,g,this.scene))},removeChildCallback:function(g){this.queueDepthSort(),g.displayList=null,g.emit(f.REMOVED_FROM_SCENE,g,this.scene),this.events.emit(L.REMOVED_FROM_SCENE,g,this.scene)},queueDepthSort:function(){this.sortChildrenFlag=!0},depthSort:function(){this.sortChildrenFlag&&(p(this.list,this.sortByDepth),this.sortChildrenFlag=!1)},sortByDepth:function(g,C){return g._depth-C._depth},getChildren:function(){return this.list},addToDisplayList:function(g){return g===void 0&&(g=this.scene.sys.displayList),this.displayList&&this.displayList!==g&&this.removeFromDisplayList(),g.exists(this)||(this.displayList=g,g.add(this,!0),g.queueDepthSort(),this.emit(f.ADDED_TO_SCENE,this,this.scene),g.events.emit(L.ADDED_TO_SCENE,this,this.scene)),this},removeFromDisplayList:function(){var g=this.displayList||this.scene.sys.displayList;return g.exists(this)&&(g.remove(this,!0),g.queueDepthSort(),this.displayList=null,this.emit(f.REMOVED_FROM_SCENE,this,this.scene),g.events.emit(L.REMOVED_FROM_SCENE,this,this.scene)),this},destroy:function(g){if(!(!this.scene||this.ignoreDestroy)){this.emit(f.DESTROY,this);for(var C=this.list;C.length;)C[0].destroy(g);this.removeAllListeners(),this.resetPostPipeline(!0),this.displayList&&(this.displayList.remove(this,!0,!1),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}}});o.exports=N},2956:o=>{/** + */var u=s(10312),T=s(83419),A=s(31401),c=s(53774),d=s(45893),h=s(50792),f=s(51708),S=s(73162),R=s(33963),L=s(44594),p=s(19186),N=new T({Extends:S,Mixins:[A.AlphaSingle,A.BlendMode,A.Depth,A.Mask,A.PostPipeline,A.Visible,h,R],initialize:v(function(C,P){S.call(this,C),h.call(this),this.scene=C,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=C.sys,this.events=C.sys.events,this.sortChildrenFlag=!1,this.addCallback=this.addChildCallback,this.removeCallback=this.removeChildCallback,this.initPostPipeline(),this.clearAlpha(),this.setBlendMode(u.SKIP_CHECK),P&&this.add(P),C.sys.queueDepthSort()},"Layer"),setActive:function(g){return this.active=g,this},setName:function(g){return this.name=g,this},setState:function(g){return this.state=g,this},setDataEnabled:function(){return this.data||(this.data=new d(this)),this},setData:function(g,C){return this.data||(this.data=new d(this)),this.data.set(g,C),this},incData:function(g,C){return this.data||(this.data=new d(this)),this.data.inc(g,C),this},toggleData:function(g){return this.data||(this.data=new d(this)),this.data.toggle(g),this},getData:function(g){return this.data||(this.data=new d(this)),this.data.get(g)},setInteractive:function(){return this},disableInteractive:function(){return this},removeInteractive:function(){return this},addedToScene:function(){},removedFromScene:function(){},update:function(){},toJSON:function(){return c(this)},willRender:function(g){return!(this.renderFlags!==15||this.list.length===0||this.cameraFilter!==0&&this.cameraFilter&g.id)},getIndexList:function(){for(var g=this,C=this.parentContainer,P=[];C&&(P.unshift(C.getIndex(g)),g=C,C.parentContainer);)C=C.parentContainer;return P.unshift(this.displayList.getIndex(g)),P},addChildCallback:function(g){var C=g.displayList;C&&C!==this&&g.removeFromDisplayList(),g.displayList||(this.queueDepthSort(),g.displayList=this,g.emit(f.ADDED_TO_SCENE,g,this.scene),this.events.emit(L.ADDED_TO_SCENE,g,this.scene))},removeChildCallback:function(g){this.queueDepthSort(),g.displayList=null,g.emit(f.REMOVED_FROM_SCENE,g,this.scene),this.events.emit(L.REMOVED_FROM_SCENE,g,this.scene)},queueDepthSort:function(){this.sortChildrenFlag=!0},depthSort:function(){this.sortChildrenFlag&&(p(this.list,this.sortByDepth),this.sortChildrenFlag=!1)},sortByDepth:function(g,C){return g._depth-C._depth},getChildren:function(){return this.list},addToDisplayList:function(g){return g===void 0&&(g=this.scene.sys.displayList),this.displayList&&this.displayList!==g&&this.removeFromDisplayList(),g.exists(this)||(this.displayList=g,g.add(this,!0),g.queueDepthSort(),this.emit(f.ADDED_TO_SCENE,this,this.scene),g.events.emit(L.ADDED_TO_SCENE,this,this.scene)),this},removeFromDisplayList:function(){var g=this.displayList||this.scene.sys.displayList;return g.exists(this)&&(g.remove(this,!0),g.queueDepthSort(),this.displayList=null,this.emit(f.REMOVED_FROM_SCENE,this,this.scene),g.events.emit(L.REMOVED_FROM_SCENE,this,this.scene)),this},destroy:function(g){if(!(!this.scene||this.ignoreDestroy)){this.emit(f.DESTROY,this);for(var C=this.list;C.length;)C[0].destroy(g);this.removeAllListeners(),this.resetPostPipeline(!0),this.displayList&&(this.displayList.remove(this,!0,!1),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}}});o.exports=N},2956:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){var d=u.list;if(d.length!==0){u.depthSort();var c=u.blendMode!==-1;c||s.setBlendMode(0);var A=u._alpha;u.mask&&u.mask.preRenderCanvas(s,null,T);for(var h=0;h{/** + */var O=v(function(s,u,T){var A=u.list;if(A.length!==0){u.depthSort();var c=u.blendMode!==-1;c||s.setBlendMode(0);var d=u._alpha;u.mask&&u.mask.preRenderCanvas(s,null,T);for(var h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(25305),T=s(93595),d=s(44603),c=s(23568);d.register("layer",function(A,h){A===void 0&&(A={});var f=c(A,"children",null),S=new T(this.scene,f);return h!==void 0&&(A.add=h),u(this.scene,S,A),S})},20005:(o,m,s)=>{/** + */var u=s(25305),T=s(93595),A=s(44603),c=s(23568);A.register("layer",function(d,h){d===void 0&&(d={});var f=c(d,"children",null),S=new T(this.scene,f);return h!==void 0&&(d.add=h),u(this.scene,S,d),S})},20005:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(93595),T=s(39429);T.register("layer",function(d){return this.displayList.add(new u(this.scene,d))})},33963:(o,m,s)=>{/** + */var u=s(93595),T=s(39429);T.register("layer",function(A){return this.displayList.add(new u(this.scene,A))})},33963:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(15869),d=s(2956),o.exports={renderWebGL:T,renderCanvas:d}},15869:o=>{/** + */var u=s(29747),T=u,A=u;T=s(15869),A=s(2956),o.exports={renderWebGL:T,renderCanvas:A}},15869:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){var d=u.list,c=d.length;if(c!==0){u.depthSort(),s.pipelines.preBatch(u);var A=u.blendMode!==-1;A||s.setBlendMode(0);for(var h=u.alpha,f=0;f{/** + */var O=v(function(s,u,T){var A=u.list,c=A.length;if(c!==0){u.depthSort(),s.pipelines.preBatch(u);var d=u.blendMode!==-1;d||s.setBlendMode(0);for(var h=u.alpha,f=0;f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(96503),T=s(83419),d=s(31401),c=s(51767),A=s(70554),h=new T({Extends:u,Mixins:[d.Origin,d.ScrollFactor,d.Visible],initialize:P(function(S,O,L,p,N,g,C){u.call(this,S,O,L),this.color=new c(p,N,g),this.intensity=C,this.renderFlags=15,this.cameraFilter=0,this.setScrollFactor(1,1),this.setOrigin(),this.setDisplayOrigin(L)},"Light"),displayWidth:{get:function(){return this.diameter},set:function(f){this.diameter=f}},displayHeight:{get:function(){return this.diameter},set:function(f){this.diameter=f}},width:{get:function(){return this.diameter},set:function(f){this.diameter=f}},height:{get:function(){return this.diameter},set:function(f){this.diameter=f}},willRender:function(f){return!(h.RENDER_MASK!==this.renderFlags||this.cameraFilter!==0&&this.cameraFilter&f.id)},setColor:function(f){var S=A.getFloatsFromUintRGB(f);return this.color.set(S[0],S[1],S[2]),this},setIntensity:function(f){return this.intensity=f,this},setRadius:function(f){return this.radius=f,this}});h.RENDER_MASK=15,o.exports=h},61356:(o,m,s)=>{/** + */var u=s(96503),T=s(83419),A=s(31401),c=s(51767),d=s(70554),h=new T({Extends:u,Mixins:[A.Origin,A.ScrollFactor,A.Visible],initialize:v(function(S,R,L,p,N,g,C){u.call(this,S,R,L),this.color=new c(p,N,g),this.intensity=C,this.renderFlags=15,this.cameraFilter=0,this.setScrollFactor(1,1),this.setOrigin(),this.setDisplayOrigin(L)},"Light"),displayWidth:{get:function(){return this.diameter},set:function(f){this.diameter=f}},displayHeight:{get:function(){return this.diameter},set:function(f){this.diameter=f}},width:{get:function(){return this.diameter},set:function(f){this.diameter=f}},height:{get:function(){return this.diameter},set:function(f){this.diameter=f}},willRender:function(f){return!(h.RENDER_MASK!==this.renderFlags||this.cameraFilter!==0&&this.cameraFilter&f.id)},setColor:function(f){var S=d.getFloatsFromUintRGB(f);return this.color.set(S[0],S[1],S[2]),this},setIntensity:function(f){return this.intensity=f,this},setRadius:function(f){return this.radius=f,this}});h.RENDER_MASK=15,o.exports=h},61356:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(81491),T=s(83419),d=s(20339),c=s(41432),A=s(80321),h=s(51767),f=s(19133),S=s(19186),O=s(70554),L=new T({initialize:P(function(){this.lights=[],this.ambientColor=new h(.1,.1,.1),this.active=!1,this.maxLights=-1,this.visibleLights=0},"LightsManager"),addPointLight:function(p,N,g,C,v,M){return this.systems.displayList.add(new A(this.scene,p,N,g,C,v,M))},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(p){for(var N=this.lights,g=p.worldView,C=[],v=0;vthis.maxLights&&(S(C,this.sortByDistance),C=C.slice(0,this.maxLights)),this.visibleLights=C.length,C},sortByDistance:function(p,N){return p.distance>=N.distance},setAmbientColor:function(p){var N=O.getFloatsFromUintRGB(p);return this.ambientColor.set(N[0],N[1],N[2]),this},getMaxVisibleLights:function(){return this.maxLights},getLightCount:function(){return this.lights.length},addLight:function(p,N,g,C,v){p===void 0&&(p=0),N===void 0&&(N=0),g===void 0&&(g=128),C===void 0&&(C=16777215),v===void 0&&(v=1);var M=O.getFloatsFromUintRGB(C),D=new c(p,N,g,M[0],M[1],M[2],v);return this.lights.push(D),D},removeLight:function(p){var N=this.lights.indexOf(p);return N>=0&&f(this.lights,N),this},shutdown:function(){this.lights.length=0},destroy:function(){this.shutdown()}});o.exports=L},88992:(o,m,s)=>{/** + */var u=s(81491),T=s(83419),A=s(20339),c=s(41432),d=s(80321),h=s(51767),f=s(19133),S=s(19186),R=s(70554),L=new T({initialize:v(function(){this.lights=[],this.ambientColor=new h(.1,.1,.1),this.active=!1,this.maxLights=-1,this.visibleLights=0},"LightsManager"),addPointLight:function(p,N,g,C,P,M){return this.systems.displayList.add(new d(this.scene,p,N,g,C,P,M))},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(p){for(var N=this.lights,g=p.worldView,C=[],P=0;Pthis.maxLights&&(S(C,this.sortByDistance),C=C.slice(0,this.maxLights)),this.visibleLights=C.length,C},sortByDistance:function(p,N){return p.distance>=N.distance},setAmbientColor:function(p){var N=R.getFloatsFromUintRGB(p);return this.ambientColor.set(N[0],N[1],N[2]),this},getMaxVisibleLights:function(){return this.maxLights},getLightCount:function(){return this.lights.length},addLight:function(p,N,g,C,P){p===void 0&&(p=0),N===void 0&&(N=0),g===void 0&&(g=128),C===void 0&&(C=16777215),P===void 0&&(P=1);var M=R.getFloatsFromUintRGB(C),D=new c(p,N,g,M[0],M[1],M[2],P);return this.lights.push(D),D},removeLight:function(p){var N=this.lights.indexOf(p);return N>=0&&f(this.lights,N),this},shutdown:function(){this.lights.length=0},destroy:function(){this.shutdown()}});o.exports=L},88992:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(61356),d=s(37277),c=s(44594),A=new u({Extends:T,initialize:P(function(f){this.scene=f,this.systems=f.sys,f.sys.settings.isBooted||f.sys.events.once(c.BOOT,this.boot,this),T.call(this)},"LightsPlugin"),boot:function(){var h=this.systems.events;h.on(c.SHUTDOWN,this.shutdown,this),h.on(c.DESTROY,this.destroy,this)},destroy:function(){this.shutdown(),this.scene=void 0,this.systems=void 0}});d.register("LightsPlugin",A,"lights"),o.exports=A},4703:(o,m,s)=>{/** + */var u=s(83419),T=s(61356),A=s(37277),c=s(44594),d=new u({Extends:T,initialize:v(function(f){this.scene=f,this.systems=f.sys,f.sys.settings.isBooted||f.sys.events.once(c.BOOT,this.boot,this),T.call(this)},"LightsPlugin"),boot:function(){var h=this.systems.events;h.on(c.SHUTDOWN,this.shutdown,this),h.on(c.DESTROY,this.destroy,this)},destroy:function(){this.shutdown(),this.scene=void 0,this.systems=void 0}});A.register("LightsPlugin",d,"lights"),o.exports=d},4703:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(31401),d=s(39506),c=s(83997),A=s(95643),h=s(34684),f=s(92515),S=s(91296),O=s(37867),L=s(29807),p=s(43396),N=s(19186),g=s(25836),C=s(39318),v=new u({Extends:A,Mixins:[T.AlphaSingle,T.BlendMode,T.Depth,T.Mask,T.Pipeline,T.PostPipeline,T.ScrollFactor,T.Size,T.Texture,T.Transform,T.Visible,L],initialize:P(function(D,G,H,B,_,w,b,F,k,V,Z,$){G===void 0&&(G=0),H===void 0&&(H=0),B===void 0&&(B="__WHITE"),A.call(this,D,"Mesh"),this.faces=[],this.vertices=[],this.tintFill=!1,this.debugCallback=null,this.debugGraphic=null,this.hideCCW=!0,this.modelPosition=new g,this.modelScale=new g(1,1,1),this.modelRotation=new g,this.dirtyCache=[0,0,0,0,0,0,0,0,0,0,0,0],this.transformMatrix=new O,this.viewPosition=new g,this.viewMatrix=new O,this.projectionMatrix=new O,this.totalRendered=0,this.totalFrame=0,this.ignoreDirtyCache=!1,this.fov,this.displayOriginX=0,this.displayOriginY=0;var Q=D.sys.renderer;this.setPosition(G,H),this.setTexture(B,_),this.setSize(Q.width,Q.height),this.initPipeline(),this.initPostPipeline(),this.setPerspective(Q.width,Q.height),w&&this.addVertices(w,b,F,k,V,Z,$)},"Mesh"),addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},panX:function(M){return this.viewPosition.addScale(g.LEFT,M),this.dirtyCache[10]=1,this},panY:function(M){return this.viewPosition.y+=g.DOWN.y*M,this.dirtyCache[10]=1,this},panZ:function(M){return this.viewPosition.z+=M,this.dirtyCache[10]=1,this},setPerspective:function(M,D,G,H,B){return G===void 0&&(G=45),H===void 0&&(H=.01),B===void 0&&(B=1e3),this.fov=G,this.projectionMatrix.perspective(d(G),M/D,H,B),this.dirtyCache[10]=1,this.dirtyCache[11]=0,this},setOrtho:function(M,D,G,H){return M===void 0&&(M=this.scene.sys.renderer.getAspectRatio()),D===void 0&&(D=1),G===void 0&&(G=-1e3),H===void 0&&(H=1e3),this.fov=0,this.projectionMatrix.ortho(-M,M,-D,D,G,H),this.dirtyCache[10]=1,this.dirtyCache[11]=1,this},clear:function(){return this.faces.forEach(function(M){M.destroy()}),this.faces=[],this.vertices=[],this},addVerticesFromObj:function(M,D,G,H,B,_,w,b,F){var k=this.scene.sys.cache.obj.get(M),V;return k&&(V=h(k,this,D,G,H,B,_,w,b,F)),(!V||V.verts.length===0)&&console.warn("Mesh.addVerticesFromObj data empty:",M),this},sortByDepth:function(M,D){return M.depth-D.depth},depthSort:function(){return N(this.faces,this.sortByDepth),this},addVertex:function(M,D,G,H,B,_,w){var b=new C(M,D,G,H,B,_,w);return this.vertices.push(b),b},addFace:function(M,D,G){var H=new c(M,D,G);return this.faces.push(H),this.dirtyCache[9]=-1,H},addVertices:function(M,D,G,H,B,_,w){var b=f(M,D,G,H,B,_,w);return b?(this.faces=this.faces.concat(b.faces),this.vertices=this.vertices.concat(b.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(M){return this.faces[M]},hasFaceAt:function(M,D,G){G===void 0&&(G=this.scene.sys.cameras.main);for(var H=S(this,G).calc,B=this.faces,_=0;_{/** + */var u=s(83419),T=s(31401),A=s(39506),c=s(83997),d=s(95643),h=s(34684),f=s(92515),S=s(91296),R=s(37867),L=s(29807),p=s(43396),N=s(19186),g=s(25836),C=s(39318),P=new u({Extends:d,Mixins:[T.AlphaSingle,T.BlendMode,T.Depth,T.Mask,T.Pipeline,T.PostPipeline,T.ScrollFactor,T.Size,T.Texture,T.Transform,T.Visible,L],initialize:v(function(D,G,H,B,b,w,_,F,x,V,Z,$){G===void 0&&(G=0),H===void 0&&(H=0),B===void 0&&(B="__WHITE"),d.call(this,D,"Mesh"),this.faces=[],this.vertices=[],this.tintFill=!1,this.debugCallback=null,this.debugGraphic=null,this.hideCCW=!0,this.modelPosition=new g,this.modelScale=new g(1,1,1),this.modelRotation=new g,this.dirtyCache=[0,0,0,0,0,0,0,0,0,0,0,0],this.transformMatrix=new R,this.viewPosition=new g,this.viewMatrix=new R,this.projectionMatrix=new R,this.totalRendered=0,this.totalFrame=0,this.ignoreDirtyCache=!1,this.fov,this.displayOriginX=0,this.displayOriginY=0;var Q=D.sys.renderer;this.setPosition(G,H),this.setTexture(B,b),this.setSize(Q.width,Q.height),this.initPipeline(),this.initPostPipeline(),this.setPerspective(Q.width,Q.height),w&&this.addVertices(w,_,F,x,V,Z,$)},"Mesh"),addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},panX:function(M){return this.viewPosition.addScale(g.LEFT,M),this.dirtyCache[10]=1,this},panY:function(M){return this.viewPosition.y+=g.DOWN.y*M,this.dirtyCache[10]=1,this},panZ:function(M){return this.viewPosition.z+=M,this.dirtyCache[10]=1,this},setPerspective:function(M,D,G,H,B){return G===void 0&&(G=45),H===void 0&&(H=.01),B===void 0&&(B=1e3),this.fov=G,this.projectionMatrix.perspective(A(G),M/D,H,B),this.dirtyCache[10]=1,this.dirtyCache[11]=0,this},setOrtho:function(M,D,G,H){return M===void 0&&(M=this.scene.sys.renderer.getAspectRatio()),D===void 0&&(D=1),G===void 0&&(G=-1e3),H===void 0&&(H=1e3),this.fov=0,this.projectionMatrix.ortho(-M,M,-D,D,G,H),this.dirtyCache[10]=1,this.dirtyCache[11]=1,this},clear:function(){return this.faces.forEach(function(M){M.destroy()}),this.faces=[],this.vertices=[],this},addVerticesFromObj:function(M,D,G,H,B,b,w,_,F){var x=this.scene.sys.cache.obj.get(M),V;return x&&(V=h(x,this,D,G,H,B,b,w,_,F)),(!V||V.verts.length===0)&&console.warn("Mesh.addVerticesFromObj data empty:",M),this},sortByDepth:function(M,D){return M.depth-D.depth},depthSort:function(){return N(this.faces,this.sortByDepth),this},addVertex:function(M,D,G,H,B,b,w){var _=new C(M,D,G,H,B,b,w);return this.vertices.push(_),_},addFace:function(M,D,G){var H=new c(M,D,G);return this.faces.push(H),this.dirtyCache[9]=-1,H},addVertices:function(M,D,G,H,B,b,w){var _=f(M,D,G,H,B,b,w);return _?(this.faces=this.faces.concat(_.faces),this.vertices=this.vertices.concat(_.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(M){return this.faces[M]},hasFaceAt:function(M,D,G){G===void 0&&(G=this.scene.sys.cameras.main);for(var H=S(this,G).calc,B=this.faces,b=0;b{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(){},"MeshCanvasRenderer");o.exports=m},20527:(o,m,s)=>{/** + */var O=v(function(){},"MeshCanvasRenderer");o.exports=O},20527:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(25305),T=s(44603),d=s(23568),c=s(35154),A=s(4703);T.register("mesh",function(h,f){h===void 0&&(h={});var S=d(h,"key",null),O=d(h,"frame",null),L=c(h,"vertices",[]),p=c(h,"uvs",[]),N=c(h,"indicies",[]),g=c(h,"containsZ",!1),C=c(h,"normals",[]),v=c(h,"colors",16777215),M=c(h,"alphas",1),D=new A(this.scene,0,0,S,O,L,p,N,g,C,v,M);return f!==void 0&&(h.add=f),u(this.scene,D,h),D})},9225:(o,m,s)=>{/** + */var u=s(25305),T=s(44603),A=s(23568),c=s(35154),d=s(4703);T.register("mesh",function(h,f){h===void 0&&(h={});var S=A(h,"key",null),R=A(h,"frame",null),L=c(h,"vertices",[]),p=c(h,"uvs",[]),N=c(h,"indicies",[]),g=c(h,"containsZ",!1),C=c(h,"normals",[]),P=c(h,"colors",16777215),M=c(h,"alphas",1),D=new d(this.scene,0,0,S,R,L,p,N,g,C,P,M);return f!==void 0&&(h.add=f),u(this.scene,D,h),D})},9225:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(4703),T=s(39429);T.register("mesh",function(d,c,A,h,f,S,O,L,p,N,g){return this.displayList.add(new u(this.scene,d,c,A,h,f,S,O,L,p,N,g))})},29807:(o,m,s)=>{/** + */var u=s(4703),T=s(39429);T.register("mesh",function(A,c,d,h,f,S,R,L,p,N,g){return this.displayList.add(new u(this.scene,A,c,d,h,f,S,R,L,p,N,g))})},29807:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(48833),d=s(36488),o.exports={renderWebGL:T,renderCanvas:d}},48833:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(48833),A=s(36488),o.exports={renderWebGL:T,renderCanvas:A}},48833:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91296),T=P(function(d,c,A,h){var f=c.faces,S=f.length;if(S!==0){A.addToRenderList(c);var O=d.pipelines.set(c.pipeline,c),L=u(c,A,h).calc;d.pipelines.preBatch(c);for(var p=O.setGameObject(c),N=O.vertexViewF32,g=O.vertexViewU32,C=O.vertexCount*O.currentShader.vertexComponentCount-1,v=c.tintFill,M=[],D=c.debugCallback,G=L.a,H=L.b,B=L.c,_=L.d,w=L.e,b=L.f,F=c.viewPosition.z,k=c.hideCCW,V=A.roundPixels,Z=A.alpha*c.alpha,$=0,Q=0;Q{/** + */var u=s(91296),T=v(function(A,c,d,h){var f=c.faces,S=f.length;if(S!==0){d.addToRenderList(c);var R=A.pipelines.set(c.pipeline,c),L=u(c,d,h).calc;A.pipelines.preBatch(c);for(var p=R.setGameObject(c),N=R.vertexViewF32,g=R.vertexViewU32,C=R.vertexCount*R.currentShader.vertexComponentCount-1,P=c.tintFill,M=[],D=c.debugCallback,G=L.a,H=L.b,B=L.c,b=L.d,w=L.e,_=L.f,F=c.viewPosition.z,x=c.hideCCW,V=d.roundPixels,Z=d.alpha*c.alpha,$=0,Q=0;Q{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(31401),d=s(95643),c=s(78023),A=s(39318),h=new u({Extends:d,Mixins:[T.AlphaSingle,T.BlendMode,T.Depth,T.GetBounds,T.Mask,T.Origin,T.Pipeline,T.PostPipeline,T.ScrollFactor,T.Texture,T.Transform,T.Visible,c],initialize:P(function(S,O,L,p,N,g,C,v,M,D,G){d.call(this,S,"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;var H=S.textures.getFrame(p,N);this.is3Slice=!D&&!G,H.scale9&&(this.is3Slice=H.is3Slice);for(var B=this.is3Slice?18:54,_=0;_{/** + */var u=s(83419),T=s(31401),A=s(95643),c=s(78023),d=s(39318),h=new u({Extends:A,Mixins:[T.AlphaSingle,T.BlendMode,T.Depth,T.GetBounds,T.Mask,T.Origin,T.Pipeline,T.PostPipeline,T.ScrollFactor,T.Texture,T.Transform,T.Visible,c],initialize:v(function(S,R,L,p,N,g,C,P,M,D,G){A.call(this,S,"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;var H=S.textures.getFrame(p,N);this.is3Slice=!D&&!G,H.scale9&&(this.is3Slice=H.is3Slice);for(var B=this.is3Slice?18:54,b=0;b{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(25305),T=s(44603),d=s(23568),c=s(35154),A=s(28103);T.register("nineslice",function(h,f){h===void 0&&(h={});var S=d(h,"key",null),O=d(h,"frame",null),L=c(h,"width",256),p=c(h,"height",256),N=c(h,"leftWidth",10),g=c(h,"rightWidth",10),C=c(h,"topHeight",0),v=c(h,"bottomHeight",0),M=new A(this.scene,0,0,S,O,L,p,N,g,C,v);return f!==void 0&&(h.add=f),u(this.scene,M,h),M})},47521:(o,m,s)=>{/** + */var u=s(25305),T=s(44603),A=s(23568),c=s(35154),d=s(28103);T.register("nineslice",function(h,f){h===void 0&&(h={});var S=A(h,"key",null),R=A(h,"frame",null),L=c(h,"width",256),p=c(h,"height",256),N=c(h,"leftWidth",10),g=c(h,"rightWidth",10),C=c(h,"topHeight",0),P=c(h,"bottomHeight",0),M=new d(this.scene,0,0,S,R,L,p,N,g,C,P);return f!==void 0&&(h.add=f),u(this.scene,M,h),M})},47521:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(28103),T=s(39429);T.register("nineslice",function(d,c,A,h,f,S,O,L,p,N){return this.displayList.add(new u(this.scene,d,c,A,h,f,S,O,L,p,N))})},78023:(o,m,s)=>{/** + */var u=s(28103),T=s(39429);T.register("nineslice",function(A,c,d,h,f,S,R,L,p,N){return this.displayList.add(new u(this.scene,A,c,d,h,f,S,R,L,p,N))})},78023:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(52230),o.exports={renderWebGL:T,renderCanvas:d}},52230:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(52230),o.exports={renderWebGL:T,renderCanvas:A}},52230:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91296),T=s(70554),d=P(function(c,A,h,f){var S=A.vertices,O=S.length;if(O!==0){h.addToRenderList(A);var L=c.pipelines.set(A.pipeline,A),p=u(A,h,f,!1).calc;c.pipelines.preBatch(A);var N=L.setGameObject(A),g=L.vertexViewF32,C=L.vertexViewU32,v=L.vertexCount*L.currentShader.vertexComponentCount-1,M=h.roundPixels,D=A.tintFill,G=h.alpha*A.alpha,H=T.getTintAppendFloatAlpha(A.tint,G),B=L.vertexAvailable(),_=-1;B{/** + */var u=s(91296),T=s(70554),A=v(function(c,d,h,f){var S=d.vertices,R=S.length;if(R!==0){h.addToRenderList(d);var L=c.pipelines.set(d.pipeline,d),p=u(d,h,f,!1).calc;c.pipelines.preBatch(d);var N=L.setGameObject(d),g=L.vertexViewF32,C=L.vertexViewU32,P=L.vertexCount*L.currentShader.vertexComponentCount-1,M=h.roundPixels,D=d.tintFill,G=h.alpha*d.alpha,H=T.getTintAppendFloatAlpha(d.tint,G),B=L.vertexAvailable(),b=-1;B{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(44777),d=s(37589),c=s(6113),A=s(91389),h=s(90664),f=new u({Extends:T,initialize:P(function(O){T.call(this,O,null,!1),this.active=!1,this.easeName="Linear",this.r=[],this.g=[],this.b=[]},"EmitterColorOp"),getMethod:function(){return this.propertyValue===null?0:9},setMethods:function(){var S=this.propertyValue,O=S,L=this.defaultEmit,p=this.defaultUpdate;if(this.method===9){this.start=S[0],this.ease=c("Linear"),this.interpolation=A("linear"),L=this.easedValueEmit,p=this.easeValueUpdate,O=S[0],this.active=!0;for(var N=0;N{/** + */var u=s(83419),T=s(44777),A=s(37589),c=s(6113),d=s(91389),h=s(90664),f=new u({Extends:T,initialize:v(function(R){T.call(this,R,null,!1),this.active=!1,this.easeName="Linear",this.r=[],this.g=[],this.b=[]},"EmitterColorOp"),getMethod:function(){return this.propertyValue===null?0:9},setMethods:function(){var S=this.propertyValue,R=S,L=this.defaultEmit,p=this.defaultUpdate;if(this.method===9){this.start=S[0],this.ease=c("Linear"),this.interpolation=d("linear"),L=this.easedValueEmit,p=this.easeValueUpdate,R=S[0],this.active=!0;for(var N=0;N{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(30976),T=s(45319),d=s(83419),c=s(99472),A=s(6113),h=s(95540),f=s(91389),S=s(77720),O=s(15994),L=new d({initialize:P(function(N,g,C){C===void 0&&(C=!1),this.propertyKey=N,this.propertyValue=g,this.defaultValue=g,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=C,this.onEmit=this.defaultEmit,this.onUpdate=this.defaultUpdate,this.active=!0,this.method=0,this._onEmit,this._onUpdate},"EmitterOp"),loadConfig:function(p,N){p===void 0&&(p={}),N&&(this.propertyKey=N),this.propertyValue=h(p,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(p){var N;switch(this.method){case 1:case 3:case 8:N=p;break;case 2:this.propertyValue.indexOf(p)>=0&&(N=p);break;case 4:var g=(this.end-this.start)/this.steps;N=S(p,g),this.counter=N;break;case 5:case 6:case 7:N=T(p,this.start,this.end);break;case 9:N=this.start[0];break}return this.current=N,this},getMethod:function(){var p=this.propertyValue;if(p===null)return 0;var N=typeof p;if(N==="number")return 1;if(Array.isArray(p))return 2;if(N==="function")return 3;if(N==="object"){if(this.hasBoth(p,"start","end"))return this.has(p,"steps")?4:5;if(this.hasBoth(p,"min","max"))return 6;if(this.has(p,"random"))return 7;if(this.hasEither(p,"onEmit","onUpdate"))return 8;if(this.hasEither(p,"values","interpolation"))return 9}return 0},setMethods:function(){var p=this.propertyValue,N=p,g=this.defaultEmit,C=this.defaultUpdate;switch(this.method){case 1:g=this.staticValueEmit;break;case 2:g=this.randomStaticValueEmit,N=p[0];break;case 3:this._onEmit=p,g=this.proxyEmit;break;case 4:this.start=p.start,this.end=p.end,this.steps=p.steps,this.counter=this.start,this.yoyo=this.has(p,"yoyo")?p.yoyo:!1,this.direction=0,g=this.steppedEmit,N=this.start;break;case 5:this.start=p.start,this.end=p.end;var v=this.has(p,"ease")?p.ease:"Linear";this.ease=A(v,p.easeParams),g=this.has(p,"random")&&p.random?this.randomRangedValueEmit:this.easedValueEmit,C=this.easeValueUpdate,N=this.start;break;case 6:this.start=p.min,this.end=p.max,g=this.has(p,"int")&&p.int?this.randomRangedIntEmit:this.randomRangedValueEmit,N=this.start;break;case 7:var M=p.random;Array.isArray(M)&&(this.start=M[0],this.end=M[1]),g=this.randomRangedIntEmit,N=this.start;break;case 8:this._onEmit=this.has(p,"onEmit")?p.onEmit:this.defaultEmit,this._onUpdate=this.has(p,"onUpdate")?p.onUpdate:this.defaultUpdate,g=this.proxyEmit,C=this.proxyUpdate;break;case 9:this.start=p.values;var D=this.has(p,"ease")?p.ease:"Linear";this.ease=A(D,p.easeParams),this.interpolation=f(p.interpolation),g=this.easedValueEmit,C=this.easeValueUpdate,N=this.start[0];break}return this.onEmit=g,this.onUpdate=C,this.current=N,this},has:function(p,N){return p.hasOwnProperty(N)},hasBoth:function(p,N,g){return p.hasOwnProperty(N)&&p.hasOwnProperty(g)},hasEither:function(p,N,g){return p.hasOwnProperty(N)||p.hasOwnProperty(g)},defaultEmit:function(p,N,g){return g},defaultUpdate:function(p,N,g,C){return C},proxyEmit:function(p,N,g){var C=this._onEmit(p,N,g);return this.current=C,C},proxyUpdate:function(p,N,g,C){var v=this._onUpdate(p,N,g,C);return this.current=v,v},staticValueEmit:function(){return this.current},staticValueUpdate:function(){return this.current},randomStaticValueEmit:function(){var p=Math.floor(Math.random()*this.propertyValue.length);return this.current=this.propertyValue[p],this.current},randomRangedValueEmit:function(p,N){var g=c(this.start,this.end);return p&&p.data[N]&&(p.data[N].min=g,p.data[N].max=this.end),this.current=g,g},randomRangedIntEmit:function(p,N){var g=u(this.start,this.end);return p&&p.data[N]&&(p.data[N].min=g,p.data[N].max=this.end),this.current=g,g},steppedEmit:function(){var p=this.counter,N=p,g=(this.end-this.start)/this.steps;if(this.yoyo){var C;this.direction===0?(N+=g,N>=this.end&&(C=N-this.end,N=this.end-C,this.direction=1)):(N-=g,N<=this.start&&(C=this.start-N,N=this.start+C,this.direction=0)),this.counter=N}else this.counter=O(N+g,this.start,this.end);return this.current=p,p},easedValueEmit:function(p,N){if(p&&p.data[N]){var g=p.data[N];g.min=this.start,g.max=this.end}return this.current=this.start,this.start},easeValueUpdate:function(p,N,g){var C=p.data[N],v,M=this.ease(g);return this.interpolation?v=this.interpolation(this.start,M):v=(C.max-C.min)*M+C.min,this.current=v,v},destroy:function(){this.propertyValue=null,this.defaultValue=null,this.ease=null,this.interpolation=null,this._onEmit=null,this._onUpdate=null}});o.exports=L},24502:(o,m,s)=>{/** + */var u=s(30976),T=s(45319),A=s(83419),c=s(99472),d=s(6113),h=s(95540),f=s(91389),S=s(77720),R=s(15994),L=new A({initialize:v(function(N,g,C){C===void 0&&(C=!1),this.propertyKey=N,this.propertyValue=g,this.defaultValue=g,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=C,this.onEmit=this.defaultEmit,this.onUpdate=this.defaultUpdate,this.active=!0,this.method=0,this._onEmit,this._onUpdate},"EmitterOp"),loadConfig:function(p,N){p===void 0&&(p={}),N&&(this.propertyKey=N),this.propertyValue=h(p,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(p){var N;switch(this.method){case 1:case 3:case 8:N=p;break;case 2:this.propertyValue.indexOf(p)>=0&&(N=p);break;case 4:var g=(this.end-this.start)/this.steps;N=S(p,g),this.counter=N;break;case 5:case 6:case 7:N=T(p,this.start,this.end);break;case 9:N=this.start[0];break}return this.current=N,this},getMethod:function(){var p=this.propertyValue;if(p===null)return 0;var N=typeof p;if(N==="number")return 1;if(Array.isArray(p))return 2;if(N==="function")return 3;if(N==="object"){if(this.hasBoth(p,"start","end"))return this.has(p,"steps")?4:5;if(this.hasBoth(p,"min","max"))return 6;if(this.has(p,"random"))return 7;if(this.hasEither(p,"onEmit","onUpdate"))return 8;if(this.hasEither(p,"values","interpolation"))return 9}return 0},setMethods:function(){var p=this.propertyValue,N=p,g=this.defaultEmit,C=this.defaultUpdate;switch(this.method){case 1:g=this.staticValueEmit;break;case 2:g=this.randomStaticValueEmit,N=p[0];break;case 3:this._onEmit=p,g=this.proxyEmit;break;case 4:this.start=p.start,this.end=p.end,this.steps=p.steps,this.counter=this.start,this.yoyo=this.has(p,"yoyo")?p.yoyo:!1,this.direction=0,g=this.steppedEmit,N=this.start;break;case 5:this.start=p.start,this.end=p.end;var P=this.has(p,"ease")?p.ease:"Linear";this.ease=d(P,p.easeParams),g=this.has(p,"random")&&p.random?this.randomRangedValueEmit:this.easedValueEmit,C=this.easeValueUpdate,N=this.start;break;case 6:this.start=p.min,this.end=p.max,g=this.has(p,"int")&&p.int?this.randomRangedIntEmit:this.randomRangedValueEmit,N=this.start;break;case 7:var M=p.random;Array.isArray(M)&&(this.start=M[0],this.end=M[1]),g=this.randomRangedIntEmit,N=this.start;break;case 8:this._onEmit=this.has(p,"onEmit")?p.onEmit:this.defaultEmit,this._onUpdate=this.has(p,"onUpdate")?p.onUpdate:this.defaultUpdate,g=this.proxyEmit,C=this.proxyUpdate;break;case 9:this.start=p.values;var D=this.has(p,"ease")?p.ease:"Linear";this.ease=d(D,p.easeParams),this.interpolation=f(p.interpolation),g=this.easedValueEmit,C=this.easeValueUpdate,N=this.start[0];break}return this.onEmit=g,this.onUpdate=C,this.current=N,this},has:function(p,N){return p.hasOwnProperty(N)},hasBoth:function(p,N,g){return p.hasOwnProperty(N)&&p.hasOwnProperty(g)},hasEither:function(p,N,g){return p.hasOwnProperty(N)||p.hasOwnProperty(g)},defaultEmit:function(p,N,g){return g},defaultUpdate:function(p,N,g,C){return C},proxyEmit:function(p,N,g){var C=this._onEmit(p,N,g);return this.current=C,C},proxyUpdate:function(p,N,g,C){var P=this._onUpdate(p,N,g,C);return this.current=P,P},staticValueEmit:function(){return this.current},staticValueUpdate:function(){return this.current},randomStaticValueEmit:function(){var p=Math.floor(Math.random()*this.propertyValue.length);return this.current=this.propertyValue[p],this.current},randomRangedValueEmit:function(p,N){var g=c(this.start,this.end);return p&&p.data[N]&&(p.data[N].min=g,p.data[N].max=this.end),this.current=g,g},randomRangedIntEmit:function(p,N){var g=u(this.start,this.end);return p&&p.data[N]&&(p.data[N].min=g,p.data[N].max=this.end),this.current=g,g},steppedEmit:function(){var p=this.counter,N=p,g=(this.end-this.start)/this.steps;if(this.yoyo){var C;this.direction===0?(N+=g,N>=this.end&&(C=N-this.end,N=this.end-C,this.direction=1)):(N-=g,N<=this.start&&(C=this.start-N,N=this.start+C,this.direction=0)),this.counter=N}else this.counter=R(N+g,this.start,this.end);return this.current=p,p},easedValueEmit:function(p,N){if(p&&p.data[N]){var g=p.data[N];g.min=this.start,g.max=this.end}return this.current=this.start,this.start},easeValueUpdate:function(p,N,g){var C=p.data[N],P,M=this.ease(g);return this.interpolation?P=this.interpolation(this.start,M):P=(C.max-C.min)*M+C.min,this.current=P,P},destroy:function(){this.propertyValue=null,this.defaultValue=null,this.ease=null,this.interpolation=null,this._onEmit=null,this._onUpdate=null}});o.exports=L},24502:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(95540),d=s(20286),c=new u({Extends:d,initialize:P(function(h,f,S,O,L){if(typeof h=="object"){var p=h;h=T(p,"x",0),f=T(p,"y",0),S=T(p,"power",0),O=T(p,"epsilon",100),L=T(p,"gravity",50)}else h===void 0&&(h=0),f===void 0&&(f=0),S===void 0&&(S=0),O===void 0&&(O=100),L===void 0&&(L=50);d.call(this,h,f,!0),this._gravity=L,this._power=S*L,this._epsilon=O*O},"GravityWell"),update:function(A,h){var f=this.x-A.x,S=this.y-A.y,O=f*f+S*S;if(O!==0){var L=Math.sqrt(O);O{/** + */var u=s(83419),T=s(95540),A=s(20286),c=new u({Extends:A,initialize:v(function(h,f,S,R,L){if(typeof h=="object"){var p=h;h=T(p,"x",0),f=T(p,"y",0),S=T(p,"power",0),R=T(p,"epsilon",100),L=T(p,"gravity",50)}else h===void 0&&(h=0),f===void 0&&(f=0),S===void 0&&(S=0),R===void 0&&(R=100),L===void 0&&(L=50);A.call(this,h,f,!0),this._gravity=L,this._power=S*L,this._epsilon=R*R},"GravityWell"),update:function(d,h){var f=this.x-d.x,S=this.y-d.y,R=f*f+S*S;if(R!==0){var L=Math.sqrt(R);R{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(9674),T=s(45319),d=s(83419),c=s(39506),A=s(87841),h=s(11520),f=s(26099),S=new d({initialize:P(function(L){this.emitter=L,this.texture=null,this.frame=null,this.x=0,this.y=0,this.worldPosition=new f,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=L.scene,this.anims=new u(this),this.bounds=new A},"Particle"),emit:function(O,L,p,N,g,C){return this.emitter.emit(O,L,p,N,g,C)},isAlive:function(){return this.lifeCurrent>0},kill:function(){this.lifeCurrent=0},setPosition:function(O,L){O===void 0&&(O=0),L===void 0&&(L=0),this.x=O,this.y=L},fire:function(O,L){var p=this.emitter,N=p.ops,g=p.getAnim();if(g?this.anims.play(g):(this.frame=p.getFrame(),this.texture=this.frame.texture),!this.frame)throw new Error("Particle has no texture frame");if(p.getEmitZone(this),O===void 0?this.x+=N.x.onEmit(this,"x"):N.x.steps>0?this.x+=O+N.x.onEmit(this,"x"):this.x+=O,L===void 0?this.y+=N.y.onEmit(this,"y"):N.y.steps>0?this.y+=L+N.y.onEmit(this,"y"):this.y+=L,this.life=N.lifespan.onEmit(this,"lifespan"),this.lifeCurrent=this.life,this.lifeT=0,this.delayCurrent=N.delay.onEmit(this,"delay"),this.holdCurrent=N.hold.onEmit(this,"hold"),this.scaleX=N.scaleX.onEmit(this,"scaleX"),this.scaleY=N.scaleY.active?N.scaleY.onEmit(this,"scaleY"):this.scaleX,this.angle=N.rotate.onEmit(this,"rotate"),this.rotation=c(this.angle),p.worldMatrix.transformPoint(this.x,this.y,this.worldPosition),this.delayCurrent===0&&p.getDeathZone(this))return this.lifeCurrent=0,!1;var C=N.speedX.onEmit(this,"speedX"),v=N.speedY.active?N.speedY.onEmit(this,"speedY"):C;if(p.radial){var M=c(N.angle.onEmit(this,"angle"));this.velocityX=Math.cos(M)*Math.abs(C),this.velocityY=Math.sin(M)*Math.abs(v)}else if(p.moveTo){var D=N.moveToX.onEmit(this,"moveToX"),G=N.moveToY.onEmit(this,"moveToY"),H=this.life/1e3;this.velocityX=(D-this.x)/H,this.velocityY=(G-this.y)/H}else this.velocityX=C,this.velocityY=v;return p.acceleration&&(this.accelerationX=N.accelerationX.onEmit(this,"accelerationX"),this.accelerationY=N.accelerationY.onEmit(this,"accelerationY")),this.maxVelocityX=N.maxVelocityX.onEmit(this,"maxVelocityX"),this.maxVelocityY=N.maxVelocityY.onEmit(this,"maxVelocityY"),this.bounce=N.bounce.onEmit(this,"bounce"),this.alpha=N.alpha.onEmit(this,"alpha"),N.color.active?this.tint=N.color.onEmit(this,"tint"):this.tint=N.tint.onEmit(this,"tint"),!0},update:function(O,L,p){if(this.lifeCurrent<=0)return this.holdCurrent>0?(this.holdCurrent-=O,this.holdCurrent<=0):!0;if(this.delayCurrent>0)return this.delayCurrent-=O,!1;this.anims.update(0,O);var N=this.emitter,g=N.ops,C=1-this.lifeCurrent/this.life;if(this.lifeT=C,this.x=g.x.onUpdate(this,"x",C,this.x),this.y=g.y.onUpdate(this,"y",C,this.y),N.moveTo){var v=g.moveToX.onUpdate(this,"moveToX",C,N.moveToX),M=g.moveToY.onUpdate(this,"moveToY",C,N.moveToY),D=this.lifeCurrent/1e3;this.velocityX=(v-this.x)/D,this.velocityY=(M-this.y)/D}return this.computeVelocity(N,O,L,p,C),this.scaleX=g.scaleX.onUpdate(this,"scaleX",C,this.scaleX),g.scaleY.active?this.scaleY=g.scaleY.onUpdate(this,"scaleY",C,this.scaleY):this.scaleY=this.scaleX,this.angle=g.rotate.onUpdate(this,"rotate",C,this.angle),this.rotation=c(this.angle),N.getDeathZone(this)?(this.lifeCurrent=0,!0):(this.alpha=T(g.alpha.onUpdate(this,"alpha",C,this.alpha),0,1),g.color.active?this.tint=g.color.onUpdate(this,"color",C,this.tint):this.tint=g.tint.onUpdate(this,"tint",C,this.tint),this.lifeCurrent-=O,this.lifeCurrent<=0&&this.holdCurrent<=0)},computeVelocity:function(O,L,p,N,g){var C=O.ops,v=this.velocityX,M=this.velocityY,D=C.accelerationX.onUpdate(this,"accelerationX",g,this.accelerationX),G=C.accelerationY.onUpdate(this,"accelerationY",g,this.accelerationY),H=C.maxVelocityX.onUpdate(this,"maxVelocityX",g,this.maxVelocityX),B=C.maxVelocityY.onUpdate(this,"maxVelocityY",g,this.maxVelocityY);this.bounce=C.bounce.onUpdate(this,"bounce",g,this.bounce),v+=O.gravityX*p+D*p,M+=O.gravityY*p+G*p,v=T(v,-H,H),M=T(M,-B,B),this.velocityX=v,this.velocityY=M,this.x+=v*p,this.y+=M*p,O.worldMatrix.transformPoint(this.x,this.y,this.worldPosition);for(var _=0;_{/** + */var u=s(9674),T=s(45319),A=s(83419),c=s(39506),d=s(87841),h=s(11520),f=s(26099),S=new A({initialize:v(function(L){this.emitter=L,this.texture=null,this.frame=null,this.x=0,this.y=0,this.worldPosition=new f,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=L.scene,this.anims=new u(this),this.bounds=new d},"Particle"),emit:function(R,L,p,N,g,C){return this.emitter.emit(R,L,p,N,g,C)},isAlive:function(){return this.lifeCurrent>0},kill:function(){this.lifeCurrent=0},setPosition:function(R,L){R===void 0&&(R=0),L===void 0&&(L=0),this.x=R,this.y=L},fire:function(R,L){var p=this.emitter,N=p.ops,g=p.getAnim();if(g?this.anims.play(g):(this.frame=p.getFrame(),this.texture=this.frame.texture),!this.frame)throw new Error("Particle has no texture frame");if(p.getEmitZone(this),R===void 0?this.x+=N.x.onEmit(this,"x"):N.x.steps>0?this.x+=R+N.x.onEmit(this,"x"):this.x+=R,L===void 0?this.y+=N.y.onEmit(this,"y"):N.y.steps>0?this.y+=L+N.y.onEmit(this,"y"):this.y+=L,this.life=N.lifespan.onEmit(this,"lifespan"),this.lifeCurrent=this.life,this.lifeT=0,this.delayCurrent=N.delay.onEmit(this,"delay"),this.holdCurrent=N.hold.onEmit(this,"hold"),this.scaleX=N.scaleX.onEmit(this,"scaleX"),this.scaleY=N.scaleY.active?N.scaleY.onEmit(this,"scaleY"):this.scaleX,this.angle=N.rotate.onEmit(this,"rotate"),this.rotation=c(this.angle),p.worldMatrix.transformPoint(this.x,this.y,this.worldPosition),this.delayCurrent===0&&p.getDeathZone(this))return this.lifeCurrent=0,!1;var C=N.speedX.onEmit(this,"speedX"),P=N.speedY.active?N.speedY.onEmit(this,"speedY"):C;if(p.radial){var M=c(N.angle.onEmit(this,"angle"));this.velocityX=Math.cos(M)*Math.abs(C),this.velocityY=Math.sin(M)*Math.abs(P)}else if(p.moveTo){var D=N.moveToX.onEmit(this,"moveToX"),G=N.moveToY.onEmit(this,"moveToY"),H=this.life/1e3;this.velocityX=(D-this.x)/H,this.velocityY=(G-this.y)/H}else this.velocityX=C,this.velocityY=P;return p.acceleration&&(this.accelerationX=N.accelerationX.onEmit(this,"accelerationX"),this.accelerationY=N.accelerationY.onEmit(this,"accelerationY")),this.maxVelocityX=N.maxVelocityX.onEmit(this,"maxVelocityX"),this.maxVelocityY=N.maxVelocityY.onEmit(this,"maxVelocityY"),this.bounce=N.bounce.onEmit(this,"bounce"),this.alpha=N.alpha.onEmit(this,"alpha"),N.color.active?this.tint=N.color.onEmit(this,"tint"):this.tint=N.tint.onEmit(this,"tint"),!0},update:function(R,L,p){if(this.lifeCurrent<=0)return this.holdCurrent>0?(this.holdCurrent-=R,this.holdCurrent<=0):!0;if(this.delayCurrent>0)return this.delayCurrent-=R,!1;this.anims.update(0,R);var N=this.emitter,g=N.ops,C=1-this.lifeCurrent/this.life;if(this.lifeT=C,this.x=g.x.onUpdate(this,"x",C,this.x),this.y=g.y.onUpdate(this,"y",C,this.y),N.moveTo){var P=g.moveToX.onUpdate(this,"moveToX",C,N.moveToX),M=g.moveToY.onUpdate(this,"moveToY",C,N.moveToY),D=this.lifeCurrent/1e3;this.velocityX=(P-this.x)/D,this.velocityY=(M-this.y)/D}return this.computeVelocity(N,R,L,p,C),this.scaleX=g.scaleX.onUpdate(this,"scaleX",C,this.scaleX),g.scaleY.active?this.scaleY=g.scaleY.onUpdate(this,"scaleY",C,this.scaleY):this.scaleY=this.scaleX,this.angle=g.rotate.onUpdate(this,"rotate",C,this.angle),this.rotation=c(this.angle),N.getDeathZone(this)?(this.lifeCurrent=0,!0):(this.alpha=T(g.alpha.onUpdate(this,"alpha",C,this.alpha),0,1),g.color.active?this.tint=g.color.onUpdate(this,"color",C,this.tint):this.tint=g.tint.onUpdate(this,"tint",C,this.tint),this.lifeCurrent-=R,this.lifeCurrent<=0&&this.holdCurrent<=0)},computeVelocity:function(R,L,p,N,g){var C=R.ops,P=this.velocityX,M=this.velocityY,D=C.accelerationX.onUpdate(this,"accelerationX",g,this.accelerationX),G=C.accelerationY.onUpdate(this,"accelerationY",g,this.accelerationY),H=C.maxVelocityX.onUpdate(this,"maxVelocityX",g,this.maxVelocityX),B=C.maxVelocityY.onUpdate(this,"maxVelocityY",g,this.maxVelocityY);this.bounce=C.bounce.onUpdate(this,"bounce",g,this.bounce),P+=R.gravityX*p+D*p,M+=R.gravityY*p+G*p,P=T(P,-H,H),M=T(M,-B,B),this.velocityX=P,this.velocityY=M,this.x+=P*p,this.y+=M*p,R.worldMatrix.transformPoint(this.x,this.y,this.worldPosition);for(var b=0;b{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(20286),d=s(87841),c=new u({Extends:T,initialize:P(function(h,f,S,O,L,p,N,g){L===void 0&&(L=!0),p===void 0&&(p=!0),N===void 0&&(N=!0),g===void 0&&(g=!0),T.call(this,h,f,!0),this.bounds=new d(h,f,S,O),this.collideLeft=L,this.collideRight=p,this.collideTop=N,this.collideBottom=g},"ParticleBounds"),update:function(A){var h=this.bounds,f=-A.bounce,S=A.worldPosition;S.xh.right&&this.collideRight&&(A.x-=S.x-h.right,A.velocityX*=f),S.yh.bottom&&this.collideBottom&&(A.y-=S.y-h.bottom,A.velocityY*=f)}});o.exports=c},31600:(o,m,s)=>{/** + */var u=s(83419),T=s(20286),A=s(87841),c=new u({Extends:T,initialize:v(function(h,f,S,R,L,p,N,g){L===void 0&&(L=!0),p===void 0&&(p=!0),N===void 0&&(N=!0),g===void 0&&(g=!0),T.call(this,h,f,!0),this.bounds=new A(h,f,S,R),this.collideLeft=L,this.collideRight=p,this.collideTop=N,this.collideBottom=g},"ParticleBounds"),update:function(d){var h=this.bounds,f=-d.bounce,S=d.worldPosition;S.xh.right&&this.collideRight&&(d.x-=S.x-h.right,d.velocityX*=f),S.yh.bottom&&this.collideBottom&&(d.y-=S.y-h.bottom,d.velocityY*=f)}});o.exports=c},31600:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(31401),d=s(53774),c=s(43459),A=s(26388),h=s(19909),f=s(76472),S=s(44777),O=s(20696),L=s(95643),p=s(95540),N=s(26546),g=s(24502),C=s(1985),v=s(97022),M=s(86091),D=s(73162),G=s(20074),H=s(56480),B=s(68875),_=s(87841),w=s(59996),b=s(72905),F=s(90668),k=s(19186),V=s(61340),Z=s(26099),$=s(15994),Q=s(69601),te=["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"],z=["accelerationX","accelerationY","alpha","angle","bounce","color","delay","hold","lifespan","maxVelocityX","maxVelocityY","moveToX","moveToY","quantity","rotate","scaleX","scaleY","speedX","speedY","tint","x","y"],j=new u({Extends:L,Mixins:[T.AlphaSingle,T.BlendMode,T.Depth,T.Mask,T.Pipeline,T.PostPipeline,T.ScrollFactor,T.Texture,T.Transform,T.Visible,F],initialize:P(function(X,q,J,ae,re){L.call(this,X,"ParticleEmitter"),this.particleClass=H,this.ops={accelerationX:new S("accelerationX",0),accelerationY:new S("accelerationY",0),alpha:new S("alpha",1),angle:new S("angle",{min:0,max:360},!0),bounce:new S("bounce",0),color:new f("color"),delay:new S("delay",0,!0),hold:new S("hold",0,!0),lifespan:new S("lifespan",1e3,!0),maxVelocityX:new S("maxVelocityX",1e4),maxVelocityY:new S("maxVelocityY",1e4),moveToX:new S("moveToX",0),moveToY:new S("moveToY",0),quantity:new S("quantity",1,!0),rotate:new S("rotate",0),scaleX:new S("scaleX",1),scaleY:new S("scaleY",1),speedX:new S("speedX",0,!0),speedY:new S("speedY",0,!0),tint:new S("tint",16777215),x:new S("x",0),y:new S("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 V,this.sortProperty="",this.sortOrderAsc=!0,this.sortCallback=this.depthSortCallback,this.processors=new D(this),this.tintFill=!1,this.initPipeline(),this.initPostPipeline(),this.setPosition(q,J),this.setTexture(ae),re&&this.setConfig(re)},"ParticleEmitter"),addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},setConfig:function(x){if(!x)return this;var X=0,q="",J=this.ops;for(X=0;X=this.animQuantity&&(this.animCounter=0,this.currentAnim=$(this.currentAnim+1,0,X)),q},setAnim:function(x,X,q){X===void 0&&(X=!0),q===void 0&&(q=1),this.randomAnim=X,this.animQuantity=q,this.currentAnim=0;var J=typeof x;if(this.anims.length=0,Array.isArray(x))this.anims=this.anims.concat(x);else if(J==="string")this.anims.push(x);else if(J==="object"){var ae=x;x=p(ae,"anims",null),x&&(this.anims=this.anims.concat(x));var re=p(ae,"cycle",!1);this.randomAnim=!re,this.animQuantity=p(ae,"quantity",q)}return this.anims.length===1&&(this.animQuantity=1,this.randomAnim=!1),this},setRadial:function(x){return x===void 0&&(x=!0),this.radial=x,this},addParticleBounds:function(x,X,q,J,ae,re,oe,Ee){if(typeof x=="object"){var Re=x;x=Re.x,X=Re.y,q=v(Re,"w")?Re.w:Re.width,J=v(Re,"h")?Re.h:Re.height}return this.addParticleProcessor(new Q(x,X,q,J,ae,re,oe,Ee))},setParticleSpeed:function(x,X){return X===void 0&&(X=x),this.ops.speedX.onChange(x),x===X?this.ops.speedY.active=!1:this.ops.speedY.onChange(X),this.radial=!0,this},setParticleScale:function(x,X){return x===void 0&&(x=1),X===void 0&&(X=x),this.ops.scaleX.onChange(x),this.ops.scaleY.onChange(X),this},setParticleGravity:function(x,X){return this.gravityX=x,this.gravityY=X,this},setParticleAlpha:function(x){return this.ops.alpha.onChange(x),this},setParticleTint:function(x){return this.ops.tint.onChange(x),this},setEmitterAngle:function(x){return this.ops.angle.onChange(x),this},setParticleLifespan:function(x){return this.ops.lifespan.onChange(x),this},setQuantity:function(x){return this.quantity=x,this},setFrequency:function(x,X){return this.frequency=x,this.flowCounter=x>0?x:0,X&&(this.quantity=X),this},addDeathZone:function(x){Array.isArray(x)||(x=[x]);for(var X,q=[],J=0;J-1&&(this.zoneTotal++,this.zoneTotal===J.total&&(this.zoneTotal=0,this.zoneIndex++,this.zoneIndex===q&&(this.zoneIndex=0)))}},getDeathZone:function(x){for(var X=this.deathZones,q=0;q=0&&(this.zoneIndex=X),this},addParticleProcessor:function(x){return this.processors.exists(x)||(x.emitter&&x.emitter.removeParticleProcessor(x),this.processors.add(x),x.emitter=this),x},removeParticleProcessor:function(x){return this.processors.exists(x)&&(this.processors.remove(x,!0),x.emitter=null),x},getProcessors:function(){return this.processors.getAll("active",!0)},createGravityWell:function(x){return this.addParticleProcessor(new g(x))},reserve:function(x){var X=this.dead;if(this.maxParticles>0){var q=this.getParticleCount();q+x>this.maxParticles&&(x=this.maxParticles-(q+x))}for(var J=0;J0&&this.getParticleCount()>=this.maxParticles?!0:this.maxAliveParticles>0&&this.getAliveParticleCount()>=this.maxAliveParticles},onParticleEmit:function(x,X){return x===void 0?(this.emitCallback=null,this.emitCallbackScope=null):typeof x=="function"&&(this.emitCallback=x,X&&(this.emitCallbackScope=X)),this},onParticleDeath:function(x,X){return x===void 0?(this.deathCallback=null,this.deathCallbackScope=null):typeof x=="function"&&(this.deathCallback=x,X&&(this.deathCallbackScope=X)),this},killAll:function(){for(var x=this.dead,X=this.alive;X.length>0;)x.push(X.pop());return this},forEachAlive:function(x,X){for(var q=this.alive,J=q.length,ae=0;ae0&&this.fastForward(x),this.emitting=!0,this.resetCounters(this.frequency,!0),X!==void 0&&(this.duration=Math.abs(X)),this.emit(O.START,this)),this},stop:function(x){return x===void 0&&(x=!1),this.emitting&&(this.emitting=!1,x&&this.killAll(),this.emit(O.STOP,this)),this},pause:function(){return this.active=!1,this},resume:function(){return this.active=!0,this},setSortProperty:function(x,X){return x===void 0&&(x=""),X===void 0&&(X=this.true),this.sortProperty=x,this.sortOrderAsc=X,this.sortCallback=this.depthSortCallback,this},setSortCallback:function(x){return this.sortProperty!==""?x=this.depthSortCallback:x=null,this.sortCallback=x,this},depthSort:function(){return k(this.alive,this.sortCallback.bind(this)),this},depthSortCallback:function(x,X){var q=this.sortProperty;return this.sortOrderAsc?x[q]-X[q]:X[q]-x[q]},flow:function(x,X,q){return X===void 0&&(X=1),this.emitting=!1,this.frequency=x,this.quantity=X,q!==void 0&&(this.stopAfter=q),this.start()},explode:function(x,X,q){this.frequency=-1,this.resetCounters(-1,!0);var J=this.emitParticle(x,X,q);return this.emit(O.EXPLODE,this,J),J},emitParticleAt:function(x,X,q){return this.emitParticle(q,x,X)},emitParticle:function(x,X,q){if(!this.atLimit()){x===void 0&&(x=this.ops.quantity.onEmit());for(var J=this.dead,ae=this.stopAfter,re=this.follow?this.follow.x+this.followOffset.x:X,oe=this.follow?this.follow.y+this.followOffset.y:q,Ee=0;Ee0&&(this.stopCounter++,this.stopCounter>=ae)||this.atLimit())break}return Re}},fastForward:function(x,X){X===void 0&&(X=1e3/60);var q=0;for(this.skipping=!0;q0){var ve=this.deathCallback,ye=this.deathCallbackScope;for(oe=Re-1;oe>=0;oe--){var De=Ee[oe];ae.splice(De.index,1),re.push(De.particle),ve&&ve.call(ye,De.particle),De.particle.setPosition()}}if(!this.emitting&&!this.skipping){this.completeFlag===1&&ae.length===0&&(this.completeFlag=0,this.emit(O.COMPLETE,this));return}if(this.frequency===0)this.emitParticle();else if(this.frequency>0)for(this.flowCounter-=X;this.flowCounter<=0;)this.emitParticle(),this.flowCounter+=this.frequency;this.skipping||(this.duration>0&&(this.elapsed+=X,this.elapsed>=this.duration&&this.stop()),this.stopAfter>0&&this.stopCounter>=this.stopAfter&&this.stop())},overlap:function(x){for(var X=this.getWorldTransformMatrix(),q=this.alive,J=q.length,ae=[],re=0;re0){var Le=0;for(this.skipping=!0;Le0&&M(J,x,x),J},createEmitter:function(){throw new Error("createEmitter removed. See ParticleEmitter docs for info")},particleX:{get:function(){return this.ops.x.current},set:function(x){this.ops.x.onChange(x)}},particleY:{get:function(){return this.ops.y.current},set:function(x){this.ops.y.onChange(x)}},accelerationX:{get:function(){return this.ops.accelerationX.current},set:function(x){this.ops.accelerationX.onChange(x)}},accelerationY:{get:function(){return this.ops.accelerationY.current},set:function(x){this.ops.accelerationY.onChange(x)}},maxVelocityX:{get:function(){return this.ops.maxVelocityX.current},set:function(x){this.ops.maxVelocityX.onChange(x)}},maxVelocityY:{get:function(){return this.ops.maxVelocityY.current},set:function(x){this.ops.maxVelocityY.onChange(x)}},speed:{get:function(){return this.ops.speedX.current},set:function(x){this.ops.speedX.onChange(x),this.ops.speedY.onChange(x)}},speedX:{get:function(){return this.ops.speedX.current},set:function(x){this.ops.speedX.onChange(x)}},speedY:{get:function(){return this.ops.speedY.current},set:function(x){this.ops.speedY.onChange(x)}},moveToX:{get:function(){return this.ops.moveToX.current},set:function(x){this.ops.moveToX.onChange(x)}},moveToY:{get:function(){return this.ops.moveToY.current},set:function(x){this.ops.moveToY.onChange(x)}},bounce:{get:function(){return this.ops.bounce.current},set:function(x){this.ops.bounce.onChange(x)}},particleScaleX:{get:function(){return this.ops.scaleX.current},set:function(x){this.ops.scaleX.onChange(x)}},particleScaleY:{get:function(){return this.ops.scaleY.current},set:function(x){this.ops.scaleY.onChange(x)}},particleColor:{get:function(){return this.ops.color.current},set:function(x){this.ops.color.onChange(x)}},colorEase:{get:function(){return this.ops.color.easeName},set:function(x){this.ops.color.setEase(x)}},particleTint:{get:function(){return this.ops.tint.current},set:function(x){this.ops.tint.onChange(x)}},particleAlpha:{get:function(){return this.ops.alpha.current},set:function(x){this.ops.alpha.onChange(x)}},lifespan:{get:function(){return this.ops.lifespan.current},set:function(x){this.ops.lifespan.onChange(x)}},particleAngle:{get:function(){return this.ops.angle.current},set:function(x){this.ops.angle.onChange(x)}},particleRotate:{get:function(){return this.ops.rotate.current},set:function(x){this.ops.rotate.onChange(x)}},quantity:{get:function(){return this.ops.quantity.current},set:function(x){this.ops.quantity.onChange(x)}},delay:{get:function(){return this.ops.delay.current},set:function(x){this.ops.delay.onChange(x)}},hold:{get:function(){return this.ops.hold.current},set:function(x){this.ops.hold.onChange(x)}},flowCounter:{get:function(){return this.counters[0]},set:function(x){this.counters[0]=x}},frameCounter:{get:function(){return this.counters[1]},set:function(x){this.counters[1]=x}},animCounter:{get:function(){return this.counters[2]},set:function(x){this.counters[2]=x}},elapsed:{get:function(){return this.counters[3]},set:function(x){this.counters[3]=x}},stopCounter:{get:function(){return this.counters[4]},set:function(x){this.counters[4]=x}},completeFlag:{get:function(){return this.counters[5]},set:function(x){this.counters[5]=x}},zoneIndex:{get:function(){return this.counters[6]},set:function(x){this.counters[6]=x}},zoneTotal:{get:function(){return this.counters[7]},set:function(x){this.counters[7]=x}},currentFrame:{get:function(){return this.counters[8]},set:function(x){this.counters[8]=x}},currentAnim:{get:function(){return this.counters[9]},set:function(x){this.counters[9]=x}},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 x,X=this.ops;for(x=0;x{/** + */var u=s(83419),T=s(31401),A=s(53774),c=s(43459),d=s(26388),h=s(19909),f=s(76472),S=s(44777),R=s(20696),L=s(95643),p=s(95540),N=s(26546),g=s(24502),C=s(1985),P=s(97022),M=s(86091),D=s(73162),G=s(20074),H=s(56480),B=s(68875),b=s(87841),w=s(59996),_=s(72905),F=s(90668),x=s(19186),V=s(61340),Z=s(26099),$=s(15994),Q=s(69601),te=["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"],z=["accelerationX","accelerationY","alpha","angle","bounce","color","delay","hold","lifespan","maxVelocityX","maxVelocityY","moveToX","moveToY","quantity","rotate","scaleX","scaleY","speedX","speedY","tint","x","y"],j=new u({Extends:L,Mixins:[T.AlphaSingle,T.BlendMode,T.Depth,T.Mask,T.Pipeline,T.PostPipeline,T.ScrollFactor,T.Texture,T.Transform,T.Visible,F],initialize:v(function(X,q,J,ne,re){L.call(this,X,"ParticleEmitter"),this.particleClass=H,this.ops={accelerationX:new S("accelerationX",0),accelerationY:new S("accelerationY",0),alpha:new S("alpha",1),angle:new S("angle",{min:0,max:360},!0),bounce:new S("bounce",0),color:new f("color"),delay:new S("delay",0,!0),hold:new S("hold",0,!0),lifespan:new S("lifespan",1e3,!0),maxVelocityX:new S("maxVelocityX",1e4),maxVelocityY:new S("maxVelocityY",1e4),moveToX:new S("moveToX",0),moveToY:new S("moveToY",0),quantity:new S("quantity",1,!0),rotate:new S("rotate",0),scaleX:new S("scaleX",1),scaleY:new S("scaleY",1),speedX:new S("speedX",0,!0),speedY:new S("speedY",0,!0),tint:new S("tint",16777215),x:new S("x",0),y:new S("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 V,this.sortProperty="",this.sortOrderAsc=!0,this.sortCallback=this.depthSortCallback,this.processors=new D(this),this.tintFill=!1,this.initPipeline(),this.initPostPipeline(),this.setPosition(q,J),this.setTexture(ne),re&&this.setConfig(re)},"ParticleEmitter"),addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},setConfig:function(k){if(!k)return this;var X=0,q="",J=this.ops;for(X=0;X=this.animQuantity&&(this.animCounter=0,this.currentAnim=$(this.currentAnim+1,0,X)),q},setAnim:function(k,X,q){X===void 0&&(X=!0),q===void 0&&(q=1),this.randomAnim=X,this.animQuantity=q,this.currentAnim=0;var J=typeof k;if(this.anims.length=0,Array.isArray(k))this.anims=this.anims.concat(k);else if(J==="string")this.anims.push(k);else if(J==="object"){var ne=k;k=p(ne,"anims",null),k&&(this.anims=this.anims.concat(k));var re=p(ne,"cycle",!1);this.randomAnim=!re,this.animQuantity=p(ne,"quantity",q)}return this.anims.length===1&&(this.animQuantity=1,this.randomAnim=!1),this},setRadial:function(k){return k===void 0&&(k=!0),this.radial=k,this},addParticleBounds:function(k,X,q,J,ne,re,oe,Ee){if(typeof k=="object"){var me=k;k=me.x,X=me.y,q=P(me,"w")?me.w:me.width,J=P(me,"h")?me.h:me.height}return this.addParticleProcessor(new Q(k,X,q,J,ne,re,oe,Ee))},setParticleSpeed:function(k,X){return X===void 0&&(X=k),this.ops.speedX.onChange(k),k===X?this.ops.speedY.active=!1:this.ops.speedY.onChange(X),this.radial=!0,this},setParticleScale:function(k,X){return k===void 0&&(k=1),X===void 0&&(X=k),this.ops.scaleX.onChange(k),this.ops.scaleY.onChange(X),this},setParticleGravity:function(k,X){return this.gravityX=k,this.gravityY=X,this},setParticleAlpha:function(k){return this.ops.alpha.onChange(k),this},setParticleTint:function(k){return this.ops.tint.onChange(k),this},setEmitterAngle:function(k){return this.ops.angle.onChange(k),this},setParticleLifespan:function(k){return this.ops.lifespan.onChange(k),this},setQuantity:function(k){return this.quantity=k,this},setFrequency:function(k,X){return this.frequency=k,this.flowCounter=k>0?k:0,X&&(this.quantity=X),this},addDeathZone:function(k){Array.isArray(k)||(k=[k]);for(var X,q=[],J=0;J-1&&(this.zoneTotal++,this.zoneTotal===J.total&&(this.zoneTotal=0,this.zoneIndex++,this.zoneIndex===q&&(this.zoneIndex=0)))}},getDeathZone:function(k){for(var X=this.deathZones,q=0;q=0&&(this.zoneIndex=X),this},addParticleProcessor:function(k){return this.processors.exists(k)||(k.emitter&&k.emitter.removeParticleProcessor(k),this.processors.add(k),k.emitter=this),k},removeParticleProcessor:function(k){return this.processors.exists(k)&&(this.processors.remove(k,!0),k.emitter=null),k},getProcessors:function(){return this.processors.getAll("active",!0)},createGravityWell:function(k){return this.addParticleProcessor(new g(k))},reserve:function(k){var X=this.dead;if(this.maxParticles>0){var q=this.getParticleCount();q+k>this.maxParticles&&(k=this.maxParticles-(q+k))}for(var J=0;J0&&this.getParticleCount()>=this.maxParticles?!0:this.maxAliveParticles>0&&this.getAliveParticleCount()>=this.maxAliveParticles},onParticleEmit:function(k,X){return k===void 0?(this.emitCallback=null,this.emitCallbackScope=null):typeof k=="function"&&(this.emitCallback=k,X&&(this.emitCallbackScope=X)),this},onParticleDeath:function(k,X){return k===void 0?(this.deathCallback=null,this.deathCallbackScope=null):typeof k=="function"&&(this.deathCallback=k,X&&(this.deathCallbackScope=X)),this},killAll:function(){for(var k=this.dead,X=this.alive;X.length>0;)k.push(X.pop());return this},forEachAlive:function(k,X){for(var q=this.alive,J=q.length,ne=0;ne0&&this.fastForward(k),this.emitting=!0,this.resetCounters(this.frequency,!0),X!==void 0&&(this.duration=Math.abs(X)),this.emit(R.START,this)),this},stop:function(k){return k===void 0&&(k=!1),this.emitting&&(this.emitting=!1,k&&this.killAll(),this.emit(R.STOP,this)),this},pause:function(){return this.active=!1,this},resume:function(){return this.active=!0,this},setSortProperty:function(k,X){return k===void 0&&(k=""),X===void 0&&(X=this.true),this.sortProperty=k,this.sortOrderAsc=X,this.sortCallback=this.depthSortCallback,this},setSortCallback:function(k){return this.sortProperty!==""?k=this.depthSortCallback:k=null,this.sortCallback=k,this},depthSort:function(){return x(this.alive,this.sortCallback.bind(this)),this},depthSortCallback:function(k,X){var q=this.sortProperty;return this.sortOrderAsc?k[q]-X[q]:X[q]-k[q]},flow:function(k,X,q){return X===void 0&&(X=1),this.emitting=!1,this.frequency=k,this.quantity=X,q!==void 0&&(this.stopAfter=q),this.start()},explode:function(k,X,q){this.frequency=-1,this.resetCounters(-1,!0);var J=this.emitParticle(k,X,q);return this.emit(R.EXPLODE,this,J),J},emitParticleAt:function(k,X,q){return this.emitParticle(q,k,X)},emitParticle:function(k,X,q){if(!this.atLimit()){k===void 0&&(k=this.ops.quantity.onEmit());for(var J=this.dead,ne=this.stopAfter,re=this.follow?this.follow.x+this.followOffset.x:X,oe=this.follow?this.follow.y+this.followOffset.y:q,Ee=0;Ee0&&(this.stopCounter++,this.stopCounter>=ne)||this.atLimit())break}return me}},fastForward:function(k,X){X===void 0&&(X=1e3/60);var q=0;for(this.skipping=!0;q0){var Pe=this.deathCallback,ye=this.deathCallbackScope;for(oe=me-1;oe>=0;oe--){var De=Ee[oe];ne.splice(De.index,1),re.push(De.particle),Pe&&Pe.call(ye,De.particle),De.particle.setPosition()}}if(!this.emitting&&!this.skipping){this.completeFlag===1&&ne.length===0&&(this.completeFlag=0,this.emit(R.COMPLETE,this));return}if(this.frequency===0)this.emitParticle();else if(this.frequency>0)for(this.flowCounter-=X;this.flowCounter<=0;)this.emitParticle(),this.flowCounter+=this.frequency;this.skipping||(this.duration>0&&(this.elapsed+=X,this.elapsed>=this.duration&&this.stop()),this.stopAfter>0&&this.stopCounter>=this.stopAfter&&this.stop())},overlap:function(k){for(var X=this.getWorldTransformMatrix(),q=this.alive,J=q.length,ne=[],re=0;re0){var Le=0;for(this.skipping=!0;Le0&&M(J,k,k),J},createEmitter:function(){throw new Error("createEmitter removed. See ParticleEmitter docs for info")},particleX:{get:function(){return this.ops.x.current},set:function(k){this.ops.x.onChange(k)}},particleY:{get:function(){return this.ops.y.current},set:function(k){this.ops.y.onChange(k)}},accelerationX:{get:function(){return this.ops.accelerationX.current},set:function(k){this.ops.accelerationX.onChange(k)}},accelerationY:{get:function(){return this.ops.accelerationY.current},set:function(k){this.ops.accelerationY.onChange(k)}},maxVelocityX:{get:function(){return this.ops.maxVelocityX.current},set:function(k){this.ops.maxVelocityX.onChange(k)}},maxVelocityY:{get:function(){return this.ops.maxVelocityY.current},set:function(k){this.ops.maxVelocityY.onChange(k)}},speed:{get:function(){return this.ops.speedX.current},set:function(k){this.ops.speedX.onChange(k),this.ops.speedY.onChange(k)}},speedX:{get:function(){return this.ops.speedX.current},set:function(k){this.ops.speedX.onChange(k)}},speedY:{get:function(){return this.ops.speedY.current},set:function(k){this.ops.speedY.onChange(k)}},moveToX:{get:function(){return this.ops.moveToX.current},set:function(k){this.ops.moveToX.onChange(k)}},moveToY:{get:function(){return this.ops.moveToY.current},set:function(k){this.ops.moveToY.onChange(k)}},bounce:{get:function(){return this.ops.bounce.current},set:function(k){this.ops.bounce.onChange(k)}},particleScaleX:{get:function(){return this.ops.scaleX.current},set:function(k){this.ops.scaleX.onChange(k)}},particleScaleY:{get:function(){return this.ops.scaleY.current},set:function(k){this.ops.scaleY.onChange(k)}},particleColor:{get:function(){return this.ops.color.current},set:function(k){this.ops.color.onChange(k)}},colorEase:{get:function(){return this.ops.color.easeName},set:function(k){this.ops.color.setEase(k)}},particleTint:{get:function(){return this.ops.tint.current},set:function(k){this.ops.tint.onChange(k)}},particleAlpha:{get:function(){return this.ops.alpha.current},set:function(k){this.ops.alpha.onChange(k)}},lifespan:{get:function(){return this.ops.lifespan.current},set:function(k){this.ops.lifespan.onChange(k)}},particleAngle:{get:function(){return this.ops.angle.current},set:function(k){this.ops.angle.onChange(k)}},particleRotate:{get:function(){return this.ops.rotate.current},set:function(k){this.ops.rotate.onChange(k)}},quantity:{get:function(){return this.ops.quantity.current},set:function(k){this.ops.quantity.onChange(k)}},delay:{get:function(){return this.ops.delay.current},set:function(k){this.ops.delay.onChange(k)}},hold:{get:function(){return this.ops.hold.current},set:function(k){this.ops.hold.onChange(k)}},flowCounter:{get:function(){return this.counters[0]},set:function(k){this.counters[0]=k}},frameCounter:{get:function(){return this.counters[1]},set:function(k){this.counters[1]=k}},animCounter:{get:function(){return this.counters[2]},set:function(k){this.counters[2]=k}},elapsed:{get:function(){return this.counters[3]},set:function(k){this.counters[3]=k}},stopCounter:{get:function(){return this.counters[4]},set:function(k){this.counters[4]=k}},completeFlag:{get:function(){return this.counters[5]},set:function(k){this.counters[5]=k}},zoneIndex:{get:function(){return this.counters[6]},set:function(k){this.counters[6]=k}},zoneTotal:{get:function(){return this.counters[7]},set:function(k){this.counters[7]=k}},currentFrame:{get:function(){return this.counters[8]},set:function(k){this.counters[8]=k}},currentAnim:{get:function(){return this.counters[9]},set:function(k){this.counters[9]=k}},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 k,X=this.ops;for(k=0;k{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(59996),T=s(61340),d=new T,c=new T,A=new T,h=new T,f=P(function(S,O,L,p){var N=d,g=c,C=A,v=h;p?(v.loadIdentity(),v.multiply(p),v.translate(O.x,O.y),v.rotate(O.rotation),v.scale(O.scaleX,O.scaleY)):v.applyITRS(O.x,O.y,O.rotation,O.scaleX,O.scaleY);var M=S.currentContext,D=L.roundPixels,G=L.alpha,H=O.alpha,B=O.alive,_=B.length,w=O.viewBounds;if(!(!O.visible||_===0||w&&!u(w,L.worldView))){O.sortCallback&&O.depthSort(),L.addToRenderList(O);var b=O.scrollFactorX,F=O.scrollFactorY;M.save(),M.globalCompositeOperation=S.blendModes[O.blendMode];for(var k=0;k<_;k++){var V=B[k],Z=V.alpha*H*G;if(!(Z<=0||V.scaleX===0||V.scaleY===0)){C.applyITRS(V.x,V.y,V.rotation,V.scaleX,V.scaleY),N.copyFrom(L.matrix),N.multiplyWithOffset(v,-L.scrollX*b,-L.scrollY*F),C.e=V.x,C.f=V.y,N.multiply(C,g);var $=V.frame,Q=$.canvasData;if(Q.width>0&&Q.height>0){var te=-$.halfWidth,z=-$.halfHeight;M.globalAlpha=Z,M.save(),g.setToContext(M),D&&(te=Math.round(te),z=Math.round(z)),M.imageSmoothingEnabled=!$.source.scaleMode,M.drawImage($.source.image,Q.x,Q.y,Q.width,Q.height,te,z,Q.width,Q.height),M.restore()}}}M.restore()}},"ParticleEmitterCanvasRenderer");o.exports=f},92730:(o,m,s)=>{/** + */var u=s(59996),T=s(61340),A=new T,c=new T,d=new T,h=new T,f=v(function(S,R,L,p){var N=A,g=c,C=d,P=h;p?(P.loadIdentity(),P.multiply(p),P.translate(R.x,R.y),P.rotate(R.rotation),P.scale(R.scaleX,R.scaleY)):P.applyITRS(R.x,R.y,R.rotation,R.scaleX,R.scaleY);var M=S.currentContext,D=L.roundPixels,G=L.alpha,H=R.alpha,B=R.alive,b=B.length,w=R.viewBounds;if(!(!R.visible||b===0||w&&!u(w,L.worldView))){R.sortCallback&&R.depthSort(),L.addToRenderList(R);var _=R.scrollFactorX,F=R.scrollFactorY;M.save(),M.globalCompositeOperation=S.blendModes[R.blendMode];for(var x=0;x0&&Q.height>0){var te=-$.halfWidth,z=-$.halfHeight;M.globalAlpha=Z,M.save(),g.setToContext(M),D&&(te=Math.round(te),z=Math.round(z)),M.imageSmoothingEnabled=!$.source.scaleMode,M.drawImage($.source.image,Q.x,Q.y,Q.width,Q.height,te,z,Q.width,Q.height),M.restore()}}}M.restore()}},"ParticleEmitterCanvasRenderer");o.exports=f},92730:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(25305),T=s(44603),d=s(23568),c=s(95540),A=s(31600);T.register("particles",function(h,f){h===void 0&&(h={});var S=d(h,"key",null),O=c(h,"config",null),L=new A(this.scene,0,0,S);return f!==void 0&&(h.add=f),u(this.scene,L,h),O&&L.setConfig(O),L})},676:(o,m,s)=>{/** + */var u=s(25305),T=s(44603),A=s(23568),c=s(95540),d=s(31600);T.register("particles",function(h,f){h===void 0&&(h={});var S=A(h,"key",null),R=c(h,"config",null),L=new d(this.scene,0,0,S);return f!==void 0&&(h.add=f),u(this.scene,L,h),R&&L.setConfig(R),L})},676:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(39429),T=s(31600);u.register("particles",function(d,c,A,h){return d!==void 0&&typeof d=="string"&&console.warn("ParticleEmitterManager was removed in Phaser 3.60. See documentation for details"),this.displayList.add(new T(this.scene,d,c,A,h))})},90668:(o,m,s)=>{/** + */var u=s(39429),T=s(31600);u.register("particles",function(A,c,d,h){return A!==void 0&&typeof A=="string"&&console.warn("ParticleEmitterManager was removed in Phaser 3.60. See documentation for details"),this.displayList.add(new T(this.scene,A,c,d,h))})},90668:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(21188),d=s(9871),o.exports={renderWebGL:T,renderCanvas:d}},21188:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(21188),A=s(9871),o.exports={renderWebGL:T,renderCanvas:A}},21188:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(59996),T=s(61340),d=s(70554),c=new T,A=new T,h=new T,f=new T,S=P(function(O,L,p,N){var g=O.pipelines.set(L.pipeline),C=c,v=A,M=h,D=f;N?(D.loadIdentity(),D.multiply(N),D.translate(L.x,L.y),D.rotate(L.rotation),D.scale(L.scaleX,L.scaleY)):D.applyITRS(L.x,L.y,L.rotation,L.scaleX,L.scaleY);var G=d.getTintAppendFloatAlpha,H=p.alpha,B=L.alpha;O.pipelines.preBatch(L);var _=L.alive,w=_.length,b=L.viewBounds;if(!(w===0||b&&!u(b,p.worldView))){L.sortCallback&&L.depthSort(),p.addToRenderList(L),C.copyFrom(p.matrix),C.multiplyWithOffset(D,-p.scrollX*L.scrollFactorX,-p.scrollY*L.scrollFactorY),O.setBlendMode(L.blendMode),L.mask&&(L.mask.preRenderWebGL(O,L,p),O.pipelines.set(L.pipeline));for(var F=L.tintFill,k,V,Z=0;Z{/** + */var u=s(59996),T=s(61340),A=s(70554),c=new T,d=new T,h=new T,f=new T,S=v(function(R,L,p,N){var g=R.pipelines.set(L.pipeline),C=c,P=d,M=h,D=f;N?(D.loadIdentity(),D.multiply(N),D.translate(L.x,L.y),D.rotate(L.rotation),D.scale(L.scaleX,L.scaleY)):D.applyITRS(L.x,L.y,L.rotation,L.scaleX,L.scaleY);var G=A.getTintAppendFloatAlpha,H=p.alpha,B=L.alpha;R.pipelines.preBatch(L);var b=L.alive,w=b.length,_=L.viewBounds;if(!(w===0||_&&!u(_,p.worldView))){L.sortCallback&&L.depthSort(),p.addToRenderList(L),C.copyFrom(p.matrix),C.multiplyWithOffset(D,-p.scrollX*L.scrollFactorX,-p.scrollY*L.scrollFactorY),R.setBlendMode(L.blendMode),L.mask&&(L.mask.preRenderWebGL(R,L,p),R.pipelines.set(L.pipeline));for(var F=L.tintFill,x,V,Z=0;Z{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=new u({initialize:P(function(c,A,h){c===void 0&&(c=0),A===void 0&&(A=0),h===void 0&&(h=!0),this.emitter,this.x=c,this.y=A,this.active=h},"ParticleProcessor"),update:function(){},destroy:function(){this.emitter=null}});o.exports=T},9774:o=>{/** + */var u=s(83419),T=new u({initialize:v(function(c,d,h){c===void 0&&(c=0),d===void 0&&(d=0),h===void 0&&(h=!0),this.emitter,this.x=c,this.y=d,this.active=h},"ParticleProcessor"),update:function(){},destroy:function(){this.emitter=null}});o.exports=T},9774:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -1705,563 +1705,563 @@ var dne=Object.defineProperty;var P=(n,t)=>dne(n,"name",{value:t,configurable:!0 * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports="stop"},20696:(o,m,s)=>{/** + */o.exports="stop"},20696:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={COMPLETE:s(9774),DEATH_ZONE:s(812),EXPLODE:s(30522),START:s(96695),STOP:s(18677)}},18404:(o,m,s)=>{/** + */o.exports={COMPLETE:s(9774),DEATH_ZONE:s(812),EXPLODE:s(30522),START:s(96695),STOP:s(18677)}},18404:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={EmitterColorOp:s(76472),EmitterOp:s(44777),Events:s(20696),GravityWell:s(24502),Particle:s(56480),ParticleBounds:s(69601),ParticleEmitter:s(31600),ParticleProcessor:s(20286),Zones:s(21024)}},26388:(o,m,s)=>{/** + */o.exports={EmitterColorOp:s(76472),EmitterOp:s(44777),Events:s(20696),GravityWell:s(24502),Particle:s(56480),ParticleBounds:s(69601),ParticleEmitter:s(31600),ParticleProcessor:s(20286),Zones:s(21024)}},26388:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=new u({initialize:P(function(c,A){this.source=c,this.killOnEnter=A},"DeathZone"),willKill:function(d){var c=d.worldPosition,A=this.source.contains(c.x,c.y);return A&&this.killOnEnter||!A&&!this.killOnEnter}});o.exports=T},19909:(o,m,s)=>{/** + */var u=s(83419),T=new u({initialize:v(function(c,d){this.source=c,this.killOnEnter=d},"DeathZone"),willKill:function(A){var c=A.worldPosition,d=this.source.contains(c.x,c.y);return d&&this.killOnEnter||!d&&!this.killOnEnter}});o.exports=T},19909:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=new u({initialize:P(function(c,A,h,f,S,O){f===void 0&&(f=!1),S===void 0&&(S=!0),O===void 0&&(O=-1),this.source=c,this.points=[],this.quantity=A,this.stepRate=h,this.yoyo=f,this.counter=-1,this.seamless=S,this._length=0,this._direction=0,this.total=O,this.updateSource()},"EdgeZone"),updateSource:function(){if(this.points=this.source.getPoints(this.quantity,this.stepRate),this.seamless){var d=this.points[0],c=this.points[this.points.length-1];d.x===c.x&&d.y===c.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(d){return this.source=d,this.updateSource()},getPoint:function(d){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 c=this.points[this.counter];c&&(d.x=c.x,d.y=c.y)}});o.exports=T},68875:(o,m,s)=>{/** + */var u=s(83419),T=new u({initialize:v(function(c,d,h,f,S,R){f===void 0&&(f=!1),S===void 0&&(S=!0),R===void 0&&(R=-1),this.source=c,this.points=[],this.quantity=d,this.stepRate=h,this.yoyo=f,this.counter=-1,this.seamless=S,this._length=0,this._direction=0,this.total=R,this.updateSource()},"EdgeZone"),updateSource:function(){if(this.points=this.source.getPoints(this.quantity,this.stepRate),this.seamless){var A=this.points[0],c=this.points[this.points.length-1];A.x===c.x&&A.y===c.y&&this.points.pop()}var d=this._length;return this._length=this.points.length,this._lengththis._length&&(this.counter=this._length-1),this},changeSource:function(A){return this.source=A,this.updateSource()},getPoint:function(A){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 c=this.points[this.counter];c&&(A.x=c.x,A.y=c.y)}});o.exports=T},68875:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(26099),d=new u({initialize:P(function(A){this.source=A,this._tempVec=new T,this.total=-1},"RandomZone"),getPoint:function(c){var A=this._tempVec;this.source.getRandomPoint(A),c.x=A.x,c.y=A.y}});o.exports=d},21024:(o,m,s)=>{/** + */var u=s(83419),T=s(26099),A=new u({initialize:v(function(d){this.source=d,this._tempVec=new T,this.total=-1},"RandomZone"),getPoint:function(c){var d=this._tempVec;this.source.getRandomPoint(d),c.x=d.x,c.y=d.y}});o.exports=A},21024:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={DeathZone:s(26388),EdgeZone:s(19909),RandomZone:s(68875)}},1159:(o,m,s)=>{/** + */o.exports={DeathZone:s(26388),EdgeZone:s(19909),RandomZone:s(68875)}},1159:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(31401),d=s(68287),c=new u({Extends:d,Mixins:[T.PathFollower],initialize:P(function(h,f,S,O,L,p){d.call(this,h,S,O,L,p),this.path=f},"PathFollower"),preUpdate:function(A,h){this.anims.update(A,h),this.pathUpdate(A)}});o.exports=c},90145:(o,m,s)=>{/** + */var u=s(83419),T=s(31401),A=s(68287),c=new u({Extends:A,Mixins:[T.PathFollower],initialize:v(function(h,f,S,R,L,p){A.call(this,h,S,R,L,p),this.path=f},"PathFollower"),preUpdate:function(d,h){this.anims.update(d,h),this.pathUpdate(d)}});o.exports=c},90145:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(39429),T=s(1159);u.register("follower",function(d,c,A,h,f){var S=new T(this.scene,d,c,A,h,f);return this.displayList.add(S),this.updateList.add(S),S})},33663:(o,m,s)=>{/** + */var u=s(39429),T=s(1159);u.register("follower",function(A,c,d,h,f){var S=new T(this.scene,A,c,d,h,f);return this.displayList.add(S),this.updateList.add(S),S})},33663:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(9674),T=s(83419),d=s(48803),c=s(90664),A=s(4703),h=s(45650),f=new T({Extends:A,initialize:P(function(O,L,p,N,g,C,v,M){N||(N="__DEFAULT"),A.call(this,O,L,p,N,g),this.type="Plane",this.anims=new u(this),this.gridWidth,this.gridHeight,this.isTiled,this._checkerboard=null,this.hideCCW=!1,this.setGridSize(C,v,M),this.setSizeToFrame(!1),this.setViewHeight()},"Plane"),originX:{get:function(){return .5}},originY:{get:function(){return .5}},setGridSize:function(S,O,L){S===void 0&&(S=8),O===void 0&&(O=8),L===void 0&&(L=!1);var p=!1;return L&&(p=!0),this.gridWidth=S,this.gridHeight=O,this.isTiled=L,this.clear(),d({mesh:this,widthSegments:S,heightSegments:O,isOrtho:!1,tile:L,flipY:p}),this},setSizeToFrame:function(S){S===void 0&&(S=!0);var O=this.frame;if(this.setPerspective(this.width/O.width,this.height/O.height),this._checkerboard&&this._checkerboard!==this.texture&&this.removeCheckerboard(),!S)return this;var L=this.gridWidth,p=this.gridHeight,N=this.vertices,g=O.u0,C=O.u1,v=O.v0,M=O.v1,D,G,H=0;if(this.isTiled)for(v=O.v1,M=O.v0,G=0;G7&&D>7?v.push(g.r,g.g,g.b,L):v.push(C.r,C.g,C.b,p);var G=this.scene.sys.textures.addUint8Array(h(),new Uint8Array(v),16,16);return this.removeCheckerboard(),this.setTexture(G),this.setSizeToFrame(),this.setViewHeight(N),this},removeCheckerboard:function(){this._checkerboard&&(this._checkerboard.destroy(),this._checkerboard=null)},play:function(S,O){return this.anims.play(S,O)},playReverse:function(S,O){return this.anims.playReverse(S,O)},playAfterDelay:function(S,O){return this.anims.playAfterDelay(S,O)},playAfterRepeat:function(S,O){return this.anims.playAfterRepeat(S,O)},stop:function(){return this.anims.stop()},stopAfterDelay:function(S){return this.anims.stopAfterDelay(S)},stopAfterRepeat:function(S){return this.anims.stopAfterRepeat(S)},stopOnFrame:function(S){return this.anims.stopOnFrame(S)},preUpdate:function(S,O){A.prototype.preUpdate.call(this,S,O),this.anims.update(S,O)},preDestroy:function(){this.clear(),this.removeCheckerboard(),this.anims.destroy(),this.anims=void 0,this.debugCallback=null,this.debugGraphic=null}});o.exports=f},56015:(o,m,s)=>{/** + */var u=s(9674),T=s(83419),A=s(48803),c=s(90664),d=s(4703),h=s(45650),f=new T({Extends:d,initialize:v(function(R,L,p,N,g,C,P,M){N||(N="__DEFAULT"),d.call(this,R,L,p,N,g),this.type="Plane",this.anims=new u(this),this.gridWidth,this.gridHeight,this.isTiled,this._checkerboard=null,this.hideCCW=!1,this.setGridSize(C,P,M),this.setSizeToFrame(!1),this.setViewHeight()},"Plane"),originX:{get:function(){return .5}},originY:{get:function(){return .5}},setGridSize:function(S,R,L){S===void 0&&(S=8),R===void 0&&(R=8),L===void 0&&(L=!1);var p=!1;return L&&(p=!0),this.gridWidth=S,this.gridHeight=R,this.isTiled=L,this.clear(),A({mesh:this,widthSegments:S,heightSegments:R,isOrtho:!1,tile:L,flipY:p}),this},setSizeToFrame:function(S){S===void 0&&(S=!0);var R=this.frame;if(this.setPerspective(this.width/R.width,this.height/R.height),this._checkerboard&&this._checkerboard!==this.texture&&this.removeCheckerboard(),!S)return this;var L=this.gridWidth,p=this.gridHeight,N=this.vertices,g=R.u0,C=R.u1,P=R.v0,M=R.v1,D,G,H=0;if(this.isTiled)for(P=R.v1,M=R.v0,G=0;G7&&D>7?P.push(g.r,g.g,g.b,L):P.push(C.r,C.g,C.b,p);var G=this.scene.sys.textures.addUint8Array(h(),new Uint8Array(P),16,16);return this.removeCheckerboard(),this.setTexture(G),this.setSizeToFrame(),this.setViewHeight(N),this},removeCheckerboard:function(){this._checkerboard&&(this._checkerboard.destroy(),this._checkerboard=null)},play:function(S,R){return this.anims.play(S,R)},playReverse:function(S,R){return this.anims.playReverse(S,R)},playAfterDelay:function(S,R){return this.anims.playAfterDelay(S,R)},playAfterRepeat:function(S,R){return this.anims.playAfterRepeat(S,R)},stop:function(){return this.anims.stop()},stopAfterDelay:function(S){return this.anims.stopAfterDelay(S)},stopAfterRepeat:function(S){return this.anims.stopAfterRepeat(S)},stopOnFrame:function(S){return this.anims.stopOnFrame(S)},preUpdate:function(S,R){d.prototype.preUpdate.call(this,S,R),this.anims.update(S,R)},preDestroy:function(){this.clear(),this.removeCheckerboard(),this.anims.destroy(),this.anims=void 0,this.debugCallback=null,this.debugGraphic=null}});o.exports=f},56015:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(25305),T=s(13059),d=s(44603),c=s(23568),A=s(35154),h=s(33663);d.register("plane",function(f,S){f===void 0&&(f={});var O=c(f,"key",null),L=c(f,"frame",null),p=A(f,"width",8),N=A(f,"height",8),g=A(f,"tile",!1),C=new h(this.scene,0,0,O,L,p,N,g);S!==void 0&&(f.add=S);var v=A(f,"checkerboard",null);if(v){var M=A(v,"color1",16777215),D=A(v,"color2",255),G=A(v,"alpha1",255),H=A(v,"alpha2",255),B=A(v,"height",128);C.createCheckerboard(M,D,G,H,B)}return u(this.scene,C,f),T(C,f),C})},30985:(o,m,s)=>{/** + */var u=s(25305),T=s(13059),A=s(44603),c=s(23568),d=s(35154),h=s(33663);A.register("plane",function(f,S){f===void 0&&(f={});var R=c(f,"key",null),L=c(f,"frame",null),p=d(f,"width",8),N=d(f,"height",8),g=d(f,"tile",!1),C=new h(this.scene,0,0,R,L,p,N,g);S!==void 0&&(f.add=S);var P=d(f,"checkerboard",null);if(P){var M=d(P,"color1",16777215),D=d(P,"color2",255),G=d(P,"alpha1",255),H=d(P,"alpha2",255),B=d(P,"height",128);C.createCheckerboard(M,D,G,H,B)}return u(this.scene,C,f),T(C,f),C})},30985:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(33663),T=s(39429);T.register("plane",function(d,c,A,h,f,S,O){return this.displayList.add(new u(this.scene,d,c,A,h,f,S,O))})},80321:(o,m,s)=>{/** + */var u=s(33663),T=s(39429);T.register("plane",function(A,c,d,h,f,S,R){return this.displayList.add(new u(this.scene,A,c,d,h,f,S,R))})},80321:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(31401),d=s(95643),c=s(30100),A=s(36060),h=s(67277),f=new u({Extends:d,Mixins:[T.AlphaSingle,T.BlendMode,T.Depth,T.Mask,T.Pipeline,T.PostPipeline,T.ScrollFactor,T.Transform,T.Visible,h],initialize:P(function(O,L,p,N,g,C,v){N===void 0&&(N=16777215),g===void 0&&(g=128),C===void 0&&(C=1),v===void 0&&(v=.1),d.call(this,O,"PointLight"),this.initPipeline(A.POINTLIGHT_PIPELINE),this.initPostPipeline(),this.setPosition(L,p),this.color=c(N),this.intensity=C,this.attenuation=v,this.width=g*2,this.height=g*2,this._radius=g},"PointLight"),radius:{get:function(){return this._radius},set:function(S){this._radius=S,this.width=S*2,this.height=S*2}},originX:{get:function(){return .5}},originY:{get:function(){return .5}},displayOriginX:{get:function(){return this._radius}},displayOriginY:{get:function(){return this._radius}}});o.exports=f},39829:(o,m,s)=>{/** + */var u=s(83419),T=s(31401),A=s(95643),c=s(30100),d=s(36060),h=s(67277),f=new u({Extends:A,Mixins:[T.AlphaSingle,T.BlendMode,T.Depth,T.Mask,T.Pipeline,T.PostPipeline,T.ScrollFactor,T.Transform,T.Visible,h],initialize:v(function(R,L,p,N,g,C,P){N===void 0&&(N=16777215),g===void 0&&(g=128),C===void 0&&(C=1),P===void 0&&(P=.1),A.call(this,R,"PointLight"),this.initPipeline(d.POINTLIGHT_PIPELINE),this.initPostPipeline(),this.setPosition(L,p),this.color=c(N),this.intensity=C,this.attenuation=P,this.width=g*2,this.height=g*2,this._radius=g},"PointLight"),radius:{get:function(){return this._radius},set:function(S){this._radius=S,this.width=S*2,this.height=S*2}},originX:{get:function(){return .5}},originY:{get:function(){return .5}},displayOriginX:{get:function(){return this._radius}},displayOriginY:{get:function(){return this._radius}}});o.exports=f},39829:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(25305),T=s(44603),d=s(23568),c=s(80321);T.register("pointlight",function(A,h){A===void 0&&(A={});var f=d(A,"color",16777215),S=d(A,"radius",128),O=d(A,"intensity",1),L=d(A,"attenuation",.1),p=new c(this.scene,0,0,f,S,O,L);return h!==void 0&&(A.add=h),u(this.scene,p,A),p})},71255:(o,m,s)=>{/** + */var u=s(25305),T=s(44603),A=s(23568),c=s(80321);T.register("pointlight",function(d,h){d===void 0&&(d={});var f=A(d,"color",16777215),S=A(d,"radius",128),R=A(d,"intensity",1),L=A(d,"attenuation",.1),p=new c(this.scene,0,0,f,S,R,L);return h!==void 0&&(d.add=h),u(this.scene,p,d),p})},71255:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(39429),T=s(80321);u.register("pointlight",function(d,c,A,h,f,S){return this.displayList.add(new T(this.scene,d,c,A,h,f,S))})},67277:(o,m,s)=>{/** + */var u=s(39429),T=s(80321);u.register("pointlight",function(A,c,d,h,f,S){return this.displayList.add(new T(this.scene,A,c,d,h,f,S))})},67277:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(57787),o.exports={renderWebGL:T,renderCanvas:d}},57787:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(57787),o.exports={renderWebGL:T,renderCanvas:A}},57787:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91296),T=P(function(d,c,A,h){A.addToRenderList(c);var f=d.pipelines.set(c.pipeline),S=u(c,A,h).calc,O=c.width,L=c.height,p=-c._radius,N=-c._radius,g=p+O,C=N+L,v=S.getX(0,0),M=S.getY(0,0),D=S.getX(p,N),G=S.getY(p,N),H=S.getX(p,C),B=S.getY(p,C),_=S.getX(g,C),w=S.getY(g,C),b=S.getX(g,N),F=S.getY(g,N);d.pipelines.preBatch(c),f.batchPointLight(c,A,D,G,H,B,_,w,b,F,v,M),d.pipelines.postBatch(c)},"PointLightWebGLRenderer");o.exports=T},591:(o,m,s)=>{/** + */var u=s(91296),T=v(function(A,c,d,h){d.addToRenderList(c);var f=A.pipelines.set(c.pipeline),S=u(c,d,h).calc,R=c.width,L=c.height,p=-c._radius,N=-c._radius,g=p+R,C=N+L,P=S.getX(0,0),M=S.getY(0,0),D=S.getX(p,N),G=S.getY(p,N),H=S.getX(p,C),B=S.getY(p,C),b=S.getX(g,C),w=S.getY(g,C),_=S.getX(g,N),F=S.getY(g,N);A.pipelines.preBatch(c),f.batchPointLight(c,d,D,G,H,B,b,w,_,F,P,M),A.pipelines.postBatch(c)},"PointLightWebGLRenderer");o.exports=T},591:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(81320),d=s(88571),c=new u({Extends:d,initialize:P(function(h,f,S,O,L){f===void 0&&(f=0),S===void 0&&(S=0),O===void 0&&(O=32),L===void 0&&(L=32);var p=new T(h.sys.textures,"",O,L);d.call(this,h,f,S,p),this.type="RenderTexture",this.camera=this.texture.camera,this._saved=!1},"RenderTexture"),setSize:function(A,h){this.width=A,this.height=h,this.texture.setSize(A,h),this.updateDisplayOrigin();var f=this.input;return f&&!f.customHitArea&&(f.hitArea.width=A,f.hitArea.height=h),this},resize:function(A,h){return this.setSize(A,h),this},saveTexture:function(A){var h=this.texture;return h.key=A,h.manager.addDynamicTexture(h)&&(this._saved=!0),h},fill:function(A,h,f,S,O,L){return this.texture.fill(A,h,f,S,O,L),this},clear:function(){return this.texture.clear(),this},stamp:function(A,h,f,S,O){return this.texture.stamp(A,h,f,S,O),this},erase:function(A,h,f){return this.texture.erase(A,h,f),this},draw:function(A,h,f,S,O){return this.texture.draw(A,h,f,S,O),this},drawFrame:function(A,h,f,S,O,L){return this.texture.drawFrame(A,h,f,S,O,L),this},repeat:function(A,h,f,S,O,L,p,N,g){return this.texture.repeat(A,h,f,S,O,L,p,N,g),this},beginDraw:function(){return this.texture.beginDraw(),this},batchDraw:function(A,h,f,S,O){return this.texture.batchDraw(A,h,f,S,O),this},batchDrawFrame:function(A,h,f,S,O,L){return this.texture.batchDrawFrame(A,h,f,S,O,L),this},endDraw:function(A){return this.texture.endDraw(A),this},snapshotArea:function(A,h,f,S,O,L,p){return this.texture.snapshotArea(A,h,f,S,O,L,p),this},snapshot:function(A,h,f){return this.snapshotArea(0,0,this.width,this.height,A,h,f)},snapshotPixel:function(A,h,f){return this.snapshotArea(A,h,1,1,f,"pixel")},preDestroy:function(){this.camera=null,this._saved||this.texture.destroy()}});o.exports=c},34495:(o,m,s)=>{/** + */var u=s(83419),T=s(81320),A=s(88571),c=new u({Extends:A,initialize:v(function(h,f,S,R,L){f===void 0&&(f=0),S===void 0&&(S=0),R===void 0&&(R=32),L===void 0&&(L=32);var p=new T(h.sys.textures,"",R,L);A.call(this,h,f,S,p),this.type="RenderTexture",this.camera=this.texture.camera,this._saved=!1},"RenderTexture"),setSize:function(d,h){this.width=d,this.height=h,this.texture.setSize(d,h),this.updateDisplayOrigin();var f=this.input;return f&&!f.customHitArea&&(f.hitArea.width=d,f.hitArea.height=h),this},resize:function(d,h){return this.setSize(d,h),this},saveTexture:function(d){var h=this.texture;return h.key=d,h.manager.addDynamicTexture(h)&&(this._saved=!0),h},fill:function(d,h,f,S,R,L){return this.texture.fill(d,h,f,S,R,L),this},clear:function(){return this.texture.clear(),this},stamp:function(d,h,f,S,R){return this.texture.stamp(d,h,f,S,R),this},erase:function(d,h,f){return this.texture.erase(d,h,f),this},draw:function(d,h,f,S,R){return this.texture.draw(d,h,f,S,R),this},drawFrame:function(d,h,f,S,R,L){return this.texture.drawFrame(d,h,f,S,R,L),this},repeat:function(d,h,f,S,R,L,p,N,g){return this.texture.repeat(d,h,f,S,R,L,p,N,g),this},beginDraw:function(){return this.texture.beginDraw(),this},batchDraw:function(d,h,f,S,R){return this.texture.batchDraw(d,h,f,S,R),this},batchDrawFrame:function(d,h,f,S,R,L){return this.texture.batchDrawFrame(d,h,f,S,R,L),this},endDraw:function(d){return this.texture.endDraw(d),this},snapshotArea:function(d,h,f,S,R,L,p){return this.texture.snapshotArea(d,h,f,S,R,L,p),this},snapshot:function(d,h,f){return this.snapshotArea(0,0,this.width,this.height,d,h,f)},snapshotPixel:function(d,h,f){return this.snapshotArea(d,h,1,1,f,"pixel")},preDestroy:function(){this.camera=null,this._saved||this.texture.destroy()}});o.exports=c},34495:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(25305),T=s(44603),d=s(23568),c=s(591);T.register("renderTexture",function(A,h){A===void 0&&(A={});var f=d(A,"x",0),S=d(A,"y",0),O=d(A,"width",32),L=d(A,"height",32),p=new c(this.scene,f,S,O,L);return h!==void 0&&(A.add=h),u(this.scene,p,A),p})},60505:(o,m,s)=>{/** + */var u=s(25305),T=s(44603),A=s(23568),c=s(591);T.register("renderTexture",function(d,h){d===void 0&&(d={});var f=A(d,"x",0),S=A(d,"y",0),R=A(d,"width",32),L=A(d,"height",32),p=new c(this.scene,f,S,R,L);return h!==void 0&&(d.add=h),u(this.scene,p,d),p})},60505:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(39429),T=s(591);u.register("renderTexture",function(d,c,A,h){return this.displayList.add(new T(this.scene,d,c,A,h))})},77757:(o,m,s)=>{/** + */var u=s(39429),T=s(591);u.register("renderTexture",function(A,c,d,h){return this.displayList.add(new T(this.scene,A,c,d,h))})},77757:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(9674),T=s(83419),d=s(31401),c=s(95643),A=s(36060),h=s(38745),f=s(26099),S=new T({Extends:c,Mixins:[d.AlphaSingle,d.BlendMode,d.Depth,d.Flip,d.Mask,d.Pipeline,d.PostPipeline,d.Size,d.Texture,d.Transform,d.Visible,d.ScrollFactor,h],initialize:P(function(L,p,N,g,C,v,M,D,G){g===void 0&&(g="__DEFAULT"),v===void 0&&(v=2),M===void 0&&(M=!0),c.call(this,L,"Rope"),this.anims=new u(this),this.points=v,this.vertices,this.uv,this.colors,this.alphas,this.tintFill=g==="__DEFAULT",this.dirty=!1,this.horizontal=M,this._flipX=!1,this._flipY=!1,this._perp=new f,this.debugCallback=null,this.debugGraphic=null,this.setTexture(g,C),this.setPosition(p,N),this.setSizeToFrame(),this.initPipeline(A.ROPE_PIPELINE),this.initPostPipeline(),Array.isArray(v)&&this.resizeArrays(v.length),this.setPoints(v,D,G),this.updateVertices()},"Rope"),addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(O,L){var p=this.anims.currentFrame;this.anims.update(O,L),this.anims.currentFrame!==p&&(this.updateUVs(),this.updateVertices())},play:function(O,L,p){return this.anims.play(O,L,p),this},setDirty:function(){return this.dirty=!0,this},setHorizontal:function(O,L,p){return O===void 0&&(O=this.points.length),this.horizontal?this:(this.horizontal=!0,this.setPoints(O,L,p))},setVertical:function(O,L,p){return O===void 0&&(O=this.points.length),this.horizontal?(this.horizontal=!1,this.setPoints(O,L,p)):this},setTintFill:function(O){return O===void 0&&(O=!1),this.tintFill=O,this},setAlphas:function(O,L){var p=this.points.length;if(p<1)return this;var N=this.alphas;O===void 0?O=[1]:!Array.isArray(O)&&L===void 0&&(O=[O]);var g,C=0;if(L!==void 0)for(g=0;gC&&(v=O[C]),N[C]=v,O.length>C+1&&(v=O[C+1]),N[C+1]=v}return this},setColors:function(O){var L=this.points.length;if(L<1)return this;var p=this.colors;O===void 0?O=[16777215]:Array.isArray(O)||(O=[O]);var N,g=0;if(O.length===L)for(N=0;Ng&&(C=O[g]),p[g]=C,O.length>g+1&&(C=O[g+1]),p[g+1]=C}return this},setPoints:function(O,L,p){if(O===void 0&&(O=2),typeof O=="number"){var N=O;N<2&&(N=2),O=[];var g,C,v;if(this.horizontal)for(v=-this.frame.halfWidth,C=this.frame.width/(N-1),g=0;g{/** + */var u=s(9674),T=s(83419),A=s(31401),c=s(95643),d=s(36060),h=s(38745),f=s(26099),S=new T({Extends:c,Mixins:[A.AlphaSingle,A.BlendMode,A.Depth,A.Flip,A.Mask,A.Pipeline,A.PostPipeline,A.Size,A.Texture,A.Transform,A.Visible,A.ScrollFactor,h],initialize:v(function(L,p,N,g,C,P,M,D,G){g===void 0&&(g="__DEFAULT"),P===void 0&&(P=2),M===void 0&&(M=!0),c.call(this,L,"Rope"),this.anims=new u(this),this.points=P,this.vertices,this.uv,this.colors,this.alphas,this.tintFill=g==="__DEFAULT",this.dirty=!1,this.horizontal=M,this._flipX=!1,this._flipY=!1,this._perp=new f,this.debugCallback=null,this.debugGraphic=null,this.setTexture(g,C),this.setPosition(p,N),this.setSizeToFrame(),this.initPipeline(d.ROPE_PIPELINE),this.initPostPipeline(),Array.isArray(P)&&this.resizeArrays(P.length),this.setPoints(P,D,G),this.updateVertices()},"Rope"),addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(R,L){var p=this.anims.currentFrame;this.anims.update(R,L),this.anims.currentFrame!==p&&(this.updateUVs(),this.updateVertices())},play:function(R,L,p){return this.anims.play(R,L,p),this},setDirty:function(){return this.dirty=!0,this},setHorizontal:function(R,L,p){return R===void 0&&(R=this.points.length),this.horizontal?this:(this.horizontal=!0,this.setPoints(R,L,p))},setVertical:function(R,L,p){return R===void 0&&(R=this.points.length),this.horizontal?(this.horizontal=!1,this.setPoints(R,L,p)):this},setTintFill:function(R){return R===void 0&&(R=!1),this.tintFill=R,this},setAlphas:function(R,L){var p=this.points.length;if(p<1)return this;var N=this.alphas;R===void 0?R=[1]:!Array.isArray(R)&&L===void 0&&(R=[R]);var g,C=0;if(L!==void 0)for(g=0;gC&&(P=R[C]),N[C]=P,R.length>C+1&&(P=R[C+1]),N[C+1]=P}return this},setColors:function(R){var L=this.points.length;if(L<1)return this;var p=this.colors;R===void 0?R=[16777215]:Array.isArray(R)||(R=[R]);var N,g=0;if(R.length===L)for(N=0;Ng&&(C=R[g]),p[g]=C,R.length>g+1&&(C=R[g+1]),p[g+1]=C}return this},setPoints:function(R,L,p){if(R===void 0&&(R=2),typeof R=="number"){var N=R;N<2&&(N=2),R=[];var g,C,P;if(this.horizontal)for(P=-this.frame.halfWidth,C=this.frame.width/(N-1),g=0;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(){},"RopeCanvasRenderer");o.exports=m},26209:(o,m,s)=>{/** + */var O=v(function(){},"RopeCanvasRenderer");o.exports=O},26209:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(25305),T=s(44603),d=s(23568),c=s(35154),A=s(77757);T.register("rope",function(h,f){h===void 0&&(h={});var S=d(h,"key",null),O=d(h,"frame",null),L=d(h,"horizontal",!0),p=c(h,"points",void 0),N=c(h,"colors",void 0),g=c(h,"alphas",void 0),C=new A(this.scene,0,0,S,O,p,L,N,g);return f!==void 0&&(h.add=f),u(this.scene,C,h),C})},96819:(o,m,s)=>{/** + */var u=s(25305),T=s(44603),A=s(23568),c=s(35154),d=s(77757);T.register("rope",function(h,f){h===void 0&&(h={});var S=A(h,"key",null),R=A(h,"frame",null),L=A(h,"horizontal",!0),p=c(h,"points",void 0),N=c(h,"colors",void 0),g=c(h,"alphas",void 0),C=new d(this.scene,0,0,S,R,p,L,N,g);return f!==void 0&&(h.add=f),u(this.scene,C,h),C})},96819:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(77757),T=s(39429);T.register("rope",function(d,c,A,h,f,S,O,L){return this.displayList.add(new u(this.scene,d,c,A,h,f,S,O,L))})},38745:(o,m,s)=>{/** + */var u=s(77757),T=s(39429);T.register("rope",function(A,c,d,h,f,S,R,L){return this.displayList.add(new u(this.scene,A,c,d,h,f,S,R,L))})},38745:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(20439),d=s(95262),o.exports={renderWebGL:T,renderCanvas:d}},20439:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(20439),A=s(95262),o.exports={renderWebGL:T,renderCanvas:A}},20439:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91296),T=s(70554),d=P(function(c,A,h,f){h.addToRenderList(A);var S=c.pipelines.set(A.pipeline,A),O=u(A,h,f).calc,L=A.vertices,p=A.uv,N=A.colors,g=A.alphas,C=A.alpha,v=T.getTintAppendFloatAlpha,M=h.roundPixels,D=L.length,G=Math.floor(D*.5);S.flush(),c.pipelines.preBatch(A);var H=S.setGameObject(A),B=S.vertexViewF32,_=S.vertexViewU32,w=S.vertexCount*S.currentShader.vertexComponentCount-1,b=0,F=A.tintFill;A.dirty&&A.updateVertices();for(var k=A.debugCallback,V=[],Z=0;Z{/** + */var u=s(91296),T=s(70554),A=v(function(c,d,h,f){h.addToRenderList(d);var S=c.pipelines.set(d.pipeline,d),R=u(d,h,f).calc,L=d.vertices,p=d.uv,N=d.colors,g=d.alphas,C=d.alpha,P=T.getTintAppendFloatAlpha,M=h.roundPixels,D=L.length,G=Math.floor(D*.5);S.flush(),c.pipelines.preBatch(d);var H=S.setGameObject(d),B=S.vertexViewF32,b=S.vertexViewU32,w=S.vertexCount*S.currentShader.vertexComponentCount-1,_=0,F=d.tintFill;d.dirty&&d.updateVertices();for(var x=d.debugCallback,V=[],Z=0;Z{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(31401),d=s(95643),c=s(95540),A=s(79291),h=s(61622),f=s(25479),S=s(61340),O=s(95428),L=s(92503),p=new u({Extends:d,Mixins:[T.ComputedSize,T.Depth,T.GetBounds,T.Mask,T.Origin,T.ScrollFactor,T.Transform,T.Visible,f],initialize:P(function(g,C,v,M,D,G,H,B){v===void 0&&(v=0),M===void 0&&(M=0),D===void 0&&(D=128),G===void 0&&(G=128),d.call(this,g,"Shader"),this.blendMode=-1,this.shader;var _=g.sys.renderer;this.renderer=_,this.gl=_.gl,this.vertexData=new ArrayBuffer(6*(Float32Array.BYTES_PER_ELEMENT*2)),this.vertexBuffer=_.createVertexBuffer(this.vertexData.byteLength,this.gl.STREAM_DRAW),this._deferSetShader=null,this._deferProjOrtho=null,this.program=null,this.bytes=new Uint8Array(this.vertexData),this.vertexViewF32=new Float32Array(this.vertexData),this._tempMatrix1=new S,this._tempMatrix2=new S,this._tempMatrix3=new S,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=_.width,this._rendererHeight=_.height,this._textureCount=0,this.framebuffer=null,this.glTexture=null,this.renderToTexture=!1,this.texture=null,this.setPosition(v,M),this.setSize(D,G),this.setOrigin(.5,.5),this.setShader(C,H,B),this.renderer.on(L.RESTORE_WEBGL,this.onContextRestored,this)},"Shader"),willRender:function(N){return this.renderToTexture?!0:!(d.RENDER_MASK!==this.renderFlags||this.cameraFilter!==0&&this.cameraFilter&N.id)},setRenderToTexture:function(N,g){if(!this.renderToTexture){var C=this.width,v=this.height,M=this.renderer;this.glTexture=M.createTextureFromSource(null,C,v,0),this.framebuffer=M.createFramebuffer(C,v,this.glTexture,!1),this._rendererWidth=C,this._rendererHeight=v,this.renderToTexture=!0,this.projOrtho(0,this.width,this.height,0),N&&(this.texture=this.scene.sys.textures.addGLTexture(N,this.glTexture))}return this.shader&&(M.pipelines.clear(),this.load(),this.flush(),M.pipelines.rebind()),this},setShader:function(N,g,C){if(this.renderer.contextLost)return this._deferSetShader={key:N,textures:g,textureData:C},this;if(g===void 0&&(g=[]),typeof N=="string"){var v=this.scene.sys.cache.shader;if(!v.has(N))return console.warn("Shader missing: "+N),this;this.shader=v.get(N)}else this.shader=N;var M=this.gl,D=this.renderer;this.program&&D.deleteProgram(this.program);var G=D.createProgram(this.shader.vertexSrc,this.shader.fragmentSrc);M.uniformMatrix4fv(M.getUniformLocation(G.webGLProgram,"uViewMatrix"),!1,this.viewMatrix),M.uniformMatrix4fv(M.getUniformLocation(G.webGLProgram,"uProjectionMatrix"),!1,this.projectionMatrix),M.uniform2f(M.getUniformLocation(G.webGLProgram,"uResolution"),this.width,this.height),this.program=G;var H=new Date,B={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:[H.getFullYear(),H.getMonth(),H.getDate(),H.getHours()*60*60+H.getMinutes()*60+H.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,B):this.uniforms=B;for(var _=0;_<4;_++)g[_]&&this.setSampler2D("iChannel"+_,g[_],_,C);return this.initUniforms(),this.projOrtho(0,this._rendererWidth,this._rendererHeight,0),this},setPointer:function(N){return this.pointer=N,this},projOrtho:function(N,g,C,v){if(this.renderer.contextLost){this._deferProjOrtho={left:N,right:g,bottom:C,top:v};return}var M=-1e3,D=1e3,G=1/(N-g),H=1/(C-v),B=1/(M-D),_=this.projectionMatrix;_[0]=-2*G,_[5]=-2*H,_[10]=2*B,_[12]=(N+g)*G,_[13]=(v+C)*H,_[14]=(D+M)*B;var w=this.program,b=this.gl,F=this.renderer;F.setProgram(w),b.uniformMatrix4fv(b.getUniformLocation(w.webGLProgram,"uProjectionMatrix"),!1,this.projectionMatrix),this._rendererWidth=g,this._rendererHeight=C},initUniforms:function(){var N=this.renderer.glFuncMap,g=this.program;this._textureCount=0;for(var C in this.uniforms){var v=this.uniforms[C],M=v.type,D=N[M];v.uniformLocation=this.renderer.createUniformLocation(g,C),M!=="sampler2D"&&(v.glMatrix=D.matrix,v.glValueLength=D.length,v.glFunc=D.func)}},setSampler2DBuffer:function(N,g,C,v,M,D){M===void 0&&(M=0),D===void 0&&(D={});var G=this.uniforms[N];return G.value=g,D.width=C,D.height=v,G.textureData=D,this._textureCount=M,this.initSampler2D(G),this},setSampler2D:function(N,g,C,v){C===void 0&&(C=0);var M=this.scene.sys.textures;if(M.exists(g)){var D=M.getFrame(g);if(D.glTexture&&D.glTexture.isRenderTexture)return this.setSampler2DBuffer(N,D.glTexture,D.width,D.height,C,v);var G=this.uniforms[N],H=D.source;G.textureKey=g,G.source=H.image,G.value=D.glTexture,H.isGLTexture&&(v||(v={}),v.width=H.width,v.height=H.height),v&&(G.textureData=v),this._textureCount=C,this.initSampler2D(G)}return this},setUniform:function(N,g){return h(this.uniforms,N,g),this},getUniform:function(N){return c(this.uniforms,N,null)},setChannel0:function(N,g){return this.setSampler2D("iChannel0",N,0,g)},setChannel1:function(N,g){return this.setSampler2D("iChannel1",N,1,g)},setChannel2:function(N,g){return this.setSampler2D("iChannel2",N,2,g)},setChannel3:function(N,g){return this.setSampler2D("iChannel3",N,3,g)},initSampler2D:function(N){if(N.value){var g=N.textureData;if(g&&!N.value.isRenderTexture){var C=this.gl,v=N.value,M=C[c(g,"magFilter","linear").toUpperCase()],D=C[c(g,"minFilter","linear").toUpperCase()],G=C[c(g,"wrapS","repeat").toUpperCase()],H=C[c(g,"wrapT","repeat").toUpperCase()],B=C[c(g,"format","rgba").toUpperCase()],_=c(g,"flipY",!1),w=c(g,"width",v.width),b=c(g,"height",v.height),F=c(g,"source",v.pixels);g.repeat&&(G=C.REPEAT,H=C.REPEAT),g.width&&(F=null),v.update(F,w,b,_,G,H,D,M,B)}this.renderer.setProgram(this.program),this._textureCount++}},syncUniforms:function(){var N=this.gl,g=this.uniforms,C,v,M,D,G,H=0;for(var B in g)C=g[B],M=C.glFunc,v=C.glValueLength,D=C.uniformLocation,G=C.value,G!==null&&(v===1?C.glMatrix?M.call(N,D.webGLUniformLocation,C.transpose,G):M.call(N,D.webGLUniformLocation,G):v===2?M.call(N,D.webGLUniformLocation,G.x,G.y):v===3?M.call(N,D.webGLUniformLocation,G.x,G.y,G.z):v===4?M.call(N,D.webGLUniformLocation,G.x,G.y,G.z,G.w):C.type==="sampler2D"&&(N.activeTexture(N.TEXTURE0+H),N.bindTexture(N.TEXTURE_2D,G.webGLTexture),N.uniform1i(D.webGLUniformLocation,H),H++))},load:function(N){var g=this.gl,C=this.width,v=this.height,M=this.renderer,D=this.program,G=this.viewMatrix;if(!this.renderToTexture){var H=-this._displayOriginX,B=-this._displayOriginY;G[0]=N[0],G[1]=N[1],G[4]=N[2],G[5]=N[3],G[8]=N[4],G[9]=N[5],G[12]=G[0]*H+G[4]*B,G[13]=G[1]*H+G[5]*B}g.useProgram(D.webGLProgram),g.uniformMatrix4fv(g.getUniformLocation(D.webGLProgram,"uViewMatrix"),!1,G),g.uniformMatrix4fv(g.getUniformLocation(D.webGLProgram,"uProjectionMatrix"),!1,this.projectionMatrix),g.uniform2f(g.getUniformLocation(D.webGLProgram,"uResolution"),this.width,this.height);var _=this.uniforms,w=_.resolution;w.value.x=C,w.value.y=v,_.time.value=M.game.loop.getDuration();var b=this.pointer;if(b){var F=_.mouse,k=b.x/C,V=1-b.y/v;F.value.x=k.toFixed(2),F.value.y=V.toFixed(2)}this.syncUniforms()},flush:function(){var N=this.width,g=this.height,C=this.program,v=this.gl,M=this.vertexBuffer,D=this.renderer,G=Float32Array.BYTES_PER_ELEMENT*2;this.renderToTexture&&(D.setFramebuffer(this.framebuffer),v.clearColor(0,0,0,0),v.clear(v.COLOR_BUFFER_BIT)),v.bindBuffer(v.ARRAY_BUFFER,M.webGLBuffer);var H=v.getAttribLocation(C.webGLProgram,"inPosition");H!==-1&&(v.enableVertexAttribArray(H),v.vertexAttribPointer(H,2,v.FLOAT,!1,G,0));var B=this.vertexViewF32;B[3]=g,B[4]=N,B[5]=g,B[8]=N,B[9]=g,B[10]=N;var _=6;v.bufferSubData(v.ARRAY_BUFFER,0,this.bytes.subarray(0,_*G)),v.drawArrays(v.TRIANGLES,0,_),this.renderToTexture&&D.setFramebuffer(null,!1)},setAlpha:function(){},setBlendMode:function(){},onContextRestored:function(){if(this._deferSetShader!==null){var N=this._deferSetShader.key,g=this._deferSetShader.textures,C=this._deferSetShader.textureData;this._deferSetShader=null,this.setShader(N,g,C)}if(this._deferProjOrtho!==null){var v=this._deferProjOrtho.left,M=this._deferProjOrtho.right,D=this._deferProjOrtho.bottom,G=this._deferProjOrtho.top;this._deferProjOrtho=null,this.projOrtho(v,M,D,G)}},preDestroy:function(){var N=this.renderer;N.off(L.RESTORE_WEBGL,this.onContextRestored,this),N.deleteProgram(this.program),N.deleteBuffer(this.vertexBuffer),this.renderToTexture&&(N.deleteFramebuffer(this.framebuffer),this.texture.destroy(),this.framebuffer=null,this.glTexture=null,this.texture=null),O(this.uniforms,function(g){N.deleteUniformLocation(g.uniformLocation),g.uniformLocation=null})}});o.exports=p},80464:o=>{/** + */var u=s(83419),T=s(31401),A=s(95643),c=s(95540),d=s(79291),h=s(61622),f=s(25479),S=s(61340),R=s(95428),L=s(92503),p=new u({Extends:A,Mixins:[T.ComputedSize,T.Depth,T.GetBounds,T.Mask,T.Origin,T.ScrollFactor,T.Transform,T.Visible,f],initialize:v(function(g,C,P,M,D,G,H,B){P===void 0&&(P=0),M===void 0&&(M=0),D===void 0&&(D=128),G===void 0&&(G=128),A.call(this,g,"Shader"),this.blendMode=-1,this.shader;var b=g.sys.renderer;this.renderer=b,this.gl=b.gl,this.vertexData=new ArrayBuffer(6*(Float32Array.BYTES_PER_ELEMENT*2)),this.vertexBuffer=b.createVertexBuffer(this.vertexData.byteLength,this.gl.STREAM_DRAW),this._deferSetShader=null,this._deferProjOrtho=null,this.program=null,this.bytes=new Uint8Array(this.vertexData),this.vertexViewF32=new Float32Array(this.vertexData),this._tempMatrix1=new S,this._tempMatrix2=new S,this._tempMatrix3=new S,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=b.width,this._rendererHeight=b.height,this._textureCount=0,this.framebuffer=null,this.glTexture=null,this.renderToTexture=!1,this.texture=null,this.setPosition(P,M),this.setSize(D,G),this.setOrigin(.5,.5),this.setShader(C,H,B),this.renderer.on(L.RESTORE_WEBGL,this.onContextRestored,this)},"Shader"),willRender:function(N){return this.renderToTexture?!0:!(A.RENDER_MASK!==this.renderFlags||this.cameraFilter!==0&&this.cameraFilter&N.id)},setRenderToTexture:function(N,g){if(!this.renderToTexture){var C=this.width,P=this.height,M=this.renderer;this.glTexture=M.createTextureFromSource(null,C,P,0),this.framebuffer=M.createFramebuffer(C,P,this.glTexture,!1),this._rendererWidth=C,this._rendererHeight=P,this.renderToTexture=!0,this.projOrtho(0,this.width,this.height,0),N&&(this.texture=this.scene.sys.textures.addGLTexture(N,this.glTexture))}return this.shader&&(M.pipelines.clear(),this.load(),this.flush(),M.pipelines.rebind()),this},setShader:function(N,g,C){if(this.renderer.contextLost)return this._deferSetShader={key:N,textures:g,textureData:C},this;if(g===void 0&&(g=[]),typeof N=="string"){var P=this.scene.sys.cache.shader;if(!P.has(N))return console.warn("Shader missing: "+N),this;this.shader=P.get(N)}else this.shader=N;var M=this.gl,D=this.renderer;this.program&&D.deleteProgram(this.program);var G=D.createProgram(this.shader.vertexSrc,this.shader.fragmentSrc);M.uniformMatrix4fv(M.getUniformLocation(G.webGLProgram,"uViewMatrix"),!1,this.viewMatrix),M.uniformMatrix4fv(M.getUniformLocation(G.webGLProgram,"uProjectionMatrix"),!1,this.projectionMatrix),M.uniform2f(M.getUniformLocation(G.webGLProgram,"uResolution"),this.width,this.height),this.program=G;var H=new Date,B={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:[H.getFullYear(),H.getMonth(),H.getDate(),H.getHours()*60*60+H.getMinutes()*60+H.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=d(!0,{},this.shader.uniforms,B):this.uniforms=B;for(var b=0;b<4;b++)g[b]&&this.setSampler2D("iChannel"+b,g[b],b,C);return this.initUniforms(),this.projOrtho(0,this._rendererWidth,this._rendererHeight,0),this},setPointer:function(N){return this.pointer=N,this},projOrtho:function(N,g,C,P){if(this.renderer.contextLost){this._deferProjOrtho={left:N,right:g,bottom:C,top:P};return}var M=-1e3,D=1e3,G=1/(N-g),H=1/(C-P),B=1/(M-D),b=this.projectionMatrix;b[0]=-2*G,b[5]=-2*H,b[10]=2*B,b[12]=(N+g)*G,b[13]=(P+C)*H,b[14]=(D+M)*B;var w=this.program,_=this.gl,F=this.renderer;F.setProgram(w),_.uniformMatrix4fv(_.getUniformLocation(w.webGLProgram,"uProjectionMatrix"),!1,this.projectionMatrix),this._rendererWidth=g,this._rendererHeight=C},initUniforms:function(){var N=this.renderer.glFuncMap,g=this.program;this._textureCount=0;for(var C in this.uniforms){var P=this.uniforms[C],M=P.type,D=N[M];P.uniformLocation=this.renderer.createUniformLocation(g,C),M!=="sampler2D"&&(P.glMatrix=D.matrix,P.glValueLength=D.length,P.glFunc=D.func)}},setSampler2DBuffer:function(N,g,C,P,M,D){M===void 0&&(M=0),D===void 0&&(D={});var G=this.uniforms[N];return G.value=g,D.width=C,D.height=P,G.textureData=D,this._textureCount=M,this.initSampler2D(G),this},setSampler2D:function(N,g,C,P){C===void 0&&(C=0);var M=this.scene.sys.textures;if(M.exists(g)){var D=M.getFrame(g);if(D.glTexture&&D.glTexture.isRenderTexture)return this.setSampler2DBuffer(N,D.glTexture,D.width,D.height,C,P);var G=this.uniforms[N],H=D.source;G.textureKey=g,G.source=H.image,G.value=D.glTexture,H.isGLTexture&&(P||(P={}),P.width=H.width,P.height=H.height),P&&(G.textureData=P),this._textureCount=C,this.initSampler2D(G)}return this},setUniform:function(N,g){return h(this.uniforms,N,g),this},getUniform:function(N){return c(this.uniforms,N,null)},setChannel0:function(N,g){return this.setSampler2D("iChannel0",N,0,g)},setChannel1:function(N,g){return this.setSampler2D("iChannel1",N,1,g)},setChannel2:function(N,g){return this.setSampler2D("iChannel2",N,2,g)},setChannel3:function(N,g){return this.setSampler2D("iChannel3",N,3,g)},initSampler2D:function(N){if(N.value){var g=N.textureData;if(g&&!N.value.isRenderTexture){var C=this.gl,P=N.value,M=C[c(g,"magFilter","linear").toUpperCase()],D=C[c(g,"minFilter","linear").toUpperCase()],G=C[c(g,"wrapS","repeat").toUpperCase()],H=C[c(g,"wrapT","repeat").toUpperCase()],B=C[c(g,"format","rgba").toUpperCase()],b=c(g,"flipY",!1),w=c(g,"width",P.width),_=c(g,"height",P.height),F=c(g,"source",P.pixels);g.repeat&&(G=C.REPEAT,H=C.REPEAT),g.width&&(F=null),P.update(F,w,_,b,G,H,D,M,B)}this.renderer.setProgram(this.program),this._textureCount++}},syncUniforms:function(){var N=this.gl,g=this.uniforms,C,P,M,D,G,H=0;for(var B in g)C=g[B],M=C.glFunc,P=C.glValueLength,D=C.uniformLocation,G=C.value,G!==null&&(P===1?C.glMatrix?M.call(N,D.webGLUniformLocation,C.transpose,G):M.call(N,D.webGLUniformLocation,G):P===2?M.call(N,D.webGLUniformLocation,G.x,G.y):P===3?M.call(N,D.webGLUniformLocation,G.x,G.y,G.z):P===4?M.call(N,D.webGLUniformLocation,G.x,G.y,G.z,G.w):C.type==="sampler2D"&&(N.activeTexture(N.TEXTURE0+H),N.bindTexture(N.TEXTURE_2D,G.webGLTexture),N.uniform1i(D.webGLUniformLocation,H),H++))},load:function(N){var g=this.gl,C=this.width,P=this.height,M=this.renderer,D=this.program,G=this.viewMatrix;if(!this.renderToTexture){var H=-this._displayOriginX,B=-this._displayOriginY;G[0]=N[0],G[1]=N[1],G[4]=N[2],G[5]=N[3],G[8]=N[4],G[9]=N[5],G[12]=G[0]*H+G[4]*B,G[13]=G[1]*H+G[5]*B}g.useProgram(D.webGLProgram),g.uniformMatrix4fv(g.getUniformLocation(D.webGLProgram,"uViewMatrix"),!1,G),g.uniformMatrix4fv(g.getUniformLocation(D.webGLProgram,"uProjectionMatrix"),!1,this.projectionMatrix),g.uniform2f(g.getUniformLocation(D.webGLProgram,"uResolution"),this.width,this.height);var b=this.uniforms,w=b.resolution;w.value.x=C,w.value.y=P,b.time.value=M.game.loop.getDuration();var _=this.pointer;if(_){var F=b.mouse,x=_.x/C,V=1-_.y/P;F.value.x=x.toFixed(2),F.value.y=V.toFixed(2)}this.syncUniforms()},flush:function(){var N=this.width,g=this.height,C=this.program,P=this.gl,M=this.vertexBuffer,D=this.renderer,G=Float32Array.BYTES_PER_ELEMENT*2;this.renderToTexture&&(D.setFramebuffer(this.framebuffer),P.clearColor(0,0,0,0),P.clear(P.COLOR_BUFFER_BIT)),P.bindBuffer(P.ARRAY_BUFFER,M.webGLBuffer);var H=P.getAttribLocation(C.webGLProgram,"inPosition");H!==-1&&(P.enableVertexAttribArray(H),P.vertexAttribPointer(H,2,P.FLOAT,!1,G,0));var B=this.vertexViewF32;B[3]=g,B[4]=N,B[5]=g,B[8]=N,B[9]=g,B[10]=N;var b=6;P.bufferSubData(P.ARRAY_BUFFER,0,this.bytes.subarray(0,b*G)),P.drawArrays(P.TRIANGLES,0,b),this.renderToTexture&&D.setFramebuffer(null,!1)},setAlpha:function(){},setBlendMode:function(){},onContextRestored:function(){if(this._deferSetShader!==null){var N=this._deferSetShader.key,g=this._deferSetShader.textures,C=this._deferSetShader.textureData;this._deferSetShader=null,this.setShader(N,g,C)}if(this._deferProjOrtho!==null){var P=this._deferProjOrtho.left,M=this._deferProjOrtho.right,D=this._deferProjOrtho.bottom,G=this._deferProjOrtho.top;this._deferProjOrtho=null,this.projOrtho(P,M,D,G)}},preDestroy:function(){var N=this.renderer;N.off(L.RESTORE_WEBGL,this.onContextRestored,this),N.deleteProgram(this.program),N.deleteBuffer(this.vertexBuffer),this.renderToTexture&&(N.deleteFramebuffer(this.framebuffer),this.texture.destroy(),this.framebuffer=null,this.glTexture=null,this.texture=null),R(this.uniforms,function(g){N.deleteUniformLocation(g.uniformLocation),g.uniformLocation=null})}});o.exports=p},80464:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(){},"ShaderCanvasRenderer");o.exports=m},54935:(o,m,s)=>{/** + */var O=v(function(){},"ShaderCanvasRenderer");o.exports=O},54935:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(25305),T=s(44603),d=s(23568),c=s(20071);T.register("shader",function(A,h){A===void 0&&(A={});var f=d(A,"key",null),S=d(A,"x",0),O=d(A,"y",0),L=d(A,"width",128),p=d(A,"height",128),N=new c(this.scene,f,S,O,L,p);return h!==void 0&&(A.add=h),u(this.scene,N,A),N})},74177:(o,m,s)=>{/** + */var u=s(25305),T=s(44603),A=s(23568),c=s(20071);T.register("shader",function(d,h){d===void 0&&(d={});var f=A(d,"key",null),S=A(d,"x",0),R=A(d,"y",0),L=A(d,"width",128),p=A(d,"height",128),N=new c(this.scene,f,S,R,L,p);return h!==void 0&&(d.add=h),u(this.scene,N,d),N})},74177:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(20071),T=s(39429);T.register("shader",function(d,c,A,h,f,S,O){return this.displayList.add(new u(this.scene,d,c,A,h,f,S,O))})},25479:(o,m,s)=>{/** + */var u=s(20071),T=s(39429);T.register("shader",function(A,c,d,h,f,S,R){return this.displayList.add(new u(this.scene,A,c,d,h,f,S,R))})},25479:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(19257),d=s(80464),o.exports={renderWebGL:T,renderCanvas:d}},19257:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(19257),A=s(80464),o.exports={renderWebGL:T,renderCanvas:A}},19257:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91296),T=P(function(d,c,A,h){if(c.shader){if(A.addToRenderList(c),d.pipelines.clear(),c.renderToTexture)c.load(),c.flush();else{var f=u(c,A,h).calc;(d.width!==c._rendererWidth||d.height!==c._rendererHeight)&&c.projOrtho(0,d.width,d.height,0),c.load(f.matrix),c.flush()}d.pipelines.rebind()}},"ShaderWebGLRenderer");o.exports=T},10441:(o,m,s)=>{/** + */var u=s(91296),T=v(function(A,c,d,h){if(c.shader){if(d.addToRenderList(c),A.pipelines.clear(),c.renderToTexture)c.load(),c.flush();else{var f=u(c,d,h).calc;(A.width!==c._rendererWidth||A.height!==c._rendererHeight)&&c.projOrtho(0,A.width,A.height,0),c.load(f.matrix),c.flush()}A.pipelines.rebind()}},"ShaderWebGLRenderer");o.exports=T},10441:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(70554),T=P(function(d,c,A,h,f,S){for(var O=u.getTintAppendFloatAlpha(A.fillColor,A.fillAlpha*h),L=A.pathData,p=A.pathIndexes,N=0;N{/** + */var u=s(70554),T=v(function(A,c,d,h,f,S){for(var R=u.getTintAppendFloatAlpha(d.fillColor,d.fillAlpha*h),L=d.pathData,p=d.pathIndexes,N=0;N{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){var c=T||u.fillColor,A=d||u.fillAlpha,h=(c&16711680)>>>16,f=(c&65280)>>>8,S=c&255;s.fillStyle="rgba("+h+","+f+","+S+","+A+")"},"FillStyleCanvas");o.exports=m},75177:o=>{/** + */var O=v(function(s,u,T,A){var c=T||u.fillColor,d=A||u.fillAlpha,h=(c&16711680)>>>16,f=(c&65280)>>>8,S=c&255;s.fillStyle="rgba("+h+","+f+","+S+","+d+")"},"FillStyleCanvas");o.exports=O},75177:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){var c=T||u.strokeColor,A=d||u.strokeAlpha,h=(c&16711680)>>>16,f=(c&65280)>>>8,S=c&255;s.strokeStyle="rgba("+h+","+f+","+S+","+A+")",s.lineWidth=u.lineWidth},"LineStyleCanvas");o.exports=m},17803:(o,m,s)=>{/** + */var O=v(function(s,u,T,A){var c=T||u.strokeColor,d=A||u.strokeAlpha,h=(c&16711680)>>>16,f=(c&65280)>>>8,S=c&255;s.strokeStyle="rgba("+h+","+f+","+S+","+d+")",s.lineWidth=u.lineWidth},"LineStyleCanvas");o.exports=O},17803:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(31401),d=s(95643),c=s(23031),A=new u({Extends:d,Mixins:[T.AlphaSingle,T.BlendMode,T.Depth,T.GetBounds,T.Mask,T.Origin,T.Pipeline,T.PostPipeline,T.ScrollFactor,T.Transform,T.Visible],initialize:P(function(f,S,O){S===void 0&&(S="Shape"),d.call(this,f,S),this.geom=O,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 c,this.width=0,this.height=0,this.initPipeline(),this.initPostPipeline()},"Shape"),setFillStyle:function(h,f){return f===void 0&&(f=1),h===void 0?this.isFilled=!1:(this.fillColor=h,this.fillAlpha=f,this.isFilled=!0),this},setStrokeStyle:function(h,f,S){return S===void 0&&(S=1),h===void 0?this.isStroked=!1:(this.lineWidth=h,this.strokeColor=f,this.strokeAlpha=S,this.isStroked=!0),this},setClosePath:function(h){return this.closePath=h,this},setSize:function(h,f){return this.width=h,this.height=f,this},setDisplaySize:function(h,f){return this.displayWidth=h,this.displayHeight=f,this},preDestroy:function(){this.geom=null,this._tempLine=null,this.pathData=[],this.pathIndexes=[]},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}}});o.exports=A},34682:(o,m,s)=>{/** + */var u=s(83419),T=s(31401),A=s(95643),c=s(23031),d=new u({Extends:A,Mixins:[T.AlphaSingle,T.BlendMode,T.Depth,T.GetBounds,T.Mask,T.Origin,T.Pipeline,T.PostPipeline,T.ScrollFactor,T.Transform,T.Visible],initialize:v(function(f,S,R){S===void 0&&(S="Shape"),A.call(this,f,S),this.geom=R,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 c,this.width=0,this.height=0,this.initPipeline(),this.initPostPipeline()},"Shape"),setFillStyle:function(h,f){return f===void 0&&(f=1),h===void 0?this.isFilled=!1:(this.fillColor=h,this.fillAlpha=f,this.isFilled=!0),this},setStrokeStyle:function(h,f,S){return S===void 0&&(S=1),h===void 0?this.isStroked=!1:(this.lineWidth=h,this.strokeColor=f,this.strokeAlpha=S,this.isStroked=!0),this},setClosePath:function(h){return this.closePath=h,this},setSize:function(h,f){return this.width=h,this.height=f,this},setDisplaySize:function(h,f){return this.displayWidth=h,this.displayHeight=f,this},preDestroy:function(){this.geom=null,this._tempLine=null,this.pathData=[],this.pathIndexes=[]},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}}});o.exports=d},34682:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(70554),T=P(function(d,c,A,h,f){var S=d.strokeTint,O=u.getTintAppendFloatAlpha(c.strokeColor,c.strokeAlpha*A);S.TL=O,S.TR=O,S.BL=O,S.BR=O;var L=c.pathData,p=L.length-1,N=c.lineWidth,g=N/2,C=L[0]-h,v=L[1]-f;c.closePath||(p-=2);for(var M=2;M{/** + */var u=s(70554),T=v(function(A,c,d,h,f){var S=A.strokeTint,R=u.getTintAppendFloatAlpha(c.strokeColor,c.strokeAlpha*d);S.TL=R,S.TR=R,S.BL=R,S.BR=R;var L=c.pathData,p=L.length-1,N=c.lineWidth,g=N/2,C=L[0]-h,P=L[1]-f;c.closePath||(p-=2);for(var M=2;M{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(13609),T=s(83419),d=s(39506),c=s(94811),A=s(96503),h=s(36383),f=s(17803),S=new T({Extends:f,Mixins:[u],initialize:P(function(L,p,N,g,C,v,M,D,G){p===void 0&&(p=0),N===void 0&&(N=0),g===void 0&&(g=128),C===void 0&&(C=0),v===void 0&&(v=360),M===void 0&&(M=!1),f.call(this,L,"Arc",new A(0,0,g)),this._startAngle=C,this._endAngle=v,this._anticlockwise=M,this._iterations=.01,this.setPosition(p,N);var H=this.geom.radius*2;this.setSize(H,H),D!==void 0&&this.setFillStyle(D,G),this.updateDisplayOrigin(),this.updateData()},"Arc"),iterations:{get:function(){return this._iterations},set:function(O){this._iterations=O,this.updateData()}},radius:{get:function(){return this.geom.radius},set:function(O){this.geom.radius=O;var L=O*2;this.setSize(L,L),this.updateDisplayOrigin(),this.updateData()}},startAngle:{get:function(){return this._startAngle},set:function(O){this._startAngle=O,this.updateData()}},endAngle:{get:function(){return this._endAngle},set:function(O){this._endAngle=O,this.updateData()}},anticlockwise:{get:function(){return this._anticlockwise},set:function(O){this._anticlockwise=O,this.updateData()}},setRadius:function(O){return this.radius=O,this},setIterations:function(O){return O===void 0&&(O=.01),this.iterations=O,this},setStartAngle:function(O,L){return this._startAngle=O,L!==void 0&&(this._anticlockwise=L),this.updateData()},setEndAngle:function(O,L){return this._endAngle=O,L!==void 0&&(this._anticlockwise=L),this.updateData()},updateData:function(){var O=this._iterations,L=O,p=this.geom.radius,N=d(this._startAngle),g=d(this._endAngle),C=this._anticlockwise,v=p,M=p;g-=N,C?g<-h.PI2?g=-h.PI2:g>0&&(g=-h.PI2+g%h.PI2):g>h.PI2?g=h.PI2:g<0&&(g=h.PI2+g%h.PI2);for(var D=[v+Math.cos(N)*p,M+Math.sin(N)*p],G;L<1;)G=g*L+N,D.push(v+Math.cos(G)*p,M+Math.sin(G)*p),L+=O;return G=g+N,D.push(v+Math.cos(G)*p,M+Math.sin(G)*p),D.push(v+Math.cos(N)*p,M+Math.sin(N)*p),this.pathIndexes=c(D),this.pathData=D,this}});o.exports=S},42542:(o,m,s)=>{/** + */var u=s(13609),T=s(83419),A=s(39506),c=s(94811),d=s(96503),h=s(36383),f=s(17803),S=new T({Extends:f,Mixins:[u],initialize:v(function(L,p,N,g,C,P,M,D,G){p===void 0&&(p=0),N===void 0&&(N=0),g===void 0&&(g=128),C===void 0&&(C=0),P===void 0&&(P=360),M===void 0&&(M=!1),f.call(this,L,"Arc",new d(0,0,g)),this._startAngle=C,this._endAngle=P,this._anticlockwise=M,this._iterations=.01,this.setPosition(p,N);var H=this.geom.radius*2;this.setSize(H,H),D!==void 0&&this.setFillStyle(D,G),this.updateDisplayOrigin(),this.updateData()},"Arc"),iterations:{get:function(){return this._iterations},set:function(R){this._iterations=R,this.updateData()}},radius:{get:function(){return this.geom.radius},set:function(R){this.geom.radius=R;var L=R*2;this.setSize(L,L),this.updateDisplayOrigin(),this.updateData()}},startAngle:{get:function(){return this._startAngle},set:function(R){this._startAngle=R,this.updateData()}},endAngle:{get:function(){return this._endAngle},set:function(R){this._endAngle=R,this.updateData()}},anticlockwise:{get:function(){return this._anticlockwise},set:function(R){this._anticlockwise=R,this.updateData()}},setRadius:function(R){return this.radius=R,this},setIterations:function(R){return R===void 0&&(R=.01),this.iterations=R,this},setStartAngle:function(R,L){return this._startAngle=R,L!==void 0&&(this._anticlockwise=L),this.updateData()},setEndAngle:function(R,L){return this._endAngle=R,L!==void 0&&(this._anticlockwise=L),this.updateData()},updateData:function(){var R=this._iterations,L=R,p=this.geom.radius,N=A(this._startAngle),g=A(this._endAngle),C=this._anticlockwise,P=p,M=p;g-=N,C?g<-h.PI2?g=-h.PI2:g>0&&(g=-h.PI2+g%h.PI2):g>h.PI2?g=h.PI2:g<0&&(g=h.PI2+g%h.PI2);for(var D=[P+Math.cos(N)*p,M+Math.sin(N)*p],G;L<1;)G=g*L+N,D.push(P+Math.cos(G)*p,M+Math.sin(G)*p),L+=R;return G=g+N,D.push(P+Math.cos(G)*p,M+Math.sin(G)*p),D.push(P+Math.cos(N)*p,M+Math.sin(N)*p),this.pathIndexes=c(D),this.pathData=D,this}});o.exports=S},42542:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(39506),T=s(65960),d=s(75177),c=s(20926),A=P(function(h,f,S,O){S.addToRenderList(f);var L=h.currentContext;if(c(h,L,f,S,O)){var p=f.radius;L.beginPath(),L.arc(p-f.originX*(p*2),p-f.originY*(p*2),p,u(f._startAngle),u(f._endAngle),f.anticlockwise),f.closePath&&L.closePath(),f.isFilled&&(T(L,f),L.fill()),f.isStroked&&(d(L,f),L.stroke()),L.restore()}},"ArcCanvasRenderer");o.exports=A},42563:(o,m,s)=>{/** + */var u=s(39506),T=s(65960),A=s(75177),c=s(20926),d=v(function(h,f,S,R){S.addToRenderList(f);var L=h.currentContext;if(c(h,L,f,S,R)){var p=f.radius;L.beginPath(),L.arc(p-f.originX*(p*2),p-f.originY*(p*2),p,u(f._startAngle),u(f._endAngle),f.anticlockwise),f.closePath&&L.closePath(),f.isFilled&&(T(L,f),L.fill()),f.isStroked&&(A(L,f),L.stroke()),L.restore()}},"ArcCanvasRenderer");o.exports=d},42563:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(23629),T=s(39429);T.register("arc",function(d,c,A,h,f,S,O,L){return this.displayList.add(new u(this.scene,d,c,A,h,f,S,O,L))}),T.register("circle",function(d,c,A,h,f){return this.displayList.add(new u(this.scene,d,c,A,0,360,!1,h,f))})},13609:(o,m,s)=>{/** + */var u=s(23629),T=s(39429);T.register("arc",function(A,c,d,h,f,S,R,L){return this.displayList.add(new u(this.scene,A,c,d,h,f,S,R,L))}),T.register("circle",function(A,c,d,h,f){return this.displayList.add(new u(this.scene,A,c,d,0,360,!1,h,f))})},13609:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(41447),d=s(42542),o.exports={renderWebGL:T,renderCanvas:d}},41447:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(41447),A=s(42542),o.exports={renderWebGL:T,renderCanvas:A}},41447:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91296),T=s(10441),d=s(34682),c=P(function(A,h,f,S){f.addToRenderList(h);var O=A.pipelines.set(h.pipeline),L=u(h,f,S),p=O.calcMatrix.copyFrom(L.calc),N=h._displayOriginX,g=h._displayOriginY,C=f.alpha*h.alpha;A.pipelines.preBatch(h),h.isFilled&&T(O,p,h,C,N,g),h.isStroked&&d(O,h,C,N,g),A.pipelines.postBatch(h)},"ArcWebGLRenderer");o.exports=c},89:(o,m,s)=>{/** + */var u=s(91296),T=s(10441),A=s(34682),c=v(function(d,h,f,S){f.addToRenderList(h);var R=d.pipelines.set(h.pipeline),L=u(h,f,S),p=R.calcMatrix.copyFrom(L.calc),N=h._displayOriginX,g=h._displayOriginY,C=f.alpha*h.alpha;d.pipelines.preBatch(h),h.isFilled&&T(R,p,h,C,N,g),h.isStroked&&A(R,h,C,N,g),d.pipelines.postBatch(h)},"ArcWebGLRenderer");o.exports=c},89:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(33141),d=s(94811),c=s(87841),A=s(17803),h=new u({Extends:A,Mixins:[T],initialize:P(function(S,O,L,p,N,g){O===void 0&&(O=0),L===void 0&&(L=0),A.call(this,S,"Curve",p),this._smoothness=32,this._curveBounds=new c,this.closePath=!1,this.setPosition(O,L),N!==void 0&&this.setFillStyle(N,g),this.updateData()},"Curve"),smoothness:{get:function(){return this._smoothness},set:function(f){this._smoothness=f,this.updateData()}},setSmoothness:function(f){return this._smoothness=f,this.updateData()},updateData:function(){var f=this._curveBounds,S=this._smoothness;this.geom.getBounds(f,S),this.setSize(f.width,f.height),this.updateDisplayOrigin();for(var O=[],L=this.geom.getPoints(S),p=0;p{/** + */var u=s(83419),T=s(33141),A=s(94811),c=s(87841),d=s(17803),h=new u({Extends:d,Mixins:[T],initialize:v(function(S,R,L,p,N,g){R===void 0&&(R=0),L===void 0&&(L=0),d.call(this,S,"Curve",p),this._smoothness=32,this._curveBounds=new c,this.closePath=!1,this.setPosition(R,L),N!==void 0&&this.setFillStyle(N,g),this.updateData()},"Curve"),smoothness:{get:function(){return this._smoothness},set:function(f){this._smoothness=f,this.updateData()}},setSmoothness:function(f){return this._smoothness=f,this.updateData()},updateData:function(){var f=this._curveBounds,S=this._smoothness;this.geom.getBounds(f,S),this.setSize(f.width,f.height),this.updateDisplayOrigin();for(var R=[],L=this.geom.getPoints(S),p=0;p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(65960),T=s(75177),d=s(20926),c=P(function(A,h,f,S){f.addToRenderList(h);var O=A.currentContext;if(d(A,O,h,f,S)){var L=h._displayOriginX+h._curveBounds.x,p=h._displayOriginY+h._curveBounds.y,N=h.pathData,g=N.length-1,C=N[0]-L,v=N[1]-p;O.beginPath(),O.moveTo(C,v),h.closePath||(g-=2);for(var M=2;M{/** + */var u=s(65960),T=s(75177),A=s(20926),c=v(function(d,h,f,S){f.addToRenderList(h);var R=d.currentContext;if(A(d,R,h,f,S)){var L=h._displayOriginX+h._curveBounds.x,p=h._displayOriginY+h._curveBounds.y,N=h.pathData,g=N.length-1,C=N[0]-L,P=N[1]-p;R.beginPath(),R.moveTo(C,P),h.closePath||(g-=2);for(var M=2;M{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(39429),T=s(89);u.register("curve",function(d,c,A,h,f){return this.displayList.add(new T(this.scene,d,c,A,h,f))})},33141:(o,m,s)=>{/** + */var u=s(39429),T=s(89);u.register("curve",function(A,c,d,h,f){return this.displayList.add(new T(this.scene,A,c,d,h,f))})},33141:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(53987),d=s(3170),o.exports={renderWebGL:T,renderCanvas:d}},53987:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(53987),A=s(3170),o.exports={renderWebGL:T,renderCanvas:A}},53987:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(10441),T=s(91296),d=s(34682),c=P(function(A,h,f,S){f.addToRenderList(h);var O=A.pipelines.set(h.pipeline),L=T(h,f,S),p=O.calcMatrix.copyFrom(L.calc),N=h._displayOriginX+h._curveBounds.x,g=h._displayOriginY+h._curveBounds.y,C=f.alpha*h.alpha;A.pipelines.preBatch(h),h.isFilled&&u(O,p,h,C,N,g),h.isStroked&&d(O,h,C,N,g),A.pipelines.postBatch(h)},"CurveWebGLRenderer");o.exports=c},19921:(o,m,s)=>{/** + */var u=s(10441),T=s(91296),A=s(34682),c=v(function(d,h,f,S){f.addToRenderList(h);var R=d.pipelines.set(h.pipeline),L=T(h,f,S),p=R.calcMatrix.copyFrom(L.calc),N=h._displayOriginX+h._curveBounds.x,g=h._displayOriginY+h._curveBounds.y,C=f.alpha*h.alpha;d.pipelines.preBatch(h),h.isFilled&&u(R,p,h,C,N,g),h.isStroked&&A(R,h,C,N,g),d.pipelines.postBatch(h)},"CurveWebGLRenderer");o.exports=c},19921:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(94811),d=s(54205),c=s(8497),A=s(17803),h=new u({Extends:A,Mixins:[d],initialize:P(function(S,O,L,p,N,g,C){O===void 0&&(O=0),L===void 0&&(L=0),p===void 0&&(p=128),N===void 0&&(N=128),A.call(this,S,"Ellipse",new c(p/2,N/2,p,N)),this._smoothness=64,this.setPosition(O,L),this.width=p,this.height=N,g!==void 0&&this.setFillStyle(g,C),this.updateDisplayOrigin(),this.updateData()},"Ellipse"),smoothness:{get:function(){return this._smoothness},set:function(f){this._smoothness=f,this.updateData()}},setSize:function(f,S){return this.width=f,this.height=S,this.geom.setPosition(f/2,S/2),this.geom.setSize(f,S),this.updateData()},setSmoothness:function(f){return this._smoothness=f,this.updateData()},updateData:function(){for(var f=[],S=this.geom.getPoints(this._smoothness),O=0;O{/** + */var u=s(83419),T=s(94811),A=s(54205),c=s(8497),d=s(17803),h=new u({Extends:d,Mixins:[A],initialize:v(function(S,R,L,p,N,g,C){R===void 0&&(R=0),L===void 0&&(L=0),p===void 0&&(p=128),N===void 0&&(N=128),d.call(this,S,"Ellipse",new c(p/2,N/2,p,N)),this._smoothness=64,this.setPosition(R,L),this.width=p,this.height=N,g!==void 0&&this.setFillStyle(g,C),this.updateDisplayOrigin(),this.updateData()},"Ellipse"),smoothness:{get:function(){return this._smoothness},set:function(f){this._smoothness=f,this.updateData()}},setSize:function(f,S){return this.width=f,this.height=S,this.geom.setPosition(f/2,S/2),this.geom.setSize(f,S),this.updateData()},setSmoothness:function(f){return this._smoothness=f,this.updateData()},updateData:function(){for(var f=[],S=this.geom.getPoints(this._smoothness),R=0;R{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(65960),T=s(75177),d=s(20926),c=P(function(A,h,f,S){f.addToRenderList(h);var O=A.currentContext;if(d(A,O,h,f,S)){var L=h._displayOriginX,p=h._displayOriginY,N=h.pathData,g=N.length-1,C=N[0]-L,v=N[1]-p;O.beginPath(),O.moveTo(C,v),h.closePath||(g-=2);for(var M=2;M{/** + */var u=s(65960),T=s(75177),A=s(20926),c=v(function(d,h,f,S){f.addToRenderList(h);var R=d.currentContext;if(A(d,R,h,f,S)){var L=h._displayOriginX,p=h._displayOriginY,N=h.pathData,g=N.length-1,C=N[0]-L,P=N[1]-p;R.beginPath(),R.moveTo(C,P),h.closePath||(g-=2);for(var M=2;M{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(19921),T=s(39429);T.register("ellipse",function(d,c,A,h,f,S){return this.displayList.add(new u(this.scene,d,c,A,h,f,S))})},54205:(o,m,s)=>{/** + */var u=s(19921),T=s(39429);T.register("ellipse",function(A,c,d,h,f,S){return this.displayList.add(new u(this.scene,A,c,d,h,f,S))})},54205:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(19467),d=s(7930),o.exports={renderWebGL:T,renderCanvas:d}},19467:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(19467),A=s(7930),o.exports={renderWebGL:T,renderCanvas:A}},19467:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(10441),T=s(91296),d=s(34682),c=P(function(A,h,f,S){f.addToRenderList(h);var O=A.pipelines.set(h.pipeline),L=T(h,f,S),p=O.calcMatrix.copyFrom(L.calc),N=h._displayOriginX,g=h._displayOriginY,C=f.alpha*h.alpha;A.pipelines.preBatch(h),h.isFilled&&u(O,p,h,C,N,g),h.isStroked&&d(O,h,C,N,g),A.pipelines.postBatch(h)},"EllipseWebGLRenderer");o.exports=c},30479:(o,m,s)=>{/** + */var u=s(10441),T=s(91296),A=s(34682),c=v(function(d,h,f,S){f.addToRenderList(h);var R=d.pipelines.set(h.pipeline),L=T(h,f,S),p=R.calcMatrix.copyFrom(L.calc),N=h._displayOriginX,g=h._displayOriginY,C=f.alpha*h.alpha;d.pipelines.preBatch(h),h.isFilled&&u(R,p,h,C,N,g),h.isStroked&&A(R,h,C,N,g),d.pipelines.postBatch(h)},"EllipseWebGLRenderer");o.exports=c},30479:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(17803),d=s(26015),c=new u({Extends:T,Mixins:[d],initialize:P(function(h,f,S,O,L,p,N,g,C,v,M){f===void 0&&(f=0),S===void 0&&(S=0),O===void 0&&(O=128),L===void 0&&(L=128),p===void 0&&(p=32),N===void 0&&(N=32),T.call(this,h,"Grid",null),this.cellWidth=p,this.cellHeight=N,this.showCells=!0,this.outlineFillColor=0,this.outlineFillAlpha=0,this.showOutline=!0,this.showAltCells=!1,this.altFillColor,this.altFillAlpha,this.setPosition(f,S),this.setSize(O,L),this.setFillStyle(g,C),v!==void 0&&this.setOutlineStyle(v,M),this.updateDisplayOrigin()},"Grid"),setFillStyle:function(A,h){return h===void 0&&(h=1),A===void 0?this.showCells=!1:(this.fillColor=A,this.fillAlpha=h,this.showCells=!0),this},setAltFillStyle:function(A,h){return h===void 0&&(h=1),A===void 0?this.showAltCells=!1:(this.altFillColor=A,this.altFillAlpha=h,this.showAltCells=!0),this},setOutlineStyle:function(A,h){return h===void 0&&(h=1),A===void 0?this.showOutline=!1:(this.outlineFillColor=A,this.outlineFillAlpha=h,this.showOutline=!0),this}});o.exports=c},49912:(o,m,s)=>{/** + */var u=s(83419),T=s(17803),A=s(26015),c=new u({Extends:T,Mixins:[A],initialize:v(function(h,f,S,R,L,p,N,g,C,P,M){f===void 0&&(f=0),S===void 0&&(S=0),R===void 0&&(R=128),L===void 0&&(L=128),p===void 0&&(p=32),N===void 0&&(N=32),T.call(this,h,"Grid",null),this.cellWidth=p,this.cellHeight=N,this.showCells=!0,this.outlineFillColor=0,this.outlineFillAlpha=0,this.showOutline=!0,this.showAltCells=!1,this.altFillColor,this.altFillAlpha,this.setPosition(f,S),this.setSize(R,L),this.setFillStyle(g,C),P!==void 0&&this.setOutlineStyle(P,M),this.updateDisplayOrigin()},"Grid"),setFillStyle:function(d,h){return h===void 0&&(h=1),d===void 0?this.showCells=!1:(this.fillColor=d,this.fillAlpha=h,this.showCells=!0),this},setAltFillStyle:function(d,h){return h===void 0&&(h=1),d===void 0?this.showAltCells=!1:(this.altFillColor=d,this.altFillAlpha=h,this.showAltCells=!0),this},setOutlineStyle:function(d,h){return h===void 0&&(h=1),d===void 0?this.showOutline=!1:(this.outlineFillColor=d,this.outlineFillAlpha=h,this.showOutline=!0),this}});o.exports=c},49912:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(65960),T=s(75177),d=s(20926),c=P(function(A,h,f,S){f.addToRenderList(h);var O=A.currentContext;if(d(A,O,h,f,S)){var L=-h._displayOriginX,p=-h._displayOriginY,N=f.alpha*h.alpha,g=h.width,C=h.height,v=h.cellWidth,M=h.cellHeight,D=Math.ceil(g/v),G=Math.ceil(C/M),H=v,B=M,_=v-(D*v-g),w=M-(G*M-C),b=h.showCells,F=h.showAltCells,k=h.showOutline,V=0,Z=0,$=0,Q=0,te=0;if(k&&(H--,B--,_===v&&_--,w===M&&w--),b&&h.fillAlpha>0)for(u(O,h),Z=0;Z0)for(u(O,h,h.altFillColor,h.altFillAlpha*N),Z=0;Z0){for(T(O,h,h.outlineFillColor,h.outlineFillAlpha*N),V=1;V{/** + */var u=s(65960),T=s(75177),A=s(20926),c=v(function(d,h,f,S){f.addToRenderList(h);var R=d.currentContext;if(A(d,R,h,f,S)){var L=-h._displayOriginX,p=-h._displayOriginY,N=f.alpha*h.alpha,g=h.width,C=h.height,P=h.cellWidth,M=h.cellHeight,D=Math.ceil(g/P),G=Math.ceil(C/M),H=P,B=M,b=P-(D*P-g),w=M-(G*M-C),_=h.showCells,F=h.showAltCells,x=h.showOutline,V=0,Z=0,$=0,Q=0,te=0;if(x&&(H--,B--,b===P&&b--,w===M&&w--),_&&h.fillAlpha>0)for(u(R,h),Z=0;Z0)for(u(R,h,h.altFillColor,h.altFillAlpha*N),Z=0;Z0){for(T(R,h,h.outlineFillColor,h.outlineFillAlpha*N),V=1;V{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(39429),T=s(30479);u.register("grid",function(d,c,A,h,f,S,O,L,p,N){return this.displayList.add(new T(this.scene,d,c,A,h,f,S,O,L,p,N))})},26015:(o,m,s)=>{/** + */var u=s(39429),T=s(30479);u.register("grid",function(A,c,d,h,f,S,R,L,p,N){return this.displayList.add(new T(this.scene,A,c,d,h,f,S,R,L,p,N))})},26015:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(46161),d=s(49912),o.exports={renderWebGL:T,renderCanvas:d}},46161:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(46161),A=s(49912),o.exports={renderWebGL:T,renderCanvas:A}},46161:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91296),T=s(70554),d=P(function(c,A,h,f){h.addToRenderList(A);var S=c.pipelines.set(A.pipeline),O=u(A,h,f),L=S.calcMatrix.copyFrom(O.calc);L.translate(-A._displayOriginX,-A._displayOriginY);var p=h.alpha*A.alpha,N=A.width,g=A.height,C=A.cellWidth,v=A.cellHeight,M=Math.ceil(N/C),D=Math.ceil(g/v),G=C,H=v,B=C-(M*C-N),_=v-(D*v-g),w,b,F=A.showCells,k=A.showAltCells,V=A.showOutline,Z=0,$=0,Q=0,te=0,z=0;if(V&&(G--,H--,B===C&&B--,_===v&&_--),c.pipelines.preBatch(A),F&&A.fillAlpha>0)for(w=S.fillTint,b=T.getTintAppendFloatAlpha(A.fillColor,A.fillAlpha*p),w.TL=b,w.TR=b,w.BL=b,w.BR=b,$=0;$0)for(w=S.fillTint,b=T.getTintAppendFloatAlpha(A.altFillColor,A.altFillAlpha*p),w.TL=b,w.TR=b,w.BL=b,w.BR=b,$=0;$0){var j=S.strokeTint,x=T.getTintAppendFloatAlpha(A.outlineFillColor,A.outlineFillAlpha*p);for(j.TL=x,j.TR=x,j.BL=x,j.BR=x,Z=1;Z{/** + */var u=s(91296),T=s(70554),A=v(function(c,d,h,f){h.addToRenderList(d);var S=c.pipelines.set(d.pipeline),R=u(d,h,f),L=S.calcMatrix.copyFrom(R.calc);L.translate(-d._displayOriginX,-d._displayOriginY);var p=h.alpha*d.alpha,N=d.width,g=d.height,C=d.cellWidth,P=d.cellHeight,M=Math.ceil(N/C),D=Math.ceil(g/P),G=C,H=P,B=C-(M*C-N),b=P-(D*P-g),w,_,F=d.showCells,x=d.showAltCells,V=d.showOutline,Z=0,$=0,Q=0,te=0,z=0;if(V&&(G--,H--,B===C&&B--,b===P&&b--),c.pipelines.preBatch(d),F&&d.fillAlpha>0)for(w=S.fillTint,_=T.getTintAppendFloatAlpha(d.fillColor,d.fillAlpha*p),w.TL=_,w.TR=_,w.BL=_,w.BR=_,$=0;$0)for(w=S.fillTint,_=T.getTintAppendFloatAlpha(d.altFillColor,d.altFillAlpha*p),w.TL=_,w.TR=_,w.BL=_,w.BR=_,$=0;$0){var j=S.strokeTint,k=T.getTintAppendFloatAlpha(d.outlineFillColor,d.outlineFillAlpha*p);for(j.TL=k,j.TR=k,j.BL=k,j.BR=k,Z=1;Z{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(99651),T=s(83419),d=s(17803),c=new T({Extends:d,Mixins:[u],initialize:P(function(h,f,S,O,L,p,N,g){f===void 0&&(f=0),S===void 0&&(S=0),O===void 0&&(O=48),L===void 0&&(L=32),p===void 0&&(p=15658734),N===void 0&&(N=10066329),g===void 0&&(g=13421772),d.call(this,h,"IsoBox",null),this.projection=4,this.fillTop=p,this.fillLeft=N,this.fillRight=g,this.showTop=!0,this.showLeft=!0,this.showRight=!0,this.isFilled=!0,this.setPosition(f,S),this.setSize(O,L),this.updateDisplayOrigin()},"IsoBox"),setProjection:function(A){return this.projection=A,this},setFaces:function(A,h,f){return A===void 0&&(A=!0),h===void 0&&(h=!0),f===void 0&&(f=!0),this.showTop=A,this.showLeft=h,this.showRight=f,this},setFillStyle:function(A,h,f){return this.fillTop=A,this.fillLeft=h,this.fillRight=f,this.isFilled=!0,this}});o.exports=c},11508:(o,m,s)=>{/** + */var u=s(99651),T=s(83419),A=s(17803),c=new T({Extends:A,Mixins:[u],initialize:v(function(h,f,S,R,L,p,N,g){f===void 0&&(f=0),S===void 0&&(S=0),R===void 0&&(R=48),L===void 0&&(L=32),p===void 0&&(p=15658734),N===void 0&&(N=10066329),g===void 0&&(g=13421772),A.call(this,h,"IsoBox",null),this.projection=4,this.fillTop=p,this.fillLeft=N,this.fillRight=g,this.showTop=!0,this.showLeft=!0,this.showRight=!0,this.isFilled=!0,this.setPosition(f,S),this.setSize(R,L),this.updateDisplayOrigin()},"IsoBox"),setProjection:function(d){return this.projection=d,this},setFaces:function(d,h,f){return d===void 0&&(d=!0),h===void 0&&(h=!0),f===void 0&&(f=!0),this.showTop=d,this.showLeft=h,this.showRight=f,this},setFillStyle:function(d,h,f){return this.fillTop=d,this.fillLeft=h,this.fillRight=f,this.isFilled=!0,this}});o.exports=c},11508:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(65960),T=s(20926),d=P(function(c,A,h,f){h.addToRenderList(A);var S=c.currentContext;if(T(c,S,A,h,f)&&A.isFilled){var O=A.width,L=A.height,p=O/2,N=O/A.projection;A.showTop&&(u(S,A,A.fillTop),S.beginPath(),S.moveTo(-p,-L),S.lineTo(0,-N-L),S.lineTo(p,-L),S.lineTo(p,-1),S.lineTo(0,N-1),S.lineTo(-p,-1),S.lineTo(-p,-L),S.fill()),A.showLeft&&(u(S,A,A.fillLeft),S.beginPath(),S.moveTo(-p,0),S.lineTo(0,N),S.lineTo(0,N-L),S.lineTo(-p,-L),S.lineTo(-p,0),S.fill()),A.showRight&&(u(S,A,A.fillRight),S.beginPath(),S.moveTo(p,0),S.lineTo(0,N),S.lineTo(0,N-L),S.lineTo(p,-L),S.lineTo(p,0),S.fill()),S.restore()}},"IsoBoxCanvasRenderer");o.exports=d},3933:(o,m,s)=>{/** + */var u=s(65960),T=s(20926),A=v(function(c,d,h,f){h.addToRenderList(d);var S=c.currentContext;if(T(c,S,d,h,f)&&d.isFilled){var R=d.width,L=d.height,p=R/2,N=R/d.projection;d.showTop&&(u(S,d,d.fillTop),S.beginPath(),S.moveTo(-p,-L),S.lineTo(0,-N-L),S.lineTo(p,-L),S.lineTo(p,-1),S.lineTo(0,N-1),S.lineTo(-p,-1),S.lineTo(-p,-L),S.fill()),d.showLeft&&(u(S,d,d.fillLeft),S.beginPath(),S.moveTo(-p,0),S.lineTo(0,N),S.lineTo(0,N-L),S.lineTo(-p,-L),S.lineTo(-p,0),S.fill()),d.showRight&&(u(S,d,d.fillRight),S.beginPath(),S.moveTo(p,0),S.lineTo(0,N),S.lineTo(0,N-L),S.lineTo(p,-L),S.lineTo(p,0),S.fill()),S.restore()}},"IsoBoxCanvasRenderer");o.exports=A},3933:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(39429),T=s(61475);u.register("isobox",function(d,c,A,h,f,S,O){return this.displayList.add(new T(this.scene,d,c,A,h,f,S,O))})},99651:(o,m,s)=>{/** + */var u=s(39429),T=s(61475);u.register("isobox",function(A,c,d,h,f,S,R){return this.displayList.add(new T(this.scene,A,c,d,h,f,S,R))})},99651:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(68149),d=s(11508),o.exports={renderWebGL:T,renderCanvas:d}},68149:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(68149),A=s(11508),o.exports={renderWebGL:T,renderCanvas:A}},68149:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91296),T=s(70554),d=P(function(c,A,h,f){h.addToRenderList(A);var S=c.pipelines.set(A.pipeline),O=u(A,h,f),L=S.calcMatrix.copyFrom(O.calc),p=A.width,N=A.height,g=p/2,C=p/A.projection,v=h.alpha*A.alpha;if(A.isFilled){var M,D,G,H,B,_,w,b,F;c.pipelines.preBatch(A),A.showTop&&(M=T.getTintAppendFloatAlpha(A.fillTop,v),D=L.getX(-g,-N),G=L.getY(-g,-N),H=L.getX(0,-C-N),B=L.getY(0,-C-N),_=L.getX(g,-N),w=L.getY(g,-N),b=L.getX(0,C-N),F=L.getY(0,C-N),S.batchQuad(A,D,G,H,B,_,w,b,F,0,0,1,1,M,M,M,M,2)),A.showLeft&&(M=T.getTintAppendFloatAlpha(A.fillLeft,v),D=L.getX(-g,0),G=L.getY(-g,0),H=L.getX(0,C),B=L.getY(0,C),_=L.getX(0,C-N),w=L.getY(0,C-N),b=L.getX(-g,-N),F=L.getY(-g,-N),S.batchQuad(A,D,G,H,B,_,w,b,F,0,0,1,1,M,M,M,M,2)),A.showRight&&(M=T.getTintAppendFloatAlpha(A.fillRight,v),D=L.getX(g,0),G=L.getY(g,0),H=L.getX(0,C),B=L.getY(0,C),_=L.getX(0,C-N),w=L.getY(0,C-N),b=L.getX(g,-N),F=L.getY(g,-N),S.batchQuad(A,D,G,H,B,_,w,b,F,0,0,1,1,M,M,M,M,2)),c.pipelines.postBatch(A)}},"IsoBoxWebGLRenderer");o.exports=d},16933:(o,m,s)=>{/** + */var u=s(91296),T=s(70554),A=v(function(c,d,h,f){h.addToRenderList(d);var S=c.pipelines.set(d.pipeline),R=u(d,h,f),L=S.calcMatrix.copyFrom(R.calc),p=d.width,N=d.height,g=p/2,C=p/d.projection,P=h.alpha*d.alpha;if(d.isFilled){var M,D,G,H,B,b,w,_,F;c.pipelines.preBatch(d),d.showTop&&(M=T.getTintAppendFloatAlpha(d.fillTop,P),D=L.getX(-g,-N),G=L.getY(-g,-N),H=L.getX(0,-C-N),B=L.getY(0,-C-N),b=L.getX(g,-N),w=L.getY(g,-N),_=L.getX(0,C-N),F=L.getY(0,C-N),S.batchQuad(d,D,G,H,B,b,w,_,F,0,0,1,1,M,M,M,M,2)),d.showLeft&&(M=T.getTintAppendFloatAlpha(d.fillLeft,P),D=L.getX(-g,0),G=L.getY(-g,0),H=L.getX(0,C),B=L.getY(0,C),b=L.getX(0,C-N),w=L.getY(0,C-N),_=L.getX(-g,-N),F=L.getY(-g,-N),S.batchQuad(d,D,G,H,B,b,w,_,F,0,0,1,1,M,M,M,M,2)),d.showRight&&(M=T.getTintAppendFloatAlpha(d.fillRight,P),D=L.getX(g,0),G=L.getY(g,0),H=L.getX(0,C),B=L.getY(0,C),b=L.getX(0,C-N),w=L.getY(0,C-N),_=L.getX(g,-N),F=L.getY(g,-N),S.batchQuad(d,D,G,H,B,b,w,_,F,0,0,1,1,M,M,M,M,2)),c.pipelines.postBatch(d)}},"IsoBoxWebGLRenderer");o.exports=A},16933:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(60561),d=s(17803),c=new u({Extends:d,Mixins:[T],initialize:P(function(h,f,S,O,L,p,N,g,C){f===void 0&&(f=0),S===void 0&&(S=0),O===void 0&&(O=48),L===void 0&&(L=32),p===void 0&&(p=!1),N===void 0&&(N=15658734),g===void 0&&(g=10066329),C===void 0&&(C=13421772),d.call(this,h,"IsoTriangle",null),this.projection=4,this.fillTop=N,this.fillLeft=g,this.fillRight=C,this.showTop=!0,this.showLeft=!0,this.showRight=!0,this.isReversed=p,this.isFilled=!0,this.setPosition(f,S),this.setSize(O,L),this.updateDisplayOrigin()},"IsoTriangle"),setProjection:function(A){return this.projection=A,this},setReversed:function(A){return this.isReversed=A,this},setFaces:function(A,h,f){return A===void 0&&(A=!0),h===void 0&&(h=!0),f===void 0&&(f=!0),this.showTop=A,this.showLeft=h,this.showRight=f,this},setFillStyle:function(A,h,f){return this.fillTop=A,this.fillLeft=h,this.fillRight=f,this.isFilled=!0,this}});o.exports=c},79590:(o,m,s)=>{/** + */var u=s(83419),T=s(60561),A=s(17803),c=new u({Extends:A,Mixins:[T],initialize:v(function(h,f,S,R,L,p,N,g,C){f===void 0&&(f=0),S===void 0&&(S=0),R===void 0&&(R=48),L===void 0&&(L=32),p===void 0&&(p=!1),N===void 0&&(N=15658734),g===void 0&&(g=10066329),C===void 0&&(C=13421772),A.call(this,h,"IsoTriangle",null),this.projection=4,this.fillTop=N,this.fillLeft=g,this.fillRight=C,this.showTop=!0,this.showLeft=!0,this.showRight=!0,this.isReversed=p,this.isFilled=!0,this.setPosition(f,S),this.setSize(R,L),this.updateDisplayOrigin()},"IsoTriangle"),setProjection:function(d){return this.projection=d,this},setReversed:function(d){return this.isReversed=d,this},setFaces:function(d,h,f){return d===void 0&&(d=!0),h===void 0&&(h=!0),f===void 0&&(f=!0),this.showTop=d,this.showLeft=h,this.showRight=f,this},setFillStyle:function(d,h,f){return this.fillTop=d,this.fillLeft=h,this.fillRight=f,this.isFilled=!0,this}});o.exports=c},79590:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(65960),T=s(20926),d=P(function(c,A,h,f){h.addToRenderList(A);var S=c.currentContext;if(T(c,S,A,h,f)&&A.isFilled){var O=A.width,L=A.height,p=O/2,N=O/A.projection,g=A.isReversed;A.showTop&&g&&(u(S,A,A.fillTop),S.beginPath(),S.moveTo(-p,-L),S.lineTo(0,-N-L),S.lineTo(p,-L),S.lineTo(0,N-L),S.fill()),A.showLeft&&(u(S,A,A.fillLeft),S.beginPath(),g?(S.moveTo(-p,-L),S.lineTo(0,N),S.lineTo(0,N-L)):(S.moveTo(-p,0),S.lineTo(0,N),S.lineTo(0,N-L)),S.fill()),A.showRight&&(u(S,A,A.fillRight),S.beginPath(),g?(S.moveTo(p,-L),S.lineTo(0,N),S.lineTo(0,N-L)):(S.moveTo(p,0),S.lineTo(0,N),S.lineTo(0,N-L)),S.fill()),S.restore()}},"IsoTriangleCanvasRenderer");o.exports=d},49803:(o,m,s)=>{/** + */var u=s(65960),T=s(20926),A=v(function(c,d,h,f){h.addToRenderList(d);var S=c.currentContext;if(T(c,S,d,h,f)&&d.isFilled){var R=d.width,L=d.height,p=R/2,N=R/d.projection,g=d.isReversed;d.showTop&&g&&(u(S,d,d.fillTop),S.beginPath(),S.moveTo(-p,-L),S.lineTo(0,-N-L),S.lineTo(p,-L),S.lineTo(0,N-L),S.fill()),d.showLeft&&(u(S,d,d.fillLeft),S.beginPath(),g?(S.moveTo(-p,-L),S.lineTo(0,N),S.lineTo(0,N-L)):(S.moveTo(-p,0),S.lineTo(0,N),S.lineTo(0,N-L)),S.fill()),d.showRight&&(u(S,d,d.fillRight),S.beginPath(),g?(S.moveTo(p,-L),S.lineTo(0,N),S.lineTo(0,N-L)):(S.moveTo(p,0),S.lineTo(0,N),S.lineTo(0,N-L)),S.fill()),S.restore()}},"IsoTriangleCanvasRenderer");o.exports=A},49803:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(39429),T=s(16933);u.register("isotriangle",function(d,c,A,h,f,S,O,L){return this.displayList.add(new T(this.scene,d,c,A,h,f,S,O,L))})},60561:(o,m,s)=>{/** + */var u=s(39429),T=s(16933);u.register("isotriangle",function(A,c,d,h,f,S,R,L){return this.displayList.add(new T(this.scene,A,c,d,h,f,S,R,L))})},60561:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(51503),d=s(79590),o.exports={renderWebGL:T,renderCanvas:d}},51503:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(51503),A=s(79590),o.exports={renderWebGL:T,renderCanvas:A}},51503:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91296),T=s(70554),d=P(function(c,A,h,f){h.addToRenderList(A);var S=c.pipelines.set(A.pipeline),O=u(A,h,f),L=S.calcMatrix.copyFrom(O.calc),p=A.width,N=A.height,g=p/2,C=p/A.projection,v=A.isReversed,M=h.alpha*A.alpha;if(A.isFilled){c.pipelines.preBatch(A);var D,G,H,B,_,w,b;if(A.showTop&&v){D=T.getTintAppendFloatAlpha(A.fillTop,M),G=L.getX(-g,-N),H=L.getY(-g,-N),B=L.getX(0,-C-N),_=L.getY(0,-C-N),w=L.getX(g,-N),b=L.getY(g,-N);var F=L.getX(0,C-N),k=L.getY(0,C-N);S.batchQuad(A,G,H,B,_,w,b,F,k,0,0,1,1,D,D,D,D,2)}A.showLeft&&(D=T.getTintAppendFloatAlpha(A.fillLeft,M),v?(G=L.getX(-g,-N),H=L.getY(-g,-N),B=L.getX(0,C),_=L.getY(0,C),w=L.getX(0,C-N),b=L.getY(0,C-N)):(G=L.getX(-g,0),H=L.getY(-g,0),B=L.getX(0,C),_=L.getY(0,C),w=L.getX(0,C-N),b=L.getY(0,C-N)),S.batchTri(A,G,H,B,_,w,b,0,0,1,1,D,D,D,2)),A.showRight&&(D=T.getTintAppendFloatAlpha(A.fillRight,M),v?(G=L.getX(g,-N),H=L.getY(g,-N),B=L.getX(0,C),_=L.getY(0,C),w=L.getX(0,C-N),b=L.getY(0,C-N)):(G=L.getX(g,0),H=L.getY(g,0),B=L.getX(0,C),_=L.getY(0,C),w=L.getX(0,C-N),b=L.getY(0,C-N)),S.batchTri(A,G,H,B,_,w,b,0,0,1,1,D,D,D,2)),c.pipelines.postBatch(A)}},"IsoTriangleWebGLRenderer");o.exports=d},57847:(o,m,s)=>{/** + */var u=s(91296),T=s(70554),A=v(function(c,d,h,f){h.addToRenderList(d);var S=c.pipelines.set(d.pipeline),R=u(d,h,f),L=S.calcMatrix.copyFrom(R.calc),p=d.width,N=d.height,g=p/2,C=p/d.projection,P=d.isReversed,M=h.alpha*d.alpha;if(d.isFilled){c.pipelines.preBatch(d);var D,G,H,B,b,w,_;if(d.showTop&&P){D=T.getTintAppendFloatAlpha(d.fillTop,M),G=L.getX(-g,-N),H=L.getY(-g,-N),B=L.getX(0,-C-N),b=L.getY(0,-C-N),w=L.getX(g,-N),_=L.getY(g,-N);var F=L.getX(0,C-N),x=L.getY(0,C-N);S.batchQuad(d,G,H,B,b,w,_,F,x,0,0,1,1,D,D,D,D,2)}d.showLeft&&(D=T.getTintAppendFloatAlpha(d.fillLeft,M),P?(G=L.getX(-g,-N),H=L.getY(-g,-N),B=L.getX(0,C),b=L.getY(0,C),w=L.getX(0,C-N),_=L.getY(0,C-N)):(G=L.getX(-g,0),H=L.getY(-g,0),B=L.getX(0,C),b=L.getY(0,C),w=L.getX(0,C-N),_=L.getY(0,C-N)),S.batchTri(d,G,H,B,b,w,_,0,0,1,1,D,D,D,2)),d.showRight&&(D=T.getTintAppendFloatAlpha(d.fillRight,M),P?(G=L.getX(g,-N),H=L.getY(g,-N),B=L.getX(0,C),b=L.getY(0,C),w=L.getX(0,C-N),_=L.getY(0,C-N)):(G=L.getX(g,0),H=L.getY(g,0),B=L.getX(0,C),b=L.getY(0,C),w=L.getX(0,C-N),_=L.getY(0,C-N)),S.batchTri(d,G,H,B,b,w,_,0,0,1,1,D,D,D,2)),c.pipelines.postBatch(d)}},"IsoTriangleWebGLRenderer");o.exports=A},57847:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(17803),d=s(23031),c=s(36823),A=new u({Extends:T,Mixins:[c],initialize:P(function(f,S,O,L,p,N,g,C,v){S===void 0&&(S=0),O===void 0&&(O=0),L===void 0&&(L=0),p===void 0&&(p=0),N===void 0&&(N=128),g===void 0&&(g=0),T.call(this,f,"Line",new d(L,p,N,g));var M=Math.max(1,this.geom.right-this.geom.left),D=Math.max(1,this.geom.bottom-this.geom.top);this.lineWidth=1,this._startWidth=1,this._endWidth=1,this.setPosition(S,O),this.setSize(M,D),C!==void 0&&this.setStrokeStyle(1,C,v),this.updateDisplayOrigin()},"Line"),setLineWidth:function(h,f){return f===void 0&&(f=h),this._startWidth=h,this._endWidth=f,this.lineWidth=h,this},setTo:function(h,f,S,O){return this.geom.setTo(h,f,S,O),this}});o.exports=A},17440:(o,m,s)=>{/** + */var u=s(83419),T=s(17803),A=s(23031),c=s(36823),d=new u({Extends:T,Mixins:[c],initialize:v(function(f,S,R,L,p,N,g,C,P){S===void 0&&(S=0),R===void 0&&(R=0),L===void 0&&(L=0),p===void 0&&(p=0),N===void 0&&(N=128),g===void 0&&(g=0),T.call(this,f,"Line",new A(L,p,N,g));var M=Math.max(1,this.geom.right-this.geom.left),D=Math.max(1,this.geom.bottom-this.geom.top);this.lineWidth=1,this._startWidth=1,this._endWidth=1,this.setPosition(S,R),this.setSize(M,D),C!==void 0&&this.setStrokeStyle(1,C,P),this.updateDisplayOrigin()},"Line"),setLineWidth:function(h,f){return f===void 0&&(f=h),this._startWidth=h,this._endWidth=f,this.lineWidth=h,this},setTo:function(h,f,S,R){return this.geom.setTo(h,f,S,R),this}});o.exports=d},17440:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(75177),T=s(20926),d=P(function(c,A,h,f){h.addToRenderList(A);var S=c.currentContext;if(T(c,S,A,h,f)){var O=A._displayOriginX,L=A._displayOriginY;A.isStroked&&(u(S,A),S.beginPath(),S.moveTo(A.geom.x1-O,A.geom.y1-L),S.lineTo(A.geom.x2-O,A.geom.y2-L),S.stroke()),S.restore()}},"LineCanvasRenderer");o.exports=d},2481:(o,m,s)=>{/** + */var u=s(75177),T=s(20926),A=v(function(c,d,h,f){h.addToRenderList(d);var S=c.currentContext;if(T(c,S,d,h,f)){var R=d._displayOriginX,L=d._displayOriginY;d.isStroked&&(u(S,d),S.beginPath(),S.moveTo(d.geom.x1-R,d.geom.y1-L),S.lineTo(d.geom.x2-R,d.geom.y2-L),S.stroke()),S.restore()}},"LineCanvasRenderer");o.exports=A},2481:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(39429),T=s(57847);u.register("line",function(d,c,A,h,f,S,O,L){return this.displayList.add(new T(this.scene,d,c,A,h,f,S,O,L))})},36823:(o,m,s)=>{/** + */var u=s(39429),T=s(57847);u.register("line",function(A,c,d,h,f,S,R,L){return this.displayList.add(new T(this.scene,A,c,d,h,f,S,R,L))})},36823:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(77385),d=s(17440),o.exports={renderWebGL:T,renderCanvas:d}},77385:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(77385),A=s(17440),o.exports={renderWebGL:T,renderCanvas:A}},77385:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91296),T=s(70554),d=P(function(c,A,h,f){h.addToRenderList(A);var S=c.pipelines.set(A.pipeline),O=u(A,h,f);S.calcMatrix.copyFrom(O.calc);var L=A._displayOriginX,p=A._displayOriginY,N=h.alpha*A.alpha;if(c.pipelines.preBatch(A),A.isStroked){var g=S.strokeTint,C=T.getTintAppendFloatAlpha(A.strokeColor,A.strokeAlpha*N);g.TL=C,g.TR=C,g.BL=C,g.BR=C,S.batchLine(A.geom.x1-L,A.geom.y1-p,A.geom.x2-L,A.geom.y2-p,A._startWidth/2,A._endWidth/2,1,0,!1,O.sprite,O.camera)}c.pipelines.postBatch(A)},"LineWebGLRenderer");o.exports=d},24949:(o,m,s)=>{/** + */var u=s(91296),T=s(70554),A=v(function(c,d,h,f){h.addToRenderList(d);var S=c.pipelines.set(d.pipeline),R=u(d,h,f);S.calcMatrix.copyFrom(R.calc);var L=d._displayOriginX,p=d._displayOriginY,N=h.alpha*d.alpha;if(c.pipelines.preBatch(d),d.isStroked){var g=S.strokeTint,C=T.getTintAppendFloatAlpha(d.strokeColor,d.strokeAlpha*N);g.TL=C,g.TR=C,g.BL=C,g.BR=C,S.batchLine(d.geom.x1-L,d.geom.y1-p,d.geom.x2-L,d.geom.y2-p,d._startWidth/2,d._endWidth/2,1,0,!1,R.sprite,R.camera)}c.pipelines.postBatch(d)},"LineWebGLRenderer");o.exports=A},24949:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(90273),T=s(83419),d=s(94811),c=s(13829),A=s(25717),h=s(17803),f=s(5469),S=new T({Extends:h,Mixins:[u],initialize:P(function(L,p,N,g,C,v){p===void 0&&(p=0),N===void 0&&(N=0),h.call(this,L,"Polygon",new A(g));var M=c(this.geom);this.setPosition(p,N),this.setSize(M.width,M.height),C!==void 0&&this.setFillStyle(C,v),this.updateDisplayOrigin(),this.updateData()},"Polygon"),smooth:function(O){O===void 0&&(O=1);for(var L=0;L{/** + */var u=s(90273),T=s(83419),A=s(94811),c=s(13829),d=s(25717),h=s(17803),f=s(5469),S=new T({Extends:h,Mixins:[u],initialize:v(function(L,p,N,g,C,P){p===void 0&&(p=0),N===void 0&&(N=0),h.call(this,L,"Polygon",new d(g));var M=c(this.geom);this.setPosition(p,N),this.setSize(M.width,M.height),C!==void 0&&this.setFillStyle(C,P),this.updateDisplayOrigin(),this.updateData()},"Polygon"),smooth:function(R){R===void 0&&(R=1);for(var L=0;L{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(65960),T=s(75177),d=s(20926),c=P(function(A,h,f,S){f.addToRenderList(h);var O=A.currentContext;if(d(A,O,h,f,S)){var L=h._displayOriginX,p=h._displayOriginY,N=h.pathData,g=N.length-1,C=N[0]-L,v=N[1]-p;O.beginPath(),O.moveTo(C,v),h.closePath||(g-=2);for(var M=2;M{/** + */var u=s(65960),T=s(75177),A=s(20926),c=v(function(d,h,f,S){f.addToRenderList(h);var R=d.currentContext;if(A(d,R,h,f,S)){var L=h._displayOriginX,p=h._displayOriginY,N=h.pathData,g=N.length-1,C=N[0]-L,P=N[1]-p;R.beginPath(),R.moveTo(C,P),h.closePath||(g-=2);for(var M=2;M{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(39429),T=s(24949);u.register("polygon",function(d,c,A,h,f){return this.displayList.add(new T(this.scene,d,c,A,h,f))})},90273:(o,m,s)=>{/** + */var u=s(39429),T=s(24949);u.register("polygon",function(A,c,d,h,f){return this.displayList.add(new T(this.scene,A,c,d,h,f))})},90273:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(73695),d=s(38710),o.exports={renderWebGL:T,renderCanvas:d}},73695:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(73695),A=s(38710),o.exports={renderWebGL:T,renderCanvas:A}},73695:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(10441),T=s(91296),d=s(34682),c=P(function(A,h,f,S){f.addToRenderList(h);var O=A.pipelines.set(h.pipeline),L=T(h,f,S),p=O.calcMatrix.copyFrom(L.calc),N=h._displayOriginX,g=h._displayOriginY,C=f.alpha*h.alpha;A.pipelines.preBatch(h),h.isFilled&&u(O,p,h,C,N,g),h.isStroked&&d(O,h,C,N,g),A.pipelines.postBatch(h)},"PolygonWebGLRenderer");o.exports=c},74561:(o,m,s)=>{/** + */var u=s(10441),T=s(91296),A=s(34682),c=v(function(d,h,f,S){f.addToRenderList(h);var R=d.pipelines.set(h.pipeline),L=T(h,f,S),p=R.calcMatrix.copyFrom(L.calc),N=h._displayOriginX,g=h._displayOriginY,C=f.alpha*h.alpha;d.pipelines.preBatch(h),h.isFilled&&u(R,p,h,C,N,g),h.isStroked&&A(R,h,C,N,g),d.pipelines.postBatch(h)},"PolygonWebGLRenderer");o.exports=c},74561:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(87841),d=s(17803),c=s(95597),A=new u({Extends:d,Mixins:[c],initialize:P(function(f,S,O,L,p,N,g){S===void 0&&(S=0),O===void 0&&(O=0),L===void 0&&(L=128),p===void 0&&(p=128),d.call(this,f,"Rectangle",new T(0,0,L,p)),this.setPosition(S,O),this.setSize(L,p),N!==void 0&&this.setFillStyle(N,g),this.updateDisplayOrigin(),this.updateData()},"Rectangle"),setSize:function(h,f){this.width=h,this.height=f,this.geom.setSize(h,f),this.updateData(),this.updateDisplayOrigin();var S=this.input;return S&&!S.customHitArea&&(S.hitArea.width=h,S.hitArea.height=f),this},updateData:function(){var h=[],f=this.geom,S=this._tempLine;return f.getLineA(S),h.push(S.x1,S.y1,S.x2,S.y2),f.getLineB(S),h.push(S.x2,S.y2),f.getLineC(S),h.push(S.x2,S.y2),f.getLineD(S),h.push(S.x2,S.y2),this.pathData=h,this}});o.exports=A},48682:(o,m,s)=>{/** + */var u=s(83419),T=s(87841),A=s(17803),c=s(95597),d=new u({Extends:A,Mixins:[c],initialize:v(function(f,S,R,L,p,N,g){S===void 0&&(S=0),R===void 0&&(R=0),L===void 0&&(L=128),p===void 0&&(p=128),A.call(this,f,"Rectangle",new T(0,0,L,p)),this.setPosition(S,R),this.setSize(L,p),N!==void 0&&this.setFillStyle(N,g),this.updateDisplayOrigin(),this.updateData()},"Rectangle"),setSize:function(h,f){this.width=h,this.height=f,this.geom.setSize(h,f),this.updateData(),this.updateDisplayOrigin();var S=this.input;return S&&!S.customHitArea&&(S.hitArea.width=h,S.hitArea.height=f),this},updateData:function(){var h=[],f=this.geom,S=this._tempLine;return f.getLineA(S),h.push(S.x1,S.y1,S.x2,S.y2),f.getLineB(S),h.push(S.x2,S.y2),f.getLineC(S),h.push(S.x2,S.y2),f.getLineD(S),h.push(S.x2,S.y2),this.pathData=h,this}});o.exports=d},48682:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(65960),T=s(75177),d=s(20926),c=P(function(A,h,f,S){f.addToRenderList(h);var O=A.currentContext;if(d(A,O,h,f,S)){var L=h._displayOriginX,p=h._displayOriginY;h.isFilled&&(u(O,h),O.fillRect(-L,-p,h.width,h.height)),h.isStroked&&(T(O,h),O.beginPath(),O.rect(-L,-p,h.width,h.height),O.stroke()),O.restore()}},"RectangleCanvasRenderer");o.exports=c},87959:(o,m,s)=>{/** + */var u=s(65960),T=s(75177),A=s(20926),c=v(function(d,h,f,S){f.addToRenderList(h);var R=d.currentContext;if(A(d,R,h,f,S)){var L=h._displayOriginX,p=h._displayOriginY;h.isFilled&&(u(R,h),R.fillRect(-L,-p,h.width,h.height)),h.isStroked&&(T(R,h),R.beginPath(),R.rect(-L,-p,h.width,h.height),R.stroke()),R.restore()}},"RectangleCanvasRenderer");o.exports=c},87959:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(39429),T=s(74561);u.register("rectangle",function(d,c,A,h,f,S){return this.displayList.add(new T(this.scene,d,c,A,h,f,S))})},95597:(o,m,s)=>{/** + */var u=s(39429),T=s(74561);u.register("rectangle",function(A,c,d,h,f,S){return this.displayList.add(new T(this.scene,A,c,d,h,f,S))})},95597:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(52059),d=s(48682),o.exports={renderWebGL:T,renderCanvas:d}},52059:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(52059),A=s(48682),o.exports={renderWebGL:T,renderCanvas:A}},52059:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91296),T=s(34682),d=s(70554),c=P(function(A,h,f,S){f.addToRenderList(h);var O=A.pipelines.set(h.pipeline),L=u(h,f,S);O.calcMatrix.copyFrom(L.calc);var p=h._displayOriginX,N=h._displayOriginY,g=f.alpha*h.alpha;if(A.pipelines.preBatch(h),h.isFilled){var C=O.fillTint,v=d.getTintAppendFloatAlpha(h.fillColor,h.fillAlpha*g);C.TL=v,C.TR=v,C.BL=v,C.BR=v,O.batchFillRect(-p,-N,h.width,h.height)}h.isStroked&&T(O,h,g,p,N),A.pipelines.postBatch(h)},"RectangleWebGLRenderer");o.exports=c},55911:(o,m,s)=>{/** + */var u=s(91296),T=s(34682),A=s(70554),c=v(function(d,h,f,S){f.addToRenderList(h);var R=d.pipelines.set(h.pipeline),L=u(h,f,S);R.calcMatrix.copyFrom(L.calc);var p=h._displayOriginX,N=h._displayOriginY,g=f.alpha*h.alpha;if(d.pipelines.preBatch(h),h.isFilled){var C=R.fillTint,P=A.getTintAppendFloatAlpha(h.fillColor,h.fillAlpha*g);C.TL=P,C.TR=P,C.BL=P,C.BR=P,R.batchFillRect(-p,-N,h.width,h.height)}h.isStroked&&T(R,h,g,p,N),d.pipelines.postBatch(h)},"RectangleWebGLRenderer");o.exports=c},55911:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(81991),T=s(83419),d=s(94811),c=s(17803),A=new T({Extends:c,Mixins:[u],initialize:P(function(f,S,O,L,p,N,g,C){S===void 0&&(S=0),O===void 0&&(O=0),L===void 0&&(L=5),p===void 0&&(p=32),N===void 0&&(N=64),c.call(this,f,"Star",null),this._points=L,this._innerRadius=p,this._outerRadius=N,this.setPosition(S,O),this.setSize(N*2,N*2),g!==void 0&&this.setFillStyle(g,C),this.updateDisplayOrigin(),this.updateData()},"Star"),setPoints:function(h){return this._points=h,this.updateData()},setInnerRadius:function(h){return this._innerRadius=h,this.updateData()},setOuterRadius:function(h){return this._outerRadius=h,this.updateData()},points:{get:function(){return this._points},set:function(h){this._points=h,this.updateData()}},innerRadius:{get:function(){return this._innerRadius},set:function(h){this._innerRadius=h,this.updateData()}},outerRadius:{get:function(){return this._outerRadius},set:function(h){this._outerRadius=h,this.updateData()}},updateData:function(){var h=[],f=this._points,S=this._innerRadius,O=this._outerRadius,L=Math.PI/2*3,p=Math.PI/f,N=O,g=O;h.push(N,g+-O);for(var C=0;C{/** + */var u=s(81991),T=s(83419),A=s(94811),c=s(17803),d=new T({Extends:c,Mixins:[u],initialize:v(function(f,S,R,L,p,N,g,C){S===void 0&&(S=0),R===void 0&&(R=0),L===void 0&&(L=5),p===void 0&&(p=32),N===void 0&&(N=64),c.call(this,f,"Star",null),this._points=L,this._innerRadius=p,this._outerRadius=N,this.setPosition(S,R),this.setSize(N*2,N*2),g!==void 0&&this.setFillStyle(g,C),this.updateDisplayOrigin(),this.updateData()},"Star"),setPoints:function(h){return this._points=h,this.updateData()},setInnerRadius:function(h){return this._innerRadius=h,this.updateData()},setOuterRadius:function(h){return this._outerRadius=h,this.updateData()},points:{get:function(){return this._points},set:function(h){this._points=h,this.updateData()}},innerRadius:{get:function(){return this._innerRadius},set:function(h){this._innerRadius=h,this.updateData()}},outerRadius:{get:function(){return this._outerRadius},set:function(h){this._outerRadius=h,this.updateData()}},updateData:function(){var h=[],f=this._points,S=this._innerRadius,R=this._outerRadius,L=Math.PI/2*3,p=Math.PI/f,N=R,g=R;h.push(N,g+-R);for(var C=0;C{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(65960),T=s(75177),d=s(20926),c=P(function(A,h,f,S){f.addToRenderList(h);var O=A.currentContext;if(d(A,O,h,f,S)){var L=h._displayOriginX,p=h._displayOriginY,N=h.pathData,g=N.length-1,C=N[0]-L,v=N[1]-p;O.beginPath(),O.moveTo(C,v),h.closePath||(g-=2);for(var M=2;M{/** + */var u=s(65960),T=s(75177),A=s(20926),c=v(function(d,h,f,S){f.addToRenderList(h);var R=d.currentContext;if(A(d,R,h,f,S)){var L=h._displayOriginX,p=h._displayOriginY,N=h.pathData,g=N.length-1,C=N[0]-L,P=N[1]-p;R.beginPath(),R.moveTo(C,P),h.closePath||(g-=2);for(var M=2;M{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(55911),T=s(39429);T.register("star",function(d,c,A,h,f,S,O){return this.displayList.add(new u(this.scene,d,c,A,h,f,S,O))})},81991:(o,m,s)=>{/** + */var u=s(55911),T=s(39429);T.register("star",function(A,c,d,h,f,S,R){return this.displayList.add(new u(this.scene,A,c,d,h,f,S,R))})},81991:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(57017),d=s(64272),o.exports={renderWebGL:T,renderCanvas:d}},57017:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(57017),A=s(64272),o.exports={renderWebGL:T,renderCanvas:A}},57017:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(10441),T=s(91296),d=s(34682),c=P(function(A,h,f,S){f.addToRenderList(h);var O=A.pipelines.set(h.pipeline),L=T(h,f,S),p=O.calcMatrix.copyFrom(L.calc),N=h._displayOriginX,g=h._displayOriginY,C=f.alpha*h.alpha;A.pipelines.preBatch(h),h.isFilled&&u(O,p,h,C,N,g),h.isStroked&&d(O,h,C,N,g),A.pipelines.postBatch(h)},"StarWebGLRenderer");o.exports=c},36931:(o,m,s)=>{/** + */var u=s(10441),T=s(91296),A=s(34682),c=v(function(d,h,f,S){f.addToRenderList(h);var R=d.pipelines.set(h.pipeline),L=T(h,f,S),p=R.calcMatrix.copyFrom(L.calc),N=h._displayOriginX,g=h._displayOriginY,C=f.alpha*h.alpha;d.pipelines.preBatch(h),h.isFilled&&u(R,p,h,C,N,g),h.isStroked&&A(R,h,C,N,g),d.pipelines.postBatch(h)},"StarWebGLRenderer");o.exports=c},36931:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(17803),d=s(16483),c=s(96195),A=new u({Extends:T,Mixins:[c],initialize:P(function(f,S,O,L,p,N,g,C,v,M,D){S===void 0&&(S=0),O===void 0&&(O=0),L===void 0&&(L=0),p===void 0&&(p=128),N===void 0&&(N=64),g===void 0&&(g=0),C===void 0&&(C=128),v===void 0&&(v=128),T.call(this,f,"Triangle",new d(L,p,N,g,C,v));var G=this.geom.right-this.geom.left,H=this.geom.bottom-this.geom.top;this.setPosition(S,O),this.setSize(G,H),M!==void 0&&this.setFillStyle(M,D),this.updateDisplayOrigin(),this.updateData()},"Triangle"),setTo:function(h,f,S,O,L,p){return this.geom.setTo(h,f,S,O,L,p),this.updateData()},updateData:function(){var h=[],f=this.geom,S=this._tempLine;return f.getLineA(S),h.push(S.x1,S.y1,S.x2,S.y2),f.getLineB(S),h.push(S.x2,S.y2),f.getLineC(S),h.push(S.x2,S.y2),this.pathData=h,this}});o.exports=A},85172:(o,m,s)=>{/** + */var u=s(83419),T=s(17803),A=s(16483),c=s(96195),d=new u({Extends:T,Mixins:[c],initialize:v(function(f,S,R,L,p,N,g,C,P,M,D){S===void 0&&(S=0),R===void 0&&(R=0),L===void 0&&(L=0),p===void 0&&(p=128),N===void 0&&(N=64),g===void 0&&(g=0),C===void 0&&(C=128),P===void 0&&(P=128),T.call(this,f,"Triangle",new A(L,p,N,g,C,P));var G=this.geom.right-this.geom.left,H=this.geom.bottom-this.geom.top;this.setPosition(S,R),this.setSize(G,H),M!==void 0&&this.setFillStyle(M,D),this.updateDisplayOrigin(),this.updateData()},"Triangle"),setTo:function(h,f,S,R,L,p){return this.geom.setTo(h,f,S,R,L,p),this.updateData()},updateData:function(){var h=[],f=this.geom,S=this._tempLine;return f.getLineA(S),h.push(S.x1,S.y1,S.x2,S.y2),f.getLineB(S),h.push(S.x2,S.y2),f.getLineC(S),h.push(S.x2,S.y2),this.pathData=h,this}});o.exports=d},85172:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(65960),T=s(75177),d=s(20926),c=P(function(A,h,f,S){f.addToRenderList(h);var O=A.currentContext;if(d(A,O,h,f,S)){var L=h._displayOriginX,p=h._displayOriginY,N=h.geom.x1-L,g=h.geom.y1-p,C=h.geom.x2-L,v=h.geom.y2-p,M=h.geom.x3-L,D=h.geom.y3-p;O.beginPath(),O.moveTo(N,g),O.lineTo(C,v),O.lineTo(M,D),O.closePath(),h.isFilled&&(u(O,h),O.fill()),h.isStroked&&(T(O,h),O.stroke()),O.restore()}},"TriangleCanvasRenderer");o.exports=c},45245:(o,m,s)=>{/** + */var u=s(65960),T=s(75177),A=s(20926),c=v(function(d,h,f,S){f.addToRenderList(h);var R=d.currentContext;if(A(d,R,h,f,S)){var L=h._displayOriginX,p=h._displayOriginY,N=h.geom.x1-L,g=h.geom.y1-p,C=h.geom.x2-L,P=h.geom.y2-p,M=h.geom.x3-L,D=h.geom.y3-p;R.beginPath(),R.moveTo(N,g),R.lineTo(C,P),R.lineTo(M,D),R.closePath(),h.isFilled&&(u(R,h),R.fill()),h.isStroked&&(T(R,h),R.stroke()),R.restore()}},"TriangleCanvasRenderer");o.exports=c},45245:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(39429),T=s(36931);u.register("triangle",function(d,c,A,h,f,S,O,L,p,N){return this.displayList.add(new T(this.scene,d,c,A,h,f,S,O,L,p,N))})},96195:(o,m,s)=>{/** + */var u=s(39429),T=s(36931);u.register("triangle",function(A,c,d,h,f,S,R,L,p,N){return this.displayList.add(new T(this.scene,A,c,d,h,f,S,R,L,p,N))})},96195:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(83253),d=s(85172),o.exports={renderWebGL:T,renderCanvas:d}},83253:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(83253),A=s(85172),o.exports={renderWebGL:T,renderCanvas:A}},83253:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91296),T=s(34682),d=s(70554),c=P(function(A,h,f,S){f.addToRenderList(h);var O=A.pipelines.set(h.pipeline),L=u(h,f,S);O.calcMatrix.copyFrom(L.calc);var p=h._displayOriginX,N=h._displayOriginY,g=f.alpha*h.alpha;if(A.pipelines.preBatch(h),h.isFilled){var C=O.fillTint,v=d.getTintAppendFloatAlpha(h.fillColor,h.fillAlpha*g);C.TL=v,C.TR=v,C.BL=v,C.BR=v;var M=h.geom.x1-p,D=h.geom.y1-N,G=h.geom.x2-p,H=h.geom.y2-N,B=h.geom.x3-p,_=h.geom.y3-N;O.batchFillTriangle(M,D,G,H,B,_,L.sprite,L.camera)}h.isStroked&&T(O,h,g,p,N),A.pipelines.postBatch(h)},"TriangleWebGLRenderer");o.exports=c},68287:(o,m,s)=>{/** + */var u=s(91296),T=s(34682),A=s(70554),c=v(function(d,h,f,S){f.addToRenderList(h);var R=d.pipelines.set(h.pipeline),L=u(h,f,S);R.calcMatrix.copyFrom(L.calc);var p=h._displayOriginX,N=h._displayOriginY,g=f.alpha*h.alpha;if(d.pipelines.preBatch(h),h.isFilled){var C=R.fillTint,P=A.getTintAppendFloatAlpha(h.fillColor,h.fillAlpha*g);C.TL=P,C.TR=P,C.BL=P,C.BR=P;var M=h.geom.x1-p,D=h.geom.y1-N,G=h.geom.x2-p,H=h.geom.y2-N,B=h.geom.x3-p,b=h.geom.y3-N;R.batchFillTriangle(M,D,G,H,B,b,L.sprite,L.camera)}h.isStroked&&T(R,h,g,p,N),d.pipelines.postBatch(h)},"TriangleWebGLRenderer");o.exports=c},68287:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(9674),T=s(83419),d=s(31401),c=s(95643),A=s(92751),h=new T({Extends:c,Mixins:[d.Alpha,d.BlendMode,d.Depth,d.Flip,d.GetBounds,d.Mask,d.Origin,d.Pipeline,d.PostPipeline,d.ScrollFactor,d.Size,d.TextureCrop,d.Tint,d.Transform,d.Visible,A],initialize:P(function(S,O,L,p,N){c.call(this,S,"Sprite"),this._crop=this.resetCropObject(),this.anims=new u(this),this.setTexture(p,N),this.setPosition(O,L),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)},"Sprite"),addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(f,S){this.anims.update(f,S)},play:function(f,S){return this.anims.play(f,S)},playReverse:function(f,S){return this.anims.playReverse(f,S)},playAfterDelay:function(f,S){return this.anims.playAfterDelay(f,S)},playAfterRepeat:function(f,S){return this.anims.playAfterRepeat(f,S)},chain:function(f){return this.anims.chain(f)},stop:function(){return this.anims.stop()},stopAfterDelay:function(f){return this.anims.stopAfterDelay(f)},stopAfterRepeat:function(f){return this.anims.stopAfterRepeat(f)},stopOnFrame:function(f){return this.anims.stopOnFrame(f)},toJSON:function(){return d.ToJSON(this)},preDestroy:function(){this.anims.destroy(),this.anims=void 0}});o.exports=h},76552:o=>{/** + */var u=s(9674),T=s(83419),A=s(31401),c=s(95643),d=s(92751),h=new T({Extends:c,Mixins:[A.Alpha,A.BlendMode,A.Depth,A.Flip,A.GetBounds,A.Mask,A.Origin,A.Pipeline,A.PostPipeline,A.ScrollFactor,A.Size,A.TextureCrop,A.Tint,A.Transform,A.Visible,d],initialize:v(function(S,R,L,p,N){c.call(this,S,"Sprite"),this._crop=this.resetCropObject(),this.anims=new u(this),this.setTexture(p,N),this.setPosition(R,L),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)},"Sprite"),addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(f,S){this.anims.update(f,S)},play:function(f,S){return this.anims.play(f,S)},playReverse:function(f,S){return this.anims.playReverse(f,S)},playAfterDelay:function(f,S){return this.anims.playAfterDelay(f,S)},playAfterRepeat:function(f,S){return this.anims.playAfterRepeat(f,S)},chain:function(f){return this.anims.chain(f)},stop:function(){return this.anims.stop()},stopAfterDelay:function(f){return this.anims.stopAfterDelay(f)},stopAfterRepeat:function(f){return this.anims.stopAfterRepeat(f)},stopOnFrame:function(f){return this.anims.stopOnFrame(f)},toJSON:function(){return A.ToJSON(this)},preDestroy:function(){this.anims.destroy(),this.anims=void 0}});o.exports=h},76552:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){T.addToRenderList(u),s.batchSprite(u,u.frame,T,d)},"SpriteCanvasRenderer");o.exports=m},15567:(o,m,s)=>{/** + */var O=v(function(s,u,T,A){T.addToRenderList(u),s.batchSprite(u,u.frame,T,A)},"SpriteCanvasRenderer");o.exports=O},15567:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(25305),T=s(13059),d=s(44603),c=s(23568),A=s(68287);d.register("sprite",function(h,f){h===void 0&&(h={});var S=c(h,"key",null),O=c(h,"frame",null),L=new A(this.scene,0,0,S,O);return f!==void 0&&(h.add=f),u(this.scene,L,h),T(L,h),L})},46409:(o,m,s)=>{/** + */var u=s(25305),T=s(13059),A=s(44603),c=s(23568),d=s(68287);A.register("sprite",function(h,f){h===void 0&&(h={});var S=c(h,"key",null),R=c(h,"frame",null),L=new d(this.scene,0,0,S,R);return f!==void 0&&(h.add=f),u(this.scene,L,h),T(L,h),L})},46409:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(39429),T=s(68287);u.register("sprite",function(d,c,A,h){return this.displayList.add(new T(this.scene,d,c,A,h))})},92751:(o,m,s)=>{/** + */var u=s(39429),T=s(68287);u.register("sprite",function(A,c,d,h){return this.displayList.add(new T(this.scene,A,c,d,h))})},92751:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(9409),d=s(76552),o.exports={renderWebGL:T,renderCanvas:d}},9409:o=>{/** + */var u=s(29747),T=u,A=u;T=s(9409),A=s(76552),o.exports={renderWebGL:T,renderCanvas:A}},9409:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){T.addToRenderList(u),u.pipeline.batchSprite(u,T,d)},"SpriteWebGLRenderer");o.exports=m},14220:o=>{/** + */var O=v(function(s,u,T,A){T.addToRenderList(u),u.pipeline.batchSprite(u,T,A)},"SpriteWebGLRenderer");o.exports=O},14220:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){var d=s.canvas,c=s.context,A=s.style,h=[],f=0,S=T.length;A.maxLines>0&&A.maxLines1&&(L+=s.letterSpacing*(T[O].length-1)),A.wordWrap&&(L-=c.measureText(" ").width),h[O]=Math.ceil(L),f=Math.max(f,h[O])}var p=u.fontSize+A.strokeThickness,N=p*S,g=s.lineSpacing;return S>1&&(N+=g*(S-1)),{width:f,height:N,lines:S,lineWidths:h,lineSpacing:g,lineHeight:p}},"GetTextSize");o.exports=m},79557:(o,m,s)=>{/** + */var O=v(function(s,u,T){var A=s.canvas,c=s.context,d=s.style,h=[],f=0,S=T.length;d.maxLines>0&&d.maxLines1&&(L+=s.letterSpacing*(T[R].length-1)),d.wordWrap&&(L-=c.measureText(" ").width),h[R]=Math.ceil(L),f=Math.max(f,h[R])}var p=u.fontSize+d.strokeThickness,N=p*S,g=s.lineSpacing;return S>1&&(N+=g*(S-1)),{width:f,height:N,lines:S,lineWidths:h,lineSpacing:g,lineHeight:p}},"GetTextSize");o.exports=O},79557:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(27919),T=P(function(d){var c=u.create(this),A=c.getContext("2d",{willReadFrequently:!0});d.syncFont(c,A);var h=A.measureText(d.testString);if("actualBoundingBoxAscent"in h){var f=h.actualBoundingBoxAscent,S=h.actualBoundingBoxDescent;return u.remove(c),{ascent:f,descent:S,fontSize:f+S}}var O=Math.ceil(h.width*d.baselineX),L=O,p=2*L;L=L*d.baselineY|0,c.width=O,c.height=p,A.fillStyle="#f00",A.fillRect(0,0,O,p),A.font=d._font,A.textBaseline="alphabetic",A.fillStyle="#000",A.fillText(d.testString,0,L);var N={ascent:0,descent:0,fontSize:0},g=A.getImageData(0,0,O,p);if(!g)return N.ascent=L,N.descent=L+6,N.fontSize=N.ascent+N.descent,u.remove(c),N;var C=g.data,v=C.length,M=O*4,D,G,H=0,B=!1;for(D=0;DL;D--){for(G=0;G{/** + */var u=s(27919),T=v(function(A){var c=u.create(this),d=c.getContext("2d",{willReadFrequently:!0});A.syncFont(c,d);var h=d.measureText(A.testString);if("actualBoundingBoxAscent"in h){var f=h.actualBoundingBoxAscent,S=h.actualBoundingBoxDescent;return u.remove(c),{ascent:f,descent:S,fontSize:f+S}}var R=Math.ceil(h.width*A.baselineX),L=R,p=2*L;L=L*A.baselineY|0,c.width=R,c.height=p,d.fillStyle="#f00",d.fillRect(0,0,R,p),d.font=A._font,d.textBaseline="alphabetic",d.fillStyle="#000",d.fillText(A.testString,0,L);var N={ascent:0,descent:0,fontSize:0},g=d.getImageData(0,0,R,p);if(!g)return N.ascent=L,N.descent=L+6,N.fontSize=N.ascent+N.descent,u.remove(c),N;var C=g.data,P=C.length,M=R*4,D,G,H=0,B=!1;for(D=0;DL;D--){for(G=0;G{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(40366),T=s(27919),d=s(83419),c=s(31401),A=s(95643),h=s(14220),f=s(35154),S=s(35846),O=s(61771),L=s(35762),p=s(45650),N=new d({Extends:A,Mixins:[c.Alpha,c.BlendMode,c.ComputedSize,c.Crop,c.Depth,c.Flip,c.GetBounds,c.Mask,c.Origin,c.Pipeline,c.PostPipeline,c.ScrollFactor,c.Tint,c.Transform,c.Visible,O],initialize:P(function(C,v,M,D,G){v===void 0&&(v=0),M===void 0&&(M=0),A.call(this,C,"Text"),this.renderer=C.sys.renderer,this.setPosition(v,M),this.setOrigin(0,0),this.initPipeline(),this.initPostPipeline(!0),this.canvas=T.create(this),this.context,this.style=new L(this,G),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.letterSpacing=0,this.style.resolution===0&&(this.style.resolution=1),this._crop=this.resetCropObject(),this._textureKey=p(),this.texture=C.sys.textures.addCanvas(this._textureKey,this.canvas),this.context=this.texture.context,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(D),G&&G.padding&&this.setPadding(G.padding),G&&G.lineSpacing&&this.setLineSpacing(G.lineSpacing)},"Text"),initRTL:function(){this.style.rtl&&(this.canvas.dir="rtl",this.context.direction="rtl",this.canvas.style.display="none",u(this.canvas,this.scene.sys.canvas),this.originX=1)},runWordWrap:function(g){var C=this.style;if(C.wordWrapCallback){var v=C.wordWrapCallback.call(C.wordWrapCallbackScope,g,this);return Array.isArray(v)&&(v=v.join(` -`)),v}else return C.wordWrapWidth?C.wordWrapUseAdvanced?this.advancedWordWrap(g,this.context,this.style.wordWrapWidth):this.basicWordWrap(g,this.context,this.style.wordWrapWidth):g},advancedWordWrap:function(g,C,v){for(var M="",D=g.replace(/ +/gi," ").split(this.splitRegExp),G=D.length,H=0;Hb){if(k===0){for(var Q=Z;Q.length&&(Q=Q.slice(0,-1),$=C.measureText(Q).width,!($<=b)););if(!Q.length)throw new Error("wordWrapWidth < a single character");var te=V.substr(Q.length);F[k]=te,_+=Q}var z=F[k].length?k:k+1,j=F.slice(z).join(" ").replace(/[ \n]*$/gi,"");D.splice(H+1,0,j),G=D.length;break}else _+=Z,b-=$}M+=_.replace(/[ \n]*$/gi,"")+` -`}return M=M.replace(/[\s|\n]*$/gi,""),M},basicWordWrap:function(g,C,v){for(var M="",D=g.split(this.splitRegExp),G=D.length-1,H=C.measureText(" ").width,B=0;B<=G;B++){for(var _=v,w=D[B].split(" "),b=w.length-1,F=0;F<=b;F++){var k=w[F],V=C.measureText(k).width,Z=V;F_&&F>0&&(M+=` -`,_=v),M+=k,F_){if(x===0){for(var Q=Z;Q.length&&(Q=Q.slice(0,-1),$=C.measureText(Q).width,!($<=_)););if(!Q.length)throw new Error("wordWrapWidth < a single character");var te=V.substr(Q.length);F[x]=te,b+=Q}var z=F[x].length?x:x+1,j=F.slice(z).join(" ").replace(/[ \n]*$/gi,"");D.splice(H+1,0,j),G=D.length;break}else b+=Z,_-=$}M+=b.replace(/[ \n]*$/gi,"")+` +`}return M=M.replace(/[\s|\n]*$/gi,""),M},basicWordWrap:function(g,C,P){for(var M="",D=g.split(this.splitRegExp),G=D.length-1,H=C.measureText(" ").width,B=0;B<=G;B++){for(var b=P,w=D[B].split(" "),_=w.length-1,F=0;F<=_;F++){var x=w[F],V=C.measureText(x).width,Z=V;F<_&&(Z+=H),Z>b&&F>0&&(M+=` +`,b=P),M+=x,F<_?(M+=" ",b-=Z):b-=V}B0&&(V+=B.lineSpacing*Z),v.rtl)k=b-k-_.left-_.right;else if(v.align==="right")k+=w-B.lineWidths[Z];else if(v.align==="center")k+=(w-B.lineWidths[Z])/2;else if(v.align==="justify"){var $=.85;if(B.lineWidths[Z]/B.width>=$){var Q=B.width-B.lineWidths[Z],te=C.measureText(" ").width,z=H[Z].trim(),j=z.split(" ");Q+=(H[Z].length-z.length)*te;for(var x=Math.floor(Q/te),X=0;x>0;)j[X]+=" ",X=(X+1)%(j.length-1||1),--x;H[Z]=j.join(" ")}}if(this.autoRound&&(k=Math.round(k),V=Math.round(V)),v.strokeThickness&&(v.syncShadow(C,v.shadowStroke),C.strokeText(H[Z],k,V)),v.color){v.syncShadow(C,v.shadowFill);var q=this.letterSpacing;if(q!==0)for(var J=0,ae=H[Z].split(""),re=0;re{/** +`)),g=g.toString();var P=this._text.concat(C?` +`+g:g);return P!==this._text&&(this._text=P,this.updateText()),this},setStyle:function(g){return this.style.setStyle(g)},setFont:function(g){return this.style.setFont(g)},setFontFamily:function(g){return this.style.setFontFamily(g)},setFontSize:function(g){return this.style.setFontSize(g)},setFontStyle:function(g){return this.style.setFontStyle(g)},setFixedSize:function(g,C){return this.style.setFixedSize(g,C)},setBackgroundColor:function(g){return this.style.setBackgroundColor(g)},setFill:function(g){return this.style.setFill(g)},setColor:function(g){return this.style.setColor(g)},setStroke:function(g,C){return this.style.setStroke(g,C)},setShadow:function(g,C,P,M,D,G){return this.style.setShadow(g,C,P,M,D,G)},setShadowOffset:function(g,C){return this.style.setShadowOffset(g,C)},setShadowColor:function(g){return this.style.setShadowColor(g)},setShadowBlur:function(g){return this.style.setShadowBlur(g)},setShadowStroke:function(g){return this.style.setShadowStroke(g)},setShadowFill:function(g){return this.style.setShadowFill(g)},setWordWrapWidth:function(g,C){return this.style.setWordWrapWidth(g,C)},setWordWrapCallback:function(g,C){return this.style.setWordWrapCallback(g,C)},setAlign:function(g){return this.style.setAlign(g)},setResolution:function(g){return this.style.setResolution(g)},setLineSpacing:function(g){return this.lineSpacing=g,this.updateText()},setLetterSpacing:function(g){return this.letterSpacing=g,this.updateText()},setPadding:function(g,C,P,M){if(typeof g=="object"){var D=g,G=f(D,"x",null);G!==null?(g=G,P=G):(g=f(D,"left",0),P=f(D,"right",g));var H=f(D,"y",null);H!==null?(C=H,M=H):(C=f(D,"top",0),M=f(D,"bottom",C))}else g===void 0&&(g=0),C===void 0&&(C=g),P===void 0&&(P=g),M===void 0&&(M=C);return this.padding.left=g,this.padding.top=C,this.padding.right=P,this.padding.bottom=M,this.updateText()},setMaxLines:function(g){return this.style.setMaxLines(g)},setRTL:function(g){g===void 0&&(g=!0);var C=this.style;return C.rtl===g?this:(C.rtl=g,g?(this.canvas.dir="rtl",this.context.direction="rtl",this.canvas.style.display="none",u(this.canvas,this.scene.sys.canvas)):(this.canvas.dir="ltr",this.context.direction="ltr"),C.align==="left"?C.align="right":C.align==="right"&&(C.align="left"),this)},updateText:function(){var g=this.canvas,C=this.context,P=this.style,M=P.resolution,D=P.metrics;P.syncFont(g,C);var G=this._text;(P.wordWrapWidth||P.wordWrapCallback)&&(G=this.runWordWrap(this._text));var H=G.split(this.splitRegExp),B=h(this,D,H),b=this.padding,w;P.fixedWidth===0?(this.width=B.width+b.left+b.right,w=B.width):(this.width=P.fixedWidth,w=this.width-b.left-b.right,w0&&(V+=B.lineSpacing*Z),P.rtl)x=_-x-b.left-b.right;else if(P.align==="right")x+=w-B.lineWidths[Z];else if(P.align==="center")x+=(w-B.lineWidths[Z])/2;else if(P.align==="justify"){var $=.85;if(B.lineWidths[Z]/B.width>=$){var Q=B.width-B.lineWidths[Z],te=C.measureText(" ").width,z=H[Z].trim(),j=z.split(" ");Q+=(H[Z].length-z.length)*te;for(var k=Math.floor(Q/te),X=0;k>0;)j[X]+=" ",X=(X+1)%(j.length-1||1),--k;H[Z]=j.join(" ")}}if(this.autoRound&&(x=Math.round(x),V=Math.round(V)),P.strokeThickness&&(P.syncShadow(C,P.shadowStroke),C.strokeText(H[Z],x,V)),P.color){P.syncShadow(C,P.shadowFill);var q=this.letterSpacing;if(q!==0)for(var J=0,ne=H[Z].split(""),re=0;re{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){u.width===0||u.height===0||(T.addToRenderList(u),s.batchSprite(u,u.frame,T,d))},"TextCanvasRenderer");o.exports=m},71259:(o,m,s)=>{/** + */var O=v(function(s,u,T,A){u.width===0||u.height===0||(T.addToRenderList(u),s.batchSprite(u,u.frame,T,A))},"TextCanvasRenderer");o.exports=O},71259:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(25305),T=s(44603),d=s(23568),c=s(50171);T.register("text",function(A,h){A===void 0&&(A={});var f=d(A,"text",""),S=d(A,"style",null),O=d(A,"padding",null);O!==null&&(S.padding=O);var L=new c(this.scene,0,0,f,S);return h!==void 0&&(A.add=h),u(this.scene,L,A),L.autoRound=d(A,"autoRound",!0),L.resolution=d(A,"resolution",1),L})},68005:(o,m,s)=>{/** + */var u=s(25305),T=s(44603),A=s(23568),c=s(50171);T.register("text",function(d,h){d===void 0&&(d={});var f=A(d,"text",""),S=A(d,"style",null),R=A(d,"padding",null);R!==null&&(S.padding=R);var L=new c(this.scene,0,0,f,S);return h!==void 0&&(d.add=h),u(this.scene,L,d),L.autoRound=A(d,"autoRound",!0),L.resolution=A(d,"resolution",1),L})},68005:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(50171),T=s(39429);T.register("text",function(d,c,A,h){return this.displayList.add(new u(this.scene,d,c,A,h))})},61771:(o,m,s)=>{/** + */var u=s(50171),T=s(39429);T.register("text",function(A,c,d,h){return this.displayList.add(new u(this.scene,A,c,d,h))})},61771:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(34397),d=s(79724),o.exports={renderWebGL:T,renderCanvas:d}},35762:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(34397),A=s(79724),o.exports={renderWebGL:T,renderCanvas:A}},35762:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(23568),d=s(35154),c=s(79557),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]},h=new u({initialize:P(function(S,O){this.parent=S,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(O,!1,!0)},"TextStyle"),setStyle:function(f,S,O){S===void 0&&(S=!0),O===void 0&&(O=!1),f&&f.hasOwnProperty("fontSize")&&typeof f.fontSize=="number"&&(f.fontSize=f.fontSize.toString()+"px");for(var L in A){var p=O?A[L][1]:this[L];L==="wordWrapCallback"||L==="wordWrapCallbackScope"?this[L]=d(f,A[L][0],p):this[L]=T(f,A[L][0],p)}var N=d(f,"font",null);N!==null&&this.setFont(N,!1),this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim();var g=d(f,"fill",null);g!==null&&(this.color=g);var C=d(f,"metrics",!1);return C?this.metrics={ascent:d(C,"ascent",0),descent:d(C,"descent",0),fontSize:d(C,"fontSize",0)}:(S||!this.metrics)&&(this.metrics=c(this)),S?this.parent.updateText():this.parent},syncFont:function(f,S){S.font=this._font},syncStyle:function(f,S){S.textBaseline="alphabetic",S.fillStyle=this.color,S.strokeStyle=this.stroke,S.lineWidth=this.strokeThickness,S.lineCap="round",S.lineJoin="round"},syncShadow:function(f,S){S?(f.shadowOffsetX=this.shadowOffsetX,f.shadowOffsetY=this.shadowOffsetY,f.shadowColor=this.shadowColor,f.shadowBlur=this.shadowBlur):(f.shadowOffsetX=0,f.shadowOffsetY=0,f.shadowColor=0,f.shadowBlur=0)},update:function(f){return f&&(this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim(),this.metrics=c(this)),this.parent.updateText()},setFont:function(f,S){S===void 0&&(S=!0);var O=f,L="",p="";if(typeof f!="string")O=d(f,"fontFamily","Courier"),L=d(f,"fontSize","16px"),p=d(f,"fontStyle","");else{var N=f.split(" "),g=0;p=N.length>2?N[g++]:"",L=N[g++]||"16px",O=N[g++]||"Courier"}return(O!==this.fontFamily||L!==this.fontSize||p!==this.fontStyle)&&(this.fontFamily=O,this.fontSize=L,this.fontStyle=p,S&&this.update(!0)),this.parent},setFontFamily:function(f){return this.fontFamily!==f&&(this.fontFamily=f,this.update(!0)),this.parent},setFontStyle:function(f){return this.fontStyle!==f&&(this.fontStyle=f,this.update(!0)),this.parent},setFontSize:function(f){return typeof f=="number"&&(f=f.toString()+"px"),this.fontSize!==f&&(this.fontSize=f,this.update(!0)),this.parent},setTestString:function(f){return this.testString=f,this.update(!0)},setFixedSize:function(f,S){return this.fixedWidth=f,this.fixedHeight=S,f&&(this.parent.width=f),S&&(this.parent.height=S),this.update(!1)},setBackgroundColor:function(f){return this.backgroundColor=f,this.update(!1)},setFill:function(f){return this.color=f,this.update(!1)},setColor:function(f){return this.color=f,this.update(!1)},setResolution:function(f){return this.resolution=f,this.update(!1)},setStroke:function(f,S){return S===void 0&&(S=this.strokeThickness),f===void 0&&this.strokeThickness!==0?(this.strokeThickness=0,this.update(!0)):(this.stroke!==f||this.strokeThickness!==S)&&(this.stroke=f,this.strokeThickness=S,this.update(!0)),this.parent},setShadow:function(f,S,O,L,p,N){return f===void 0&&(f=0),S===void 0&&(S=0),O===void 0&&(O="#000"),L===void 0&&(L=0),p===void 0&&(p=!1),N===void 0&&(N=!0),this.shadowOffsetX=f,this.shadowOffsetY=S,this.shadowColor=O,this.shadowBlur=L,this.shadowStroke=p,this.shadowFill=N,this.update(!1)},setShadowOffset:function(f,S){return f===void 0&&(f=0),S===void 0&&(S=f),this.shadowOffsetX=f,this.shadowOffsetY=S,this.update(!1)},setShadowColor:function(f){return f===void 0&&(f="#000"),this.shadowColor=f,this.update(!1)},setShadowBlur:function(f){return f===void 0&&(f=0),this.shadowBlur=f,this.update(!1)},setShadowStroke:function(f){return this.shadowStroke=f,this.update(!1)},setShadowFill:function(f){return this.shadowFill=f,this.update(!1)},setWordWrapWidth:function(f,S){return S===void 0&&(S=!1),this.wordWrapWidth=f,this.wordWrapUseAdvanced=S,this.update(!1)},setWordWrapCallback:function(f,S){return S===void 0&&(S=null),this.wordWrapCallback=f,this.wordWrapCallbackScope=S,this.update(!1)},setAlign:function(f){return f===void 0&&(f="left"),this.align=f,this.update(!1)},setMaxLines:function(f){return f===void 0&&(f=0),this.maxLines=f,this.update(!1)},getTextMetrics:function(){var f=this.metrics;return{ascent:f.ascent,descent:f.descent,fontSize:f.fontSize}},toJSON:function(){var f={};for(var S in A)f[S]=this[S];return f.metrics=this.getTextMetrics(),f},destroy:function(){this.parent=void 0}});o.exports=h},34397:(o,m,s)=>{/** + */var u=s(83419),T=s(23568),A=s(35154),c=s(79557),d={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]},h=new u({initialize:v(function(S,R){this.parent=S,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(R,!1,!0)},"TextStyle"),setStyle:function(f,S,R){S===void 0&&(S=!0),R===void 0&&(R=!1),f&&f.hasOwnProperty("fontSize")&&typeof f.fontSize=="number"&&(f.fontSize=f.fontSize.toString()+"px");for(var L in d){var p=R?d[L][1]:this[L];L==="wordWrapCallback"||L==="wordWrapCallbackScope"?this[L]=A(f,d[L][0],p):this[L]=T(f,d[L][0],p)}var N=A(f,"font",null);N!==null&&this.setFont(N,!1),this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim();var g=A(f,"fill",null);g!==null&&(this.color=g);var C=A(f,"metrics",!1);return C?this.metrics={ascent:A(C,"ascent",0),descent:A(C,"descent",0),fontSize:A(C,"fontSize",0)}:(S||!this.metrics)&&(this.metrics=c(this)),S?this.parent.updateText():this.parent},syncFont:function(f,S){S.font=this._font},syncStyle:function(f,S){S.textBaseline="alphabetic",S.fillStyle=this.color,S.strokeStyle=this.stroke,S.lineWidth=this.strokeThickness,S.lineCap="round",S.lineJoin="round"},syncShadow:function(f,S){S?(f.shadowOffsetX=this.shadowOffsetX,f.shadowOffsetY=this.shadowOffsetY,f.shadowColor=this.shadowColor,f.shadowBlur=this.shadowBlur):(f.shadowOffsetX=0,f.shadowOffsetY=0,f.shadowColor=0,f.shadowBlur=0)},update:function(f){return f&&(this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim(),this.metrics=c(this)),this.parent.updateText()},setFont:function(f,S){S===void 0&&(S=!0);var R=f,L="",p="";if(typeof f!="string")R=A(f,"fontFamily","Courier"),L=A(f,"fontSize","16px"),p=A(f,"fontStyle","");else{var N=f.split(" "),g=0;p=N.length>2?N[g++]:"",L=N[g++]||"16px",R=N[g++]||"Courier"}return(R!==this.fontFamily||L!==this.fontSize||p!==this.fontStyle)&&(this.fontFamily=R,this.fontSize=L,this.fontStyle=p,S&&this.update(!0)),this.parent},setFontFamily:function(f){return this.fontFamily!==f&&(this.fontFamily=f,this.update(!0)),this.parent},setFontStyle:function(f){return this.fontStyle!==f&&(this.fontStyle=f,this.update(!0)),this.parent},setFontSize:function(f){return typeof f=="number"&&(f=f.toString()+"px"),this.fontSize!==f&&(this.fontSize=f,this.update(!0)),this.parent},setTestString:function(f){return this.testString=f,this.update(!0)},setFixedSize:function(f,S){return this.fixedWidth=f,this.fixedHeight=S,f&&(this.parent.width=f),S&&(this.parent.height=S),this.update(!1)},setBackgroundColor:function(f){return this.backgroundColor=f,this.update(!1)},setFill:function(f){return this.color=f,this.update(!1)},setColor:function(f){return this.color=f,this.update(!1)},setResolution:function(f){return this.resolution=f,this.update(!1)},setStroke:function(f,S){return S===void 0&&(S=this.strokeThickness),f===void 0&&this.strokeThickness!==0?(this.strokeThickness=0,this.update(!0)):(this.stroke!==f||this.strokeThickness!==S)&&(this.stroke=f,this.strokeThickness=S,this.update(!0)),this.parent},setShadow:function(f,S,R,L,p,N){return f===void 0&&(f=0),S===void 0&&(S=0),R===void 0&&(R="#000"),L===void 0&&(L=0),p===void 0&&(p=!1),N===void 0&&(N=!0),this.shadowOffsetX=f,this.shadowOffsetY=S,this.shadowColor=R,this.shadowBlur=L,this.shadowStroke=p,this.shadowFill=N,this.update(!1)},setShadowOffset:function(f,S){return f===void 0&&(f=0),S===void 0&&(S=f),this.shadowOffsetX=f,this.shadowOffsetY=S,this.update(!1)},setShadowColor:function(f){return f===void 0&&(f="#000"),this.shadowColor=f,this.update(!1)},setShadowBlur:function(f){return f===void 0&&(f=0),this.shadowBlur=f,this.update(!1)},setShadowStroke:function(f){return this.shadowStroke=f,this.update(!1)},setShadowFill:function(f){return this.shadowFill=f,this.update(!1)},setWordWrapWidth:function(f,S){return S===void 0&&(S=!1),this.wordWrapWidth=f,this.wordWrapUseAdvanced=S,this.update(!1)},setWordWrapCallback:function(f,S){return S===void 0&&(S=null),this.wordWrapCallback=f,this.wordWrapCallbackScope=S,this.update(!1)},setAlign:function(f){return f===void 0&&(f="left"),this.align=f,this.update(!1)},setMaxLines:function(f){return f===void 0&&(f=0),this.maxLines=f,this.update(!1)},getTextMetrics:function(){var f=this.metrics;return{ascent:f.ascent,descent:f.descent,fontSize:f.fontSize}},toJSON:function(){var f={};for(var S in d)f[S]=this[S];return f.metrics=this.getTextMetrics(),f},destroy:function(){this.parent=void 0}});o.exports=h},34397:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(70554),T=P(function(d,c,A,h){if(!(c.width===0||c.height===0)){A.addToRenderList(c);var f=c.frame,S=f.width,O=f.height,L=u.getTintAppendFloatAlpha,p=d.pipelines.set(c.pipeline,c),N=p.setTexture2D(f.glTexture,c);p.batchTexture(c,f.glTexture,S,O,c.x,c.y,S/c.style.resolution,O/c.style.resolution,c.scaleX,c.scaleY,c.rotation,c.flipX,c.flipY,c.scrollFactorX,c.scrollFactorY,c.displayOriginX,c.displayOriginY,0,0,S,O,L(c.tintTopLeft,A.alpha*c._alphaTL),L(c.tintTopRight,A.alpha*c._alphaTR),L(c.tintBottomLeft,A.alpha*c._alphaBL),L(c.tintBottomRight,A.alpha*c._alphaBR),c.tintFill,0,0,A,h,!1,N)}},"TextWebGLRenderer");o.exports=T},20839:(o,m,s)=>{/** + */var u=s(70554),T=v(function(A,c,d,h){if(!(c.width===0||c.height===0)){d.addToRenderList(c);var f=c.frame,S=f.width,R=f.height,L=u.getTintAppendFloatAlpha,p=A.pipelines.set(c.pipeline,c),N=p.setTexture2D(f.glTexture,c);p.batchTexture(c,f.glTexture,S,R,c.x,c.y,S/c.style.resolution,R/c.style.resolution,c.scaleX,c.scaleY,c.rotation,c.flipX,c.flipY,c.scrollFactorX,c.scrollFactorY,c.displayOriginX,c.displayOriginY,0,0,S,R,L(c.tintTopLeft,d.alpha*c._alphaTL),L(c.tintTopRight,d.alpha*c._alphaTR),L(c.tintBottomLeft,d.alpha*c._alphaBL),L(c.tintBottomRight,d.alpha*c._alphaBR),c.tintFill,0,0,d,h,!1,N)}},"TextWebGLRenderer");o.exports=T},20839:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(27919),T=s(83419),d=s(31401),c=s(95643),A=s(98439),h=s(68703),f=s(56295),S=s(45650),O=s(26099),L=8,p=new T({Extends:c,Mixins:[d.Alpha,d.BlendMode,d.ComputedSize,d.Crop,d.Depth,d.Flip,d.GetBounds,d.Mask,d.Origin,d.Pipeline,d.PostPipeline,d.ScrollFactor,d.Tint,d.Transform,d.Visible,f],initialize:P(function(g,C,v,M,D,G,H){var B=g.sys.renderer;c.call(this,g,"TileSprite");var _=g.sys.textures.get(G),w=_.get(H);w.source.compressionAlgorithm&&(console.warn("TileSprite cannot use compressed texture"),_=g.sys.textures.get("__MISSING"),w=_.get()),_.type==="DynamicTexture"&&(console.warn("TileSprite cannot use Dynamic Texture"),_=g.sys.textures.get("__MISSING"),w=_.get()),!M||!D?(M=w.width,D=w.height):(M=Math.floor(M),D=Math.floor(D)),this._tilePosition=new O,this._tileScale=new O(1,1),this.dirty=!1,this.renderer=B,this.canvas=u.create(this,M,D),this.context=this.canvas.getContext("2d",{willReadFrequently:!1}),this.displayTexture=_,this.displayFrame=w,this._crop=this.resetCropObject(),this._textureKey=S(),this.texture=g.sys.textures.addCanvas(this._textureKey,this.canvas),this.frame=this.texture.get(),this.potWidth=A(w.width),this.potHeight=A(w.height),this.fillCanvas=u.create2D(this,this.potWidth,this.potHeight),this.fillContext=this.fillCanvas.getContext("2d",{willReadFrequently:!1}),this.fillPattern=null,this.setPosition(C,v),this.setSize(M,D),this.setFrame(H),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)},"TileSprite"),setTexture:function(N,g){return this.displayTexture=this.scene.sys.textures.get(N),this.setFrame(g)},setFrame:function(N){var g=this.displayTexture.get(N);return this.potWidth=A(g.width),this.potHeight=A(g.height),this.canvas.width=0,!g.cutWidth||!g.cutHeight?this.renderFlags&=~L:this.renderFlags|=L,this.displayFrame=g,this.dirty=!0,this.updateTileTexture(),this},setTilePosition:function(N,g){return N!==void 0&&(this.tilePositionX=N),g!==void 0&&(this.tilePositionY=g),this},setTileScale:function(N,g){return N===void 0&&(N=this.tileScaleX),g===void 0&&(g=N),this.tileScaleX=N,this.tileScaleY=g,this},updateTileTexture:function(){if(!(!this.dirty||!this.renderer)){var N=this.displayFrame;if(N.source.isRenderTexture||N.source.isGLTexture){console.warn("TileSprites can only use Image or Canvas based textures"),this.dirty=!1;return}var g=this.fillContext,C=this.fillCanvas,v=this.potWidth,M=this.potHeight;(!this.renderer||!this.renderer.gl)&&(v=N.cutWidth,M=N.cutHeight),g.clearRect(0,0,v,M),C.width=v,C.height=M,g.drawImage(N.source.image,N.cutX,N.cutY,N.cutWidth,N.cutHeight,0,0,v,M),this.renderer&&this.renderer.gl?this.fillPattern=this.renderer.canvasToTexture(C,this.fillPattern):this.fillPattern=g.createPattern(C,"repeat"),this.updateCanvas(),this.dirty=!1}},updateCanvas:function(){var N=this.canvas;if((N.width!==this.width||N.height!==this.height)&&(N.width=this.width,N.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 g=this.context;this.scene.sys.game.config.antialias||h.disable(g);var C=this._tileScale.x,v=this._tileScale.y,M=this._tilePosition.x,D=this._tilePosition.y;g.clearRect(0,0,this.width,this.height),g.save(),g.scale(C,v),g.translate(-M,-D),g.fillStyle=this.fillPattern,g.fillRect(M,D,this.width/C,this.height/v),g.restore(),this.dirty=!1},preDestroy:function(){this.renderer&&this.renderer.gl&&this.renderer.deleteTexture(this.fillPattern),u.remove(this.canvas),u.remove(this.fillCanvas),this.fillPattern=null,this.fillContext=null,this.fillCanvas=null,this.displayTexture=null,this.displayFrame=null;var N=this.texture;N&&N.destroy(),this.renderer=null},tilePositionX:{get:function(){return this._tilePosition.x},set:function(N){this._tilePosition.x=N,this.dirty=!0}},tilePositionY:{get:function(){return this._tilePosition.y},set:function(N){this._tilePosition.y=N,this.dirty=!0}},tileScaleX:{get:function(){return this._tileScale.x},set:function(N){this._tileScale.x=N,this.dirty=!0}},tileScaleY:{get:function(){return this._tileScale.y},set:function(N){this._tileScale.y=N,this.dirty=!0}}});o.exports=p},46992:o=>{/** + */var u=s(27919),T=s(83419),A=s(31401),c=s(95643),d=s(98439),h=s(68703),f=s(56295),S=s(45650),R=s(26099),L=8,p=new T({Extends:c,Mixins:[A.Alpha,A.BlendMode,A.ComputedSize,A.Crop,A.Depth,A.Flip,A.GetBounds,A.Mask,A.Origin,A.Pipeline,A.PostPipeline,A.ScrollFactor,A.Tint,A.Transform,A.Visible,f],initialize:v(function(g,C,P,M,D,G,H){var B=g.sys.renderer;c.call(this,g,"TileSprite");var b=g.sys.textures.get(G),w=b.get(H);w.source.compressionAlgorithm&&(console.warn("TileSprite cannot use compressed texture"),b=g.sys.textures.get("__MISSING"),w=b.get()),b.type==="DynamicTexture"&&(console.warn("TileSprite cannot use Dynamic Texture"),b=g.sys.textures.get("__MISSING"),w=b.get()),!M||!D?(M=w.width,D=w.height):(M=Math.floor(M),D=Math.floor(D)),this._tilePosition=new R,this._tileScale=new R(1,1),this.dirty=!1,this.renderer=B,this.canvas=u.create(this,M,D),this.context=this.canvas.getContext("2d",{willReadFrequently:!1}),this.displayTexture=b,this.displayFrame=w,this._crop=this.resetCropObject(),this._textureKey=S(),this.texture=g.sys.textures.addCanvas(this._textureKey,this.canvas),this.frame=this.texture.get(),this.potWidth=d(w.width),this.potHeight=d(w.height),this.fillCanvas=u.create2D(this,this.potWidth,this.potHeight),this.fillContext=this.fillCanvas.getContext("2d",{willReadFrequently:!1}),this.fillPattern=null,this.setPosition(C,P),this.setSize(M,D),this.setFrame(H),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)},"TileSprite"),setTexture:function(N,g){return this.displayTexture=this.scene.sys.textures.get(N),this.setFrame(g)},setFrame:function(N){var g=this.displayTexture.get(N);return this.potWidth=d(g.width),this.potHeight=d(g.height),this.canvas.width=0,!g.cutWidth||!g.cutHeight?this.renderFlags&=~L:this.renderFlags|=L,this.displayFrame=g,this.dirty=!0,this.updateTileTexture(),this},setTilePosition:function(N,g){return N!==void 0&&(this.tilePositionX=N),g!==void 0&&(this.tilePositionY=g),this},setTileScale:function(N,g){return N===void 0&&(N=this.tileScaleX),g===void 0&&(g=N),this.tileScaleX=N,this.tileScaleY=g,this},updateTileTexture:function(){if(!(!this.dirty||!this.renderer)){var N=this.displayFrame;if(N.source.isRenderTexture||N.source.isGLTexture){console.warn("TileSprites can only use Image or Canvas based textures"),this.dirty=!1;return}var g=this.fillContext,C=this.fillCanvas,P=this.potWidth,M=this.potHeight;(!this.renderer||!this.renderer.gl)&&(P=N.cutWidth,M=N.cutHeight),g.clearRect(0,0,P,M),C.width=P,C.height=M,g.drawImage(N.source.image,N.cutX,N.cutY,N.cutWidth,N.cutHeight,0,0,P,M),this.renderer&&this.renderer.gl?this.fillPattern=this.renderer.canvasToTexture(C,this.fillPattern):this.fillPattern=g.createPattern(C,"repeat"),this.updateCanvas(),this.dirty=!1}},updateCanvas:function(){var N=this.canvas;if((N.width!==this.width||N.height!==this.height)&&(N.width=this.width,N.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 g=this.context;this.scene.sys.game.config.antialias||h.disable(g);var C=this._tileScale.x,P=this._tileScale.y,M=this._tilePosition.x,D=this._tilePosition.y;g.clearRect(0,0,this.width,this.height),g.save(),g.scale(C,P),g.translate(-M,-D),g.fillStyle=this.fillPattern,g.fillRect(M,D,this.width/C,this.height/P),g.restore(),this.dirty=!1},preDestroy:function(){this.renderer&&this.renderer.gl&&this.renderer.deleteTexture(this.fillPattern),u.remove(this.canvas),u.remove(this.fillCanvas),this.fillPattern=null,this.fillContext=null,this.fillCanvas=null,this.displayTexture=null,this.displayFrame=null;var N=this.texture;N&&N.destroy(),this.renderer=null},tilePositionX:{get:function(){return this._tilePosition.x},set:function(N){this._tilePosition.x=N,this.dirty=!0}},tilePositionY:{get:function(){return this._tilePosition.y},set:function(N){this._tilePosition.y=N,this.dirty=!0}},tileScaleX:{get:function(){return this._tileScale.x},set:function(N){this._tileScale.x=N,this.dirty=!0}},tileScaleY:{get:function(){return this._tileScale.y},set:function(N){this._tileScale.y=N,this.dirty=!0}}});o.exports=p},46992:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){u.updateCanvas(),T.addToRenderList(u),s.batchSprite(u,u.frame,T,d)},"TileSpriteCanvasRenderer");o.exports=m},14167:(o,m,s)=>{/** + */var O=v(function(s,u,T,A){u.updateCanvas(),T.addToRenderList(u),s.batchSprite(u,u.frame,T,A)},"TileSpriteCanvasRenderer");o.exports=O},14167:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(25305),T=s(44603),d=s(23568),c=s(20839);T.register("tileSprite",function(A,h){A===void 0&&(A={});var f=d(A,"x",0),S=d(A,"y",0),O=d(A,"width",512),L=d(A,"height",512),p=d(A,"key",""),N=d(A,"frame",""),g=new c(this.scene,f,S,O,L,p,N);return h!==void 0&&(A.add=h),u(this.scene,g,A),g})},91681:(o,m,s)=>{/** + */var u=s(25305),T=s(44603),A=s(23568),c=s(20839);T.register("tileSprite",function(d,h){d===void 0&&(d={});var f=A(d,"x",0),S=A(d,"y",0),R=A(d,"width",512),L=A(d,"height",512),p=A(d,"key",""),N=A(d,"frame",""),g=new c(this.scene,f,S,R,L,p,N);return h!==void 0&&(d.add=h),u(this.scene,g,d),g})},91681:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(20839),T=s(39429);T.register("tileSprite",function(d,c,A,h,f,S){return this.displayList.add(new u(this.scene,d,c,A,h,f,S))})},56295:(o,m,s)=>{/** + */var u=s(20839),T=s(39429);T.register("tileSprite",function(A,c,d,h,f,S){return this.displayList.add(new u(this.scene,A,c,d,h,f,S))})},56295:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(18553),d=s(46992),o.exports={renderWebGL:T,renderCanvas:d}},18553:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(18553),A=s(46992),o.exports={renderWebGL:T,renderCanvas:A}},18553:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(70554),T=P(function(d,c,A,h){c.updateCanvas();var f=c.width,S=c.height;if(!(f===0||S===0)){A.addToRenderList(c);var O=u.getTintAppendFloatAlpha,L=d.pipelines.set(c.pipeline,c),p=L.setTexture2D(c.fillPattern,c);L.batchTexture(c,c.fillPattern,c.displayFrame.width*c.tileScaleX,c.displayFrame.height*c.tileScaleY,c.x,c.y,f,S,c.scaleX,c.scaleY,c.rotation,c.flipX,c.flipY,c.scrollFactorX,c.scrollFactorY,c.originX*f,c.originY*S,0,0,f,S,O(c.tintTopLeft,A.alpha*c._alphaTL),O(c.tintTopRight,A.alpha*c._alphaTR),O(c.tintBottomLeft,A.alpha*c._alphaBL),O(c.tintBottomRight,A.alpha*c._alphaBR),c.tintFill,c.tilePositionX%c.displayFrame.width/c.displayFrame.width,c.tilePositionY%c.displayFrame.height/c.displayFrame.height,A,h,!1,p)}},"TileSpriteWebGLRenderer");o.exports=T},18471:(o,m,s)=>{/** + */var u=s(70554),T=v(function(A,c,d,h){c.updateCanvas();var f=c.width,S=c.height;if(!(f===0||S===0)){d.addToRenderList(c);var R=u.getTintAppendFloatAlpha,L=A.pipelines.set(c.pipeline,c),p=L.setTexture2D(c.fillPattern,c);L.batchTexture(c,c.fillPattern,c.displayFrame.width*c.tileScaleX,c.displayFrame.height*c.tileScaleY,c.x,c.y,f,S,c.scaleX,c.scaleY,c.rotation,c.flipX,c.flipY,c.scrollFactorX,c.scrollFactorY,c.originX*f,c.originY*S,0,0,f,S,R(c.tintTopLeft,d.alpha*c._alphaTL),R(c.tintTopRight,d.alpha*c._alphaTR),R(c.tintBottomLeft,d.alpha*c._alphaBL),R(c.tintBottomRight,d.alpha*c._alphaBR),c.tintFill,c.tilePositionX%c.displayFrame.width/c.displayFrame.width,c.tilePositionY%c.displayFrame.height/c.displayFrame.height,d,h,!1,p)}},"TileSpriteWebGLRenderer");o.exports=T},18471:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(45319),T=s(83419),d=s(31401),c=s(51708),A=s(8443),h=s(95643),f=s(36383),S=s(14463),O=s(45650),L=s(10247),p=new T({Extends:h,Mixins:[d.Alpha,d.BlendMode,d.ComputedSize,d.Depth,d.Flip,d.GetBounds,d.Mask,d.Origin,d.Pipeline,d.PostPipeline,d.ScrollFactor,d.TextureCrop,d.Tint,d.Transform,d.Visible,L],initialize:P(function(g,C,v,M){h.call(this,g,"Video"),this.video,this.videoTexture,this.videoTextureSource,this.snapshotTexture,this.flipY=!1,this._key=O(),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._metadataCallbackHandler=this.metadataHandler.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 D=g.sys.game;this._device=D.device.video,this.setPosition(C,v),this.setSize(256,256),this.initPipeline(),this.initPostPipeline(!0),D.events.on(A.PAUSE,this.globalPause,this),D.events.on(A.RESUME,this.globalResume,this);var G=g.sys.sound;G&&G.on(S.GLOBAL_MUTE,this.globalMute,this),M&&this.load(M)},"Video"),addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},load:function(N){var g=this.scene.sys.cache.video.get(N);return g?(this.cacheKey=N,this.loadHandler(g.url,g.noAudio,g.crossOrigin)):console.warn("No video in cache for key: "+N),this},changeSource:function(N,g,C,v,M){g===void 0&&(g=!0),C===void 0&&(C=!1),this.cacheKey!==N&&(this.load(N),g&&this.play(C,v,M))},getVideoKey:function(){return this.cacheKey},loadURL:function(N,g,C){g===void 0&&(g=!1);var v=this._device.getVideoURL(N);return v?(this.cacheKey="",this.loadHandler(v.url,g,C)):console.warn("No supported video format found for "+N),this},loadMediaStream:function(N,g,C){return this.loadHandler(null,g,C,N)},loadHandler:function(N,g,C,v){g||(g=!1);var M=this.video;if(M?(this.removeLoadEventHandlers(),this.stop()):(M=document.createElement("video"),M.controls=!1,M.setAttribute("playsinline","playsinline"),M.setAttribute("preload","auto"),M.setAttribute("disablePictureInPicture","true")),g?(M.muted=!0,M.defaultMuted=!0,M.setAttribute("autoplay","autoplay")):(M.muted=!1,M.defaultMuted=!1,M.removeAttribute("autoplay")),C?M.setAttribute("crossorigin",C):M.removeAttribute("crossorigin"),v)if("srcObject"in M)try{M.srcObject=v}catch(G){if(G.name!=="TypeError")throw G;M.src=URL.createObjectURL(v)}else M.src=URL.createObjectURL(v);else M.src=N;this.retry=0,this.video=M,this._playCalled=!1,M.load(),this.addLoadEventHandlers();var D=this.scene.sys.textures.get(this._key);return this.setTexture(D),this},requestVideoFrame:function(N,g){var C=this.video;if(C){var v=g.width,M=g.height,D=this.videoTexture,G=this.videoTextureSource,H=!D||G.source!==C;H?(this._codePaused=C.paused,this._codeMuted=C.muted,D?(G.source=C,G.width=v,G.height=M,D.get().setSize(v,M)):(D=this.scene.sys.textures.create(this._key,C,v,M),D.add("__BASE",0,0,0,v,M),this.setTexture(D),this.videoTexture=D,this.videoTextureSource=D.source[0],this.videoTextureSource.setFlipY(this.flipY),this.emit(c.VIDEO_TEXTURE,this,D)),this.setSizeToFrame(),this.updateDisplayOrigin()):G.update(),this.isStalled=!1,this.metadata=g;var B=g.mediaTime;H&&(this._lastUpdate=B,this.emit(c.VIDEO_CREATED,this,v,M),this.frameReady||(this.frameReady=!0,this.emit(c.VIDEO_PLAY,this))),this._playingMarker?B>=this._markerOut&&(C.loop?(C.currentTime=this._markerIn,this.emit(c.VIDEO_LOOP,this)):(this.stop(!1),this.emit(c.VIDEO_COMPLETE,this))):B-1&&C>g&&C=0&&!isNaN(C)&&C>g&&(this.markers[N]=[g,C]),this},playMarker:function(N,g){var C=this.markers[N];return C&&this.play(g,C[0],C[1]),this},removeMarker:function(N){return delete this.markers[N],this},snapshot:function(N,g){return N===void 0&&(N=this.width),g===void 0&&(g=this.height),this.snapshotArea(0,0,this.width,this.height,N,g)},snapshotArea:function(N,g,C,v,M,D){N===void 0&&(N=0),g===void 0&&(g=0),C===void 0&&(C=this.width),v===void 0&&(v=this.height),M===void 0&&(M=C),D===void 0&&(D=v);var G=this.video,H=this.snapshotTexture;return H?(H.setSize(M,D),G&&H.context.drawImage(G,N,g,C,v,0,0,M,D)):(H=this.scene.sys.textures.createCanvas(O(),M,D),this.snapshotTexture=H,G&&H.context.drawImage(G,N,g,C,v,0,0,M,D)),H.update()},saveSnapshotTexture:function(N){return this.snapshotTexture?this.scene.sys.textures.renameTexture(this.snapshotTexture.key,N):this.snapshotTexture=this.scene.sys.textures.createCanvas(N,this.width,this.height),this.snapshotTexture},playSuccess:function(){if(this._playCalled){this.addEventHandlers(),this._codePaused=!1,this.touchLocked&&(this.touchLocked=!1,this.emit(c.VIDEO_UNLOCKED,this));var N=this.scene.sys.sound;N&&N.mute&&this.setMute(!0),this._markerIn>-1&&(this.video.currentTime=this._markerIn)}},playError:function(N){var g=N.name;g==="NotAllowedError"?(this.touchLocked=!0,this.playWhenUnlocked=!0,this.failedPlayAttempts=1,this.emit(c.VIDEO_LOCKED,this)):g==="NotSupportedError"?(this.stop(!1),this.emit(c.VIDEO_UNSUPPORTED,this,N)):(this.stop(!1),this.emit(c.VIDEO_ERROR,this,N))},legacyPlayHandler:function(){var N=this.video;N&&(this.playSuccess(),N.removeEventListener("playing",this._callbacks.legacy))},playingHandler:function(){this.isStalled=!1,this.emit(c.VIDEO_PLAYING,this)},loadErrorHandler:function(N){this.stop(!1),this.emit(c.VIDEO_ERROR,this,N)},metadataHandler:function(N){this.emit(c.VIDEO_METADATA,this,N)},setSizeToFrame:function(N){N||(N=this.frame),this.width=N.realWidth,this.height=N.realHeight,this.scaleX!==1&&(this.scaleX=this.displayWidth/this.width),this.scaleY!==1&&(this.scaleY=this.displayHeight/this.height);var g=this.input;return g&&!g.customHitArea&&(g.hitArea.width=this.width,g.hitArea.height=this.height),this},stalledHandler:function(N){this.isStalled=!0,this.emit(c.VIDEO_STALLED,this,N)},completeHandler:function(){this._playCalled=!1,this.emit(c.VIDEO_COMPLETE,this)},preUpdate:function(N,g){var C=this.video;!C||!this._playCalled||this.touchLocked&&this.playWhenUnlocked&&(this.retry+=g,this.retry>=this.retryInterval&&(this.createPlayPromise(!1),this.retry=0))},seekTo:function(N){var g=this.video;if(g){var C=g.duration;if(C!==1/0&&!isNaN(C)){var v=C*N;this.setCurrentTime(v)}}return this},getCurrentTime:function(){return this.video?this.video.currentTime:0},setCurrentTime:function(N){var g=this.video;if(g){if(typeof N=="string"){var C=N[0],v=parseFloat(N.substr(1));C==="+"?N=g.currentTime+v:C==="-"&&(N=g.currentTime-v)}g.currentTime=N}return this},seekingHandler:function(){this.isSeeking=!0,this.emit(c.VIDEO_SEEKING,this)},seekedHandler:function(){this.isSeeking=!1,this.emit(c.VIDEO_SEEKED,this)},getProgress:function(){var N=this.video;if(N){var g=N.duration;if(g!==1/0&&!isNaN(g))return N.currentTime/g}return-1},getDuration:function(){return this.video?this.video.duration:0},setMute:function(N){N===void 0&&(N=!0),this._codeMuted=N;var g=this.video;return g&&(g.muted=this._systemMuted?!0:N),this},isMuted:function(){return this._codeMuted},globalMute:function(N,g){this._systemMuted=g;var C=this.video;C&&(C.muted=this._codeMuted?!0:g)},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(N){N===void 0&&(N=!0);var g=this.video;return this._codePaused=N,g&&!g.ended&&(N?g.paused||(this.removeEventHandlers(),g.pause()):N||(this._playCalled?g.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(N){return N===void 0&&(N=1),this.video&&(this.video.volume=u(N,0,1)),this},getPlaybackRate:function(){return this.video?this.video.playbackRate:1},setPlaybackRate:function(N){return this.video&&(this.video.playbackRate=N),this},getLoop:function(){return this.video?this.video.loop:!1},setLoop:function(N){return N===void 0&&(N=!0),this.video&&(this.video.loop=N),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(N,g){return g===void 0&&(g=!1),this.videoTexture&&(this.scene.sys.textures.renameTexture(this._key,N),this.videoTextureSource.setFlipY(g)),this._key=N,this.flipY=g,!!this.videoTexture},stop:function(N){N===void 0&&(N=!0);var g=this.video;return g&&(this.removeEventHandlers(),g.cancelVideoFrameCallback(this._rfvCallbackId),g.pause()),this.retry=0,this._playCalled=!1,N&&this.emit(c.VIDEO_STOP,this),this},removeVideoElement:function(){var N=this.video;if(N){for(N.parentNode&&N.parentNode.removeChild(N);N.hasChildNodes();)N.removeChild(N.firstChild);N.removeAttribute("autoplay"),N.removeAttribute("src"),this.video=null}},preDestroy:function(){this.stop(!1),this.removeLoadEventHandlers(),this.removeVideoElement();var N=this.scene.sys.game.events;N.off(A.PAUSE,this.globalPause,this),N.off(A.RESUME,this.globalResume,this);var g=this.scene.sys.sound;g&&g.off(S.GLOBAL_MUTE,this.globalMute,this)}});o.exports=p},58352:o=>{/** + */var u=s(45319),T=s(83419),A=s(31401),c=s(51708),d=s(8443),h=s(95643),f=s(36383),S=s(14463),R=s(45650),L=s(10247),p=new T({Extends:h,Mixins:[A.Alpha,A.BlendMode,A.ComputedSize,A.Depth,A.Flip,A.GetBounds,A.Mask,A.Origin,A.Pipeline,A.PostPipeline,A.ScrollFactor,A.TextureCrop,A.Tint,A.Transform,A.Visible,L],initialize:v(function(g,C,P,M){h.call(this,g,"Video"),this.video,this.videoTexture,this.videoTextureSource,this.snapshotTexture,this.flipY=!1,this._key=R(),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._metadataCallbackHandler=this.metadataHandler.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 D=g.sys.game;this._device=D.device.video,this.setPosition(C,P),this.setSize(256,256),this.initPipeline(),this.initPostPipeline(!0),D.events.on(d.PAUSE,this.globalPause,this),D.events.on(d.RESUME,this.globalResume,this);var G=g.sys.sound;G&&G.on(S.GLOBAL_MUTE,this.globalMute,this),M&&this.load(M)},"Video"),addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},load:function(N){var g=this.scene.sys.cache.video.get(N);return g?(this.cacheKey=N,this.loadHandler(g.url,g.noAudio,g.crossOrigin)):console.warn("No video in cache for key: "+N),this},changeSource:function(N,g,C,P,M){g===void 0&&(g=!0),C===void 0&&(C=!1),this.cacheKey!==N&&(this.load(N),g&&this.play(C,P,M))},getVideoKey:function(){return this.cacheKey},loadURL:function(N,g,C){g===void 0&&(g=!1);var P=this._device.getVideoURL(N);return P?(this.cacheKey="",this.loadHandler(P.url,g,C)):console.warn("No supported video format found for "+N),this},loadMediaStream:function(N,g,C){return this.loadHandler(null,g,C,N)},loadHandler:function(N,g,C,P){g||(g=!1);var M=this.video;if(M?(this.removeLoadEventHandlers(),this.stop()):(M=document.createElement("video"),M.controls=!1,M.setAttribute("playsinline","playsinline"),M.setAttribute("preload","auto"),M.setAttribute("disablePictureInPicture","true")),g?(M.muted=!0,M.defaultMuted=!0,M.setAttribute("autoplay","autoplay")):(M.muted=!1,M.defaultMuted=!1,M.removeAttribute("autoplay")),C?M.setAttribute("crossorigin",C):M.removeAttribute("crossorigin"),P)if("srcObject"in M)try{M.srcObject=P}catch(G){if(G.name!=="TypeError")throw G;M.src=URL.createObjectURL(P)}else M.src=URL.createObjectURL(P);else M.src=N;this.retry=0,this.video=M,this._playCalled=!1,M.load(),this.addLoadEventHandlers();var D=this.scene.sys.textures.get(this._key);return this.setTexture(D),this},requestVideoFrame:function(N,g){var C=this.video;if(C){var P=g.width,M=g.height,D=this.videoTexture,G=this.videoTextureSource,H=!D||G.source!==C;H?(this._codePaused=C.paused,this._codeMuted=C.muted,D?(G.source=C,G.width=P,G.height=M,D.get().setSize(P,M)):(D=this.scene.sys.textures.create(this._key,C,P,M),D.add("__BASE",0,0,0,P,M),this.setTexture(D),this.videoTexture=D,this.videoTextureSource=D.source[0],this.videoTextureSource.setFlipY(this.flipY),this.emit(c.VIDEO_TEXTURE,this,D)),this.setSizeToFrame(),this.updateDisplayOrigin()):G.update(),this.isStalled=!1,this.metadata=g;var B=g.mediaTime;H&&(this._lastUpdate=B,this.emit(c.VIDEO_CREATED,this,P,M),this.frameReady||(this.frameReady=!0,this.emit(c.VIDEO_PLAY,this))),this._playingMarker?B>=this._markerOut&&(C.loop?(C.currentTime=this._markerIn,this.emit(c.VIDEO_LOOP,this)):(this.stop(!1),this.emit(c.VIDEO_COMPLETE,this))):B-1&&C>g&&C=0&&!isNaN(C)&&C>g&&(this.markers[N]=[g,C]),this},playMarker:function(N,g){var C=this.markers[N];return C&&this.play(g,C[0],C[1]),this},removeMarker:function(N){return delete this.markers[N],this},snapshot:function(N,g){return N===void 0&&(N=this.width),g===void 0&&(g=this.height),this.snapshotArea(0,0,this.width,this.height,N,g)},snapshotArea:function(N,g,C,P,M,D){N===void 0&&(N=0),g===void 0&&(g=0),C===void 0&&(C=this.width),P===void 0&&(P=this.height),M===void 0&&(M=C),D===void 0&&(D=P);var G=this.video,H=this.snapshotTexture;return H?(H.setSize(M,D),G&&H.context.drawImage(G,N,g,C,P,0,0,M,D)):(H=this.scene.sys.textures.createCanvas(R(),M,D),this.snapshotTexture=H,G&&H.context.drawImage(G,N,g,C,P,0,0,M,D)),H.update()},saveSnapshotTexture:function(N){return this.snapshotTexture?this.scene.sys.textures.renameTexture(this.snapshotTexture.key,N):this.snapshotTexture=this.scene.sys.textures.createCanvas(N,this.width,this.height),this.snapshotTexture},playSuccess:function(){if(this._playCalled){this.addEventHandlers(),this._codePaused=!1,this.touchLocked&&(this.touchLocked=!1,this.emit(c.VIDEO_UNLOCKED,this));var N=this.scene.sys.sound;N&&N.mute&&this.setMute(!0),this._markerIn>-1&&(this.video.currentTime=this._markerIn)}},playError:function(N){var g=N.name;g==="NotAllowedError"?(this.touchLocked=!0,this.playWhenUnlocked=!0,this.failedPlayAttempts=1,this.emit(c.VIDEO_LOCKED,this)):g==="NotSupportedError"?(this.stop(!1),this.emit(c.VIDEO_UNSUPPORTED,this,N)):(this.stop(!1),this.emit(c.VIDEO_ERROR,this,N))},legacyPlayHandler:function(){var N=this.video;N&&(this.playSuccess(),N.removeEventListener("playing",this._callbacks.legacy))},playingHandler:function(){this.isStalled=!1,this.emit(c.VIDEO_PLAYING,this)},loadErrorHandler:function(N){this.stop(!1),this.emit(c.VIDEO_ERROR,this,N)},metadataHandler:function(N){this.emit(c.VIDEO_METADATA,this,N)},setSizeToFrame:function(N){N||(N=this.frame),this.width=N.realWidth,this.height=N.realHeight,this.scaleX!==1&&(this.scaleX=this.displayWidth/this.width),this.scaleY!==1&&(this.scaleY=this.displayHeight/this.height);var g=this.input;return g&&!g.customHitArea&&(g.hitArea.width=this.width,g.hitArea.height=this.height),this},stalledHandler:function(N){this.isStalled=!0,this.emit(c.VIDEO_STALLED,this,N)},completeHandler:function(){this._playCalled=!1,this.emit(c.VIDEO_COMPLETE,this)},preUpdate:function(N,g){var C=this.video;!C||!this._playCalled||this.touchLocked&&this.playWhenUnlocked&&(this.retry+=g,this.retry>=this.retryInterval&&(this.createPlayPromise(!1),this.retry=0))},seekTo:function(N){var g=this.video;if(g){var C=g.duration;if(C!==1/0&&!isNaN(C)){var P=C*N;this.setCurrentTime(P)}}return this},getCurrentTime:function(){return this.video?this.video.currentTime:0},setCurrentTime:function(N){var g=this.video;if(g){if(typeof N=="string"){var C=N[0],P=parseFloat(N.substr(1));C==="+"?N=g.currentTime+P:C==="-"&&(N=g.currentTime-P)}g.currentTime=N}return this},seekingHandler:function(){this.isSeeking=!0,this.emit(c.VIDEO_SEEKING,this)},seekedHandler:function(){this.isSeeking=!1,this.emit(c.VIDEO_SEEKED,this)},getProgress:function(){var N=this.video;if(N){var g=N.duration;if(g!==1/0&&!isNaN(g))return N.currentTime/g}return-1},getDuration:function(){return this.video?this.video.duration:0},setMute:function(N){N===void 0&&(N=!0),this._codeMuted=N;var g=this.video;return g&&(g.muted=this._systemMuted?!0:N),this},isMuted:function(){return this._codeMuted},globalMute:function(N,g){this._systemMuted=g;var C=this.video;C&&(C.muted=this._codeMuted?!0:g)},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(N){N===void 0&&(N=!0);var g=this.video;return this._codePaused=N,g&&!g.ended&&(N?g.paused||(this.removeEventHandlers(),g.pause()):N||(this._playCalled?g.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(N){return N===void 0&&(N=1),this.video&&(this.video.volume=u(N,0,1)),this},getPlaybackRate:function(){return this.video?this.video.playbackRate:1},setPlaybackRate:function(N){return this.video&&(this.video.playbackRate=N),this},getLoop:function(){return this.video?this.video.loop:!1},setLoop:function(N){return N===void 0&&(N=!0),this.video&&(this.video.loop=N),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(N,g){return g===void 0&&(g=!1),this.videoTexture&&(this.scene.sys.textures.renameTexture(this._key,N),this.videoTextureSource.setFlipY(g)),this._key=N,this.flipY=g,!!this.videoTexture},stop:function(N){N===void 0&&(N=!0);var g=this.video;return g&&(this.removeEventHandlers(),g.cancelVideoFrameCallback(this._rfvCallbackId),g.pause()),this.retry=0,this._playCalled=!1,N&&this.emit(c.VIDEO_STOP,this),this},removeVideoElement:function(){var N=this.video;if(N){for(N.parentNode&&N.parentNode.removeChild(N);N.hasChildNodes();)N.removeChild(N.firstChild);N.removeAttribute("autoplay"),N.removeAttribute("src"),this.video=null}},preDestroy:function(){this.stop(!1),this.removeLoadEventHandlers(),this.removeVideoElement();var N=this.scene.sys.game.events;N.off(d.PAUSE,this.globalPause,this),N.off(d.RESUME,this.globalResume,this);var g=this.scene.sys.sound;g&&g.off(S.GLOBAL_MUTE,this.globalMute,this)}});o.exports=p},58352:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){u.videoTexture&&(T.addToRenderList(u),s.batchSprite(u,u.frame,T,d))},"VideoCanvasRenderer");o.exports=m},11511:(o,m,s)=>{/** + */var O=v(function(s,u,T,A){u.videoTexture&&(T.addToRenderList(u),s.batchSprite(u,u.frame,T,A))},"VideoCanvasRenderer");o.exports=O},11511:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(25305),T=s(44603),d=s(23568),c=s(18471);T.register("video",function(A,h){A===void 0&&(A={});var f=d(A,"key",null),S=new c(this.scene,0,0,f);return h!==void 0&&(A.add=h),u(this.scene,S,A),S})},89025:(o,m,s)=>{/** + */var u=s(25305),T=s(44603),A=s(23568),c=s(18471);T.register("video",function(d,h){d===void 0&&(d={});var f=A(d,"key",null),S=new c(this.scene,0,0,f);return h!==void 0&&(d.add=h),u(this.scene,S,d),S})},89025:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(18471),T=s(39429);T.register("video",function(d,c,A){return this.displayList.add(new u(this.scene,d,c,A))})},10247:(o,m,s)=>{/** + */var u=s(18471),T=s(39429);T.register("video",function(A,c,d){return this.displayList.add(new u(this.scene,A,c,d))})},10247:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(29849),d=s(58352),o.exports={renderWebGL:T,renderCanvas:d}},29849:o=>{/** + */var u=s(29747),T=u,A=u;T=s(29849),A=s(58352),o.exports={renderWebGL:T,renderCanvas:A}},29849:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){u.videoTexture&&(T.addToRenderList(u),u.pipeline.batchSprite(u,T,d))},"VideoWebGLRenderer");o.exports=m},41481:(o,m,s)=>{/** + */var O=v(function(s,u,T,A){u.videoTexture&&(T.addToRenderList(u),u.pipeline.batchSprite(u,T,A))},"VideoWebGLRenderer");o.exports=O},41481:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(10312),T=s(96503),d=s(87902),c=s(83419),A=s(31401),h=s(95643),f=s(87841),S=s(37303),O=new c({Extends:h,Mixins:[A.Depth,A.GetBounds,A.Origin,A.Transform,A.ScrollFactor,A.Visible],initialize:P(function(p,N,g,C,v){C===void 0&&(C=1),v===void 0&&(v=C),h.call(this,p,"Zone"),this.setPosition(N,g),this.width=C,this.height=v,this.blendMode=u.NORMAL,this.updateDisplayOrigin()},"Zone"),displayWidth:{get:function(){return this.scaleX*this.width},set:function(L){this.scaleX=L/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(L){this.scaleY=L/this.height}},setSize:function(L,p,N){N===void 0&&(N=!0),this.width=L,this.height=p,this.updateDisplayOrigin();var g=this.input;return N&&g&&!g.customHitArea&&(g.hitArea.width=L,g.hitArea.height=p),this},setDisplaySize:function(L,p){return this.displayWidth=L,this.displayHeight=p,this},setCircleDropZone:function(L){return this.setDropZone(new T(0,0,L),d)},setRectangleDropZone:function(L,p){return this.setDropZone(new f(0,0,L,p),S)},setDropZone:function(L,p){return this.input||this.setInteractive(L,p,!0),this},setAlpha:function(){},setBlendMode:function(){},renderCanvas:function(L,p,N){N.addToRenderList(p)},renderWebGL:function(L,p,N){N.addToRenderList(p)}});o.exports=O},95261:(o,m,s)=>{/** + */var u=s(10312),T=s(96503),A=s(87902),c=s(83419),d=s(31401),h=s(95643),f=s(87841),S=s(37303),R=new c({Extends:h,Mixins:[d.Depth,d.GetBounds,d.Origin,d.Transform,d.ScrollFactor,d.Visible],initialize:v(function(p,N,g,C,P){C===void 0&&(C=1),P===void 0&&(P=C),h.call(this,p,"Zone"),this.setPosition(N,g),this.width=C,this.height=P,this.blendMode=u.NORMAL,this.updateDisplayOrigin()},"Zone"),displayWidth:{get:function(){return this.scaleX*this.width},set:function(L){this.scaleX=L/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(L){this.scaleY=L/this.height}},setSize:function(L,p,N){N===void 0&&(N=!0),this.width=L,this.height=p,this.updateDisplayOrigin();var g=this.input;return N&&g&&!g.customHitArea&&(g.hitArea.width=L,g.hitArea.height=p),this},setDisplaySize:function(L,p){return this.displayWidth=L,this.displayHeight=p,this},setCircleDropZone:function(L){return this.setDropZone(new T(0,0,L),A)},setRectangleDropZone:function(L,p){return this.setDropZone(new f(0,0,L,p),S)},setDropZone:function(L,p){return this.input||this.setInteractive(L,p,!0),this},setAlpha:function(){},setBlendMode:function(){},renderCanvas:function(L,p,N){N.addToRenderList(p)},renderWebGL:function(L,p,N){N.addToRenderList(p)}});o.exports=R},95261:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(44603),T=s(23568),d=s(41481);u.register("zone",function(c){var A=T(c,"x",0),h=T(c,"y",0),f=T(c,"width",1),S=T(c,"height",f);return new d(this.scene,A,h,f,S)})},84175:(o,m,s)=>{/** + */var u=s(44603),T=s(23568),A=s(41481);u.register("zone",function(c){var d=T(c,"x",0),h=T(c,"y",0),f=T(c,"width",1),S=T(c,"height",f);return new A(this.scene,d,h,f,S)})},84175:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(41481),T=s(39429);T.register("zone",function(d,c,A,h){return this.displayList.add(new u(this.scene,d,c,A,h))})},95166:o=>{/** + */var u=s(41481),T=s(39429);T.register("zone",function(A,c,d,h){return this.displayList.add(new u(this.scene,A,c,d,h))})},95166:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s.radius>0?Math.PI*s.radius*s.radius:0},"Area");o.exports=m},96503:(o,m,s)=>{/** + */var O=v(function(s){return s.radius>0?Math.PI*s.radius*s.radius:0},"Area");o.exports=O},96503:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(87902),d=s(26241),c=s(79124),A=s(23777),h=s(28176),f=new u({initialize:P(function(O,L,p){O===void 0&&(O=0),L===void 0&&(L=0),p===void 0&&(p=0),this.type=A.CIRCLE,this.x=O,this.y=L,this._radius=p,this._diameter=p*2},"Circle"),contains:function(S,O){return T(this,S,O)},getPoint:function(S,O){return d(this,S,O)},getPoints:function(S,O,L){return c(this,S,O,L)},getRandomPoint:function(S){return h(this,S)},setTo:function(S,O,L){return this.x=S,this.y=O,this._radius=L,this._diameter=L*2,this},setEmpty:function(){return this._radius=0,this._diameter=0,this},setPosition:function(S,O){return O===void 0&&(O=S),this.x=S,this.y=O,this},isEmpty:function(){return this._radius<=0},radius:{get:function(){return this._radius},set:function(S){this._radius=S,this._diameter=S*2}},diameter:{get:function(){return this._diameter},set:function(S){this._diameter=S,this._radius=S*.5}},left:{get:function(){return this.x-this._radius},set:function(S){this.x=S+this._radius}},right:{get:function(){return this.x+this._radius},set:function(S){this.x=S-this._radius}},top:{get:function(){return this.y-this._radius},set:function(S){this.y=S+this._radius}},bottom:{get:function(){return this.y+this._radius},set:function(S){this.y=S-this._radius}}});o.exports=f},71562:o=>{/** + */var u=s(83419),T=s(87902),A=s(26241),c=s(79124),d=s(23777),h=s(28176),f=new u({initialize:v(function(R,L,p){R===void 0&&(R=0),L===void 0&&(L=0),p===void 0&&(p=0),this.type=d.CIRCLE,this.x=R,this.y=L,this._radius=p,this._diameter=p*2},"Circle"),contains:function(S,R){return T(this,S,R)},getPoint:function(S,R){return A(this,S,R)},getPoints:function(S,R,L){return c(this,S,R,L)},getRandomPoint:function(S){return h(this,S)},setTo:function(S,R,L){return this.x=S,this.y=R,this._radius=L,this._diameter=L*2,this},setEmpty:function(){return this._radius=0,this._diameter=0,this},setPosition:function(S,R){return R===void 0&&(R=S),this.x=S,this.y=R,this},isEmpty:function(){return this._radius<=0},radius:{get:function(){return this._radius},set:function(S){this._radius=S,this._diameter=S*2}},diameter:{get:function(){return this._diameter},set:function(S){this._diameter=S,this._radius=S*.5}},left:{get:function(){return this.x-this._radius},set:function(S){this.x=S+this._radius}},right:{get:function(){return this.x+this._radius},set:function(S){this.x=S-this._radius}},top:{get:function(){return this.y-this._radius},set:function(S){this.y=S+this._radius}},bottom:{get:function(){return this.y+this._radius},set:function(S){this.y=S-this._radius}}});o.exports=f},71562:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return 2*(Math.PI*s.radius)},"Circumference");o.exports=m},92110:(o,m,s)=>{/** + */var O=v(function(s){return 2*(Math.PI*s.radius)},"Circumference");o.exports=O},92110:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=P(function(d,c,A){return A===void 0&&(A=new u),A.x=d.x+d.radius*Math.cos(c),A.y=d.y+d.radius*Math.sin(c),A},"CircumferencePoint");o.exports=T},42250:(o,m,s)=>{/** + */var u=s(2141),T=v(function(A,c,d){return d===void 0&&(d=new u),d.x=A.x+A.radius*Math.cos(c),d.y=A.y+A.radius*Math.sin(c),d},"CircumferencePoint");o.exports=T},42250:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(96503),T=P(function(d){return new u(d.x,d.y,d.radius)},"Clone");o.exports=T},87902:o=>{/** + */var u=s(96503),T=v(function(A){return new u(A.x,A.y,A.radius)},"Clone");o.exports=T},87902:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){if(s.radius>0&&u>=s.left&&u<=s.right&&T>=s.top&&T<=s.bottom){var d=(s.x-u)*(s.x-u),c=(s.y-T)*(s.y-T);return d+c<=s.radius*s.radius}else return!1},"Contains");o.exports=m},5698:(o,m,s)=>{/** + */var O=v(function(s,u,T){if(s.radius>0&&u>=s.left&&u<=s.right&&T>=s.top&&T<=s.bottom){var A=(s.x-u)*(s.x-u),c=(s.y-T)*(s.y-T);return A+c<=s.radius*s.radius}else return!1},"Contains");o.exports=O},5698:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(87902),T=P(function(d,c){return u(d,c.x,c.y)},"ContainsPoint");o.exports=T},70588:(o,m,s)=>{/** + */var u=s(87902),T=v(function(A,c){return u(A,c.x,c.y)},"ContainsPoint");o.exports=T},70588:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(87902),T=P(function(d,c){return u(d,c.x,c.y)&&u(d,c.right,c.y)&&u(d,c.x,c.bottom)&&u(d,c.right,c.bottom)},"ContainsRect");o.exports=T},26394:o=>{/** + */var u=s(87902),T=v(function(A,c){return u(A,c.x,c.y)&&u(A,c.right,c.y)&&u(A,c.x,c.bottom)&&u(A,c.right,c.bottom)},"ContainsRect");o.exports=T},26394:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return u.setTo(s.x,s.y,s.radius)},"CopyFrom");o.exports=m},76278:o=>{/** + */var O=v(function(s,u){return u.setTo(s.x,s.y,s.radius)},"CopyFrom");o.exports=O},76278:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return s.x===u.x&&s.y===u.y&&s.radius===u.radius},"Equals");o.exports=m},2074:(o,m,s)=>{/** + */var O=v(function(s,u){return s.x===u.x&&s.y===u.y&&s.radius===u.radius},"Equals");o.exports=O},2074:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(87841),T=P(function(d,c){return c===void 0&&(c=new u),c.x=d.left,c.y=d.top,c.width=d.diameter,c.height=d.diameter,c},"GetBounds");o.exports=T},26241:(o,m,s)=>{/** + */var u=s(87841),T=v(function(A,c){return c===void 0&&(c=new u),c.x=A.left,c.y=A.top,c.width=A.diameter,c.height=A.diameter,c},"GetBounds");o.exports=T},26241:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(92110),T=s(62945),d=s(36383),c=s(2141),A=P(function(h,f,S){S===void 0&&(S=new c);var O=T(f,0,d.PI2);return u(h,O,S)},"GetPoint");o.exports=A},79124:(o,m,s)=>{/** + */var u=s(92110),T=s(62945),A=s(36383),c=s(2141),d=v(function(h,f,S){S===void 0&&(S=new c);var R=T(f,0,A.PI2);return u(h,R,S)},"GetPoint");o.exports=d},79124:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(71562),T=s(92110),d=s(62945),c=s(36383),A=P(function(h,f,S,O){O===void 0&&(O=[]),!f&&S>0&&(f=u(h)/S);for(var L=0;L{/** + */var u=s(71562),T=s(92110),A=s(62945),c=s(36383),d=v(function(h,f,S,R){R===void 0&&(R=[]),!f&&S>0&&(f=u(h)/S);for(var L=0;L{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){return s.x+=u,s.y+=T,s},"Offset");o.exports=m},39212:o=>{/** + */var O=v(function(s,u,T){return s.x+=u,s.y+=T,s},"Offset");o.exports=O},39212:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return s.x+=u.x,s.y+=u.y,s},"OffsetPoint");o.exports=m},28176:(o,m,s)=>{/** + */var O=v(function(s,u){return s.x+=u.x,s.y+=u.y,s},"OffsetPoint");o.exports=O},28176:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=P(function(d,c){c===void 0&&(c=new u);var A=2*Math.PI*Math.random(),h=Math.random()+Math.random(),f=h>1?2-h:h,S=f*Math.cos(A),O=f*Math.sin(A);return c.x=d.x+S*d.radius,c.y=d.y+O*d.radius,c},"Random");o.exports=T},88911:(o,m,s)=>{/** + */var u=s(2141),T=v(function(A,c){c===void 0&&(c=new u);var d=2*Math.PI*Math.random(),h=Math.random()+Math.random(),f=h>1?2-h:h,S=f*Math.cos(d),R=f*Math.sin(d);return c.x=A.x+S*A.radius,c.y=A.y+R*A.radius,c},"Random");o.exports=T},88911:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2269,197 +2269,197 @@ var dne=Object.defineProperty;var P=(n,t)=>dne(n,"name",{value:t,configurable:!0 * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={CIRCLE:0,ELLIPSE:1,LINE:2,POINT:3,POLYGON:4,RECTANGLE:5,TRIANGLE:6};o.exports=m},78874:o=>{/** + */var O={CIRCLE:0,ELLIPSE:1,LINE:2,POINT:3,POLYGON:4,RECTANGLE:5,TRIANGLE:6};o.exports=O},78874:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s.isEmpty()?0:s.getMajorRadius()*s.getMinorRadius()*Math.PI},"Area");o.exports=m},92990:o=>{/** + */var O=v(function(s){return s.isEmpty()?0:s.getMajorRadius()*s.getMinorRadius()*Math.PI},"Area");o.exports=O},92990:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){var u=s.width/2,T=s.height/2,d=Math.pow(u-T,2)/Math.pow(u+T,2);return Math.PI*(u+T)*(1+3*d/(10+Math.sqrt(4-3*d)))},"Circumference");o.exports=m},79522:(o,m,s)=>{/** + */var O=v(function(s){var u=s.width/2,T=s.height/2,A=Math.pow(u-T,2)/Math.pow(u+T,2);return Math.PI*(u+T)*(1+3*A/(10+Math.sqrt(4-3*A)))},"Circumference");o.exports=O},79522:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=P(function(d,c,A){A===void 0&&(A=new u);var h=d.width/2,f=d.height/2;return A.x=d.x+h*Math.cos(c),A.y=d.y+f*Math.sin(c),A},"CircumferencePoint");o.exports=T},58102:(o,m,s)=>{/** + */var u=s(2141),T=v(function(A,c,d){d===void 0&&(d=new u);var h=A.width/2,f=A.height/2;return d.x=A.x+h*Math.cos(c),d.y=A.y+f*Math.sin(c),d},"CircumferencePoint");o.exports=T},58102:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(8497),T=P(function(d){return new u(d.x,d.y,d.width,d.height)},"Clone");o.exports=T},81154:o=>{/** + */var u=s(8497),T=v(function(A){return new u(A.x,A.y,A.width,A.height)},"Clone");o.exports=T},81154:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){if(s.width<=0||s.height<=0)return!1;var d=(u-s.x)/s.width,c=(T-s.y)/s.height;return d*=d,c*=c,d+c<.25},"Contains");o.exports=m},46662:(o,m,s)=>{/** + */var O=v(function(s,u,T){if(s.width<=0||s.height<=0)return!1;var A=(u-s.x)/s.width,c=(T-s.y)/s.height;return A*=A,c*=c,A+c<.25},"Contains");o.exports=O},46662:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(81154),T=P(function(d,c){return u(d,c.x,c.y)},"ContainsPoint");o.exports=T},1632:(o,m,s)=>{/** + */var u=s(81154),T=v(function(A,c){return u(A,c.x,c.y)},"ContainsPoint");o.exports=T},1632:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(81154),T=P(function(d,c){return u(d,c.x,c.y)&&u(d,c.right,c.y)&&u(d,c.x,c.bottom)&&u(d,c.right,c.bottom)},"ContainsRect");o.exports=T},65534:o=>{/** + */var u=s(81154),T=v(function(A,c){return u(A,c.x,c.y)&&u(A,c.right,c.y)&&u(A,c.x,c.bottom)&&u(A,c.right,c.bottom)},"ContainsRect");o.exports=T},65534:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return u.setTo(s.x,s.y,s.width,s.height)},"CopyFrom");o.exports=m},8497:(o,m,s)=>{/** + */var O=v(function(s,u){return u.setTo(s.x,s.y,s.width,s.height)},"CopyFrom");o.exports=O},8497:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(81154),d=s(90549),c=s(48320),A=s(23777),h=s(24820),f=new u({initialize:P(function(O,L,p,N){O===void 0&&(O=0),L===void 0&&(L=0),p===void 0&&(p=0),N===void 0&&(N=0),this.type=A.ELLIPSE,this.x=O,this.y=L,this.width=p,this.height=N},"Ellipse"),contains:function(S,O){return T(this,S,O)},getPoint:function(S,O){return d(this,S,O)},getPoints:function(S,O,L){return c(this,S,O,L)},getRandomPoint:function(S){return h(this,S)},setTo:function(S,O,L,p){return this.x=S,this.y=O,this.width=L,this.height=p,this},setEmpty:function(){return this.width=0,this.height=0,this},setPosition:function(S,O){return O===void 0&&(O=S),this.x=S,this.y=O,this},setSize:function(S,O){return O===void 0&&(O=S),this.width=S,this.height=O,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(S){this.x=S+this.width/2}},right:{get:function(){return this.x+this.width/2},set:function(S){this.x=S-this.width/2}},top:{get:function(){return this.y-this.height/2},set:function(S){this.y=S+this.height/2}},bottom:{get:function(){return this.y+this.height/2},set:function(S){this.y=S-this.height/2}}});o.exports=f},36146:o=>{/** + */var u=s(83419),T=s(81154),A=s(90549),c=s(48320),d=s(23777),h=s(24820),f=new u({initialize:v(function(R,L,p,N){R===void 0&&(R=0),L===void 0&&(L=0),p===void 0&&(p=0),N===void 0&&(N=0),this.type=d.ELLIPSE,this.x=R,this.y=L,this.width=p,this.height=N},"Ellipse"),contains:function(S,R){return T(this,S,R)},getPoint:function(S,R){return A(this,S,R)},getPoints:function(S,R,L){return c(this,S,R,L)},getRandomPoint:function(S){return h(this,S)},setTo:function(S,R,L,p){return this.x=S,this.y=R,this.width=L,this.height=p,this},setEmpty:function(){return this.width=0,this.height=0,this},setPosition:function(S,R){return R===void 0&&(R=S),this.x=S,this.y=R,this},setSize:function(S,R){return R===void 0&&(R=S),this.width=S,this.height=R,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(S){this.x=S+this.width/2}},right:{get:function(){return this.x+this.width/2},set:function(S){this.x=S-this.width/2}},top:{get:function(){return this.y-this.height/2},set:function(S){this.y=S+this.height/2}},bottom:{get:function(){return this.y+this.height/2},set:function(S){this.y=S-this.height/2}}});o.exports=f},36146:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return s.x===u.x&&s.y===u.y&&s.width===u.width&&s.height===u.height},"Equals");o.exports=m},23694:(o,m,s)=>{/** + */var O=v(function(s,u){return s.x===u.x&&s.y===u.y&&s.width===u.width&&s.height===u.height},"Equals");o.exports=O},23694:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(87841),T=P(function(d,c){return c===void 0&&(c=new u),c.x=d.left,c.y=d.top,c.width=d.width,c.height=d.height,c},"GetBounds");o.exports=T},90549:(o,m,s)=>{/** + */var u=s(87841),T=v(function(A,c){return c===void 0&&(c=new u),c.x=A.left,c.y=A.top,c.width=A.width,c.height=A.height,c},"GetBounds");o.exports=T},90549:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(79522),T=s(62945),d=s(36383),c=s(2141),A=P(function(h,f,S){S===void 0&&(S=new c);var O=T(f,0,d.PI2);return u(h,O,S)},"GetPoint");o.exports=A},48320:(o,m,s)=>{/** + */var u=s(79522),T=s(62945),A=s(36383),c=s(2141),d=v(function(h,f,S){S===void 0&&(S=new c);var R=T(f,0,A.PI2);return u(h,R,S)},"GetPoint");o.exports=d},48320:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(92990),T=s(79522),d=s(62945),c=s(36383),A=P(function(h,f,S,O){O===void 0&&(O=[]),!f&&S>0&&(f=u(h)/S);for(var L=0;L{/** + */var u=s(92990),T=s(79522),A=s(62945),c=s(36383),d=v(function(h,f,S,R){R===void 0&&(R=[]),!f&&S>0&&(f=u(h)/S);for(var L=0;L{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){return s.x+=u,s.y+=T,s},"Offset");o.exports=m},44808:o=>{/** + */var O=v(function(s,u,T){return s.x+=u,s.y+=T,s},"Offset");o.exports=O},44808:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return s.x+=u.x,s.y+=u.y,s},"OffsetPoint");o.exports=m},24820:(o,m,s)=>{/** + */var O=v(function(s,u){return s.x+=u.x,s.y+=u.y,s},"OffsetPoint");o.exports=O},24820:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=P(function(d,c){c===void 0&&(c=new u);var A=Math.random()*Math.PI*2,h=Math.sqrt(Math.random());return c.x=d.x+h*Math.cos(A)*d.width/2,c.y=d.y+h*Math.sin(A)*d.height/2,c},"Random");o.exports=T},49203:(o,m,s)=>{/** + */var u=s(2141),T=v(function(A,c){c===void 0&&(c=new u);var d=Math.random()*Math.PI*2,h=Math.sqrt(Math.random());return c.x=A.x+h*Math.cos(d)*A.width/2,c.y=A.y+h*Math.sin(d)*A.height/2,c},"Random");o.exports=T},49203:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(8497);u.Area=s(78874),u.Circumference=s(92990),u.CircumferencePoint=s(79522),u.Clone=s(58102),u.Contains=s(81154),u.ContainsPoint=s(46662),u.ContainsRect=s(1632),u.CopyFrom=s(65534),u.Equals=s(36146),u.GetBounds=s(23694),u.GetPoint=s(90549),u.GetPoints=s(48320),u.Offset=s(73424),u.OffsetPoint=s(44808),u.Random=s(24820),o.exports=u},55738:(o,m,s)=>{/** + */var u=s(8497);u.Area=s(78874),u.Circumference=s(92990),u.CircumferencePoint=s(79522),u.Clone=s(58102),u.Contains=s(81154),u.ContainsPoint=s(46662),u.ContainsRect=s(1632),u.CopyFrom=s(65534),u.Equals=s(36146),u.GetBounds=s(23694),u.GetPoint=s(90549),u.GetPoints=s(48320),u.Offset=s(73424),u.OffsetPoint=s(44808),u.Random=s(24820),o.exports=u},55738:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(23777),T=s(79291),d={Circle:s(88911),Ellipse:s(49203),Intersects:s(91865),Line:s(2529),Mesh:s(73090),Point:s(43711),Polygon:s(58423),Rectangle:s(93232),Triangle:s(84435)};d=T(!1,d,u),o.exports=d},2044:(o,m,s)=>{/** + */var u=s(23777),T=s(79291),A={Circle:s(88911),Ellipse:s(49203),Intersects:s(91865),Line:s(2529),Mesh:s(73090),Point:s(43711),Polygon:s(58423),Rectangle:s(93232),Triangle:s(84435)};A=T(!1,A,u),o.exports=A},2044:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(20339),T=P(function(d,c){return u(d.x,d.y,c.x,c.y)<=d.radius+c.radius},"CircleToCircle");o.exports=T},81491:o=>{/** + */var u=s(20339),T=v(function(A,c){return u(A.x,A.y,c.x,c.y)<=A.radius+c.radius},"CircleToCircle");o.exports=T},81491:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){var T=u.width/2,d=u.height/2,c=Math.abs(s.x-u.x-T),A=Math.abs(s.y-u.y-d),h=T+s.radius,f=d+s.radius;if(c>h||A>f)return!1;if(c<=T||A<=d)return!0;var S=c-T,O=A-d,L=S*S,p=O*O,N=s.radius*s.radius;return L+p<=N},"CircleToRectangle");o.exports=m},63376:(o,m,s)=>{/** + */var O=v(function(s,u){var T=u.width/2,A=u.height/2,c=Math.abs(s.x-u.x-T),d=Math.abs(s.y-u.y-A),h=T+s.radius,f=A+s.radius;if(c>h||d>f)return!1;if(c<=T||d<=A)return!0;var S=c-T,R=d-A,L=S*S,p=R*R,N=s.radius*s.radius;return L+p<=N},"CircleToRectangle");o.exports=O},63376:(o,O,s)=>{/** * @author Florian Vazelle * @author Geoffrey Glaive * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=s(2044),d=P(function(c,A,h){if(h===void 0&&(h=[]),T(c,A)){var f=c.x,S=c.y,O=c.radius,L=A.x,p=A.y,N=A.radius,g,C,v,M,D;if(S===p)D=(N*N-O*O-L*L+f*f)/(2*(f-L)),g=1,C=-2*p,v=L*L+D*D-2*L*D+p*p-N*N,M=C*C-4*g*v,M===0?h.push(new u(D,-C/(2*g))):M>0&&(h.push(new u(D,(-C+Math.sqrt(M))/(2*g))),h.push(new u(D,(-C-Math.sqrt(M))/(2*g))));else{var G=(f-L)/(S-p),H=(N*N-O*O-L*L+f*f-p*p+S*S)/(2*(S-p));g=G*G+1,C=2*S*G-2*H*G-2*f,v=f*f+S*S+H*H-O*O-2*S*H,M=C*C-4*g*v,M===0?(D=-C/(2*g),h.push(new u(D,H-D*G))):M>0&&(D=(-C+Math.sqrt(M))/(2*g),h.push(new u(D,H-D*G)),D=(-C-Math.sqrt(M))/(2*g),h.push(new u(D,H-D*G)))}}return h},"GetCircleToCircle");o.exports=d},97439:(o,m,s)=>{/** + */var u=s(2141),T=s(2044),A=v(function(c,d,h){if(h===void 0&&(h=[]),T(c,d)){var f=c.x,S=c.y,R=c.radius,L=d.x,p=d.y,N=d.radius,g,C,P,M,D;if(S===p)D=(N*N-R*R-L*L+f*f)/(2*(f-L)),g=1,C=-2*p,P=L*L+D*D-2*L*D+p*p-N*N,M=C*C-4*g*P,M===0?h.push(new u(D,-C/(2*g))):M>0&&(h.push(new u(D,(-C+Math.sqrt(M))/(2*g))),h.push(new u(D,(-C-Math.sqrt(M))/(2*g))));else{var G=(f-L)/(S-p),H=(N*N-R*R-L*L+f*f-p*p+S*S)/(2*(S-p));g=G*G+1,C=2*S*G-2*H*G-2*f,P=f*f+S*S+H*H-R*R-2*S*H,M=C*C-4*g*P,M===0?(D=-C/(2*g),h.push(new u(D,H-D*G))):M>0&&(D=(-C+Math.sqrt(M))/(2*g),h.push(new u(D,H-D*G)),D=(-C-Math.sqrt(M))/(2*g),h.push(new u(D,H-D*G)))}}return h},"GetCircleToCircle");o.exports=A},97439:(o,O,s)=>{/** * @author Florian Vazelle * @author Geoffrey Glaive * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(4042),T=s(81491),d=P(function(c,A,h){if(h===void 0&&(h=[]),T(c,A)){var f=A.getLineA(),S=A.getLineB(),O=A.getLineC(),L=A.getLineD();u(f,c,h),u(S,c,h),u(O,c,h),u(L,c,h)}return h},"GetCircleToRectangle");o.exports=d},4042:(o,m,s)=>{/** + */var u=s(4042),T=s(81491),A=v(function(c,d,h){if(h===void 0&&(h=[]),T(c,d)){var f=d.getLineA(),S=d.getLineB(),R=d.getLineC(),L=d.getLineD();u(f,c,h),u(S,c,h),u(R,c,h),u(L,c,h)}return h},"GetCircleToRectangle");o.exports=A},4042:(o,O,s)=>{/** * @author Florian Vazelle * @author Geoffrey Glaive * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=s(80462),d=P(function(c,A,h){if(h===void 0&&(h=[]),T(c,A)){var f=c.x1,S=c.y1,O=c.x2,L=c.y2,p=A.x,N=A.y,g=A.radius,C=O-f,v=L-S,M=f-p,D=S-N,G=C*C+v*v,H=2*(C*M+v*D),B=M*M+D*D-g*g,_=H*H-4*G*B,w,b;if(_===0){var F=-H/(2*G);w=f+F*C,b=S+F*v,F>=0&&F<=1&&h.push(new u(w,b))}else if(_>0){var k=(-H-Math.sqrt(_))/(2*G);w=f+k*C,b=S+k*v,k>=0&&k<=1&&h.push(new u(w,b));var V=(-H+Math.sqrt(_))/(2*G);w=f+V*C,b=S+V*v,V>=0&&V<=1&&h.push(new u(w,b))}}return h},"GetLineToCircle");o.exports=d},36100:(o,m,s)=>{/** + */var u=s(2141),T=s(80462),A=v(function(c,d,h){if(h===void 0&&(h=[]),T(c,d)){var f=c.x1,S=c.y1,R=c.x2,L=c.y2,p=d.x,N=d.y,g=d.radius,C=R-f,P=L-S,M=f-p,D=S-N,G=C*C+P*P,H=2*(C*M+P*D),B=M*M+D*D-g*g,b=H*H-4*G*B,w,_;if(b===0){var F=-H/(2*G);w=f+F*C,_=S+F*P,F>=0&&F<=1&&h.push(new u(w,_))}else if(b>0){var x=(-H-Math.sqrt(b))/(2*G);w=f+x*C,_=S+x*P,x>=0&&x<=1&&h.push(new u(w,_));var V=(-H+Math.sqrt(b))/(2*G);w=f+V*C,_=S+V*P,V>=0&&V<=1&&h.push(new u(w,_))}}return h},"GetLineToCircle");o.exports=A},36100:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(25836),T=P(function(d,c,A,h){A===void 0&&(A=!1);var f=d.x1,S=d.y1,O=d.x2,L=d.y2,p=c.x1,N=c.y1,g=c.x2,C=c.y2,v=O-f,M=L-S,D=g-p,G=C-N,H=v*G-M*D;if(H===0)return null;var B,_,w;if(A){if(B=(v*(N-S)+M*(f-p))/(D*M-G*v),_=(p+D*B-f)/v,_<0||B<0||B>1)return null;w=_}else{if(B=((p-f)*G-(N-S)*D)/H,_=((S-N)*v-(f-p)*M)/H,B<0||B>1||_<0||_>1)return null;w=B}return h===void 0&&(h=new u),h.set(f+v*w,S+M*w,w)},"GetLineToLine");o.exports=T},3073:(o,m,s)=>{/** + */var u=s(25836),T=v(function(A,c,d,h){d===void 0&&(d=!1);var f=A.x1,S=A.y1,R=A.x2,L=A.y2,p=c.x1,N=c.y1,g=c.x2,C=c.y2,P=R-f,M=L-S,D=g-p,G=C-N,H=P*G-M*D;if(H===0)return null;var B,b,w;if(d){if(B=(P*(N-S)+M*(f-p))/(D*M-G*P),b=(p+D*B-f)/P,b<0||B<0||B>1)return null;w=b}else{if(B=((p-f)*G-(N-S)*D)/H,b=((S-N)*P-(f-p)*M)/H,B<0||B>1||b<0||b>1)return null;w=B}return h===void 0&&(h=new u),h.set(f+P*w,S+M*w,w)},"GetLineToLine");o.exports=T},3073:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(36100),T=s(23031),d=s(25836),c=new T,A=new d,h=P(function(f,S,O,L){O===void 0&&(O=!1),L===void 0&&(L=new d);var p=!1;L.set(),A.set();for(var N=S[S.length-1],g=0;g{/** + */var u=s(36100),T=s(23031),A=s(25836),c=new T,d=new A,h=v(function(f,S,R,L){R===void 0&&(R=!1),L===void 0&&(L=new A);var p=!1;L.set(),d.set();for(var N=S[S.length-1],g=0;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(25836),T=s(61369),d=s(3073),c=new u,A=P(function(h,f,S,O){O===void 0&&(O=new T),Array.isArray(f)||(f=[f]);var L=!1;O.set(),c.set();for(var p=0;p{/** + */var u=s(25836),T=s(61369),A=s(3073),c=new u,d=v(function(h,f,S,R){R===void 0&&(R=new T),Array.isArray(f)||(f=[f]);var L=!1;R.set(),c.set();for(var p=0;p{/** * @author Florian Vazelle * @author Geoffrey Glaive * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=s(76112),d=s(92773),c=P(function(A,h,f){if(f===void 0&&(f=[]),d(A,h))for(var S=h.getLineA(),O=h.getLineB(),L=h.getLineC(),p=h.getLineD(),N=[new u,new u,new u,new u],g=[T(S,A,N[0]),T(O,A,N[1]),T(L,A,N[2]),T(p,A,N[3])],C=0;C<4;C++)g[C]&&f.push(N[C]);return f},"GetLineToRectangle");o.exports=c},71147:(o,m,s)=>{/** + */var u=s(2141),T=s(76112),A=s(92773),c=v(function(d,h,f){if(f===void 0&&(f=[]),A(d,h))for(var S=h.getLineA(),R=h.getLineB(),L=h.getLineC(),p=h.getLineD(),N=[new u,new u,new u,new u],g=[T(S,d,N[0]),T(R,d,N[1]),T(L,d,N[2]),T(p,d,N[3])],C=0;C<4;C++)g[C]&&f.push(N[C]);return f},"GetLineToRectangle");o.exports=c},71147:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(61369),T=s(56362),d=s(23031),c=new d;function A(S,O,L,p,N){var g=Math.cos(S),C=Math.sin(S);c.setTo(O,L,O+g,L+C);var v=T(c,p,!0);v&&N.push(new u(v.x,v.y,S,v.w))}P(A,"CheckIntersects");function h(S,O){return S.z-O.z}P(h,"SortIntersects");var f=P(function(S,O,L){Array.isArray(L)||(L=[L]);for(var p=[],N=[],g=0;g{/** + */var u=s(61369),T=s(56362),A=s(23031),c=new A;function d(S,R,L,p,N){var g=Math.cos(S),C=Math.sin(S);c.setTo(R,L,R+g,L+C);var P=T(c,p,!0);P&&N.push(new u(P.x,P.y,S,P.w))}v(d,"CheckIntersects");function h(S,R){return S.z-R.z}v(h,"SortIntersects");var f=v(function(S,R,L){Array.isArray(L)||(L=[L]);for(var p=[],N=[],g=0;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(87841),T=s(59996),d=P(function(c,A,h){return h===void 0&&(h=new u),T(c,A)&&(h.x=Math.max(c.x,A.x),h.y=Math.max(c.y,A.y),h.width=Math.min(c.right,A.right)-h.x,h.height=Math.min(c.bottom,A.bottom)-h.y),h},"GetRectangleIntersection");o.exports=d},52784:(o,m,s)=>{/** + */var u=s(87841),T=s(59996),A=v(function(c,d,h){return h===void 0&&(h=new u),T(c,d)&&(h.x=Math.max(c.x,d.x),h.y=Math.max(c.y,d.y),h.width=Math.min(c.right,d.right)-h.x,h.height=Math.min(c.bottom,d.bottom)-h.y),h},"GetRectangleIntersection");o.exports=A},52784:(o,O,s)=>{/** * @author Florian Vazelle * @author Geoffrey Glaive * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(60646),T=s(59996),d=P(function(c,A,h){if(h===void 0&&(h=[]),T(c,A)){var f=c.getLineA(),S=c.getLineB(),O=c.getLineC(),L=c.getLineD();u(f,A,h),u(S,A,h),u(O,A,h),u(L,A,h)}return h},"GetRectangleToRectangle");o.exports=d},26341:(o,m,s)=>{/** + */var u=s(60646),T=s(59996),A=v(function(c,d,h){if(h===void 0&&(h=[]),T(c,d)){var f=c.getLineA(),S=c.getLineB(),R=c.getLineC(),L=c.getLineD();u(f,d,h),u(S,d,h),u(R,d,h),u(L,d,h)}return h},"GetRectangleToRectangle");o.exports=A},26341:(o,O,s)=>{/** * @author Florian Vazelle * @author Geoffrey Glaive * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(89265),T=s(60646),d=P(function(c,A,h){if(h===void 0&&(h=[]),u(c,A)){var f=A.getLineA(),S=A.getLineB(),O=A.getLineC();T(f,c,h),T(S,c,h),T(O,c,h)}return h},"GetRectangleToTriangle");o.exports=d},38720:(o,m,s)=>{/** + */var u=s(89265),T=s(60646),A=v(function(c,d,h){if(h===void 0&&(h=[]),u(c,d)){var f=d.getLineA(),S=d.getLineB(),R=d.getLineC();T(f,c,h),T(S,c,h),T(R,c,h)}return h},"GetRectangleToTriangle");o.exports=A},38720:(o,O,s)=>{/** * @author Florian Vazelle * @author Geoffrey Glaive * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(4042),T=s(67636),d=P(function(c,A,h){if(h===void 0&&(h=[]),T(c,A)){var f=c.getLineA(),S=c.getLineB(),O=c.getLineC();u(f,A,h),u(S,A,h),u(O,A,h)}return h},"GetTriangleToCircle");o.exports=d},13882:(o,m,s)=>{/** + */var u=s(4042),T=s(67636),A=v(function(c,d,h){if(h===void 0&&(h=[]),T(c,d)){var f=c.getLineA(),S=c.getLineB(),R=c.getLineC();u(f,d,h),u(S,d,h),u(R,d,h)}return h},"GetTriangleToCircle");o.exports=A},13882:(o,O,s)=>{/** * @author Florian Vazelle * @author Geoffrey Glaive * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=s(2822),d=s(76112),c=P(function(A,h,f){if(f===void 0&&(f=[]),T(A,h))for(var S=A.getLineA(),O=A.getLineB(),L=A.getLineC(),p=[new u,new u,new u],N=[d(S,h,p[0]),d(O,h,p[1]),d(L,h,p[2])],g=0;g<3;g++)N[g]&&f.push(p[g]);return f},"GetTriangleToLine");o.exports=c},75636:(o,m,s)=>{/** + */var u=s(2141),T=s(2822),A=s(76112),c=v(function(d,h,f){if(f===void 0&&(f=[]),T(d,h))for(var S=d.getLineA(),R=d.getLineB(),L=d.getLineC(),p=[new u,new u,new u],N=[A(S,h,p[0]),A(R,h,p[1]),A(L,h,p[2])],g=0;g<3;g++)N[g]&&f.push(p[g]);return f},"GetTriangleToLine");o.exports=c},75636:(o,O,s)=>{/** * @author Florian Vazelle * @author Geoffrey Glaive * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(82944),T=s(13882),d=P(function(c,A,h){if(h===void 0&&(h=[]),u(c,A)){var f=A.getLineA(),S=A.getLineB(),O=A.getLineC();T(c,f,h),T(c,S,h),T(c,O,h)}return h},"GetTriangleToTriangle");o.exports=d},80462:(o,m,s)=>{/** + */var u=s(82944),T=s(13882),A=v(function(c,d,h){if(h===void 0&&(h=[]),u(c,d)){var f=d.getLineA(),S=d.getLineB(),R=d.getLineC();T(c,f,h),T(c,S,h),T(c,R,h)}return h},"GetTriangleToTriangle");o.exports=A},80462:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(87902),T=s(2141),d=new T,c=P(function(A,h,f){if(f===void 0&&(f=d),u(h,A.x1,A.y1))return f.x=A.x1,f.y=A.y1,!0;if(u(h,A.x2,A.y2))return f.x=A.x2,f.y=A.y2,!0;var S=A.x2-A.x1,O=A.y2-A.y1,L=h.x-A.x1,p=h.y-A.y1,N=S*S+O*O,g=S,C=O;if(N>0){var v=(L*S+p*O)/N;g*=v,C*=v}f.x=A.x1+g,f.y=A.y1+C;var M=g*g+C*C;return M<=N&&g*S+C*O>=0&&u(h,f.x,f.y)},"LineToCircle");o.exports=c},76112:o=>{/** + */var u=s(87902),T=s(2141),A=new T,c=v(function(d,h,f){if(f===void 0&&(f=A),u(h,d.x1,d.y1))return f.x=d.x1,f.y=d.y1,!0;if(u(h,d.x2,d.y2))return f.x=d.x2,f.y=d.y2,!0;var S=d.x2-d.x1,R=d.y2-d.y1,L=h.x-d.x1,p=h.y-d.y1,N=S*S+R*R,g=S,C=R;if(N>0){var P=(L*S+p*R)/N;g*=P,C*=P}f.x=d.x1+g,f.y=d.y1+C;var M=g*g+C*C;return M<=N&&g*S+C*R>=0&&u(h,f.x,f.y)},"LineToCircle");o.exports=c},76112:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){var d=s.x1,c=s.y1,A=s.x2,h=s.y2,f=u.x1,S=u.y1,O=u.x2,L=u.y2;if(d===A&&c===h||f===O&&S===L)return!1;var p=(L-S)*(A-d)-(O-f)*(h-c);if(p===0)return!1;var N=((O-f)*(c-S)-(L-S)*(d-f))/p,g=((A-d)*(c-S)-(h-c)*(d-f))/p;return N<0||N>1||g<0||g>1?!1:(T&&(T.x=d+N*(A-d),T.y=c+N*(h-c)),!0)},"LineToLine");o.exports=m},92773:o=>{/** + */var O=v(function(s,u,T){var A=s.x1,c=s.y1,d=s.x2,h=s.y2,f=u.x1,S=u.y1,R=u.x2,L=u.y2;if(A===d&&c===h||f===R&&S===L)return!1;var p=(L-S)*(d-A)-(R-f)*(h-c);if(p===0)return!1;var N=((R-f)*(c-S)-(L-S)*(A-f))/p,g=((d-A)*(c-S)-(h-c)*(A-f))/p;return N<0||N>1||g<0||g>1?!1:(T&&(T.x=A+N*(d-A),T.y=c+N*(h-c)),!0)},"LineToLine");o.exports=O},92773:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){var T=s.x1,d=s.y1,c=s.x2,A=s.y2,h=u.x,f=u.y,S=u.right,O=u.bottom,L=0;if(T>=h&&T<=S&&d>=f&&d<=O||c>=h&&c<=S&&A>=f&&A<=O)return!0;if(T=h){if(L=d+(A-d)*(h-T)/(c-T),L>f&&L<=O)return!0}else if(T>S&&c<=S&&(L=d+(A-d)*(S-T)/(c-T),L>=f&&L<=O))return!0;if(d=f){if(L=T+(c-T)*(f-d)/(A-d),L>=h&&L<=S)return!0}else if(d>O&&A<=O&&(L=T+(c-T)*(O-d)/(A-d),L>=h&&L<=S))return!0;return!1},"LineToRectangle");o.exports=m},16204:o=>{/** + */var O=v(function(s,u){var T=s.x1,A=s.y1,c=s.x2,d=s.y2,h=u.x,f=u.y,S=u.right,R=u.bottom,L=0;if(T>=h&&T<=S&&A>=f&&A<=R||c>=h&&c<=S&&d>=f&&d<=R)return!0;if(T=h){if(L=A+(d-A)*(h-T)/(c-T),L>f&&L<=R)return!0}else if(T>S&&c<=S&&(L=A+(d-A)*(S-T)/(c-T),L>=f&&L<=R))return!0;if(A=f){if(L=T+(c-T)*(f-A)/(d-A),L>=h&&L<=S)return!0}else if(A>R&&d<=R&&(L=T+(c-T)*(R-A)/(d-A),L>=h&&L<=S))return!0;return!1},"LineToRectangle");o.exports=O},16204:o=>{/** * @author Richard Davey * @author Florian Mertens * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){T===void 0&&(T=1);var d=u.x1,c=u.y1,A=u.x2,h=u.y2,f=s.x,S=s.y,O=(A-d)*(A-d)+(h-c)*(h-c);if(O===0)return!1;var L=((f-d)*(A-d)+(S-c)*(h-c))/O;if(L<0)return Math.sqrt((d-f)*(d-f)+(c-S)*(c-S))<=T;if(L>=0&&L<=1){var p=((c-S)*(A-d)-(d-f)*(h-c))/O;return Math.abs(p)*Math.sqrt(O)<=T}else return Math.sqrt((A-f)*(A-f)+(h-S)*(h-S))<=T},"PointToLine");o.exports=m},14199:(o,m,s)=>{/** + */var O=v(function(s,u,T){T===void 0&&(T=1);var A=u.x1,c=u.y1,d=u.x2,h=u.y2,f=s.x,S=s.y,R=(d-A)*(d-A)+(h-c)*(h-c);if(R===0)return!1;var L=((f-A)*(d-A)+(S-c)*(h-c))/R;if(L<0)return Math.sqrt((A-f)*(A-f)+(c-S)*(c-S))<=T;if(L>=0&&L<=1){var p=((c-S)*(d-A)-(A-f)*(h-c))/R;return Math.abs(p)*Math.sqrt(R)<=T}else return Math.sqrt((d-f)*(d-f)+(h-S)*(h-S))<=T},"PointToLine");o.exports=O},14199:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(16204),T=P(function(d,c){if(!u(d,c))return!1;var A=Math.min(c.x1,c.x2),h=Math.max(c.x1,c.x2),f=Math.min(c.y1,c.y2),S=Math.max(c.y1,c.y2);return d.x>=A&&d.x<=h&&d.y>=f&&d.y<=S},"PointToLineSegment");o.exports=T},59996:o=>{/** + */var u=s(16204),T=v(function(A,c){if(!u(A,c))return!1;var d=Math.min(c.x1,c.x2),h=Math.max(c.x1,c.x2),f=Math.min(c.y1,c.y2),S=Math.max(c.y1,c.y2);return A.x>=d&&A.x<=h&&A.y>=f&&A.y<=S},"PointToLineSegment");o.exports=T},59996:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return s.width<=0||s.height<=0||u.width<=0||u.height<=0?!1:!(s.rightu.right||s.y>u.bottom)},"RectangleToRectangle");o.exports=m},89265:(o,m,s)=>{/** + */var O=v(function(s,u){return s.width<=0||s.height<=0||u.width<=0||u.height<=0?!1:!(s.rightu.right||s.y>u.bottom)},"RectangleToRectangle");o.exports=O},89265:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(76112),T=s(37303),d=s(48653),c=s(77493),A=P(function(h,f){if(f.left>h.right||f.righth.bottom||f.bottom0},"RectangleToTriangle");o.exports=A},84411:o=>{/** + */var u=s(76112),T=s(37303),A=s(48653),c=s(77493),d=v(function(h,f){if(f.left>h.right||f.righth.bottom||f.bottom0},"RectangleToTriangle");o.exports=d},84411:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d,c,A){return A===void 0&&(A=0),!(u>s.right+A||Ts.bottom+A||c{/** + */var O=v(function(s,u,T,A,c,d){return d===void 0&&(d=0),!(u>s.right+d||Ts.bottom+d||c{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(80462),T=s(10690),d=P(function(c,A){return c.left>A.right||c.rightA.bottom||c.bottom{/** + */var u=s(80462),T=s(10690),A=v(function(c,d){return c.left>d.right||c.rightd.bottom||c.bottom{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(76112),T=P(function(d,c){return!!(d.contains(c.x1,c.y1)||d.contains(c.x2,c.y2)||u(d.getLineA(),c)||u(d.getLineB(),c)||u(d.getLineC(),c))},"TriangleToLine");o.exports=T},82944:(o,m,s)=>{/** + */var u=s(76112),T=v(function(A,c){return!!(A.contains(c.x1,c.y1)||A.contains(c.x2,c.y2)||u(A.getLineA(),c)||u(A.getLineB(),c)||u(A.getLineC(),c))},"TriangleToLine");o.exports=T},82944:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(48653),T=s(71694),d=s(76112),c=P(function(A,h){if(A.left>h.right||A.righth.bottom||A.bottom0||(g=T(h),C=u(A,g,!0),C.length>0)},"TriangleToTriangle");o.exports=c},91865:(o,m,s)=>{/** + */var u=s(48653),T=s(71694),A=s(76112),c=v(function(d,h){if(d.left>h.right||d.righth.bottom||d.bottom0||(g=T(h),C=u(d,g,!0),C.length>0)},"TriangleToTriangle");o.exports=c},91865:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2467,163 +2467,163 @@ var dne=Object.defineProperty;var P=(n,t)=>dne(n,"name",{value:t,configurable:!0 * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return Math.atan2(s.y2-s.y1,s.x2-s.x1)},"Angle");o.exports=m},84993:o=>{/** + */var O=v(function(s){return Math.atan2(s.y2-s.y1,s.x2-s.x1)},"Angle");o.exports=O},84993:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){u===void 0&&(u=1),T===void 0&&(T=[]);var d=Math.round(s.x1),c=Math.round(s.y1),A=Math.round(s.x2),h=Math.round(s.y2),f=Math.abs(A-d),S=Math.abs(h-c),O=d-S&&(p-=S,d+=O),g{/** + */var O=v(function(s,u,T){u===void 0&&(u=1),T===void 0&&(T=[]);var A=Math.round(s.x1),c=Math.round(s.y1),d=Math.round(s.x2),h=Math.round(s.y2),f=Math.abs(d-A),S=Math.abs(h-c),R=A-S&&(p-=S,A+=R),g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){var d=u-(s.x1+s.x2)/2,c=T-(s.y1+s.y2)/2;return s.x1+=d,s.y1+=c,s.x2+=d,s.y2+=c,s},"CenterOn");o.exports=m},31116:(o,m,s)=>{/** + */var O=v(function(s,u,T){var A=u-(s.x1+s.x2)/2,c=T-(s.y1+s.y2)/2;return s.x1+=A,s.y1+=c,s.x2+=A,s.y2+=c,s},"CenterOn");o.exports=O},31116:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(23031),T=P(function(d){return new u(d.x1,d.y1,d.x2,d.y2)},"Clone");o.exports=T},59944:o=>{/** + */var u=s(23031),T=v(function(A){return new u(A.x1,A.y1,A.x2,A.y2)},"Clone");o.exports=T},59944:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return u.setTo(s.x1,s.y1,s.x2,s.y2)},"CopyFrom");o.exports=m},59220:o=>{/** + */var O=v(function(s,u){return u.setTo(s.x1,s.y1,s.x2,s.y2)},"CopyFrom");o.exports=O},59220:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return s.x1===u.x1&&s.y1===u.y1&&s.x2===u.x2&&s.y2===u.y2},"Equals");o.exports=m},78177:(o,m,s)=>{/** + */var O=v(function(s,u){return s.x1===u.x1&&s.y1===u.y1&&s.x2===u.x2&&s.y2===u.y2},"Equals");o.exports=O},78177:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(35001),T=P(function(d,c,A){A===void 0&&(A=c);var h=u(d),f=d.x2-d.x1,S=d.y2-d.y1;return c&&(d.x1=d.x1-f/h*c,d.y1=d.y1-S/h*c),A&&(d.x2=d.x2+f/h*A,d.y2=d.y2+S/h*A),d},"Extend");o.exports=T},26708:(o,m,s)=>{/** + */var u=s(35001),T=v(function(A,c,d){d===void 0&&(d=c);var h=u(A),f=A.x2-A.x1,S=A.y2-A.y1;return c&&(A.x1=A.x1-f/h*c,A.y1=A.y1-S/h*c),d&&(A.x2=A.x2+f/h*d,A.y2=A.y2+S/h*d),A},"Extend");o.exports=T},26708:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(52816),T=s(6113),d=s(2141),c=P(function(A,h,f,S,O){S===void 0&&(S=0),O===void 0&&(O=[]);var L=[],p=A.x1,N=A.y1,g=A.x2-p,C=A.y2-N,v=T(h,O),M,D,G=f-1;for(M=0;M0){var H=L[0],B=[H];for(M=1;M=S&&(B.push(_),H=_)}var w=L[L.length-1];return u(H,w){/** + */var u=s(52816),T=s(6113),A=s(2141),c=v(function(d,h,f,S,R){S===void 0&&(S=0),R===void 0&&(R=[]);var L=[],p=d.x1,N=d.y1,g=d.x2-p,C=d.y2-N,P=T(h,R),M,D,G=f-1;for(M=0;M0){var H=L[0],B=[H];for(M=1;M=S&&(B.push(b),H=b)}var w=L[L.length-1];return u(H,w){/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=P(function(d,c){return c===void 0&&(c=new u),c.x=(d.x1+d.x2)/2,c.y=(d.y1+d.y2)/2,c},"GetMidPoint");o.exports=T},99569:(o,m,s)=>{/** + */var u=s(2141),T=v(function(A,c){return c===void 0&&(c=new u),c.x=(A.x1+A.x2)/2,c.y=(A.y1+A.y2)/2,c},"GetMidPoint");o.exports=T},99569:(o,O,s)=>{/** * @author Richard Davey * @author Florian Mertens * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=P(function(d,c,A){A===void 0&&(A=new u);var h=d.x1,f=d.y1,S=d.x2,O=d.y2,L=(S-h)*(S-h)+(O-f)*(O-f);if(L===0)return A;var p=((c.x-h)*(S-h)+(c.y-f)*(O-f))/L;return A.x=h+p*(S-h),A.y=f+p*(O-f),A},"GetNearestPoint");o.exports=T},34638:(o,m,s)=>{/** + */var u=s(2141),T=v(function(A,c,d){d===void 0&&(d=new u);var h=A.x1,f=A.y1,S=A.x2,R=A.y2,L=(S-h)*(S-h)+(R-f)*(R-f);if(L===0)return d;var p=((c.x-h)*(S-h)+(c.y-f)*(R-f))/L;return d.x=h+p*(S-h),d.y=f+p*(R-f),d},"GetNearestPoint");o.exports=T},34638:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(36383),T=s(91938),d=s(2141),c=P(function(A,h){h===void 0&&(h=new d);var f=T(A)-u.TAU;return h.x=Math.cos(f),h.y=Math.sin(f),h},"GetNormal");o.exports=c},13151:(o,m,s)=>{/** + */var u=s(36383),T=s(91938),A=s(2141),c=v(function(d,h){h===void 0&&(h=new A);var f=T(d)-u.TAU;return h.x=Math.cos(f),h.y=Math.sin(f),h},"GetNormal");o.exports=c},13151:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=P(function(d,c,A){return A===void 0&&(A=new u),A.x=d.x1+(d.x2-d.x1)*c,A.y=d.y1+(d.y2-d.y1)*c,A},"GetPoint");o.exports=T},15258:(o,m,s)=>{/** + */var u=s(2141),T=v(function(A,c,d){return d===void 0&&(d=new u),d.x=A.x1+(A.x2-A.x1)*c,d.y=A.y1+(A.y2-A.y1)*c,d},"GetPoint");o.exports=T},15258:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(35001),T=s(2141),d=P(function(c,A,h,f){f===void 0&&(f=[]),!A&&h>0&&(A=u(c)/h);for(var S=c.x1,O=c.y1,L=c.x2,p=c.y2,N=0;N{/** + */var u=s(35001),T=s(2141),A=v(function(c,d,h,f){f===void 0&&(f=[]),!d&&h>0&&(d=u(c)/h);for(var S=c.x1,R=c.y1,L=c.x2,p=c.y2,N=0;N{/** * @author Richard Davey * @author Florian Mertens * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){var T=s.x1,d=s.y1,c=s.x2,A=s.y2,h=(c-T)*(c-T)+(A-d)*(A-d);if(h===0)return!1;var f=((d-u.y)*(c-T)-(T-u.x)*(A-d))/h;return Math.abs(f)*Math.sqrt(h)},"GetShortestDistance");o.exports=m},98770:o=>{/** + */var O=v(function(s,u){var T=s.x1,A=s.y1,c=s.x2,d=s.y2,h=(c-T)*(c-T)+(d-A)*(d-A);if(h===0)return!1;var f=((A-u.y)*(c-T)-(T-u.x)*(d-A))/h;return Math.abs(f)*Math.sqrt(h)},"GetShortestDistance");o.exports=O},98770:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return Math.abs(s.y1-s.y2)},"Height");o.exports=m},35001:o=>{/** + */var O=v(function(s){return Math.abs(s.y1-s.y2)},"Height");o.exports=O},35001:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return Math.sqrt((s.x2-s.x1)*(s.x2-s.x1)+(s.y2-s.y1)*(s.y2-s.y1))},"Length");o.exports=m},23031:(o,m,s)=>{/** + */var O=v(function(s){return Math.sqrt((s.x2-s.x1)*(s.x2-s.x1)+(s.y2-s.y1)*(s.y2-s.y1))},"Length");o.exports=O},23031:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(13151),d=s(15258),c=s(23777),A=s(65822),h=s(26099),f=new u({initialize:P(function(O,L,p,N){O===void 0&&(O=0),L===void 0&&(L=0),p===void 0&&(p=0),N===void 0&&(N=0),this.type=c.LINE,this.x1=O,this.y1=L,this.x2=p,this.y2=N},"Line"),getPoint:function(S,O){return T(this,S,O)},getPoints:function(S,O,L){return d(this,S,O,L)},getRandomPoint:function(S){return A(this,S)},setTo:function(S,O,L,p){return S===void 0&&(S=0),O===void 0&&(O=0),L===void 0&&(L=0),p===void 0&&(p=0),this.x1=S,this.y1=O,this.x2=L,this.y2=p,this},setFromObjects:function(S,O){return this.x1=S.x,this.y1=S.y,this.x2=O.x,this.y2=O.y,this},getPointA:function(S){return S===void 0&&(S=new h),S.set(this.x1,this.y1),S},getPointB:function(S){return S===void 0&&(S=new h),S.set(this.x2,this.y2),S},left:{get:function(){return Math.min(this.x1,this.x2)},set:function(S){this.x1<=this.x2?this.x1=S:this.x2=S}},right:{get:function(){return Math.max(this.x1,this.x2)},set:function(S){this.x1>this.x2?this.x1=S:this.x2=S}},top:{get:function(){return Math.min(this.y1,this.y2)},set:function(S){this.y1<=this.y2?this.y1=S:this.y2=S}},bottom:{get:function(){return Math.max(this.y1,this.y2)},set:function(S){this.y1>this.y2?this.y1=S:this.y2=S}}});o.exports=f},64795:(o,m,s)=>{/** + */var u=s(83419),T=s(13151),A=s(15258),c=s(23777),d=s(65822),h=s(26099),f=new u({initialize:v(function(R,L,p,N){R===void 0&&(R=0),L===void 0&&(L=0),p===void 0&&(p=0),N===void 0&&(N=0),this.type=c.LINE,this.x1=R,this.y1=L,this.x2=p,this.y2=N},"Line"),getPoint:function(S,R){return T(this,S,R)},getPoints:function(S,R,L){return A(this,S,R,L)},getRandomPoint:function(S){return d(this,S)},setTo:function(S,R,L,p){return S===void 0&&(S=0),R===void 0&&(R=0),L===void 0&&(L=0),p===void 0&&(p=0),this.x1=S,this.y1=R,this.x2=L,this.y2=p,this},setFromObjects:function(S,R){return this.x1=S.x,this.y1=S.y,this.x2=R.x,this.y2=R.y,this},getPointA:function(S){return S===void 0&&(S=new h),S.set(this.x1,this.y1),S},getPointB:function(S){return S===void 0&&(S=new h),S.set(this.x2,this.y2),S},left:{get:function(){return Math.min(this.x1,this.x2)},set:function(S){this.x1<=this.x2?this.x1=S:this.x2=S}},right:{get:function(){return Math.max(this.x1,this.x2)},set:function(S){this.x1>this.x2?this.x1=S:this.x2=S}},top:{get:function(){return Math.min(this.y1,this.y2)},set:function(S){this.y1<=this.y2?this.y1=S:this.y2=S}},bottom:{get:function(){return Math.max(this.y1,this.y2)},set:function(S){this.y1>this.y2?this.y1=S:this.y2=S}}});o.exports=f},64795:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(36383),T=s(15994),d=s(91938),c=P(function(A){var h=d(A)-u.TAU;return T(h,-Math.PI,Math.PI)},"NormalAngle");o.exports=c},52616:(o,m,s)=>{/** + */var u=s(36383),T=s(15994),A=s(91938),c=v(function(d){var h=A(d)-u.TAU;return T(h,-Math.PI,Math.PI)},"NormalAngle");o.exports=c},52616:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(36383),T=s(91938),d=P(function(c){return Math.cos(T(c)-u.TAU)},"NormalX");o.exports=d},87231:(o,m,s)=>{/** + */var u=s(36383),T=s(91938),A=v(function(c){return Math.cos(T(c)-u.TAU)},"NormalX");o.exports=A},87231:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(36383),T=s(91938),d=P(function(c){return Math.sin(T(c)-u.TAU)},"NormalY");o.exports=d},89662:o=>{/** + */var u=s(36383),T=s(91938),A=v(function(c){return Math.sin(T(c)-u.TAU)},"NormalY");o.exports=A},89662:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){return s.x1+=u,s.y1+=T,s.x2+=u,s.y2+=T,s},"Offset");o.exports=m},71165:o=>{/** + */var O=v(function(s,u,T){return s.x1+=u,s.y1+=T,s.x2+=u,s.y2+=T,s},"Offset");o.exports=O},71165:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return-((s.x2-s.x1)/(s.y2-s.y1))},"PerpSlope");o.exports=m},65822:(o,m,s)=>{/** + */var O=v(function(s){return-((s.x2-s.x1)/(s.y2-s.y1))},"PerpSlope");o.exports=O},65822:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=P(function(d,c){c===void 0&&(c=new u);var A=Math.random();return c.x=d.x1+A*(d.x2-d.x1),c.y=d.y1+A*(d.y2-d.y1),c},"Random");o.exports=T},69777:(o,m,s)=>{/** + */var u=s(2141),T=v(function(A,c){c===void 0&&(c=new u);var d=Math.random();return c.x=A.x1+d*(A.x2-A.x1),c.y=A.y1+d*(A.y2-A.y1),c},"Random");o.exports=T},69777:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91938),T=s(64795),d=P(function(c,A){return 2*T(A)-Math.PI-u(c)},"ReflectAngle");o.exports=d},39706:(o,m,s)=>{/** + */var u=s(91938),T=s(64795),A=v(function(c,d){return 2*T(d)-Math.PI-u(c)},"ReflectAngle");o.exports=A},39706:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(64400),T=P(function(d,c){var A=(d.x1+d.x2)/2,h=(d.y1+d.y2)/2;return u(d,A,h,c)},"Rotate");o.exports=T},82585:(o,m,s)=>{/** + */var u=s(64400),T=v(function(A,c){var d=(A.x1+A.x2)/2,h=(A.y1+A.y2)/2;return u(A,d,h,c)},"Rotate");o.exports=T},82585:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(64400),T=P(function(d,c,A){return u(d,c.x,c.y,A)},"RotateAroundPoint");o.exports=T},64400:o=>{/** + */var u=s(64400),T=v(function(A,c,d){return u(A,c.x,c.y,d)},"RotateAroundPoint");o.exports=T},64400:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){var c=Math.cos(d),A=Math.sin(d),h=s.x1-u,f=s.y1-T;return s.x1=h*c-f*A+u,s.y1=h*A+f*c+T,h=s.x2-u,f=s.y2-T,s.x2=h*c-f*A+u,s.y2=h*A+f*c+T,s},"RotateAroundXY");o.exports=m},62377:o=>{/** + */var O=v(function(s,u,T,A){var c=Math.cos(A),d=Math.sin(A),h=s.x1-u,f=s.y1-T;return s.x1=h*c-f*d+u,s.y1=h*d+f*c+T,h=s.x2-u,f=s.y2-T,s.x2=h*c-f*d+u,s.y2=h*d+f*c+T,s},"RotateAroundXY");o.exports=O},62377:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d,c){return s.x1=u,s.y1=T,s.x2=u+Math.cos(d)*c,s.y2=T+Math.sin(d)*c,s},"SetToAngle");o.exports=m},71366:o=>{/** + */var O=v(function(s,u,T,A,c){return s.x1=u,s.y1=T,s.x2=u+Math.cos(A)*c,s.y2=T+Math.sin(A)*c,s},"SetToAngle");o.exports=O},71366:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return(s.y2-s.y1)/(s.x2-s.x1)},"Slope");o.exports=m},10809:o=>{/** + */var O=v(function(s){return(s.y2-s.y1)/(s.x2-s.x1)},"Slope");o.exports=O},10809:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return Math.abs(s.x1-s.x2)},"Width");o.exports=m},2529:(o,m,s)=>{/** + */var O=v(function(s){return Math.abs(s.x1-s.x2)},"Width");o.exports=O},2529:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(23031);u.Angle=s(91938),u.BresenhamPoints=s(84993),u.CenterOn=s(36469),u.Clone=s(31116),u.CopyFrom=s(59944),u.Equals=s(59220),u.Extend=s(78177),u.GetEasedPoints=s(26708),u.GetMidPoint=s(32125),u.GetNearestPoint=s(99569),u.GetNormal=s(34638),u.GetPoint=s(13151),u.GetPoints=s(15258),u.GetShortestDistance=s(26408),u.Height=s(98770),u.Length=s(35001),u.NormalAngle=s(64795),u.NormalX=s(52616),u.NormalY=s(87231),u.Offset=s(89662),u.PerpSlope=s(71165),u.Random=s(65822),u.ReflectAngle=s(69777),u.Rotate=s(39706),u.RotateAroundPoint=s(82585),u.RotateAroundXY=s(64400),u.SetToAngle=s(62377),u.Slope=s(71366),u.Width=s(10809),o.exports=u},83997:(o,m,s)=>{/** + */var u=s(23031);u.Angle=s(91938),u.BresenhamPoints=s(84993),u.CenterOn=s(36469),u.Clone=s(31116),u.CopyFrom=s(59944),u.Equals=s(59220),u.Extend=s(78177),u.GetEasedPoints=s(26708),u.GetMidPoint=s(32125),u.GetNearestPoint=s(99569),u.GetNormal=s(34638),u.GetPoint=s(13151),u.GetPoints=s(15258),u.GetShortestDistance=s(26408),u.Height=s(98770),u.Length=s(35001),u.NormalAngle=s(64795),u.NormalX=s(52616),u.NormalY=s(87231),u.Offset=s(89662),u.PerpSlope=s(71165),u.Random=s(65822),u.ReflectAngle=s(69777),u.Rotate=s(39706),u.RotateAroundPoint=s(82585),u.RotateAroundXY=s(64400),u.SetToAngle=s(62377),u.Slope=s(71366),u.Width=s(10809),o.exports=u},83997:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(87841),d=s(26099);function c(h,f,S,O){var L=h-S,p=f-O,N=L*L+p*p;return Math.sqrt(N)}P(c,"GetLength");var A=new u({initialize:P(function(f,S,O){this.vertex1=f,this.vertex2=S,this.vertex3=O,this.bounds=new T,this._inCenter=new d},"Face"),getInCenter:function(h){h===void 0&&(h=!0);var f=this.vertex1,S=this.vertex2,O=this.vertex3,L,p,N,g,C,v;h?(L=f.x,p=f.y,N=S.x,g=S.y,C=O.x,v=O.y):(L=f.vx,p=f.vy,N=S.vx,g=S.vy,C=O.vx,v=O.vy);var M=c(C,v,N,g),D=c(L,p,C,v),G=c(N,g,L,p),H=M+D+G;return this._inCenter.set((L*M+N*D+C*G)/H,(p*M+g*D+v*G)/H)},contains:function(h,f,S){var O=this.vertex1,L=this.vertex2,p=this.vertex3,N=O.vx,g=O.vy,C=L.vx,v=L.vy,M=p.vx,D=p.vy;if(S){var G=S.a,H=S.b,B=S.c,_=S.d,w=S.e,b=S.f;N=O.vx*G+O.vy*B+w,g=O.vx*H+O.vy*_+b,C=L.vx*G+L.vy*B+w,v=L.vx*H+L.vy*_+b,M=p.vx*G+p.vy*B+w,D=p.vx*H+p.vy*_+b}var F=M-N,k=D-g,V=C-N,Z=v-g,$=h-N,Q=f-g,te=F*F+k*k,z=F*V+k*Z,j=F*$+k*Q,x=V*V+Z*Z,X=V*$+Z*Q,q=te*x-z*z,J=q===0?0:1/q,ae=(x*j-z*X)*J,re=(te*X-z*j)*J;return ae>=0&&re>=0&&ae+re<1},isCounterClockwise:function(h){var f=this.vertex1,S=this.vertex2,O=this.vertex3,L=(S.vx-f.vx)*(O.vy-f.vy)-(S.vy-f.vy)*(O.vx-f.vx);return h<=0?L>=0:L<0},load:function(h,f,S,O,L){return S=this.vertex1.load(h,f,S,O,L),S=this.vertex2.load(h,f,S,O,L),S=this.vertex3.load(h,f,S,O,L),S},transformCoordinatesLocal:function(h,f,S,O){return this.vertex1.transformCoordinatesLocal(h,f,S,O),this.vertex2.transformCoordinatesLocal(h,f,S,O),this.vertex3.transformCoordinatesLocal(h,f,S,O),this},updateBounds:function(){var h=this.vertex1,f=this.vertex2,S=this.vertex3,O=this.bounds;return O.x=Math.min(h.vx,f.vx,S.vx),O.y=Math.min(h.vy,f.vy,S.vy),O.width=Math.max(h.vx,f.vx,S.vx)-O.x,O.height=Math.max(h.vy,f.vy,S.vy)-O.y,this},isInView:function(h,f,S,O,L,p,N,g,C,v,M){this.update(O,L,p,N,g,C,v,M);var D=this.vertex1,G=this.vertex2,H=this.vertex3;if(D.ta<=0&&G.ta<=0&&H.ta<=0||f&&!this.isCounterClockwise(S))return!1;var B=this.bounds;B.x=Math.min(D.tx,G.tx,H.tx),B.y=Math.min(D.ty,G.ty,H.ty),B.width=Math.max(D.tx,G.tx,H.tx)-B.x,B.height=Math.max(D.ty,G.ty,H.ty)-B.y;var _=h.x+h.width,w=h.y+h.height;return B.width<=0||B.height<=0||h.width<=0||h.height<=0?!1:!(B.right_||B.y>w)},scrollUV:function(h,f){return this.vertex1.scrollUV(h,f),this.vertex2.scrollUV(h,f),this.vertex3.scrollUV(h,f),this},scaleUV:function(h,f){return this.vertex1.scaleUV(h,f),this.vertex2.scaleUV(h,f),this.vertex3.scaleUV(h,f),this},setColor:function(h){return this.vertex1.color=h,this.vertex2.color=h,this.vertex3.color=h,this},update:function(h,f,S,O,L,p,N,g){return this.vertex1.update(f,S,O,L,p,N,g,h),this.vertex2.update(f,S,O,L,p,N,g,h),this.vertex3.update(f,S,O,L,p,N,g,h),this},translate:function(h,f){f===void 0&&(f=0);var S=this.vertex1,O=this.vertex2,L=this.vertex3;return S.x+=h,S.y+=f,O.x+=h,O.y+=f,L.x+=h,L.y+=f,this},x:{get:function(){return this.getInCenter().x},set:function(h){var f=this.getInCenter();this.translate(h-f.x,0)}},y:{get:function(){return this.getInCenter().y},set:function(h){var f=this.getInCenter();this.translate(0,h-f.y)}},alpha:{get:function(){var h=this.vertex1,f=this.vertex2,S=this.vertex3;return(h.alpha+f.alpha+S.alpha)/3},set:function(h){this.vertex1.alpha=h,this.vertex2.alpha=h,this.vertex3.alpha=h}},depth:{get:function(){var h=this.vertex1,f=this.vertex2,S=this.vertex3;return(h.vz+f.vz+S.vz)/3}},destroy:function(){this.vertex1=null,this.vertex2=null,this.vertex3=null}});o.exports=A},48803:(o,m,s)=>{/** + */var u=s(83419),T=s(87841),A=s(26099);function c(h,f,S,R){var L=h-S,p=f-R,N=L*L+p*p;return Math.sqrt(N)}v(c,"GetLength");var d=new u({initialize:v(function(f,S,R){this.vertex1=f,this.vertex2=S,this.vertex3=R,this.bounds=new T,this._inCenter=new A},"Face"),getInCenter:function(h){h===void 0&&(h=!0);var f=this.vertex1,S=this.vertex2,R=this.vertex3,L,p,N,g,C,P;h?(L=f.x,p=f.y,N=S.x,g=S.y,C=R.x,P=R.y):(L=f.vx,p=f.vy,N=S.vx,g=S.vy,C=R.vx,P=R.vy);var M=c(C,P,N,g),D=c(L,p,C,P),G=c(N,g,L,p),H=M+D+G;return this._inCenter.set((L*M+N*D+C*G)/H,(p*M+g*D+P*G)/H)},contains:function(h,f,S){var R=this.vertex1,L=this.vertex2,p=this.vertex3,N=R.vx,g=R.vy,C=L.vx,P=L.vy,M=p.vx,D=p.vy;if(S){var G=S.a,H=S.b,B=S.c,b=S.d,w=S.e,_=S.f;N=R.vx*G+R.vy*B+w,g=R.vx*H+R.vy*b+_,C=L.vx*G+L.vy*B+w,P=L.vx*H+L.vy*b+_,M=p.vx*G+p.vy*B+w,D=p.vx*H+p.vy*b+_}var F=M-N,x=D-g,V=C-N,Z=P-g,$=h-N,Q=f-g,te=F*F+x*x,z=F*V+x*Z,j=F*$+x*Q,k=V*V+Z*Z,X=V*$+Z*Q,q=te*k-z*z,J=q===0?0:1/q,ne=(k*j-z*X)*J,re=(te*X-z*j)*J;return ne>=0&&re>=0&&ne+re<1},isCounterClockwise:function(h){var f=this.vertex1,S=this.vertex2,R=this.vertex3,L=(S.vx-f.vx)*(R.vy-f.vy)-(S.vy-f.vy)*(R.vx-f.vx);return h<=0?L>=0:L<0},load:function(h,f,S,R,L){return S=this.vertex1.load(h,f,S,R,L),S=this.vertex2.load(h,f,S,R,L),S=this.vertex3.load(h,f,S,R,L),S},transformCoordinatesLocal:function(h,f,S,R){return this.vertex1.transformCoordinatesLocal(h,f,S,R),this.vertex2.transformCoordinatesLocal(h,f,S,R),this.vertex3.transformCoordinatesLocal(h,f,S,R),this},updateBounds:function(){var h=this.vertex1,f=this.vertex2,S=this.vertex3,R=this.bounds;return R.x=Math.min(h.vx,f.vx,S.vx),R.y=Math.min(h.vy,f.vy,S.vy),R.width=Math.max(h.vx,f.vx,S.vx)-R.x,R.height=Math.max(h.vy,f.vy,S.vy)-R.y,this},isInView:function(h,f,S,R,L,p,N,g,C,P,M){this.update(R,L,p,N,g,C,P,M);var D=this.vertex1,G=this.vertex2,H=this.vertex3;if(D.ta<=0&&G.ta<=0&&H.ta<=0||f&&!this.isCounterClockwise(S))return!1;var B=this.bounds;B.x=Math.min(D.tx,G.tx,H.tx),B.y=Math.min(D.ty,G.ty,H.ty),B.width=Math.max(D.tx,G.tx,H.tx)-B.x,B.height=Math.max(D.ty,G.ty,H.ty)-B.y;var b=h.x+h.width,w=h.y+h.height;return B.width<=0||B.height<=0||h.width<=0||h.height<=0?!1:!(B.rightb||B.y>w)},scrollUV:function(h,f){return this.vertex1.scrollUV(h,f),this.vertex2.scrollUV(h,f),this.vertex3.scrollUV(h,f),this},scaleUV:function(h,f){return this.vertex1.scaleUV(h,f),this.vertex2.scaleUV(h,f),this.vertex3.scaleUV(h,f),this},setColor:function(h){return this.vertex1.color=h,this.vertex2.color=h,this.vertex3.color=h,this},update:function(h,f,S,R,L,p,N,g){return this.vertex1.update(f,S,R,L,p,N,g,h),this.vertex2.update(f,S,R,L,p,N,g,h),this.vertex3.update(f,S,R,L,p,N,g,h),this},translate:function(h,f){f===void 0&&(f=0);var S=this.vertex1,R=this.vertex2,L=this.vertex3;return S.x+=h,S.y+=f,R.x+=h,R.y+=f,L.x+=h,L.y+=f,this},x:{get:function(){return this.getInCenter().x},set:function(h){var f=this.getInCenter();this.translate(h-f.x,0)}},y:{get:function(){return this.getInCenter().y},set:function(h){var f=this.getInCenter();this.translate(0,h-f.y)}},alpha:{get:function(){var h=this.vertex1,f=this.vertex2,S=this.vertex3;return(h.alpha+f.alpha+S.alpha)/3},set:function(h){this.vertex1.alpha=h,this.vertex2.alpha=h,this.vertex3.alpha=h}},depth:{get:function(){var h=this.vertex1,f=this.vertex2,S=this.vertex3;return(h.vz+f.vz+S.vz)/3}},destroy:function(){this.vertex1=null,this.vertex2=null,this.vertex3=null}});o.exports=d},48803:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83997),T=s(95540),d=s(37867),c=s(25836),A=s(39318),h=new c,f=new c,S=new d,O=P(function(L){var p=T(L,"mesh"),N=T(L,"texture",null),g=T(L,"frame"),C=T(L,"width",1),v=T(L,"height",C),M=T(L,"widthSegments",1),D=T(L,"heightSegments",M),G=T(L,"x",0),H=T(L,"y",0),B=T(L,"z",0),_=T(L,"rotateX",0),w=T(L,"rotateY",0),b=T(L,"rotateZ",0),F=T(L,"zIsUp",!0),k=T(L,"isOrtho",p?p.dirtyCache[11]:!1),V=T(L,"colors",[16777215]),Z=T(L,"alphas",[1]),$=T(L,"tile",!1),Q=T(L,"flipY",!1),te=T(L,"width",null),z={faces:[],verts:[]};h.set(G,H,B),f.set(_,w,b),S.fromRotationXYTranslation(f,h,F);var j;if(!N&&p)N=p.texture,g||(j=p.frame);else if(p&&typeof N=="string")N=p.scene.sys.textures.get(N);else if(!N)return z;j||(j=N.get(g)),!te&&k&&N&&p&&(C=j.width/p.height,v=j.height/p.height);var x=C/2,X=v/2,q=Math.floor(M),J=Math.floor(D),ae=q+1,re=J+1,oe=C/q,Ee=v/J,Re=[],Le=[],ve,ye,De=0,ke=1,it=0,lt=1;j&&(De=j.u0,ke=j.u1,Q?(it=j.v1,lt=j.v0):(it=j.v0,lt=j.v1));var at=ke-De,Ge=lt-it;for(ye=0;ye{/** + */var u=s(83997),T=s(95540),A=s(37867),c=s(25836),d=s(39318),h=new c,f=new c,S=new A,R=v(function(L){var p=T(L,"mesh"),N=T(L,"texture",null),g=T(L,"frame"),C=T(L,"width",1),P=T(L,"height",C),M=T(L,"widthSegments",1),D=T(L,"heightSegments",M),G=T(L,"x",0),H=T(L,"y",0),B=T(L,"z",0),b=T(L,"rotateX",0),w=T(L,"rotateY",0),_=T(L,"rotateZ",0),F=T(L,"zIsUp",!0),x=T(L,"isOrtho",p?p.dirtyCache[11]:!1),V=T(L,"colors",[16777215]),Z=T(L,"alphas",[1]),$=T(L,"tile",!1),Q=T(L,"flipY",!1),te=T(L,"width",null),z={faces:[],verts:[]};h.set(G,H,B),f.set(b,w,_),S.fromRotationXYTranslation(f,h,F);var j;if(!N&&p)N=p.texture,g||(j=p.frame);else if(p&&typeof N=="string")N=p.scene.sys.textures.get(N);else if(!N)return z;j||(j=N.get(g)),!te&&x&&N&&p&&(C=j.width/p.height,P=j.height/p.height);var k=C/2,X=P/2,q=Math.floor(M),J=Math.floor(D),ne=q+1,re=J+1,oe=C/q,Ee=P/J,me=[],Le=[],Pe,ye,De=0,xe=1,it=0,lt=1;j&&(De=j.u0,xe=j.u1,Q?(it=j.v1,lt=j.v0):(it=j.v0,lt=j.v1));var at=xe-De,Ge=lt-it;for(ye=0;ye{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83997),T=s(37867),d=s(25836),c=s(39318),A=new d,h=new d,f=new T,S=P(function(O,L,p,N,g,C,v,M,D,G){p===void 0&&(p=1),N===void 0&&(N=0),g===void 0&&(g=0),C===void 0&&(C=0),v===void 0&&(v=0),M===void 0&&(M=0),D===void 0&&(D=0),G===void 0&&(G=!0);var H={faces:[],verts:[]},B=O.materials;A.set(N,g,C),h.set(v,M,D),f.fromRotationXYTranslation(h,A,G);for(var _=0;_{/** + */var u=s(83997),T=s(37867),A=s(25836),c=s(39318),d=new A,h=new A,f=new T,S=v(function(R,L,p,N,g,C,P,M,D,G){p===void 0&&(p=1),N===void 0&&(N=0),g===void 0&&(g=0),C===void 0&&(C=0),P===void 0&&(P=0),M===void 0&&(M=0),D===void 0&&(D=0),G===void 0&&(G=!0);var H={faces:[],verts:[]},B=R.materials;d.set(N,g,C),h.set(P,M,D),f.fromRotationXYTranslation(h,d,G);for(var b=0;b{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83997),T=s(39318),d=P(function(c,A,h,f,S,O,L,p){if(f===void 0&&(f=!1),O===void 0&&(O=16777215),L===void 0&&(L=1),p===void 0&&(p=!1),c.length!==A.length&&!f){console.warn("GenerateVerts: vertices and uvs count not equal");return}var N={faces:[],vertices:[]},g,C,v,M,D,G,H,B,_,w,b,F=f?3:2,k=Array.isArray(O),V=Array.isArray(L);if(Array.isArray(h)&&h.length>0)for(g=0;g{/** + */var u=s(83997),T=s(39318),A=v(function(c,d,h,f,S,R,L,p){if(f===void 0&&(f=!1),R===void 0&&(R=16777215),L===void 0&&(L=1),p===void 0&&(p=!1),c.length!==d.length&&!f){console.warn("GenerateVerts: vertices and uvs count not equal");return}var N={faces:[],vertices:[]},g,C,P,M,D,G,H,B,b,w,_,F=f?3:2,x=Array.isArray(R),V=Array.isArray(L);if(Array.isArray(h)&&h.length>0)for(g=0;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=!0,s="untitled",u="",T="";function d(C){var v=C.indexOf("#");return v>-1?C.substring(0,v):C}P(d,"stripComments");function c(C){return C.models.length===0&&C.models.push({faces:[],name:s,textureCoords:[],vertexNormals:[],vertices:[]}),u="",C.models[C.models.length-1]}P(c,"currentModel");function A(C,v){var M=C.length>=2?C[1]:s;v.models.push({faces:[],name:M,textureCoords:[],vertexNormals:[],vertices:[]}),u=""}P(A,"parseObject");function h(C){C.length===2&&(u=C[1])}P(h,"parseGroup");function f(C,v){var M=C.length,D=M>=2?parseFloat(C[1]):0,G=M>=3?parseFloat(C[2]):0,H=M>=4?parseFloat(C[3]):0;c(v).vertices.push({x:D,y:G,z:H})}P(f,"parseVertexCoords");function S(C,v){var M=C.length,D=M>=2?parseFloat(C[1]):0,G=M>=3?parseFloat(C[2]):0,H=M>=4?parseFloat(C[3]):0;isNaN(D)&&(D=0),isNaN(G)&&(G=0),isNaN(H)&&(H=0),m&&(G=1-G),c(v).textureCoords.push({u:D,v:G,w:H})}P(S,"parseTextureCoords");function O(C,v){var M=C.length,D=M>=2?parseFloat(C[1]):0,G=M>=3?parseFloat(C[2]):0,H=M>=4?parseFloat(C[3]):0;c(v).vertexNormals.push({x:D,y:G,z:H})}P(O,"parseVertexNormal");function L(C,v){var M=C.length-1;if(!(M<3)){for(var D={group:u,material:T,vertices:[]},G=0;G3)){var w=0,b=0,F=0;w=parseInt(B[0],10),_>1&&B[1]!==""&&(b=parseInt(B[1],10)),_>2&&(F=parseInt(B[2],10)),w!==0&&(w<0&&(w=c(v).vertices.length+1+w),b-=1,w-=1,F-=1,D.vertices.push({textureCoordsIndex:b,vertexIndex:w,vertexNormalIndex:F}))}}c(v).faces.push(D)}}P(L,"parsePolygon");function p(C,v){C.length>=2&&v.materialLibraries.push(C[1])}P(p,"parseMtlLib");function N(C){C.length>=2&&(T=C[1])}P(N,"parseUseMtl");var g=P(function(C,v){v===void 0&&(v=!0),m=v;var M={materials:{},materialLibraries:[],models:[]};u="",T="";for(var D=C.split(` -`),G=0;G{/** + */var O=!0,s="untitled",u="",T="";function A(C){var P=C.indexOf("#");return P>-1?C.substring(0,P):C}v(A,"stripComments");function c(C){return C.models.length===0&&C.models.push({faces:[],name:s,textureCoords:[],vertexNormals:[],vertices:[]}),u="",C.models[C.models.length-1]}v(c,"currentModel");function d(C,P){var M=C.length>=2?C[1]:s;P.models.push({faces:[],name:M,textureCoords:[],vertexNormals:[],vertices:[]}),u=""}v(d,"parseObject");function h(C){C.length===2&&(u=C[1])}v(h,"parseGroup");function f(C,P){var M=C.length,D=M>=2?parseFloat(C[1]):0,G=M>=3?parseFloat(C[2]):0,H=M>=4?parseFloat(C[3]):0;c(P).vertices.push({x:D,y:G,z:H})}v(f,"parseVertexCoords");function S(C,P){var M=C.length,D=M>=2?parseFloat(C[1]):0,G=M>=3?parseFloat(C[2]):0,H=M>=4?parseFloat(C[3]):0;isNaN(D)&&(D=0),isNaN(G)&&(G=0),isNaN(H)&&(H=0),O&&(G=1-G),c(P).textureCoords.push({u:D,v:G,w:H})}v(S,"parseTextureCoords");function R(C,P){var M=C.length,D=M>=2?parseFloat(C[1]):0,G=M>=3?parseFloat(C[2]):0,H=M>=4?parseFloat(C[3]):0;c(P).vertexNormals.push({x:D,y:G,z:H})}v(R,"parseVertexNormal");function L(C,P){var M=C.length-1;if(!(M<3)){for(var D={group:u,material:T,vertices:[]},G=0;G3)){var w=0,_=0,F=0;w=parseInt(B[0],10),b>1&&B[1]!==""&&(_=parseInt(B[1],10)),b>2&&(F=parseInt(B[2],10)),w!==0&&(w<0&&(w=c(P).vertices.length+1+w),_-=1,w-=1,F-=1,D.vertices.push({textureCoordsIndex:_,vertexIndex:w,vertexNormalIndex:F}))}}c(P).faces.push(D)}}v(L,"parsePolygon");function p(C,P){C.length>=2&&P.materialLibraries.push(C[1])}v(p,"parseMtlLib");function N(C){C.length>=2&&(T=C[1])}v(N,"parseUseMtl");var g=v(function(C,P){P===void 0&&(P=!0),O=P;var M={materials:{},materialLibraries:[],models:[]};u="",T="";for(var D=C.split(` +`),G=0;G{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(37589),T=P(function(d){for(var c={},A=d.split(` -`),h="",f=0;f=2?Math.floor(O[2]*255):L,N=O.length>=3?Math.floor(O[3]*255):L;c[h]=u(L,p,N);break}}}}return c},"ParseObjMaterial");o.exports=T},92570:o=>{/** + */var u=s(37589),T=v(function(A){for(var c={},d=A.split(` +`),h="",f=0;f=2?Math.floor(R[2]*255):L,N=R.length>=3?Math.floor(R[3]*255):L;c[h]=u(L,p,N);break}}}}return c},"ParseObjMaterial");o.exports=T},92570:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){var c,A;if(T===void 0&&d===void 0){var h=s.getInCenter();c=h.x,A=h.y}var f=Math.cos(u),S=Math.sin(u),O=s.vertex1,L=s.vertex2,p=s.vertex3,N=O.x-c,g=O.y-A;O.set(N*f-g*S+c,N*S+g*f+A),N=L.x-c,g=L.y-A,L.set(N*f-g*S+c,N*S+g*f+A),N=p.x-c,g=p.y-A,p.set(N*f-g*S+c,N*S+g*f+A)},"RotateFace");o.exports=m},39318:(o,m,s)=>{/** + */var O=v(function(s,u,T,A){var c,d;if(T===void 0&&A===void 0){var h=s.getInCenter();c=h.x,d=h.y}var f=Math.cos(u),S=Math.sin(u),R=s.vertex1,L=s.vertex2,p=s.vertex3,N=R.x-c,g=R.y-d;R.set(N*f-g*S+c,N*S+g*f+d),N=L.x-c,g=L.y-d,L.set(N*f-g*S+c,N*S+g*f+d),N=p.x-c,g=p.y-d,p.set(N*f-g*S+c,N*S+g*f+d)},"RotateFace");o.exports=O},39318:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(70554),d=s(25836),c=new u({Extends:d,initialize:P(function(h,f,S,O,L,p,N,g,C,v){p===void 0&&(p=16777215),N===void 0&&(N=1),g===void 0&&(g=0),C===void 0&&(C=0),v===void 0&&(v=0),d.call(this,h,f,S),this.vx=0,this.vy=0,this.vz=0,this.nx=g,this.ny=C,this.nz=v,this.u=O,this.v=L,this.color=p,this.alpha=N,this.tx=0,this.ty=0,this.ta=0,this.tu=O,this.tv=L},"Vertex"),setUVs:function(A,h){return this.u=A,this.v=h,this.tu=A,this.tv=h,this},scrollUV:function(A,h){return this.tu+=A,this.tv+=h,this},scaleUV:function(A,h){return this.tu=this.u*A,this.tv=this.v*h,this},transformCoordinatesLocal:function(A,h,f,S){var O=this.x,L=this.y,p=this.z,N=A.val,g=O*N[0]+L*N[4]+p*N[8]+N[12],C=O*N[1]+L*N[5]+p*N[9]+N[13],v=O*N[2]+L*N[6]+p*N[10]+N[14],M=O*N[3]+L*N[7]+p*N[11]+N[15];this.vx=g/M*h,this.vy=-(C/M)*f,S<=0?this.vz=v/M:this.vz=-(v/M)},resize:function(A,h,f,S,O,L){return this.x=A,this.y=h,this.vx=this.x*f,this.vy=-this.y*S,this.vz=0,O<.5?this.vx+=f*(.5-O):O>.5&&(this.vx-=f*(O-.5)),L<.5?this.vy+=S*(.5-L):L>.5&&(this.vy-=S*(L-.5)),this},update:function(A,h,f,S,O,L,p,N){var g=this.vx*A+this.vy*f+O,C=this.vx*h+this.vy*S+L;return p&&(g=Math.round(g),C=Math.round(C)),this.tx=g,this.ty=C,this.ta=this.alpha*N,this},load:function(A,h,f,S,O){return A[++f]=this.tx,A[++f]=this.ty,A[++f]=this.tu,A[++f]=this.tv,A[++f]=S,A[++f]=O,h[++f]=T.getTintAppendFloatAlpha(this.color,this.ta),f}});o.exports=c},73090:(o,m,s)=>{/** + */var u=s(83419),T=s(70554),A=s(25836),c=new u({Extends:A,initialize:v(function(h,f,S,R,L,p,N,g,C,P){p===void 0&&(p=16777215),N===void 0&&(N=1),g===void 0&&(g=0),C===void 0&&(C=0),P===void 0&&(P=0),A.call(this,h,f,S),this.vx=0,this.vy=0,this.vz=0,this.nx=g,this.ny=C,this.nz=P,this.u=R,this.v=L,this.color=p,this.alpha=N,this.tx=0,this.ty=0,this.ta=0,this.tu=R,this.tv=L},"Vertex"),setUVs:function(d,h){return this.u=d,this.v=h,this.tu=d,this.tv=h,this},scrollUV:function(d,h){return this.tu+=d,this.tv+=h,this},scaleUV:function(d,h){return this.tu=this.u*d,this.tv=this.v*h,this},transformCoordinatesLocal:function(d,h,f,S){var R=this.x,L=this.y,p=this.z,N=d.val,g=R*N[0]+L*N[4]+p*N[8]+N[12],C=R*N[1]+L*N[5]+p*N[9]+N[13],P=R*N[2]+L*N[6]+p*N[10]+N[14],M=R*N[3]+L*N[7]+p*N[11]+N[15];this.vx=g/M*h,this.vy=-(C/M)*f,S<=0?this.vz=P/M:this.vz=-(P/M)},resize:function(d,h,f,S,R,L){return this.x=d,this.y=h,this.vx=this.x*f,this.vy=-this.y*S,this.vz=0,R<.5?this.vx+=f*(.5-R):R>.5&&(this.vx-=f*(R-.5)),L<.5?this.vy+=S*(.5-L):L>.5&&(this.vy-=S*(L-.5)),this},update:function(d,h,f,S,R,L,p,N){var g=this.vx*d+this.vy*f+R,C=this.vx*h+this.vy*S+L;return p&&(g=Math.round(g),C=Math.round(C)),this.tx=g,this.ty=C,this.ta=this.alpha*N,this},load:function(d,h,f,S,R){return d[++f]=this.tx,d[++f]=this.ty,d[++f]=this.tu,d[++f]=this.tv,d[++f]=S,d[++f]=R,h[++f]=T.getTintAppendFloatAlpha(this.color,this.ta),f}});o.exports=c},73090:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2631,120 +2631,120 @@ var dne=Object.defineProperty;var P=(n,t)=>dne(n,"name",{value:t,configurable:!0 * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s.setTo(Math.ceil(s.x),Math.ceil(s.y))},"Ceil");o.exports=m},99706:(o,m,s)=>{/** + */var O=v(function(s){return s.setTo(Math.ceil(s.x),Math.ceil(s.y))},"Ceil");o.exports=O},99706:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=P(function(d){return new u(d.x,d.y)},"Clone");o.exports=T},68010:o=>{/** + */var u=s(2141),T=v(function(A){return new u(A.x,A.y)},"Clone");o.exports=T},68010:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return u.setTo(s.x,s.y)},"CopyFrom");o.exports=m},27814:o=>{/** + */var O=v(function(s,u){return u.setTo(s.x,s.y)},"CopyFrom");o.exports=O},27814:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return s.x===u.x&&s.y===u.y},"Equals");o.exports=m},73565:o=>{/** + */var O=v(function(s,u){return s.x===u.x&&s.y===u.y},"Equals");o.exports=O},73565:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s.setTo(Math.floor(s.x),Math.floor(s.y))},"Floor");o.exports=m},87555:(o,m,s)=>{/** + */var O=v(function(s){return s.setTo(Math.floor(s.x),Math.floor(s.y))},"Floor");o.exports=O},87555:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=P(function(d,c){if(c===void 0&&(c=new u),!Array.isArray(d))throw new Error("GetCentroid points argument must be an array");var A=d.length;if(A<1)throw new Error("GetCentroid points array must not be empty");if(A===1)c.x=d[0].x,c.y=d[0].y;else{for(var h=0;h{/** + */var u=s(2141),T=v(function(A,c){if(c===void 0&&(c=new u),!Array.isArray(A))throw new Error("GetCentroid points argument must be an array");var d=A.length;if(d<1)throw new Error("GetCentroid points array must not be empty");if(d===1)c.x=A[0].x,c.y=A[0].y;else{for(var h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return Math.sqrt(s.x*s.x+s.y*s.y)},"GetMagnitude");o.exports=m},44405:o=>{/** + */var O=v(function(s){return Math.sqrt(s.x*s.x+s.y*s.y)},"GetMagnitude");o.exports=O},44405:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s.x*s.x+s.y*s.y},"GetMagnitudeSq");o.exports=m},20873:(o,m,s)=>{/** + */var O=v(function(s){return s.x*s.x+s.y*s.y},"GetMagnitudeSq");o.exports=O},20873:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(87841),T=P(function(d,c){c===void 0&&(c=new u);for(var A=Number.NEGATIVE_INFINITY,h=Number.POSITIVE_INFINITY,f=Number.NEGATIVE_INFINITY,S=Number.POSITIVE_INFINITY,O=0;OA&&(A=L.x),L.xf&&(f=L.y),L.y{/** + */var u=s(87841),T=v(function(A,c){c===void 0&&(c=new u);for(var d=Number.NEGATIVE_INFINITY,h=Number.POSITIVE_INFINITY,f=Number.NEGATIVE_INFINITY,S=Number.POSITIVE_INFINITY,R=0;Rd&&(d=L.x),L.xf&&(f=L.y),L.y{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=P(function(d,c,A,h){return A===void 0&&(A=0),h===void 0&&(h=new u),h.x=d.x+(c.x-d.x)*A,h.y=d.y+(c.y-d.y)*A,h},"Interpolate");o.exports=T},55767:o=>{/** + */var u=s(2141),T=v(function(A,c,d,h){return d===void 0&&(d=0),h===void 0&&(h=new u),h.x=A.x+(c.x-A.x)*d,h.y=A.y+(c.y-A.y)*d,h},"Interpolate");o.exports=T},55767:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s.setTo(s.y,s.x)},"Invert");o.exports=m},79432:(o,m,s)=>{/** + */var O=v(function(s){return s.setTo(s.y,s.x)},"Invert");o.exports=O},79432:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=P(function(d,c){return c===void 0&&(c=new u),c.setTo(-d.x,-d.y)},"Negative");o.exports=T},2141:(o,m,s)=>{/** + */var u=s(2141),T=v(function(A,c){return c===void 0&&(c=new u),c.setTo(-A.x,-A.y)},"Negative");o.exports=T},2141:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(23777),d=new u({initialize:P(function(A,h){A===void 0&&(A=0),h===void 0&&(h=A),this.type=T.POINT,this.x=A,this.y=h},"Point"),setTo:function(c,A){return c===void 0&&(c=0),A===void 0&&(A=c),this.x=c,this.y=A,this}});o.exports=d},72930:(o,m,s)=>{/** + */var u=s(83419),T=s(23777),A=new u({initialize:v(function(d,h){d===void 0&&(d=0),h===void 0&&(h=d),this.type=T.POINT,this.x=d,this.y=h},"Point"),setTo:function(c,d){return c===void 0&&(c=0),d===void 0&&(d=c),this.x=c,this.y=d,this}});o.exports=A},72930:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=s(44405),d=P(function(c,A,h){h===void 0&&(h=new u);var f=c.x*A.x+c.y*A.y,S=f/T(A);return S!==0&&(h.x=S*A.x,h.y=S*A.y),h},"Project");o.exports=d},62880:(o,m,s)=>{/** + */var u=s(2141),T=s(44405),A=v(function(c,d,h){h===void 0&&(h=new u);var f=c.x*d.x+c.y*d.y,S=f/T(d);return S!==0&&(h.x=S*d.x,h.y=S*d.y),h},"Project");o.exports=A},62880:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=P(function(d,c,A){A===void 0&&(A=new u);var h=d.x*c.x+d.y*c.y;return h!==0&&(A.x=h*c.x,A.y=h*c.y),A},"ProjectUnit");o.exports=T},15093:(o,m,s)=>{/** + */var u=s(2141),T=v(function(A,c,d){d===void 0&&(d=new u);var h=A.x*c.x+A.y*c.y;return h!==0&&(d.x=h*c.x,d.y=h*c.y),d},"ProjectUnit");o.exports=T},15093:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(28793),T=P(function(d,c){if(d.x!==0||d.y!==0){var A=u(d);d.x/=A,d.y/=A}return d.x*=c,d.y*=c,d},"SetMagnitude");o.exports=T},43711:(o,m,s)=>{/** + */var u=s(28793),T=v(function(A,c){if(A.x!==0||A.y!==0){var d=u(A);A.x/=d,A.y/=d}return A.x*=c,A.y*=c,A},"SetMagnitude");o.exports=T},43711:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141);u.Ceil=s(96550),u.Clone=s(99706),u.CopyFrom=s(68010),u.Equals=s(27814),u.Floor=s(73565),u.GetCentroid=s(87555),u.GetMagnitude=s(28793),u.GetMagnitudeSq=s(44405),u.GetRectangleFromPoints=s(20873),u.Interpolate=s(26152),u.Invert=s(55767),u.Negative=s(79432),u.Project=s(72930),u.ProjectUnit=s(62880),u.SetMagnitude=s(15093),o.exports=u},12306:(o,m,s)=>{/** + */var u=s(2141);u.Ceil=s(96550),u.Clone=s(99706),u.CopyFrom=s(68010),u.Equals=s(27814),u.Floor=s(73565),u.GetCentroid=s(87555),u.GetMagnitude=s(28793),u.GetMagnitudeSq=s(44405),u.GetRectangleFromPoints=s(20873),u.Interpolate=s(26152),u.Invert=s(55767),u.Negative=s(79432),u.Project=s(72930),u.ProjectUnit=s(62880),u.SetMagnitude=s(15093),o.exports=u},12306:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(25717),T=P(function(d){return new u(d.points)},"Clone");o.exports=T},63814:o=>{/** + */var u=s(25717),T=v(function(A){return new u(A.points)},"Clone");o.exports=T},63814:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){for(var d=!1,c=-1,A=s.points.length-1;++c{/** + */var O=v(function(s,u,T){for(var A=!1,c=-1,d=s.points.length-1;++c{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(63814),T=P(function(d,c){return u(d,c.x,c.y)},"ContainsPoint");o.exports=T},94811:o=>{/** + */var u=s(63814),T=v(function(A,c){return u(A,c.x,c.y)},"ContainsPoint");o.exports=T},94811:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */function m(z,j,x){x=x||2;var X=j&&j.length,q=X?j[0]*x:z.length,J=s(z,0,q,x,!0),ae=[];if(!J||J.next===J.prev)return ae;var re,oe,Ee,Re,Le,ve,ye;if(X&&(J=f(z,j,J,x)),z.length>80*x){re=Ee=z[0],oe=Re=z[1];for(var De=x;DeEe&&(Ee=Le),ve>Re&&(Re=ve);ye=Math.max(Ee-re,Re-oe),ye=ye!==0?32767/ye:0}return T(J,ae,x,re,oe,ye,0),ae}P(m,"earcut");function s(z,j,x,X,q){var J,ae;if(q===te(z,j,x,X)>0)for(J=j;J=j;J-=X)ae=Z(J,z[J],z[J+1],ae);return ae&&H(ae,ae.next)&&($(ae),ae=ae.next),ae}P(s,"linkedList");function u(z,j){if(!z)return z;j||(j=z);var x=z,X;do if(X=!1,!x.steiner&&(H(x,x.next)||G(x.prev,x,x.next)===0)){if($(x),x=j=x.prev,x===x.next)break;X=!0}else x=x.next;while(X||x!==j);return j}P(u,"filterPoints");function T(z,j,x,X,q,J,ae){if(z){!ae&&J&&N(z,X,q,J);for(var re=z,oe,Ee;z.prev!==z.next;){if(oe=z.prev,Ee=z.next,J?c(z,X,q,J):d(z)){j.push(oe.i/x|0),j.push(z.i/x|0),j.push(Ee.i/x|0),$(z),z=Ee.next,re=Ee.next;continue}if(z=Ee,z===re){ae?ae===1?(z=A(u(z),j,x),T(z,j,x,X,q,J,2)):ae===2&&h(z,j,x,X,q,J):T(u(z),j,x,X,q,J,1);break}}}}P(T,"earcutLinked");function d(z){var j=z.prev,x=z,X=z.next;if(G(j,x,X)>=0)return!1;for(var q=j.x,J=x.x,ae=X.x,re=j.y,oe=x.y,Ee=X.y,Re=qJ?q>ae?q:ae:J>ae?J:ae,ye=re>oe?re>Ee?re:Ee:oe>Ee?oe:Ee,De=X.next;De!==j;){if(De.x>=Re&&De.x<=ve&&De.y>=Le&&De.y<=ye&&M(q,re,J,oe,ae,Ee,De.x,De.y)&&G(De.prev,De,De.next)>=0)return!1;De=De.next}return!0}P(d,"isEar");function c(z,j,x,X){var q=z.prev,J=z,ae=z.next;if(G(q,J,ae)>=0)return!1;for(var re=q.x,oe=J.x,Ee=ae.x,Re=q.y,Le=J.y,ve=ae.y,ye=reoe?re>Ee?re:Ee:oe>Ee?oe:Ee,it=Re>Le?Re>ve?Re:ve:Le>ve?Le:ve,lt=C(ye,De,j,x,X),at=C(ke,it,j,x,X),Ge=z.prevZ,Je=z.nextZ;Ge&&Ge.z>=lt&&Je&&Je.z<=at;){if(Ge.x>=ye&&Ge.x<=ke&&Ge.y>=De&&Ge.y<=it&&Ge!==q&&Ge!==ae&&M(re,Re,oe,Le,Ee,ve,Ge.x,Ge.y)&&G(Ge.prev,Ge,Ge.next)>=0||(Ge=Ge.prevZ,Je.x>=ye&&Je.x<=ke&&Je.y>=De&&Je.y<=it&&Je!==q&&Je!==ae&&M(re,Re,oe,Le,Ee,ve,Je.x,Je.y)&&G(Je.prev,Je,Je.next)>=0))return!1;Je=Je.nextZ}for(;Ge&&Ge.z>=lt;){if(Ge.x>=ye&&Ge.x<=ke&&Ge.y>=De&&Ge.y<=it&&Ge!==q&&Ge!==ae&&M(re,Re,oe,Le,Ee,ve,Ge.x,Ge.y)&&G(Ge.prev,Ge,Ge.next)>=0)return!1;Ge=Ge.prevZ}for(;Je&&Je.z<=at;){if(Je.x>=ye&&Je.x<=ke&&Je.y>=De&&Je.y<=it&&Je!==q&&Je!==ae&&M(re,Re,oe,Le,Ee,ve,Je.x,Je.y)&&G(Je.prev,Je,Je.next)>=0)return!1;Je=Je.nextZ}return!0}P(c,"isEarHashed");function A(z,j,x){var X=z;do{var q=X.prev,J=X.next.next;!H(q,J)&&B(q,X,X.next,J)&&F(q,J)&&F(J,q)&&(j.push(q.i/x|0),j.push(X.i/x|0),j.push(J.i/x|0),$(X),$(X.next),X=z=J),X=X.next}while(X!==z);return u(X)}P(A,"cureLocalIntersections");function h(z,j,x,X,q,J){var ae=z;do{for(var re=ae.next.next;re!==ae.prev;){if(ae.i!==re.i&&D(ae,re)){var oe=V(ae,re);ae=u(ae,ae.next),oe=u(oe,oe.next),T(ae,j,x,X,q,J,0),T(oe,j,x,X,q,J,0);return}re=re.next}ae=ae.next}while(ae!==z)}P(h,"splitEarcut");function f(z,j,x,X){var q=[],J,ae,re,oe,Ee;for(J=0,ae=j.length;J=x.next.y&&x.next.y!==x.y){var re=x.x+(q-x.y)*(x.next.x-x.x)/(x.next.y-x.y);if(re<=X&&re>J&&(J=re,ae=x.x=x.x&&x.x>=Ee&&X!==x.x&&M(qae.x||x.x===ae.x&&p(ae,x)))&&(ae=x,Le=ve)),x=x.next;while(x!==oe);return ae}P(L,"findHoleBridge");function p(z,j){return G(z.prev,z,j.prev)<0&&G(j.next,z,z.next)<0}P(p,"sectorContainsSector");function N(z,j,x,X){var q=z;do q.z===0&&(q.z=C(q.x,q.y,j,x,X)),q.prevZ=q.prev,q.nextZ=q.next,q=q.next;while(q!==z);q.prevZ.nextZ=null,q.prevZ=null,g(q)}P(N,"indexCurve");function g(z){var j,x,X,q,J,ae,re,oe,Ee=1;do{for(x=z,z=null,J=null,ae=0;x;){for(ae++,X=x,re=0,j=0;j0||oe>0&&X;)re!==0&&(oe===0||!X||x.z<=X.z)?(q=x,x=x.nextZ,re--):(q=X,X=X.nextZ,oe--),J?J.nextZ=q:z=q,q.prevZ=J,J=q;x=X}J.nextZ=null,Ee*=2}while(ae>1);return z}P(g,"sortLinked");function C(z,j,x,X,q){return z=(z-x)*q|0,j=(j-X)*q|0,z=(z|z<<8)&16711935,z=(z|z<<4)&252645135,z=(z|z<<2)&858993459,z=(z|z<<1)&1431655765,j=(j|j<<8)&16711935,j=(j|j<<4)&252645135,j=(j|j<<2)&858993459,j=(j|j<<1)&1431655765,z|j<<1}P(C,"zOrder");function v(z){var j=z,x=z;do(j.x=(z-ae)*(J-re)&&(z-ae)*(X-re)>=(x-ae)*(j-re)&&(x-ae)*(J-re)>=(q-ae)*(X-re)}P(M,"pointInTriangle");function D(z,j){return z.next.i!==j.i&&z.prev.i!==j.i&&!b(z,j)&&(F(z,j)&&F(j,z)&&k(z,j)&&(G(z.prev,z,j.prev)||G(z,j.prev,j))||H(z,j)&&G(z.prev,z,z.next)>0&&G(j.prev,j,j.next)>0)}P(D,"isValidDiagonal");function G(z,j,x){return(j.y-z.y)*(x.x-j.x)-(j.x-z.x)*(x.y-j.y)}P(G,"area");function H(z,j){return z.x===j.x&&z.y===j.y}P(H,"equals");function B(z,j,x,X){var q=w(G(z,j,x)),J=w(G(z,j,X)),ae=w(G(x,X,z)),re=w(G(x,X,j));return!!(q!==J&&ae!==re||q===0&&_(z,x,j)||J===0&&_(z,X,j)||ae===0&&_(x,z,X)||re===0&&_(x,j,X))}P(B,"intersects");function _(z,j,x){return j.x<=Math.max(z.x,x.x)&&j.x>=Math.min(z.x,x.x)&&j.y<=Math.max(z.y,x.y)&&j.y>=Math.min(z.y,x.y)}P(_,"onSegment");function w(z){return z>0?1:z<0?-1:0}P(w,"sign");function b(z,j){var x=z;do{if(x.i!==z.i&&x.next.i!==z.i&&x.i!==j.i&&x.next.i!==j.i&&B(x,x.next,z,j))return!0;x=x.next}while(x!==z);return!1}P(b,"intersectsPolygon");function F(z,j){return G(z.prev,z,z.next)<0?G(z,j,z.next)>=0&&G(z,z.prev,j)>=0:G(z,j,z.prev)<0||G(z,z.next,j)<0}P(F,"locallyInside");function k(z,j){var x=z,X=!1,q=(z.x+j.x)/2,J=(z.y+j.y)/2;do x.y>J!=x.next.y>J&&x.next.y!==x.y&&q<(x.next.x-x.x)*(J-x.y)/(x.next.y-x.y)+x.x&&(X=!X),x=x.next;while(x!==z);return X}P(k,"middleInside");function V(z,j){var x=new Q(z.i,z.x,z.y),X=new Q(j.i,j.x,j.y),q=z.next,J=j.prev;return z.next=j,j.prev=z,x.next=q,q.prev=x,X.next=x,x.prev=X,J.next=X,X.prev=J,X}P(V,"splitPolygon");function Z(z,j,x,X){var q=new Q(z,j,x);return X?(q.next=X.next,q.prev=X,X.next.prev=q,X.next=q):(q.prev=q,q.next=q),q}P(Z,"insertNode");function $(z){z.next.prev=z.prev,z.prev.next=z.next,z.prevZ&&(z.prevZ.nextZ=z.nextZ),z.nextZ&&(z.nextZ.prevZ=z.prevZ)}P($,"removeNode");function Q(z,j,x){this.i=z,this.x=j,this.y=x,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}P(Q,"Node"),m.deviation=function(z,j,x,X){var q=j&&j.length,J=q?j[0]*x:z.length,ae=Math.abs(te(z,0,J,x));if(q)for(var re=0,oe=j.length;re0&&(X+=z[q-1].length,x.holes.push(X))}return x},o.exports=m},13829:(o,m,s)=>{/** + */function O(z,j,k){k=k||2;var X=j&&j.length,q=X?j[0]*k:z.length,J=s(z,0,q,k,!0),ne=[];if(!J||J.next===J.prev)return ne;var re,oe,Ee,me,Le,Pe,ye;if(X&&(J=f(z,j,J,k)),z.length>80*k){re=Ee=z[0],oe=me=z[1];for(var De=k;DeEe&&(Ee=Le),Pe>me&&(me=Pe);ye=Math.max(Ee-re,me-oe),ye=ye!==0?32767/ye:0}return T(J,ne,k,re,oe,ye,0),ne}v(O,"earcut");function s(z,j,k,X,q){var J,ne;if(q===te(z,j,k,X)>0)for(J=j;J=j;J-=X)ne=Z(J,z[J],z[J+1],ne);return ne&&H(ne,ne.next)&&($(ne),ne=ne.next),ne}v(s,"linkedList");function u(z,j){if(!z)return z;j||(j=z);var k=z,X;do if(X=!1,!k.steiner&&(H(k,k.next)||G(k.prev,k,k.next)===0)){if($(k),k=j=k.prev,k===k.next)break;X=!0}else k=k.next;while(X||k!==j);return j}v(u,"filterPoints");function T(z,j,k,X,q,J,ne){if(z){!ne&&J&&N(z,X,q,J);for(var re=z,oe,Ee;z.prev!==z.next;){if(oe=z.prev,Ee=z.next,J?c(z,X,q,J):A(z)){j.push(oe.i/k|0),j.push(z.i/k|0),j.push(Ee.i/k|0),$(z),z=Ee.next,re=Ee.next;continue}if(z=Ee,z===re){ne?ne===1?(z=d(u(z),j,k),T(z,j,k,X,q,J,2)):ne===2&&h(z,j,k,X,q,J):T(u(z),j,k,X,q,J,1);break}}}}v(T,"earcutLinked");function A(z){var j=z.prev,k=z,X=z.next;if(G(j,k,X)>=0)return!1;for(var q=j.x,J=k.x,ne=X.x,re=j.y,oe=k.y,Ee=X.y,me=qJ?q>ne?q:ne:J>ne?J:ne,ye=re>oe?re>Ee?re:Ee:oe>Ee?oe:Ee,De=X.next;De!==j;){if(De.x>=me&&De.x<=Pe&&De.y>=Le&&De.y<=ye&&M(q,re,J,oe,ne,Ee,De.x,De.y)&&G(De.prev,De,De.next)>=0)return!1;De=De.next}return!0}v(A,"isEar");function c(z,j,k,X){var q=z.prev,J=z,ne=z.next;if(G(q,J,ne)>=0)return!1;for(var re=q.x,oe=J.x,Ee=ne.x,me=q.y,Le=J.y,Pe=ne.y,ye=reoe?re>Ee?re:Ee:oe>Ee?oe:Ee,it=me>Le?me>Pe?me:Pe:Le>Pe?Le:Pe,lt=C(ye,De,j,k,X),at=C(xe,it,j,k,X),Ge=z.prevZ,Je=z.nextZ;Ge&&Ge.z>=lt&&Je&&Je.z<=at;){if(Ge.x>=ye&&Ge.x<=xe&&Ge.y>=De&&Ge.y<=it&&Ge!==q&&Ge!==ne&&M(re,me,oe,Le,Ee,Pe,Ge.x,Ge.y)&&G(Ge.prev,Ge,Ge.next)>=0||(Ge=Ge.prevZ,Je.x>=ye&&Je.x<=xe&&Je.y>=De&&Je.y<=it&&Je!==q&&Je!==ne&&M(re,me,oe,Le,Ee,Pe,Je.x,Je.y)&&G(Je.prev,Je,Je.next)>=0))return!1;Je=Je.nextZ}for(;Ge&&Ge.z>=lt;){if(Ge.x>=ye&&Ge.x<=xe&&Ge.y>=De&&Ge.y<=it&&Ge!==q&&Ge!==ne&&M(re,me,oe,Le,Ee,Pe,Ge.x,Ge.y)&&G(Ge.prev,Ge,Ge.next)>=0)return!1;Ge=Ge.prevZ}for(;Je&&Je.z<=at;){if(Je.x>=ye&&Je.x<=xe&&Je.y>=De&&Je.y<=it&&Je!==q&&Je!==ne&&M(re,me,oe,Le,Ee,Pe,Je.x,Je.y)&&G(Je.prev,Je,Je.next)>=0)return!1;Je=Je.nextZ}return!0}v(c,"isEarHashed");function d(z,j,k){var X=z;do{var q=X.prev,J=X.next.next;!H(q,J)&&B(q,X,X.next,J)&&F(q,J)&&F(J,q)&&(j.push(q.i/k|0),j.push(X.i/k|0),j.push(J.i/k|0),$(X),$(X.next),X=z=J),X=X.next}while(X!==z);return u(X)}v(d,"cureLocalIntersections");function h(z,j,k,X,q,J){var ne=z;do{for(var re=ne.next.next;re!==ne.prev;){if(ne.i!==re.i&&D(ne,re)){var oe=V(ne,re);ne=u(ne,ne.next),oe=u(oe,oe.next),T(ne,j,k,X,q,J,0),T(oe,j,k,X,q,J,0);return}re=re.next}ne=ne.next}while(ne!==z)}v(h,"splitEarcut");function f(z,j,k,X){var q=[],J,ne,re,oe,Ee;for(J=0,ne=j.length;J=k.next.y&&k.next.y!==k.y){var re=k.x+(q-k.y)*(k.next.x-k.x)/(k.next.y-k.y);if(re<=X&&re>J&&(J=re,ne=k.x=k.x&&k.x>=Ee&&X!==k.x&&M(qne.x||k.x===ne.x&&p(ne,k)))&&(ne=k,Le=Pe)),k=k.next;while(k!==oe);return ne}v(L,"findHoleBridge");function p(z,j){return G(z.prev,z,j.prev)<0&&G(j.next,z,z.next)<0}v(p,"sectorContainsSector");function N(z,j,k,X){var q=z;do q.z===0&&(q.z=C(q.x,q.y,j,k,X)),q.prevZ=q.prev,q.nextZ=q.next,q=q.next;while(q!==z);q.prevZ.nextZ=null,q.prevZ=null,g(q)}v(N,"indexCurve");function g(z){var j,k,X,q,J,ne,re,oe,Ee=1;do{for(k=z,z=null,J=null,ne=0;k;){for(ne++,X=k,re=0,j=0;j0||oe>0&&X;)re!==0&&(oe===0||!X||k.z<=X.z)?(q=k,k=k.nextZ,re--):(q=X,X=X.nextZ,oe--),J?J.nextZ=q:z=q,q.prevZ=J,J=q;k=X}J.nextZ=null,Ee*=2}while(ne>1);return z}v(g,"sortLinked");function C(z,j,k,X,q){return z=(z-k)*q|0,j=(j-X)*q|0,z=(z|z<<8)&16711935,z=(z|z<<4)&252645135,z=(z|z<<2)&858993459,z=(z|z<<1)&1431655765,j=(j|j<<8)&16711935,j=(j|j<<4)&252645135,j=(j|j<<2)&858993459,j=(j|j<<1)&1431655765,z|j<<1}v(C,"zOrder");function P(z){var j=z,k=z;do(j.x=(z-ne)*(J-re)&&(z-ne)*(X-re)>=(k-ne)*(j-re)&&(k-ne)*(J-re)>=(q-ne)*(X-re)}v(M,"pointInTriangle");function D(z,j){return z.next.i!==j.i&&z.prev.i!==j.i&&!_(z,j)&&(F(z,j)&&F(j,z)&&x(z,j)&&(G(z.prev,z,j.prev)||G(z,j.prev,j))||H(z,j)&&G(z.prev,z,z.next)>0&&G(j.prev,j,j.next)>0)}v(D,"isValidDiagonal");function G(z,j,k){return(j.y-z.y)*(k.x-j.x)-(j.x-z.x)*(k.y-j.y)}v(G,"area");function H(z,j){return z.x===j.x&&z.y===j.y}v(H,"equals");function B(z,j,k,X){var q=w(G(z,j,k)),J=w(G(z,j,X)),ne=w(G(k,X,z)),re=w(G(k,X,j));return!!(q!==J&&ne!==re||q===0&&b(z,k,j)||J===0&&b(z,X,j)||ne===0&&b(k,z,X)||re===0&&b(k,j,X))}v(B,"intersects");function b(z,j,k){return j.x<=Math.max(z.x,k.x)&&j.x>=Math.min(z.x,k.x)&&j.y<=Math.max(z.y,k.y)&&j.y>=Math.min(z.y,k.y)}v(b,"onSegment");function w(z){return z>0?1:z<0?-1:0}v(w,"sign");function _(z,j){var k=z;do{if(k.i!==z.i&&k.next.i!==z.i&&k.i!==j.i&&k.next.i!==j.i&&B(k,k.next,z,j))return!0;k=k.next}while(k!==z);return!1}v(_,"intersectsPolygon");function F(z,j){return G(z.prev,z,z.next)<0?G(z,j,z.next)>=0&&G(z,z.prev,j)>=0:G(z,j,z.prev)<0||G(z,z.next,j)<0}v(F,"locallyInside");function x(z,j){var k=z,X=!1,q=(z.x+j.x)/2,J=(z.y+j.y)/2;do k.y>J!=k.next.y>J&&k.next.y!==k.y&&q<(k.next.x-k.x)*(J-k.y)/(k.next.y-k.y)+k.x&&(X=!X),k=k.next;while(k!==z);return X}v(x,"middleInside");function V(z,j){var k=new Q(z.i,z.x,z.y),X=new Q(j.i,j.x,j.y),q=z.next,J=j.prev;return z.next=j,j.prev=z,k.next=q,q.prev=k,X.next=k,k.prev=X,J.next=X,X.prev=J,X}v(V,"splitPolygon");function Z(z,j,k,X){var q=new Q(z,j,k);return X?(q.next=X.next,q.prev=X,X.next.prev=q,X.next=q):(q.prev=q,q.next=q),q}v(Z,"insertNode");function $(z){z.next.prev=z.prev,z.prev.next=z.next,z.prevZ&&(z.prevZ.nextZ=z.nextZ),z.nextZ&&(z.nextZ.prevZ=z.prevZ)}v($,"removeNode");function Q(z,j,k){this.i=z,this.x=j,this.y=k,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}v(Q,"Node"),O.deviation=function(z,j,k,X){var q=j&&j.length,J=q?j[0]*k:z.length,ne=Math.abs(te(z,0,J,k));if(q)for(var re=0,oe=j.length;re0&&(X+=z[q-1].length,k.holes.push(X))}return k},o.exports=O},13829:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(87841),T=P(function(d,c){c===void 0&&(c=new u);for(var A=1/0,h=1/0,f=-A,S=-h,O,L=0;L{/** + */var u=s(87841),T=v(function(A,c){c===void 0&&(c=new u);for(var d=1/0,h=1/0,f=-d,S=-h,R,L=0;L{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){u===void 0&&(u=[]);for(var T=0;T{/** + */var O=v(function(s,u){u===void 0&&(u=[]);for(var T=0;T{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(35001),T=s(23031),d=s(30052),c=P(function(A,h,f,S){S===void 0&&(S=[]);var O=A.points,L=d(A);!h&&f>0&&(h=L/f);for(var p=0;pg+G){g+=G;continue}var H=D.getPoint((N-g)/G);S.push(H);break}return S},"GetPoints");o.exports=c},30052:(o,m,s)=>{/** + */var u=s(35001),T=s(23031),A=s(30052),c=v(function(d,h,f,S){S===void 0&&(S=[]);var R=d.points,L=A(d);!h&&f>0&&(h=L/f);for(var p=0;pg+G){g+=G;continue}var H=D.getPoint((N-g)/G);S.push(H);break}return S},"GetPoints");o.exports=c},30052:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(35001),T=s(23031),d=P(function(c){for(var A=c.points,h=0,f=0;f{/** + */var u=s(35001),T=s(23031),A=v(function(c){for(var d=c.points,h=0,f=0;f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(63814),d=s(9564),c=s(23777),A=new u({initialize:P(function(f){this.type=c.POLYGON,this.area=0,this.points=[],f&&this.setTo(f)},"Polygon"),contains:function(h,f){return T(this,h,f)},setTo:function(h){if(this.area=0,this.points=[],typeof h=="string"&&(h=h.split(" ")),!Array.isArray(h))return this;for(var f,S=0;S{/** + */var u=s(83419),T=s(63814),A=s(9564),c=s(23777),d=new u({initialize:v(function(f){this.type=c.POLYGON,this.area=0,this.points=[],f&&this.setTo(f)},"Polygon"),contains:function(h,f){return T(this,h,f)},setTo:function(h){if(this.area=0,this.points=[],typeof h=="string"&&(h=h.split(" ")),!Array.isArray(h))return this;for(var f,S=0;S{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s.points.reverse(),s},"Reverse");o.exports=m},29524:o=>{function m(A,h){var f=A.x-h.x,S=A.y-h.y;return f*f+S*S}P(m,"getSqDist");function s(A,h,f){var S=h.x,O=h.y,L=f.x-S,p=f.y-O;if(L!==0||p!==0){var N=((A.x-S)*L+(A.y-O)*p)/(L*L+p*p);N>1?(S=f.x,O=f.y):N>0&&(S+=L*N,O+=p*N)}return L=A.x-S,p=A.y-O,L*L+p*p}P(s,"getSqSegDist");function u(A,h){for(var f=A[0],S=[f],O,L=1,p=A.length;Lh&&(S.push(O),f=O);return f!==O&&S.push(O),S}P(u,"simplifyRadialDist");function T(A,h,f,S,O){for(var L=S,p,N=h+1;NL&&(p=N,L=g)}L>S&&(p-h>1&&T(A,h,p,S,O),O.push(A[p]),f-p>1&&T(A,p,f,S,O))}P(T,"simplifyDPStep");function d(A,h){var f=A.length-1,S=[A[0]];return T(A,0,f,h,S),S.push(A[f]),S}P(d,"simplifyDouglasPeucker");var c=P(function(A,h,f){h===void 0&&(h=1),f===void 0&&(f=!1);var S=A.points;if(S.length>2){var O=h*h;f||(S=u(S,O)),A.setTo(d(S,O))}return A},"Simplify");o.exports=c},5469:o=>{/** + */var O=v(function(s){return s.points.reverse(),s},"Reverse");o.exports=O},29524:o=>{function O(d,h){var f=d.x-h.x,S=d.y-h.y;return f*f+S*S}v(O,"getSqDist");function s(d,h,f){var S=h.x,R=h.y,L=f.x-S,p=f.y-R;if(L!==0||p!==0){var N=((d.x-S)*L+(d.y-R)*p)/(L*L+p*p);N>1?(S=f.x,R=f.y):N>0&&(S+=L*N,R+=p*N)}return L=d.x-S,p=d.y-R,L*L+p*p}v(s,"getSqSegDist");function u(d,h){for(var f=d[0],S=[f],R,L=1,p=d.length;Lh&&(S.push(R),f=R);return f!==R&&S.push(R),S}v(u,"simplifyRadialDist");function T(d,h,f,S,R){for(var L=S,p,N=h+1;NL&&(p=N,L=g)}L>S&&(p-h>1&&T(d,h,p,S,R),R.push(d[p]),f-p>1&&T(d,p,f,S,R))}v(T,"simplifyDPStep");function A(d,h){var f=d.length-1,S=[d[0]];return T(d,0,f,h,S),S.push(d[f]),S}v(A,"simplifyDouglasPeucker");var c=v(function(d,h,f){h===void 0&&(h=1),f===void 0&&(f=!1);var S=d.points;if(S.length>2){var R=h*h;f||(S=u(S,R)),d.setTo(A(S,R))}return d},"Simplify");o.exports=c},5469:o=>{/** * @author Richard Davey * @author Igor Ognichenko * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(u,T){return u[0]=T[0],u[1]=T[1],u},"copy"),s=P(function(u){var T,d=[],c=u.points;for(T=0;T0&&A.push(m([0,0],d[0])),T=0;T1&&A.push(m([0,0],d[d.length-1])),u.setTo(A)},"Smooth");o.exports=s},24709:o=>{/** + */var O=v(function(u,T){return u[0]=T[0],u[1]=T[1],u},"copy"),s=v(function(u){var T,A=[],c=u.points;for(T=0;T0&&d.push(O([0,0],A[0])),T=0;T1&&d.push(O([0,0],A[A.length-1])),u.setTo(d)},"Smooth");o.exports=s},24709:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){for(var d=s.points,c=0;c{/** + */var O=v(function(s,u,T){for(var A=s.points,c=0;c{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2752,159 +2752,159 @@ var dne=Object.defineProperty;var P=(n,t)=>dne(n,"name",{value:t,configurable:!0 * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s.width*s.height},"Area");o.exports=m},98615:o=>{/** + */var O=v(function(s){return s.width*s.height},"Area");o.exports=O},98615:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s.x=Math.ceil(s.x),s.y=Math.ceil(s.y),s},"Ceil");o.exports=m},31688:o=>{/** + */var O=v(function(s){return s.x=Math.ceil(s.x),s.y=Math.ceil(s.y),s},"Ceil");o.exports=O},31688:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s.x=Math.ceil(s.x),s.y=Math.ceil(s.y),s.width=Math.ceil(s.width),s.height=Math.ceil(s.height),s},"CeilAll");o.exports=m},67502:o=>{/** + */var O=v(function(s){return s.x=Math.ceil(s.x),s.y=Math.ceil(s.y),s.width=Math.ceil(s.width),s.height=Math.ceil(s.height),s},"CeilAll");o.exports=O},67502:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){return s.x=u-s.width/2,s.y=T-s.height/2,s},"CenterOn");o.exports=m},65085:(o,m,s)=>{/** + */var O=v(function(s,u,T){return s.x=u-s.width/2,s.y=T-s.height/2,s},"CenterOn");o.exports=O},65085:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(87841),T=P(function(d){return new u(d.x,d.y,d.width,d.height)},"Clone");o.exports=T},37303:o=>{/** + */var u=s(87841),T=v(function(A){return new u(A.x,A.y,A.width,A.height)},"Clone");o.exports=T},37303:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){return s.width<=0||s.height<=0?!1:s.x<=u&&s.x+s.width>=u&&s.y<=T&&s.y+s.height>=T},"Contains");o.exports=m},96553:(o,m,s)=>{/** + */var O=v(function(s,u,T){return s.width<=0||s.height<=0?!1:s.x<=u&&s.x+s.width>=u&&s.y<=T&&s.y+s.height>=T},"Contains");o.exports=O},96553:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(37303),T=P(function(d,c){return u(d,c.x,c.y)},"ContainsPoint");o.exports=T},70273:o=>{/** + */var u=s(37303),T=v(function(A,c){return u(A,c.x,c.y)},"ContainsPoint");o.exports=T},70273:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return u.width*u.height>s.width*s.height?!1:u.x>s.x&&u.xs.x&&u.rights.y&&u.ys.y&&u.bottom{/** + */var O=v(function(s,u){return u.width*u.height>s.width*s.height?!1:u.x>s.x&&u.xs.x&&u.rights.y&&u.ys.y&&u.bottom{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return u.setTo(s.x,s.y,s.width,s.height)},"CopyFrom");o.exports=m},77493:o=>{/** + */var O=v(function(s,u){return u.setTo(s.x,s.y,s.width,s.height)},"CopyFrom");o.exports=O},77493:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return u===void 0&&(u=[]),u.push({x:s.x,y:s.y}),u.push({x:s.right,y:s.y}),u.push({x:s.right,y:s.bottom}),u.push({x:s.x,y:s.bottom}),u},"Decompose");o.exports=m},9219:o=>{/** + */var O=v(function(s,u){return u===void 0&&(u=[]),u.push({x:s.x,y:s.y}),u.push({x:s.right,y:s.y}),u.push({x:s.right,y:s.bottom}),u.push({x:s.x,y:s.bottom}),u},"Decompose");o.exports=O},9219:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return s.x===u.x&&s.y===u.y&&s.width===u.width&&s.height===u.height},"Equals");o.exports=m},53751:(o,m,s)=>{/** + */var O=v(function(s,u){return s.x===u.x&&s.y===u.y&&s.width===u.width&&s.height===u.height},"Equals");o.exports=O},53751:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(8249),T=P(function(d,c){var A=u(d);return A{/** + */var u=s(8249),T=v(function(A,c){var d=u(A);return d{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(8249),T=P(function(d,c){var A=u(d);return A>u(c)?d.setSize(c.height*A,c.height):d.setSize(c.width,c.width/A),d.setPosition(c.centerX-d.width/2,c.centerY-d.height/2)},"FitOutside");o.exports=T},80774:o=>{/** + */var u=s(8249),T=v(function(A,c){var d=u(A);return d>u(c)?A.setSize(c.height*d,c.height):A.setSize(c.width,c.width/d),A.setPosition(c.centerX-A.width/2,c.centerY-A.height/2)},"FitOutside");o.exports=T},80774:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s.x=Math.floor(s.x),s.y=Math.floor(s.y),s},"Floor");o.exports=m},83859:o=>{/** + */var O=v(function(s){return s.x=Math.floor(s.x),s.y=Math.floor(s.y),s},"Floor");o.exports=O},83859:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s.x=Math.floor(s.x),s.y=Math.floor(s.y),s.width=Math.floor(s.width),s.height=Math.floor(s.height),s},"FloorAll");o.exports=m},19217:(o,m,s)=>{/** + */var O=v(function(s){return s.x=Math.floor(s.x),s.y=Math.floor(s.y),s.width=Math.floor(s.width),s.height=Math.floor(s.height),s},"FloorAll");o.exports=O},19217:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(87841),T=s(36383),d=P(function(c,A){if(A===void 0&&(A=new u),c.length===0)return A;for(var h=Number.MAX_VALUE,f=Number.MAX_VALUE,S=T.MIN_SAFE_INTEGER,O=T.MIN_SAFE_INTEGER,L,p,N,g=0;g{/** + */var u=s(87841),T=s(36383),A=v(function(c,d){if(d===void 0&&(d=new u),c.length===0)return d;for(var h=Number.MAX_VALUE,f=Number.MAX_VALUE,S=T.MIN_SAFE_INTEGER,R=T.MIN_SAFE_INTEGER,L,p,N,g=0;g{/** * @author samme * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(87841),T=P(function(d,c,A,h,f){return f===void 0&&(f=new u),f.setTo(Math.min(d,A),Math.min(c,h),Math.abs(d-A),Math.abs(c-h))},"FromXY");o.exports=T},8249:o=>{/** + */var u=s(87841),T=v(function(A,c,d,h,f){return f===void 0&&(f=new u),f.setTo(Math.min(A,d),Math.min(c,h),Math.abs(A-d),Math.abs(c-h))},"FromXY");o.exports=T},8249:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s.height===0?NaN:s.width/s.height},"GetAspectRatio");o.exports=m},27165:(o,m,s)=>{/** + */var O=v(function(s){return s.height===0?NaN:s.width/s.height},"GetAspectRatio");o.exports=O},27165:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=P(function(d,c){return c===void 0&&(c=new u),c.x=d.centerX,c.y=d.centerY,c},"GetCenter");o.exports=T},20812:(o,m,s)=>{/** + */var u=s(2141),T=v(function(A,c){return c===void 0&&(c=new u),c.x=A.centerX,c.y=A.centerY,c},"GetCenter");o.exports=T},20812:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(13019),T=s(2141),d=P(function(c,A,h){if(h===void 0&&(h=new T),A<=0||A>=1)return h.x=c.x,h.y=c.y,h;var f=u(c)*A;return A>.5?(f-=c.width+c.height,f<=c.width?(h.x=c.right-f,h.y=c.bottom):(h.x=c.x,h.y=c.bottom-(f-c.width))):f<=c.width?(h.x=c.x+f,h.y=c.y):(h.x=c.right,h.y=c.y+(f-c.width)),h},"GetPoint");o.exports=d},34819:(o,m,s)=>{/** + */var u=s(13019),T=s(2141),A=v(function(c,d,h){if(h===void 0&&(h=new T),d<=0||d>=1)return h.x=c.x,h.y=c.y,h;var f=u(c)*d;return d>.5?(f-=c.width+c.height,f<=c.width?(h.x=c.right-f,h.y=c.bottom):(h.x=c.x,h.y=c.bottom-(f-c.width))):f<=c.width?(h.x=c.x+f,h.y=c.y):(h.x=c.right,h.y=c.y+(f-c.width)),h},"GetPoint");o.exports=A},34819:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(20812),T=s(13019),d=P(function(c,A,h,f){f===void 0&&(f=[]),!A&&h>0&&(A=T(c)/h);for(var S=0;S{/** + */var u=s(20812),T=s(13019),A=v(function(c,d,h,f){f===void 0&&(f=[]),!d&&h>0&&(d=T(c)/h);for(var S=0;S{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=P(function(d,c){return c===void 0&&(c=new u),c.x=d.width,c.y=d.height,c},"GetSize");o.exports=T},86091:(o,m,s)=>{/** + */var u=s(2141),T=v(function(A,c){return c===void 0&&(c=new u),c.x=A.width,c.y=A.height,c},"GetSize");o.exports=T},86091:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(67502),T=P(function(d,c,A){var h=d.centerX,f=d.centerY;return d.setSize(d.width+c*2,d.height+A*2),u(d,h,f)},"Inflate");o.exports=T},53951:(o,m,s)=>{/** + */var u=s(67502),T=v(function(A,c,d){var h=A.centerX,f=A.centerY;return A.setSize(A.width+c*2,A.height+d*2),u(A,h,f)},"Inflate");o.exports=T},53951:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(87841),T=s(59996),d=P(function(c,A,h){return h===void 0&&(h=new u),T(c,A)?(h.x=Math.max(c.x,A.x),h.y=Math.max(c.y,A.y),h.width=Math.min(c.right,A.right)-h.x,h.height=Math.min(c.bottom,A.bottom)-h.y):h.setEmpty(),h},"Intersection");o.exports=d},14649:(o,m,s)=>{/** + */var u=s(87841),T=s(59996),A=v(function(c,d,h){return h===void 0&&(h=new u),T(c,d)?(h.x=Math.max(c.x,d.x),h.y=Math.max(c.y,d.y),h.width=Math.min(c.right,d.right)-h.x,h.height=Math.min(c.bottom,d.bottom)-h.y):h.setEmpty(),h},"Intersection");o.exports=A},14649:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(13019),T=s(2141),d=P(function(c,A,h,f){if(f===void 0&&(f=[]),!A&&!h)return f;A?h=Math.round(u(c)/A):A=u(c)/h;for(var S=c.x,O=c.y,L=0,p=0;p=c.right&&(L=1,O+=S-c.right,S=c.right);break;case 1:O+=A,O>=c.bottom&&(L=2,S-=O-c.bottom,O=c.bottom);break;case 2:S-=A,S<=c.left&&(L=3,O-=c.left-S,S=c.left);break;case 3:O-=A,O<=c.top&&(L=0,O=c.top);break}return f},"MarchingAnts");o.exports=d},33595:o=>{/** + */var u=s(13019),T=s(2141),A=v(function(c,d,h,f){if(f===void 0&&(f=[]),!d&&!h)return f;d?h=Math.round(u(c)/d):d=u(c)/h;for(var S=c.x,R=c.y,L=0,p=0;p=c.right&&(L=1,R+=S-c.right,S=c.right);break;case 1:R+=d,R>=c.bottom&&(L=2,S-=R-c.bottom,R=c.bottom);break;case 2:S-=d,S<=c.left&&(L=3,R-=c.left-S,S=c.left);break;case 3:R-=d,R<=c.top&&(L=0,R=c.top);break}return f},"MarchingAnts");o.exports=A},33595:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){for(var T=s.x,d=s.right,c=s.y,A=s.bottom,h=0;h{/** + */var O=v(function(s,u){for(var T=s.x,A=s.right,c=s.y,d=s.bottom,h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){var T=Math.min(s.x,u.x),d=Math.max(s.right,u.right);s.x=T,s.width=d-T;var c=Math.min(s.y,u.y),A=Math.max(s.bottom,u.bottom);return s.y=c,s.height=A-c,s},"MergeRect");o.exports=m},92171:o=>{/** + */var O=v(function(s,u){var T=Math.min(s.x,u.x),A=Math.max(s.right,u.right);s.x=T,s.width=A-T;var c=Math.min(s.y,u.y),d=Math.max(s.bottom,u.bottom);return s.y=c,s.height=d-c,s},"MergeRect");o.exports=O},92171:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){var d=Math.min(s.x,u),c=Math.max(s.right,u);s.x=d,s.width=c-d;var A=Math.min(s.y,T),h=Math.max(s.bottom,T);return s.y=A,s.height=h-A,s},"MergeXY");o.exports=m},42981:o=>{/** + */var O=v(function(s,u,T){var A=Math.min(s.x,u),c=Math.max(s.right,u);s.x=A,s.width=c-A;var d=Math.min(s.y,T),h=Math.max(s.bottom,T);return s.y=d,s.height=h-d,s},"MergeXY");o.exports=O},42981:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){return s.x+=u,s.y+=T,s},"Offset");o.exports=m},46907:o=>{/** + */var O=v(function(s,u,T){return s.x+=u,s.y+=T,s},"Offset");o.exports=O},46907:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return s.x+=u.x,s.y+=u.y,s},"OffsetPoint");o.exports=m},60170:o=>{/** + */var O=v(function(s,u){return s.x+=u.x,s.y+=u.y,s},"OffsetPoint");o.exports=O},60170:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return s.xu.x&&s.yu.y},"Overlaps");o.exports=m},13019:o=>{/** + */var O=v(function(s,u){return s.xu.x&&s.yu.y},"Overlaps");o.exports=O},13019:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return 2*(s.width+s.height)},"Perimeter");o.exports=m},85133:(o,m,s)=>{/** + */var O=v(function(s){return 2*(s.width+s.height)},"Perimeter");o.exports=O},85133:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=s(39506),d=P(function(c,A,h){h===void 0&&(h=new u),A=T(A);var f=Math.sin(A),S=Math.cos(A),O=S>0?c.width/2:c.width/-2,L=f>0?c.height/2:c.height/-2;return Math.abs(O*f){/** + */var u=s(2141),T=s(39506),A=v(function(c,d,h){h===void 0&&(h=new u),d=T(d);var f=Math.sin(d),S=Math.cos(d),R=S>0?c.width/2:c.width/-2,L=f>0?c.height/2:c.height/-2;return Math.abs(R*f){/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=P(function(d,c){return c===void 0&&(c=new u),c.x=d.x+Math.random()*d.width,c.y=d.y+Math.random()*d.height,c},"Random");o.exports=T},86470:(o,m,s)=>{/** + */var u=s(2141),T=v(function(A,c){return c===void 0&&(c=new u),c.x=A.x+Math.random()*A.width,c.y=A.y+Math.random()*A.height,c},"Random");o.exports=T},86470:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(30976),T=s(70273),d=s(2141),c=P(function(A,h,f){if(f===void 0&&(f=new d),T(A,h))switch(u(0,3)){case 0:f.x=A.x+Math.random()*(h.right-A.x),f.y=A.y+Math.random()*(h.top-A.y);break;case 1:f.x=h.x+Math.random()*(A.right-h.x),f.y=h.bottom+Math.random()*(A.bottom-h.bottom);break;case 2:f.x=A.x+Math.random()*(h.x-A.x),f.y=h.y+Math.random()*(A.bottom-h.y);break;case 3:f.x=h.right+Math.random()*(A.right-h.right),f.y=A.y+Math.random()*(h.bottom-A.y);break}return f},"RandomOutside");o.exports=c},87841:(o,m,s)=>{/** + */var u=s(30976),T=s(70273),A=s(2141),c=v(function(d,h,f){if(f===void 0&&(f=new A),T(d,h))switch(u(0,3)){case 0:f.x=d.x+Math.random()*(h.right-d.x),f.y=d.y+Math.random()*(h.top-d.y);break;case 1:f.x=h.x+Math.random()*(d.right-h.x),f.y=h.bottom+Math.random()*(d.bottom-h.bottom);break;case 2:f.x=d.x+Math.random()*(h.x-d.x),f.y=h.y+Math.random()*(d.bottom-h.y);break;case 3:f.x=h.right+Math.random()*(d.right-h.right),f.y=d.y+Math.random()*(h.bottom-d.y);break}return f},"RandomOutside");o.exports=c},87841:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(37303),d=s(20812),c=s(34819),A=s(23777),h=s(23031),f=s(26597),S=new u({initialize:P(function(L,p,N,g){L===void 0&&(L=0),p===void 0&&(p=0),N===void 0&&(N=0),g===void 0&&(g=0),this.type=A.RECTANGLE,this.x=L,this.y=p,this.width=N,this.height=g},"Rectangle"),contains:function(O,L){return T(this,O,L)},getPoint:function(O,L){return d(this,O,L)},getPoints:function(O,L,p){return c(this,O,L,p)},getRandomPoint:function(O){return f(this,O)},setTo:function(O,L,p,N){return this.x=O,this.y=L,this.width=p,this.height=N,this},setEmpty:function(){return this.setTo(0,0,0,0)},setPosition:function(O,L){return L===void 0&&(L=O),this.x=O,this.y=L,this},setSize:function(O,L){return L===void 0&&(L=O),this.width=O,this.height=L,this},isEmpty:function(){return this.width<=0||this.height<=0},getLineA:function(O){return O===void 0&&(O=new h),O.setTo(this.x,this.y,this.right,this.y),O},getLineB:function(O){return O===void 0&&(O=new h),O.setTo(this.right,this.y,this.right,this.bottom),O},getLineC:function(O){return O===void 0&&(O=new h),O.setTo(this.right,this.bottom,this.x,this.bottom),O},getLineD:function(O){return O===void 0&&(O=new h),O.setTo(this.x,this.bottom,this.x,this.y),O},left:{get:function(){return this.x},set:function(O){O>=this.right?this.width=0:this.width=this.right-O,this.x=O}},right:{get:function(){return this.x+this.width},set:function(O){O<=this.x?this.width=0:this.width=O-this.x}},top:{get:function(){return this.y},set:function(O){O>=this.bottom?this.height=0:this.height=this.bottom-O,this.y=O}},bottom:{get:function(){return this.y+this.height},set:function(O){O<=this.y?this.height=0:this.height=O-this.y}},centerX:{get:function(){return this.x+this.width/2},set:function(O){this.x=O-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(O){this.y=O-this.height/2}}});o.exports=S},94845:o=>{/** + */var u=s(83419),T=s(37303),A=s(20812),c=s(34819),d=s(23777),h=s(23031),f=s(26597),S=new u({initialize:v(function(L,p,N,g){L===void 0&&(L=0),p===void 0&&(p=0),N===void 0&&(N=0),g===void 0&&(g=0),this.type=d.RECTANGLE,this.x=L,this.y=p,this.width=N,this.height=g},"Rectangle"),contains:function(R,L){return T(this,R,L)},getPoint:function(R,L){return A(this,R,L)},getPoints:function(R,L,p){return c(this,R,L,p)},getRandomPoint:function(R){return f(this,R)},setTo:function(R,L,p,N){return this.x=R,this.y=L,this.width=p,this.height=N,this},setEmpty:function(){return this.setTo(0,0,0,0)},setPosition:function(R,L){return L===void 0&&(L=R),this.x=R,this.y=L,this},setSize:function(R,L){return L===void 0&&(L=R),this.width=R,this.height=L,this},isEmpty:function(){return this.width<=0||this.height<=0},getLineA:function(R){return R===void 0&&(R=new h),R.setTo(this.x,this.y,this.right,this.y),R},getLineB:function(R){return R===void 0&&(R=new h),R.setTo(this.right,this.y,this.right,this.bottom),R},getLineC:function(R){return R===void 0&&(R=new h),R.setTo(this.right,this.bottom,this.x,this.bottom),R},getLineD:function(R){return R===void 0&&(R=new h),R.setTo(this.x,this.bottom,this.x,this.y),R},left:{get:function(){return this.x},set:function(R){R>=this.right?this.width=0:this.width=this.right-R,this.x=R}},right:{get:function(){return this.x+this.width},set:function(R){R<=this.x?this.width=0:this.width=R-this.x}},top:{get:function(){return this.y},set:function(R){R>=this.bottom?this.height=0:this.height=this.bottom-R,this.y=R}},bottom:{get:function(){return this.y+this.height},set:function(R){R<=this.y?this.height=0:this.height=R-this.y}},centerX:{get:function(){return this.x+this.width/2},set:function(R){this.x=R-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(R){this.y=R-this.height/2}}});o.exports=S},94845:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return s.width===u.width&&s.height===u.height},"SameDimensions");o.exports=m},31730:o=>{/** + */var O=v(function(s,u){return s.width===u.width&&s.height===u.height},"SameDimensions");o.exports=O},31730:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){return T===void 0&&(T=u),s.width*=u,s.height*=T,s},"Scale");o.exports=m},36899:(o,m,s)=>{/** + */var O=v(function(s,u,T){return T===void 0&&(T=u),s.width*=u,s.height*=T,s},"Scale");o.exports=O},36899:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(87841),T=P(function(d,c,A){A===void 0&&(A=new u);var h=Math.min(d.x,c.x),f=Math.min(d.y,c.y),S=Math.max(d.right,c.right)-h,O=Math.max(d.bottom,c.bottom)-f;return A.setTo(h,f,S,O)},"Union");o.exports=T},93232:(o,m,s)=>{/** + */var u=s(87841),T=v(function(A,c,d){d===void 0&&(d=new u);var h=Math.min(A.x,c.x),f=Math.min(A.y,c.y),S=Math.max(A.right,c.right)-h,R=Math.max(A.bottom,c.bottom)-f;return d.setTo(h,f,S,R)},"Union");o.exports=T},93232:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2912,103 +2912,103 @@ var dne=Object.defineProperty;var P=(n,t)=>dne(n,"name",{value:t,configurable:!0 * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){var u=s.x1,T=s.y1,d=s.x2,c=s.y2,A=s.x3,h=s.y3;return Math.abs(((A-u)*(c-T)-(d-u)*(h-T))/2)},"Area");o.exports=m},39208:(o,m,s)=>{/** + */var O=v(function(s){var u=s.x1,T=s.y1,A=s.x2,c=s.y2,d=s.x3,h=s.y3;return Math.abs(((d-u)*(c-T)-(A-u)*(h-T))/2)},"Area");o.exports=O},39208:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(16483),T=P(function(d,c,A){var h=A*(Math.sqrt(3)/2),f=d,S=c,O=d+A/2,L=c+h,p=d-A/2,N=c+h;return new u(f,S,O,L,p,N)},"BuildEquilateral");o.exports=T},39545:(o,m,s)=>{/** + */var u=s(16483),T=v(function(A,c,d){var h=d*(Math.sqrt(3)/2),f=A,S=c,R=A+d/2,L=c+h,p=A-d/2,N=c+h;return new u(f,S,R,L,p,N)},"BuildEquilateral");o.exports=T},39545:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(94811),T=s(16483),d=P(function(c,A,h,f,S){A===void 0&&(A=null),h===void 0&&(h=1),f===void 0&&(f=1),S===void 0&&(S=[]);for(var O=u(c,A),L,p,N,g,C,v,M,D,G,H=0;H{/** + */var u=s(94811),T=s(16483),A=v(function(c,d,h,f,S){d===void 0&&(d=null),h===void 0&&(h=1),f===void 0&&(f=1),S===void 0&&(S=[]);for(var R=u(c,d),L,p,N,g,C,P,M,D,G,H=0;H{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(16483),T=P(function(d,c,A,h){h===void 0&&(h=A);var f=d,S=c,O=d,L=c-h,p=d+A,N=c;return new u(f,S,O,L,p,N)},"BuildRight");o.exports=T},23707:(o,m,s)=>{/** + */var u=s(16483),T=v(function(A,c,d,h){h===void 0&&(h=d);var f=A,S=c,R=A,L=c-h,p=A+d,N=c;return new u(f,S,R,L,p,N)},"BuildRight");o.exports=T},23707:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(97523),T=s(13584),d=P(function(c,A,h,f){f===void 0&&(f=u);var S=f(c),O=A-S.x,L=h-S.y;return T(c,O,L)},"CenterOn");o.exports=d},97523:(o,m,s)=>{/** + */var u=s(97523),T=s(13584),A=v(function(c,d,h,f){f===void 0&&(f=u);var S=f(c),R=d-S.x,L=h-S.y;return T(c,R,L)},"CenterOn");o.exports=A},97523:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=P(function(d,c){return c===void 0&&(c=new u),c.x=(d.x1+d.x2+d.x3)/3,c.y=(d.y1+d.y2+d.y3)/3,c},"Centroid");o.exports=T},24951:(o,m,s)=>{/** + */var u=s(2141),T=v(function(A,c){return c===void 0&&(c=new u),c.x=(A.x1+A.x2+A.x3)/3,c.y=(A.y1+A.y2+A.y3)/3,c},"Centroid");o.exports=T},24951:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(26099);function T(c,A,h,f){return c*f-A*h}P(T,"det");var d=P(function(c,A){A===void 0&&(A=new u);var h=c.x3,f=c.y3,S=c.x1-h,O=c.y1-f,L=c.x2-h,p=c.y2-f,N=2*T(S,O,L,p),g=T(O,S*S+O*O,p,L*L+p*p),C=T(S,S*S+O*O,L,L*L+p*p);return A.x=h-g/N,A.y=f+C/N,A},"CircumCenter");o.exports=d},85614:(o,m,s)=>{/** + */var u=s(26099);function T(c,d,h,f){return c*f-d*h}v(T,"det");var A=v(function(c,d){d===void 0&&(d=new u);var h=c.x3,f=c.y3,S=c.x1-h,R=c.y1-f,L=c.x2-h,p=c.y2-f,N=2*T(S,R,L,p),g=T(R,S*S+R*R,p,L*L+p*p),C=T(S,S*S+R*R,L,L*L+p*p);return d.x=h-g/N,d.y=f+C/N,d},"CircumCenter");o.exports=A},85614:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(96503),T=P(function(d,c){c===void 0&&(c=new u);var A=d.x1,h=d.y1,f=d.x2,S=d.y2,O=d.x3,L=d.y3,p=f-A,N=S-h,g=O-A,C=L-h,v=p*(A+f)+N*(h+S),M=g*(A+O)+C*(h+L),D=2*(p*(L-S)-N*(O-f)),G,H;if(Math.abs(D)<1e-6){var B=Math.min(A,f,O),_=Math.min(h,S,L);G=(Math.max(A,f,O)-B)*.5,H=(Math.max(h,S,L)-_)*.5,c.x=B+G,c.y=_+H,c.radius=Math.sqrt(G*G+H*H)}else c.x=(C*v-N*M)/D,c.y=(p*M-g*v)/D,G=c.x-A,H=c.y-h,c.radius=Math.sqrt(G*G+H*H);return c},"CircumCircle");o.exports=T},74422:(o,m,s)=>{/** + */var u=s(96503),T=v(function(A,c){c===void 0&&(c=new u);var d=A.x1,h=A.y1,f=A.x2,S=A.y2,R=A.x3,L=A.y3,p=f-d,N=S-h,g=R-d,C=L-h,P=p*(d+f)+N*(h+S),M=g*(d+R)+C*(h+L),D=2*(p*(L-S)-N*(R-f)),G,H;if(Math.abs(D)<1e-6){var B=Math.min(d,f,R),b=Math.min(h,S,L);G=(Math.max(d,f,R)-B)*.5,H=(Math.max(h,S,L)-b)*.5,c.x=B+G,c.y=b+H,c.radius=Math.sqrt(G*G+H*H)}else c.x=(C*P-N*M)/D,c.y=(p*M-g*P)/D,G=c.x-d,H=c.y-h,c.radius=Math.sqrt(G*G+H*H);return c},"CircumCircle");o.exports=T},74422:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(16483),T=P(function(d){return new u(d.x1,d.y1,d.x2,d.y2,d.x3,d.y3)},"Clone");o.exports=T},10690:o=>{/** + */var u=s(16483),T=v(function(A){return new u(A.x1,A.y1,A.x2,A.y2,A.x3,A.y3)},"Clone");o.exports=T},10690:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){var d=s.x3-s.x1,c=s.y3-s.y1,A=s.x2-s.x1,h=s.y2-s.y1,f=u-s.x1,S=T-s.y1,O=d*d+c*c,L=d*A+c*h,p=d*f+c*S,N=A*A+h*h,g=A*f+h*S,C=O*N-L*L,v=C===0?0:1/C,M=(N*p-L*g)*v,D=(O*g-L*p)*v;return M>=0&&D>=0&&M+D<1},"Contains");o.exports=m},48653:o=>{/** + */var O=v(function(s,u,T){var A=s.x3-s.x1,c=s.y3-s.y1,d=s.x2-s.x1,h=s.y2-s.y1,f=u-s.x1,S=T-s.y1,R=A*A+c*c,L=A*d+c*h,p=A*f+c*S,N=d*d+h*h,g=d*f+h*S,C=R*N-L*L,P=C===0?0:1/C,M=(N*p-L*g)*P,D=(R*g-L*p)*P;return M>=0&&D>=0&&M+D<1},"Contains");o.exports=O},48653:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){T===void 0&&(T=!1),d===void 0&&(d=[]);for(var c=s.x3-s.x1,A=s.y3-s.y1,h=s.x2-s.x1,f=s.y2-s.y1,S=c*c+A*A,O=c*h+A*f,L=h*h+f*f,p=S*L-O*O,N=p===0?0:1/p,g,C,v,M,D,G,H=s.x1,B=s.y1,_=0;_=0&&C>=0&&g+C<1&&(d.push({x:u[_].x,y:u[_].y}),T)));_++);return d},"ContainsArray");o.exports=m},96006:(o,m,s)=>{/** + */var O=v(function(s,u,T,A){T===void 0&&(T=!1),A===void 0&&(A=[]);for(var c=s.x3-s.x1,d=s.y3-s.y1,h=s.x2-s.x1,f=s.y2-s.y1,S=c*c+d*d,R=c*h+d*f,L=h*h+f*f,p=S*L-R*R,N=p===0?0:1/p,g,C,P,M,D,G,H=s.x1,B=s.y1,b=0;b=0&&C>=0&&g+C<1&&(A.push({x:u[b].x,y:u[b].y}),T)));b++);return A},"ContainsArray");o.exports=O},96006:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(10690),T=P(function(d,c){return u(d,c.x,c.y)},"ContainsPoint");o.exports=T},71326:o=>{/** + */var u=s(10690),T=v(function(A,c){return u(A,c.x,c.y)},"ContainsPoint");o.exports=T},71326:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return u.setTo(s.x1,s.y1,s.x2,s.y2,s.x3,s.y3)},"CopyFrom");o.exports=m},71694:o=>{/** + */var O=v(function(s,u){return u.setTo(s.x1,s.y1,s.x2,s.y2,s.x3,s.y3)},"CopyFrom");o.exports=O},71694:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return u===void 0&&(u=[]),u.push({x:s.x1,y:s.y1}),u.push({x:s.x2,y:s.y2}),u.push({x:s.x3,y:s.y3}),u},"Decompose");o.exports=m},33522:o=>{/** + */var O=v(function(s,u){return u===void 0&&(u=[]),u.push({x:s.x1,y:s.y1}),u.push({x:s.x2,y:s.y2}),u.push({x:s.x3,y:s.y3}),u},"Decompose");o.exports=O},33522:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return s.x1===u.x1&&s.y1===u.y1&&s.x2===u.x2&&s.y2===u.y2&&s.x3===u.x3&&s.y3===u.y3},"Equals");o.exports=m},20437:(o,m,s)=>{/** + */var O=v(function(s,u){return s.x1===u.x1&&s.y1===u.y1&&s.x2===u.x2&&s.y2===u.y2&&s.x3===u.x3&&s.y3===u.y3},"Equals");o.exports=O},20437:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=s(35001),d=P(function(c,A,h){h===void 0&&(h=new u);var f=c.getLineA(),S=c.getLineB(),O=c.getLineC();if(A<=0||A>=1)return h.x=f.x1,h.y=f.y1,h;var L=T(f),p=T(S),N=T(O),g=L+p+N,C=g*A,v=0;return CL+p?(C-=L+p,v=C/N,h.x=O.x1+(O.x2-O.x1)*v,h.y=O.y1+(O.y2-O.y1)*v):(C-=L,v=C/p,h.x=S.x1+(S.x2-S.x1)*v,h.y=S.y1+(S.y2-S.y1)*v),h},"GetPoint");o.exports=d},80672:(o,m,s)=>{/** + */var u=s(2141),T=s(35001),A=v(function(c,d,h){h===void 0&&(h=new u);var f=c.getLineA(),S=c.getLineB(),R=c.getLineC();if(d<=0||d>=1)return h.x=f.x1,h.y=f.y1,h;var L=T(f),p=T(S),N=T(R),g=L+p+N,C=g*d,P=0;return CL+p?(C-=L+p,P=C/N,h.x=R.x1+(R.x2-R.x1)*P,h.y=R.y1+(R.y2-R.y1)*P):(C-=L,P=C/p,h.x=S.x1+(S.x2-S.x1)*P,h.y=S.y1+(S.y2-S.y1)*P),h},"GetPoint");o.exports=A},80672:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(35001),T=s(2141),d=P(function(c,A,h,f){f===void 0&&(f=[]);var S=c.getLineA(),O=c.getLineB(),L=c.getLineC(),p=u(S),N=u(O),g=u(L),C=p+N+g;!A&&h>0&&(A=C/h);for(var v=0;vp+N?(M-=p+N,D=M/g,G.x=L.x1+(L.x2-L.x1)*D,G.y=L.y1+(L.y2-L.y1)*D):(M-=p,D=M/N,G.x=O.x1+(O.x2-O.x1)*D,G.y=O.y1+(O.y2-O.y1)*D),f.push(G)}return f},"GetPoints");o.exports=d},39757:(o,m,s)=>{/** + */var u=s(35001),T=s(2141),A=v(function(c,d,h,f){f===void 0&&(f=[]);var S=c.getLineA(),R=c.getLineB(),L=c.getLineC(),p=u(S),N=u(R),g=u(L),C=p+N+g;!d&&h>0&&(d=C/h);for(var P=0;Pp+N?(M-=p+N,D=M/g,G.x=L.x1+(L.x2-L.x1)*D,G.y=L.y1+(L.y2-L.y1)*D):(M-=p,D=M/N,G.x=R.x1+(R.x2-R.x1)*D,G.y=R.y1+(R.y2-R.y1)*D),f.push(G)}return f},"GetPoints");o.exports=A},39757:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141);function T(c,A,h,f){var S=c-h,O=A-f,L=S*S+O*O;return Math.sqrt(L)}P(T,"getLength");var d=P(function(c,A){A===void 0&&(A=new u);var h=c.x1,f=c.y1,S=c.x2,O=c.y2,L=c.x3,p=c.y3,N=T(L,p,S,O),g=T(h,f,L,p),C=T(S,O,h,f),v=N+g+C;return A.x=(h*N+S*g+L*C)/v,A.y=(f*N+O*g+p*C)/v,A},"InCenter");o.exports=d},13584:o=>{/** + */var u=s(2141);function T(c,d,h,f){var S=c-h,R=d-f,L=S*S+R*R;return Math.sqrt(L)}v(T,"getLength");var A=v(function(c,d){d===void 0&&(d=new u);var h=c.x1,f=c.y1,S=c.x2,R=c.y2,L=c.x3,p=c.y3,N=T(L,p,S,R),g=T(h,f,L,p),C=T(S,R,h,f),P=N+g+C;return d.x=(h*N+S*g+L*C)/P,d.y=(f*N+R*g+p*C)/P,d},"InCenter");o.exports=A},13584:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){return s.x1+=u,s.y1+=T,s.x2+=u,s.y2+=T,s.x3+=u,s.y3+=T,s},"Offset");o.exports=m},1376:(o,m,s)=>{/** + */var O=v(function(s,u,T){return s.x1+=u,s.y1+=T,s.x2+=u,s.y2+=T,s.x3+=u,s.y3+=T,s},"Offset");o.exports=O},1376:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(35001),T=P(function(d){var c=d.getLineA(),A=d.getLineB(),h=d.getLineC();return u(c)+u(A)+u(h)},"Perimeter");o.exports=T},90260:(o,m,s)=>{/** + */var u=s(35001),T=v(function(A){var c=A.getLineA(),d=A.getLineB(),h=A.getLineC();return u(c)+u(d)+u(h)},"Perimeter");o.exports=T},90260:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2141),T=P(function(d,c){c===void 0&&(c=new u);var A=d.x2-d.x1,h=d.y2-d.y1,f=d.x3-d.x1,S=d.y3-d.y1,O=Math.random(),L=Math.random();return O+L>=1&&(O=1-O,L=1-L),c.x=d.x1+(A*O+f*L),c.y=d.y1+(h*O+S*L),c},"Random");o.exports=T},52172:(o,m,s)=>{/** + */var u=s(2141),T=v(function(A,c){c===void 0&&(c=new u);var d=A.x2-A.x1,h=A.y2-A.y1,f=A.x3-A.x1,S=A.y3-A.y1,R=Math.random(),L=Math.random();return R+L>=1&&(R=1-R,L=1-L),c.x=A.x1+(d*R+f*L),c.y=A.y1+(h*R+S*L),c},"Random");o.exports=T},52172:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(99614),T=s(39757),d=P(function(c,A){var h=T(c);return u(c,h.x,h.y,A)},"Rotate");o.exports=d},49907:(o,m,s)=>{/** + */var u=s(99614),T=s(39757),A=v(function(c,d){var h=T(c);return u(c,h.x,h.y,d)},"Rotate");o.exports=A},49907:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(99614),T=P(function(d,c,A){return u(d,c.x,c.y,A)},"RotateAroundPoint");o.exports=T},99614:o=>{/** + */var u=s(99614),T=v(function(A,c,d){return u(A,c.x,c.y,d)},"RotateAroundPoint");o.exports=T},99614:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){var c=Math.cos(d),A=Math.sin(d),h=s.x1-u,f=s.y1-T;return s.x1=h*c-f*A+u,s.y1=h*A+f*c+T,h=s.x2-u,f=s.y2-T,s.x2=h*c-f*A+u,s.y2=h*A+f*c+T,h=s.x3-u,f=s.y3-T,s.x3=h*c-f*A+u,s.y3=h*A+f*c+T,s},"RotateAroundXY");o.exports=m},16483:(o,m,s)=>{/** + */var O=v(function(s,u,T,A){var c=Math.cos(A),d=Math.sin(A),h=s.x1-u,f=s.y1-T;return s.x1=h*c-f*d+u,s.y1=h*d+f*c+T,h=s.x2-u,f=s.y2-T,s.x2=h*c-f*d+u,s.y2=h*d+f*c+T,h=s.x3-u,f=s.y3-T,s.x3=h*c-f*d+u,s.y3=h*d+f*c+T,s},"RotateAroundXY");o.exports=O},16483:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(10690),d=s(20437),c=s(80672),A=s(23777),h=s(23031),f=s(90260),S=new u({initialize:P(function(L,p,N,g,C,v){L===void 0&&(L=0),p===void 0&&(p=0),N===void 0&&(N=0),g===void 0&&(g=0),C===void 0&&(C=0),v===void 0&&(v=0),this.type=A.TRIANGLE,this.x1=L,this.y1=p,this.x2=N,this.y2=g,this.x3=C,this.y3=v},"Triangle"),contains:function(O,L){return T(this,O,L)},getPoint:function(O,L){return d(this,O,L)},getPoints:function(O,L,p){return c(this,O,L,p)},getRandomPoint:function(O){return f(this,O)},setTo:function(O,L,p,N,g,C){return O===void 0&&(O=0),L===void 0&&(L=0),p===void 0&&(p=0),N===void 0&&(N=0),g===void 0&&(g=0),C===void 0&&(C=0),this.x1=O,this.y1=L,this.x2=p,this.y2=N,this.x3=g,this.y3=C,this},getLineA:function(O){return O===void 0&&(O=new h),O.setTo(this.x1,this.y1,this.x2,this.y2),O},getLineB:function(O){return O===void 0&&(O=new h),O.setTo(this.x2,this.y2,this.x3,this.y3),O},getLineC:function(O){return O===void 0&&(O=new h),O.setTo(this.x3,this.y3,this.x1,this.y1),O},left:{get:function(){return Math.min(this.x1,this.x2,this.x3)},set:function(O){var L=0;this.x1<=this.x2&&this.x1<=this.x3?L=this.x1-O:this.x2<=this.x1&&this.x2<=this.x3?L=this.x2-O:L=this.x3-O,this.x1-=L,this.x2-=L,this.x3-=L}},right:{get:function(){return Math.max(this.x1,this.x2,this.x3)},set:function(O){var L=0;this.x1>=this.x2&&this.x1>=this.x3?L=this.x1-O:this.x2>=this.x1&&this.x2>=this.x3?L=this.x2-O:L=this.x3-O,this.x1-=L,this.x2-=L,this.x3-=L}},top:{get:function(){return Math.min(this.y1,this.y2,this.y3)},set:function(O){var L=0;this.y1<=this.y2&&this.y1<=this.y3?L=this.y1-O:this.y2<=this.y1&&this.y2<=this.y3?L=this.y2-O:L=this.y3-O,this.y1-=L,this.y2-=L,this.y3-=L}},bottom:{get:function(){return Math.max(this.y1,this.y2,this.y3)},set:function(O){var L=0;this.y1>=this.y2&&this.y1>=this.y3?L=this.y1-O:this.y2>=this.y1&&this.y2>=this.y3?L=this.y2-O:L=this.y3-O,this.y1-=L,this.y2-=L,this.y3-=L}}});o.exports=S},84435:(o,m,s)=>{/** + */var u=s(83419),T=s(10690),A=s(20437),c=s(80672),d=s(23777),h=s(23031),f=s(90260),S=new u({initialize:v(function(L,p,N,g,C,P){L===void 0&&(L=0),p===void 0&&(p=0),N===void 0&&(N=0),g===void 0&&(g=0),C===void 0&&(C=0),P===void 0&&(P=0),this.type=d.TRIANGLE,this.x1=L,this.y1=p,this.x2=N,this.y2=g,this.x3=C,this.y3=P},"Triangle"),contains:function(R,L){return T(this,R,L)},getPoint:function(R,L){return A(this,R,L)},getPoints:function(R,L,p){return c(this,R,L,p)},getRandomPoint:function(R){return f(this,R)},setTo:function(R,L,p,N,g,C){return R===void 0&&(R=0),L===void 0&&(L=0),p===void 0&&(p=0),N===void 0&&(N=0),g===void 0&&(g=0),C===void 0&&(C=0),this.x1=R,this.y1=L,this.x2=p,this.y2=N,this.x3=g,this.y3=C,this},getLineA:function(R){return R===void 0&&(R=new h),R.setTo(this.x1,this.y1,this.x2,this.y2),R},getLineB:function(R){return R===void 0&&(R=new h),R.setTo(this.x2,this.y2,this.x3,this.y3),R},getLineC:function(R){return R===void 0&&(R=new h),R.setTo(this.x3,this.y3,this.x1,this.y1),R},left:{get:function(){return Math.min(this.x1,this.x2,this.x3)},set:function(R){var L=0;this.x1<=this.x2&&this.x1<=this.x3?L=this.x1-R:this.x2<=this.x1&&this.x2<=this.x3?L=this.x2-R:L=this.x3-R,this.x1-=L,this.x2-=L,this.x3-=L}},right:{get:function(){return Math.max(this.x1,this.x2,this.x3)},set:function(R){var L=0;this.x1>=this.x2&&this.x1>=this.x3?L=this.x1-R:this.x2>=this.x1&&this.x2>=this.x3?L=this.x2-R:L=this.x3-R,this.x1-=L,this.x2-=L,this.x3-=L}},top:{get:function(){return Math.min(this.y1,this.y2,this.y3)},set:function(R){var L=0;this.y1<=this.y2&&this.y1<=this.y3?L=this.y1-R:this.y2<=this.y1&&this.y2<=this.y3?L=this.y2-R:L=this.y3-R,this.y1-=L,this.y2-=L,this.y3-=L}},bottom:{get:function(){return Math.max(this.y1,this.y2,this.y3)},set:function(R){var L=0;this.y1>=this.y2&&this.y1>=this.y3?L=this.y1-R:this.y2>=this.y1&&this.y2>=this.y3?L=this.y2-R:L=this.y3-R,this.y1-=L,this.y2-=L,this.y3-=L}}});o.exports=S},84435:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3016,31 +3016,31 @@ var dne=Object.defineProperty;var P=(n,t)=>dne(n,"name",{value:t,configurable:!0 * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){return{gameObject:s,enabled:!0,draggable:!1,dropZone:!1,cursor:!1,target:null,camera:null,hitArea:u,hitAreaCallback:T,hitAreaDebug:null,customHitArea:!1,localX:0,localY:0,dragState:0,dragStartX:0,dragStartY:0,dragStartXGlobal:0,dragStartYGlobal:0,dragX:0,dragY:0}},"CreateInteractiveObject");o.exports=m},84409:o=>{/** + */var O=v(function(s,u,T){return{gameObject:s,enabled:!0,draggable:!1,dropZone:!1,cursor:!1,target:null,camera:null,hitArea:u,hitAreaCallback:T,hitAreaDebug:null,customHitArea:!1,localX:0,localY:0,dragState:0,dragStartX:0,dragStartY:0,dragStartXGlobal:0,dragStartYGlobal:0,dragX:0,dragY:0}},"CreateInteractiveObject");o.exports=O},84409:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return function(T,d,c,A){var h=s.getPixelAlpha(d,c,A.texture.key,A.frame.name);return h&&h>=u}},"CreatePixelPerfectHandler");o.exports=m},7003:(o,m,s)=>{/** + */var O=v(function(s,u){return function(T,A,c,d){var h=s.getPixelAlpha(A,c,d.texture.key,d.frame.name);return h&&h>=u}},"CreatePixelPerfectHandler");o.exports=O},7003:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(93301),d=s(50792),c=s(8214),A=s(8443),h=s(78970),f=s(85098),S=s(42515),O=s(36210),L=s(61340),p=s(85955),N=new u({initialize:P(function(C,v){this.game=C,this.scaleManager,this.canvas,this.config=v,this.enabled=!0,this.events=new d,this.isOver=!0,this.defaultCursor="",this.keyboard=v.inputKeyboard?new h(this):null,this.mouse=v.inputMouse?new f(this):null,this.touch=v.inputTouch?new O(this):null,this.pointers=[],this.pointersTotal=v.inputActivePointers,v.inputTouch&&this.pointersTotal===1&&(this.pointersTotal=2);for(var M=0;M<=this.pointersTotal;M++){var D=new S(this,M);D.smoothFactor=v.inputSmoothFactor,this.pointers.push(D)}this.mousePointer=v.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 L,this._tempMatrix2=new L,this._tempSkip=!1,this.mousePointerContainer=[this.mousePointer],C.events.once(A.BOOT,this.boot,this)},"InputManager"),boot:function(){var g=this.game,C=g.events;this.canvas=g.canvas,this.scaleManager=g.scale,this.events.emit(c.MANAGER_BOOT),C.on(A.PRE_RENDER,this.preRender,this),C.once(A.DESTROY,this.destroy,this)},setCanvasOver:function(g){this.isOver=!0,this.events.emit(c.GAME_OVER,g)},setCanvasOut:function(g){this.isOver=!1,this.events.emit(c.GAME_OUT,g)},preRender:function(){var g=this.game.loop.now,C=this.game.loop.delta,v=this.game.scene.getScenes(!0,!0);this.time=g,this.events.emit(c.MANAGER_UPDATE);for(var M=0;M10&&(g=10-this.pointersTotal);for(var v=0;v{/** + */var u=s(83419),T=s(93301),A=s(50792),c=s(8214),d=s(8443),h=s(78970),f=s(85098),S=s(42515),R=s(36210),L=s(61340),p=s(85955),N=new u({initialize:v(function(C,P){this.game=C,this.scaleManager,this.canvas,this.config=P,this.enabled=!0,this.events=new A,this.isOver=!0,this.defaultCursor="",this.keyboard=P.inputKeyboard?new h(this):null,this.mouse=P.inputMouse?new f(this):null,this.touch=P.inputTouch?new R(this):null,this.pointers=[],this.pointersTotal=P.inputActivePointers,P.inputTouch&&this.pointersTotal===1&&(this.pointersTotal=2);for(var M=0;M<=this.pointersTotal;M++){var D=new S(this,M);D.smoothFactor=P.inputSmoothFactor,this.pointers.push(D)}this.mousePointer=P.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 L,this._tempMatrix2=new L,this._tempSkip=!1,this.mousePointerContainer=[this.mousePointer],C.events.once(d.BOOT,this.boot,this)},"InputManager"),boot:function(){var g=this.game,C=g.events;this.canvas=g.canvas,this.scaleManager=g.scale,this.events.emit(c.MANAGER_BOOT),C.on(d.PRE_RENDER,this.preRender,this),C.once(d.DESTROY,this.destroy,this)},setCanvasOver:function(g){this.isOver=!0,this.events.emit(c.GAME_OVER,g)},setCanvasOut:function(g){this.isOver=!1,this.events.emit(c.GAME_OUT,g)},preRender:function(){var g=this.game.loop.now,C=this.game.loop.delta,P=this.game.scene.getScenes(!0,!0);this.time=g,this.events.emit(c.MANAGER_UPDATE);for(var M=0;M10&&(g=10-this.pointersTotal);for(var P=0;P{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(96503),T=s(87902),d=s(83419),c=s(93301),A=s(74457),h=s(84409),f=s(20339),S=s(8497),O=s(81154),L=s(8214),p=s(50792),N=s(95540),g=s(23777),C=s(89639),v=s(41212),M=s(37277),D=s(87841),G=s(37303),H=s(44594),B=s(16483),_=s(10690),w=new d({Extends:p,initialize:P(function(F){p.call(this),this.scene=F,this.systems=F.sys,this.settings=F.sys.settings,this.manager=F.sys.game.input,this.pluginEvents=new p,this.enabled=!0,this.displayList,this.cameras,C.install(this),this.mouse=this.manager.mouse,this.topOnly=!0,this.pollRate=-1,this._pollTimer=0;var k={cancelled:!1};this._eventContainer={stopPropagation:function(){k.cancelled=!0}},this._eventData=k,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,F.sys.events.once(H.BOOT,this.boot,this),F.sys.events.on(H.START,this.start,this)},"InputPlugin"),boot:function(){this.cameras=this.systems.cameras,this.displayList=this.systems.displayList,this.systems.events.once(H.DESTROY,this.destroy,this),this.pluginEvents.emit(L.BOOT)},start:function(){var b=this.systems.events;b.on(H.TRANSITION_START,this.transitionIn,this),b.on(H.TRANSITION_OUT,this.transitionOut,this),b.on(H.TRANSITION_COMPLETE,this.transitionComplete,this),b.on(H.PRE_UPDATE,this.preUpdate,this),b.once(H.SHUTDOWN,this.shutdown,this),this.manager.events.on(L.GAME_OUT,this.onGameOut,this),this.manager.events.on(L.GAME_OVER,this.onGameOver,this),this.enabled=!0,this._dragState=[0,0,0,0,0,0,0,0,0,0],this.pluginEvents.emit(L.START)},onGameOver:function(b){this.isActive()&&this.emit(L.GAME_OVER,b.timeStamp,b)},onGameOut:function(b){this.isActive()&&this.emit(L.GAME_OUT,b.timeStamp,b)},preUpdate:function(){this.pluginEvents.emit(L.PRE_UPDATE);var b=this._pendingRemoval,F=this._pendingInsertion,k=b.length,V=F.length;if(!(k===0&&V===0)){for(var Z=this._list,$=0;$-1&&(Z.splice(te,1),this.clear(Q,!0))}this._pendingRemoval.length=0,this._list=Z.concat(F.splice(0))}},isActive:function(){return this.enabled&&this.scene.sys.canInput()},updatePoll:function(b,F){if(!this.isActive())return!1;if(this.pluginEvents.emit(L.UPDATE,b,F),this._updatedThisFrame)return this._updatedThisFrame=!1,!1;var k,V=this.manager,Z=V.pointers,$=V.pointersTotal;for(k=0;k<$;k++)Z[k].updateMotion();if(this._list.length===0)return!1;var Q=this.pollRate;if(Q===-1)return!1;if(Q>0)if(this._pollTimer-=F,this._pollTimer<0)this._pollTimer=this.pollRate;else return!1;var te=!1;for(k=0;k<$;k++){var z=0,j=Z[k];this._tempZones=[],this._temp=this.hitTestPointer(j),this.sortGameObjects(this._temp,j),this.sortDropZones(this._tempZones),this.topOnly&&(this._temp.length&&this._temp.splice(1),this._tempZones.length&&this._tempZones.splice(1)),z+=this.processOverOutEvents(j),this.getDragState(j)===2&&this.processDragThresholdEvent(j,b),z>0&&(te=!0)}return te},update:function(b,F){if(!this.isActive())return!1;for(var k=F.length,V=!1,Z=0;Z0&&(V=!0)}return this._updatedThisFrame=!0,V},clear:function(b,F){F===void 0&&(F=!1),this.disable(b);var k=b.input;k&&(this.removeDebug(b),this.manager.resetCursor(k),k.gameObject=void 0,k.target=void 0,k.hitArea=void 0,k.hitAreaCallback=void 0,k.callbackContext=void 0,b.input=null),F||this.queueForRemoval(b);var V=this._draggable.indexOf(b);return V>-1&&this._draggable.splice(V,1),b},disable:function(b){var F=b.input;F&&(F.enabled=!1,F.dragState=0);for(var k=this._drag,V=this._over,Z=this.manager,$=0,Q;$-1&&k[$].splice(Q,1),Q=V[$].indexOf(b),Q>-1&&V[$].splice(Q,1);return this},enable:function(b,F,k,V){return V===void 0&&(V=!1),b.input?b.input.enabled=!0:this.setHitArea(b,F,k),b.input&&V&&!b.input.dropZone&&(b.input.dropZone=V),this},hitTestPointer:function(b){for(var F=this.cameras.getCamerasBelowPointer(b),k=0;k0)return b.camera=V,Z}return b.camera=F[0],[]},processDownEvents:function(b){var F=0,k=this._temp,V=this._eventData,Z=this._eventContainer;V.cancelled=!1;for(var $=!1,Q=0;Q0&&f(b.x,b.y,b.downX,b.downY)>=Z||V>0&&F>=b.downTime+V)&&(k=!0),k)return this.setDragState(b,3),this.processDragStartList(b)},processDragStartList:function(b){if(this.getDragState(b)!==3)return 0;for(var F=this._drag[b.id],k=0;k1&&(this.sortGameObjects(k,b),this.topOnly&&k.splice(1)),this._drag[b.id]=k,this.dragDistanceThreshold===0&&this.dragTimeThreshold===0?(this.setDragState(b,3),this.processDragStartList(b)):(this.setDragState(b,2),0))},processDragMoveEvent:function(b){if(this.getDragState(b)===2&&this.processDragThresholdEvent(b,this.manager.game.loop.now),this.getDragState(b)!==4)return 0;for(var F=this._tempZones,k=this._drag[b.id],V=0;V0?(Z.emit(L.GAMEOBJECT_DRAG_LEAVE,b,Q),this.emit(L.DRAG_LEAVE,b,Z,Q),$.target=F[0],Q=$.target,Z.emit(L.GAMEOBJECT_DRAG_ENTER,b,Q),this.emit(L.DRAG_ENTER,b,Z,Q)):(Z.emit(L.GAMEOBJECT_DRAG_LEAVE,b,Q),this.emit(L.DRAG_LEAVE,b,Z,Q),F[0]?($.target=F[0],Q=$.target,Z.emit(L.GAMEOBJECT_DRAG_ENTER,b,Q),this.emit(L.DRAG_ENTER,b,Z,Q)):$.target=null)}else!Q&&F[0]&&($.target=F[0],Q=$.target,Z.emit(L.GAMEOBJECT_DRAG_ENTER,b,Q),this.emit(L.DRAG_ENTER,b,Z,Q));var z,j;if(!Z.parentContainer)z=b.worldX-$.dragX,j=b.worldY-$.dragY;else{var x=b.worldX-$.dragStartXGlobal,X=b.worldY-$.dragStartYGlobal,q=Z.getParentRotation(),J=x*Math.cos(q)+X*Math.sin(q),ae=X*Math.cos(q)-x*Math.sin(q);J*=1/Z.parentContainer.scaleX,ae*=1/Z.parentContainer.scaleY,z=J+$.dragStartX,j=ae+$.dragStartY}Z.emit(L.GAMEOBJECT_DRAG,b,z,j),this.emit(L.DRAG,b,Z,z,j)}return k.length},processDragUpEvent:function(b){for(var F=this._drag[b.id],k=0;k0){var $=this.manager,Q=this._eventData,te=this._eventContainer;Q.cancelled=!1;for(var z=!1,j=0;j0){var Z=this.manager,$=this._eventData,Q=this._eventContainer;$.cancelled=!1;var te=!1;this.sortGameObjects(F,b);for(var z=0;z0){for(this.sortGameObjects(Z,b),k=0;k0){for(this.sortGameObjects($,b),k=0;k-1&&this._draggable.splice(Z,1)}return this},makePixelPerfect:function(b){b===void 0&&(b=1);var F=this.systems.textures;return h(F,b)},setHitArea:function(b,F,k){if(F===void 0)return this.setHitAreaFromTexture(b);Array.isArray(b)||(b=[b]);var V=!1,Z=!1,$=!1,Q=!1,te=!1,z=!0;if(v(F)&&Object.keys(F).length){var j=F,x=b.some(function(re){return re.hasOwnProperty("faces")});if(!x){F=N(j,"hitArea",null),k=N(j,"hitAreaCallback",null),te=N(j,"pixelPerfect",!1);var X=N(j,"alphaTolerance",1);te&&(F={},k=this.makePixelPerfect(X))}V=N(j,"draggable",!1),Z=N(j,"dropZone",!1),$=N(j,"cursor",!1),Q=N(j,"useHandCursor",!1),(!F||!k)&&(this.setHitAreaFromTexture(b),z=!1)}else typeof F=="function"&&!k&&(k=F,F={});for(var q=0;q{/** + */var u=s(96503),T=s(87902),A=s(83419),c=s(93301),d=s(74457),h=s(84409),f=s(20339),S=s(8497),R=s(81154),L=s(8214),p=s(50792),N=s(95540),g=s(23777),C=s(89639),P=s(41212),M=s(37277),D=s(87841),G=s(37303),H=s(44594),B=s(16483),b=s(10690),w=new A({Extends:p,initialize:v(function(F){p.call(this),this.scene=F,this.systems=F.sys,this.settings=F.sys.settings,this.manager=F.sys.game.input,this.pluginEvents=new p,this.enabled=!0,this.displayList,this.cameras,C.install(this),this.mouse=this.manager.mouse,this.topOnly=!0,this.pollRate=-1,this._pollTimer=0;var x={cancelled:!1};this._eventContainer={stopPropagation:function(){x.cancelled=!0}},this._eventData=x,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,F.sys.events.once(H.BOOT,this.boot,this),F.sys.events.on(H.START,this.start,this)},"InputPlugin"),boot:function(){this.cameras=this.systems.cameras,this.displayList=this.systems.displayList,this.systems.events.once(H.DESTROY,this.destroy,this),this.pluginEvents.emit(L.BOOT)},start:function(){var _=this.systems.events;_.on(H.TRANSITION_START,this.transitionIn,this),_.on(H.TRANSITION_OUT,this.transitionOut,this),_.on(H.TRANSITION_COMPLETE,this.transitionComplete,this),_.on(H.PRE_UPDATE,this.preUpdate,this),_.once(H.SHUTDOWN,this.shutdown,this),this.manager.events.on(L.GAME_OUT,this.onGameOut,this),this.manager.events.on(L.GAME_OVER,this.onGameOver,this),this.enabled=!0,this._dragState=[0,0,0,0,0,0,0,0,0,0],this.pluginEvents.emit(L.START)},onGameOver:function(_){this.isActive()&&this.emit(L.GAME_OVER,_.timeStamp,_)},onGameOut:function(_){this.isActive()&&this.emit(L.GAME_OUT,_.timeStamp,_)},preUpdate:function(){this.pluginEvents.emit(L.PRE_UPDATE);var _=this._pendingRemoval,F=this._pendingInsertion,x=_.length,V=F.length;if(!(x===0&&V===0)){for(var Z=this._list,$=0;$-1&&(Z.splice(te,1),this.clear(Q,!0))}this._pendingRemoval.length=0,this._list=Z.concat(F.splice(0))}},isActive:function(){return this.enabled&&this.scene.sys.canInput()},updatePoll:function(_,F){if(!this.isActive())return!1;if(this.pluginEvents.emit(L.UPDATE,_,F),this._updatedThisFrame)return this._updatedThisFrame=!1,!1;var x,V=this.manager,Z=V.pointers,$=V.pointersTotal;for(x=0;x<$;x++)Z[x].updateMotion();if(this._list.length===0)return!1;var Q=this.pollRate;if(Q===-1)return!1;if(Q>0)if(this._pollTimer-=F,this._pollTimer<0)this._pollTimer=this.pollRate;else return!1;var te=!1;for(x=0;x<$;x++){var z=0,j=Z[x];this._tempZones=[],this._temp=this.hitTestPointer(j),this.sortGameObjects(this._temp,j),this.sortDropZones(this._tempZones),this.topOnly&&(this._temp.length&&this._temp.splice(1),this._tempZones.length&&this._tempZones.splice(1)),z+=this.processOverOutEvents(j),this.getDragState(j)===2&&this.processDragThresholdEvent(j,_),z>0&&(te=!0)}return te},update:function(_,F){if(!this.isActive())return!1;for(var x=F.length,V=!1,Z=0;Z0&&(V=!0)}return this._updatedThisFrame=!0,V},clear:function(_,F){F===void 0&&(F=!1),this.disable(_);var x=_.input;x&&(this.removeDebug(_),this.manager.resetCursor(x),x.gameObject=void 0,x.target=void 0,x.hitArea=void 0,x.hitAreaCallback=void 0,x.callbackContext=void 0,_.input=null),F||this.queueForRemoval(_);var V=this._draggable.indexOf(_);return V>-1&&this._draggable.splice(V,1),_},disable:function(_){var F=_.input;F&&(F.enabled=!1,F.dragState=0);for(var x=this._drag,V=this._over,Z=this.manager,$=0,Q;$-1&&x[$].splice(Q,1),Q=V[$].indexOf(_),Q>-1&&V[$].splice(Q,1);return this},enable:function(_,F,x,V){return V===void 0&&(V=!1),_.input?_.input.enabled=!0:this.setHitArea(_,F,x),_.input&&V&&!_.input.dropZone&&(_.input.dropZone=V),this},hitTestPointer:function(_){for(var F=this.cameras.getCamerasBelowPointer(_),x=0;x0)return _.camera=V,Z}return _.camera=F[0],[]},processDownEvents:function(_){var F=0,x=this._temp,V=this._eventData,Z=this._eventContainer;V.cancelled=!1;for(var $=!1,Q=0;Q0&&f(_.x,_.y,_.downX,_.downY)>=Z||V>0&&F>=_.downTime+V)&&(x=!0),x)return this.setDragState(_,3),this.processDragStartList(_)},processDragStartList:function(_){if(this.getDragState(_)!==3)return 0;for(var F=this._drag[_.id],x=0;x1&&(this.sortGameObjects(x,_),this.topOnly&&x.splice(1)),this._drag[_.id]=x,this.dragDistanceThreshold===0&&this.dragTimeThreshold===0?(this.setDragState(_,3),this.processDragStartList(_)):(this.setDragState(_,2),0))},processDragMoveEvent:function(_){if(this.getDragState(_)===2&&this.processDragThresholdEvent(_,this.manager.game.loop.now),this.getDragState(_)!==4)return 0;for(var F=this._tempZones,x=this._drag[_.id],V=0;V0?(Z.emit(L.GAMEOBJECT_DRAG_LEAVE,_,Q),this.emit(L.DRAG_LEAVE,_,Z,Q),$.target=F[0],Q=$.target,Z.emit(L.GAMEOBJECT_DRAG_ENTER,_,Q),this.emit(L.DRAG_ENTER,_,Z,Q)):(Z.emit(L.GAMEOBJECT_DRAG_LEAVE,_,Q),this.emit(L.DRAG_LEAVE,_,Z,Q),F[0]?($.target=F[0],Q=$.target,Z.emit(L.GAMEOBJECT_DRAG_ENTER,_,Q),this.emit(L.DRAG_ENTER,_,Z,Q)):$.target=null)}else!Q&&F[0]&&($.target=F[0],Q=$.target,Z.emit(L.GAMEOBJECT_DRAG_ENTER,_,Q),this.emit(L.DRAG_ENTER,_,Z,Q));var z,j;if(!Z.parentContainer)z=_.worldX-$.dragX,j=_.worldY-$.dragY;else{var k=_.worldX-$.dragStartXGlobal,X=_.worldY-$.dragStartYGlobal,q=Z.getParentRotation(),J=k*Math.cos(q)+X*Math.sin(q),ne=X*Math.cos(q)-k*Math.sin(q);J*=1/Z.parentContainer.scaleX,ne*=1/Z.parentContainer.scaleY,z=J+$.dragStartX,j=ne+$.dragStartY}Z.emit(L.GAMEOBJECT_DRAG,_,z,j),this.emit(L.DRAG,_,Z,z,j)}return x.length},processDragUpEvent:function(_){for(var F=this._drag[_.id],x=0;x0){var $=this.manager,Q=this._eventData,te=this._eventContainer;Q.cancelled=!1;for(var z=!1,j=0;j0){var Z=this.manager,$=this._eventData,Q=this._eventContainer;$.cancelled=!1;var te=!1;this.sortGameObjects(F,_);for(var z=0;z0){for(this.sortGameObjects(Z,_),x=0;x0){for(this.sortGameObjects($,_),x=0;x-1&&this._draggable.splice(Z,1)}return this},makePixelPerfect:function(_){_===void 0&&(_=1);var F=this.systems.textures;return h(F,_)},setHitArea:function(_,F,x){if(F===void 0)return this.setHitAreaFromTexture(_);Array.isArray(_)||(_=[_]);var V=!1,Z=!1,$=!1,Q=!1,te=!1,z=!0;if(P(F)&&Object.keys(F).length){var j=F,k=_.some(function(re){return re.hasOwnProperty("faces")});if(!k){F=N(j,"hitArea",null),x=N(j,"hitAreaCallback",null),te=N(j,"pixelPerfect",!1);var X=N(j,"alphaTolerance",1);te&&(F={},x=this.makePixelPerfect(X))}V=N(j,"draggable",!1),Z=N(j,"dropZone",!1),$=N(j,"cursor",!1),Q=N(j,"useHandCursor",!1),(!F||!x)&&(this.setHitAreaFromTexture(_),z=!1)}else typeof F=="function"&&!x&&(x=F,F={});for(var q=0;q<_.length;q++){var J=_[q];if(te&&J.type==="Container"){console.warn("Cannot pixelPerfect test a Container. Use a custom callback.");continue}var ne=J.input?J.input:d(J,F,x);ne.customHitArea=z,ne.dropZone=Z,ne.cursor=Q?"pointer":$,J.input=ne,V&&this.setDraggable(J),this.queueForInsertion(J)}return this},setHitAreaCircle:function(_,F,x,V,Z){Z===void 0&&(Z=T);var $=new u(F,x,V);return this.setHitArea(_,$,Z)},setHitAreaEllipse:function(_,F,x,V,Z,$){$===void 0&&($=R);var Q=new S(F,x,V,Z);return this.setHitArea(_,Q,$)},setHitAreaFromTexture:function(_,F){F===void 0&&(F=G),Array.isArray(_)||(_=[_]);for(var x=0;x<_.length;x++){var V=_[x],Z=V.frame,$=0,Q=0;if(V.width?($=V.width,Q=V.height):Z&&($=Z.realWidth,Q=Z.realHeight),V.type==="Container"&&($===0||Q===0)){console.warn("Container.setInteractive must specify a Shape or call setSize() first");continue}$!==0&&Q!==0&&(V.input=d(V,new D(0,0,$,Q),F),this.queueForInsertion(V))}return this},setHitAreaRectangle:function(_,F,x,V,Z,$){$===void 0&&($=G);var Q=new D(F,x,V,Z);return this.setHitArea(_,Q,$)},setHitAreaTriangle:function(_,F,x,V,Z,$,Q,te){te===void 0&&(te=b);var z=new B(F,x,V,Z,$,Q);return this.setHitArea(_,z,te)},enableDebug:function(_,F){F===void 0&&(F=65280);var x=_.input;if(!x||!x.hitArea)return this;var V=x.hitArea,Z=V.type,$=x.hitAreaDebug,Q=this.systems.add,te=this.systems.updateList;$&&(te.remove($),$.destroy(),$=null);var z=0,j=0;switch(Z){case g.CIRCLE:$=Q.arc(0,0,V.radius),z=V.x-V.radius,j=V.y-V.radius;break;case g.ELLIPSE:$=Q.ellipse(0,0,V.width,V.height),z=V.x-V.width/2,j=V.y-V.height/2;break;case g.LINE:$=Q.line(0,0,V.x1,V.y1,V.x2,V.y2);break;case g.POLYGON:$=Q.polygon(0,0,V.points);break;case g.RECTANGLE:$=Q.rectangle(0,0,V.width,V.height),z=V.x,j=V.y;break;case g.TRIANGLE:$=Q.triangle(0,0,V.x1,V.y1,V.x2,V.y2,V.x3,V.y3);break}return $&&($.isFilled=!1,$.strokeColor=F,$.preUpdate=function(){$.setVisible(_.visible),$.setStrokeStyle(1/_.scale,$.strokeColor),$.setDisplayOrigin(_.displayOriginX,_.displayOriginY);var k=_.x,X=_.y,q=_.rotation,J=_.scaleX,ne=_.scaleY;if(_.parentContainer){var re=_.getWorldTransformMatrix();k=re.tx,X=re.ty,q=re.rotation,J=re.scaleX,ne=re.scaleY}$.setRotation(q),$.setScale(J,ne),$.setPosition(k+z*J,X+j*ne),$.setScrollFactor(_.scrollFactorX,_.scrollFactorY),$.setDepth(_.depth)},te.add($),x.hitAreaDebug=$),this},removeDebug:function(_){var F=_.input;if(F&&F.hitAreaDebug){var x=F.hitAreaDebug;x.destroy(),F.hitAreaDebug=null}return this},setPollAlways:function(){return this.setPollRate(0)},setPollOnMove:function(){return this.setPollRate(-1)},setPollRate:function(_){return this.pollRate=_,this._pollTimer=0,this},setGlobalTopOnly:function(_){return this.manager.globalTopOnly=_,this},setTopOnly:function(_){return this.topOnly=_,this},sortGameObjects:function(_,F){if(_.length<2||!F.camera)return _;var x=F.camera.renderList;return _.sort(function(V,Z){var $=Math.max(x.indexOf(V),0),Q=Math.max(x.indexOf(Z),0);return Q-$})},sortDropZones:function(_){return _.length<2?_:(this.scene.sys.depthSort(),_.sort(this.sortDropZoneHandler.bind(this)))},sortDropZoneHandler:function(_,F){if(!_.parentContainer&&!F.parentContainer)return this.displayList.getIndex(F)-this.displayList.getIndex(_);if(_.parentContainer===F.parentContainer)return F.parentContainer.getIndex(F)-_.parentContainer.getIndex(_);if(_.parentContainer===F)return-1;if(F.parentContainer===_)return 1;for(var x=_.getIndexList(),V=F.getIndexList(),Z=Math.min(x.length,V.length),$=0;${/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(35154),T={},d={};d.register=function(c,A,h,f,S){T[c]={plugin:A,mapping:h,settingsKey:f,configKey:S}},d.getPlugin=function(c){return T[c]},d.install=function(c){var A=c.scene.sys,h=A.settings.input,f=A.game.config;for(var S in T){var O=T[S].plugin,L=T[S].mapping,p=T[S].settingsKey,N=T[S].configKey;u(h,p,f[N])&&(c[L]=new O(c))}},d.remove=function(c){T.hasOwnProperty(c)&&delete T[c]},o.exports=d},42515:(o,m,s)=>{/** + */var u=s(35154),T={},A={};A.register=function(c,d,h,f,S){T[c]={plugin:d,mapping:h,settingsKey:f,configKey:S}},A.getPlugin=function(c){return T[c]},A.install=function(c){var d=c.scene.sys,h=d.settings.input,f=d.game.config;for(var S in T){var R=T[S].plugin,L=T[S].mapping,p=T[S].settingsKey,N=T[S].configKey;u(h,p,f[N])&&(c[L]=new R(c))}},A.remove=function(c){T.hasOwnProperty(c)&&delete T[c]},o.exports=A},42515:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(31040),T=s(83419),d=s(20339),c=s(43855),A=s(47235),h=s(26099),f=s(25892),S=new T({initialize:P(function(L,p){this.manager=L,this.id=p,this.event,this.downElement,this.upElement,this.camera=null,this.button=0,this.buttons=0,this.position=new h,this.prevPosition=new h,this.midPoint=new h(-1,-1),this.velocity=new h,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=p===0,this.locked=!1,this.deltaX=0,this.deltaY=0,this.deltaZ=0},"Pointer"),updateWorldPoint:function(O){var L=O.getWorldPoint(this.x,this.y);return this.worldX=L.x,this.worldY=L.y,this},positionToCamera:function(O,L){return O.getWorldPoint(this.x,this.y,L)},updateMotion:function(){var O=this.position.x,L=this.position.y,p=this.midPoint.x,N=this.midPoint.y;if(!(O===p&&L===N)){var g=A(this.motionFactor,p,O),C=A(this.motionFactor,N,L);c(g,O,.1)&&(g=O),c(C,L,.1)&&(C=L),this.midPoint.set(g,C);var v=O-g,M=L-C;this.velocity.set(v,M),this.angle=u(g,C,O,L),this.distance=Math.sqrt(v*v+M*M)}},up:function(O){"buttons"in O&&(this.buttons=O.buttons),this.event=O,this.button=O.button,this.upElement=O.target,this.manager.transformPointer(this,O.pageX,O.pageY,!1),O.button===0&&(this.primaryDown=!1,this.upX=this.x,this.upY=this.y),this.buttons===0&&(this.isDown=!1,this.upTime=O.timeStamp,this.wasTouch=!1)},down:function(O){"buttons"in O&&(this.buttons=O.buttons),this.event=O,this.button=O.button,this.downElement=O.target,this.manager.transformPointer(this,O.pageX,O.pageY,!1),O.button===0&&(this.primaryDown=!0,this.downX=this.x,this.downY=this.y),f.macOS&&O.ctrlKey&&(this.buttons=2,this.primaryDown=!1),this.isDown||(this.isDown=!0,this.downTime=O.timeStamp),this.wasTouch=!1},move:function(O){"buttons"in O&&(this.buttons=O.buttons),this.event=O,this.manager.transformPointer(this,O.pageX,O.pageY,!0),this.locked&&(this.movementX=O.movementX||O.mozMovementX||O.webkitMovementX||0,this.movementY=O.movementY||O.mozMovementY||O.webkitMovementY||0),this.moveTime=O.timeStamp,this.wasTouch=!1},wheel:function(O){"buttons"in O&&(this.buttons=O.buttons),this.event=O,this.manager.transformPointer(this,O.pageX,O.pageY,!1),this.deltaX=O.deltaX,this.deltaY=O.deltaY,this.deltaZ=O.deltaZ,this.wasTouch=!1},touchstart:function(O,L){O.pointerId&&(this.pointerId=O.pointerId),this.identifier=O.identifier,this.target=O.target,this.active=!0,this.buttons=1,this.event=L,this.downElement=O.target,this.manager.transformPointer(this,O.pageX,O.pageY,!1),this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=L.timeStamp,this.isDown=!0,this.wasTouch=!0,this.wasCanceled=!1,this.updateMotion()},touchmove:function(O,L){this.event=L,this.manager.transformPointer(this,O.pageX,O.pageY,!0),this.moveTime=L.timeStamp,this.wasTouch=!0,this.updateMotion()},touchend:function(O,L){this.buttons=0,this.event=L,this.upElement=O.target,this.manager.transformPointer(this,O.pageX,O.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=L.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!1,this.active=!1,this.updateMotion()},touchcancel:function(O,L){this.buttons=0,this.event=L,this.upElement=O.target,this.manager.transformPointer(this,O.pageX,O.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=L.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?d(this.downX,this.downY,this.x,this.y):d(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?u(this.downX,this.downY,this.x,this.y):u(this.downX,this.downY,this.upX,this.upY)},getInterpolatedPosition:function(O,L){O===void 0&&(O=10),L===void 0&&(L=[]);for(var p=this.prevPosition.x,N=this.prevPosition.y,g=this.position.x,C=this.position.y,v=0;v{/** + */var u=s(31040),T=s(83419),A=s(20339),c=s(43855),d=s(47235),h=s(26099),f=s(25892),S=new T({initialize:v(function(L,p){this.manager=L,this.id=p,this.event,this.downElement,this.upElement,this.camera=null,this.button=0,this.buttons=0,this.position=new h,this.prevPosition=new h,this.midPoint=new h(-1,-1),this.velocity=new h,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=p===0,this.locked=!1,this.deltaX=0,this.deltaY=0,this.deltaZ=0},"Pointer"),updateWorldPoint:function(R){var L=R.getWorldPoint(this.x,this.y);return this.worldX=L.x,this.worldY=L.y,this},positionToCamera:function(R,L){return R.getWorldPoint(this.x,this.y,L)},updateMotion:function(){var R=this.position.x,L=this.position.y,p=this.midPoint.x,N=this.midPoint.y;if(!(R===p&&L===N)){var g=d(this.motionFactor,p,R),C=d(this.motionFactor,N,L);c(g,R,.1)&&(g=R),c(C,L,.1)&&(C=L),this.midPoint.set(g,C);var P=R-g,M=L-C;this.velocity.set(P,M),this.angle=u(g,C,R,L),this.distance=Math.sqrt(P*P+M*M)}},up:function(R){"buttons"in R&&(this.buttons=R.buttons),this.event=R,this.button=R.button,this.upElement=R.target,this.manager.transformPointer(this,R.pageX,R.pageY,!1),R.button===0&&(this.primaryDown=!1,this.upX=this.x,this.upY=this.y),this.buttons===0&&(this.isDown=!1,this.upTime=R.timeStamp,this.wasTouch=!1)},down:function(R){"buttons"in R&&(this.buttons=R.buttons),this.event=R,this.button=R.button,this.downElement=R.target,this.manager.transformPointer(this,R.pageX,R.pageY,!1),R.button===0&&(this.primaryDown=!0,this.downX=this.x,this.downY=this.y),f.macOS&&R.ctrlKey&&(this.buttons=2,this.primaryDown=!1),this.isDown||(this.isDown=!0,this.downTime=R.timeStamp),this.wasTouch=!1},move:function(R){"buttons"in R&&(this.buttons=R.buttons),this.event=R,this.manager.transformPointer(this,R.pageX,R.pageY,!0),this.locked&&(this.movementX=R.movementX||R.mozMovementX||R.webkitMovementX||0,this.movementY=R.movementY||R.mozMovementY||R.webkitMovementY||0),this.moveTime=R.timeStamp,this.wasTouch=!1},wheel:function(R){"buttons"in R&&(this.buttons=R.buttons),this.event=R,this.manager.transformPointer(this,R.pageX,R.pageY,!1),this.deltaX=R.deltaX,this.deltaY=R.deltaY,this.deltaZ=R.deltaZ,this.wasTouch=!1},touchstart:function(R,L){R.pointerId&&(this.pointerId=R.pointerId),this.identifier=R.identifier,this.target=R.target,this.active=!0,this.buttons=1,this.event=L,this.downElement=R.target,this.manager.transformPointer(this,R.pageX,R.pageY,!1),this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=L.timeStamp,this.isDown=!0,this.wasTouch=!0,this.wasCanceled=!1,this.updateMotion()},touchmove:function(R,L){this.event=L,this.manager.transformPointer(this,R.pageX,R.pageY,!0),this.moveTime=L.timeStamp,this.wasTouch=!0,this.updateMotion()},touchend:function(R,L){this.buttons=0,this.event=L,this.upElement=R.target,this.manager.transformPointer(this,R.pageX,R.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=L.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!1,this.active=!1,this.updateMotion()},touchcancel:function(R,L){this.buttons=0,this.event=L,this.upElement=R.target,this.manager.transformPointer(this,R.pageX,R.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=L.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?A(this.downX,this.downY,this.x,this.y):A(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?u(this.downX,this.downY,this.x,this.y):u(this.downX,this.downY,this.upX,this.upY)},getInterpolatedPosition:function(R,L){R===void 0&&(R=10),L===void 0&&(L=[]);for(var p=this.prevPosition.x,N=this.prevPosition.y,g=this.position.x,C=this.position.y,P=0;P{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={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};o.exports=m},7179:o=>{/** + */var O={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};o.exports=O},7179:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3224,27 +3224,27 @@ var dne=Object.defineProperty;var P=(n,t)=>dne(n,"name",{value:t,configurable:!0 * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports="update"},8214:(o,m,s)=>{/** + */o.exports="update"},8214:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={BOOT:s(7179),DESTROY:s(85375),DRAG_END:s(39843),DRAG_ENTER:s(23388),DRAG:s(16133),DRAG_LEAVE:s(27829),DRAG_OVER:s(53904),DRAG_START:s(56058),DROP:s(2642),GAME_OUT:s(56718),GAME_OVER:s(25936),GAMEOBJECT_DOWN:s(88171),GAMEOBJECT_DRAG_END:s(36147),GAMEOBJECT_DRAG_ENTER:s(71692),GAMEOBJECT_DRAG:s(96149),GAMEOBJECT_DRAG_LEAVE:s(81285),GAMEOBJECT_DRAG_OVER:s(74048),GAMEOBJECT_DRAG_START:s(21322),GAMEOBJECT_DROP:s(49378),GAMEOBJECT_MOVE:s(86754),GAMEOBJECT_OUT:s(86433),GAMEOBJECT_OVER:s(60709),GAMEOBJECT_POINTER_DOWN:s(24081),GAMEOBJECT_POINTER_MOVE:s(11172),GAMEOBJECT_POINTER_OUT:s(18907),GAMEOBJECT_POINTER_OVER:s(95579),GAMEOBJECT_POINTER_UP:s(35368),GAMEOBJECT_POINTER_WHEEL:s(26972),GAMEOBJECT_UP:s(47078),GAMEOBJECT_WHEEL:s(73802),MANAGER_BOOT:s(27503),MANAGER_PROCESS:s(50852),MANAGER_UPDATE:s(96438),POINTER_DOWN:s(47777),POINTER_DOWN_OUTSIDE:s(27957),POINTER_MOVE:s(19444),POINTER_OUT:s(54251),POINTER_OVER:s(18667),POINTER_UP:s(27192),POINTER_UP_OUTSIDE:s(24652),POINTER_WHEEL:s(45132),POINTERLOCK_CHANGE:s(59152),PRE_UPDATE:s(44512),SHUTDOWN:s(15757),START:s(41637),UPDATE:s(93802)}},97421:(o,m,s)=>{/** + */o.exports={BOOT:s(7179),DESTROY:s(85375),DRAG_END:s(39843),DRAG_ENTER:s(23388),DRAG:s(16133),DRAG_LEAVE:s(27829),DRAG_OVER:s(53904),DRAG_START:s(56058),DROP:s(2642),GAME_OUT:s(56718),GAME_OVER:s(25936),GAMEOBJECT_DOWN:s(88171),GAMEOBJECT_DRAG_END:s(36147),GAMEOBJECT_DRAG_ENTER:s(71692),GAMEOBJECT_DRAG:s(96149),GAMEOBJECT_DRAG_LEAVE:s(81285),GAMEOBJECT_DRAG_OVER:s(74048),GAMEOBJECT_DRAG_START:s(21322),GAMEOBJECT_DROP:s(49378),GAMEOBJECT_MOVE:s(86754),GAMEOBJECT_OUT:s(86433),GAMEOBJECT_OVER:s(60709),GAMEOBJECT_POINTER_DOWN:s(24081),GAMEOBJECT_POINTER_MOVE:s(11172),GAMEOBJECT_POINTER_OUT:s(18907),GAMEOBJECT_POINTER_OVER:s(95579),GAMEOBJECT_POINTER_UP:s(35368),GAMEOBJECT_POINTER_WHEEL:s(26972),GAMEOBJECT_UP:s(47078),GAMEOBJECT_WHEEL:s(73802),MANAGER_BOOT:s(27503),MANAGER_PROCESS:s(50852),MANAGER_UPDATE:s(96438),POINTER_DOWN:s(47777),POINTER_DOWN_OUTSIDE:s(27957),POINTER_MOVE:s(19444),POINTER_OUT:s(54251),POINTER_OVER:s(18667),POINTER_UP:s(27192),POINTER_UP_OUTSIDE:s(24652),POINTER_WHEEL:s(45132),POINTERLOCK_CHANGE:s(59152),PRE_UPDATE:s(44512),SHUTDOWN:s(15757),START:s(41637),UPDATE:s(93802)}},97421:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=new u({initialize:P(function(c,A){this.pad=c,this.events=c.events,this.index=A,this.value=0,this.threshold=.1},"Axis"),update:function(d){this.value=d},getValue:function(){return Math.abs(this.value){/** + */var u=s(83419),T=new u({initialize:v(function(c,d){this.pad=c,this.events=c.events,this.index=d,this.value=0,this.threshold=.1},"Axis"),update:function(A){this.value=A},getValue:function(){return Math.abs(this.value){/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(92734),d=new u({initialize:P(function(A,h){this.pad=A,this.events=A.manager,this.index=h,this.value=0,this.threshold=1,this.pressed=!1},"Button"),update:function(c){this.value=c;var A=this.pad,h=this.index;c>=this.threshold?this.pressed||(this.pressed=!0,this.events.emit(T.BUTTON_DOWN,A,this,c),this.pad.emit(T.GAMEPAD_BUTTON_DOWN,h,c,this)):this.pressed&&(this.pressed=!1,this.events.emit(T.BUTTON_UP,A,this,c),this.pad.emit(T.GAMEPAD_BUTTON_UP,h,c,this))},destroy:function(){this.pad=null,this.events=null}});o.exports=d},99125:(o,m,s)=>{/** + */var u=s(83419),T=s(92734),A=new u({initialize:v(function(d,h){this.pad=d,this.events=d.manager,this.index=h,this.value=0,this.threshold=1,this.pressed=!1},"Button"),update:function(c){this.value=c;var d=this.pad,h=this.index;c>=this.threshold?this.pressed||(this.pressed=!0,this.events.emit(T.BUTTON_DOWN,d,this,c),this.pad.emit(T.GAMEPAD_BUTTON_DOWN,h,c,this)):this.pressed&&(this.pressed=!1,this.events.emit(T.BUTTON_UP,d,this,c),this.pad.emit(T.GAMEPAD_BUTTON_UP,h,c,this))},destroy:function(){this.pad=null,this.events=null}});o.exports=A},99125:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(97421),T=s(28884),d=s(83419),c=s(50792),A=s(26099),h=new d({Extends:c,initialize:P(function(S,O){c.call(this),this.manager=S,this.pad=O,this.id=O.id,this.index=O.index;for(var L=[],p=0;p=2&&(this.leftStick.set(N[0].getValue(),N[1].getValue()),p>=4&&this.rightStick.set(N[2].getValue(),N[3].getValue()))}},destroy:function(){this.removeAllListeners(),this.manager=null,this.pad=null;var f;for(f=0;f{/** + */var u=s(97421),T=s(28884),A=s(83419),c=s(50792),d=s(26099),h=new A({Extends:c,initialize:v(function(S,R){c.call(this),this.manager=S,this.pad=R,this.id=R.id,this.index=R.index;for(var L=[],p=0;p=2&&(this.leftStick.set(N[0].getValue(),N[1].getValue()),p>=4&&this.rightStick.set(N[2].getValue(),N[3].getValue()))}},destroy:function(){this.removeAllListeners(),this.manager=null,this.pad=null;var f;for(f=0;f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(50792),d=s(92734),c=s(99125),A=s(35154),h=s(89639),f=s(8214),S=new u({Extends:T,initialize:P(function(L){T.call(this),this.scene=L.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=L,this.enabled=!0,this.target,this.gamepads=[],this.queue=[],this.onGamepadHandler,this._pad1,this._pad2,this._pad3,this._pad4,L.pluginEvents.once(f.BOOT,this.boot,this),L.pluginEvents.on(f.START,this.start,this)},"GamepadPlugin"),boot:function(){var O=this.scene.sys.game,L=this.settings.input,p=O.config;this.enabled=A(L,"gamepad",p.inputGamepad)&&O.device.input.gamepads,this.target=A(L,"gamepad.target",p.inputGamepadEventTarget),this.sceneInputPlugin.pluginEvents.once(f.DESTROY,this.destroy,this)},start:function(){this.enabled&&(this.startListeners(),this.refreshPads()),this.sceneInputPlugin.pluginEvents.once(f.SHUTDOWN,this.shutdown,this)},isActive:function(){return this.enabled&&this.scene.sys.isActive()},startListeners:function(){var O=this,L=this.target,p=P(function(N){N.defaultPrevented||!O.isActive()||(O.refreshPads(),O.queue.push(N))},"handler");this.onGamepadHandler=p,L.addEventListener("gamepadconnected",p,!1),L.addEventListener("gamepaddisconnected",p,!1),this.sceneInputPlugin.pluginEvents.on(f.UPDATE,this.update,this)},stopListeners:function(){this.target.removeEventListener("gamepadconnected",this.onGamepadHandler),this.target.removeEventListener("gamepaddisconnected",this.onGamepadHandler),this.sceneInputPlugin.pluginEvents.off(f.UPDATE,this.update);for(var O=0;O{/** + */var u=s(83419),T=s(50792),A=s(92734),c=s(99125),d=s(35154),h=s(89639),f=s(8214),S=new u({Extends:T,initialize:v(function(L){T.call(this),this.scene=L.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=L,this.enabled=!0,this.target,this.gamepads=[],this.queue=[],this.onGamepadHandler,this._pad1,this._pad2,this._pad3,this._pad4,L.pluginEvents.once(f.BOOT,this.boot,this),L.pluginEvents.on(f.START,this.start,this)},"GamepadPlugin"),boot:function(){var R=this.scene.sys.game,L=this.settings.input,p=R.config;this.enabled=d(L,"gamepad",p.inputGamepad)&&R.device.input.gamepads,this.target=d(L,"gamepad.target",p.inputGamepadEventTarget),this.sceneInputPlugin.pluginEvents.once(f.DESTROY,this.destroy,this)},start:function(){this.enabled&&(this.startListeners(),this.refreshPads()),this.sceneInputPlugin.pluginEvents.once(f.SHUTDOWN,this.shutdown,this)},isActive:function(){return this.enabled&&this.scene.sys.isActive()},startListeners:function(){var R=this,L=this.target,p=v(function(N){N.defaultPrevented||!R.isActive()||(R.refreshPads(),R.queue.push(N))},"handler");this.onGamepadHandler=p,L.addEventListener("gamepadconnected",p,!1),L.addEventListener("gamepaddisconnected",p,!1),this.sceneInputPlugin.pluginEvents.on(f.UPDATE,this.update,this)},stopListeners:function(){this.target.removeEventListener("gamepadconnected",this.onGamepadHandler),this.target.removeEventListener("gamepaddisconnected",this.onGamepadHandler),this.sceneInputPlugin.pluginEvents.off(f.UPDATE,this.update);for(var R=0;R{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3256,7 +3256,7 @@ var dne=Object.defineProperty;var P=(n,t)=>dne(n,"name",{value:t,configurable:!0 * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.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}},64894:(o,m,s)=>{/** + */o.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}},64894:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3284,43 +3284,43 @@ var dne=Object.defineProperty;var P=(n,t)=>dne(n,"name",{value:t,configurable:!0 * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports="up"},92734:(o,m,s)=>{/** + */o.exports="up"},92734:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={BUTTON_DOWN:s(46008),BUTTON_UP:s(7629),CONNECTED:s(42206),DISCONNECTED:s(86544),GAMEPAD_BUTTON_DOWN:s(94784),GAMEPAD_BUTTON_UP:s(14325)}},48646:(o,m,s)=>{/** + */o.exports={BUTTON_DOWN:s(46008),BUTTON_UP:s(7629),CONNECTED:s(42206),DISCONNECTED:s(86544),GAMEPAD_BUTTON_DOWN:s(94784),GAMEPAD_BUTTON_UP:s(14325)}},48646:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={Axis:s(97421),Button:s(28884),Events:s(92734),Gamepad:s(99125),GamepadPlugin:s(56654),Configs:s(64894)}},14350:(o,m,s)=>{/** + */o.exports={Axis:s(97421),Button:s(28884),Events:s(92734),Gamepad:s(99125),GamepadPlugin:s(56654),Configs:s(64894)}},14350:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(93301),T=s(79291),d={CreatePixelPerfectHandler:s(84409),CreateInteractiveObject:s(74457),Events:s(8214),Gamepad:s(48646),InputManager:s(7003),InputPlugin:s(48205),InputPluginCache:s(89639),Keyboard:s(51442),Mouse:s(87078),Pointer:s(42515),Touch:s(95618)};d=T(!1,d,u),o.exports=d},78970:(o,m,s)=>{/** + */var u=s(93301),T=s(79291),A={CreatePixelPerfectHandler:s(84409),CreateInteractiveObject:s(74457),Events:s(8214),Gamepad:s(48646),InputManager:s(7003),InputPlugin:s(48205),InputPluginCache:s(89639),Keyboard:s(51442),Mouse:s(87078),Pointer:s(42515),Touch:s(95618)};A=T(!1,A,u),o.exports=A},78970:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(72905),T=s(83419),d=s(8443),c=s(8214),A=s(46032),h=s(29747),f=new T({initialize:P(function(O){this.manager=O,this.queue=[],this.preventDefault=!0,this.captures=[],this.enabled=!1,this.target,this.onKeyDown=h,this.onKeyUp=h,O.events.once(c.MANAGER_BOOT,this.boot,this)},"KeyboardManager"),boot:function(){var S=this.manager.config;this.enabled=S.inputKeyboard,this.target=S.inputKeyboardEventTarget,this.addCapture(S.inputKeyboardCapture),!this.target&&window&&(this.target=window),this.enabled&&this.target&&this.startListeners(),this.manager.game.events.on(d.POST_STEP,this.postUpdate,this)},startListeners:function(){var S=this;this.onKeyDown=function(L){if(!(L.defaultPrevented||!S.enabled||!S.manager)){S.queue.push(L),S.manager.events.emit(c.MANAGER_PROCESS);var p=L.altKey||L.ctrlKey||L.shiftKey||L.metaKey;S.preventDefault&&!p&&S.captures.indexOf(L.keyCode)>-1&&L.preventDefault()}},this.onKeyUp=function(L){if(!(L.defaultPrevented||!S.enabled||!S.manager)){S.queue.push(L),S.manager.events.emit(c.MANAGER_PROCESS);var p=L.altKey||L.ctrlKey||L.shiftKey||L.metaKey;S.preventDefault&&!p&&S.captures.indexOf(L.keyCode)>-1&&L.preventDefault()}};var O=this.target;O&&(O.addEventListener("keydown",this.onKeyDown,!1),O.addEventListener("keyup",this.onKeyUp,!1),this.enabled=!0)},stopListeners:function(){var S=this.target;S.removeEventListener("keydown",this.onKeyDown,!1),S.removeEventListener("keyup",this.onKeyUp,!1),this.enabled=!1},postUpdate:function(){this.queue=[]},addCapture:function(S){typeof S=="string"&&(S=S.split(",")),Array.isArray(S)||(S=[S]);for(var O=this.captures,L=0;L0},removeCapture:function(S){typeof S=="string"&&(S=S.split(",")),Array.isArray(S)||(S=[S]);for(var O=this.captures,L=0;L0},clearCaptures:function(){this.captures=[],this.preventDefault=!1},destroy:function(){this.stopListeners(),this.clearCaptures(),this.queue=[],this.manager.game.events.off(d.POST_RENDER,this.postUpdate,this),this.target=null,this.enabled=!1,this.manager=null}});o.exports=f},28846:(o,m,s)=>{/** + */var u=s(72905),T=s(83419),A=s(8443),c=s(8214),d=s(46032),h=s(29747),f=new T({initialize:v(function(R){this.manager=R,this.queue=[],this.preventDefault=!0,this.captures=[],this.enabled=!1,this.target,this.onKeyDown=h,this.onKeyUp=h,R.events.once(c.MANAGER_BOOT,this.boot,this)},"KeyboardManager"),boot:function(){var S=this.manager.config;this.enabled=S.inputKeyboard,this.target=S.inputKeyboardEventTarget,this.addCapture(S.inputKeyboardCapture),!this.target&&window&&(this.target=window),this.enabled&&this.target&&this.startListeners(),this.manager.game.events.on(A.POST_STEP,this.postUpdate,this)},startListeners:function(){var S=this;this.onKeyDown=function(L){if(!(L.defaultPrevented||!S.enabled||!S.manager)){S.queue.push(L),S.manager.events.emit(c.MANAGER_PROCESS);var p=L.altKey||L.ctrlKey||L.shiftKey||L.metaKey;S.preventDefault&&!p&&S.captures.indexOf(L.keyCode)>-1&&L.preventDefault()}},this.onKeyUp=function(L){if(!(L.defaultPrevented||!S.enabled||!S.manager)){S.queue.push(L),S.manager.events.emit(c.MANAGER_PROCESS);var p=L.altKey||L.ctrlKey||L.shiftKey||L.metaKey;S.preventDefault&&!p&&S.captures.indexOf(L.keyCode)>-1&&L.preventDefault()}};var R=this.target;R&&(R.addEventListener("keydown",this.onKeyDown,!1),R.addEventListener("keyup",this.onKeyUp,!1),this.enabled=!0)},stopListeners:function(){var S=this.target;S.removeEventListener("keydown",this.onKeyDown,!1),S.removeEventListener("keyup",this.onKeyUp,!1),this.enabled=!1},postUpdate:function(){this.queue=[]},addCapture:function(S){typeof S=="string"&&(S=S.split(",")),Array.isArray(S)||(S=[S]);for(var R=this.captures,L=0;L0},removeCapture:function(S){typeof S=="string"&&(S=S.split(",")),Array.isArray(S)||(S=[S]);for(var R=this.captures,L=0;L0},clearCaptures:function(){this.captures=[],this.preventDefault=!1},destroy:function(){this.stopListeners(),this.clearCaptures(),this.queue=[],this.manager.game.events.off(A.POST_RENDER,this.postUpdate,this),this.target=null,this.enabled=!1,this.manager=null}});o.exports=f},28846:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(50792),d=s(95922),c=s(8443),A=s(35154),h=s(8214),f=s(89639),S=s(30472),O=s(46032),L=s(87960),p=s(74600),N=s(44594),g=s(56583),C=new u({Extends:T,initialize:P(function(M){T.call(this),this.game=M.systems.game,this.scene=M.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=M,this.manager=M.manager.keyboard,this.enabled=!0,this.keys=[],this.combos=[],this.prevCode=null,this.prevTime=0,this.prevType=null,M.pluginEvents.once(h.BOOT,this.boot,this),M.pluginEvents.on(h.START,this.start,this)},"KeyboardPlugin"),boot:function(){var v=this.settings.input;this.enabled=A(v,"keyboard",!0);var M=A(v,"keyboard.capture",null);M&&this.addCaptures(M),this.sceneInputPlugin.pluginEvents.once(h.DESTROY,this.destroy,this)},start:function(){this.sceneInputPlugin.manager.events.on(h.MANAGER_PROCESS,this.update,this),this.sceneInputPlugin.pluginEvents.once(h.SHUTDOWN,this.shutdown,this),this.game.events.on(c.BLUR,this.resetKeys,this),this.scene.sys.events.on(N.PAUSE,this.resetKeys,this),this.scene.sys.events.on(N.SLEEP,this.resetKeys,this)},isActive:function(){return this.enabled&&this.scene.sys.canInput()},addCapture:function(v){return this.manager.addCapture(v),this},removeCapture:function(v){return this.manager.removeCapture(v),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:O.UP,down:O.DOWN,left:O.LEFT,right:O.RIGHT,space:O.SPACE,shift:O.SHIFT})},addKeys:function(v,M,D){M===void 0&&(M=!0),D===void 0&&(D=!1);var G={};if(typeof v=="string"){v=v.split(",");for(var H=0;H-1?G[H]=v:G[v.keyCode]=v,M&&this.addCapture(v.keyCode),v.setEmitOnRepeat(D),v}return typeof v=="string"&&(v=O[v.toUpperCase()]),G[v]||(G[v]=new S(this,v),M&&this.addCapture(v),G[v].setEmitOnRepeat(D)),G[v]},removeKey:function(v,M,D){M===void 0&&(M=!1),D===void 0&&(D=!1);var G=this.keys,H;if(v instanceof S){var B=G.indexOf(v);B>-1&&(H=this.keys[B],this.keys[B]=void 0)}else typeof v=="string"&&(v=O[v.toUpperCase()]);return G[v]&&(H=G[v],G[v]=void 0),H&&(H.plugin=null,D&&this.removeCapture(H.keyCode),M&&H.destroy()),this},removeAllKeys:function(v,M){v===void 0&&(v=!1),M===void 0&&(M=!1);for(var D=this.keys,G=0;Gv._tick)return v._tick=D,!0}return!1},update:function(){var v=this.manager.queue,M=v.length;if(!(!this.isActive()||M===0))for(var D=this.keys,G=0;G{/** + */var u=s(83419),T=s(50792),A=s(95922),c=s(8443),d=s(35154),h=s(8214),f=s(89639),S=s(30472),R=s(46032),L=s(87960),p=s(74600),N=s(44594),g=s(56583),C=new u({Extends:T,initialize:v(function(M){T.call(this),this.game=M.systems.game,this.scene=M.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=M,this.manager=M.manager.keyboard,this.enabled=!0,this.keys=[],this.combos=[],this.prevCode=null,this.prevTime=0,this.prevType=null,M.pluginEvents.once(h.BOOT,this.boot,this),M.pluginEvents.on(h.START,this.start,this)},"KeyboardPlugin"),boot:function(){var P=this.settings.input;this.enabled=d(P,"keyboard",!0);var M=d(P,"keyboard.capture",null);M&&this.addCaptures(M),this.sceneInputPlugin.pluginEvents.once(h.DESTROY,this.destroy,this)},start:function(){this.sceneInputPlugin.manager.events.on(h.MANAGER_PROCESS,this.update,this),this.sceneInputPlugin.pluginEvents.once(h.SHUTDOWN,this.shutdown,this),this.game.events.on(c.BLUR,this.resetKeys,this),this.scene.sys.events.on(N.PAUSE,this.resetKeys,this),this.scene.sys.events.on(N.SLEEP,this.resetKeys,this)},isActive:function(){return this.enabled&&this.scene.sys.canInput()},addCapture:function(P){return this.manager.addCapture(P),this},removeCapture:function(P){return this.manager.removeCapture(P),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:R.UP,down:R.DOWN,left:R.LEFT,right:R.RIGHT,space:R.SPACE,shift:R.SHIFT})},addKeys:function(P,M,D){M===void 0&&(M=!0),D===void 0&&(D=!1);var G={};if(typeof P=="string"){P=P.split(",");for(var H=0;H-1?G[H]=P:G[P.keyCode]=P,M&&this.addCapture(P.keyCode),P.setEmitOnRepeat(D),P}return typeof P=="string"&&(P=R[P.toUpperCase()]),G[P]||(G[P]=new S(this,P),M&&this.addCapture(P),G[P].setEmitOnRepeat(D)),G[P]},removeKey:function(P,M,D){M===void 0&&(M=!1),D===void 0&&(D=!1);var G=this.keys,H;if(P instanceof S){var B=G.indexOf(P);B>-1&&(H=this.keys[B],this.keys[B]=void 0)}else typeof P=="string"&&(P=R[P.toUpperCase()]);return G[P]&&(H=G[P],G[P]=void 0),H&&(H.plugin=null,D&&this.removeCapture(H.keyCode),M&&H.destroy()),this},removeAllKeys:function(P,M){P===void 0&&(P=!1),M===void 0&&(M=!1);for(var D=this.keys,G=0;GP._tick)return P._tick=D,!0}return!1},update:function(){var P=this.manager.queue,M=P.length;if(!(!this.isActive()||M===0))for(var D=this.keys,G=0;G{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return u.timeLastMatched=s.timeStamp,u.index++,u.index===u.size?!0:(u.current=u.keyCodes[u.index],!1)},"AdvanceKeyCombo");o.exports=m},87960:(o,m,s)=>{/** + */var O=v(function(s,u){return u.timeLastMatched=s.timeStamp,u.index++,u.index===u.size?!0:(u.current=u.keyCodes[u.index],!1)},"AdvanceKeyCombo");o.exports=O},87960:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(95922),d=s(95540),c=s(68769),A=s(92803),h=new u({initialize:P(function(S,O,L){if(L===void 0&&(L={}),O.length<2)return!1;this.manager=S,this.enabled=!0,this.keyCodes=[];for(var p=0;p{/** + */var u=s(83419),T=s(95922),A=s(95540),c=s(68769),d=s(92803),h=new u({initialize:v(function(S,R,L){if(L===void 0&&(L={}),R.length<2)return!1;this.manager=S,this.enabled=!0,this.keyCodes=[];for(var p=0;p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(66970),T=P(function(d,c){if(c.matched)return!0;var A=!1,h=!1;if(d.keyCode===c.current)if(c.index>0&&c.maxKeyDelay>0){var f=c.timeLastMatched+c.maxKeyDelay;d.timeStamp<=f&&(h=!0,A=u(d,c))}else h=!0,A=u(d,c);return!h&&c.resetOnWrongKey&&(c.index=0,c.current=c.keyCodes[0]),A&&(c.timeLastMatched=d.timeStamp,c.matched=!0,c.timeMatched=d.timeStamp),A},"ProcessKeyCombo");o.exports=T},92803:o=>{/** + */var u=s(66970),T=v(function(A,c){if(c.matched)return!0;var d=!1,h=!1;if(A.keyCode===c.current)if(c.index>0&&c.maxKeyDelay>0){var f=c.timeLastMatched+c.maxKeyDelay;A.timeStamp<=f&&(h=!0,d=u(A,c))}else h=!0,d=u(A,c);return!h&&c.resetOnWrongKey&&(c.index=0,c.current=c.keyCodes[0]),d&&(c.timeLastMatched=A.timeStamp,c.matched=!0,c.timeMatched=A.timeStamp),d},"ProcessKeyCombo");o.exports=T},92803:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s.current=s.keyCodes[0],s.index=0,s.timeLastMatched=0,s.matched=!1,s.timeMatched=0,s},"ResetKeyCombo");o.exports=m},92612:o=>{/** + */var O=v(function(s){return s.current=s.keyCodes[0],s.index=0,s.timeLastMatched=0,s.matched=!1,s.timeMatched=0,s},"ResetKeyCombo");o.exports=O},92612:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3348,11 +3348,11 @@ var dne=Object.defineProperty;var P=(n,t)=>dne(n,"name",{value:t,configurable:!0 * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports="up"},95922:(o,m,s)=>{/** + */o.exports="up"},95922:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={ANY_KEY_DOWN:s(92612),ANY_KEY_UP:s(23345),COMBO_MATCH:s(21957),DOWN:s(44743),KEY_DOWN:s(3771),KEY_UP:s(46358),UP:s(75674)}},51442:(o,m,s)=>{/** + */o.exports={ANY_KEY_DOWN:s(92612),ANY_KEY_UP:s(23345),COMBO_MATCH:s(21957),DOWN:s(44743),KEY_DOWN:s(3771),KEY_UP:s(46358),UP:s(75674)}},51442:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3360,83 +3360,83 @@ var dne=Object.defineProperty;var P=(n,t)=>dne(n,"name",{value:t,configurable:!0 * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){u===void 0&&(u=50);var T=s.plugin.game.loop.time-s.timeDown;return s.isDown&&T{/** + */var O=v(function(s,u){u===void 0&&(u=50);var T=s.plugin.game.loop.time-s.timeDown;return s.isDown&&T{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s._justDown?(s._justDown=!1,!0):!1},"JustDown");o.exports=m},38796:o=>{/** + */var O=v(function(s){return s._justDown?(s._justDown=!1,!0):!1},"JustDown");o.exports=O},38796:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s._justUp?(s._justUp=!1,!0):!1},"JustUp");o.exports=m},30472:(o,m,s)=>{/** + */var O=v(function(s){return s._justUp?(s._justUp=!1,!0):!1},"JustUp");o.exports=O},30472:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(50792),d=s(95922),c=new u({Extends:T,initialize:P(function(h,f){T.call(this),this.plugin=h,this.keyCode=f,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},"Key"),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(d.DOWN,this,A):(this.isDown=!0,this.isUp=!1,this.timeDown=A.timeStamp,this.duration=0,this._justDown=!0,this._justUp=!1,this.emit(d.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(d.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}});o.exports=c},46032:o=>{/** + */var u=s(83419),T=s(50792),A=s(95922),c=new u({Extends:T,initialize:v(function(h,f){T.call(this),this.plugin=h,this.keyCode=f,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},"Key"),setEmitOnRepeat:function(d){return this.emitOnRepeat=d,this},onDown:function(d){this.originalEvent=d,this.enabled&&(this.altKey=d.altKey,this.ctrlKey=d.ctrlKey,this.shiftKey=d.shiftKey,this.metaKey=d.metaKey,this.location=d.location,this.repeats++,this.isDown?this.emitOnRepeat&&this.emit(A.DOWN,this,d):(this.isDown=!0,this.isUp=!1,this.timeDown=d.timeStamp,this.duration=0,this._justDown=!0,this._justUp=!1,this.emit(A.DOWN,this,d)))},onUp:function(d){this.originalEvent=d,this.enabled&&(this.isDown=!1,this.isUp=!0,this.timeUp=d.timeStamp,this.duration=this.timeUp-this.timeDown,this.repeats=0,this._justDown=!1,this._justUp=!0,this._tick=-1,this.emit(A.UP,this,d))},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}});o.exports=c},46032:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={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};o.exports=m},74600:(o,m,s)=>{/** + */var O={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};o.exports=O},74600:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(46032),T={};for(var d in u)T[u[d]]=d;o.exports=T},41170:o=>{/** + */var u=s(46032),T={};for(var A in u)T[u[A]]=A;o.exports=T},41170:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){u===void 0&&(u=50);var T=s.plugin.game.loop.time-s.timeUp;return s.isUp&&T{/** + */var O=v(function(s,u){u===void 0&&(u=50);var T=s.plugin.game.loop.time-s.timeUp;return s.isUp&&T{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(89357),d=s(8214),c=s(29747),A=new u({initialize:P(function(f){this.manager=f,this.preventDefaultDown=!0,this.preventDefaultUp=!0,this.preventDefaultMove=!0,this.preventDefaultWheel=!1,this.enabled=!1,this.target,this.locked=!1,this.onMouseMove=c,this.onMouseDown=c,this.onMouseUp=c,this.onMouseDownWindow=c,this.onMouseUpWindow=c,this.onMouseOver=c,this.onMouseOut=c,this.onMouseWheel=c,this.pointerLockChange=c,this.isTop=!0,f.events.once(d.MANAGER_BOOT,this.boot,this)},"MouseManager"),boot:function(){var h=this.manager.config;this.enabled=h.inputMouse,this.target=h.inputMouseEventTarget,this.passive=h.inputMousePassive,this.preventDefaultDown=h.inputMousePreventDefaultDown,this.preventDefaultUp=h.inputMousePreventDefaultUp,this.preventDefaultMove=h.inputMousePreventDefaultMove,this.preventDefaultWheel=h.inputMousePreventDefaultWheel,this.target?typeof this.target=="string"&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,h.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return this.target.addEventListener("contextmenu",function(h){return h.preventDefault(),!1}),this},requestPointerLock:function(){if(T.pointerLock){var h=this.target;h.requestPointerLock=h.requestPointerLock||h.mozRequestPointerLock||h.webkitRequestPointerLock,h.requestPointerLock()}},releasePointerLock:function(){T.pointerLock&&(document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock,document.exitPointerLock())},startListeners:function(){var h=this.target;if(h){var f=this,S=this.manager,O=S.canvas,L=window&&window.focus&&S.game.config.autoFocus;this.onMouseMove=function(N){!N.defaultPrevented&&f.enabled&&S&&S.enabled&&(S.onMouseMove(N),f.preventDefaultMove&&N.preventDefault())},this.onMouseDown=function(N){L&&window.focus(),!N.defaultPrevented&&f.enabled&&S&&S.enabled&&(S.onMouseDown(N),f.preventDefaultDown&&N.target===O&&N.preventDefault())},this.onMouseDownWindow=function(N){N.sourceCapabilities&&N.sourceCapabilities.firesTouchEvents||!N.defaultPrevented&&f.enabled&&S&&S.enabled&&N.target!==O&&S.onMouseDown(N)},this.onMouseUp=function(N){!N.defaultPrevented&&f.enabled&&S&&S.enabled&&(S.onMouseUp(N),f.preventDefaultUp&&N.target===O&&N.preventDefault())},this.onMouseUpWindow=function(N){N.sourceCapabilities&&N.sourceCapabilities.firesTouchEvents||!N.defaultPrevented&&f.enabled&&S&&S.enabled&&N.target!==O&&S.onMouseUp(N)},this.onMouseOver=function(N){!N.defaultPrevented&&f.enabled&&S&&S.enabled&&S.setCanvasOver(N)},this.onMouseOut=function(N){!N.defaultPrevented&&f.enabled&&S&&S.enabled&&S.setCanvasOut(N)},this.onMouseWheel=function(N){!N.defaultPrevented&&f.enabled&&S&&S.enabled&&S.onMouseWheel(N),f.preventDefaultWheel&&N.target===O&&N.preventDefault()};var p={passive:!0};if(h.addEventListener("mousemove",this.onMouseMove),h.addEventListener("mousedown",this.onMouseDown),h.addEventListener("mouseup",this.onMouseUp),h.addEventListener("mouseover",this.onMouseOver,p),h.addEventListener("mouseout",this.onMouseOut,p),this.preventDefaultWheel?h.addEventListener("wheel",this.onMouseWheel,{passive:!1}):h.addEventListener("wheel",this.onMouseWheel,p),window&&S.game.config.inputWindowEvents)try{window.top.addEventListener("mousedown",this.onMouseDownWindow,p),window.top.addEventListener("mouseup",this.onMouseUpWindow,p)}catch{window.addEventListener("mousedown",this.onMouseDownWindow,p),window.addEventListener("mouseup",this.onMouseUpWindow,p),this.isTop=!1}T.pointerLock&&(this.pointerLockChange=function(N){var g=f.target;f.locked=document.pointerLockElement===g||document.mozPointerLockElement===g||document.webkitPointerLockElement===g,S.onPointerLockChange(N)},document.addEventListener("pointerlockchange",this.pointerLockChange,!0),document.addEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.addEventListener("webkitpointerlockchange",this.pointerLockChange,!0)),this.enabled=!0}},stopListeners:function(){var h=this.target;h.removeEventListener("mousemove",this.onMouseMove),h.removeEventListener("mousedown",this.onMouseDown),h.removeEventListener("mouseup",this.onMouseUp),h.removeEventListener("mouseover",this.onMouseOver),h.removeEventListener("mouseout",this.onMouseOut),window&&(h=this.isTop?window.top:window,h.removeEventListener("mousedown",this.onMouseDownWindow),h.removeEventListener("mouseup",this.onMouseUpWindow)),T.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}});o.exports=A},87078:(o,m,s)=>{/** + */var u=s(83419),T=s(89357),A=s(8214),c=s(29747),d=new u({initialize:v(function(f){this.manager=f,this.preventDefaultDown=!0,this.preventDefaultUp=!0,this.preventDefaultMove=!0,this.preventDefaultWheel=!1,this.enabled=!1,this.target,this.locked=!1,this.onMouseMove=c,this.onMouseDown=c,this.onMouseUp=c,this.onMouseDownWindow=c,this.onMouseUpWindow=c,this.onMouseOver=c,this.onMouseOut=c,this.onMouseWheel=c,this.pointerLockChange=c,this.isTop=!0,f.events.once(A.MANAGER_BOOT,this.boot,this)},"MouseManager"),boot:function(){var h=this.manager.config;this.enabled=h.inputMouse,this.target=h.inputMouseEventTarget,this.passive=h.inputMousePassive,this.preventDefaultDown=h.inputMousePreventDefaultDown,this.preventDefaultUp=h.inputMousePreventDefaultUp,this.preventDefaultMove=h.inputMousePreventDefaultMove,this.preventDefaultWheel=h.inputMousePreventDefaultWheel,this.target?typeof this.target=="string"&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,h.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return this.target.addEventListener("contextmenu",function(h){return h.preventDefault(),!1}),this},requestPointerLock:function(){if(T.pointerLock){var h=this.target;h.requestPointerLock=h.requestPointerLock||h.mozRequestPointerLock||h.webkitRequestPointerLock,h.requestPointerLock()}},releasePointerLock:function(){T.pointerLock&&(document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock,document.exitPointerLock())},startListeners:function(){var h=this.target;if(h){var f=this,S=this.manager,R=S.canvas,L=window&&window.focus&&S.game.config.autoFocus;this.onMouseMove=function(N){!N.defaultPrevented&&f.enabled&&S&&S.enabled&&(S.onMouseMove(N),f.preventDefaultMove&&N.preventDefault())},this.onMouseDown=function(N){L&&window.focus(),!N.defaultPrevented&&f.enabled&&S&&S.enabled&&(S.onMouseDown(N),f.preventDefaultDown&&N.target===R&&N.preventDefault())},this.onMouseDownWindow=function(N){N.sourceCapabilities&&N.sourceCapabilities.firesTouchEvents||!N.defaultPrevented&&f.enabled&&S&&S.enabled&&N.target!==R&&S.onMouseDown(N)},this.onMouseUp=function(N){!N.defaultPrevented&&f.enabled&&S&&S.enabled&&(S.onMouseUp(N),f.preventDefaultUp&&N.target===R&&N.preventDefault())},this.onMouseUpWindow=function(N){N.sourceCapabilities&&N.sourceCapabilities.firesTouchEvents||!N.defaultPrevented&&f.enabled&&S&&S.enabled&&N.target!==R&&S.onMouseUp(N)},this.onMouseOver=function(N){!N.defaultPrevented&&f.enabled&&S&&S.enabled&&S.setCanvasOver(N)},this.onMouseOut=function(N){!N.defaultPrevented&&f.enabled&&S&&S.enabled&&S.setCanvasOut(N)},this.onMouseWheel=function(N){!N.defaultPrevented&&f.enabled&&S&&S.enabled&&S.onMouseWheel(N),f.preventDefaultWheel&&N.target===R&&N.preventDefault()};var p={passive:!0};if(h.addEventListener("mousemove",this.onMouseMove),h.addEventListener("mousedown",this.onMouseDown),h.addEventListener("mouseup",this.onMouseUp),h.addEventListener("mouseover",this.onMouseOver,p),h.addEventListener("mouseout",this.onMouseOut,p),this.preventDefaultWheel?h.addEventListener("wheel",this.onMouseWheel,{passive:!1}):h.addEventListener("wheel",this.onMouseWheel,p),window&&S.game.config.inputWindowEvents)try{window.top.addEventListener("mousedown",this.onMouseDownWindow,p),window.top.addEventListener("mouseup",this.onMouseUpWindow,p)}catch{window.addEventListener("mousedown",this.onMouseDownWindow,p),window.addEventListener("mouseup",this.onMouseUpWindow,p),this.isTop=!1}T.pointerLock&&(this.pointerLockChange=function(N){var g=f.target;f.locked=document.pointerLockElement===g||document.mozPointerLockElement===g||document.webkitPointerLockElement===g,S.onPointerLockChange(N)},document.addEventListener("pointerlockchange",this.pointerLockChange,!0),document.addEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.addEventListener("webkitpointerlockchange",this.pointerLockChange,!0)),this.enabled=!0}},stopListeners:function(){var h=this.target;h.removeEventListener("mousemove",this.onMouseMove),h.removeEventListener("mousedown",this.onMouseDown),h.removeEventListener("mouseup",this.onMouseUp),h.removeEventListener("mouseover",this.onMouseOver),h.removeEventListener("mouseout",this.onMouseOut),window&&(h=this.isTop?window.top:window,h.removeEventListener("mousedown",this.onMouseDownWindow),h.removeEventListener("mouseup",this.onMouseUpWindow)),T.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}});o.exports=d},87078:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={MouseManager:s(85098)}},36210:(o,m,s)=>{/** + */o.exports={MouseManager:s(85098)}},36210:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(8214),d=s(29747),c=new u({initialize:P(function(h){this.manager=h,this.capture=!0,this.enabled=!1,this.target,this.onTouchStart=d,this.onTouchStartWindow=d,this.onTouchMove=d,this.onTouchEnd=d,this.onTouchEndWindow=d,this.onTouchCancel=d,this.onTouchCancelWindow=d,this.isTop=!0,h.events.once(T.MANAGER_BOOT,this.boot,this)},"TouchManager"),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 h=this,f=this.manager,S=f.canvas,O=window&&window.focus&&f.game.config.autoFocus;this.onTouchMove=function(g){!g.defaultPrevented&&h.enabled&&f&&f.enabled&&(f.onTouchMove(g),h.capture&&g.cancelable&&g.preventDefault())},this.onTouchStart=function(g){O&&window.focus(),!g.defaultPrevented&&h.enabled&&f&&f.enabled&&(f.onTouchStart(g),h.capture&&g.cancelable&&g.target===S&&g.preventDefault())},this.onTouchStartWindow=function(g){!g.defaultPrevented&&h.enabled&&f&&f.enabled&&g.target!==S&&f.onTouchStart(g)},this.onTouchEnd=function(g){!g.defaultPrevented&&h.enabled&&f&&f.enabled&&(f.onTouchEnd(g),h.capture&&g.cancelable&&g.target===S&&g.preventDefault())},this.onTouchEndWindow=function(g){!g.defaultPrevented&&h.enabled&&f&&f.enabled&&g.target!==S&&f.onTouchEnd(g)},this.onTouchCancel=function(g){!g.defaultPrevented&&h.enabled&&f&&f.enabled&&(f.onTouchCancel(g),h.capture&&g.preventDefault())},this.onTouchCancelWindow=function(g){!g.defaultPrevented&&h.enabled&&f&&f.enabled&&f.onTouchCancel(g)};var L=this.capture,p={passive:!0},N={passive:!1};if(A.addEventListener("touchstart",this.onTouchStart,L?N:p),A.addEventListener("touchmove",this.onTouchMove,L?N:p),A.addEventListener("touchend",this.onTouchEnd,L?N:p),A.addEventListener("touchcancel",this.onTouchCancel,L?N:p),window&&f.game.config.inputWindowEvents)try{window.top.addEventListener("touchstart",this.onTouchStartWindow,N),window.top.addEventListener("touchend",this.onTouchEndWindow,N),window.top.addEventListener("touchcancel",this.onTouchCancelWindow,N)}catch{window.addEventListener("touchstart",this.onTouchStartWindow,N),window.addEventListener("touchend",this.onTouchEndWindow,N),window.addEventListener("touchcancel",this.onTouchCancelWindow,N),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}});o.exports=c},95618:(o,m,s)=>{/** + */var u=s(83419),T=s(8214),A=s(29747),c=new u({initialize:v(function(h){this.manager=h,this.capture=!0,this.enabled=!1,this.target,this.onTouchStart=A,this.onTouchStartWindow=A,this.onTouchMove=A,this.onTouchEnd=A,this.onTouchEndWindow=A,this.onTouchCancel=A,this.onTouchCancelWindow=A,this.isTop=!0,h.events.once(T.MANAGER_BOOT,this.boot,this)},"TouchManager"),boot:function(){var d=this.manager.config;this.enabled=d.inputTouch,this.target=d.inputTouchEventTarget,this.capture=d.inputTouchCapture,this.target?typeof this.target=="string"&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,d.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return this.target.addEventListener("contextmenu",function(d){return d.preventDefault(),!1}),this},startListeners:function(){var d=this.target;if(d){var h=this,f=this.manager,S=f.canvas,R=window&&window.focus&&f.game.config.autoFocus;this.onTouchMove=function(g){!g.defaultPrevented&&h.enabled&&f&&f.enabled&&(f.onTouchMove(g),h.capture&&g.cancelable&&g.preventDefault())},this.onTouchStart=function(g){R&&window.focus(),!g.defaultPrevented&&h.enabled&&f&&f.enabled&&(f.onTouchStart(g),h.capture&&g.cancelable&&g.target===S&&g.preventDefault())},this.onTouchStartWindow=function(g){!g.defaultPrevented&&h.enabled&&f&&f.enabled&&g.target!==S&&f.onTouchStart(g)},this.onTouchEnd=function(g){!g.defaultPrevented&&h.enabled&&f&&f.enabled&&(f.onTouchEnd(g),h.capture&&g.cancelable&&g.target===S&&g.preventDefault())},this.onTouchEndWindow=function(g){!g.defaultPrevented&&h.enabled&&f&&f.enabled&&g.target!==S&&f.onTouchEnd(g)},this.onTouchCancel=function(g){!g.defaultPrevented&&h.enabled&&f&&f.enabled&&(f.onTouchCancel(g),h.capture&&g.preventDefault())},this.onTouchCancelWindow=function(g){!g.defaultPrevented&&h.enabled&&f&&f.enabled&&f.onTouchCancel(g)};var L=this.capture,p={passive:!0},N={passive:!1};if(d.addEventListener("touchstart",this.onTouchStart,L?N:p),d.addEventListener("touchmove",this.onTouchMove,L?N:p),d.addEventListener("touchend",this.onTouchEnd,L?N:p),d.addEventListener("touchcancel",this.onTouchCancel,L?N:p),window&&f.game.config.inputWindowEvents)try{window.top.addEventListener("touchstart",this.onTouchStartWindow,N),window.top.addEventListener("touchend",this.onTouchEndWindow,N),window.top.addEventListener("touchcancel",this.onTouchCancelWindow,N)}catch{window.addEventListener("touchstart",this.onTouchStartWindow,N),window.addEventListener("touchend",this.onTouchEndWindow,N),window.addEventListener("touchcancel",this.onTouchCancelWindow,N),this.isTop=!1}this.enabled=!0}},stopListeners:function(){var d=this.target;d.removeEventListener("touchstart",this.onTouchStart),d.removeEventListener("touchmove",this.onTouchMove),d.removeEventListener("touchend",this.onTouchEnd),d.removeEventListener("touchcancel",this.onTouchCancel),window&&(d=this.isTop?window.top:window,d.removeEventListener("touchstart",this.onTouchStartWindow),d.removeEventListener("touchend",this.onTouchEndWindow),d.removeEventListener("touchcancel",this.onTouchCancelWindow))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});o.exports=c},95618:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={TouchManager:s(36210)}},41299:(o,m,s)=>{/** + */o.exports={TouchManager:s(36210)}},41299:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(23906),d=s(54899),c=s(95540),A=s(98356),h=s(3374),f=s(84376),S=s(92638),O=new u({initialize:P(function(p,N){if(this.loader=p,this.cache=c(N,"cache",!1),this.type=c(N,"type",!1),!this.type)throw new Error("Invalid File type: "+this.type);this.key=c(N,"key",!1);var g=this.key;if(p.prefix&&p.prefix!==""&&(this.key=p.prefix+g),!this.key)throw new Error("Invalid File key: "+this.key);var C=c(N,"url");C===void 0?C=p.path+g+"."+c(N,"extension",""):typeof C=="string"&&!C.match(/^(?:blob:|data:|capacitor:\/\/|http:\/\/|https:\/\/|\/\/)/)&&(C=p.path+C),this.url=C,this.src="",this.xhrSettings=S(c(N,"responseType",void 0)),c(N,"xhrSettings",!1)&&(this.xhrSettings=h(this.xhrSettings,c(N,"xhrSettings",{}))),this.xhrLoader=null,this.state=typeof this.url=="function"?T.FILE_POPULATED:T.FILE_PENDING,this.bytesTotal=0,this.bytesLoaded=-1,this.percentComplete=-1,this.crossOrigin=void 0,this.data=void 0,this.config=c(N,"config",{}),this.multiFile,this.linkFile,this.base64=typeof C=="string"&&C.indexOf("data:")===0},"File"),setLink:function(L){this.linkFile=L,L.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===T.FILE_POPULATED?this.loader.nextFile(this,!0):(this.state=T.FILE_LOADING,this.src=A(this,this.loader.baseURL),this.src.indexOf("data:")===0&&(this.base64=!0),this.xhrLoader=f(this,this.loader.xhr))},onLoad:function(L,p){var N=L.responseURL&&this.loader.localSchemes.some(function(v){return L.responseURL.indexOf(v)===0}),g=N&&p.target.status===0,C=!(p.target&&p.target.status!==200)||g;L.readyState===4&&L.status>=400&&L.status<=599&&(C=!1),this.state=T.FILE_LOADED,this.resetXHR(),this.loader.nextFile(this,C)},onBase64Load:function(L){this.xhrLoader=L,this.state=T.FILE_LOADED,this.percentComplete=1,this.loader.emit(d.FILE_PROGRESS,this,this.percentComplete),this.loader.nextFile(this,!0)},onError:function(){this.resetXHR(),this.loader.nextFile(this,!1)},onProgress:function(L){L.lengthComputable&&(this.bytesLoaded=L.loaded,this.bytesTotal=L.total,this.percentComplete=Math.min(this.bytesLoaded/this.bytesTotal,1),this.loader.emit(d.FILE_PROGRESS,this,this.percentComplete))},onProcess:function(){this.state=T.FILE_PROCESSING,this.onProcessComplete()},onProcessComplete:function(){this.state=T.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=T.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(L){if(this.state!==T.FILE_PENDING_DESTROY){L===void 0&&(L=this.data);var p=this.key,N=this.type;this.loader.emit(d.FILE_COMPLETE,p,N,L),this.loader.emit(d.FILE_KEY_COMPLETE+N+"-"+p,p,N,L),this.loader.flagForRemoval(this),this.state=T.FILE_PENDING_DESTROY}},destroy:function(){this.loader=null,this.cache=null,this.xhrSettings=null,this.multiFile=null,this.linkFile=null,this.data=null}});O.createObjectURL=function(L,p,N){if(typeof URL=="function")L.src=URL.createObjectURL(p);else{var g=new FileReader;g.onload=function(){L.removeAttribute("crossOrigin"),L.src="data:"+(p.type||N)+";base64,"+g.result.split(",")[1]},g.onerror=L.onerror,g.readAsDataURL(p)}},O.revokeObjectURL=function(L){typeof URL=="function"&&URL.revokeObjectURL(L.src)},o.exports=O},74099:o=>{/** + */var u=s(83419),T=s(23906),A=s(54899),c=s(95540),d=s(98356),h=s(3374),f=s(84376),S=s(92638),R=new u({initialize:v(function(p,N){if(this.loader=p,this.cache=c(N,"cache",!1),this.type=c(N,"type",!1),!this.type)throw new Error("Invalid File type: "+this.type);this.key=c(N,"key",!1);var g=this.key;if(p.prefix&&p.prefix!==""&&(this.key=p.prefix+g),!this.key)throw new Error("Invalid File key: "+this.key);var C=c(N,"url");C===void 0?C=p.path+g+"."+c(N,"extension",""):typeof C=="string"&&!C.match(/^(?:blob:|data:|capacitor:\/\/|http:\/\/|https:\/\/|\/\/)/)&&(C=p.path+C),this.url=C,this.src="",this.xhrSettings=S(c(N,"responseType",void 0)),c(N,"xhrSettings",!1)&&(this.xhrSettings=h(this.xhrSettings,c(N,"xhrSettings",{}))),this.xhrLoader=null,this.state=typeof this.url=="function"?T.FILE_POPULATED:T.FILE_PENDING,this.bytesTotal=0,this.bytesLoaded=-1,this.percentComplete=-1,this.crossOrigin=void 0,this.data=void 0,this.config=c(N,"config",{}),this.multiFile,this.linkFile,this.base64=typeof C=="string"&&C.indexOf("data:")===0},"File"),setLink:function(L){this.linkFile=L,L.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===T.FILE_POPULATED?this.loader.nextFile(this,!0):(this.state=T.FILE_LOADING,this.src=d(this,this.loader.baseURL),this.src.indexOf("data:")===0&&(this.base64=!0),this.xhrLoader=f(this,this.loader.xhr))},onLoad:function(L,p){var N=L.responseURL&&this.loader.localSchemes.some(function(P){return L.responseURL.indexOf(P)===0}),g=N&&p.target.status===0,C=!(p.target&&p.target.status!==200)||g;L.readyState===4&&L.status>=400&&L.status<=599&&(C=!1),this.state=T.FILE_LOADED,this.resetXHR(),this.loader.nextFile(this,C)},onBase64Load:function(L){this.xhrLoader=L,this.state=T.FILE_LOADED,this.percentComplete=1,this.loader.emit(A.FILE_PROGRESS,this,this.percentComplete),this.loader.nextFile(this,!0)},onError:function(){this.resetXHR(),this.loader.nextFile(this,!1)},onProgress:function(L){L.lengthComputable&&(this.bytesLoaded=L.loaded,this.bytesTotal=L.total,this.percentComplete=Math.min(this.bytesLoaded/this.bytesTotal,1),this.loader.emit(A.FILE_PROGRESS,this,this.percentComplete))},onProcess:function(){this.state=T.FILE_PROCESSING,this.onProcessComplete()},onProcessComplete:function(){this.state=T.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=T.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(L){if(this.state!==T.FILE_PENDING_DESTROY){L===void 0&&(L=this.data);var p=this.key,N=this.type;this.loader.emit(A.FILE_COMPLETE,p,N,L),this.loader.emit(A.FILE_KEY_COMPLETE+N+"-"+p,p,N,L),this.loader.flagForRemoval(this),this.state=T.FILE_PENDING_DESTROY}},destroy:function(){this.loader=null,this.cache=null,this.xhrSettings=null,this.multiFile=null,this.linkFile=null,this.data=null}});R.createObjectURL=function(L,p,N){if(typeof URL=="function")L.src=URL.createObjectURL(p);else{var g=new FileReader;g.onload=function(){L.removeAttribute("crossOrigin"),L.src="data:"+(p.type||N)+";base64,"+g.result.split(",")[1]},g.onerror=L.onerror,g.readAsDataURL(p)}},R.revokeObjectURL=function(L){typeof URL=="function"&&URL.revokeObjectURL(L.src)},o.exports=R},74099:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={},s={install:function(u){for(var T in m)u[T]=m[T]},register:function(u,T){m[u]=T},destroy:function(){m={}}};o.exports=s},98356:o=>{/** + */var O={},s={install:function(u){for(var T in O)u[T]=O[T]},register:function(u,T){O[u]=T},destroy:function(){O={}}};o.exports=s},98356:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return s.url?s.url.match(/^(?:blob:|data:|capacitor:\/\/|http:\/\/|https:\/\/|\/\/)/)?s.url:u+s.url:!1},"GetURL");o.exports=m},74261:(o,m,s)=>{/** + */var O=v(function(s,u){return s.url?s.url.match(/^(?:blob:|data:|capacitor:\/\/|http:\/\/|https:\/\/|\/\/)/)?s.url:u+s.url:!1},"GetURL");o.exports=O},74261:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(23906),d=s(35072),c=s(50792),A=s(54899),h=s(74099),f=s(95540),S=s(35154),O=s(37277),L=s(44594),p=s(92638),N=new u({Extends:c,initialize:P(function(C){c.call(this);var v=C.sys.game.config,M=C.sys.settings.loader;this.scene=C,this.systems=C.sys,this.cacheManager=C.sys.cache,this.textureManager=C.sys.textures,this.sceneManager=C.sys.game.scene,h.install(this),this.prefix="",this.path="",this.baseURL="",this.setBaseURL(f(M,"baseURL",v.loaderBaseURL)),this.setPath(f(M,"path",v.loaderPath)),this.setPrefix(f(M,"prefix",v.loaderPrefix)),this.maxParallelDownloads=f(M,"maxParallelDownloads",v.loaderMaxParallelDownloads),this.xhr=p(f(M,"responseType",v.loaderResponseType),f(M,"async",v.loaderAsync),f(M,"user",v.loaderUser),f(M,"password",v.loaderPassword),f(M,"timeout",v.loaderTimeout),f(M,"withCredentials",v.loaderWithCredentials)),this.crossOrigin=f(M,"crossOrigin",v.loaderCrossOrigin),this.imageLoadType=f(M,"imageLoadType",v.loaderImageLoadType),this.localSchemes=f(M,"localScheme",v.loaderLocalScheme),this.totalToLoad=0,this.progress=0,this.list=new d,this.inflight=new d,this.queue=new d,this._deleteQueue=new d,this.totalFailed=0,this.totalComplete=0,this.state=T.LOADER_IDLE,this.multiKeyIndex=0,C.sys.events.once(L.BOOT,this.boot,this),C.sys.events.on(L.START,this.pluginStart,this)},"LoaderPlugin"),boot:function(){this.systems.events.once(L.DESTROY,this.destroy,this)},pluginStart:function(){this.systems.events.once(L.SHUTDOWN,this.shutdown,this)},setBaseURL:function(g){return g===void 0&&(g=""),g!==""&&g.substr(-1)!=="/"&&(g=g.concat("/")),this.baseURL=g,this},setPath:function(g){return g===void 0&&(g=""),g!==""&&g.substr(-1)!=="/"&&(g=g.concat("/")),this.path=g,this},setPrefix:function(g){return g===void 0&&(g=""),this.prefix=g,this},setCORS:function(g){return this.crossOrigin=g,this},addFile:function(g){Array.isArray(g)||(g=[g]);for(var C=0;C0},isLoading:function(){return this.state===T.LOADER_LOADING||this.state===T.LOADER_PROCESSING},isReady:function(){return this.state===T.LOADER_IDLE||this.state===T.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=T.LOADER_LOADING,this.inflight.clear(),this.queue.clear(),this.updateProgress(),this.checkLoadQueue(),this.systems.events.on(L.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===T.LOADER_LOADING&&this.list.size>0&&this.inflight.size{/** + */var u=s(83419),T=s(23906),A=s(35072),c=s(50792),d=s(54899),h=s(74099),f=s(95540),S=s(35154),R=s(37277),L=s(44594),p=s(92638),N=new u({Extends:c,initialize:v(function(C){c.call(this);var P=C.sys.game.config,M=C.sys.settings.loader;this.scene=C,this.systems=C.sys,this.cacheManager=C.sys.cache,this.textureManager=C.sys.textures,this.sceneManager=C.sys.game.scene,h.install(this),this.prefix="",this.path="",this.baseURL="",this.setBaseURL(f(M,"baseURL",P.loaderBaseURL)),this.setPath(f(M,"path",P.loaderPath)),this.setPrefix(f(M,"prefix",P.loaderPrefix)),this.maxParallelDownloads=f(M,"maxParallelDownloads",P.loaderMaxParallelDownloads),this.xhr=p(f(M,"responseType",P.loaderResponseType),f(M,"async",P.loaderAsync),f(M,"user",P.loaderUser),f(M,"password",P.loaderPassword),f(M,"timeout",P.loaderTimeout),f(M,"withCredentials",P.loaderWithCredentials)),this.crossOrigin=f(M,"crossOrigin",P.loaderCrossOrigin),this.imageLoadType=f(M,"imageLoadType",P.loaderImageLoadType),this.localSchemes=f(M,"localScheme",P.loaderLocalScheme),this.totalToLoad=0,this.progress=0,this.list=new A,this.inflight=new A,this.queue=new A,this._deleteQueue=new A,this.totalFailed=0,this.totalComplete=0,this.state=T.LOADER_IDLE,this.multiKeyIndex=0,C.sys.events.once(L.BOOT,this.boot,this),C.sys.events.on(L.START,this.pluginStart,this)},"LoaderPlugin"),boot:function(){this.systems.events.once(L.DESTROY,this.destroy,this)},pluginStart:function(){this.systems.events.once(L.SHUTDOWN,this.shutdown,this)},setBaseURL:function(g){return g===void 0&&(g=""),g!==""&&g.substr(-1)!=="/"&&(g=g.concat("/")),this.baseURL=g,this},setPath:function(g){return g===void 0&&(g=""),g!==""&&g.substr(-1)!=="/"&&(g=g.concat("/")),this.path=g,this},setPrefix:function(g){return g===void 0&&(g=""),this.prefix=g,this},setCORS:function(g){return this.crossOrigin=g,this},addFile:function(g){Array.isArray(g)||(g=[g]);for(var C=0;C0},isLoading:function(){return this.state===T.LOADER_LOADING||this.state===T.LOADER_PROCESSING},isReady:function(){return this.state===T.LOADER_IDLE||this.state===T.LOADER_COMPLETE},start:function(){this.isReady()&&(this.progress=0,this.totalFailed=0,this.totalComplete=0,this.totalToLoad=this.list.size,this.emit(d.START,this),this.list.size===0?this.loadComplete():(this.state=T.LOADER_LOADING,this.inflight.clear(),this.queue.clear(),this.updateProgress(),this.checkLoadQueue(),this.systems.events.on(L.UPDATE,this.update,this)))},updateProgress:function(){this.progress=1-(this.list.size+this.inflight.size)/this.totalToLoad,this.emit(d.PROGRESS,this.progress)},update:function(){this.state===T.LOADER_LOADING&&this.list.size>0&&this.inflight.size{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(79291),T=s(92638),d=P(function(c,A){var h=c===void 0?T():u({},c);if(A)for(var f in A)A[f]!==void 0&&(h[f]=A[f]);return h},"MergeXHRSettings");o.exports=d},26430:(o,m,s)=>{/** + */var u=s(79291),T=s(92638),A=v(function(c,d){var h=c===void 0?T():u({},c);if(d)for(var f in d)d[f]!==void 0&&(h[f]=d[f]);return h},"MergeXHRSettings");o.exports=A},26430:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(23906),d=s(54899),c=new u({initialize:P(function(h,f,S,O){var L=[];O.forEach(function(g){g&&L.push(g)}),this.loader=h,this.type=f,this.key=S;var p=this.key;h.prefix&&h.prefix!==""&&(this.key=h.prefix+p),this.multiKeyIndex=h.multiKeyIndex++,this.files=L,this.state=T.FILE_PENDING,this.complete=!1,this.pending=L.length,this.failed=0,this.config={},this.baseURL=h.baseURL,this.path=h.path,this.prefix=h.prefix;for(var N=0;N{/** + */var u=s(83419),T=s(23906),A=s(54899),c=new u({initialize:v(function(h,f,S,R){var L=[];R.forEach(function(g){g&&L.push(g)}),this.loader=h,this.type=f,this.key=S;var p=this.key;h.prefix&&h.prefix!==""&&(this.key=h.prefix+p),this.multiKeyIndex=h.multiKeyIndex++,this.files=L,this.state=T.FILE_PENDING,this.complete=!1,this.pending=L.length,this.failed=0,this.config={},this.baseURL=h.baseURL,this.path=h.path,this.prefix=h.prefix;for(var N=0;N{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(3374),T=P(function(d,c){var A=u(c,d.xhrSettings);if(d.base64){var h=d.url.split(";base64,").pop()||d.url.split(",").pop(),f={responseText:atob(h)};d.onBase64Load(f);return}var S=new XMLHttpRequest;if(S.open("GET",d.src,A.async,A.user,A.password),S.responseType=d.xhrSettings.responseType,S.timeout=A.timeout,A.headers)for(var O in A.headers)S.setRequestHeader(O,A.headers[O]);return A.header&&A.headerValue&&S.setRequestHeader(A.header,A.headerValue),A.requestedWith&&S.setRequestHeader("X-Requested-With",A.requestedWith),A.overrideMimeType&&S.overrideMimeType(A.overrideMimeType),A.withCredentials&&(S.withCredentials=!0),S.onload=d.onLoad.bind(d,S),S.onerror=d.onError.bind(d,S),S.onprogress=d.onProgress.bind(d),S.ontimeout=d.onError.bind(d,S),S.send(),S},"XHRLoader");o.exports=T},92638:o=>{/** + */var u=s(3374),T=v(function(A,c){var d=u(c,A.xhrSettings);if(A.base64){var h=A.url.split(";base64,").pop()||A.url.split(",").pop(),f={responseText:atob(h)};A.onBase64Load(f);return}var S=new XMLHttpRequest;if(S.open("GET",A.src,d.async,d.user,d.password),S.responseType=A.xhrSettings.responseType,S.timeout=d.timeout,d.headers)for(var R in d.headers)S.setRequestHeader(R,d.headers[R]);return d.header&&d.headerValue&&S.setRequestHeader(d.header,d.headerValue),d.requestedWith&&S.setRequestHeader("X-Requested-With",d.requestedWith),d.overrideMimeType&&S.overrideMimeType(d.overrideMimeType),d.withCredentials&&(S.withCredentials=!0),S.onload=A.onLoad.bind(A,S),S.onerror=A.onError.bind(A,S),S.onprogress=A.onProgress.bind(A),S.ontimeout=A.onError.bind(A,S),S.send(),S},"XHRLoader");o.exports=T},92638:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d,c,A){return s===void 0&&(s=""),u===void 0&&(u=!0),T===void 0&&(T=""),d===void 0&&(d=""),c===void 0&&(c=0),A===void 0&&(A=!1),{responseType:s,async:u,user:T,password:d,timeout:c,headers:void 0,header:void 0,headerValue:void 0,requestedWith:!1,overrideMimeType:void 0,withCredentials:A}},"XHRSettings");o.exports=m},23906:o=>{/** + */var O=v(function(s,u,T,A,c,d){return s===void 0&&(s=""),u===void 0&&(u=!0),T===void 0&&(T=""),A===void 0&&(A=""),c===void 0&&(c=0),d===void 0&&(d=!1),{responseType:s,async:u,user:T,password:A,timeout:c,headers:void 0,header:void 0,headerValue:void 0,requestedWith:!1,overrideMimeType:void 0,withCredentials:d}},"XHRSettings");o.exports=O},23906:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={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};o.exports=m},42155:o=>{/** + */var O={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};o.exports=O},42155:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3476,394 +3476,394 @@ var dne=Object.defineProperty;var P=(n,t)=>dne(n,"name",{value:t,configurable:!0 * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports="start"},54899:(o,m,s)=>{/** + */o.exports="start"},54899:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={ADD:s(42155),COMPLETE:s(38991),FILE_COMPLETE:s(27540),FILE_KEY_COMPLETE:s(87464),FILE_LOAD_ERROR:s(94486),FILE_LOAD:s(13035),FILE_PROGRESS:s(38144),POST_PROCESS:s(97520),PROGRESS:s(85595),START:s(55680)}},14135:(o,m,s)=>{/** + */o.exports={ADD:s(42155),COMPLETE:s(38991),FILE_COMPLETE:s(27540),FILE_KEY_COMPLETE:s(87464),FILE_LOAD_ERROR:s(94486),FILE_LOAD:s(13035),FILE_PROGRESS:s(38144),POST_PROCESS:s(97520),PROGRESS:s(85595),START:s(55680)}},14135:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(74099),d=s(518),c=s(54899),A=new u({Extends:d,initialize:P(function(f,S,O,L,p){d.call(this,f,S,O,L,p),this.type="animationJSON"},"AnimationJSONFile"),onProcess:function(){this.loader.once(c.POST_PROCESS,this.onLoadComplete,this),d.prototype.onProcess.call(this)},onLoadComplete:function(){this.loader.systems.anims.fromJSON(this.data)}});T.register("animation",function(h,f,S,O){if(Array.isArray(h))for(var L=0;L{/** + */var u=s(83419),T=s(74099),A=s(518),c=s(54899),d=new u({Extends:A,initialize:v(function(f,S,R,L,p){A.call(this,f,S,R,L,p),this.type="animationJSON"},"AnimationJSONFile"),onProcess:function(){this.loader.once(c.POST_PROCESS,this.onLoadComplete,this),A.prototype.onProcess.call(this)},onLoadComplete:function(){this.loader.systems.anims.fromJSON(this.data)}});T.register("animation",function(h,f,S,R){if(Array.isArray(h))for(var L=0;L{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(74099),d=s(95540),c=s(19550),A=s(41212),h=s(518),f=s(26430),S=new u({Extends:f,initialize:P(function(L,p,N,g,C,v){var M,D;if(A(p)){var G=p;p=d(G,"key"),M=new c(L,{key:p,url:d(G,"textureURL"),extension:d(G,"textureExtension","png"),normalMap:d(G,"normalMap"),xhrSettings:d(G,"textureXhrSettings")}),D=new h(L,{key:p,url:d(G,"atlasURL"),extension:d(G,"atlasExtension","json"),xhrSettings:d(G,"atlasXhrSettings")})}else M=new c(L,p,N,C),D=new h(L,p,g,v);M.linkFile?f.call(this,L,"atlasjson",p,[M,D,M.linkFile]):f.call(this,L,"atlasjson",p,[M,D])},"AsepriteFile"),addToCache:function(){if(this.isReadyToProcess()){var O=this.files[0],L=this.files[1],p=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlas(O.key,O.data,L.data,p),L.addToCache(),this.complete=!0}}});T.register("aseprite",function(O,L,p,N,g){var C;if(Array.isArray(O))for(var v=0;v{/** + */var u=s(83419),T=s(74099),A=s(95540),c=s(19550),d=s(41212),h=s(518),f=s(26430),S=new u({Extends:f,initialize:v(function(L,p,N,g,C,P){var M,D;if(d(p)){var G=p;p=A(G,"key"),M=new c(L,{key:p,url:A(G,"textureURL"),extension:A(G,"textureExtension","png"),normalMap:A(G,"normalMap"),xhrSettings:A(G,"textureXhrSettings")}),D=new h(L,{key:p,url:A(G,"atlasURL"),extension:A(G,"atlasExtension","json"),xhrSettings:A(G,"atlasXhrSettings")})}else M=new c(L,p,N,C),D=new h(L,p,g,P);M.linkFile?f.call(this,L,"atlasjson",p,[M,D,M.linkFile]):f.call(this,L,"atlasjson",p,[M,D])},"AsepriteFile"),addToCache:function(){if(this.isReadyToProcess()){var R=this.files[0],L=this.files[1],p=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlas(R.key,R.data,L.data,p),L.addToCache(),this.complete=!0}}});T.register("aseprite",function(R,L,p,N,g){var C;if(Array.isArray(R))for(var P=0;P{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(74099),d=s(95540),c=s(19550),A=s(41212),h=s(518),f=s(26430),S=new u({Extends:f,initialize:P(function(L,p,N,g,C,v){var M,D;if(A(p)){var G=p;p=d(G,"key"),M=new c(L,{key:p,url:d(G,"textureURL"),extension:d(G,"textureExtension","png"),normalMap:d(G,"normalMap"),xhrSettings:d(G,"textureXhrSettings")}),D=new h(L,{key:p,url:d(G,"atlasURL"),extension:d(G,"atlasExtension","json"),xhrSettings:d(G,"atlasXhrSettings")})}else M=new c(L,p,N,C),D=new h(L,p,g,v);M.linkFile?f.call(this,L,"atlasjson",p,[M,D,M.linkFile]):f.call(this,L,"atlasjson",p,[M,D])},"AtlasJSONFile"),addToCache:function(){if(this.isReadyToProcess()){var O=this.files[0],L=this.files[1],p=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlas(O.key,O.data,L.data,p),this.complete=!0}}});T.register("atlas",function(O,L,p,N,g){var C;if(Array.isArray(O))for(var v=0;v{/** + */var u=s(83419),T=s(74099),A=s(95540),c=s(19550),d=s(41212),h=s(518),f=s(26430),S=new u({Extends:f,initialize:v(function(L,p,N,g,C,P){var M,D;if(d(p)){var G=p;p=A(G,"key"),M=new c(L,{key:p,url:A(G,"textureURL"),extension:A(G,"textureExtension","png"),normalMap:A(G,"normalMap"),xhrSettings:A(G,"textureXhrSettings")}),D=new h(L,{key:p,url:A(G,"atlasURL"),extension:A(G,"atlasExtension","json"),xhrSettings:A(G,"atlasXhrSettings")})}else M=new c(L,p,N,C),D=new h(L,p,g,P);M.linkFile?f.call(this,L,"atlasjson",p,[M,D,M.linkFile]):f.call(this,L,"atlasjson",p,[M,D])},"AtlasJSONFile"),addToCache:function(){if(this.isReadyToProcess()){var R=this.files[0],L=this.files[1],p=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlas(R.key,R.data,L.data,p),this.complete=!0}}});T.register("atlas",function(R,L,p,N,g){var C;if(Array.isArray(R))for(var P=0;P{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(74099),d=s(95540),c=s(19550),A=s(41212),h=s(26430),f=s(57318),S=new u({Extends:h,initialize:P(function(L,p,N,g,C,v){var M,D;if(A(p)){var G=p;p=d(G,"key"),M=new c(L,{key:p,url:d(G,"textureURL"),extension:d(G,"textureExtension","png"),normalMap:d(G,"normalMap"),xhrSettings:d(G,"textureXhrSettings")}),D=new f(L,{key:p,url:d(G,"atlasURL"),extension:d(G,"atlasExtension","xml"),xhrSettings:d(G,"atlasXhrSettings")})}else M=new c(L,p,N,C),D=new f(L,p,g,v);M.linkFile?h.call(this,L,"atlasxml",p,[M,D,M.linkFile]):h.call(this,L,"atlasxml",p,[M,D])},"AtlasXMLFile"),addToCache:function(){if(this.isReadyToProcess()){var O=this.files[0],L=this.files[1],p=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlasXML(O.key,O.data,L.data,p),this.complete=!0}}});T.register("atlasXML",function(O,L,p,N,g){var C;if(Array.isArray(O))for(var v=0;v{/** + */var u=s(83419),T=s(74099),A=s(95540),c=s(19550),d=s(41212),h=s(26430),f=s(57318),S=new u({Extends:h,initialize:v(function(L,p,N,g,C,P){var M,D;if(d(p)){var G=p;p=A(G,"key"),M=new c(L,{key:p,url:A(G,"textureURL"),extension:A(G,"textureExtension","png"),normalMap:A(G,"normalMap"),xhrSettings:A(G,"textureXhrSettings")}),D=new f(L,{key:p,url:A(G,"atlasURL"),extension:A(G,"atlasExtension","xml"),xhrSettings:A(G,"atlasXhrSettings")})}else M=new c(L,p,N,C),D=new f(L,p,g,P);M.linkFile?h.call(this,L,"atlasxml",p,[M,D,M.linkFile]):h.call(this,L,"atlasxml",p,[M,D])},"AtlasXMLFile"),addToCache:function(){if(this.isReadyToProcess()){var R=this.files[0],L=this.files[1],p=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlasXML(R.key,R.data,L.data,p),this.complete=!0}}});T.register("atlasXML",function(R,L,p,N,g){var C;if(Array.isArray(R))for(var P=0;P{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(23906),d=s(41299),c=s(74099),A=s(95540),h=s(89749),f=s(41212),S=new u({Extends:d,initialize:P(function(L,p,N,g,C){if(f(p)){var v=p;p=A(v,"key"),g=A(v,"xhrSettings"),C=A(v,"context",C)}var M={type:"audio",cache:L.cacheManager.audio,extension:N.type,responseType:"arraybuffer",key:p,url:N.url,xhrSettings:g,config:{context:C}};d.call(this,L,M)},"AudioFile"),onProcess:function(){this.state=T.FILE_PROCESSING;var O=this;this.config.context.decodeAudioData(this.xhrLoader.response,function(L){O.data=L,O.onProcessComplete()},function(L){console.error("Error decoding audio: "+O.key+" - ",L?L.message:null),O.onProcessError()}),this.config.context=null}});S.create=function(O,L,p,N,g){var C=O.systems.game,v=C.config.audio,M=C.device.audio;f(L)&&(p=A(L,"url",[]),N=A(L,"config",{}));var D=S.getAudioURL(C,p);return D?M.webAudio&&!v.disableWebAudio?new S(O,L,D,g,C.sound.context):new h(O,L,D,N):(console.warn('No audio URLs for "%s" matched this device',L),null)},S.getAudioURL=function(O,L){Array.isArray(L)||(L=[L]);for(var p=0;p{/** + */var u=s(83419),T=s(23906),A=s(41299),c=s(74099),d=s(95540),h=s(89749),f=s(41212),S=new u({Extends:A,initialize:v(function(L,p,N,g,C){if(f(p)){var P=p;p=d(P,"key"),g=d(P,"xhrSettings"),C=d(P,"context",C)}var M={type:"audio",cache:L.cacheManager.audio,extension:N.type,responseType:"arraybuffer",key:p,url:N.url,xhrSettings:g,config:{context:C}};A.call(this,L,M)},"AudioFile"),onProcess:function(){this.state=T.FILE_PROCESSING;var R=this;this.config.context.decodeAudioData(this.xhrLoader.response,function(L){R.data=L,R.onProcessComplete()},function(L){console.error("Error decoding audio: "+R.key+" - ",L?L.message:null),R.onProcessError()}),this.config.context=null}});S.create=function(R,L,p,N,g){var C=R.systems.game,P=C.config.audio,M=C.device.audio;f(L)&&(p=d(L,"url",[]),N=d(L,"config",{}));var D=S.getAudioURL(C,p);return D?M.webAudio&&!P.disableWebAudio?new S(R,L,D,g,C.sound.context):new h(R,L,D,N):(console.warn('No audio URLs for "%s" matched this device',L),null)},S.getAudioURL=function(R,L){Array.isArray(L)||(L=[L]);for(var p=0;p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(21097),T=s(83419),d=s(74099),c=s(95540),A=s(41212),h=s(518),f=s(26430),S=new T({Extends:f,initialize:P(function(L,p,N,g,C,v,M){if(A(p)){var D=p;p=c(D,"key"),N=c(D,"jsonURL"),g=c(D,"audioURL"),C=c(D,"audioConfig"),v=c(D,"audioXhrSettings"),M=c(D,"jsonXhrSettings")}var G;if(!g)G=new h(L,p,N,M),f.call(this,L,"audiosprite",p,[G]),this.config.resourceLoad=!0,this.config.audioConfig=C,this.config.audioXhrSettings=v;else{var H=u.create(L,p,g,C,v);H&&(G=new h(L,p,N,M),f.call(this,L,"audiosprite",p,[H,G]),this.config.resourceLoad=!1)}},"AudioSpriteFile"),onFileComplete:function(O){var L=this.files.indexOf(O);if(L!==-1&&(this.pending--,this.config.resourceLoad&&O.type==="json"&&O.data.hasOwnProperty("resources"))){var p=O.data.resources,N=c(this.config,"audioConfig"),g=c(this.config,"audioXhrSettings"),C=u.create(this.loader,O.key,p,N,g);C&&(this.addToMultiFile(C),this.loader.addFile(C))}},addToCache:function(){if(this.isReadyToProcess()){var O=this.files[0],L=this.files[1];O.addToCache(),L.addToCache(),this.complete=!0}}});d.register("audioSprite",function(O,L,p,N,g,C){var v=this.systems.game,M=v.config.audio,D=v.device.audio;if(M&&M.noAudio||!D.webAudio&&!D.audioData)return this;var G;if(Array.isArray(O))for(var H=0;H{/** + */var u=s(21097),T=s(83419),A=s(74099),c=s(95540),d=s(41212),h=s(518),f=s(26430),S=new T({Extends:f,initialize:v(function(L,p,N,g,C,P,M){if(d(p)){var D=p;p=c(D,"key"),N=c(D,"jsonURL"),g=c(D,"audioURL"),C=c(D,"audioConfig"),P=c(D,"audioXhrSettings"),M=c(D,"jsonXhrSettings")}var G;if(!g)G=new h(L,p,N,M),f.call(this,L,"audiosprite",p,[G]),this.config.resourceLoad=!0,this.config.audioConfig=C,this.config.audioXhrSettings=P;else{var H=u.create(L,p,g,C,P);H&&(G=new h(L,p,N,M),f.call(this,L,"audiosprite",p,[H,G]),this.config.resourceLoad=!1)}},"AudioSpriteFile"),onFileComplete:function(R){var L=this.files.indexOf(R);if(L!==-1&&(this.pending--,this.config.resourceLoad&&R.type==="json"&&R.data.hasOwnProperty("resources"))){var p=R.data.resources,N=c(this.config,"audioConfig"),g=c(this.config,"audioXhrSettings"),C=u.create(this.loader,R.key,p,N,g);C&&(this.addToMultiFile(C),this.loader.addFile(C))}},addToCache:function(){if(this.isReadyToProcess()){var R=this.files[0],L=this.files[1];R.addToCache(),L.addToCache(),this.complete=!0}}});A.register("audioSprite",function(R,L,p,N,g,C){var P=this.systems.game,M=P.config.audio,D=P.device.audio;if(M&&M.noAudio||!D.webAudio&&!D.audioData)return this;var G;if(Array.isArray(R))for(var H=0;H{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(23906),d=s(41299),c=s(74099),A=s(95540),h=s(41212),f=new u({Extends:d,initialize:P(function(O,L,p,N,g){var C="bin";if(h(L)){var v=L;L=A(v,"key"),p=A(v,"url"),N=A(v,"xhrSettings"),C=A(v,"extension",C),g=A(v,"dataType",g)}var M={type:"binary",cache:O.cacheManager.binary,extension:C,responseType:"arraybuffer",key:L,url:p,xhrSettings:N,config:{dataType:g}};d.call(this,O,M)},"BinaryFile"),onProcess:function(){this.state=T.FILE_PROCESSING;var S=this.config.dataType;this.data=S?new S(this.xhrLoader.response):this.xhrLoader.response,this.onProcessComplete()}});c.register("binary",function(S,O,L,p){if(Array.isArray(S))for(var N=0;N{/** + */var u=s(83419),T=s(23906),A=s(41299),c=s(74099),d=s(95540),h=s(41212),f=new u({Extends:A,initialize:v(function(R,L,p,N,g){var C="bin";if(h(L)){var P=L;L=d(P,"key"),p=d(P,"url"),N=d(P,"xhrSettings"),C=d(P,"extension",C),g=d(P,"dataType",g)}var M={type:"binary",cache:R.cacheManager.binary,extension:C,responseType:"arraybuffer",key:L,url:p,xhrSettings:N,config:{dataType:g}};A.call(this,R,M)},"BinaryFile"),onProcess:function(){this.state=T.FILE_PROCESSING;var S=this.config.dataType;this.data=S?new S(this.xhrLoader.response):this.xhrLoader.response,this.onProcessComplete()}});c.register("binary",function(S,R,L,p){if(Array.isArray(S))for(var N=0;N{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(74099),d=s(95540),c=s(19550),A=s(41212),h=s(26430),f=s(21859),S=s(57318),O=new u({Extends:h,initialize:P(function(p,N,g,C,v,M){var D,G;if(A(N)){var H=N;N=d(H,"key"),D=new c(p,{key:N,url:d(H,"textureURL"),extension:d(H,"textureExtension","png"),normalMap:d(H,"normalMap"),xhrSettings:d(H,"textureXhrSettings")}),G=new S(p,{key:N,url:d(H,"fontDataURL"),extension:d(H,"fontDataExtension","xml"),xhrSettings:d(H,"fontDataXhrSettings")})}else D=new c(p,N,g,v),G=new S(p,N,C,M);D.linkFile?h.call(this,p,"bitmapfont",N,[D,G,D.linkFile]):h.call(this,p,"bitmapfont",N,[D,G])},"BitmapFontFile"),addToCache:function(){if(this.isReadyToProcess()){var L=this.files[0],p=this.files[1];L.addToCache();var N=L.cache.get(L.key),g=f(p.data,L.cache.getFrame(L.key),0,0,N);this.loader.cacheManager.bitmapFont.add(L.key,{data:g,texture:L.key,frame:null}),this.complete=!0}}});T.register("bitmapFont",function(L,p,N,g,C){var v;if(Array.isArray(L))for(var M=0;M{/** + */var u=s(83419),T=s(74099),A=s(95540),c=s(19550),d=s(41212),h=s(26430),f=s(21859),S=s(57318),R=new u({Extends:h,initialize:v(function(p,N,g,C,P,M){var D,G;if(d(N)){var H=N;N=A(H,"key"),D=new c(p,{key:N,url:A(H,"textureURL"),extension:A(H,"textureExtension","png"),normalMap:A(H,"normalMap"),xhrSettings:A(H,"textureXhrSettings")}),G=new S(p,{key:N,url:A(H,"fontDataURL"),extension:A(H,"fontDataExtension","xml"),xhrSettings:A(H,"fontDataXhrSettings")})}else D=new c(p,N,g,P),G=new S(p,N,C,M);D.linkFile?h.call(this,p,"bitmapfont",N,[D,G,D.linkFile]):h.call(this,p,"bitmapfont",N,[D,G])},"BitmapFontFile"),addToCache:function(){if(this.isReadyToProcess()){var L=this.files[0],p=this.files[1];L.addToCache();var N=L.cache.get(L.key),g=f(p.data,L.cache.getFrame(L.key),0,0,N);this.loader.cacheManager.bitmapFont.add(L.key,{data:g,texture:L.key,frame:null}),this.complete=!0}}});T.register("bitmapFont",function(L,p,N,g,C){var P;if(Array.isArray(L))for(var M=0;M{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(23906),d=s(41299),c=s(74099),A=s(95540),h=s(41212),f=new u({Extends:d,initialize:P(function(O,L,p,N){var g="css";if(h(L)){var C=L;L=A(C,"key"),p=A(C,"url"),N=A(C,"xhrSettings"),g=A(C,"extension",g)}var v={type:"script",cache:!1,extension:g,responseType:"text",key:L,url:p,xhrSettings:N};d.call(this,O,v)},"CSSFile"),onProcess:function(){this.state=T.FILE_PROCESSING,this.data=document.createElement("style"),this.data.defer=!1,this.data.innerHTML=this.xhrLoader.responseText,document.head.appendChild(this.data),this.onProcessComplete()}});c.register("css",function(S,O,L){if(Array.isArray(S))for(var p=0;p{/** + */var u=s(83419),T=s(23906),A=s(41299),c=s(74099),d=s(95540),h=s(41212),f=new u({Extends:A,initialize:v(function(R,L,p,N){var g="css";if(h(L)){var C=L;L=d(C,"key"),p=d(C,"url"),N=d(C,"xhrSettings"),g=d(C,"extension",g)}var P={type:"script",cache:!1,extension:g,responseType:"text",key:L,url:p,xhrSettings:N};A.call(this,R,P)},"CSSFile"),onProcess:function(){this.state=T.FILE_PROCESSING,this.data=document.createElement("style"),this.data.defer=!1,this.data.innerHTML=this.xhrLoader.responseText,document.head.appendChild(this.data),this.onProcessComplete()}});c.register("css",function(S,R,L){if(Array.isArray(S))for(var p=0;p{/** * @author Richard Davey * @copyright 2021 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(38734),T=s(85722),d=s(83419),c=s(74099),A=s(95540),h=s(19550),f=s(41212),S=s(518),O=s(31403),L=s(46975),p=s(59327),N=s(26430),g=s(82038),C=s(55222),v=new d({Extends:N,initialize:P(function(D,G,H,B){if(H.multiAtlasURL){var _=new S(D,{key:G,url:H.multiAtlasURL,xhrSettings:B,config:H});N.call(this,D,"texture",G,[_])}else{var w=H.textureURL.substr(H.textureURL.length-3);H.type||(H.type=w.toLowerCase()==="ktx"?"KTX":"PVR");var b=new T(D,{key:G,url:H.textureURL,extension:w,xhrSettings:B,config:H});if(H.atlasURL){var F=new S(D,{key:G,url:H.atlasURL,xhrSettings:B,config:H});N.call(this,D,"texture",G,[b,F])}else N.call(this,D,"texture",G,[b])}this.config=H},"CompressedTextureFile"),onFileComplete:function(M){var D=this.files.indexOf(M);if(D!==-1){if(this.pending--,!this.config.multiAtlasURL)return;if(M.type==="json"&&M.data.hasOwnProperty("textures")){var G=M.data.textures,H=this.config,B=this.loader,_=B.baseURL,w=B.path,b=B.prefix,F=A(H,"multiBaseURL",this.baseURL),k=A(H,"multiPath",this.path),V=A(H,"prefix",this.prefix),Z=A(H,"textureXhrSettings");F&&B.setBaseURL(F),k&&B.setPath(k),V&&B.setPrefix(V);for(var $=0;${/** + */var u=s(38734),T=s(85722),A=s(83419),c=s(74099),d=s(95540),h=s(19550),f=s(41212),S=s(518),R=s(31403),L=s(46975),p=s(59327),N=s(26430),g=s(82038),C=s(55222),P=new A({Extends:N,initialize:v(function(D,G,H,B){if(H.multiAtlasURL){var b=new S(D,{key:G,url:H.multiAtlasURL,xhrSettings:B,config:H});N.call(this,D,"texture",G,[b])}else{var w=H.textureURL.substr(H.textureURL.length-3);H.type||(H.type=w.toLowerCase()==="ktx"?"KTX":"PVR");var _=new T(D,{key:G,url:H.textureURL,extension:w,xhrSettings:B,config:H});if(H.atlasURL){var F=new S(D,{key:G,url:H.atlasURL,xhrSettings:B,config:H});N.call(this,D,"texture",G,[_,F])}else N.call(this,D,"texture",G,[_])}this.config=H},"CompressedTextureFile"),onFileComplete:function(M){var D=this.files.indexOf(M);if(D!==-1){if(this.pending--,!this.config.multiAtlasURL)return;if(M.type==="json"&&M.data.hasOwnProperty("textures")){var G=M.data.textures,H=this.config,B=this.loader,b=B.baseURL,w=B.path,_=B.prefix,F=d(H,"multiBaseURL",this.baseURL),x=d(H,"multiPath",this.path),V=d(H,"prefix",this.prefix),Z=d(H,"textureXhrSettings");F&&B.setBaseURL(F),x&&B.setPath(x),V&&B.setPrefix(V);for(var $=0;${/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(23906),d=s(41299),c=s(74099),A=s(95540),h=s(41212),f=s(73894),S=new u({Extends:d,initialize:P(function(L,p,N,g,C){var v="glsl";if(h(p)){var M=p;p=A(M,"key"),N=A(M,"url"),g=A(M,"shaderType","fragment"),C=A(M,"xhrSettings"),v=A(M,"extension",v)}else g===void 0&&(g="fragment");var D={type:"glsl",cache:L.cacheManager.shader,extension:v,responseType:"text",key:p,url:N,config:{shaderType:g},xhrSettings:C};d.call(this,L,D)},"GLSLFile"),onProcess:function(){this.state=T.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var O=this.data.split(` -`),L=this.extractBlock(O,0);if(L)for(;L;){var p=this.getShaderName(L.header),N=this.getShaderType(L.header),g=this.getShaderUniforms(L.header),C=L.shader;if(this.cache.has(p)){var v=this.cache.get(p);N==="fragment"?v.fragmentSrc=C:v.vertexSrc=C,v.uniforms||(v.uniforms=g)}else N==="fragment"?this.cache.add(p,new f(p,C,"",g)):this.cache.add(p,new f(p,"",C,g));L=this.extractBlock(O,L.offset)}else this.config.shaderType==="fragment"?this.cache.add(this.key,new f(this.key,this.data)):this.cache.add(this.key,new f(this.key,"",this.data))},getShaderName:function(O){for(var L=0;L{/** + */var u=s(83419),T=s(23906),A=s(41299),c=s(74099),d=s(95540),h=s(41212),f=s(73894),S=new u({Extends:A,initialize:v(function(L,p,N,g,C){var P="glsl";if(h(p)){var M=p;p=d(M,"key"),N=d(M,"url"),g=d(M,"shaderType","fragment"),C=d(M,"xhrSettings"),P=d(M,"extension",P)}else g===void 0&&(g="fragment");var D={type:"glsl",cache:L.cacheManager.shader,extension:P,responseType:"text",key:p,url:N,config:{shaderType:g},xhrSettings:C};A.call(this,L,D)},"GLSLFile"),onProcess:function(){this.state=T.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var R=this.data.split(` +`),L=this.extractBlock(R,0);if(L)for(;L;){var p=this.getShaderName(L.header),N=this.getShaderType(L.header),g=this.getShaderUniforms(L.header),C=L.shader;if(this.cache.has(p)){var P=this.cache.get(p);N==="fragment"?P.fragmentSrc=C:P.vertexSrc=C,P.uniforms||(P.uniforms=g)}else N==="fragment"?this.cache.add(p,new f(p,C,"",g)):this.cache.add(p,new f(p,"",C,g));L=this.extractBlock(R,L.offset)}else this.config.shaderType==="fragment"?this.cache.add(this.key,new f(this.key,this.data)):this.cache.add(this.key,new f(this.key,"",this.data))},getShaderName:function(R){for(var L=0;L{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(54899),d=s(41299),c=s(95540),A=s(98356),h=s(41212),f=new u({Extends:d,initialize:P(function(O,L,p,N){if(h(L)){var g=L;L=c(g,"key"),N=c(g,"config",N)}var C={type:"audio",cache:O.cacheManager.audio,extension:p.type,key:L,url:p.url,config:N};d.call(this,O,C),this.locked="ontouchstart"in window,this.loaded=!1,this.filesLoaded=0,this.filesTotal=0},"HTML5AudioFile"),onLoad:function(){this.loaded||(this.loaded=!0,this.loader.nextFile(this,!0))},onError:function(){for(var S=0;S{/** + */var u=s(83419),T=s(54899),A=s(41299),c=s(95540),d=s(98356),h=s(41212),f=new u({Extends:A,initialize:v(function(R,L,p,N){if(h(L)){var g=L;L=c(g,"key"),N=c(g,"config",N)}var C={type:"audio",cache:R.cacheManager.audio,extension:p.type,key:L,url:p.url,config:N};A.call(this,R,C),this.locked="ontouchstart"in window,this.loaded=!1,this.filesLoaded=0,this.filesTotal=0},"HTML5AudioFile"),onLoad:function(){this.loaded||(this.loaded=!0,this.loader.nextFile(this,!0))},onError:function(){for(var S=0;S{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(23906),d=s(41299),c=s(74099),A=s(95540),h=s(41212),f=new u({Extends:d,initialize:P(function(O,L,p,N){var g="html";if(h(L)){var C=L;L=A(C,"key"),p=A(C,"url"),N=A(C,"xhrSettings"),g=A(C,"extension",g)}var v={type:"text",cache:O.cacheManager.html,extension:g,responseType:"text",key:L,url:p,xhrSettings:N};d.call(this,O,v)},"HTMLFile"),onProcess:function(){this.state=T.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()}});c.register("html",function(S,O,L){if(Array.isArray(S))for(var p=0;p{/** + */var u=s(83419),T=s(23906),A=s(41299),c=s(74099),d=s(95540),h=s(41212),f=new u({Extends:A,initialize:v(function(R,L,p,N){var g="html";if(h(L)){var C=L;L=d(C,"key"),p=d(C,"url"),N=d(C,"xhrSettings"),g=d(C,"extension",g)}var P={type:"text",cache:R.cacheManager.html,extension:g,responseType:"text",key:L,url:p,xhrSettings:N};A.call(this,R,P)},"HTMLFile"),onProcess:function(){this.state=T.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()}});c.register("html",function(S,R,L){if(Array.isArray(S))for(var p=0;p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(23906),d=s(41299),c=s(74099),A=s(95540),h=s(41212),f=new u({Extends:d,initialize:P(function(O,L,p,N,g,C){N===void 0&&(N=512),g===void 0&&(g=512);var v="html";if(h(L)){var M=L;L=A(M,"key"),p=A(M,"url"),C=A(M,"xhrSettings"),v=A(M,"extension",v),N=A(M,"width",N),g=A(M,"height",g)}var D={type:"html",cache:O.textureManager,extension:v,responseType:"text",key:L,url:p,xhrSettings:C,config:{width:N,height:g}};d.call(this,O,D)},"HTMLTextureFile"),onProcess:function(){this.state=T.FILE_PROCESSING;var S=this.config.width,O=this.config.height,L=[];L.push(''),L.push(''),L.push(''),L.push(this.xhrLoader.responseText),L.push(""),L.push(""),L.push("");var p=[L.join(` -`)],N=this;try{var g=new window.Blob(p,{type:"image/svg+xml;charset=utf-8"})}catch{N.state=T.FILE_ERRORED,N.onProcessComplete();return}this.data=new Image,this.data.crossOrigin=this.crossOrigin,this.data.onload=function(){d.revokeObjectURL(N.data),N.onProcessComplete()},this.data.onerror=function(){d.revokeObjectURL(N.data),N.onProcessError()},d.createObjectURL(this.data,g,"image/svg+xml")},addToCache:function(){this.cache.addImage(this.key,this.data)}});c.register("htmlTexture",function(S,O,L,p,N){if(Array.isArray(S))for(var g=0;g{/** + */var u=s(83419),T=s(23906),A=s(41299),c=s(74099),d=s(95540),h=s(41212),f=new u({Extends:A,initialize:v(function(R,L,p,N,g,C){N===void 0&&(N=512),g===void 0&&(g=512);var P="html";if(h(L)){var M=L;L=d(M,"key"),p=d(M,"url"),C=d(M,"xhrSettings"),P=d(M,"extension",P),N=d(M,"width",N),g=d(M,"height",g)}var D={type:"html",cache:R.textureManager,extension:P,responseType:"text",key:L,url:p,xhrSettings:C,config:{width:N,height:g}};A.call(this,R,D)},"HTMLTextureFile"),onProcess:function(){this.state=T.FILE_PROCESSING;var S=this.config.width,R=this.config.height,L=[];L.push(''),L.push(''),L.push(''),L.push(this.xhrLoader.responseText),L.push(""),L.push(""),L.push("");var p=[L.join(` +`)],N=this;try{var g=new window.Blob(p,{type:"image/svg+xml;charset=utf-8"})}catch{N.state=T.FILE_ERRORED,N.onProcessComplete();return}this.data=new Image,this.data.crossOrigin=this.crossOrigin,this.data.onload=function(){A.revokeObjectURL(N.data),N.onProcessComplete()},this.data.onerror=function(){A.revokeObjectURL(N.data),N.onProcessError()},A.createObjectURL(this.data,g,"image/svg+xml")},addToCache:function(){this.cache.addImage(this.key,this.data)}});c.register("htmlTexture",function(S,R,L,p,N){if(Array.isArray(S))for(var g=0;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(23906),d=s(41299),c=s(74099),A=s(95540),h=s(41212),f=s(98356),S=new u({Extends:d,initialize:P(function O(L,p,N,g,C){var v="png",M;if(h(p)){var D=p;p=A(D,"key"),N=A(D,"url"),M=A(D,"normalMap"),g=A(D,"xhrSettings"),v=A(D,"extension",v),C=A(D,"frameConfig")}Array.isArray(N)&&(M=N[1],N=N[0]);var G={type:"image",cache:L.textureManager,extension:v,responseType:"blob",key:p,url:N,xhrSettings:g,config:C};if(d.call(this,L,G),M){var H=new O(L,this.key,M,g,C);H.type="normalMap",this.setLink(H),L.addFile(H)}this.useImageElementLoad=L.imageLoadType==="HTMLImageElement"||this.base64,this.useImageElementLoad&&(this.load=this.loadImage,this.onProcess=this.onProcessImage)},"ImageFile"),onProcess:function(){this.state=T.FILE_PROCESSING,this.data=new Image,this.data.crossOrigin=this.crossOrigin;var O=this;this.data.onload=function(){d.revokeObjectURL(O.data),O.onProcessComplete()},this.data.onerror=function(){d.revokeObjectURL(O.data),O.onProcessError()},d.createObjectURL(this.data,this.xhrLoader.response,"image/png")},onProcessImage:function(){var O=this.state;this.state=T.FILE_PROCESSING,O===T.FILE_LOADED?this.onProcessComplete():this.onProcessError()},loadImage:function(){this.state=T.FILE_LOADING,this.src=f(this,this.loader.baseURL),this.data=new Image,this.data.crossOrigin=this.crossOrigin;var O=this;this.data.onload=function(){O.state=T.FILE_LOADED,O.loader.nextFile(O,!0)},this.data.onerror=function(){O.loader.nextFile(O,!1)},this.data.src=this.src},addToCache:function(){var O=this.linkFile;O?O.state>=T.FILE_COMPLETE&&(O.type==="spritesheet"?O.addToCache():this.type==="normalMap"?this.cache.addImage(this.key,O.data,this.data):this.cache.addImage(this.key,this.data,O.data)):this.cache.addImage(this.key,this.data)}});c.register("image",function(O,L,p){if(Array.isArray(O))for(var N=0;N{/** + */var u=s(83419),T=s(23906),A=s(41299),c=s(74099),d=s(95540),h=s(41212),f=s(98356),S=new u({Extends:A,initialize:v(function R(L,p,N,g,C){var P="png",M;if(h(p)){var D=p;p=d(D,"key"),N=d(D,"url"),M=d(D,"normalMap"),g=d(D,"xhrSettings"),P=d(D,"extension",P),C=d(D,"frameConfig")}Array.isArray(N)&&(M=N[1],N=N[0]);var G={type:"image",cache:L.textureManager,extension:P,responseType:"blob",key:p,url:N,xhrSettings:g,config:C};if(A.call(this,L,G),M){var H=new R(L,this.key,M,g,C);H.type="normalMap",this.setLink(H),L.addFile(H)}this.useImageElementLoad=L.imageLoadType==="HTMLImageElement"||this.base64,this.useImageElementLoad&&(this.load=this.loadImage,this.onProcess=this.onProcessImage)},"ImageFile"),onProcess:function(){this.state=T.FILE_PROCESSING,this.data=new Image,this.data.crossOrigin=this.crossOrigin;var R=this;this.data.onload=function(){A.revokeObjectURL(R.data),R.onProcessComplete()},this.data.onerror=function(){A.revokeObjectURL(R.data),R.onProcessError()},A.createObjectURL(this.data,this.xhrLoader.response,"image/png")},onProcessImage:function(){var R=this.state;this.state=T.FILE_PROCESSING,R===T.FILE_LOADED?this.onProcessComplete():this.onProcessError()},loadImage:function(){this.state=T.FILE_LOADING,this.src=f(this,this.loader.baseURL),this.data=new Image,this.data.crossOrigin=this.crossOrigin;var R=this;this.data.onload=function(){R.state=T.FILE_LOADED,R.loader.nextFile(R,!0)},this.data.onerror=function(){R.loader.nextFile(R,!1)},this.data.src=this.src},addToCache:function(){var R=this.linkFile;R?R.state>=T.FILE_COMPLETE&&(R.type==="spritesheet"?R.addToCache():this.type==="normalMap"?this.cache.addImage(this.key,R.data,this.data):this.cache.addImage(this.key,this.data,R.data)):this.cache.addImage(this.key,this.data)}});c.register("image",function(R,L,p){if(Array.isArray(R))for(var N=0;N{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(23906),d=s(41299),c=s(74099),A=s(95540),h=s(35154),f=s(41212),S=new u({Extends:d,initialize:P(function(L,p,N,g,C){var v="json";if(f(p)){var M=p;p=A(M,"key"),N=A(M,"url"),g=A(M,"xhrSettings"),v=A(M,"extension",v),C=A(M,"dataKey",C)}var D={type:"json",cache:L.cacheManager.json,extension:v,responseType:"text",key:p,url:N,xhrSettings:g,config:C};d.call(this,L,D),f(N)&&(C?this.data=h(N,C):this.data=N,this.state=T.FILE_POPULATED)},"JSONFile"),onProcess:function(){if(this.state!==T.FILE_POPULATED){this.state=T.FILE_PROCESSING;try{var O=JSON.parse(this.xhrLoader.responseText)}catch(p){throw this.onProcessError(),p}var L=this.config;typeof L=="string"?this.data=h(O,L,O):this.data=O}this.onProcessComplete()}});c.register("json",function(O,L,p,N){if(Array.isArray(O))for(var g=0;g{/** + */var u=s(83419),T=s(23906),A=s(41299),c=s(74099),d=s(95540),h=s(35154),f=s(41212),S=new u({Extends:A,initialize:v(function(L,p,N,g,C){var P="json";if(f(p)){var M=p;p=d(M,"key"),N=d(M,"url"),g=d(M,"xhrSettings"),P=d(M,"extension",P),C=d(M,"dataKey",C)}var D={type:"json",cache:L.cacheManager.json,extension:P,responseType:"text",key:p,url:N,xhrSettings:g,config:C};A.call(this,L,D),f(N)&&(C?this.data=h(N,C):this.data=N,this.state=T.FILE_POPULATED)},"JSONFile"),onProcess:function(){if(this.state!==T.FILE_POPULATED){this.state=T.FILE_PROCESSING;try{var R=JSON.parse(this.xhrLoader.responseText)}catch(p){throw this.onProcessError(),p}var L=this.config;typeof L=="string"?this.data=h(R,L,R):this.data=R}this.onProcessComplete()}});c.register("json",function(R,L,p,N){if(Array.isArray(R))for(var g=0;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(74099),d=s(95540),c=s(19550),A=s(41212),h=s(518),f=s(26430),S=new u({Extends:f,initialize:P(function(L,p,N,g,C,v,M){if(A(p)){var D=p;p=d(D,"key"),d(D,"url",!1)?N=d(D,"url"):N=d(D,"atlasURL"),v=d(D,"xhrSettings"),g=d(D,"path"),C=d(D,"baseURL"),M=d(D,"textureXhrSettings")}var G=new h(L,p,N,v);f.call(this,L,"multiatlas",p,[G]),this.config.path=g,this.config.baseURL=C,this.config.textureXhrSettings=M},"MultiAtlasFile"),onFileComplete:function(O){var L=this.files.indexOf(O);if(L!==-1&&(this.pending--,O.type==="json"&&O.data.hasOwnProperty("textures"))){var p=O.data.textures,N=this.config,g=this.loader,C=g.baseURL,v=g.path,M=g.prefix,D=d(N,"baseURL",this.baseURL),G=d(N,"path",this.path),H=d(N,"prefix",this.prefix),B=d(N,"textureXhrSettings");g.setBaseURL(D),g.setPath(G),g.setPrefix(H);for(var _=0;_{/** + */var u=s(83419),T=s(74099),A=s(95540),c=s(19550),d=s(41212),h=s(518),f=s(26430),S=new u({Extends:f,initialize:v(function(L,p,N,g,C,P,M){if(d(p)){var D=p;p=A(D,"key"),A(D,"url",!1)?N=A(D,"url"):N=A(D,"atlasURL"),P=A(D,"xhrSettings"),g=A(D,"path"),C=A(D,"baseURL"),M=A(D,"textureXhrSettings")}var G=new h(L,p,N,P);f.call(this,L,"multiatlas",p,[G]),this.config.path=g,this.config.baseURL=C,this.config.textureXhrSettings=M},"MultiAtlasFile"),onFileComplete:function(R){var L=this.files.indexOf(R);if(L!==-1&&(this.pending--,R.type==="json"&&R.data.hasOwnProperty("textures"))){var p=R.data.textures,N=this.config,g=this.loader,C=g.baseURL,P=g.path,M=g.prefix,D=A(N,"baseURL",this.baseURL),G=A(N,"path",this.path),H=A(N,"prefix",this.prefix),B=A(N,"textureXhrSettings");g.setBaseURL(D),g.setPath(G),g.setPrefix(H);for(var b=0;b{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(74099),d=s(95540),c=s(41212),A=s(26430),h=s(34328),f=new u({Extends:A,initialize:P(function(O,L,p,N){var g="js",C=[];if(c(L)){var v=L;L=d(v,"key"),p=d(v,"url"),N=d(v,"xhrSettings"),g=d(v,"extension",g)}Array.isArray(p)||(p=[p]);for(var M=0;M{/** + */var u=s(83419),T=s(74099),A=s(95540),c=s(41212),d=s(26430),h=s(34328),f=new u({Extends:d,initialize:v(function(R,L,p,N){var g="js",C=[];if(c(L)){var P=L;L=A(P,"key"),p=A(P,"url"),N=A(P,"xhrSettings"),g=A(P,"extension",g)}Array.isArray(p)||(p=[p]);for(var M=0;M{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(74099),d=s(95540),c=s(41212),A=s(26430),h=s(85048),f=s(61485),S=s(78776),O=new u({Extends:A,initialize:P(function(p,N,g,C,v,M){var D,G,H=p.cacheManager.obj;if(c(N)){var B=N;N=d(B,"key"),D=new S(p,{key:N,type:"obj",cache:H,url:d(B,"url"),extension:d(B,"extension","obj"),xhrSettings:d(B,"xhrSettings"),config:{flipUV:d(B,"flipUV",v)}}),C=d(B,"matURL"),C&&(G=new S(p,{key:N,type:"mat",cache:H,url:C,extension:d(B,"matExtension","mat"),xhrSettings:d(B,"xhrSettings")}))}else D=new S(p,{key:N,url:g,type:"obj",cache:H,extension:"obj",xhrSettings:M,config:{flipUV:v}}),C&&(G=new S(p,{key:N,url:C,type:"mat",cache:H,extension:"mat",xhrSettings:M}));A.call(this,p,"obj",N,[D,G])},"OBJFile"),addToCache:function(){if(this.isReadyToProcess()){var L=this.files[0],p=this.files[1],N=h(L.data,L.config.flipUV);p&&(N.materials=f(p.data)),L.cache.add(L.key,N),this.complete=!0}}});T.register("obj",function(L,p,N,g,C){var v;if(Array.isArray(L))for(var M=0;M{/** + */var u=s(83419),T=s(74099),A=s(95540),c=s(41212),d=s(26430),h=s(85048),f=s(61485),S=s(78776),R=new u({Extends:d,initialize:v(function(p,N,g,C,P,M){var D,G,H=p.cacheManager.obj;if(c(N)){var B=N;N=A(B,"key"),D=new S(p,{key:N,type:"obj",cache:H,url:A(B,"url"),extension:A(B,"extension","obj"),xhrSettings:A(B,"xhrSettings"),config:{flipUV:A(B,"flipUV",P)}}),C=A(B,"matURL"),C&&(G=new S(p,{key:N,type:"mat",cache:H,url:C,extension:A(B,"matExtension","mat"),xhrSettings:A(B,"xhrSettings")}))}else D=new S(p,{key:N,url:g,type:"obj",cache:H,extension:"obj",xhrSettings:M,config:{flipUV:P}}),C&&(G=new S(p,{key:N,url:C,type:"mat",cache:H,extension:"mat",xhrSettings:M}));d.call(this,p,"obj",N,[D,G])},"OBJFile"),addToCache:function(){if(this.isReadyToProcess()){var L=this.files[0],p=this.files[1],N=h(L.data,L.config.flipUV);p&&(N.materials=f(p.data)),L.cache.add(L.key,N),this.complete=!0}}});T.register("obj",function(L,p,N,g,C){var P;if(Array.isArray(L))for(var M=0;M{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(23906),d=s(74099),c=s(518),A=new u({Extends:c,initialize:P(function(f,S,O,L,p){c.call(this,f,S,O,L,p),this.type="packfile"},"PackFile"),onProcess:function(){if(this.state!==T.FILE_POPULATED&&(this.state=T.FILE_PROCESSING,this.data=JSON.parse(this.xhrLoader.responseText)),this.data.hasOwnProperty("files")&&this.config){var h={};h[this.config]=this.data,this.data=h}this.loader.addPack(this.data,this.config),this.onProcessComplete()}});d.register("pack",function(h,f,S,O){if(Array.isArray(h))for(var L=0;L{/** + */var u=s(83419),T=s(23906),A=s(74099),c=s(518),d=new u({Extends:c,initialize:v(function(f,S,R,L,p){c.call(this,f,S,R,L,p),this.type="packfile"},"PackFile"),onProcess:function(){if(this.state!==T.FILE_POPULATED&&(this.state=T.FILE_PROCESSING,this.data=JSON.parse(this.xhrLoader.responseText)),this.data.hasOwnProperty("files")&&this.config){var h={};h[this.config]=this.data,this.data=h}this.loader.addPack(this.data,this.config),this.onProcessComplete()}});A.register("pack",function(h,f,S,R){if(Array.isArray(h))for(var L=0;L{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(23906),d=s(41299),c=s(74099),A=s(95540),h=s(41212),f=new u({Extends:d,initialize:P(function(O,L,p,N,g,C){var v="js";if(h(L)){var M=L;L=A(M,"key"),p=A(M,"url"),C=A(M,"xhrSettings"),v=A(M,"extension",v),N=A(M,"start"),g=A(M,"mapping")}var D={type:"plugin",cache:!1,extension:v,responseType:"text",key:L,url:p,xhrSettings:C,config:{start:N,mapping:g}};d.call(this,O,D),typeof p=="function"&&(this.data=p,this.state=T.FILE_POPULATED)},"PluginFile"),onProcess:function(){var S=this.loader.systems.plugins,O=this.config,L=A(O,"start",!1),p=A(O,"mapping",null);if(this.state===T.FILE_POPULATED)S.install(this.key,this.data,L,p);else{this.state=T.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 N=S.install(this.key,window[this.key],L,p);(L||p)&&(this.loader.systems[p]=N,this.loader.scene[p]=N)}this.onProcessComplete()}});c.register("plugin",function(S,O,L,p,N){if(Array.isArray(S))for(var g=0;g{/** + */var u=s(83419),T=s(23906),A=s(41299),c=s(74099),d=s(95540),h=s(41212),f=new u({Extends:A,initialize:v(function(R,L,p,N,g,C){var P="js";if(h(L)){var M=L;L=d(M,"key"),p=d(M,"url"),C=d(M,"xhrSettings"),P=d(M,"extension",P),N=d(M,"start"),g=d(M,"mapping")}var D={type:"plugin",cache:!1,extension:P,responseType:"text",key:L,url:p,xhrSettings:C,config:{start:N,mapping:g}};A.call(this,R,D),typeof p=="function"&&(this.data=p,this.state=T.FILE_POPULATED)},"PluginFile"),onProcess:function(){var S=this.loader.systems.plugins,R=this.config,L=d(R,"start",!1),p=d(R,"mapping",null);if(this.state===T.FILE_POPULATED)S.install(this.key,this.data,L,p);else{this.state=T.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 N=S.install(this.key,window[this.key],L,p);(L||p)&&(this.loader.systems[p]=N,this.loader.scene[p]=N)}this.onProcessComplete()}});c.register("plugin",function(S,R,L,p,N){if(Array.isArray(S))for(var g=0;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(23906),d=s(41299),c=s(74099),A=s(95540),h=s(41212),f=new u({Extends:d,initialize:P(function(O,L,p,N,g){var C="svg";if(h(L)){var v=L;L=A(v,"key"),p=A(v,"url"),N=A(v,"svgConfig",{}),g=A(v,"xhrSettings"),C=A(v,"extension",C)}var M={type:"svg",cache:O.textureManager,extension:C,responseType:"text",key:L,url:p,xhrSettings:g,config:{width:A(N,"width"),height:A(N,"height"),scale:A(N,"scale")}};d.call(this,O,M)},"SVGFile"),onProcess:function(){this.state=T.FILE_PROCESSING;var S=this.xhrLoader.responseText,O=[S],L=this.config.width,p=this.config.height,N=this.config.scale;e:if(L&&p||N){var g=null,C=new DOMParser;g=C.parseFromString(S,"text/xml");var v=g.getElementsByTagName("svg")[0],M=v.hasAttribute("viewBox"),D=parseFloat(v.getAttribute("width")),G=parseFloat(v.getAttribute("height"));if(!M&&D&&G)v.setAttribute("viewBox","0 0 "+D+" "+G);else if(M&&!D&&!G){var H=v.getAttribute("viewBox").split(/\s+|,/);D=H[2],G=H[3]}if(N)if(D&&G)L=D*N,p=G*N;else break e;v.setAttribute("width",L.toString()+"px"),v.setAttribute("height",p.toString()+"px"),O=[new XMLSerializer().serializeToString(v)]}try{var B=new window.Blob(O,{type:"image/svg+xml;charset=utf-8"})}catch{this.onProcessError();return}this.data=new Image,this.data.crossOrigin=this.crossOrigin;var _=this,w=!1;this.data.onload=function(){w||d.revokeObjectURL(_.data),_.onProcessComplete()},this.data.onerror=function(){w?_.onProcessError():(w=!0,d.revokeObjectURL(_.data),_.data.src="data:image/svg+xml,"+encodeURIComponent(O.join("")))},d.createObjectURL(this.data,B,"image/svg+xml")},addToCache:function(){this.cache.addImage(this.key,this.data)}});c.register("svg",function(S,O,L,p){if(Array.isArray(S))for(var N=0;N{/** + */var u=s(83419),T=s(23906),A=s(41299),c=s(74099),d=s(95540),h=s(41212),f=new u({Extends:A,initialize:v(function(R,L,p,N,g){var C="svg";if(h(L)){var P=L;L=d(P,"key"),p=d(P,"url"),N=d(P,"svgConfig",{}),g=d(P,"xhrSettings"),C=d(P,"extension",C)}var M={type:"svg",cache:R.textureManager,extension:C,responseType:"text",key:L,url:p,xhrSettings:g,config:{width:d(N,"width"),height:d(N,"height"),scale:d(N,"scale")}};A.call(this,R,M)},"SVGFile"),onProcess:function(){this.state=T.FILE_PROCESSING;var S=this.xhrLoader.responseText,R=[S],L=this.config.width,p=this.config.height,N=this.config.scale;e:if(L&&p||N){var g=null,C=new DOMParser;g=C.parseFromString(S,"text/xml");var P=g.getElementsByTagName("svg")[0],M=P.hasAttribute("viewBox"),D=parseFloat(P.getAttribute("width")),G=parseFloat(P.getAttribute("height"));if(!M&&D&&G)P.setAttribute("viewBox","0 0 "+D+" "+G);else if(M&&!D&&!G){var H=P.getAttribute("viewBox").split(/\s+|,/);D=H[2],G=H[3]}if(N)if(D&&G)L=D*N,p=G*N;else break e;P.setAttribute("width",L.toString()+"px"),P.setAttribute("height",p.toString()+"px"),R=[new XMLSerializer().serializeToString(P)]}try{var B=new window.Blob(R,{type:"image/svg+xml;charset=utf-8"})}catch{this.onProcessError();return}this.data=new Image,this.data.crossOrigin=this.crossOrigin;var b=this,w=!1;this.data.onload=function(){w||A.revokeObjectURL(b.data),b.onProcessComplete()},this.data.onerror=function(){w?b.onProcessError():(w=!0,A.revokeObjectURL(b.data),b.data.src="data:image/svg+xml,"+encodeURIComponent(R.join("")))},A.createObjectURL(this.data,B,"image/svg+xml")},addToCache:function(){this.cache.addImage(this.key,this.data)}});c.register("svg",function(S,R,L,p){if(Array.isArray(S))for(var N=0;N{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(23906),d=s(41299),c=s(74099),A=s(95540),h=s(41212),f=new u({Extends:d,initialize:P(function(O,L,p,N){var g="js";if(h(L)){var C=L;L=A(C,"key"),p=A(C,"url"),N=A(C,"xhrSettings"),g=A(C,"extension",g)}var v={type:"text",extension:g,responseType:"text",key:L,url:p,xhrSettings:N};d.call(this,O,v)},"SceneFile"),onProcess:function(){this.state=T.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var S=this.data.concat(`(function(){ + */var u=s(83419),T=s(23906),A=s(41299),c=s(74099),d=s(95540),h=s(41212),f=new u({Extends:A,initialize:v(function(R,L,p,N){var g="js";if(h(L)){var C=L;L=d(C,"key"),p=d(C,"url"),N=d(C,"xhrSettings"),g=d(C,"extension",g)}var P={type:"text",extension:g,responseType:"text",key:L,url:p,xhrSettings:N};A.call(this,R,P)},"SceneFile"),onProcess:function(){this.state=T.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var S=this.data.concat(`(function(){ return new `+this.key+`(); -}).call(this);`),O=eval;this.loader.sceneManager.add(this.key,O(S)),this.complete=!0}});c.register("sceneFile",function(S,O,L){if(Array.isArray(S))for(var p=0;p{/** +}).call(this);`),R=eval;this.loader.sceneManager.add(this.key,R(S)),this.complete=!0}});c.register("sceneFile",function(S,R,L){if(Array.isArray(S))for(var p=0;p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(23906),d=s(41299),c=s(74099),A=s(95540),h=s(41212),f=new u({Extends:d,initialize:P(function(O,L,p,N,g,C){var v="js";if(h(L)){var M=L;L=A(M,"key"),p=A(M,"url"),C=A(M,"xhrSettings"),v=A(M,"extension",v),N=A(M,"systemKey"),g=A(M,"sceneKey")}var D={type:"scenePlugin",cache:!1,extension:v,responseType:"text",key:L,url:p,xhrSettings:C,config:{systemKey:N,sceneKey:g}};d.call(this,O,D),typeof p=="function"&&(this.data=p,this.state=T.FILE_POPULATED)},"ScenePluginFile"),onProcess:function(){var S=this.loader.systems.plugins,O=this.config,L=this.key,p=A(O,"systemKey",L),N=A(O,"sceneKey",L);this.state===T.FILE_POPULATED?S.installScenePlugin(p,this.data,N,this.loader.scene,!0):(this.state=T.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),S.installScenePlugin(p,window[this.key],N,this.loader.scene,!0)),this.onProcessComplete()}});c.register("scenePlugin",function(S,O,L,p,N){if(Array.isArray(S))for(var g=0;g{/** + */var u=s(83419),T=s(23906),A=s(41299),c=s(74099),d=s(95540),h=s(41212),f=new u({Extends:A,initialize:v(function(R,L,p,N,g,C){var P="js";if(h(L)){var M=L;L=d(M,"key"),p=d(M,"url"),C=d(M,"xhrSettings"),P=d(M,"extension",P),N=d(M,"systemKey"),g=d(M,"sceneKey")}var D={type:"scenePlugin",cache:!1,extension:P,responseType:"text",key:L,url:p,xhrSettings:C,config:{systemKey:N,sceneKey:g}};A.call(this,R,D),typeof p=="function"&&(this.data=p,this.state=T.FILE_POPULATED)},"ScenePluginFile"),onProcess:function(){var S=this.loader.systems.plugins,R=this.config,L=this.key,p=d(R,"systemKey",L),N=d(R,"sceneKey",L);this.state===T.FILE_POPULATED?S.installScenePlugin(p,this.data,N,this.loader.scene,!0):(this.state=T.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),S.installScenePlugin(p,window[this.key],N,this.loader.scene,!0)),this.onProcessComplete()}});c.register("scenePlugin",function(S,R,L,p,N){if(Array.isArray(S))for(var g=0;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(23906),d=s(41299),c=s(74099),A=s(95540),h=s(41212),f=new u({Extends:d,initialize:P(function(O,L,p,N,g){var C="js";if(h(L)){var v=L;L=A(v,"key"),p=A(v,"url"),N=A(v,"type","script"),g=A(v,"xhrSettings"),C=A(v,"extension",C)}else N===void 0&&(N="script");var M={type:N,cache:!1,extension:C,responseType:"text",key:L,url:p,xhrSettings:g};d.call(this,O,M)},"ScriptFile"),onProcess:function(){this.state=T.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()}});c.register("script",function(S,O,L,p){if(Array.isArray(S))for(var N=0;N{/** + */var u=s(83419),T=s(23906),A=s(41299),c=s(74099),d=s(95540),h=s(41212),f=new u({Extends:A,initialize:v(function(R,L,p,N,g){var C="js";if(h(L)){var P=L;L=d(P,"key"),p=d(P,"url"),N=d(P,"type","script"),g=d(P,"xhrSettings"),C=d(P,"extension",C)}else N===void 0&&(N="script");var M={type:N,cache:!1,extension:C,responseType:"text",key:L,url:p,xhrSettings:g};A.call(this,R,M)},"ScriptFile"),onProcess:function(){this.state=T.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()}});c.register("script",function(S,R,L,p){if(Array.isArray(S))for(var N=0;N{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(23906),d=s(74099),c=s(19550),A=new u({Extends:c,initialize:P(function(f,S,O,L,p){c.call(this,f,S,O,p,L),this.type="spritesheet"},"SpriteSheetFile"),addToCache:function(){var h=this.linkFile;h?h.state>=T.FILE_COMPLETE&&(this.type==="normalMap"?this.cache.addSpriteSheet(this.key,h.data,this.config,this.data):this.cache.addSpriteSheet(this.key,this.data,this.config,h.data)):this.cache.addSpriteSheet(this.key,this.data,this.config)}});d.register("spritesheet",function(h,f,S,O){if(Array.isArray(h))for(var L=0;L{/** + */var u=s(83419),T=s(23906),A=s(74099),c=s(19550),d=new u({Extends:c,initialize:v(function(f,S,R,L,p){c.call(this,f,S,R,p,L),this.type="spritesheet"},"SpriteSheetFile"),addToCache:function(){var h=this.linkFile;h?h.state>=T.FILE_COMPLETE&&(this.type==="normalMap"?this.cache.addSpriteSheet(this.key,h.data,this.config,this.data):this.cache.addSpriteSheet(this.key,this.data,this.config,h.data)):this.cache.addSpriteSheet(this.key,this.data,this.config)}});A.register("spritesheet",function(h,f,S,R){if(Array.isArray(h))for(var L=0;L{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(23906),d=s(41299),c=s(74099),A=s(95540),h=s(41212),f=new u({Extends:d,initialize:P(function(O,L,p,N){var g="text",C="txt",v=O.cacheManager.text;if(h(L)){var M=L;L=A(M,"key"),p=A(M,"url"),N=A(M,"xhrSettings"),C=A(M,"extension",C),g=A(M,"type",g),v=A(M,"cache",v)}var D={type:g,cache:v,extension:C,responseType:"text",key:L,url:p,xhrSettings:N};d.call(this,O,D)},"TextFile"),onProcess:function(){this.state=T.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()}});c.register("text",function(S,O,L){if(Array.isArray(S))for(var p=0;p{/** + */var u=s(83419),T=s(23906),A=s(41299),c=s(74099),d=s(95540),h=s(41212),f=new u({Extends:A,initialize:v(function(R,L,p,N){var g="text",C="txt",P=R.cacheManager.text;if(h(L)){var M=L;L=d(M,"key"),p=d(M,"url"),N=d(M,"xhrSettings"),C=d(M,"extension",C),g=d(M,"type",g),P=d(M,"cache",P)}var D={type:g,cache:P,extension:C,responseType:"text",key:L,url:p,xhrSettings:N};A.call(this,R,D)},"TextFile"),onProcess:function(){this.state=T.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()}});c.register("text",function(S,R,L){if(Array.isArray(S))for(var p=0;p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(23906),d=s(41299),c=s(74099),A=s(95540),h=s(41212),f=s(80341),S=new u({Extends:d,initialize:P(function(L,p,N,g){var C="csv";if(h(p)){var v=p;p=A(v,"key"),N=A(v,"url"),g=A(v,"xhrSettings"),C=A(v,"extension",C)}var M={type:"tilemapCSV",cache:L.cacheManager.tilemap,extension:C,responseType:"text",key:p,url:N,xhrSettings:g};d.call(this,L,M),this.tilemapFormat=f.CSV},"TilemapCSVFile"),onProcess:function(){this.state=T.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var O={format:this.tilemapFormat,data:this.data};this.cache.add(this.key,O)}});c.register("tilemapCSV",function(O,L,p){if(Array.isArray(O))for(var N=0;N{/** + */var u=s(83419),T=s(23906),A=s(41299),c=s(74099),d=s(95540),h=s(41212),f=s(80341),S=new u({Extends:A,initialize:v(function(L,p,N,g){var C="csv";if(h(p)){var P=p;p=d(P,"key"),N=d(P,"url"),g=d(P,"xhrSettings"),C=d(P,"extension",C)}var M={type:"tilemapCSV",cache:L.cacheManager.tilemap,extension:C,responseType:"text",key:p,url:N,xhrSettings:g};A.call(this,L,M),this.tilemapFormat=f.CSV},"TilemapCSVFile"),onProcess:function(){this.state=T.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var R={format:this.tilemapFormat,data:this.data};this.cache.add(this.key,R)}});c.register("tilemapCSV",function(R,L,p){if(Array.isArray(R))for(var N=0;N{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(74099),d=s(518),c=s(80341),A=new u({Extends:d,initialize:P(function(f,S,O,L){d.call(this,f,S,O,L),this.type="tilemapJSON",this.cache=f.cacheManager.tilemap},"TilemapImpactFile"),addToCache:function(){var h={format:c.WELTMEISTER,data:this.data};this.cache.add(this.key,h)}});T.register("tilemapImpact",function(h,f,S){if(Array.isArray(h))for(var O=0;O{/** + */var u=s(83419),T=s(74099),A=s(518),c=s(80341),d=new u({Extends:A,initialize:v(function(f,S,R,L){A.call(this,f,S,R,L),this.type="tilemapJSON",this.cache=f.cacheManager.tilemap},"TilemapImpactFile"),addToCache:function(){var h={format:c.WELTMEISTER,data:this.data};this.cache.add(this.key,h)}});T.register("tilemapImpact",function(h,f,S){if(Array.isArray(h))for(var R=0;R{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(74099),d=s(518),c=s(80341),A=new u({Extends:d,initialize:P(function(f,S,O,L){d.call(this,f,S,O,L),this.type="tilemapJSON",this.cache=f.cacheManager.tilemap},"TilemapJSONFile"),addToCache:function(){var h={format:c.TILED_JSON,data:this.data};this.cache.add(this.key,h)}});T.register("tilemapTiledJSON",function(h,f,S){if(Array.isArray(h))for(var O=0;O{/** + */var u=s(83419),T=s(74099),A=s(518),c=s(80341),d=new u({Extends:A,initialize:v(function(f,S,R,L){A.call(this,f,S,R,L),this.type="tilemapJSON",this.cache=f.cacheManager.tilemap},"TilemapJSONFile"),addToCache:function(){var h={format:c.TILED_JSON,data:this.data};this.cache.add(this.key,h)}});T.register("tilemapTiledJSON",function(h,f,S){if(Array.isArray(h))for(var R=0;R{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(74099),d=s(95540),c=s(19550),A=s(41212),h=s(26430),f=s(78776),S=new u({Extends:h,initialize:P(function(L,p,N,g,C,v){var M,D;if(A(p)){var G=p;p=d(G,"key"),M=new c(L,{key:p,url:d(G,"textureURL"),extension:d(G,"textureExtension","png"),normalMap:d(G,"normalMap"),xhrSettings:d(G,"textureXhrSettings")}),D=new f(L,{key:p,url:d(G,"atlasURL"),extension:d(G,"atlasExtension","txt"),xhrSettings:d(G,"atlasXhrSettings")})}else M=new c(L,p,N,C),D=new f(L,p,g,v);M.linkFile?h.call(this,L,"unityatlas",p,[M,D,M.linkFile]):h.call(this,L,"unityatlas",p,[M,D])},"UnityAtlasFile"),addToCache:function(){if(this.isReadyToProcess()){var O=this.files[0],L=this.files[1],p=this.files[2]?this.files[2].data:null;this.loader.textureManager.addUnityAtlas(O.key,O.data,L.data,p),this.complete=!0}}});T.register("unityAtlas",function(O,L,p,N,g){var C;if(Array.isArray(O))for(var v=0;v{/** + */var u=s(83419),T=s(74099),A=s(95540),c=s(19550),d=s(41212),h=s(26430),f=s(78776),S=new u({Extends:h,initialize:v(function(L,p,N,g,C,P){var M,D;if(d(p)){var G=p;p=A(G,"key"),M=new c(L,{key:p,url:A(G,"textureURL"),extension:A(G,"textureExtension","png"),normalMap:A(G,"normalMap"),xhrSettings:A(G,"textureXhrSettings")}),D=new f(L,{key:p,url:A(G,"atlasURL"),extension:A(G,"atlasExtension","txt"),xhrSettings:A(G,"atlasXhrSettings")})}else M=new c(L,p,N,C),D=new f(L,p,g,P);M.linkFile?h.call(this,L,"unityatlas",p,[M,D,M.linkFile]):h.call(this,L,"unityatlas",p,[M,D])},"UnityAtlasFile"),addToCache:function(){if(this.isReadyToProcess()){var R=this.files[0],L=this.files[1],p=this.files[2]?this.files[2].data:null;this.loader.textureManager.addUnityAtlas(R.key,R.data,L.data,p),this.complete=!0}}});T.register("unityAtlas",function(R,L,p,N,g){var C;if(Array.isArray(R))for(var P=0;P{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(23906),d=s(41299),c=s(74099),A=s(98356),h=s(95540),f=s(41212),S=new u({Extends:d,initialize:P(function(L,p,N,g){if(g===void 0&&(g=!1),f(p)){var C=p;p=h(C,"key"),N=h(C,"url",[]),g=h(C,"noAudio",!1)}var v=L.systems.game.device.video.getVideoURL(N);v||console.warn("VideoFile: No supported format for "+p);var M={type:"video",cache:L.cacheManager.video,extension:v.type,key:p,url:v.url,config:{noAudio:g}};d.call(this,L,M)},"VideoFile"),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=T.FILE_LOADED,this.loader.nextFile(this,!0)}});c.register("video",function(O,L,p){if(Array.isArray(O))for(var N=0;N{/** + */var u=s(83419),T=s(23906),A=s(41299),c=s(74099),d=s(98356),h=s(95540),f=s(41212),S=new u({Extends:A,initialize:v(function(L,p,N,g){if(g===void 0&&(g=!1),f(p)){var C=p;p=h(C,"key"),N=h(C,"url",[]),g=h(C,"noAudio",!1)}var P=L.systems.game.device.video.getVideoURL(N);P||console.warn("VideoFile: No supported format for "+p);var M={type:"video",cache:L.cacheManager.video,extension:P.type,key:p,url:P.url,config:{noAudio:g}};A.call(this,L,M)},"VideoFile"),onProcess:function(){this.data={url:this.src,noAudio:this.config.noAudio,crossOrigin:this.crossOrigin},this.onProcessComplete()},load:function(){this.src=d(this,this.loader.baseURL),this.state=T.FILE_LOADED,this.loader.nextFile(this,!0)}});c.register("video",function(R,L,p){if(Array.isArray(R))for(var N=0;N{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(23906),d=s(41299),c=s(74099),A=s(95540),h=s(41212),f=s(56836),S=new u({Extends:d,initialize:P(function(L,p,N,g){var C="xml";if(h(p)){var v=p;p=A(v,"key"),N=A(v,"url"),g=A(v,"xhrSettings"),C=A(v,"extension",C)}var M={type:"xml",cache:L.cacheManager.xml,extension:C,responseType:"text",key:p,url:N,xhrSettings:g};d.call(this,L,M)},"XMLFile"),onProcess:function(){this.state=T.FILE_PROCESSING,this.data=f(this.xhrLoader.responseText),this.data?this.onProcessComplete():this.onProcessError()}});c.register("xml",function(O,L,p){if(Array.isArray(O))for(var N=0;N{/** + */var u=s(83419),T=s(23906),A=s(41299),c=s(74099),d=s(95540),h=s(41212),f=s(56836),S=new u({Extends:A,initialize:v(function(L,p,N,g){var C="xml";if(h(p)){var P=p;p=d(P,"key"),N=d(P,"url"),g=d(P,"xhrSettings"),C=d(P,"extension",C)}var M={type:"xml",cache:L.cacheManager.xml,extension:C,responseType:"text",key:p,url:N,xhrSettings:g};A.call(this,L,M)},"XMLFile"),onProcess:function(){this.state=T.FILE_PROCESSING,this.data=f(this.xhrLoader.responseText),this.data?this.onProcessComplete():this.onProcessError()}});c.register("xml",function(R,L,p){if(Array.isArray(R))for(var N=0;N{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={AnimationJSONFile:s(14135),AsepriteFile:s(76272),AtlasJSONFile:s(38734),AtlasXMLFile:s(74599),AudioFile:s(21097),AudioSpriteFile:s(89524),BinaryFile:s(85722),BitmapFontFile:s(97025),CompressedTextureFile:s(69559),CSSFile:s(16024),GLSLFile:s(47931),HTML5AudioFile:s(89749),HTMLFile:s(88470),HTMLTextureFile:s(14643),ImageFile:s(19550),JSONFile:s(518),MultiAtlasFile:s(59327),MultiScriptFile:s(99297),OBJFile:s(41846),PackFile:s(58610),PluginFile:s(48988),SceneFile:s(88423),ScenePluginFile:s(56812),ScriptFile:s(34328),SpriteSheetFile:s(85035),SVGFile:s(67397),TextFile:s(78776),TilemapCSVFile:s(49477),TilemapImpactFile:s(40807),TilemapJSONFile:s(56775),UnityAtlasFile:s(25771),VideoFile:s(33720),XMLFile:s(57318)}},57777:(o,m,s)=>{/** + */o.exports={AnimationJSONFile:s(14135),AsepriteFile:s(76272),AtlasJSONFile:s(38734),AtlasXMLFile:s(74599),AudioFile:s(21097),AudioSpriteFile:s(89524),BinaryFile:s(85722),BitmapFontFile:s(97025),CompressedTextureFile:s(69559),CSSFile:s(16024),GLSLFile:s(47931),HTML5AudioFile:s(89749),HTMLFile:s(88470),HTMLTextureFile:s(14643),ImageFile:s(19550),JSONFile:s(518),MultiAtlasFile:s(59327),MultiScriptFile:s(99297),OBJFile:s(41846),PackFile:s(58610),PluginFile:s(48988),SceneFile:s(88423),ScenePluginFile:s(56812),ScriptFile:s(34328),SpriteSheetFile:s(85035),SVGFile:s(67397),TextFile:s(78776),TilemapCSVFile:s(49477),TilemapImpactFile:s(40807),TilemapJSONFile:s(56775),UnityAtlasFile:s(25771),VideoFile:s(33720),XMLFile:s(57318)}},57777:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(23906),T=s(79291),d={Events:s(54899),FileTypes:s(64589),File:s(41299),FileTypesManager:s(74099),GetURL:s(98356),LoaderPlugin:s(74261),MergeXHRSettings:s(3374),MultiFile:s(26430),XHRLoader:s(84376),XHRSettings:s(92638)};d=T(!1,d,u),o.exports=d},53307:o=>{/** + */var u=s(23906),T=s(79291),A={Events:s(54899),FileTypes:s(64589),File:s(41299),FileTypesManager:s(74099),GetURL:s(98356),LoaderPlugin:s(74261),MergeXHRSettings:s(3374),MultiFile:s(26430),XHRLoader:s(84376),XHRSettings:s(92638)};A=T(!1,A,u),o.exports=A},53307:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){for(var u=0,T=0;T{/** + */var O=v(function(s){for(var u=0,T=0;T{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(6411),T=P(function(d,c){return u(d)/u(c)/u(d-c)},"Bernstein");o.exports=T},30976:o=>{/** + */var u=s(6411),T=v(function(A,c){return u(A)/u(c)/u(A-c)},"Bernstein");o.exports=T},30976:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return Math.floor(Math.random()*(u-s+1)+s)},"Between");o.exports=m},87842:o=>{/** + */var O=v(function(s,u){return Math.floor(Math.random()*(u-s+1)+s)},"Between");o.exports=O},87842:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d,c){var A=(d-u)*.5,h=(c-T)*.5,f=s*s,S=s*f;return(2*T-2*d+A+h)*S+(-3*T+3*d-2*A-h)*f+A*s+T},"CatmullRom");o.exports=m},26302:o=>{/** + */var O=v(function(s,u,T,A,c){var d=(A-u)*.5,h=(c-T)*.5,f=s*s,S=s*f;return(2*T-2*A+d+h)*S+(-3*T+3*A-2*d-h)*f+d*s+T},"CatmullRom");o.exports=O},26302:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){u===void 0&&(u=0),T===void 0&&(T=10);var d=Math.pow(T,-u);return Math.ceil(s*d)/d},"CeilTo");o.exports=m},45319:o=>{/** + */var O=v(function(s,u,T){u===void 0&&(u=0),T===void 0&&(T=10);var A=Math.pow(T,-u);return Math.ceil(s*A)/A},"CeilTo");o.exports=O},45319:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){return Math.max(u,Math.min(T,s))},"Clamp");o.exports=m},39506:(o,m,s)=>{/** + */var O=v(function(s,u,T){return Math.max(u,Math.min(T,s))},"Clamp");o.exports=O},39506:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(36383),T=P(function(d){return d*u.DEG_TO_RAD},"DegToRad");o.exports=T},61241:o=>{/** + */var u=s(36383),T=v(function(A){return A*u.DEG_TO_RAD},"DegToRad");o.exports=T},61241:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return Math.abs(s-u)},"Difference");o.exports=m},38857:(o,m,s)=>{/** + */var O=v(function(s,u){return Math.abs(s-u)},"Difference");o.exports=O},38857:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(45319),T=s(83419),d=s(37867),c=s(29747),A=new d,h=new T({initialize:P(function f(S,O,L,p){S===void 0&&(S=0),O===void 0&&(O=0),L===void 0&&(L=0),p===void 0&&(p=f.DefaultOrder),this._x=S,this._y=O,this._z=L,this._order=p,this.onChangeCallback=c},"Euler"),x:{get:function(){return this._x},set:function(f){this._x=f,this.onChangeCallback(this)}},y:{get:function(){return this._y},set:function(f){this._y=f,this.onChangeCallback(this)}},z:{get:function(){return this._z},set:function(f){this._z=f,this.onChangeCallback(this)}},order:{get:function(){return this._order},set:function(f){this._order=f,this.onChangeCallback(this)}},set:function(f,S,O,L){return L===void 0&&(L=this._order),this._x=f,this._y=S,this._z=O,this._order=L,this.onChangeCallback(this),this},copy:function(f){return this.set(f.x,f.y,f.z,f.order)},setFromQuaternion:function(f,S,O){return S===void 0&&(S=this._order),O===void 0&&(O=!1),A.fromQuat(f),this.setFromRotationMatrix(A,S,O)},setFromRotationMatrix:function(f,S,O){S===void 0&&(S=this._order),O===void 0&&(O=!1);var L=f.val,p=L[0],N=L[4],g=L[8],C=L[1],v=L[5],M=L[9],D=L[2],G=L[6],H=L[10],B=0,_=0,w=0,b=.99999;switch(S){case"XYZ":{_=Math.asin(u(g,-1,1)),Math.abs(g){/** + */var u=s(45319),T=s(83419),A=s(37867),c=s(29747),d=new A,h=new T({initialize:v(function f(S,R,L,p){S===void 0&&(S=0),R===void 0&&(R=0),L===void 0&&(L=0),p===void 0&&(p=f.DefaultOrder),this._x=S,this._y=R,this._z=L,this._order=p,this.onChangeCallback=c},"Euler"),x:{get:function(){return this._x},set:function(f){this._x=f,this.onChangeCallback(this)}},y:{get:function(){return this._y},set:function(f){this._y=f,this.onChangeCallback(this)}},z:{get:function(){return this._z},set:function(f){this._z=f,this.onChangeCallback(this)}},order:{get:function(){return this._order},set:function(f){this._order=f,this.onChangeCallback(this)}},set:function(f,S,R,L){return L===void 0&&(L=this._order),this._x=f,this._y=S,this._z=R,this._order=L,this.onChangeCallback(this),this},copy:function(f){return this.set(f.x,f.y,f.z,f.order)},setFromQuaternion:function(f,S,R){return S===void 0&&(S=this._order),R===void 0&&(R=!1),d.fromQuat(f),this.setFromRotationMatrix(d,S,R)},setFromRotationMatrix:function(f,S,R){S===void 0&&(S=this._order),R===void 0&&(R=!1);var L=f.val,p=L[0],N=L[4],g=L[8],C=L[1],P=L[5],M=L[9],D=L[2],G=L[6],H=L[10],B=0,b=0,w=0,_=.99999;switch(S){case"XYZ":{b=Math.asin(u(g,-1,1)),Math.abs(g)<_?(B=Math.atan2(-M,H),w=Math.atan2(-N,p)):B=Math.atan2(G,P);break}case"YXZ":{B=Math.asin(-u(M,-1,1)),Math.abs(M)<_?(b=Math.atan2(g,H),w=Math.atan2(C,P)):b=Math.atan2(-D,p);break}case"ZXY":{B=Math.asin(u(G,-1,1)),Math.abs(G)<_?(b=Math.atan2(-D,H),w=Math.atan2(-N,P)):w=Math.atan2(C,p);break}case"ZYX":{b=Math.asin(-u(D,-1,1)),Math.abs(D)<_?(B=Math.atan2(G,H),w=Math.atan2(C,p)):w=Math.atan2(-N,P);break}case"YZX":{w=Math.asin(u(C,-1,1)),Math.abs(C)<_?(B=Math.atan2(-M,P),b=Math.atan2(-D,p)):b=Math.atan2(g,H);break}case"XZY":{w=Math.asin(-u(N,-1,1)),Math.abs(N)<_?(B=Math.atan2(G,P),b=Math.atan2(g,p)):B=Math.atan2(-M,H);break}}return this._x=B,this._y=b,this._z=w,this._order=S,R&&this.onChangeCallback(this),this}});h.RotationOrders=["XYZ","YXZ","ZXY","ZYX","YZX","XZY"],h.DefaultOrder="XYZ",o.exports=h},6411:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){if(s===0)return 1;for(var u=s;--s;)u*=s;return u},"Factorial");o.exports=m},99472:o=>{/** + */var O=v(function(s){if(s===0)return 1;for(var u=s;--s;)u*=s;return u},"Factorial");o.exports=O},99472:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return Math.random()*(u-s)+s},"FloatBetween");o.exports=m},77623:o=>{/** + */var O=v(function(s,u){return Math.random()*(u-s)+s},"FloatBetween");o.exports=O},77623:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){u===void 0&&(u=0),T===void 0&&(T=10);var d=Math.pow(T,-u);return Math.floor(s*d)/d},"FloorTo");o.exports=m},62945:(o,m,s)=>{/** + */var O=v(function(s,u,T){u===void 0&&(u=0),T===void 0&&(T=10);var A=Math.pow(T,-u);return Math.floor(s*A)/A},"FloorTo");o.exports=O},62945:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(45319),T=P(function(d,c,A){return d=u(d,0,1),(A-c)*d+c},"FromPercent");o.exports=T},38265:o=>{/** + */var u=s(45319),T=v(function(A,c,d){return A=u(A,0,1),(d-c)*A+c},"FromPercent");o.exports=T},38265:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return s/u/1e3},"GetSpeed");o.exports=m},78702:o=>{/** + */var O=v(function(s,u){return s/u/1e3},"GetSpeed");o.exports=O},78702:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s==parseFloat(s)?!(s%2):void 0},"IsEven");o.exports=m},94883:o=>{/** + */var O=v(function(s){return s==parseFloat(s)?!(s%2):void 0},"IsEven");o.exports=O},94883:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s===parseFloat(s)?!(s%2):void 0},"IsEvenStrict");o.exports=m},28915:o=>{/** + */var O=v(function(s){return s===parseFloat(s)?!(s%2):void 0},"IsEvenStrict");o.exports=O},28915:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){return(u-s)*T+s},"Linear");o.exports=m},94908:o=>{/** + */var O=v(function(s,u,T){return(u-s)*T+s},"Linear");o.exports=O},94908:o=>{/** * @author Greg McLean * @copyright 2021 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){return T===void 0&&(T=0),s.clone().lerp(u,T)},"LinearXY");o.exports=m},94434:(o,m,s)=>{/** + */var O=v(function(s,u,T){return T===void 0&&(T=0),s.clone().lerp(u,T)},"LinearXY");o.exports=O},94434:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=new u({initialize:P(function(c){this.val=new Float32Array(9),c?this.copy(c):this.identity()},"Matrix3"),clone:function(){return new T(this)},set:function(d){return this.copy(d)},copy:function(d){var c=this.val,A=d.val;return c[0]=A[0],c[1]=A[1],c[2]=A[2],c[3]=A[3],c[4]=A[4],c[5]=A[5],c[6]=A[6],c[7]=A[7],c[8]=A[8],this},fromMat4:function(d){var c=d.val,A=this.val;return A[0]=c[0],A[1]=c[1],A[2]=c[2],A[3]=c[4],A[4]=c[5],A[5]=c[6],A[6]=c[8],A[7]=c[9],A[8]=c[10],this},fromArray:function(d){var c=this.val;return c[0]=d[0],c[1]=d[1],c[2]=d[2],c[3]=d[3],c[4]=d[4],c[5]=d[5],c[6]=d[6],c[7]=d[7],c[8]=d[8],this},identity:function(){var d=this.val;return d[0]=1,d[1]=0,d[2]=0,d[3]=0,d[4]=1,d[5]=0,d[6]=0,d[7]=0,d[8]=1,this},transpose:function(){var d=this.val,c=d[1],A=d[2],h=d[5];return d[1]=d[3],d[2]=d[6],d[3]=c,d[5]=d[7],d[6]=A,d[7]=h,this},invert:function(){var d=this.val,c=d[0],A=d[1],h=d[2],f=d[3],S=d[4],O=d[5],L=d[6],p=d[7],N=d[8],g=N*S-O*p,C=-N*f+O*L,v=p*f-S*L,M=c*g+A*C+h*v;return M?(M=1/M,d[0]=g*M,d[1]=(-N*A+h*p)*M,d[2]=(O*A-h*S)*M,d[3]=C*M,d[4]=(N*c-h*L)*M,d[5]=(-O*c+h*f)*M,d[6]=v*M,d[7]=(-p*c+A*L)*M,d[8]=(S*c-A*f)*M,this):null},adjoint:function(){var d=this.val,c=d[0],A=d[1],h=d[2],f=d[3],S=d[4],O=d[5],L=d[6],p=d[7],N=d[8];return d[0]=S*N-O*p,d[1]=h*p-A*N,d[2]=A*O-h*S,d[3]=O*L-f*N,d[4]=c*N-h*L,d[5]=h*f-c*O,d[6]=f*p-S*L,d[7]=A*L-c*p,d[8]=c*S-A*f,this},determinant:function(){var d=this.val,c=d[0],A=d[1],h=d[2],f=d[3],S=d[4],O=d[5],L=d[6],p=d[7],N=d[8];return c*(N*S-O*p)+A*(-N*f+O*L)+h*(p*f-S*L)},multiply:function(d){var c=this.val,A=c[0],h=c[1],f=c[2],S=c[3],O=c[4],L=c[5],p=c[6],N=c[7],g=c[8],C=d.val,v=C[0],M=C[1],D=C[2],G=C[3],H=C[4],B=C[5],_=C[6],w=C[7],b=C[8];return c[0]=v*A+M*S+D*p,c[1]=v*h+M*O+D*N,c[2]=v*f+M*L+D*g,c[3]=G*A+H*S+B*p,c[4]=G*h+H*O+B*N,c[5]=G*f+H*L+B*g,c[6]=_*A+w*S+b*p,c[7]=_*h+w*O+b*N,c[8]=_*f+w*L+b*g,this},translate:function(d){var c=this.val,A=d.x,h=d.y;return c[6]=A*c[0]+h*c[3]+c[6],c[7]=A*c[1]+h*c[4]+c[7],c[8]=A*c[2]+h*c[5]+c[8],this},rotate:function(d){var c=this.val,A=c[0],h=c[1],f=c[2],S=c[3],O=c[4],L=c[5],p=Math.sin(d),N=Math.cos(d);return c[0]=N*A+p*S,c[1]=N*h+p*O,c[2]=N*f+p*L,c[3]=N*S-p*A,c[4]=N*O-p*h,c[5]=N*L-p*f,this},scale:function(d){var c=this.val,A=d.x,h=d.y;return c[0]=A*c[0],c[1]=A*c[1],c[2]=A*c[2],c[3]=h*c[3],c[4]=h*c[4],c[5]=h*c[5],this},fromQuat:function(d){var c=d.x,A=d.y,h=d.z,f=d.w,S=c+c,O=A+A,L=h+h,p=c*S,N=c*O,g=c*L,C=A*O,v=A*L,M=h*L,D=f*S,G=f*O,H=f*L,B=this.val;return B[0]=1-(C+M),B[3]=N+H,B[6]=g-G,B[1]=N-H,B[4]=1-(p+M),B[7]=v+D,B[2]=g+G,B[5]=v-D,B[8]=1-(p+C),this},normalFromMat4:function(d){var c=d.val,A=this.val,h=c[0],f=c[1],S=c[2],O=c[3],L=c[4],p=c[5],N=c[6],g=c[7],C=c[8],v=c[9],M=c[10],D=c[11],G=c[12],H=c[13],B=c[14],_=c[15],w=h*p-f*L,b=h*N-S*L,F=h*g-O*L,k=f*N-S*p,V=f*g-O*p,Z=S*g-O*N,$=C*H-v*G,Q=C*B-M*G,te=C*_-D*G,z=v*B-M*H,j=v*_-D*H,x=M*_-D*B,X=w*x-b*j+F*z+k*te-V*Q+Z*$;return X?(X=1/X,A[0]=(p*x-N*j+g*z)*X,A[1]=(N*te-L*x-g*Q)*X,A[2]=(L*j-p*te+g*$)*X,A[3]=(S*j-f*x-O*z)*X,A[4]=(h*x-S*te+O*Q)*X,A[5]=(f*te-h*j-O*$)*X,A[6]=(H*Z-B*V+_*k)*X,A[7]=(B*F-G*Z-_*b)*X,A[8]=(G*V-H*F+_*w)*X,this):null}});o.exports=T},37867:(o,m,s)=>{/** + */var u=s(83419),T=new u({initialize:v(function(c){this.val=new Float32Array(9),c?this.copy(c):this.identity()},"Matrix3"),clone:function(){return new T(this)},set:function(A){return this.copy(A)},copy:function(A){var c=this.val,d=A.val;return c[0]=d[0],c[1]=d[1],c[2]=d[2],c[3]=d[3],c[4]=d[4],c[5]=d[5],c[6]=d[6],c[7]=d[7],c[8]=d[8],this},fromMat4:function(A){var c=A.val,d=this.val;return d[0]=c[0],d[1]=c[1],d[2]=c[2],d[3]=c[4],d[4]=c[5],d[5]=c[6],d[6]=c[8],d[7]=c[9],d[8]=c[10],this},fromArray:function(A){var c=this.val;return c[0]=A[0],c[1]=A[1],c[2]=A[2],c[3]=A[3],c[4]=A[4],c[5]=A[5],c[6]=A[6],c[7]=A[7],c[8]=A[8],this},identity:function(){var A=this.val;return A[0]=1,A[1]=0,A[2]=0,A[3]=0,A[4]=1,A[5]=0,A[6]=0,A[7]=0,A[8]=1,this},transpose:function(){var A=this.val,c=A[1],d=A[2],h=A[5];return A[1]=A[3],A[2]=A[6],A[3]=c,A[5]=A[7],A[6]=d,A[7]=h,this},invert:function(){var A=this.val,c=A[0],d=A[1],h=A[2],f=A[3],S=A[4],R=A[5],L=A[6],p=A[7],N=A[8],g=N*S-R*p,C=-N*f+R*L,P=p*f-S*L,M=c*g+d*C+h*P;return M?(M=1/M,A[0]=g*M,A[1]=(-N*d+h*p)*M,A[2]=(R*d-h*S)*M,A[3]=C*M,A[4]=(N*c-h*L)*M,A[5]=(-R*c+h*f)*M,A[6]=P*M,A[7]=(-p*c+d*L)*M,A[8]=(S*c-d*f)*M,this):null},adjoint:function(){var A=this.val,c=A[0],d=A[1],h=A[2],f=A[3],S=A[4],R=A[5],L=A[6],p=A[7],N=A[8];return A[0]=S*N-R*p,A[1]=h*p-d*N,A[2]=d*R-h*S,A[3]=R*L-f*N,A[4]=c*N-h*L,A[5]=h*f-c*R,A[6]=f*p-S*L,A[7]=d*L-c*p,A[8]=c*S-d*f,this},determinant:function(){var A=this.val,c=A[0],d=A[1],h=A[2],f=A[3],S=A[4],R=A[5],L=A[6],p=A[7],N=A[8];return c*(N*S-R*p)+d*(-N*f+R*L)+h*(p*f-S*L)},multiply:function(A){var c=this.val,d=c[0],h=c[1],f=c[2],S=c[3],R=c[4],L=c[5],p=c[6],N=c[7],g=c[8],C=A.val,P=C[0],M=C[1],D=C[2],G=C[3],H=C[4],B=C[5],b=C[6],w=C[7],_=C[8];return c[0]=P*d+M*S+D*p,c[1]=P*h+M*R+D*N,c[2]=P*f+M*L+D*g,c[3]=G*d+H*S+B*p,c[4]=G*h+H*R+B*N,c[5]=G*f+H*L+B*g,c[6]=b*d+w*S+_*p,c[7]=b*h+w*R+_*N,c[8]=b*f+w*L+_*g,this},translate:function(A){var c=this.val,d=A.x,h=A.y;return c[6]=d*c[0]+h*c[3]+c[6],c[7]=d*c[1]+h*c[4]+c[7],c[8]=d*c[2]+h*c[5]+c[8],this},rotate:function(A){var c=this.val,d=c[0],h=c[1],f=c[2],S=c[3],R=c[4],L=c[5],p=Math.sin(A),N=Math.cos(A);return c[0]=N*d+p*S,c[1]=N*h+p*R,c[2]=N*f+p*L,c[3]=N*S-p*d,c[4]=N*R-p*h,c[5]=N*L-p*f,this},scale:function(A){var c=this.val,d=A.x,h=A.y;return c[0]=d*c[0],c[1]=d*c[1],c[2]=d*c[2],c[3]=h*c[3],c[4]=h*c[4],c[5]=h*c[5],this},fromQuat:function(A){var c=A.x,d=A.y,h=A.z,f=A.w,S=c+c,R=d+d,L=h+h,p=c*S,N=c*R,g=c*L,C=d*R,P=d*L,M=h*L,D=f*S,G=f*R,H=f*L,B=this.val;return B[0]=1-(C+M),B[3]=N+H,B[6]=g-G,B[1]=N-H,B[4]=1-(p+M),B[7]=P+D,B[2]=g+G,B[5]=P-D,B[8]=1-(p+C),this},normalFromMat4:function(A){var c=A.val,d=this.val,h=c[0],f=c[1],S=c[2],R=c[3],L=c[4],p=c[5],N=c[6],g=c[7],C=c[8],P=c[9],M=c[10],D=c[11],G=c[12],H=c[13],B=c[14],b=c[15],w=h*p-f*L,_=h*N-S*L,F=h*g-R*L,x=f*N-S*p,V=f*g-R*p,Z=S*g-R*N,$=C*H-P*G,Q=C*B-M*G,te=C*b-D*G,z=P*B-M*H,j=P*b-D*H,k=M*b-D*B,X=w*k-_*j+F*z+x*te-V*Q+Z*$;return X?(X=1/X,d[0]=(p*k-N*j+g*z)*X,d[1]=(N*te-L*k-g*Q)*X,d[2]=(L*j-p*te+g*$)*X,d[3]=(S*j-f*k-R*z)*X,d[4]=(h*k-S*te+R*Q)*X,d[5]=(f*te-h*j-R*$)*X,d[6]=(H*Z-B*V+b*x)*X,d[7]=(B*F-G*Z-b*_)*X,d[8]=(G*V-H*F+b*w)*X,this):null}});o.exports=T},37867:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(25836),d=1e-6,c=new u({initialize:P(function(p){this.val=new Float32Array(16),p?this.copy(p):this.identity()},"Matrix4"),clone:function(){return new c(this)},set:function(L){return this.copy(L)},setValues:function(L,p,N,g,C,v,M,D,G,H,B,_,w,b,F,k){var V=this.val;return V[0]=L,V[1]=p,V[2]=N,V[3]=g,V[4]=C,V[5]=v,V[6]=M,V[7]=D,V[8]=G,V[9]=H,V[10]=B,V[11]=_,V[12]=w,V[13]=b,V[14]=F,V[15]=k,this},copy:function(L){var p=L.val;return this.setValues(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15])},fromArray:function(L){return this.setValues(L[0],L[1],L[2],L[3],L[4],L[5],L[6],L[7],L[8],L[9],L[10],L[11],L[12],L[13],L[14],L[15])},zero:function(){return this.setValues(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)},transform:function(L,p,N){var g=A.fromQuat(N),C=g.val,v=p.x,M=p.y,D=p.z;return this.setValues(C[0]*v,C[1]*v,C[2]*v,0,C[4]*M,C[5]*M,C[6]*M,0,C[8]*D,C[9]*D,C[10]*D,0,L.x,L.y,L.z,1)},xyz:function(L,p,N){this.identity();var g=this.val;return g[12]=L,g[13]=p,g[14]=N,this},scaling:function(L,p,N){this.zero();var g=this.val;return g[0]=L,g[5]=p,g[10]=N,g[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 L=this.val,p=L[1],N=L[2],g=L[3],C=L[6],v=L[7],M=L[11];return L[1]=L[4],L[2]=L[8],L[3]=L[12],L[4]=p,L[6]=L[9],L[7]=L[13],L[8]=N,L[9]=C,L[11]=L[14],L[12]=g,L[13]=v,L[14]=M,this},getInverse:function(L){return this.copy(L),this.invert()},invert:function(){var L=this.val,p=L[0],N=L[1],g=L[2],C=L[3],v=L[4],M=L[5],D=L[6],G=L[7],H=L[8],B=L[9],_=L[10],w=L[11],b=L[12],F=L[13],k=L[14],V=L[15],Z=p*M-N*v,$=p*D-g*v,Q=p*G-C*v,te=N*D-g*M,z=N*G-C*M,j=g*G-C*D,x=H*F-B*b,X=H*k-_*b,q=H*V-w*b,J=B*k-_*F,ae=B*V-w*F,re=_*V-w*k,oe=Z*re-$*ae+Q*J+te*q-z*X+j*x;return oe?(oe=1/oe,this.setValues((M*re-D*ae+G*J)*oe,(g*ae-N*re-C*J)*oe,(F*j-k*z+V*te)*oe,(_*z-B*j-w*te)*oe,(D*q-v*re-G*X)*oe,(p*re-g*q+C*X)*oe,(k*Q-b*j-V*$)*oe,(H*j-_*Q+w*$)*oe,(v*ae-M*q+G*x)*oe,(N*q-p*ae-C*x)*oe,(b*z-F*Q+V*Z)*oe,(B*Q-H*z-w*Z)*oe,(M*X-v*J-D*x)*oe,(p*J-N*X+g*x)*oe,(F*$-b*te-k*Z)*oe,(H*te-B*$+_*Z)*oe)):this},adjoint:function(){var L=this.val,p=L[0],N=L[1],g=L[2],C=L[3],v=L[4],M=L[5],D=L[6],G=L[7],H=L[8],B=L[9],_=L[10],w=L[11],b=L[12],F=L[13],k=L[14],V=L[15];return this.setValues(M*(_*V-w*k)-B*(D*V-G*k)+F*(D*w-G*_),-(N*(_*V-w*k)-B*(g*V-C*k)+F*(g*w-C*_)),N*(D*V-G*k)-M*(g*V-C*k)+F*(g*G-C*D),-(N*(D*w-G*_)-M*(g*w-C*_)+B*(g*G-C*D)),-(v*(_*V-w*k)-H*(D*V-G*k)+b*(D*w-G*_)),p*(_*V-w*k)-H*(g*V-C*k)+b*(g*w-C*_),-(p*(D*V-G*k)-v*(g*V-C*k)+b*(g*G-C*D)),p*(D*w-G*_)-v*(g*w-C*_)+H*(g*G-C*D),v*(B*V-w*F)-H*(M*V-G*F)+b*(M*w-G*B),-(p*(B*V-w*F)-H*(N*V-C*F)+b*(N*w-C*B)),p*(M*V-G*F)-v*(N*V-C*F)+b*(N*G-C*M),-(p*(M*w-G*B)-v*(N*w-C*B)+H*(N*G-C*M)),-(v*(B*k-_*F)-H*(M*k-D*F)+b*(M*_-D*B)),p*(B*k-_*F)-H*(N*k-g*F)+b*(N*_-g*B),-(p*(M*k-D*F)-v*(N*k-g*F)+b*(N*D-g*M)),p*(M*_-D*B)-v*(N*_-g*B)+H*(N*D-g*M))},determinant:function(){var L=this.val,p=L[0],N=L[1],g=L[2],C=L[3],v=L[4],M=L[5],D=L[6],G=L[7],H=L[8],B=L[9],_=L[10],w=L[11],b=L[12],F=L[13],k=L[14],V=L[15],Z=p*M-N*v,$=p*D-g*v,Q=p*G-C*v,te=N*D-g*M,z=N*G-C*M,j=g*G-C*D,x=H*F-B*b,X=H*k-_*b,q=H*V-w*b,J=B*k-_*F,ae=B*V-w*F,re=_*V-w*k;return Z*re-$*ae+Q*J+te*q-z*X+j*x},multiply:function(L){var p=this.val,N=p[0],g=p[1],C=p[2],v=p[3],M=p[4],D=p[5],G=p[6],H=p[7],B=p[8],_=p[9],w=p[10],b=p[11],F=p[12],k=p[13],V=p[14],Z=p[15],$=L.val,Q=$[0],te=$[1],z=$[2],j=$[3];return p[0]=Q*N+te*M+z*B+j*F,p[1]=Q*g+te*D+z*_+j*k,p[2]=Q*C+te*G+z*w+j*V,p[3]=Q*v+te*H+z*b+j*Z,Q=$[4],te=$[5],z=$[6],j=$[7],p[4]=Q*N+te*M+z*B+j*F,p[5]=Q*g+te*D+z*_+j*k,p[6]=Q*C+te*G+z*w+j*V,p[7]=Q*v+te*H+z*b+j*Z,Q=$[8],te=$[9],z=$[10],j=$[11],p[8]=Q*N+te*M+z*B+j*F,p[9]=Q*g+te*D+z*_+j*k,p[10]=Q*C+te*G+z*w+j*V,p[11]=Q*v+te*H+z*b+j*Z,Q=$[12],te=$[13],z=$[14],j=$[15],p[12]=Q*N+te*M+z*B+j*F,p[13]=Q*g+te*D+z*_+j*k,p[14]=Q*C+te*G+z*w+j*V,p[15]=Q*v+te*H+z*b+j*Z,this},multiplyLocal:function(L){var p=this.val,N=L.val;return this.setValues(p[0]*N[0]+p[1]*N[4]+p[2]*N[8]+p[3]*N[12],p[0]*N[1]+p[1]*N[5]+p[2]*N[9]+p[3]*N[13],p[0]*N[2]+p[1]*N[6]+p[2]*N[10]+p[3]*N[14],p[0]*N[3]+p[1]*N[7]+p[2]*N[11]+p[3]*N[15],p[4]*N[0]+p[5]*N[4]+p[6]*N[8]+p[7]*N[12],p[4]*N[1]+p[5]*N[5]+p[6]*N[9]+p[7]*N[13],p[4]*N[2]+p[5]*N[6]+p[6]*N[10]+p[7]*N[14],p[4]*N[3]+p[5]*N[7]+p[6]*N[11]+p[7]*N[15],p[8]*N[0]+p[9]*N[4]+p[10]*N[8]+p[11]*N[12],p[8]*N[1]+p[9]*N[5]+p[10]*N[9]+p[11]*N[13],p[8]*N[2]+p[9]*N[6]+p[10]*N[10]+p[11]*N[14],p[8]*N[3]+p[9]*N[7]+p[10]*N[11]+p[11]*N[15],p[12]*N[0]+p[13]*N[4]+p[14]*N[8]+p[15]*N[12],p[12]*N[1]+p[13]*N[5]+p[14]*N[9]+p[15]*N[13],p[12]*N[2]+p[13]*N[6]+p[14]*N[10]+p[15]*N[14],p[12]*N[3]+p[13]*N[7]+p[14]*N[11]+p[15]*N[15])},premultiply:function(L){return this.multiplyMatrices(L,this)},multiplyMatrices:function(L,p){var N=L.val,g=p.val,C=N[0],v=N[4],M=N[8],D=N[12],G=N[1],H=N[5],B=N[9],_=N[13],w=N[2],b=N[6],F=N[10],k=N[14],V=N[3],Z=N[7],$=N[11],Q=N[15],te=g[0],z=g[4],j=g[8],x=g[12],X=g[1],q=g[5],J=g[9],ae=g[13],re=g[2],oe=g[6],Ee=g[10],Re=g[14],Le=g[3],ve=g[7],ye=g[11],De=g[15];return this.setValues(C*te+v*X+M*re+D*Le,G*te+H*X+B*re+_*Le,w*te+b*X+F*re+k*Le,V*te+Z*X+$*re+Q*Le,C*z+v*q+M*oe+D*ve,G*z+H*q+B*oe+_*ve,w*z+b*q+F*oe+k*ve,V*z+Z*q+$*oe+Q*ve,C*j+v*J+M*Ee+D*ye,G*j+H*J+B*Ee+_*ye,w*j+b*J+F*Ee+k*ye,V*j+Z*J+$*Ee+Q*ye,C*x+v*ae+M*Re+D*De,G*x+H*ae+B*Re+_*De,w*x+b*ae+F*Re+k*De,V*x+Z*ae+$*Re+Q*De)},translate:function(L){return this.translateXYZ(L.x,L.y,L.z)},translateXYZ:function(L,p,N){var g=this.val;return g[12]=g[0]*L+g[4]*p+g[8]*N+g[12],g[13]=g[1]*L+g[5]*p+g[9]*N+g[13],g[14]=g[2]*L+g[6]*p+g[10]*N+g[14],g[15]=g[3]*L+g[7]*p+g[11]*N+g[15],this},scale:function(L){return this.scaleXYZ(L.x,L.y,L.z)},scaleXYZ:function(L,p,N){var g=this.val;return g[0]=g[0]*L,g[1]=g[1]*L,g[2]=g[2]*L,g[3]=g[3]*L,g[4]=g[4]*p,g[5]=g[5]*p,g[6]=g[6]*p,g[7]=g[7]*p,g[8]=g[8]*N,g[9]=g[9]*N,g[10]=g[10]*N,g[11]=g[11]*N,this},makeRotationAxis:function(L,p){var N=Math.cos(p),g=Math.sin(p),C=1-N,v=L.x,M=L.y,D=L.z,G=C*v,H=C*M;return this.setValues(G*v+N,G*M-g*D,G*D+g*M,0,G*M+g*D,H*M+N,H*D-g*v,0,G*D-g*M,H*D+g*v,C*D*D+N,0,0,0,0,1)},rotate:function(L,p){var N=this.val,g=p.x,C=p.y,v=p.z,M=Math.sqrt(g*g+C*C+v*v);if(Math.abs(M){/** + */var u=s(83419),T=s(25836),A=1e-6,c=new u({initialize:v(function(p){this.val=new Float32Array(16),p?this.copy(p):this.identity()},"Matrix4"),clone:function(){return new c(this)},set:function(L){return this.copy(L)},setValues:function(L,p,N,g,C,P,M,D,G,H,B,b,w,_,F,x){var V=this.val;return V[0]=L,V[1]=p,V[2]=N,V[3]=g,V[4]=C,V[5]=P,V[6]=M,V[7]=D,V[8]=G,V[9]=H,V[10]=B,V[11]=b,V[12]=w,V[13]=_,V[14]=F,V[15]=x,this},copy:function(L){var p=L.val;return this.setValues(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15])},fromArray:function(L){return this.setValues(L[0],L[1],L[2],L[3],L[4],L[5],L[6],L[7],L[8],L[9],L[10],L[11],L[12],L[13],L[14],L[15])},zero:function(){return this.setValues(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)},transform:function(L,p,N){var g=d.fromQuat(N),C=g.val,P=p.x,M=p.y,D=p.z;return this.setValues(C[0]*P,C[1]*P,C[2]*P,0,C[4]*M,C[5]*M,C[6]*M,0,C[8]*D,C[9]*D,C[10]*D,0,L.x,L.y,L.z,1)},xyz:function(L,p,N){this.identity();var g=this.val;return g[12]=L,g[13]=p,g[14]=N,this},scaling:function(L,p,N){this.zero();var g=this.val;return g[0]=L,g[5]=p,g[10]=N,g[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 L=this.val,p=L[1],N=L[2],g=L[3],C=L[6],P=L[7],M=L[11];return L[1]=L[4],L[2]=L[8],L[3]=L[12],L[4]=p,L[6]=L[9],L[7]=L[13],L[8]=N,L[9]=C,L[11]=L[14],L[12]=g,L[13]=P,L[14]=M,this},getInverse:function(L){return this.copy(L),this.invert()},invert:function(){var L=this.val,p=L[0],N=L[1],g=L[2],C=L[3],P=L[4],M=L[5],D=L[6],G=L[7],H=L[8],B=L[9],b=L[10],w=L[11],_=L[12],F=L[13],x=L[14],V=L[15],Z=p*M-N*P,$=p*D-g*P,Q=p*G-C*P,te=N*D-g*M,z=N*G-C*M,j=g*G-C*D,k=H*F-B*_,X=H*x-b*_,q=H*V-w*_,J=B*x-b*F,ne=B*V-w*F,re=b*V-w*x,oe=Z*re-$*ne+Q*J+te*q-z*X+j*k;return oe?(oe=1/oe,this.setValues((M*re-D*ne+G*J)*oe,(g*ne-N*re-C*J)*oe,(F*j-x*z+V*te)*oe,(b*z-B*j-w*te)*oe,(D*q-P*re-G*X)*oe,(p*re-g*q+C*X)*oe,(x*Q-_*j-V*$)*oe,(H*j-b*Q+w*$)*oe,(P*ne-M*q+G*k)*oe,(N*q-p*ne-C*k)*oe,(_*z-F*Q+V*Z)*oe,(B*Q-H*z-w*Z)*oe,(M*X-P*J-D*k)*oe,(p*J-N*X+g*k)*oe,(F*$-_*te-x*Z)*oe,(H*te-B*$+b*Z)*oe)):this},adjoint:function(){var L=this.val,p=L[0],N=L[1],g=L[2],C=L[3],P=L[4],M=L[5],D=L[6],G=L[7],H=L[8],B=L[9],b=L[10],w=L[11],_=L[12],F=L[13],x=L[14],V=L[15];return this.setValues(M*(b*V-w*x)-B*(D*V-G*x)+F*(D*w-G*b),-(N*(b*V-w*x)-B*(g*V-C*x)+F*(g*w-C*b)),N*(D*V-G*x)-M*(g*V-C*x)+F*(g*G-C*D),-(N*(D*w-G*b)-M*(g*w-C*b)+B*(g*G-C*D)),-(P*(b*V-w*x)-H*(D*V-G*x)+_*(D*w-G*b)),p*(b*V-w*x)-H*(g*V-C*x)+_*(g*w-C*b),-(p*(D*V-G*x)-P*(g*V-C*x)+_*(g*G-C*D)),p*(D*w-G*b)-P*(g*w-C*b)+H*(g*G-C*D),P*(B*V-w*F)-H*(M*V-G*F)+_*(M*w-G*B),-(p*(B*V-w*F)-H*(N*V-C*F)+_*(N*w-C*B)),p*(M*V-G*F)-P*(N*V-C*F)+_*(N*G-C*M),-(p*(M*w-G*B)-P*(N*w-C*B)+H*(N*G-C*M)),-(P*(B*x-b*F)-H*(M*x-D*F)+_*(M*b-D*B)),p*(B*x-b*F)-H*(N*x-g*F)+_*(N*b-g*B),-(p*(M*x-D*F)-P*(N*x-g*F)+_*(N*D-g*M)),p*(M*b-D*B)-P*(N*b-g*B)+H*(N*D-g*M))},determinant:function(){var L=this.val,p=L[0],N=L[1],g=L[2],C=L[3],P=L[4],M=L[5],D=L[6],G=L[7],H=L[8],B=L[9],b=L[10],w=L[11],_=L[12],F=L[13],x=L[14],V=L[15],Z=p*M-N*P,$=p*D-g*P,Q=p*G-C*P,te=N*D-g*M,z=N*G-C*M,j=g*G-C*D,k=H*F-B*_,X=H*x-b*_,q=H*V-w*_,J=B*x-b*F,ne=B*V-w*F,re=b*V-w*x;return Z*re-$*ne+Q*J+te*q-z*X+j*k},multiply:function(L){var p=this.val,N=p[0],g=p[1],C=p[2],P=p[3],M=p[4],D=p[5],G=p[6],H=p[7],B=p[8],b=p[9],w=p[10],_=p[11],F=p[12],x=p[13],V=p[14],Z=p[15],$=L.val,Q=$[0],te=$[1],z=$[2],j=$[3];return p[0]=Q*N+te*M+z*B+j*F,p[1]=Q*g+te*D+z*b+j*x,p[2]=Q*C+te*G+z*w+j*V,p[3]=Q*P+te*H+z*_+j*Z,Q=$[4],te=$[5],z=$[6],j=$[7],p[4]=Q*N+te*M+z*B+j*F,p[5]=Q*g+te*D+z*b+j*x,p[6]=Q*C+te*G+z*w+j*V,p[7]=Q*P+te*H+z*_+j*Z,Q=$[8],te=$[9],z=$[10],j=$[11],p[8]=Q*N+te*M+z*B+j*F,p[9]=Q*g+te*D+z*b+j*x,p[10]=Q*C+te*G+z*w+j*V,p[11]=Q*P+te*H+z*_+j*Z,Q=$[12],te=$[13],z=$[14],j=$[15],p[12]=Q*N+te*M+z*B+j*F,p[13]=Q*g+te*D+z*b+j*x,p[14]=Q*C+te*G+z*w+j*V,p[15]=Q*P+te*H+z*_+j*Z,this},multiplyLocal:function(L){var p=this.val,N=L.val;return this.setValues(p[0]*N[0]+p[1]*N[4]+p[2]*N[8]+p[3]*N[12],p[0]*N[1]+p[1]*N[5]+p[2]*N[9]+p[3]*N[13],p[0]*N[2]+p[1]*N[6]+p[2]*N[10]+p[3]*N[14],p[0]*N[3]+p[1]*N[7]+p[2]*N[11]+p[3]*N[15],p[4]*N[0]+p[5]*N[4]+p[6]*N[8]+p[7]*N[12],p[4]*N[1]+p[5]*N[5]+p[6]*N[9]+p[7]*N[13],p[4]*N[2]+p[5]*N[6]+p[6]*N[10]+p[7]*N[14],p[4]*N[3]+p[5]*N[7]+p[6]*N[11]+p[7]*N[15],p[8]*N[0]+p[9]*N[4]+p[10]*N[8]+p[11]*N[12],p[8]*N[1]+p[9]*N[5]+p[10]*N[9]+p[11]*N[13],p[8]*N[2]+p[9]*N[6]+p[10]*N[10]+p[11]*N[14],p[8]*N[3]+p[9]*N[7]+p[10]*N[11]+p[11]*N[15],p[12]*N[0]+p[13]*N[4]+p[14]*N[8]+p[15]*N[12],p[12]*N[1]+p[13]*N[5]+p[14]*N[9]+p[15]*N[13],p[12]*N[2]+p[13]*N[6]+p[14]*N[10]+p[15]*N[14],p[12]*N[3]+p[13]*N[7]+p[14]*N[11]+p[15]*N[15])},premultiply:function(L){return this.multiplyMatrices(L,this)},multiplyMatrices:function(L,p){var N=L.val,g=p.val,C=N[0],P=N[4],M=N[8],D=N[12],G=N[1],H=N[5],B=N[9],b=N[13],w=N[2],_=N[6],F=N[10],x=N[14],V=N[3],Z=N[7],$=N[11],Q=N[15],te=g[0],z=g[4],j=g[8],k=g[12],X=g[1],q=g[5],J=g[9],ne=g[13],re=g[2],oe=g[6],Ee=g[10],me=g[14],Le=g[3],Pe=g[7],ye=g[11],De=g[15];return this.setValues(C*te+P*X+M*re+D*Le,G*te+H*X+B*re+b*Le,w*te+_*X+F*re+x*Le,V*te+Z*X+$*re+Q*Le,C*z+P*q+M*oe+D*Pe,G*z+H*q+B*oe+b*Pe,w*z+_*q+F*oe+x*Pe,V*z+Z*q+$*oe+Q*Pe,C*j+P*J+M*Ee+D*ye,G*j+H*J+B*Ee+b*ye,w*j+_*J+F*Ee+x*ye,V*j+Z*J+$*Ee+Q*ye,C*k+P*ne+M*me+D*De,G*k+H*ne+B*me+b*De,w*k+_*ne+F*me+x*De,V*k+Z*ne+$*me+Q*De)},translate:function(L){return this.translateXYZ(L.x,L.y,L.z)},translateXYZ:function(L,p,N){var g=this.val;return g[12]=g[0]*L+g[4]*p+g[8]*N+g[12],g[13]=g[1]*L+g[5]*p+g[9]*N+g[13],g[14]=g[2]*L+g[6]*p+g[10]*N+g[14],g[15]=g[3]*L+g[7]*p+g[11]*N+g[15],this},scale:function(L){return this.scaleXYZ(L.x,L.y,L.z)},scaleXYZ:function(L,p,N){var g=this.val;return g[0]=g[0]*L,g[1]=g[1]*L,g[2]=g[2]*L,g[3]=g[3]*L,g[4]=g[4]*p,g[5]=g[5]*p,g[6]=g[6]*p,g[7]=g[7]*p,g[8]=g[8]*N,g[9]=g[9]*N,g[10]=g[10]*N,g[11]=g[11]*N,this},makeRotationAxis:function(L,p){var N=Math.cos(p),g=Math.sin(p),C=1-N,P=L.x,M=L.y,D=L.z,G=C*P,H=C*M;return this.setValues(G*P+N,G*M-g*D,G*D+g*M,0,G*M+g*D,H*M+N,H*D-g*P,0,G*D-g*M,H*D+g*P,C*D*D+N,0,0,0,0,1)},rotate:function(L,p){var N=this.val,g=p.x,C=p.y,P=p.z,M=Math.sqrt(g*g+C*C+P*P);if(Math.abs(M){/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){return Math.min(s+u,T)},"MaxAdd");o.exports=m},50040:o=>{/** + */var O=v(function(s,u,T){return Math.min(s+u,T)},"MaxAdd");o.exports=O},50040:o=>{/** * @author Vladislav Forsh * @copyright 2021 RoboWhale * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){var u=s.length;if(u===0)return 0;s.sort(function(d,c){return d-c});var T=Math.floor(u/2);return u%2===0?(s[T]+s[T-1])/2:s[T]},"Median");o.exports=m},37204:o=>{/** + */var O=v(function(s){var u=s.length;if(u===0)return 0;s.sort(function(A,c){return A-c});var T=Math.floor(u/2);return u%2===0?(s[T]+s[T-1])/2:s[T]},"Median");o.exports=O},37204:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){return Math.max(s-u,T)},"MinSub");o.exports=m},65201:o=>{/** + */var O=v(function(s,u,T){return Math.max(s-u,T)},"MinSub");o.exports=O},65201:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){T===void 0&&(T=u+1);var c=(s-u)/(T-u);return c>1?d!==void 0?(c=(d-s)/(d-T),c<0&&(c=0)):c=1:c<0&&(c=0),c},"Percent");o.exports=m},15746:(o,m,s)=>{/** + */var O=v(function(s,u,T,A){T===void 0&&(T=u+1);var c=(s-u)/(T-u);return c>1?A!==void 0?(c=(A-s)/(A-T),c<0&&(c=0)):c=1:c<0&&(c=0),c},"Percent");o.exports=O},15746:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(94434),d=s(29747),c=s(25836),A=1e-6,h=new Int8Array([1,2,0]),f=new Float32Array([0,0,0]),S=new c(1,0,0),O=new c(0,1,0),L=new c,p=new T,N=new u({initialize:P(function(C,v,M,D){this.onChangeCallback=d,this.set(C,v,M,D)},"Quaternion"),x:{get:function(){return this._x},set:function(g){this._x=g,this.onChangeCallback(this)}},y:{get:function(){return this._y},set:function(g){this._y=g,this.onChangeCallback(this)}},z:{get:function(){return this._z},set:function(g){this._z=g,this.onChangeCallback(this)}},w:{get:function(){return this._w},set:function(g){this._w=g,this.onChangeCallback(this)}},copy:function(g){return this.set(g)},set:function(g,C,v,M,D){return D===void 0&&(D=!0),typeof g=="object"?(this._x=g.x||0,this._y=g.y||0,this._z=g.z||0,this._w=g.w||0):(this._x=g||0,this._y=C||0,this._z=v||0,this._w=M||0),D&&this.onChangeCallback(this),this},add:function(g){return this._x+=g.x,this._y+=g.y,this._z+=g.z,this._w+=g.w,this.onChangeCallback(this),this},subtract:function(g){return this._x-=g.x,this._y-=g.y,this._z-=g.z,this._w-=g.w,this.onChangeCallback(this),this},scale:function(g){return this._x*=g,this._y*=g,this._z*=g,this._w*=g,this.onChangeCallback(this),this},length:function(){var g=this.x,C=this.y,v=this.z,M=this.w;return Math.sqrt(g*g+C*C+v*v+M*M)},lengthSq:function(){var g=this.x,C=this.y,v=this.z,M=this.w;return g*g+C*C+v*v+M*M},normalize:function(){var g=this.x,C=this.y,v=this.z,M=this.w,D=g*g+C*C+v*v+M*M;return D>0&&(D=1/Math.sqrt(D),this._x=g*D,this._y=C*D,this._z=v*D,this._w=M*D),this.onChangeCallback(this),this},dot:function(g){return this.x*g.x+this.y*g.y+this.z*g.z+this.w*g.w},lerp:function(g,C){C===void 0&&(C=0);var v=this.x,M=this.y,D=this.z,G=this.w;return this.set(v+C*(g.x-v),M+C*(g.y-M),D+C*(g.z-D),G+C*(g.w-G))},rotationTo:function(g,C){var v=g.x*C.x+g.y*C.y+g.z*C.z;return v<-.999999?(L.copy(S).cross(g).length().999999?this.set(0,0,0,1):(L.copy(g).cross(C),this._x=L.x,this._y=L.y,this._z=L.z,this._w=1+v,this.normalize())},setAxes:function(g,C,v){var M=p.val;return M[0]=C.x,M[3]=C.y,M[6]=C.z,M[1]=v.x,M[4]=v.y,M[7]=v.z,M[2]=-g.x,M[5]=-g.y,M[8]=-g.z,this.fromMat3(p).normalize()},identity:function(){return this.set(0,0,0,1)},setAxisAngle:function(g,C){C=C*.5;var v=Math.sin(C);return this.set(v*g.x,v*g.y,v*g.z,Math.cos(C))},multiply:function(g){var C=this.x,v=this.y,M=this.z,D=this.w,G=g.x,H=g.y,B=g.z,_=g.w;return this.set(C*_+D*G+v*B-M*H,v*_+D*H+M*G-C*B,M*_+D*B+C*H-v*G,D*_-C*G-v*H-M*B)},slerp:function(g,C){var v=this.x,M=this.y,D=this.z,G=this.w,H=g.x,B=g.y,_=g.z,w=g.w,b=v*H+M*B+D*_+G*w;b<0&&(b=-b,H=-H,B=-B,_=-_,w=-w);var F=1-C,k=C;if(1-b>A){var V=Math.acos(b),Z=Math.sin(V);F=Math.sin((1-C)*V)/Z,k=Math.sin(C*V)/Z}return this.set(F*v+k*H,F*M+k*B,F*D+k*_,F*G+k*w)},invert:function(){var g=this.x,C=this.y,v=this.z,M=this.w,D=g*g+C*C+v*v+M*M,G=D?1/D:0;return this.set(-g*G,-C*G,-v*G,M*G)},conjugate:function(){return this._x=-this.x,this._y=-this.y,this._z=-this.z,this.onChangeCallback(this),this},rotateX:function(g){g*=.5;var C=this.x,v=this.y,M=this.z,D=this.w,G=Math.sin(g),H=Math.cos(g);return this.set(C*H+D*G,v*H+M*G,M*H-v*G,D*H-C*G)},rotateY:function(g){g*=.5;var C=this.x,v=this.y,M=this.z,D=this.w,G=Math.sin(g),H=Math.cos(g);return this.set(C*H-M*G,v*H+D*G,M*H+C*G,D*H-v*G)},rotateZ:function(g){g*=.5;var C=this.x,v=this.y,M=this.z,D=this.w,G=Math.sin(g),H=Math.cos(g);return this.set(C*H+v*G,v*H-C*G,M*H+D*G,D*H-M*G)},calculateW:function(){var g=this.x,C=this.y,v=this.z;return this.w=-Math.sqrt(1-g*g-C*C-v*v),this},setFromEuler:function(g,C){var v=g.x/2,M=g.y/2,D=g.z/2,G=Math.cos(v),H=Math.cos(M),B=Math.cos(D),_=Math.sin(v),w=Math.sin(M),b=Math.sin(D);switch(g.order){case"XYZ":{this.set(_*H*B+G*w*b,G*w*B-_*H*b,G*H*b+_*w*B,G*H*B-_*w*b,C);break}case"YXZ":{this.set(_*H*B+G*w*b,G*w*B-_*H*b,G*H*b-_*w*B,G*H*B+_*w*b,C);break}case"ZXY":{this.set(_*H*B-G*w*b,G*w*B+_*H*b,G*H*b+_*w*B,G*H*B-_*w*b,C);break}case"ZYX":{this.set(_*H*B-G*w*b,G*w*B+_*H*b,G*H*b-_*w*B,G*H*B+_*w*b,C);break}case"YZX":{this.set(_*H*B+G*w*b,G*w*B+_*H*b,G*H*b-_*w*B,G*H*B-_*w*b,C);break}case"XZY":{this.set(_*H*B-G*w*b,G*w*B-_*H*b,G*H*b+_*w*B,G*H*B+_*w*b,C);break}}return this},setFromRotationMatrix:function(g){var C=g.val,v=C[0],M=C[4],D=C[8],G=C[1],H=C[5],B=C[9],_=C[2],w=C[6],b=C[10],F=v+H+b,k;return F>0?(k=.5/Math.sqrt(F+1),this.set((w-B)*k,(D-_)*k,(G-M)*k,.25/k)):v>H&&v>b?(k=2*Math.sqrt(1+v-H-b),this.set(.25*k,(M+G)/k,(D+_)/k,(w-B)/k)):H>b?(k=2*Math.sqrt(1+H-v-b),this.set((M+G)/k,.25*k,(B+w)/k,(D-_)/k)):(k=2*Math.sqrt(1+b-v-H),this.set((D+_)/k,(B+w)/k,.25*k,(G-M)/k)),this},fromMat3:function(g){var C=g.val,v=C[0]+C[4]+C[8],M;if(v>0)M=Math.sqrt(v+1),this.w=.5*M,M=.5/M,this._x=(C[7]-C[5])*M,this._y=(C[2]-C[6])*M,this._z=(C[3]-C[1])*M;else{var D=0;C[4]>C[0]&&(D=1),C[8]>C[D*3+D]&&(D=2);var G=h[D],H=h[G];M=Math.sqrt(C[D*3+D]-C[G*3+G]-C[H*3+H]+1),f[D]=.5*M,M=.5/M,f[G]=(C[G*3+D]+C[D*3+G])*M,f[H]=(C[H*3+D]+C[D*3+H])*M,this._x=f[0],this._y=f[1],this._z=f[2],this._w=(C[H*3+G]-C[G*3+H])*M}return this.onChangeCallback(this),this}});o.exports=N},43396:(o,m,s)=>{/** + */var u=s(83419),T=s(94434),A=s(29747),c=s(25836),d=1e-6,h=new Int8Array([1,2,0]),f=new Float32Array([0,0,0]),S=new c(1,0,0),R=new c(0,1,0),L=new c,p=new T,N=new u({initialize:v(function(C,P,M,D){this.onChangeCallback=A,this.set(C,P,M,D)},"Quaternion"),x:{get:function(){return this._x},set:function(g){this._x=g,this.onChangeCallback(this)}},y:{get:function(){return this._y},set:function(g){this._y=g,this.onChangeCallback(this)}},z:{get:function(){return this._z},set:function(g){this._z=g,this.onChangeCallback(this)}},w:{get:function(){return this._w},set:function(g){this._w=g,this.onChangeCallback(this)}},copy:function(g){return this.set(g)},set:function(g,C,P,M,D){return D===void 0&&(D=!0),typeof g=="object"?(this._x=g.x||0,this._y=g.y||0,this._z=g.z||0,this._w=g.w||0):(this._x=g||0,this._y=C||0,this._z=P||0,this._w=M||0),D&&this.onChangeCallback(this),this},add:function(g){return this._x+=g.x,this._y+=g.y,this._z+=g.z,this._w+=g.w,this.onChangeCallback(this),this},subtract:function(g){return this._x-=g.x,this._y-=g.y,this._z-=g.z,this._w-=g.w,this.onChangeCallback(this),this},scale:function(g){return this._x*=g,this._y*=g,this._z*=g,this._w*=g,this.onChangeCallback(this),this},length:function(){var g=this.x,C=this.y,P=this.z,M=this.w;return Math.sqrt(g*g+C*C+P*P+M*M)},lengthSq:function(){var g=this.x,C=this.y,P=this.z,M=this.w;return g*g+C*C+P*P+M*M},normalize:function(){var g=this.x,C=this.y,P=this.z,M=this.w,D=g*g+C*C+P*P+M*M;return D>0&&(D=1/Math.sqrt(D),this._x=g*D,this._y=C*D,this._z=P*D,this._w=M*D),this.onChangeCallback(this),this},dot:function(g){return this.x*g.x+this.y*g.y+this.z*g.z+this.w*g.w},lerp:function(g,C){C===void 0&&(C=0);var P=this.x,M=this.y,D=this.z,G=this.w;return this.set(P+C*(g.x-P),M+C*(g.y-M),D+C*(g.z-D),G+C*(g.w-G))},rotationTo:function(g,C){var P=g.x*C.x+g.y*C.y+g.z*C.z;return P<-.999999?(L.copy(S).cross(g).length().999999?this.set(0,0,0,1):(L.copy(g).cross(C),this._x=L.x,this._y=L.y,this._z=L.z,this._w=1+P,this.normalize())},setAxes:function(g,C,P){var M=p.val;return M[0]=C.x,M[3]=C.y,M[6]=C.z,M[1]=P.x,M[4]=P.y,M[7]=P.z,M[2]=-g.x,M[5]=-g.y,M[8]=-g.z,this.fromMat3(p).normalize()},identity:function(){return this.set(0,0,0,1)},setAxisAngle:function(g,C){C=C*.5;var P=Math.sin(C);return this.set(P*g.x,P*g.y,P*g.z,Math.cos(C))},multiply:function(g){var C=this.x,P=this.y,M=this.z,D=this.w,G=g.x,H=g.y,B=g.z,b=g.w;return this.set(C*b+D*G+P*B-M*H,P*b+D*H+M*G-C*B,M*b+D*B+C*H-P*G,D*b-C*G-P*H-M*B)},slerp:function(g,C){var P=this.x,M=this.y,D=this.z,G=this.w,H=g.x,B=g.y,b=g.z,w=g.w,_=P*H+M*B+D*b+G*w;_<0&&(_=-_,H=-H,B=-B,b=-b,w=-w);var F=1-C,x=C;if(1-_>d){var V=Math.acos(_),Z=Math.sin(V);F=Math.sin((1-C)*V)/Z,x=Math.sin(C*V)/Z}return this.set(F*P+x*H,F*M+x*B,F*D+x*b,F*G+x*w)},invert:function(){var g=this.x,C=this.y,P=this.z,M=this.w,D=g*g+C*C+P*P+M*M,G=D?1/D:0;return this.set(-g*G,-C*G,-P*G,M*G)},conjugate:function(){return this._x=-this.x,this._y=-this.y,this._z=-this.z,this.onChangeCallback(this),this},rotateX:function(g){g*=.5;var C=this.x,P=this.y,M=this.z,D=this.w,G=Math.sin(g),H=Math.cos(g);return this.set(C*H+D*G,P*H+M*G,M*H-P*G,D*H-C*G)},rotateY:function(g){g*=.5;var C=this.x,P=this.y,M=this.z,D=this.w,G=Math.sin(g),H=Math.cos(g);return this.set(C*H-M*G,P*H+D*G,M*H+C*G,D*H-P*G)},rotateZ:function(g){g*=.5;var C=this.x,P=this.y,M=this.z,D=this.w,G=Math.sin(g),H=Math.cos(g);return this.set(C*H+P*G,P*H-C*G,M*H+D*G,D*H-M*G)},calculateW:function(){var g=this.x,C=this.y,P=this.z;return this.w=-Math.sqrt(1-g*g-C*C-P*P),this},setFromEuler:function(g,C){var P=g.x/2,M=g.y/2,D=g.z/2,G=Math.cos(P),H=Math.cos(M),B=Math.cos(D),b=Math.sin(P),w=Math.sin(M),_=Math.sin(D);switch(g.order){case"XYZ":{this.set(b*H*B+G*w*_,G*w*B-b*H*_,G*H*_+b*w*B,G*H*B-b*w*_,C);break}case"YXZ":{this.set(b*H*B+G*w*_,G*w*B-b*H*_,G*H*_-b*w*B,G*H*B+b*w*_,C);break}case"ZXY":{this.set(b*H*B-G*w*_,G*w*B+b*H*_,G*H*_+b*w*B,G*H*B-b*w*_,C);break}case"ZYX":{this.set(b*H*B-G*w*_,G*w*B+b*H*_,G*H*_-b*w*B,G*H*B+b*w*_,C);break}case"YZX":{this.set(b*H*B+G*w*_,G*w*B+b*H*_,G*H*_-b*w*B,G*H*B-b*w*_,C);break}case"XZY":{this.set(b*H*B-G*w*_,G*w*B-b*H*_,G*H*_+b*w*B,G*H*B+b*w*_,C);break}}return this},setFromRotationMatrix:function(g){var C=g.val,P=C[0],M=C[4],D=C[8],G=C[1],H=C[5],B=C[9],b=C[2],w=C[6],_=C[10],F=P+H+_,x;return F>0?(x=.5/Math.sqrt(F+1),this.set((w-B)*x,(D-b)*x,(G-M)*x,.25/x)):P>H&&P>_?(x=2*Math.sqrt(1+P-H-_),this.set(.25*x,(M+G)/x,(D+b)/x,(w-B)/x)):H>_?(x=2*Math.sqrt(1+H-P-_),this.set((M+G)/x,.25*x,(B+w)/x,(D-b)/x)):(x=2*Math.sqrt(1+_-P-H),this.set((D+b)/x,(B+w)/x,.25*x,(G-M)/x)),this},fromMat3:function(g){var C=g.val,P=C[0]+C[4]+C[8],M;if(P>0)M=Math.sqrt(P+1),this.w=.5*M,M=.5/M,this._x=(C[7]-C[5])*M,this._y=(C[2]-C[6])*M,this._z=(C[3]-C[1])*M;else{var D=0;C[4]>C[0]&&(D=1),C[8]>C[D*3+D]&&(D=2);var G=h[D],H=h[G];M=Math.sqrt(C[D*3+D]-C[G*3+G]-C[H*3+H]+1),f[D]=.5*M,M=.5/M,f[G]=(C[G*3+D]+C[D*3+G])*M,f[H]=(C[H*3+D]+C[D*3+H])*M,this._x=f[0],this._y=f[1],this._z=f[2],this._w=(C[H*3+G]-C[G*3+H])*M}return this.onChangeCallback(this),this}});o.exports=N},43396:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(36383),T=P(function(d){return d*u.RAD_TO_DEG},"RadToDeg");o.exports=T},74362:o=>{/** + */var u=s(36383),T=v(function(A){return A*u.RAD_TO_DEG},"RadToDeg");o.exports=T},74362:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){u===void 0&&(u=1);var T=Math.random()*2*Math.PI;return s.x=Math.cos(T)*u,s.y=Math.sin(T)*u,s},"RandomXY");o.exports=m},60706:o=>{/** + */var O=v(function(s,u){u===void 0&&(u=1);var T=Math.random()*2*Math.PI;return s.x=Math.cos(T)*u,s.y=Math.sin(T)*u,s},"RandomXY");o.exports=O},60706:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){u===void 0&&(u=1);var T=Math.random()*2*Math.PI,d=Math.random()*2-1,c=Math.sqrt(1-d*d)*u;return s.x=Math.cos(T)*c,s.y=Math.sin(T)*c,s.z=d*u,s},"RandomXYZ");o.exports=m},67421:o=>{/** + */var O=v(function(s,u){u===void 0&&(u=1);var T=Math.random()*2*Math.PI,A=Math.random()*2-1,c=Math.sqrt(1-A*A)*u;return s.x=Math.cos(T)*c,s.y=Math.sin(T)*c,s.z=A*u,s},"RandomXYZ");o.exports=O},67421:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return u===void 0&&(u=1),s.x=(Math.random()*2-1)*u,s.y=(Math.random()*2-1)*u,s.z=(Math.random()*2-1)*u,s.w=(Math.random()*2-1)*u,s},"RandomXYZW");o.exports=m},36305:o=>{/** + */var O=v(function(s,u){return u===void 0&&(u=1),s.x=(Math.random()*2-1)*u,s.y=(Math.random()*2-1)*u,s.z=(Math.random()*2-1)*u,s.w=(Math.random()*2-1)*u,s},"RandomXYZW");o.exports=O},36305:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){var T=s.x,d=s.y;return s.x=T*Math.cos(u)-d*Math.sin(u),s.y=T*Math.sin(u)+d*Math.cos(u),s},"Rotate");o.exports=m},11520:o=>{/** + */var O=v(function(s,u){var T=s.x,A=s.y;return s.x=T*Math.cos(u)-A*Math.sin(u),s.y=T*Math.sin(u)+A*Math.cos(u),s},"Rotate");o.exports=O},11520:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){var c=Math.cos(d),A=Math.sin(d),h=s.x-u,f=s.y-T;return s.x=h*c-f*A+u,s.y=h*A+f*c+T,s},"RotateAround");o.exports=m},1163:o=>{/** + */var O=v(function(s,u,T,A){var c=Math.cos(A),d=Math.sin(A),h=s.x-u,f=s.y-T;return s.x=h*c-f*d+u,s.y=h*d+f*c+T,s},"RotateAround");o.exports=O},1163:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d,c){var A=d+Math.atan2(s.y-T,s.x-u);return s.x=u+c*Math.cos(A),s.y=T+c*Math.sin(A),s},"RotateAroundDistance");o.exports=m},70336:o=>{/** + */var O=v(function(s,u,T,A,c){var d=A+Math.atan2(s.y-T,s.x-u);return s.x=u+c*Math.cos(d),s.y=T+c*Math.sin(d),s},"RotateAroundDistance");o.exports=O},70336:o=>{/** * @author samme * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d,c){return s.x=u+c*Math.cos(d),s.y=T+c*Math.sin(d),s},"RotateTo");o.exports=m},72678:(o,m,s)=>{/** + */var O=v(function(s,u,T,A,c){return s.x=u+c*Math.cos(A),s.y=T+c*Math.sin(A),s},"RotateTo");o.exports=O},72678:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(25836),T=s(37867),d=s(15746),c=new T,A=new d,h=new u,f=P(function(S,O,L){return A.setAxisAngle(O,L),c.fromRotationTranslation(A,h.set(0,0,0)),S.transformMat4(c)},"RotateVec3");o.exports=f},2284:o=>{/** + */var u=s(25836),T=s(37867),A=s(15746),c=new T,d=new A,h=new u,f=v(function(S,R,L){return d.setAxisAngle(R,L),c.fromRotationTranslation(d,h.set(0,0,0)),S.transformMat4(c)},"RotateVec3");o.exports=f},2284:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s>0?Math.ceil(s):Math.floor(s)},"RoundAwayFromZero");o.exports=m},41013:o=>{/** + */var O=v(function(s){return s>0?Math.ceil(s):Math.floor(s)},"RoundAwayFromZero");o.exports=O},41013:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){u===void 0&&(u=0),T===void 0&&(T=10);var d=Math.pow(T,-u);return Math.round(s*d)/d},"RoundTo");o.exports=m},16922:o=>{/** + */var O=v(function(s,u,T){u===void 0&&(u=0),T===void 0&&(T=10);var A=Math.pow(T,-u);return Math.round(s*A)/A},"RoundTo");o.exports=O},16922:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){u===void 0&&(u=1),T===void 0&&(T=1),d===void 0&&(d=1),d*=Math.PI/s;for(var c=[],A=[],h=0;h{/** + */var O=v(function(s,u,T,A){u===void 0&&(u=1),T===void 0&&(T=1),A===void 0&&(A=1),A*=Math.PI/s;for(var c=[],d=[],h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){return s<=u?0:s>=T?1:(s=(s-u)/(T-u),s*s*(3-2*s))},"SmoothStep");o.exports=m},54261:o=>{/** + */var O=v(function(s,u,T){return s<=u?0:s>=T?1:(s=(s-u)/(T-u),s*s*(3-2*s))},"SmoothStep");o.exports=O},54261:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){return s=Math.max(0,Math.min(1,(s-u)/(T-u))),s*s*s*(s*(s*6-15)+10)},"SmootherStep");o.exports=m},44408:(o,m,s)=>{/** + */var O=v(function(s,u,T){return s=Math.max(0,Math.min(1,(s-u)/(T-u))),s*s*s*(s*(s*6-15)+10)},"SmootherStep");o.exports=O},44408:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(26099),T=P(function(d,c,A,h){h===void 0&&(h=new u);var f=0,S=0,O=c*A;return d>0&&d<=O&&(d>c-1?(S=Math.floor(d/c),f=d-S*c):f=d),h.set(f,S)},"ToXY");o.exports=T},85955:(o,m,s)=>{/** + */var u=s(26099),T=v(function(A,c,d,h){h===void 0&&(h=new u);var f=0,S=0,R=c*d;return A>0&&A<=R&&(A>c-1?(S=Math.floor(A/c),f=A-S*c):f=A),h.set(f,S)},"ToXY");o.exports=T},85955:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(26099),T=P(function(d,c,A,h,f,S,O,L){L===void 0&&(L=new u);var p=Math.sin(f),N=Math.cos(f),g=N*S,C=p*S,v=-p*O,M=N*O,D=1/(g*M+v*-C);return L.x=M*D*d+-v*D*c+(h*v-A*M)*D,L.y=g*D*c+-C*D*d+(-h*g+A*C)*D,L},"TransformXY");o.exports=T},26099:(o,m,s)=>{/** + */var u=s(26099),T=v(function(A,c,d,h,f,S,R,L){L===void 0&&(L=new u);var p=Math.sin(f),N=Math.cos(f),g=N*S,C=p*S,P=-p*R,M=N*R,D=1/(g*M+P*-C);return L.x=M*D*A+-P*D*c+(h*P-d*M)*D,L.y=g*D*c+-C*D*A+(-h*g+d*C)*D,L},"TransformXY");o.exports=T},26099:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(43855),d=new u({initialize:P(function(A,h){this.x=0,this.y=0,typeof A=="object"?(this.x=A.x||0,this.y=A.y||0):(h===void 0&&(h=A),this.x=A||0,this.y=h||0)},"Vector2"),clone:function(){return new d(this.x,this.y)},copy:function(c){return this.x=c.x||0,this.y=c.y||0,this},setFromObject:function(c){return this.x=c.x||0,this.y=c.y||0,this},set:function(c,A){return A===void 0&&(A=c),this.x=c,this.y=A,this},setTo:function(c,A){return this.set(c,A)},setToPolar:function(c,A){return A==null&&(A=1),this.x=Math.cos(c)*A,this.y=Math.sin(c)*A,this},equals:function(c){return this.x===c.x&&this.y===c.y},fuzzyEquals:function(c,A){return T(this.x,c.x,A)&&T(this.y,c.y,A)},angle:function(){var c=Math.atan2(this.y,this.x);return c<0&&(c+=2*Math.PI),c},setAngle:function(c){return this.setToPolar(c,this.length())},add:function(c){return this.x+=c.x,this.y+=c.y,this},subtract:function(c){return this.x-=c.x,this.y-=c.y,this},multiply:function(c){return this.x*=c.x,this.y*=c.y,this},scale:function(c){return isFinite(c)?(this.x*=c,this.y*=c):(this.x=0,this.y=0),this},divide:function(c){return this.x/=c.x,this.y/=c.y,this},negate:function(){return this.x=-this.x,this.y=-this.y,this},distance:function(c){var A=c.x-this.x,h=c.y-this.y;return Math.sqrt(A*A+h*h)},distanceSq:function(c){var A=c.x-this.x,h=c.y-this.y;return A*A+h*h},length:function(){var c=this.x,A=this.y;return Math.sqrt(c*c+A*A)},setLength:function(c){return this.normalize().scale(c)},lengthSq:function(){var c=this.x,A=this.y;return c*c+A*A},normalize:function(){var c=this.x,A=this.y,h=c*c+A*A;return h>0&&(h=1/Math.sqrt(h),this.x=c*h,this.y=A*h),this},normalizeRightHand:function(){var c=this.x;return this.x=this.y*-1,this.y=c,this},normalizeLeftHand:function(){var c=this.x;return this.x=this.y,this.y=c*-1,this},dot:function(c){return this.x*c.x+this.y*c.y},cross:function(c){return this.x*c.y-this.y*c.x},lerp:function(c,A){A===void 0&&(A=0);var h=this.x,f=this.y;return this.x=h+A*(c.x-h),this.y=f+A*(c.y-f),this},transformMat3:function(c){var A=this.x,h=this.y,f=c.val;return this.x=f[0]*A+f[3]*h+f[6],this.y=f[1]*A+f[4]*h+f[7],this},transformMat4:function(c){var A=this.x,h=this.y,f=c.val;return this.x=f[0]*A+f[4]*h+f[12],this.y=f[1]*A+f[5]*h+f[13],this},reset:function(){return this.x=0,this.y=0,this},limit:function(c){var A=this.length();return A&&A>c&&this.scale(c/A),this},reflect:function(c){return c=c.clone().normalize(),this.subtract(c.scale(2*this.dot(c)))},mirror:function(c){return this.reflect(c).negate()},rotate:function(c){var A=Math.cos(c),h=Math.sin(c);return this.set(A*this.x-h*this.y,h*this.x+A*this.y)},project:function(c){var A=this.dot(c)/c.dot(c);return this.copy(c).scale(A)}});d.ZERO=new d,d.RIGHT=new d(1,0),d.LEFT=new d(-1,0),d.UP=new d(0,-1),d.DOWN=new d(0,1),d.ONE=new d(1,1),o.exports=d},25836:(o,m,s)=>{/** + */var u=s(83419),T=s(43855),A=new u({initialize:v(function(d,h){this.x=0,this.y=0,typeof d=="object"?(this.x=d.x||0,this.y=d.y||0):(h===void 0&&(h=d),this.x=d||0,this.y=h||0)},"Vector2"),clone:function(){return new A(this.x,this.y)},copy:function(c){return this.x=c.x||0,this.y=c.y||0,this},setFromObject:function(c){return this.x=c.x||0,this.y=c.y||0,this},set:function(c,d){return d===void 0&&(d=c),this.x=c,this.y=d,this},setTo:function(c,d){return this.set(c,d)},setToPolar:function(c,d){return d==null&&(d=1),this.x=Math.cos(c)*d,this.y=Math.sin(c)*d,this},equals:function(c){return this.x===c.x&&this.y===c.y},fuzzyEquals:function(c,d){return T(this.x,c.x,d)&&T(this.y,c.y,d)},angle:function(){var c=Math.atan2(this.y,this.x);return c<0&&(c+=2*Math.PI),c},setAngle:function(c){return this.setToPolar(c,this.length())},add:function(c){return this.x+=c.x,this.y+=c.y,this},subtract:function(c){return this.x-=c.x,this.y-=c.y,this},multiply:function(c){return this.x*=c.x,this.y*=c.y,this},scale:function(c){return isFinite(c)?(this.x*=c,this.y*=c):(this.x=0,this.y=0),this},divide:function(c){return this.x/=c.x,this.y/=c.y,this},negate:function(){return this.x=-this.x,this.y=-this.y,this},distance:function(c){var d=c.x-this.x,h=c.y-this.y;return Math.sqrt(d*d+h*h)},distanceSq:function(c){var d=c.x-this.x,h=c.y-this.y;return d*d+h*h},length:function(){var c=this.x,d=this.y;return Math.sqrt(c*c+d*d)},setLength:function(c){return this.normalize().scale(c)},lengthSq:function(){var c=this.x,d=this.y;return c*c+d*d},normalize:function(){var c=this.x,d=this.y,h=c*c+d*d;return h>0&&(h=1/Math.sqrt(h),this.x=c*h,this.y=d*h),this},normalizeRightHand:function(){var c=this.x;return this.x=this.y*-1,this.y=c,this},normalizeLeftHand:function(){var c=this.x;return this.x=this.y,this.y=c*-1,this},dot:function(c){return this.x*c.x+this.y*c.y},cross:function(c){return this.x*c.y-this.y*c.x},lerp:function(c,d){d===void 0&&(d=0);var h=this.x,f=this.y;return this.x=h+d*(c.x-h),this.y=f+d*(c.y-f),this},transformMat3:function(c){var d=this.x,h=this.y,f=c.val;return this.x=f[0]*d+f[3]*h+f[6],this.y=f[1]*d+f[4]*h+f[7],this},transformMat4:function(c){var d=this.x,h=this.y,f=c.val;return this.x=f[0]*d+f[4]*h+f[12],this.y=f[1]*d+f[5]*h+f[13],this},reset:function(){return this.x=0,this.y=0,this},limit:function(c){var d=this.length();return d&&d>c&&this.scale(c/d),this},reflect:function(c){return c=c.clone().normalize(),this.subtract(c.scale(2*this.dot(c)))},mirror:function(c){return this.reflect(c).negate()},rotate:function(c){var d=Math.cos(c),h=Math.sin(c);return this.set(d*this.x-h*this.y,h*this.x+d*this.y)},project:function(c){var d=this.dot(c)/c.dot(c);return this.copy(c).scale(d)}});A.ZERO=new A,A.RIGHT=new A(1,0),A.LEFT=new A(-1,0),A.UP=new A(0,-1),A.DOWN=new A(0,1),A.ONE=new A(1,1),o.exports=A},25836:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=new u({initialize:P(function(c,A,h){this.x=0,this.y=0,this.z=0,typeof c=="object"?(this.x=c.x||0,this.y=c.y||0,this.z=c.z||0):(this.x=c||0,this.y=A||0,this.z=h||0)},"Vector3"),up:function(){return this.x=0,this.y=1,this.z=0,this},min:function(d){return this.x=Math.min(this.x,d.x),this.y=Math.min(this.y,d.y),this.z=Math.min(this.z,d.z),this},max:function(d){return this.x=Math.max(this.x,d.x),this.y=Math.max(this.y,d.y),this.z=Math.max(this.z,d.z),this},clone:function(){return new T(this.x,this.y,this.z)},addVectors:function(d,c){return this.x=d.x+c.x,this.y=d.y+c.y,this.z=d.z+c.z,this},crossVectors:function(d,c){var A=d.x,h=d.y,f=d.z,S=c.x,O=c.y,L=c.z;return this.x=h*L-f*O,this.y=f*S-A*L,this.z=A*O-h*S,this},equals:function(d){return this.x===d.x&&this.y===d.y&&this.z===d.z},copy:function(d){return this.x=d.x,this.y=d.y,this.z=d.z||0,this},set:function(d,c,A){return typeof d=="object"?(this.x=d.x||0,this.y=d.y||0,this.z=d.z||0):(this.x=d||0,this.y=c||0,this.z=A||0),this},setFromMatrixPosition:function(d){return this.fromArray(d.val,12)},setFromMatrixColumn:function(d,c){return this.fromArray(d.val,c*4)},fromArray:function(d,c){return c===void 0&&(c=0),this.x=d[c],this.y=d[c+1],this.z=d[c+2],this},add:function(d){return this.x+=d.x,this.y+=d.y,this.z+=d.z||0,this},addScalar:function(d){return this.x+=d,this.y+=d,this.z+=d,this},addScale:function(d,c){return this.x+=d.x*c,this.y+=d.y*c,this.z+=d.z*c||0,this},subtract:function(d){return this.x-=d.x,this.y-=d.y,this.z-=d.z||0,this},multiply:function(d){return this.x*=d.x,this.y*=d.y,this.z*=d.z||1,this},scale:function(d){return isFinite(d)?(this.x*=d,this.y*=d,this.z*=d):(this.x=0,this.y=0,this.z=0),this},divide:function(d){return this.x/=d.x,this.y/=d.y,this.z/=d.z||1,this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},distance:function(d){var c=d.x-this.x,A=d.y-this.y,h=d.z-this.z||0;return Math.sqrt(c*c+A*A+h*h)},distanceSq:function(d){var c=d.x-this.x,A=d.y-this.y,h=d.z-this.z||0;return c*c+A*A+h*h},length:function(){var d=this.x,c=this.y,A=this.z;return Math.sqrt(d*d+c*c+A*A)},lengthSq:function(){var d=this.x,c=this.y,A=this.z;return d*d+c*c+A*A},normalize:function(){var d=this.x,c=this.y,A=this.z,h=d*d+c*c+A*A;return h>0&&(h=1/Math.sqrt(h),this.x=d*h,this.y=c*h,this.z=A*h),this},dot:function(d){return this.x*d.x+this.y*d.y+this.z*d.z},cross:function(d){var c=this.x,A=this.y,h=this.z,f=d.x,S=d.y,O=d.z;return this.x=A*O-h*S,this.y=h*f-c*O,this.z=c*S-A*f,this},lerp:function(d,c){c===void 0&&(c=0);var A=this.x,h=this.y,f=this.z;return this.x=A+c*(d.x-A),this.y=h+c*(d.y-h),this.z=f+c*(d.z-f),this},applyMatrix3:function(d){var c=this.x,A=this.y,h=this.z,f=d.val;return this.x=f[0]*c+f[3]*A+f[6]*h,this.y=f[1]*c+f[4]*A+f[7]*h,this.z=f[2]*c+f[5]*A+f[8]*h,this},applyMatrix4:function(d){var c=this.x,A=this.y,h=this.z,f=d.val,S=1/(f[3]*c+f[7]*A+f[11]*h+f[15]);return this.x=(f[0]*c+f[4]*A+f[8]*h+f[12])*S,this.y=(f[1]*c+f[5]*A+f[9]*h+f[13])*S,this.z=(f[2]*c+f[6]*A+f[10]*h+f[14])*S,this},transformMat3:function(d){var c=this.x,A=this.y,h=this.z,f=d.val;return this.x=c*f[0]+A*f[3]+h*f[6],this.y=c*f[1]+A*f[4]+h*f[7],this.z=c*f[2]+A*f[5]+h*f[8],this},transformMat4:function(d){var c=this.x,A=this.y,h=this.z,f=d.val;return this.x=f[0]*c+f[4]*A+f[8]*h+f[12],this.y=f[1]*c+f[5]*A+f[9]*h+f[13],this.z=f[2]*c+f[6]*A+f[10]*h+f[14],this},transformCoordinates:function(d){var c=this.x,A=this.y,h=this.z,f=d.val,S=c*f[0]+A*f[4]+h*f[8]+f[12],O=c*f[1]+A*f[5]+h*f[9]+f[13],L=c*f[2]+A*f[6]+h*f[10]+f[14],p=c*f[3]+A*f[7]+h*f[11]+f[15];return this.x=S/p,this.y=O/p,this.z=L/p,this},transformQuat:function(d){var c=this.x,A=this.y,h=this.z,f=d.x,S=d.y,O=d.z,L=d.w,p=L*c+S*h-O*A,N=L*A+O*c-f*h,g=L*h+f*A-S*c,C=-f*c-S*A-O*h;return this.x=p*L+C*-f+N*-O-g*-S,this.y=N*L+C*-S+g*-f-p*-O,this.z=g*L+C*-O+p*-S-N*-f,this},project:function(d){var c=this.x,A=this.y,h=this.z,f=d.val,S=f[0],O=f[1],L=f[2],p=f[3],N=f[4],g=f[5],C=f[6],v=f[7],M=f[8],D=f[9],G=f[10],H=f[11],B=f[12],_=f[13],w=f[14],b=f[15],F=1/(c*p+A*v+h*H+b);return this.x=(c*S+A*N+h*M+B)*F,this.y=(c*O+A*g+h*D+_)*F,this.z=(c*L+A*C+h*G+w)*F,this},projectViewMatrix:function(d,c){return this.applyMatrix4(d).applyMatrix4(c)},unprojectViewMatrix:function(d,c){return this.applyMatrix4(d).applyMatrix4(c)},unproject:function(d,c){var A=d.x,h=d.y,f=d.z,S=d.w,O=this.x-A,L=S-this.y-1-h,p=this.z;return this.x=2*O/f-1,this.y=2*L/S-1,this.z=2*p-1,this.project(c)},reset:function(){return this.x=0,this.y=0,this.z=0,this}});T.ZERO=new T,T.RIGHT=new T(1,0,0),T.LEFT=new T(-1,0,0),T.UP=new T(0,-1,0),T.DOWN=new T(0,1,0),T.FORWARD=new T(0,0,1),T.BACK=new T(0,0,-1),T.ONE=new T(1,1,1),o.exports=T},61369:(o,m,s)=>{/** + */var u=s(83419),T=new u({initialize:v(function(c,d,h){this.x=0,this.y=0,this.z=0,typeof c=="object"?(this.x=c.x||0,this.y=c.y||0,this.z=c.z||0):(this.x=c||0,this.y=d||0,this.z=h||0)},"Vector3"),up:function(){return this.x=0,this.y=1,this.z=0,this},min:function(A){return this.x=Math.min(this.x,A.x),this.y=Math.min(this.y,A.y),this.z=Math.min(this.z,A.z),this},max:function(A){return this.x=Math.max(this.x,A.x),this.y=Math.max(this.y,A.y),this.z=Math.max(this.z,A.z),this},clone:function(){return new T(this.x,this.y,this.z)},addVectors:function(A,c){return this.x=A.x+c.x,this.y=A.y+c.y,this.z=A.z+c.z,this},crossVectors:function(A,c){var d=A.x,h=A.y,f=A.z,S=c.x,R=c.y,L=c.z;return this.x=h*L-f*R,this.y=f*S-d*L,this.z=d*R-h*S,this},equals:function(A){return this.x===A.x&&this.y===A.y&&this.z===A.z},copy:function(A){return this.x=A.x,this.y=A.y,this.z=A.z||0,this},set:function(A,c,d){return typeof A=="object"?(this.x=A.x||0,this.y=A.y||0,this.z=A.z||0):(this.x=A||0,this.y=c||0,this.z=d||0),this},setFromMatrixPosition:function(A){return this.fromArray(A.val,12)},setFromMatrixColumn:function(A,c){return this.fromArray(A.val,c*4)},fromArray:function(A,c){return c===void 0&&(c=0),this.x=A[c],this.y=A[c+1],this.z=A[c+2],this},add:function(A){return this.x+=A.x,this.y+=A.y,this.z+=A.z||0,this},addScalar:function(A){return this.x+=A,this.y+=A,this.z+=A,this},addScale:function(A,c){return this.x+=A.x*c,this.y+=A.y*c,this.z+=A.z*c||0,this},subtract:function(A){return this.x-=A.x,this.y-=A.y,this.z-=A.z||0,this},multiply:function(A){return this.x*=A.x,this.y*=A.y,this.z*=A.z||1,this},scale:function(A){return isFinite(A)?(this.x*=A,this.y*=A,this.z*=A):(this.x=0,this.y=0,this.z=0),this},divide:function(A){return this.x/=A.x,this.y/=A.y,this.z/=A.z||1,this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},distance:function(A){var c=A.x-this.x,d=A.y-this.y,h=A.z-this.z||0;return Math.sqrt(c*c+d*d+h*h)},distanceSq:function(A){var c=A.x-this.x,d=A.y-this.y,h=A.z-this.z||0;return c*c+d*d+h*h},length:function(){var A=this.x,c=this.y,d=this.z;return Math.sqrt(A*A+c*c+d*d)},lengthSq:function(){var A=this.x,c=this.y,d=this.z;return A*A+c*c+d*d},normalize:function(){var A=this.x,c=this.y,d=this.z,h=A*A+c*c+d*d;return h>0&&(h=1/Math.sqrt(h),this.x=A*h,this.y=c*h,this.z=d*h),this},dot:function(A){return this.x*A.x+this.y*A.y+this.z*A.z},cross:function(A){var c=this.x,d=this.y,h=this.z,f=A.x,S=A.y,R=A.z;return this.x=d*R-h*S,this.y=h*f-c*R,this.z=c*S-d*f,this},lerp:function(A,c){c===void 0&&(c=0);var d=this.x,h=this.y,f=this.z;return this.x=d+c*(A.x-d),this.y=h+c*(A.y-h),this.z=f+c*(A.z-f),this},applyMatrix3:function(A){var c=this.x,d=this.y,h=this.z,f=A.val;return this.x=f[0]*c+f[3]*d+f[6]*h,this.y=f[1]*c+f[4]*d+f[7]*h,this.z=f[2]*c+f[5]*d+f[8]*h,this},applyMatrix4:function(A){var c=this.x,d=this.y,h=this.z,f=A.val,S=1/(f[3]*c+f[7]*d+f[11]*h+f[15]);return this.x=(f[0]*c+f[4]*d+f[8]*h+f[12])*S,this.y=(f[1]*c+f[5]*d+f[9]*h+f[13])*S,this.z=(f[2]*c+f[6]*d+f[10]*h+f[14])*S,this},transformMat3:function(A){var c=this.x,d=this.y,h=this.z,f=A.val;return this.x=c*f[0]+d*f[3]+h*f[6],this.y=c*f[1]+d*f[4]+h*f[7],this.z=c*f[2]+d*f[5]+h*f[8],this},transformMat4:function(A){var c=this.x,d=this.y,h=this.z,f=A.val;return this.x=f[0]*c+f[4]*d+f[8]*h+f[12],this.y=f[1]*c+f[5]*d+f[9]*h+f[13],this.z=f[2]*c+f[6]*d+f[10]*h+f[14],this},transformCoordinates:function(A){var c=this.x,d=this.y,h=this.z,f=A.val,S=c*f[0]+d*f[4]+h*f[8]+f[12],R=c*f[1]+d*f[5]+h*f[9]+f[13],L=c*f[2]+d*f[6]+h*f[10]+f[14],p=c*f[3]+d*f[7]+h*f[11]+f[15];return this.x=S/p,this.y=R/p,this.z=L/p,this},transformQuat:function(A){var c=this.x,d=this.y,h=this.z,f=A.x,S=A.y,R=A.z,L=A.w,p=L*c+S*h-R*d,N=L*d+R*c-f*h,g=L*h+f*d-S*c,C=-f*c-S*d-R*h;return this.x=p*L+C*-f+N*-R-g*-S,this.y=N*L+C*-S+g*-f-p*-R,this.z=g*L+C*-R+p*-S-N*-f,this},project:function(A){var c=this.x,d=this.y,h=this.z,f=A.val,S=f[0],R=f[1],L=f[2],p=f[3],N=f[4],g=f[5],C=f[6],P=f[7],M=f[8],D=f[9],G=f[10],H=f[11],B=f[12],b=f[13],w=f[14],_=f[15],F=1/(c*p+d*P+h*H+_);return this.x=(c*S+d*N+h*M+B)*F,this.y=(c*R+d*g+h*D+b)*F,this.z=(c*L+d*C+h*G+w)*F,this},projectViewMatrix:function(A,c){return this.applyMatrix4(A).applyMatrix4(c)},unprojectViewMatrix:function(A,c){return this.applyMatrix4(A).applyMatrix4(c)},unproject:function(A,c){var d=A.x,h=A.y,f=A.z,S=A.w,R=this.x-d,L=S-this.y-1-h,p=this.z;return this.x=2*R/f-1,this.y=2*L/S-1,this.z=2*p-1,this.project(c)},reset:function(){return this.x=0,this.y=0,this.z=0,this}});T.ZERO=new T,T.RIGHT=new T(1,0,0),T.LEFT=new T(-1,0,0),T.UP=new T(0,-1,0),T.DOWN=new T(0,1,0),T.FORWARD=new T(0,0,1),T.BACK=new T(0,0,-1),T.ONE=new T(1,1,1),o.exports=T},61369:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=new u({initialize:P(function(c,A,h,f){this.x=0,this.y=0,this.z=0,this.w=0,typeof c=="object"?(this.x=c.x||0,this.y=c.y||0,this.z=c.z||0,this.w=c.w||0):(this.x=c||0,this.y=A||0,this.z=h||0,this.w=f||0)},"Vector4"),clone:function(){return new T(this.x,this.y,this.z,this.w)},copy:function(d){return this.x=d.x,this.y=d.y,this.z=d.z||0,this.w=d.w||0,this},equals:function(d){return this.x===d.x&&this.y===d.y&&this.z===d.z&&this.w===d.w},set:function(d,c,A,h){return typeof d=="object"?(this.x=d.x||0,this.y=d.y||0,this.z=d.z||0,this.w=d.w||0):(this.x=d||0,this.y=c||0,this.z=A||0,this.w=h||0),this},add:function(d){return this.x+=d.x,this.y+=d.y,this.z+=d.z||0,this.w+=d.w||0,this},subtract:function(d){return this.x-=d.x,this.y-=d.y,this.z-=d.z||0,this.w-=d.w||0,this},scale:function(d){return this.x*=d,this.y*=d,this.z*=d,this.w*=d,this},length:function(){var d=this.x,c=this.y,A=this.z,h=this.w;return Math.sqrt(d*d+c*c+A*A+h*h)},lengthSq:function(){var d=this.x,c=this.y,A=this.z,h=this.w;return d*d+c*c+A*A+h*h},normalize:function(){var d=this.x,c=this.y,A=this.z,h=this.w,f=d*d+c*c+A*A+h*h;return f>0&&(f=1/Math.sqrt(f),this.x=d*f,this.y=c*f,this.z=A*f,this.w=h*f),this},dot:function(d){return this.x*d.x+this.y*d.y+this.z*d.z+this.w*d.w},lerp:function(d,c){c===void 0&&(c=0);var A=this.x,h=this.y,f=this.z,S=this.w;return this.x=A+c*(d.x-A),this.y=h+c*(d.y-h),this.z=f+c*(d.z-f),this.w=S+c*(d.w-S),this},multiply:function(d){return this.x*=d.x,this.y*=d.y,this.z*=d.z||1,this.w*=d.w||1,this},divide:function(d){return this.x/=d.x,this.y/=d.y,this.z/=d.z||1,this.w/=d.w||1,this},distance:function(d){var c=d.x-this.x,A=d.y-this.y,h=d.z-this.z||0,f=d.w-this.w||0;return Math.sqrt(c*c+A*A+h*h+f*f)},distanceSq:function(d){var c=d.x-this.x,A=d.y-this.y,h=d.z-this.z||0,f=d.w-this.w||0;return c*c+A*A+h*h+f*f},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},transformMat4:function(d){var c=this.x,A=this.y,h=this.z,f=this.w,S=d.val;return this.x=S[0]*c+S[4]*A+S[8]*h+S[12]*f,this.y=S[1]*c+S[5]*A+S[9]*h+S[13]*f,this.z=S[2]*c+S[6]*A+S[10]*h+S[14]*f,this.w=S[3]*c+S[7]*A+S[11]*h+S[15]*f,this},transformQuat:function(d){var c=this.x,A=this.y,h=this.z,f=d.x,S=d.y,O=d.z,L=d.w,p=L*c+S*h-O*A,N=L*A+O*c-f*h,g=L*h+f*A-S*c,C=-f*c-S*A-O*h;return this.x=p*L+C*-f+N*-O-g*-S,this.y=N*L+C*-S+g*-f-p*-O,this.z=g*L+C*-O+p*-S-N*-f,this},reset:function(){return this.x=0,this.y=0,this.z=0,this.w=0,this}});T.prototype.sub=T.prototype.subtract,T.prototype.mul=T.prototype.multiply,T.prototype.div=T.prototype.divide,T.prototype.dist=T.prototype.distance,T.prototype.distSq=T.prototype.distanceSq,T.prototype.len=T.prototype.length,T.prototype.lenSq=T.prototype.lengthSq,o.exports=T},60417:o=>{/** + */var u=s(83419),T=new u({initialize:v(function(c,d,h,f){this.x=0,this.y=0,this.z=0,this.w=0,typeof c=="object"?(this.x=c.x||0,this.y=c.y||0,this.z=c.z||0,this.w=c.w||0):(this.x=c||0,this.y=d||0,this.z=h||0,this.w=f||0)},"Vector4"),clone:function(){return new T(this.x,this.y,this.z,this.w)},copy:function(A){return this.x=A.x,this.y=A.y,this.z=A.z||0,this.w=A.w||0,this},equals:function(A){return this.x===A.x&&this.y===A.y&&this.z===A.z&&this.w===A.w},set:function(A,c,d,h){return typeof A=="object"?(this.x=A.x||0,this.y=A.y||0,this.z=A.z||0,this.w=A.w||0):(this.x=A||0,this.y=c||0,this.z=d||0,this.w=h||0),this},add:function(A){return this.x+=A.x,this.y+=A.y,this.z+=A.z||0,this.w+=A.w||0,this},subtract:function(A){return this.x-=A.x,this.y-=A.y,this.z-=A.z||0,this.w-=A.w||0,this},scale:function(A){return this.x*=A,this.y*=A,this.z*=A,this.w*=A,this},length:function(){var A=this.x,c=this.y,d=this.z,h=this.w;return Math.sqrt(A*A+c*c+d*d+h*h)},lengthSq:function(){var A=this.x,c=this.y,d=this.z,h=this.w;return A*A+c*c+d*d+h*h},normalize:function(){var A=this.x,c=this.y,d=this.z,h=this.w,f=A*A+c*c+d*d+h*h;return f>0&&(f=1/Math.sqrt(f),this.x=A*f,this.y=c*f,this.z=d*f,this.w=h*f),this},dot:function(A){return this.x*A.x+this.y*A.y+this.z*A.z+this.w*A.w},lerp:function(A,c){c===void 0&&(c=0);var d=this.x,h=this.y,f=this.z,S=this.w;return this.x=d+c*(A.x-d),this.y=h+c*(A.y-h),this.z=f+c*(A.z-f),this.w=S+c*(A.w-S),this},multiply:function(A){return this.x*=A.x,this.y*=A.y,this.z*=A.z||1,this.w*=A.w||1,this},divide:function(A){return this.x/=A.x,this.y/=A.y,this.z/=A.z||1,this.w/=A.w||1,this},distance:function(A){var c=A.x-this.x,d=A.y-this.y,h=A.z-this.z||0,f=A.w-this.w||0;return Math.sqrt(c*c+d*d+h*h+f*f)},distanceSq:function(A){var c=A.x-this.x,d=A.y-this.y,h=A.z-this.z||0,f=A.w-this.w||0;return c*c+d*d+h*h+f*f},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},transformMat4:function(A){var c=this.x,d=this.y,h=this.z,f=this.w,S=A.val;return this.x=S[0]*c+S[4]*d+S[8]*h+S[12]*f,this.y=S[1]*c+S[5]*d+S[9]*h+S[13]*f,this.z=S[2]*c+S[6]*d+S[10]*h+S[14]*f,this.w=S[3]*c+S[7]*d+S[11]*h+S[15]*f,this},transformQuat:function(A){var c=this.x,d=this.y,h=this.z,f=A.x,S=A.y,R=A.z,L=A.w,p=L*c+S*h-R*d,N=L*d+R*c-f*h,g=L*h+f*d-S*c,C=-f*c-S*d-R*h;return this.x=p*L+C*-f+N*-R-g*-S,this.y=N*L+C*-S+g*-f-p*-R,this.z=g*L+C*-R+p*-S-N*-f,this},reset:function(){return this.x=0,this.y=0,this.z=0,this.w=0,this}});T.prototype.sub=T.prototype.subtract,T.prototype.mul=T.prototype.multiply,T.prototype.div=T.prototype.divide,T.prototype.dist=T.prototype.distance,T.prototype.distSq=T.prototype.distanceSq,T.prototype.len=T.prototype.length,T.prototype.lenSq=T.prototype.lengthSq,o.exports=T},60417:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){return Math.abs(s-u)<=T},"Within");o.exports=m},15994:o=>{/** + */var O=v(function(s,u,T){return Math.abs(s-u)<=T},"Within");o.exports=O},15994:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){var d=T-u;return u+((s-u)%d+d)%d},"Wrap");o.exports=m},31040:o=>{/** + */var O=v(function(s,u,T){var A=T-u;return u+((s-u)%A+A)%A},"Wrap");o.exports=O},31040:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){return Math.atan2(d-u,T-s)},"Between");o.exports=m},55495:o=>{/** + */var O=v(function(s,u,T,A){return Math.atan2(A-u,T-s)},"Between");o.exports=O},55495:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return Math.atan2(u.y-s.y,u.x-s.x)},"BetweenPoints");o.exports=m},128:o=>{/** + */var O=v(function(s,u){return Math.atan2(u.y-s.y,u.x-s.x)},"BetweenPoints");o.exports=O},128:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return Math.atan2(u.x-s.x,u.y-s.y)},"BetweenPointsY");o.exports=m},41273:o=>{/** + */var O=v(function(s,u){return Math.atan2(u.x-s.x,u.y-s.y)},"BetweenPointsY");o.exports=O},41273:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){return Math.atan2(T-s,d-u)},"BetweenY");o.exports=m},1432:(o,m,s)=>{/** + */var O=v(function(s,u,T,A){return Math.atan2(T-s,A-u)},"BetweenY");o.exports=O},1432:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(36383),T=P(function(d){return d>Math.PI&&(d-=u.PI2),Math.abs(((d+u.TAU)%u.PI2-u.PI2)%u.PI2)},"CounterClockwise");o.exports=T},12407:o=>{/** + */var u=s(36383),T=v(function(A){return A>Math.PI&&(A-=u.PI2),Math.abs(((A+u.TAU)%u.PI2-u.PI2)%u.PI2)},"CounterClockwise");o.exports=T},12407:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s=s%(2*Math.PI),s>=0?s:s+2*Math.PI},"Normalize");o.exports=m},53993:(o,m,s)=>{/** + */var O=v(function(s){return s=s%(2*Math.PI),s>=0?s:s+2*Math.PI},"Normalize");o.exports=O},53993:(o,O,s)=>{/** * @author Richard Davey * @author @samme * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(99472),T=P(function(){return u(-Math.PI,Math.PI)},"Random");o.exports=T},86564:(o,m,s)=>{/** + */var u=s(99472),T=v(function(){return u(-Math.PI,Math.PI)},"Random");o.exports=T},86564:(o,O,s)=>{/** * @author Richard Davey * @author @samme * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(99472),T=P(function(){return u(-180,180)},"RandomDegrees");o.exports=T},90154:(o,m,s)=>{/** + */var u=s(99472),T=v(function(){return u(-180,180)},"RandomDegrees");o.exports=T},90154:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(12407),T=P(function(d){return u(d+Math.PI)},"Reverse");o.exports=T},48736:(o,m,s)=>{/** + */var u=s(12407),T=v(function(A){return u(A+Math.PI)},"Reverse");o.exports=T},48736:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(36383),T=P(function(d,c,A){return A===void 0&&(A=.05),d===c||(Math.abs(c-d)<=A||Math.abs(c-d)>=u.PI2-A?d=c:(Math.abs(c-d)>Math.PI&&(cd?d+=A:c{/** + */var u=s(36383),T=v(function(A,c,d){return d===void 0&&(d=.05),A===c||(Math.abs(c-A)<=d||Math.abs(c-A)>=u.PI2-d?A=c:(Math.abs(c-A)>Math.PI&&(cA?A+=d:c{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){var T=u-s;if(T===0)return 0;var d=Math.floor((T- -180)/360);return T-d*360},"ShortestBetween");o.exports=m},86554:(o,m,s)=>{/** + */var O=v(function(s,u){var T=u-s;if(T===0)return 0;var A=Math.floor((T- -180)/360);return T-A*360},"ShortestBetween");o.exports=O},86554:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(15994),T=P(function(d){return u(d,-Math.PI,Math.PI)},"Wrap");o.exports=T},30954:(o,m,s)=>{/** + */var u=s(15994),T=v(function(A){return u(A,-Math.PI,Math.PI)},"Wrap");o.exports=T},30954:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(15994),T=P(function(d){return u(d,-180,180)},"WrapDegrees");o.exports=T},25588:(o,m,s)=>{/** + */var u=s(15994),T=v(function(A){return u(A,-180,180)},"WrapDegrees");o.exports=T},25588:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3871,55 +3871,55 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={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};o.exports=m},20339:o=>{/** + */var O={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};o.exports=O},20339:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){var c=s-T,A=u-d;return Math.sqrt(c*c+A*A)},"DistanceBetween");o.exports=m},52816:o=>{/** + */var O=v(function(s,u,T,A){var c=s-T,d=u-A;return Math.sqrt(c*c+d*d)},"DistanceBetween");o.exports=O},52816:o=>{/** * @author samme * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){var T=s.x-u.x,d=s.y-u.y;return Math.sqrt(T*T+d*d)},"DistanceBetweenPoints");o.exports=m},64559:o=>{/** + */var O=v(function(s,u){var T=s.x-u.x,A=s.y-u.y;return Math.sqrt(T*T+A*A)},"DistanceBetweenPoints");o.exports=O},64559:o=>{/** * @author samme * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){var T=s.x-u.x,d=s.y-u.y;return T*T+d*d},"DistanceBetweenPointsSquared");o.exports=m},82340:o=>{/** + */var O=v(function(s,u){var T=s.x-u.x,A=s.y-u.y;return T*T+A*A},"DistanceBetweenPointsSquared");o.exports=O},82340:o=>{/** * @author samme * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){return Math.max(Math.abs(s-T),Math.abs(u-d))},"ChebyshevDistance");o.exports=m},14390:o=>{/** + */var O=v(function(s,u,T,A){return Math.max(Math.abs(s-T),Math.abs(u-A))},"ChebyshevDistance");o.exports=O},14390:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d,c){return c===void 0&&(c=2),Math.sqrt(Math.pow(T-s,c)+Math.pow(d-u,c))},"DistancePower");o.exports=m},2243:o=>{/** + */var O=v(function(s,u,T,A,c){return c===void 0&&(c=2),Math.sqrt(Math.pow(T-s,c)+Math.pow(A-u,c))},"DistancePower");o.exports=O},2243:o=>{/** * @author samme * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){return Math.abs(s-T)+Math.abs(u-d)},"SnakeDistance");o.exports=m},89774:o=>{/** + */var O=v(function(s,u,T,A){return Math.abs(s-T)+Math.abs(u-A)},"SnakeDistance");o.exports=O},89774:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){var c=s-T,A=u-d;return c*c+A*A},"DistanceSquared");o.exports=m},50994:(o,m,s)=>{/** + */var O=v(function(s,u,T,A){var c=s-T,d=u-A;return c*c+d*d},"DistanceSquared");o.exports=O},50994:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={Between:s(20339),BetweenPoints:s(52816),BetweenPointsSquared:s(64559),Chebyshev:s(82340),Power:s(14390),Snake:s(2243),Squared:s(89774)}},62640:(o,m,s)=>{/** + */o.exports={Between:s(20339),BetweenPoints:s(52816),BetweenPointsSquared:s(64559),Chebyshev:s(82340),Power:s(14390),Snake:s(2243),Squared:s(89774)}},62640:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(54178),T=s(41521),d=s(79980),c=s(85433),A=s(99140),h=s(48857),f=s(81596),S=s(59133),O=s(98516),L=s(35248),p=s(82500),N=s(49752);o.exports={Power0:f,Power1:S.Out,Power2:c.Out,Power3:O.Out,Power4:L.Out,Linear:f,Quad:S.Out,Cubic:c.Out,Quart:O.Out,Quint:L.Out,Sine:p.Out,Expo:h.Out,Circ:d.Out,Elastic:A.Out,Back:u.Out,Bounce:T.Out,Stepped:N,"Quad.easeIn":S.In,"Cubic.easeIn":c.In,"Quart.easeIn":O.In,"Quint.easeIn":L.In,"Sine.easeIn":p.In,"Expo.easeIn":h.In,"Circ.easeIn":d.In,"Elastic.easeIn":A.In,"Back.easeIn":u.In,"Bounce.easeIn":T.In,"Quad.easeOut":S.Out,"Cubic.easeOut":c.Out,"Quart.easeOut":O.Out,"Quint.easeOut":L.Out,"Sine.easeOut":p.Out,"Expo.easeOut":h.Out,"Circ.easeOut":d.Out,"Elastic.easeOut":A.Out,"Back.easeOut":u.Out,"Bounce.easeOut":T.Out,"Quad.easeInOut":S.InOut,"Cubic.easeInOut":c.InOut,"Quart.easeInOut":O.InOut,"Quint.easeInOut":L.InOut,"Sine.easeInOut":p.InOut,"Expo.easeInOut":h.InOut,"Circ.easeInOut":d.InOut,"Elastic.easeInOut":A.InOut,"Back.easeInOut":u.InOut,"Bounce.easeInOut":T.InOut}},1639:o=>{/** + */var u=s(54178),T=s(41521),A=s(79980),c=s(85433),d=s(99140),h=s(48857),f=s(81596),S=s(59133),R=s(98516),L=s(35248),p=s(82500),N=s(49752);o.exports={Power0:f,Power1:S.Out,Power2:c.Out,Power3:R.Out,Power4:L.Out,Linear:f,Quad:S.Out,Cubic:c.Out,Quart:R.Out,Quint:L.Out,Sine:p.Out,Expo:h.Out,Circ:A.Out,Elastic:d.Out,Back:u.Out,Bounce:T.Out,Stepped:N,"Quad.easeIn":S.In,"Cubic.easeIn":c.In,"Quart.easeIn":R.In,"Quint.easeIn":L.In,"Sine.easeIn":p.In,"Expo.easeIn":h.In,"Circ.easeIn":A.In,"Elastic.easeIn":d.In,"Back.easeIn":u.In,"Bounce.easeIn":T.In,"Quad.easeOut":S.Out,"Cubic.easeOut":c.Out,"Quart.easeOut":R.Out,"Quint.easeOut":L.Out,"Sine.easeOut":p.Out,"Expo.easeOut":h.Out,"Circ.easeOut":A.Out,"Elastic.easeOut":d.Out,"Back.easeOut":u.Out,"Bounce.easeOut":T.Out,"Quad.easeInOut":S.InOut,"Cubic.easeInOut":c.InOut,"Quart.easeInOut":R.InOut,"Quint.easeInOut":L.InOut,"Sine.easeInOut":p.InOut,"Expo.easeInOut":h.InOut,"Circ.easeInOut":A.InOut,"Elastic.easeInOut":d.InOut,"Back.easeInOut":u.InOut,"Bounce.easeInOut":T.InOut}},1639:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return u===void 0&&(u=1.70158),s*s*((u+1)*s-u)},"In");o.exports=m},50099:o=>{/** + */var O=v(function(s,u){return u===void 0&&(u=1.70158),s*s*((u+1)*s-u)},"In");o.exports=O},50099:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){u===void 0&&(u=1.70158);var T=u*1.525;return(s*=2)<1?.5*(s*s*((T+1)*s-T)):.5*((s-=2)*s*((T+1)*s+T)+2)},"InOut");o.exports=m},41286:o=>{/** + */var O=v(function(s,u){u===void 0&&(u=1.70158);var T=u*1.525;return(s*=2)<1?.5*(s*s*((T+1)*s-T)):.5*((s-=2)*s*((T+1)*s+T)+2)},"InOut");o.exports=O},41286:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return u===void 0&&(u=1.70158),--s*s*((u+1)*s+u)+1},"Out");o.exports=m},54178:(o,m,s)=>{/** + */var O=v(function(s,u){return u===void 0&&(u=1.70158),--s*s*((u+1)*s+u)+1},"Out");o.exports=O},54178:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3927,15 +3927,15 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s=1-s,s<.36363636363636365?1-7.5625*s*s:s<.7272727272727273?1-(7.5625*(s-=.5454545454545454)*s+.75):s<.9090909090909091?1-(7.5625*(s-=.8181818181818182)*s+.9375):1-(7.5625*(s-=.9545454545454546)*s+.984375)},"In");o.exports=m},41788:o=>{/** + */var O=v(function(s){return s=1-s,s<.36363636363636365?1-7.5625*s*s:s<.7272727272727273?1-(7.5625*(s-=.5454545454545454)*s+.75):s<.9090909090909091?1-(7.5625*(s-=.8181818181818182)*s+.9375):1-(7.5625*(s-=.9545454545454546)*s+.984375)},"In");o.exports=O},41788:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){var u=!1;return s<.5?(s=1-s*2,u=!0):s=s*2-1,s<.36363636363636365?s=7.5625*s*s:s<.7272727272727273?s=7.5625*(s-=.5454545454545454)*s+.75:s<.9090909090909091?s=7.5625*(s-=.8181818181818182)*s+.9375:s=7.5625*(s-=.9545454545454546)*s+.984375,u?(1-s)*.5:s*.5+.5},"InOut");o.exports=m},69905:o=>{/** + */var O=v(function(s){var u=!1;return s<.5?(s=1-s*2,u=!0):s=s*2-1,s<.36363636363636365?s=7.5625*s*s:s<.7272727272727273?s=7.5625*(s-=.5454545454545454)*s+.75:s<.9090909090909091?s=7.5625*(s-=.8181818181818182)*s+.9375:s=7.5625*(s-=.9545454545454546)*s+.984375,u?(1-s)*.5:s*.5+.5},"InOut");o.exports=O},69905:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s<.36363636363636365?7.5625*s*s:s<.7272727272727273?7.5625*(s-=.5454545454545454)*s+.75:s<.9090909090909091?7.5625*(s-=.8181818181818182)*s+.9375:7.5625*(s-=.9545454545454546)*s+.984375},"Out");o.exports=m},41521:(o,m,s)=>{/** + */var O=v(function(s){return s<.36363636363636365?7.5625*s*s:s<.7272727272727273?7.5625*(s-=.5454545454545454)*s+.75:s<.9090909090909091?7.5625*(s-=.8181818181818182)*s+.9375:7.5625*(s-=.9545454545454546)*s+.984375},"Out");o.exports=O},41521:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3943,15 +3943,15 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return 1-Math.sqrt(1-s*s)},"In");o.exports=m},4177:o=>{/** + */var O=v(function(s){return 1-Math.sqrt(1-s*s)},"In");o.exports=O},4177:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return(s*=2)<1?-.5*(Math.sqrt(1-s*s)-1):.5*(Math.sqrt(1-(s-=2)*s)+1)},"InOut");o.exports=m},57512:o=>{/** + */var O=v(function(s){return(s*=2)<1?-.5*(Math.sqrt(1-s*s)-1):.5*(Math.sqrt(1-(s-=2)*s)+1)},"InOut");o.exports=O},57512:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return Math.sqrt(1- --s*s)},"Out");o.exports=m},79980:(o,m,s)=>{/** + */var O=v(function(s){return Math.sqrt(1- --s*s)},"Out");o.exports=O},79980:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3959,15 +3959,15 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s*s*s},"In");o.exports=m},82820:o=>{/** + */var O=v(function(s){return s*s*s},"In");o.exports=O},82820:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return(s*=2)<1?.5*s*s*s:.5*((s-=2)*s*s+2)},"InOut");o.exports=m},35033:o=>{/** + */var O=v(function(s){return(s*=2)<1?.5*s*s*s:.5*((s-=2)*s*s+2)},"InOut");o.exports=O},35033:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return--s*s*s+1},"Out");o.exports=m},85433:(o,m,s)=>{/** + */var O=v(function(s){return--s*s*s+1},"Out");o.exports=O},85433:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3975,15 +3975,15 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){if(u===void 0&&(u=.1),T===void 0&&(T=.1),s===0)return 0;if(s===1)return 1;var d=T/4;return u<1?u=1:d=T*Math.asin(1/u)/(2*Math.PI),-(u*Math.pow(2,10*(s-=1))*Math.sin((s-d)*(2*Math.PI)/T))},"In");o.exports=m},50665:o=>{/** + */var O=v(function(s,u,T){if(u===void 0&&(u=.1),T===void 0&&(T=.1),s===0)return 0;if(s===1)return 1;var A=T/4;return u<1?u=1:A=T*Math.asin(1/u)/(2*Math.PI),-(u*Math.pow(2,10*(s-=1))*Math.sin((s-A)*(2*Math.PI)/T))},"In");o.exports=O},50665:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){if(u===void 0&&(u=.1),T===void 0&&(T=.1),s===0)return 0;if(s===1)return 1;var d=T/4;return u<1?u=1:d=T*Math.asin(1/u)/(2*Math.PI),(s*=2)<1?-.5*(u*Math.pow(2,10*(s-=1))*Math.sin((s-d)*(2*Math.PI)/T)):u*Math.pow(2,-10*(s-=1))*Math.sin((s-d)*(2*Math.PI)/T)*.5+1},"InOut");o.exports=m},7744:o=>{/** + */var O=v(function(s,u,T){if(u===void 0&&(u=.1),T===void 0&&(T=.1),s===0)return 0;if(s===1)return 1;var A=T/4;return u<1?u=1:A=T*Math.asin(1/u)/(2*Math.PI),(s*=2)<1?-.5*(u*Math.pow(2,10*(s-=1))*Math.sin((s-A)*(2*Math.PI)/T)):u*Math.pow(2,-10*(s-=1))*Math.sin((s-A)*(2*Math.PI)/T)*.5+1},"InOut");o.exports=O},7744:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){if(u===void 0&&(u=.1),T===void 0&&(T=.1),s===0)return 0;if(s===1)return 1;var d=T/4;return u<1?u=1:d=T*Math.asin(1/u)/(2*Math.PI),u*Math.pow(2,-10*s)*Math.sin((s-d)*(2*Math.PI)/T)+1},"Out");o.exports=m},99140:(o,m,s)=>{/** + */var O=v(function(s,u,T){if(u===void 0&&(u=.1),T===void 0&&(T=.1),s===0)return 0;if(s===1)return 1;var A=T/4;return u<1?u=1:A=T*Math.asin(1/u)/(2*Math.PI),u*Math.pow(2,-10*s)*Math.sin((s-A)*(2*Math.PI)/T)+1},"Out");o.exports=O},99140:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3991,19 +3991,19 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return Math.pow(2,10*(s-1))-.001},"In");o.exports=m},87844:o=>{/** + */var O=v(function(s){return Math.pow(2,10*(s-1))-.001},"In");o.exports=O},87844:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return(s*=2)<1?.5*Math.pow(2,10*(s-1)):.5*(2-Math.pow(2,-10*(s-1)))},"InOut");o.exports=m},89433:o=>{/** + */var O=v(function(s){return(s*=2)<1?.5*Math.pow(2,10*(s-1)):.5*(2-Math.pow(2,-10*(s-1)))},"InOut");o.exports=O},89433:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return 1-Math.pow(2,-10*s)},"Out");o.exports=m},48857:(o,m,s)=>{/** + */var O=v(function(s){return 1-Math.pow(2,-10*s)},"Out");o.exports=O},48857:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={In:s(24590),Out:s(89433),InOut:s(87844)}},48820:(o,m,s)=>{/** + */o.exports={In:s(24590),Out:s(89433),InOut:s(87844)}},48820:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4011,7 +4011,7 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s},"Linear");o.exports=m},81596:(o,m,s)=>{/** + */var O=v(function(s){return s},"Linear");o.exports=O},81596:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4019,15 +4019,15 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s*s},"In");o.exports=m},20544:o=>{/** + */var O=v(function(s){return s*s},"In");o.exports=O},20544:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return(s*=2)<1?.5*s*s:-.5*(--s*(s-2)-1)},"InOut");o.exports=m},92029:o=>{/** + */var O=v(function(s){return(s*=2)<1?.5*s*s:-.5*(--s*(s-2)-1)},"InOut");o.exports=O},92029:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s*(2-s)},"Out");o.exports=m},59133:(o,m,s)=>{/** + */var O=v(function(s){return s*(2-s)},"Out");o.exports=O},59133:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4035,15 +4035,15 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s*s*s*s},"In");o.exports=m},78137:o=>{/** + */var O=v(function(s){return s*s*s*s},"In");o.exports=O},78137:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return(s*=2)<1?.5*s*s*s*s:-.5*((s-=2)*s*s*s-2)},"InOut");o.exports=m},45840:o=>{/** + */var O=v(function(s){return(s*=2)<1?.5*s*s*s*s:-.5*((s-=2)*s*s*s-2)},"InOut");o.exports=O},45840:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return 1- --s*s*s*s},"Out");o.exports=m},98516:(o,m,s)=>{/** + */var O=v(function(s){return 1- --s*s*s*s},"Out");o.exports=O},98516:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4051,15 +4051,15 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s*s*s*s*s},"In");o.exports=m},16509:o=>{/** + */var O=v(function(s){return s*s*s*s*s},"In");o.exports=O},16509:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return(s*=2)<1?.5*s*s*s*s*s:.5*((s-=2)*s*s*s*s+2)},"InOut");o.exports=m},17868:o=>{/** + */var O=v(function(s){return(s*=2)<1?.5*s*s*s*s*s:.5*((s-=2)*s*s*s*s+2)},"InOut");o.exports=O},17868:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return--s*s*s*s*s+1},"Out");o.exports=m},35248:(o,m,s)=>{/** + */var O=v(function(s){return--s*s*s*s*s+1},"Out");o.exports=O},35248:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4067,15 +4067,15 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s===0?0:s===1?1:1-Math.cos(s*Math.PI/2)},"In");o.exports=m},34025:o=>{/** + */var O=v(function(s){return s===0?0:s===1?1:1-Math.cos(s*Math.PI/2)},"In");o.exports=O},34025:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s===0?0:s===1?1:.5*(1-Math.cos(Math.PI*s))},"InOut");o.exports=m},52768:o=>{/** + */var O=v(function(s){return s===0?0:s===1?1:.5*(1-Math.cos(Math.PI*s))},"InOut");o.exports=O},52768:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s===0?0:s===1?1:Math.sin(s*Math.PI/2)},"Out");o.exports=m},82500:(o,m,s)=>{/** + */var O=v(function(s){return s===0?0:s===1?1:Math.sin(s*Math.PI/2)},"Out");o.exports=O},82500:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4083,7 +4083,7 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return u===void 0&&(u=1),s<=0?0:s>=1?1:((u*s|0)+1)*(1/u)},"Stepped");o.exports=m},49752:(o,m,s)=>{/** + */var O=v(function(s,u){return u===void 0&&(u=1),s<=0?0:s>=1?1:((u*s|0)+1)*(1/u)},"Stepped");o.exports=O},49752:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4091,59 +4091,59 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return u===void 0&&(u=1e-4),Math.ceil(s-u)},"Ceil");o.exports=m},43855:o=>{/** + */var O=v(function(s,u){return u===void 0&&(u=1e-4),Math.ceil(s-u)},"Ceil");o.exports=O},43855:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){return T===void 0&&(T=1e-4),Math.abs(s-u){/** + */var O=v(function(s,u,T){return T===void 0&&(T=1e-4),Math.abs(s-u){/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return u===void 0&&(u=1e-4),Math.floor(s+u)},"Floor");o.exports=m},5470:o=>{/** + */var O=v(function(s,u){return u===void 0&&(u=1e-4),Math.floor(s+u)},"Floor");o.exports=O},5470:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){return T===void 0&&(T=1e-4),s>u-T},"GreaterThan");o.exports=m},94977:o=>{/** + */var O=v(function(s,u,T){return T===void 0&&(T=1e-4),s>u-T},"GreaterThan");o.exports=O},94977:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){return T===void 0&&(T=1e-4),s{/** + */var O=v(function(s,u,T){return T===void 0&&(T=1e-4),s{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={Ceil:s(75698),Equal:s(43855),Floor:s(25777),GreaterThan:s(5470),LessThan:s(94977)}},75508:(o,m,s)=>{/** + */o.exports={Ceil:s(75698),Equal:s(43855),Floor:s(25777),GreaterThan:s(5470),LessThan:s(94977)}},75508:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(36383),T=s(79291),d={Angle:s(25588),Distance:s(50994),Easing:s(48820),Fuzzy:s(48379),Interpolation:s(38289),Pow2:s(49001),Snap:s(73697),RandomDataGenerator:s(28453),Average:s(53307),Bernstein:s(85710),Between:s(30976),CatmullRom:s(87842),CeilTo:s(26302),Clamp:s(45319),DegToRad:s(39506),Difference:s(61241),Euler:s(38857),Factorial:s(6411),FloatBetween:s(99472),FloorTo:s(77623),FromPercent:s(62945),GetSpeed:s(38265),IsEven:s(78702),IsEvenStrict:s(94883),Linear:s(28915),LinearXY:s(94908),MaxAdd:s(86883),Median:s(50040),MinSub:s(37204),Percent:s(65201),RadToDeg:s(43396),RandomXY:s(74362),RandomXYZ:s(60706),RandomXYZW:s(67421),Rotate:s(36305),RotateAround:s(11520),RotateAroundDistance:s(1163),RotateTo:s(70336),RoundAwayFromZero:s(2284),RoundTo:s(41013),SinCosTableGenerator:s(16922),SmootherStep:s(54261),SmoothStep:s(7602),ToXY:s(44408),TransformXY:s(85955),Within:s(60417),Wrap:s(15994),Vector2:s(26099),Vector3:s(25836),Vector4:s(61369),Matrix3:s(94434),Matrix4:s(37867),Quaternion:s(15746),RotateVec3:s(72678)};d=T(!1,d,u),o.exports=d},89318:(o,m,s)=>{/** + */var u=s(36383),T=s(79291),A={Angle:s(25588),Distance:s(50994),Easing:s(48820),Fuzzy:s(48379),Interpolation:s(38289),Pow2:s(49001),Snap:s(73697),RandomDataGenerator:s(28453),Average:s(53307),Bernstein:s(85710),Between:s(30976),CatmullRom:s(87842),CeilTo:s(26302),Clamp:s(45319),DegToRad:s(39506),Difference:s(61241),Euler:s(38857),Factorial:s(6411),FloatBetween:s(99472),FloorTo:s(77623),FromPercent:s(62945),GetSpeed:s(38265),IsEven:s(78702),IsEvenStrict:s(94883),Linear:s(28915),LinearXY:s(94908),MaxAdd:s(86883),Median:s(50040),MinSub:s(37204),Percent:s(65201),RadToDeg:s(43396),RandomXY:s(74362),RandomXYZ:s(60706),RandomXYZW:s(67421),Rotate:s(36305),RotateAround:s(11520),RotateAroundDistance:s(1163),RotateTo:s(70336),RoundAwayFromZero:s(2284),RoundTo:s(41013),SinCosTableGenerator:s(16922),SmootherStep:s(54261),SmoothStep:s(7602),ToXY:s(44408),TransformXY:s(85955),Within:s(60417),Wrap:s(15994),Vector2:s(26099),Vector3:s(25836),Vector4:s(61369),Matrix3:s(94434),Matrix4:s(37867),Quaternion:s(15746),RotateVec3:s(72678)};A=T(!1,A,u),o.exports=A},89318:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(85710),T=P(function(d,c){for(var A=0,h=d.length-1,f=0;f<=h;f++)A+=Math.pow(1-c,h-f)*Math.pow(c,f)*d[f]*u(h,f);return A},"BezierInterpolation");o.exports=T},77259:(o,m,s)=>{/** + */var u=s(85710),T=v(function(A,c){for(var d=0,h=A.length-1,f=0;f<=h;f++)d+=Math.pow(1-c,h-f)*Math.pow(c,f)*A[f]*u(h,f);return d},"BezierInterpolation");o.exports=T},77259:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(87842),T=P(function(d,c){var A=d.length-1,h=A*c,f=Math.floor(h);return d[0]===d[A]?(c<0&&(f=Math.floor(h=A*(1+c))),u(h-f,d[(f-1+A)%A],d[f],d[(f+1)%A],d[(f+2)%A])):c<0?d[0]-(u(-h,d[0],d[0],d[1],d[1])-d[0]):c>1?d[A]-(u(h-A,d[A],d[A],d[A-1],d[A-1])-d[A]):u(h-f,d[f?f-1:0],d[f],d[A{/** + */var u=s(87842),T=v(function(A,c){var d=A.length-1,h=d*c,f=Math.floor(h);return A[0]===A[d]?(c<0&&(f=Math.floor(h=d*(1+c))),u(h-f,A[(f-1+d)%d],A[f],A[(f+1)%d],A[(f+2)%d])):c<0?A[0]-(u(-h,A[0],A[0],A[1],A[1])-A[0]):c>1?A[d]-(u(h-d,A[d],A[d],A[d-1],A[d-1])-A[d]):u(h-f,A[f?f-1:0],A[f],A[d{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */function m(c,A){var h=1-c;return h*h*h*A}P(m,"P0");function s(c,A){var h=1-c;return 3*h*h*c*A}P(s,"P1");function u(c,A){return 3*(1-c)*c*c*A}P(u,"P2");function T(c,A){return c*c*c*A}P(T,"P3");var d=P(function(c,A,h,f,S){return m(c,A)+s(c,h)+u(c,f)+T(c,S)},"CubicBezierInterpolation");o.exports=d},28392:(o,m,s)=>{/** + */function O(c,d){var h=1-c;return h*h*h*d}v(O,"P0");function s(c,d){var h=1-c;return 3*h*h*c*d}v(s,"P1");function u(c,d){return 3*(1-c)*c*c*d}v(u,"P2");function T(c,d){return c*c*c*d}v(T,"P3");var A=v(function(c,d,h,f,S){return O(c,d)+s(c,h)+u(c,f)+T(c,S)},"CubicBezierInterpolation");o.exports=A},28392:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(28915),T=P(function(d,c){var A=d.length-1,h=A*c,f=Math.floor(h);return c<0?u(d[0],d[1],h):c>1?u(d[A],d[A-1],A-h):u(d[f],d[f+1>A?A:f+1],h-f)},"LinearInterpolation");o.exports=T},32112:o=>{/** + */var u=s(28915),T=v(function(A,c){var d=A.length-1,h=d*c,f=Math.floor(h);return c<0?u(A[0],A[1],h):c>1?u(A[d],A[d-1],d-h):u(A[f],A[f+1>d?d:f+1],h-f)},"LinearInterpolation");o.exports=T},32112:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */function m(d,c){var A=1-d;return A*A*c}P(m,"P0");function s(d,c){return 2*(1-d)*d*c}P(s,"P1");function u(d,c){return d*d*c}P(u,"P2");var T=P(function(d,c,A,h){return m(d,c)+s(d,A)+u(d,h)},"QuadraticBezierInterpolation");o.exports=T},47235:(o,m,s)=>{/** + */function O(A,c){var d=1-A;return d*d*c}v(O,"P0");function s(A,c){return 2*(1-A)*A*c}v(s,"P1");function u(A,c){return A*A*c}v(u,"P2");var T=v(function(A,c,d,h){return O(A,c)+s(A,d)+u(A,h)},"QuadraticBezierInterpolation");o.exports=T},47235:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(7602),T=P(function(d,c,A){return c+(A-c)*u(d,0,1)},"SmoothStepInterpolation");o.exports=T},50178:(o,m,s)=>{/** + */var u=s(7602),T=v(function(A,c,d){return c+(d-c)*u(A,0,1)},"SmoothStepInterpolation");o.exports=T},50178:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(54261),T=P(function(d,c,A){return c+(A-c)*u(d,0,1)},"SmootherStepInterpolation");o.exports=T},38289:(o,m,s)=>{/** + */var u=s(54261),T=v(function(A,c,d){return c+(d-c)*u(A,0,1)},"SmootherStepInterpolation");o.exports=T},38289:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4151,171 +4151,171 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){var u=Math.log(s)/.6931471805599453;return 1<{/** + */var O=v(function(s){var u=Math.log(s)/.6931471805599453;return 1<{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return s>0&&(s&s-1)===0&&u>0&&(u&u-1)===0},"IsSizePowerOfTwo");o.exports=m},81230:o=>{/** + */var O=v(function(s,u){return s>0&&(s&s-1)===0&&u>0&&(u&u-1)===0},"IsSizePowerOfTwo");o.exports=O},81230:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s>0&&(s&s-1)===0},"IsValuePowerOfTwo");o.exports=m},49001:(o,m,s)=>{/** + */var O=v(function(s){return s>0&&(s&s-1)===0},"IsValuePowerOfTwo");o.exports=O},49001:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={GetNext:s(98439),IsSize:s(50030),IsValue:s(81230)}},28453:(o,m,s)=>{/** + */o.exports={GetNext:s(98439),IsSize:s(50030),IsValue:s(81230)}},28453:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=new u({initialize:P(function(c){c===void 0&&(c=[(Date.now()*Math.random()).toString()]),this.c=1,this.s0=0,this.s1=0,this.s2=0,this.n=0,this.signs=[-1,1],c&&this.init(c)},"RandomDataGenerator"),rnd:function(){var d=2091639*this.s0+this.c*23283064365386963e-26;return this.c=d|0,this.s0=this.s1,this.s1=this.s2,this.s2=d-this.c,this.s2},hash:function(d){var c,A=this.n;d=d.toString();for(var h=0;h>>0,c-=A,c*=A,A=c>>>0,c-=A,A+=c*4294967296;return this.n=A,(A>>>0)*23283064365386963e-26},init:function(d){typeof d=="string"?this.state(d):this.sow(d)},sow:function(d){if(this.n=4022871197,this.s0=this.hash(" "),this.s1=this.hash(" "),this.s2=this.hash(" "),this.c=1,!!d)for(var c=0;c0;A--){var h=Math.floor(this.frac()*(A+1)),f=d[h];d[h]=d[A],d[A]=f}return d}});o.exports=T},63448:o=>{/** + */var u=s(83419),T=new u({initialize:v(function(c){c===void 0&&(c=[(Date.now()*Math.random()).toString()]),this.c=1,this.s0=0,this.s1=0,this.s2=0,this.n=0,this.signs=[-1,1],c&&this.init(c)},"RandomDataGenerator"),rnd:function(){var A=2091639*this.s0+this.c*23283064365386963e-26;return this.c=A|0,this.s0=this.s1,this.s1=this.s2,this.s2=A-this.c,this.s2},hash:function(A){var c,d=this.n;A=A.toString();for(var h=0;h>>0,c-=d,c*=d,d=c>>>0,c-=d,d+=c*4294967296;return this.n=d,(d>>>0)*23283064365386963e-26},init:function(A){typeof A=="string"?this.state(A):this.sow(A)},sow:function(A){if(this.n=4022871197,this.s0=this.hash(" "),this.s1=this.hash(" "),this.s2=this.hash(" "),this.c=1,!!A)for(var c=0;c0;d--){var h=Math.floor(this.frac()*(d+1)),f=A[h];A[h]=A[d],A[d]=f}return A}});o.exports=T},63448:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){return T===void 0&&(T=0),u===0?s:(s-=T,s=u*Math.ceil(s/u),d?(T+s)/u:T+s)},"SnapCeil");o.exports=m},56583:o=>{/** + */var O=v(function(s,u,T,A){return T===void 0&&(T=0),u===0?s:(s-=T,s=u*Math.ceil(s/u),A?(T+s)/u:T+s)},"SnapCeil");o.exports=O},56583:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){return T===void 0&&(T=0),u===0?s:(s-=T,s=u*Math.floor(s/u),d?(T+s)/u:T+s)},"SnapFloor");o.exports=m},77720:o=>{/** + */var O=v(function(s,u,T,A){return T===void 0&&(T=0),u===0?s:(s-=T,s=u*Math.floor(s/u),A?(T+s)/u:T+s)},"SnapFloor");o.exports=O},77720:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){return T===void 0&&(T=0),u===0?s:(s-=T,s=u*Math.round(s/u),d?(T+s)/u:T+s)},"SnapTo");o.exports=m},73697:(o,m,s)=>{/** + */var O=v(function(s,u,T,A){return T===void 0&&(T=0),u===0?s:(s-=T,s=u*Math.round(s/u),A?(T+s)/u:T+s)},"SnapTo");o.exports=O},73697:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={Ceil:s(63448),Floor:s(56583),To:s(77720)}},85454:(o,m,s)=>{/** + */o.exports={Ceil:s(63448),Floor:s(56583),To:s(77720)}},85454:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */s(63595);var u=s(8054),T=s(79291),d={Actions:s(61061),Animations:s(60421),BlendModes:s(10312),Cache:s(83388),Cameras:s(26638),Core:s(42857),Class:s(83419),Create:s(15822),Curves:s(25410),Data:s(44965),Display:s(27460),DOM:s(84902),Events:s(93055),FX:s(66064),Game:s(50127),GameObjects:s(77856),Geom:s(55738),Input:s(14350),Loader:s(57777),Math:s(75508),Physics:s(44563),Plugins:s(18922),Renderer:s(36909),Scale:s(93364),ScaleModes:s(29795),Scene:s(97482),Scenes:s(62194),Structs:s(41392),Textures:s(27458),Tilemaps:s(62501),Time:s(90291),Tweens:s(43066),Utils:s(91799)};d.Sound=s(23717),d=T(!1,d,u),o.exports=d,s.g.Phaser=d},71289:(o,m,s)=>{/** + */s(63595);var u=s(8054),T=s(79291),A={Actions:s(61061),Animations:s(60421),BlendModes:s(10312),Cache:s(83388),Cameras:s(26638),Core:s(42857),Class:s(83419),Create:s(15822),Curves:s(25410),Data:s(44965),Display:s(27460),DOM:s(84902),Events:s(93055),FX:s(66064),Game:s(50127),GameObjects:s(77856),Geom:s(55738),Input:s(14350),Loader:s(57777),Math:s(75508),Physics:s(44563),Plugins:s(18922),Renderer:s(36909),Scale:s(93364),ScaleModes:s(29795),Scene:s(97482),Scenes:s(62194),Structs:s(41392),Textures:s(27458),Tilemaps:s(62501),Time:s(90291),Tweens:s(43066),Utils:s(91799)};A.Sound=s(23717),A=T(!1,A,u),o.exports=A,s.g.Phaser=A},71289:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(92209),d=s(88571),c=new u({Extends:d,Mixins:[T.Acceleration,T.Angular,T.Bounce,T.Collision,T.Debug,T.Drag,T.Enable,T.Friction,T.Gravity,T.Immovable,T.Mass,T.Pushable,T.Size,T.Velocity],initialize:P(function(h,f,S,O,L){d.call(this,h,f,S,O,L),this.body=null},"ArcadeImage")});o.exports=c},86689:(o,m,s)=>{/** + */var u=s(83419),T=s(92209),A=s(88571),c=new u({Extends:A,Mixins:[T.Acceleration,T.Angular,T.Bounce,T.Collision,T.Debug,T.Drag,T.Enable,T.Friction,T.Gravity,T.Immovable,T.Mass,T.Pushable,T.Size,T.Velocity],initialize:v(function(h,f,S,R,L){A.call(this,h,f,S,R,L),this.body=null},"ArcadeImage")});o.exports=c},86689:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(39506),d=s(20339),c=s(89774),A=s(66022),h=s(95540),f=s(46975),S=s(72441),O=s(47956),L=s(37277),p=s(44594),N=s(26099),g=s(82248),C=new u({initialize:P(function(M){this.scene=M,this.systems=M.sys,this.config=this.getConfig(),this.world,this.add,this._category=1,M.sys.events.once(p.BOOT,this.boot,this),M.sys.events.on(p.START,this.start,this)},"ArcadePhysics"),boot:function(){this.world=new g(this.scene,this.config),this.add=new A(this.world),this.systems.events.once(p.DESTROY,this.destroy,this)},start:function(){this.world||(this.world=new g(this.scene,this.config),this.add=new A(this.world));var v=this.systems.events;h(this.config,"customUpdate",!1)||v.on(p.UPDATE,this.world.update,this.world),v.on(p.POST_UPDATE,this.world.postUpdate,this.world),v.once(p.SHUTDOWN,this.shutdown,this)},enableUpdate:function(){this.systems.events.on(p.UPDATE,this.world.update,this.world)},disableUpdate:function(){this.systems.events.off(p.UPDATE,this.world.update,this.world)},getConfig:function(){var v=this.systems.game.config.physics,M=this.systems.settings.physics,D=f(h(M,"arcade",{}),h(v,"arcade",{}));return D},nextCategory:function(){return this._category=this._category<<1,this._category},overlap:function(v,M,D,G,H){return D===void 0&&(D=null),G===void 0&&(G=null),H===void 0&&(H=D),this.world.collideObjects(v,M,D,G,H,!0)},collide:function(v,M,D,G,H){return D===void 0&&(D=null),G===void 0&&(G=null),H===void 0&&(H=D),this.world.collideObjects(v,M,D,G,H,!1)},collideTiles:function(v,M,D,G,H){return this.world.collideTiles(v,M,D,G,H)},overlapTiles:function(v,M,D,G,H){return this.world.overlapTiles(v,M,D,G,H)},pause:function(){return this.world.pause()},resume:function(){return this.world.resume()},accelerateTo:function(v,M,D,G,H,B){G===void 0&&(G=60);var _=Math.atan2(D-v.y,M-v.x);return v.body.acceleration.setToPolar(_,G),H!==void 0&&B!==void 0&&v.body.maxVelocity.set(H,B),_},accelerateToObject:function(v,M,D,G,H){return this.accelerateTo(v,M.x,M.y,D,G,H)},closest:function(v,M){M||(M=this.world.bodies.entries);for(var D=Number.MAX_VALUE,G=null,H=v.x,B=v.y,_=M.length,w=0;w<_;w++){var b=M[w],F=b.body||b;if(!(v===b||v===F||v===F.gameObject||v===F.center)){var k=c(H,B,F.center.x,F.center.y);kD&&(G=b,D=k)}}return G},moveTo:function(v,M,D,G,H){G===void 0&&(G=60),H===void 0&&(H=0);var B=Math.atan2(D-v.y,M-v.x);return H>0&&(G=d(v.x,v.y,M,D)/(H/1e3)),v.body.velocity.setToPolar(B,G),B},moveToObject:function(v,M,D,G){return this.moveTo(v,M.x,M.y,D,G)},velocityFromAngle:function(v,M,D){return M===void 0&&(M=60),D===void 0&&(D=new N),D.setToPolar(T(v),M)},velocityFromRotation:function(v,M,D){return M===void 0&&(M=60),D===void 0&&(D=new N),D.setToPolar(v,M)},overlapRect:function(v,M,D,G,H,B){return O(this.world,v,M,D,G,H,B)},overlapCirc:function(v,M,D,G,H){return S(this.world,v,M,D,G,H)},shutdown:function(){if(this.world){var v=this.systems.events;v.off(p.UPDATE,this.world.update,this.world),v.off(p.POST_UPDATE,this.world.postUpdate,this.world),v.off(p.SHUTDOWN,this.shutdown,this),this.add.destroy(),this.world.destroy(),this.add=null,this.world=null,this._category=1}},destroy:function(){this.shutdown(),this.scene.sys.events.off(p.START,this.start,this),this.scene=null,this.systems=null}});L.register("ArcadePhysics",C,"arcadePhysics"),o.exports=C},13759:(o,m,s)=>{/** + */var u=s(83419),T=s(39506),A=s(20339),c=s(89774),d=s(66022),h=s(95540),f=s(46975),S=s(72441),R=s(47956),L=s(37277),p=s(44594),N=s(26099),g=s(82248),C=new u({initialize:v(function(M){this.scene=M,this.systems=M.sys,this.config=this.getConfig(),this.world,this.add,this._category=1,M.sys.events.once(p.BOOT,this.boot,this),M.sys.events.on(p.START,this.start,this)},"ArcadePhysics"),boot:function(){this.world=new g(this.scene,this.config),this.add=new d(this.world),this.systems.events.once(p.DESTROY,this.destroy,this)},start:function(){this.world||(this.world=new g(this.scene,this.config),this.add=new d(this.world));var P=this.systems.events;h(this.config,"customUpdate",!1)||P.on(p.UPDATE,this.world.update,this.world),P.on(p.POST_UPDATE,this.world.postUpdate,this.world),P.once(p.SHUTDOWN,this.shutdown,this)},enableUpdate:function(){this.systems.events.on(p.UPDATE,this.world.update,this.world)},disableUpdate:function(){this.systems.events.off(p.UPDATE,this.world.update,this.world)},getConfig:function(){var P=this.systems.game.config.physics,M=this.systems.settings.physics,D=f(h(M,"arcade",{}),h(P,"arcade",{}));return D},nextCategory:function(){return this._category=this._category<<1,this._category},overlap:function(P,M,D,G,H){return D===void 0&&(D=null),G===void 0&&(G=null),H===void 0&&(H=D),this.world.collideObjects(P,M,D,G,H,!0)},collide:function(P,M,D,G,H){return D===void 0&&(D=null),G===void 0&&(G=null),H===void 0&&(H=D),this.world.collideObjects(P,M,D,G,H,!1)},collideTiles:function(P,M,D,G,H){return this.world.collideTiles(P,M,D,G,H)},overlapTiles:function(P,M,D,G,H){return this.world.overlapTiles(P,M,D,G,H)},pause:function(){return this.world.pause()},resume:function(){return this.world.resume()},accelerateTo:function(P,M,D,G,H,B){G===void 0&&(G=60);var b=Math.atan2(D-P.y,M-P.x);return P.body.acceleration.setToPolar(b,G),H!==void 0&&B!==void 0&&P.body.maxVelocity.set(H,B),b},accelerateToObject:function(P,M,D,G,H){return this.accelerateTo(P,M.x,M.y,D,G,H)},closest:function(P,M){M||(M=this.world.bodies.entries);for(var D=Number.MAX_VALUE,G=null,H=P.x,B=P.y,b=M.length,w=0;wD&&(G=_,D=x)}}return G},moveTo:function(P,M,D,G,H){G===void 0&&(G=60),H===void 0&&(H=0);var B=Math.atan2(D-P.y,M-P.x);return H>0&&(G=A(P.x,P.y,M,D)/(H/1e3)),P.body.velocity.setToPolar(B,G),B},moveToObject:function(P,M,D,G){return this.moveTo(P,M.x,M.y,D,G)},velocityFromAngle:function(P,M,D){return M===void 0&&(M=60),D===void 0&&(D=new N),D.setToPolar(T(P),M)},velocityFromRotation:function(P,M,D){return M===void 0&&(M=60),D===void 0&&(D=new N),D.setToPolar(P,M)},overlapRect:function(P,M,D,G,H,B){return R(this.world,P,M,D,G,H,B)},overlapCirc:function(P,M,D,G,H){return S(this.world,P,M,D,G,H)},shutdown:function(){if(this.world){var P=this.systems.events;P.off(p.UPDATE,this.world.update,this.world),P.off(p.POST_UPDATE,this.world.postUpdate,this.world),P.off(p.SHUTDOWN,this.shutdown,this),this.add.destroy(),this.world.destroy(),this.add=null,this.world=null,this._category=1}},destroy:function(){this.shutdown(),this.scene.sys.events.off(p.START,this.start,this),this.scene=null,this.systems=null}});L.register("ArcadePhysics",C,"arcadePhysics"),o.exports=C},13759:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(92209),d=s(68287),c=new u({Extends:d,Mixins:[T.Acceleration,T.Angular,T.Bounce,T.Collision,T.Debug,T.Drag,T.Enable,T.Friction,T.Gravity,T.Immovable,T.Mass,T.Pushable,T.Size,T.Velocity],initialize:P(function(h,f,S,O,L){d.call(this,h,f,S,O,L),this.body=null},"ArcadeSprite")});o.exports=c},37742:(o,m,s)=>{/** + */var u=s(83419),T=s(92209),A=s(68287),c=new u({Extends:A,Mixins:[T.Acceleration,T.Angular,T.Bounce,T.Collision,T.Debug,T.Drag,T.Enable,T.Friction,T.Gravity,T.Immovable,T.Mass,T.Pushable,T.Size,T.Velocity],initialize:v(function(h,f,S,R,L){A.call(this,h,f,S,R,L),this.body=null},"ArcadeSprite")});o.exports=c},37742:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(78389),d=s(37747),c=s(63012),A=s(43396),h=s(87841),f=s(37303),S=s(95829),O=s(26099),L=new u({Mixins:[T],initialize:P(function(N,g){var C=64,v=64,M={x:0,y:0,angle:0,rotation:0,scaleX:1,scaleY:1,displayOriginX:0,displayOriginY:0},D=g!==void 0;D&&g.displayWidth&&(C=g.displayWidth,v=g.displayHeight),D||(g=M),this.world=N,this.gameObject=D?g:void 0,this.isBody=!0,this.transform={x:g.x,y:g.y,rotation:g.angle,scaleX:g.scaleX,scaleY:g.scaleY,displayOriginX:g.displayOriginX,displayOriginY:g.displayOriginY},this.debugShowBody=N.defaults.debugShowBody,this.debugShowVelocity=N.defaults.debugShowVelocity,this.debugBodyColor=N.defaults.bodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new O,this.position=new O(g.x-g.scaleX*g.displayOriginX,g.y-g.scaleY*g.displayOriginY),this.prev=this.position.clone(),this.prevFrame=this.position.clone(),this.allowRotation=!0,this.rotation=g.angle,this.preRotation=g.angle,this.width=C,this.height=v,this.sourceWidth=C,this.sourceHeight=v,g.frame&&(this.sourceWidth=g.frame.realWidth,this.sourceHeight=g.frame.realHeight),this.halfWidth=Math.abs(C/2),this.halfHeight=Math.abs(v/2),this.center=new O(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=new O,this.newVelocity=new O,this.deltaMax=new O,this.acceleration=new O,this.allowDrag=!0,this.drag=new O,this.allowGravity=!0,this.gravity=new O,this.bounce=new O,this.worldBounce=null,this.customBoundsRectangle=N.bounds,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.maxVelocity=new O(1e4,1e4),this.maxSpeed=-1,this.friction=new O(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=d.FACING_NONE,this.immovable=!1,this.pushable=!0,this.slideFactor=new O(1,1),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=S(!1),this.touching=S(!0),this.wasTouching=S(!0),this.blocked=S(!0),this.syncBounds=!1,this.physicsType=d.DYNAMIC_BODY,this.collisionCategory=1,this.collisionMask=1,this._sx=g.scaleX,this._sy=g.scaleY,this._dx=0,this._dy=0,this._tx=0,this._ty=0,this._bounds=new h,this.directControl=!1,this.autoFrame=this.position.clone()},"Body"),updateBounds:function(){var p=this.gameObject,N=this.transform;if(p.parentContainer){var g=p.getWorldTransformMatrix(this.world._tempMatrix,this.world._tempMatrix2);N.x=g.tx,N.y=g.ty,N.rotation=A(g.rotation),N.scaleX=g.scaleX,N.scaleY=g.scaleY,N.displayOriginX=p.displayOriginX,N.displayOriginY=p.displayOriginY}else N.x=p.x,N.y=p.y,N.rotation=p.angle,N.scaleX=p.scaleX,N.scaleY=p.scaleY,N.displayOriginX=p.displayOriginX,N.displayOriginY=p.displayOriginY;var C=!1;if(this.syncBounds){var v=p.getBounds(this._bounds);this.width=v.width,this.height=v.height,C=!0}else{var M=Math.abs(N.scaleX),D=Math.abs(N.scaleY);(this._sx!==M||this._sy!==D)&&(this.width=this.sourceWidth*M,this.height=this.sourceHeight*D,this._sx=M,this._sy=D,C=!0)}C&&(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 p=this.transform;this.position.x=p.x+p.scaleX*(this.offset.x-p.displayOriginX),this.position.y=p.y+p.scaleY*(this.offset.y-p.displayOriginY),this.updateCenter()},resetFlags:function(p){p===void 0&&(p=!1);var N=this.wasTouching,g=this.touching,C=this.blocked;p?S(!0,N):(N.none=g.none,N.up=g.up,N.down=g.down,N.left=g.left,N.right=g.right),S(!0,g),S(!0,C),this.overlapR=0,this.overlapX=0,this.overlapY=0,this.embedded=!1},preUpdate:function(p,N){if(p&&this.resetFlags(),this.gameObject&&this.updateFromGameObject(),this.rotation=this.transform.rotation,this.preRotation=this.rotation,this.moves){var g=this.position;this.prev.x=g.x,this.prev.y=g.y,this.prevFrame.x=g.x,this.prevFrame.y=g.y}p&&this.update(N)},update:function(p){var N=this.prev,g=this.position,C=this.velocity;if(N.set(g.x,g.y),!this.moves){this._dx=g.x-N.x,this._dy=g.y-N.y;return}if(this.directControl){var v=this.autoFrame;C.set((g.x-v.x)/p,(g.y-v.y)/p),this.world.updateMotion(this,p),this._dx=g.x-v.x,this._dy=g.y-v.y}else this.world.updateMotion(this,p),this.newVelocity.set(C.x*p,C.y*p),g.add(this.newVelocity),this._dx=g.x-N.x,this._dy=g.y-N.y;var M=C.x,D=C.y;if(this.updateCenter(),this.angle=Math.atan2(D,M),this.speed=Math.sqrt(M*M+D*D),this.collideWorldBounds&&this.checkWorldBounds()&&this.onWorldBounds){var G=this.blocked;this.world.emit(c.WORLD_BOUNDS,this,G.up,G.down,G.left,G.right)}},postUpdate:function(){var p=this.position,N=p.x-this.prevFrame.x,g=p.y-this.prevFrame.y,C=this.gameObject;if(this.moves){var v=this.deltaMax.x,M=this.deltaMax.y;v!==0&&N!==0&&(N<0&&N<-v?N=-v:N>0&&N>v&&(N=v)),M!==0&&g!==0&&(g<0&&g<-M?g=-M:g>0&&g>M&&(g=M)),C&&(C.x+=N,C.y+=g)}N<0?this.facing=d.FACING_LEFT:N>0&&(this.facing=d.FACING_RIGHT),g<0?this.facing=d.FACING_UP:g>0&&(this.facing=d.FACING_DOWN),this.allowRotation&&C&&(C.angle+=this.deltaZ()),this._tx=N,this._ty=g,this.autoFrame.set(p.x,p.y)},setBoundsRectangle:function(p){return this.customBoundsRectangle=p||this.world.bounds,this},checkWorldBounds:function(){var p=this.position,N=this.velocity,g=this.blocked,C=this.customBoundsRectangle,v=this.world.checkCollision,M=this.worldBounce?-this.worldBounce.x:-this.bounce.x,D=this.worldBounce?-this.worldBounce.y:-this.bounce.y,G=!1;return p.xC.right&&v.right&&(p.x=C.right-this.width,N.x*=M,g.right=!0,G=!0),p.yC.bottom&&v.down&&(p.y=C.bottom-this.height,N.y*=D,g.down=!0,G=!0),G&&(this.blocked.none=!1,this.updateCenter()),G},setOffset:function(p,N){return N===void 0&&(N=p),this.offset.set(p,N),this},setGameObject:function(p,N){return N===void 0&&(N=!0),this.world.remove(this),this.gameObject&&this.gameObject.body&&(this.gameObject.body=null),this.gameObject=p,p.body&&(p.body=this),this.setSize(),this.world.add(this),this.enable=N,this},setSize:function(p,N,g){g===void 0&&(g=!0);var C=this.gameObject;if(C&&(!p&&C.frame&&(p=C.frame.realWidth),!N&&C.frame&&(N=C.frame.realHeight)),this.sourceWidth=p,this.sourceHeight=N,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(),g&&C&&C.getCenter){var v=(C.width-p)/2,M=(C.height-N)/2;this.offset.set(v,M)}return this.isCircle=!1,this.radius=0,this},setCircle:function(p,N,g){return N===void 0&&(N=this.offset.x),g===void 0&&(g=this.offset.y),p>0?(this.isCircle=!0,this.radius=p,this.sourceWidth=p*2,this.sourceHeight=p*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(N,g),this.updateCenter()):this.isCircle=!1,this},reset:function(p,N){this.stop();var g=this.gameObject;g&&(g.setPosition(p,N),this.rotation=g.angle,this.preRotation=g.angle);var C=this.position;g&&g.getTopLeft?g.getTopLeft(C):C.set(p,N),this.prev.copy(C),this.prevFrame.copy(C),this.autoFrame.copy(C),g&&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(p){return p.x=this.x,p.y=this.y,p.right=this.right,p.bottom=this.bottom,p},hitTest:function(p,N){if(!this.isCircle)return f(this,p,N);if(this.radius>0&&p>=this.left&&p<=this.right&&N>=this.top&&N<=this.bottom){var g=(this.center.x-p)*(this.center.x-p),C=(this.center.y-N)*(this.center.y-N);return g+C<=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(p){var N=this.position,g=N.x+this.halfWidth,C=N.y+this.halfHeight;this.debugShowBody&&(p.lineStyle(p.defaultStrokeWidth,this.debugBodyColor),this.isCircle?p.strokeCircle(g,C,this.width/2):(this.checkCollision.up&&p.lineBetween(N.x,N.y,N.x+this.width,N.y),this.checkCollision.right&&p.lineBetween(N.x+this.width,N.y,N.x+this.width,N.y+this.height),this.checkCollision.down&&p.lineBetween(N.x,N.y+this.height,N.x+this.width,N.y+this.height),this.checkCollision.left&&p.lineBetween(N.x,N.y,N.x,N.y+this.height))),this.debugShowVelocity&&(p.lineStyle(p.defaultStrokeWidth,this.world.defaults.velocityDebugColor,1),p.lineBetween(g,C,g+this.velocity.x/2,C+this.velocity.y/2))},willDrawDebug:function(){return this.debugShowBody||this.debugShowVelocity},setDirectControl:function(p){return p===void 0&&(p=!0),this.directControl=p,this},setCollideWorldBounds:function(p,N,g,C){p===void 0&&(p=!0),this.collideWorldBounds=p;var v=N!==void 0,M=g!==void 0;return(v||M)&&(this.worldBounce||(this.worldBounce=new O),v&&(this.worldBounce.x=N),M&&(this.worldBounce.y=g)),C!==void 0&&(this.onWorldBounds=C),this},setVelocity:function(p,N){return this.velocity.set(p,N),p=this.velocity.x,N=this.velocity.y,this.speed=Math.sqrt(p*p+N*N),this},setVelocityX:function(p){return this.setVelocity(p,this.velocity.y)},setVelocityY:function(p){return this.setVelocity(this.velocity.x,p)},setMaxVelocity:function(p,N){return this.maxVelocity.set(p,N),this},setMaxVelocityX:function(p){return this.maxVelocity.x=p,this},setMaxVelocityY:function(p){return this.maxVelocity.y=p,this},setMaxSpeed:function(p){return this.maxSpeed=p,this},setSlideFactor:function(p,N){return this.slideFactor.set(p,N),this},setBounce:function(p,N){return this.bounce.set(p,N),this},setBounceX:function(p){return this.bounce.x=p,this},setBounceY:function(p){return this.bounce.y=p,this},setAcceleration:function(p,N){return this.acceleration.set(p,N),this},setAccelerationX:function(p){return this.acceleration.x=p,this},setAccelerationY:function(p){return this.acceleration.y=p,this},setAllowDrag:function(p){return p===void 0&&(p=!0),this.allowDrag=p,this},setAllowGravity:function(p){return p===void 0&&(p=!0),this.allowGravity=p,this},setAllowRotation:function(p){return p===void 0&&(p=!0),this.allowRotation=p,this},setDrag:function(p,N){return this.drag.set(p,N),this},setDamping:function(p){return this.useDamping=p,this},setDragX:function(p){return this.drag.x=p,this},setDragY:function(p){return this.drag.y=p,this},setGravity:function(p,N){return this.gravity.set(p,N),this},setGravityX:function(p){return this.gravity.x=p,this},setGravityY:function(p){return this.gravity.y=p,this},setFriction:function(p,N){return this.friction.set(p,N),this},setFrictionX:function(p){return this.friction.x=p,this},setFrictionY:function(p){return this.friction.y=p,this},setAngularVelocity:function(p){return this.angularVelocity=p,this},setAngularAcceleration:function(p){return this.angularAcceleration=p,this},setAngularDrag:function(p){return this.angularDrag=p,this},setMass:function(p){return this.mass=p,this},setImmovable:function(p){return p===void 0&&(p=!0),this.immovable=p,this},setEnable:function(p){return p===void 0&&(p=!0),this.enable=p,this},processX:function(p,N,g,C){this.x+=p,this.updateCenter(),N!==null&&(this.velocity.x=N*this.slideFactor.x);var v=this.blocked;g&&(v.left=!0,v.none=!1),C&&(v.right=!0,v.none=!1)},processY:function(p,N,g,C){this.y+=p,this.updateCenter(),N!==null&&(this.velocity.y=N*this.slideFactor.y);var v=this.blocked;g&&(v.up=!0,v.none=!1),C&&(v.down=!0,v.none=!1)},x:{get:function(){return this.position.x},set:function(p){this.position.x=p}},y:{get:function(){return this.position.y},set:function(p){this.position.y=p}},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}}});o.exports=L},79342:(o,m,s)=>{/** + */var u=s(83419),T=s(78389),A=s(37747),c=s(63012),d=s(43396),h=s(87841),f=s(37303),S=s(95829),R=s(26099),L=new u({Mixins:[T],initialize:v(function(N,g){var C=64,P=64,M={x:0,y:0,angle:0,rotation:0,scaleX:1,scaleY:1,displayOriginX:0,displayOriginY:0},D=g!==void 0;D&&g.displayWidth&&(C=g.displayWidth,P=g.displayHeight),D||(g=M),this.world=N,this.gameObject=D?g:void 0,this.isBody=!0,this.transform={x:g.x,y:g.y,rotation:g.angle,scaleX:g.scaleX,scaleY:g.scaleY,displayOriginX:g.displayOriginX,displayOriginY:g.displayOriginY},this.debugShowBody=N.defaults.debugShowBody,this.debugShowVelocity=N.defaults.debugShowVelocity,this.debugBodyColor=N.defaults.bodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new R,this.position=new R(g.x-g.scaleX*g.displayOriginX,g.y-g.scaleY*g.displayOriginY),this.prev=this.position.clone(),this.prevFrame=this.position.clone(),this.allowRotation=!0,this.rotation=g.angle,this.preRotation=g.angle,this.width=C,this.height=P,this.sourceWidth=C,this.sourceHeight=P,g.frame&&(this.sourceWidth=g.frame.realWidth,this.sourceHeight=g.frame.realHeight),this.halfWidth=Math.abs(C/2),this.halfHeight=Math.abs(P/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=N.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=A.FACING_NONE,this.immovable=!1,this.pushable=!0,this.slideFactor=new R(1,1),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=S(!1),this.touching=S(!0),this.wasTouching=S(!0),this.blocked=S(!0),this.syncBounds=!1,this.physicsType=A.DYNAMIC_BODY,this.collisionCategory=1,this.collisionMask=1,this._sx=g.scaleX,this._sy=g.scaleY,this._dx=0,this._dy=0,this._tx=0,this._ty=0,this._bounds=new h,this.directControl=!1,this.autoFrame=this.position.clone()},"Body"),updateBounds:function(){var p=this.gameObject,N=this.transform;if(p.parentContainer){var g=p.getWorldTransformMatrix(this.world._tempMatrix,this.world._tempMatrix2);N.x=g.tx,N.y=g.ty,N.rotation=d(g.rotation),N.scaleX=g.scaleX,N.scaleY=g.scaleY,N.displayOriginX=p.displayOriginX,N.displayOriginY=p.displayOriginY}else N.x=p.x,N.y=p.y,N.rotation=p.angle,N.scaleX=p.scaleX,N.scaleY=p.scaleY,N.displayOriginX=p.displayOriginX,N.displayOriginY=p.displayOriginY;var C=!1;if(this.syncBounds){var P=p.getBounds(this._bounds);this.width=P.width,this.height=P.height,C=!0}else{var M=Math.abs(N.scaleX),D=Math.abs(N.scaleY);(this._sx!==M||this._sy!==D)&&(this.width=this.sourceWidth*M,this.height=this.sourceHeight*D,this._sx=M,this._sy=D,C=!0)}C&&(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 p=this.transform;this.position.x=p.x+p.scaleX*(this.offset.x-p.displayOriginX),this.position.y=p.y+p.scaleY*(this.offset.y-p.displayOriginY),this.updateCenter()},resetFlags:function(p){p===void 0&&(p=!1);var N=this.wasTouching,g=this.touching,C=this.blocked;p?S(!0,N):(N.none=g.none,N.up=g.up,N.down=g.down,N.left=g.left,N.right=g.right),S(!0,g),S(!0,C),this.overlapR=0,this.overlapX=0,this.overlapY=0,this.embedded=!1},preUpdate:function(p,N){if(p&&this.resetFlags(),this.gameObject&&this.updateFromGameObject(),this.rotation=this.transform.rotation,this.preRotation=this.rotation,this.moves){var g=this.position;this.prev.x=g.x,this.prev.y=g.y,this.prevFrame.x=g.x,this.prevFrame.y=g.y}p&&this.update(N)},update:function(p){var N=this.prev,g=this.position,C=this.velocity;if(N.set(g.x,g.y),!this.moves){this._dx=g.x-N.x,this._dy=g.y-N.y;return}if(this.directControl){var P=this.autoFrame;C.set((g.x-P.x)/p,(g.y-P.y)/p),this.world.updateMotion(this,p),this._dx=g.x-P.x,this._dy=g.y-P.y}else this.world.updateMotion(this,p),this.newVelocity.set(C.x*p,C.y*p),g.add(this.newVelocity),this._dx=g.x-N.x,this._dy=g.y-N.y;var M=C.x,D=C.y;if(this.updateCenter(),this.angle=Math.atan2(D,M),this.speed=Math.sqrt(M*M+D*D),this.collideWorldBounds&&this.checkWorldBounds()&&this.onWorldBounds){var G=this.blocked;this.world.emit(c.WORLD_BOUNDS,this,G.up,G.down,G.left,G.right)}},postUpdate:function(){var p=this.position,N=p.x-this.prevFrame.x,g=p.y-this.prevFrame.y,C=this.gameObject;if(this.moves){var P=this.deltaMax.x,M=this.deltaMax.y;P!==0&&N!==0&&(N<0&&N<-P?N=-P:N>0&&N>P&&(N=P)),M!==0&&g!==0&&(g<0&&g<-M?g=-M:g>0&&g>M&&(g=M)),C&&(C.x+=N,C.y+=g)}N<0?this.facing=A.FACING_LEFT:N>0&&(this.facing=A.FACING_RIGHT),g<0?this.facing=A.FACING_UP:g>0&&(this.facing=A.FACING_DOWN),this.allowRotation&&C&&(C.angle+=this.deltaZ()),this._tx=N,this._ty=g,this.autoFrame.set(p.x,p.y)},setBoundsRectangle:function(p){return this.customBoundsRectangle=p||this.world.bounds,this},checkWorldBounds:function(){var p=this.position,N=this.velocity,g=this.blocked,C=this.customBoundsRectangle,P=this.world.checkCollision,M=this.worldBounce?-this.worldBounce.x:-this.bounce.x,D=this.worldBounce?-this.worldBounce.y:-this.bounce.y,G=!1;return p.xC.right&&P.right&&(p.x=C.right-this.width,N.x*=M,g.right=!0,G=!0),p.yC.bottom&&P.down&&(p.y=C.bottom-this.height,N.y*=D,g.down=!0,G=!0),G&&(this.blocked.none=!1,this.updateCenter()),G},setOffset:function(p,N){return N===void 0&&(N=p),this.offset.set(p,N),this},setGameObject:function(p,N){return N===void 0&&(N=!0),this.world.remove(this),this.gameObject&&this.gameObject.body&&(this.gameObject.body=null),this.gameObject=p,p.body&&(p.body=this),this.setSize(),this.world.add(this),this.enable=N,this},setSize:function(p,N,g){g===void 0&&(g=!0);var C=this.gameObject;if(C&&(!p&&C.frame&&(p=C.frame.realWidth),!N&&C.frame&&(N=C.frame.realHeight)),this.sourceWidth=p,this.sourceHeight=N,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(),g&&C&&C.getCenter){var P=(C.width-p)/2,M=(C.height-N)/2;this.offset.set(P,M)}return this.isCircle=!1,this.radius=0,this},setCircle:function(p,N,g){return N===void 0&&(N=this.offset.x),g===void 0&&(g=this.offset.y),p>0?(this.isCircle=!0,this.radius=p,this.sourceWidth=p*2,this.sourceHeight=p*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(N,g),this.updateCenter()):this.isCircle=!1,this},reset:function(p,N){this.stop();var g=this.gameObject;g&&(g.setPosition(p,N),this.rotation=g.angle,this.preRotation=g.angle);var C=this.position;g&&g.getTopLeft?g.getTopLeft(C):C.set(p,N),this.prev.copy(C),this.prevFrame.copy(C),this.autoFrame.copy(C),g&&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(p){return p.x=this.x,p.y=this.y,p.right=this.right,p.bottom=this.bottom,p},hitTest:function(p,N){if(!this.isCircle)return f(this,p,N);if(this.radius>0&&p>=this.left&&p<=this.right&&N>=this.top&&N<=this.bottom){var g=(this.center.x-p)*(this.center.x-p),C=(this.center.y-N)*(this.center.y-N);return g+C<=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(p){var N=this.position,g=N.x+this.halfWidth,C=N.y+this.halfHeight;this.debugShowBody&&(p.lineStyle(p.defaultStrokeWidth,this.debugBodyColor),this.isCircle?p.strokeCircle(g,C,this.width/2):(this.checkCollision.up&&p.lineBetween(N.x,N.y,N.x+this.width,N.y),this.checkCollision.right&&p.lineBetween(N.x+this.width,N.y,N.x+this.width,N.y+this.height),this.checkCollision.down&&p.lineBetween(N.x,N.y+this.height,N.x+this.width,N.y+this.height),this.checkCollision.left&&p.lineBetween(N.x,N.y,N.x,N.y+this.height))),this.debugShowVelocity&&(p.lineStyle(p.defaultStrokeWidth,this.world.defaults.velocityDebugColor,1),p.lineBetween(g,C,g+this.velocity.x/2,C+this.velocity.y/2))},willDrawDebug:function(){return this.debugShowBody||this.debugShowVelocity},setDirectControl:function(p){return p===void 0&&(p=!0),this.directControl=p,this},setCollideWorldBounds:function(p,N,g,C){p===void 0&&(p=!0),this.collideWorldBounds=p;var P=N!==void 0,M=g!==void 0;return(P||M)&&(this.worldBounce||(this.worldBounce=new R),P&&(this.worldBounce.x=N),M&&(this.worldBounce.y=g)),C!==void 0&&(this.onWorldBounds=C),this},setVelocity:function(p,N){return this.velocity.set(p,N),p=this.velocity.x,N=this.velocity.y,this.speed=Math.sqrt(p*p+N*N),this},setVelocityX:function(p){return this.setVelocity(p,this.velocity.y)},setVelocityY:function(p){return this.setVelocity(this.velocity.x,p)},setMaxVelocity:function(p,N){return this.maxVelocity.set(p,N),this},setMaxVelocityX:function(p){return this.maxVelocity.x=p,this},setMaxVelocityY:function(p){return this.maxVelocity.y=p,this},setMaxSpeed:function(p){return this.maxSpeed=p,this},setSlideFactor:function(p,N){return this.slideFactor.set(p,N),this},setBounce:function(p,N){return this.bounce.set(p,N),this},setBounceX:function(p){return this.bounce.x=p,this},setBounceY:function(p){return this.bounce.y=p,this},setAcceleration:function(p,N){return this.acceleration.set(p,N),this},setAccelerationX:function(p){return this.acceleration.x=p,this},setAccelerationY:function(p){return this.acceleration.y=p,this},setAllowDrag:function(p){return p===void 0&&(p=!0),this.allowDrag=p,this},setAllowGravity:function(p){return p===void 0&&(p=!0),this.allowGravity=p,this},setAllowRotation:function(p){return p===void 0&&(p=!0),this.allowRotation=p,this},setDrag:function(p,N){return this.drag.set(p,N),this},setDamping:function(p){return this.useDamping=p,this},setDragX:function(p){return this.drag.x=p,this},setDragY:function(p){return this.drag.y=p,this},setGravity:function(p,N){return this.gravity.set(p,N),this},setGravityX:function(p){return this.gravity.x=p,this},setGravityY:function(p){return this.gravity.y=p,this},setFriction:function(p,N){return this.friction.set(p,N),this},setFrictionX:function(p){return this.friction.x=p,this},setFrictionY:function(p){return this.friction.y=p,this},setAngularVelocity:function(p){return this.angularVelocity=p,this},setAngularAcceleration:function(p){return this.angularAcceleration=p,this},setAngularDrag:function(p){return this.angularDrag=p,this},setMass:function(p){return this.mass=p,this},setImmovable:function(p){return p===void 0&&(p=!0),this.immovable=p,this},setEnable:function(p){return p===void 0&&(p=!0),this.enable=p,this},processX:function(p,N,g,C){this.x+=p,this.updateCenter(),N!==null&&(this.velocity.x=N*this.slideFactor.x);var P=this.blocked;g&&(P.left=!0,P.none=!1),C&&(P.right=!0,P.none=!1)},processY:function(p,N,g,C){this.y+=p,this.updateCenter(),N!==null&&(this.velocity.y=N*this.slideFactor.y);var P=this.blocked;g&&(P.up=!0,P.none=!1),C&&(P.down=!0,P.none=!1)},x:{get:function(){return this.position.x},set:function(p){this.position.x=p}},y:{get:function(){return this.position.y},set:function(p){this.position.y=p}},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}}});o.exports=L},79342:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=new u({initialize:P(function(c,A,h,f,S,O,L){this.world=c,this.name="",this.active=!0,this.overlapOnly=A,this.object1=h,this.object2=f,this.collideCallback=S,this.processCallback=O,this.callbackContext=L},"Collider"),setName:function(d){return this.name=d,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}});o.exports=T},66022:(o,m,s)=>{/** + */var u=s(83419),T=new u({initialize:v(function(c,d,h,f,S,R,L){this.world=c,this.name="",this.active=!0,this.overlapOnly=d,this.object1=h,this.object2=f,this.collideCallback=S,this.processCallback=R,this.callbackContext=L},"Collider"),setName:function(A){return this.name=A,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}});o.exports=T},66022:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(71289),T=s(13759),d=s(37742),c=s(83419),A=s(37747),h=s(60758),f=s(72624),S=s(71464),O=new c({initialize:P(function(p){this.world=p,this.scene=p.scene,this.sys=p.scene.sys},"Factory"),collider:function(L,p,N,g,C){return this.world.addCollider(L,p,N,g,C)},overlap:function(L,p,N,g,C){return this.world.addOverlap(L,p,N,g,C)},existing:function(L,p){var N=p?A.STATIC_BODY:A.DYNAMIC_BODY;return this.world.enableBody(L,N),L},staticImage:function(L,p,N,g){var C=new u(this.scene,L,p,N,g);return this.sys.displayList.add(C),this.world.enableBody(C,A.STATIC_BODY),C},image:function(L,p,N,g){var C=new u(this.scene,L,p,N,g);return this.sys.displayList.add(C),this.world.enableBody(C,A.DYNAMIC_BODY),C},staticSprite:function(L,p,N,g){var C=new T(this.scene,L,p,N,g);return this.sys.displayList.add(C),this.sys.updateList.add(C),this.world.enableBody(C,A.STATIC_BODY),C},sprite:function(L,p,N,g){var C=new T(this.scene,L,p,N,g);return this.sys.displayList.add(C),this.sys.updateList.add(C),this.world.enableBody(C,A.DYNAMIC_BODY),C},staticGroup:function(L,p){return this.sys.updateList.add(new S(this.world,this.world.scene,L,p))},group:function(L,p){return this.sys.updateList.add(new h(this.world,this.world.scene,L,p))},body:function(L,p,N,g){var C=new d(this.world);return C.position.set(L,p),N&&g&&C.setSize(N,g),this.world.add(C,A.DYNAMIC_BODY),C},staticBody:function(L,p,N,g){var C=new f(this.world);return C.position.set(L,p),N&&g&&C.setSize(N,g),this.world.add(C,A.STATIC_BODY),C},destroy:function(){this.world=null,this.scene=null,this.sys=null}});o.exports=O},79599:o=>{/** + */var u=s(71289),T=s(13759),A=s(37742),c=s(83419),d=s(37747),h=s(60758),f=s(72624),S=s(71464),R=new c({initialize:v(function(p){this.world=p,this.scene=p.scene,this.sys=p.scene.sys},"Factory"),collider:function(L,p,N,g,C){return this.world.addCollider(L,p,N,g,C)},overlap:function(L,p,N,g,C){return this.world.addOverlap(L,p,N,g,C)},existing:function(L,p){var N=p?d.STATIC_BODY:d.DYNAMIC_BODY;return this.world.enableBody(L,N),L},staticImage:function(L,p,N,g){var C=new u(this.scene,L,p,N,g);return this.sys.displayList.add(C),this.world.enableBody(C,d.STATIC_BODY),C},image:function(L,p,N,g){var C=new u(this.scene,L,p,N,g);return this.sys.displayList.add(C),this.world.enableBody(C,d.DYNAMIC_BODY),C},staticSprite:function(L,p,N,g){var C=new T(this.scene,L,p,N,g);return this.sys.displayList.add(C),this.sys.updateList.add(C),this.world.enableBody(C,d.STATIC_BODY),C},sprite:function(L,p,N,g){var C=new T(this.scene,L,p,N,g);return this.sys.displayList.add(C),this.sys.updateList.add(C),this.world.enableBody(C,d.DYNAMIC_BODY),C},staticGroup:function(L,p){return this.sys.updateList.add(new S(this.world,this.world.scene,L,p))},group:function(L,p){return this.sys.updateList.add(new h(this.world,this.world.scene,L,p))},body:function(L,p,N,g){var C=new A(this.world);return C.position.set(L,p),N&&g&&C.setSize(N,g),this.world.add(C,d.DYNAMIC_BODY),C},staticBody:function(L,p,N,g){var C=new f(this.world);return C.position.set(L,p),N&&g&&C.setSize(N,g),this.world.add(C,d.STATIC_BODY),C},destroy:function(){this.world=null,this.scene=null,this.sys=null}});o.exports=R},79599:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){var u=0;if(!Array.isArray(s))u=s;else for(var T=0;T{/** + */var O=v(function(s){var u=0;if(!Array.isArray(s))u=s;else for(var T=0;T{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(37747),T=P(function(d,c,A,h){var f=0,S=d.deltaAbsX()+c.deltaAbsX()+h;return d._dx===0&&c._dx===0?(d.embedded=!0,c.embedded=!0):d._dx>c._dx?(f=d.right-c.x,f>S&&!A||d.checkCollision.right===!1||c.checkCollision.left===!1?f=0:(d.touching.none=!1,d.touching.right=!0,c.touching.none=!1,c.touching.left=!0,c.physicsType===u.STATIC_BODY&&!A&&(d.blocked.none=!1,d.blocked.right=!0),d.physicsType===u.STATIC_BODY&&!A&&(c.blocked.none=!1,c.blocked.left=!0))):d._dxS&&!A||d.checkCollision.left===!1||c.checkCollision.right===!1?f=0:(d.touching.none=!1,d.touching.left=!0,c.touching.none=!1,c.touching.right=!0,c.physicsType===u.STATIC_BODY&&!A&&(d.blocked.none=!1,d.blocked.left=!0),d.physicsType===u.STATIC_BODY&&!A&&(c.blocked.none=!1,c.blocked.right=!0))),d.overlapX=f,c.overlapX=f,f},"GetOverlapX");o.exports=T},45170:(o,m,s)=>{/** + */var u=s(37747),T=v(function(A,c,d,h){var f=0,S=A.deltaAbsX()+c.deltaAbsX()+h;return A._dx===0&&c._dx===0?(A.embedded=!0,c.embedded=!0):A._dx>c._dx?(f=A.right-c.x,f>S&&!d||A.checkCollision.right===!1||c.checkCollision.left===!1?f=0:(A.touching.none=!1,A.touching.right=!0,c.touching.none=!1,c.touching.left=!0,c.physicsType===u.STATIC_BODY&&!d&&(A.blocked.none=!1,A.blocked.right=!0),A.physicsType===u.STATIC_BODY&&!d&&(c.blocked.none=!1,c.blocked.left=!0))):A._dxS&&!d||A.checkCollision.left===!1||c.checkCollision.right===!1?f=0:(A.touching.none=!1,A.touching.left=!0,c.touching.none=!1,c.touching.right=!0,c.physicsType===u.STATIC_BODY&&!d&&(A.blocked.none=!1,A.blocked.left=!0),A.physicsType===u.STATIC_BODY&&!d&&(c.blocked.none=!1,c.blocked.right=!0))),A.overlapX=f,c.overlapX=f,f},"GetOverlapX");o.exports=T},45170:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(37747),T=P(function(d,c,A,h){var f=0,S=d.deltaAbsY()+c.deltaAbsY()+h;return d._dy===0&&c._dy===0?(d.embedded=!0,c.embedded=!0):d._dy>c._dy?(f=d.bottom-c.y,f>S&&!A||d.checkCollision.down===!1||c.checkCollision.up===!1?f=0:(d.touching.none=!1,d.touching.down=!0,c.touching.none=!1,c.touching.up=!0,c.physicsType===u.STATIC_BODY&&!A&&(d.blocked.none=!1,d.blocked.down=!0),d.physicsType===u.STATIC_BODY&&!A&&(c.blocked.none=!1,c.blocked.up=!0))):d._dyS&&!A||d.checkCollision.up===!1||c.checkCollision.down===!1?f=0:(d.touching.none=!1,d.touching.up=!0,c.touching.none=!1,c.touching.down=!0,c.physicsType===u.STATIC_BODY&&!A&&(d.blocked.none=!1,d.blocked.up=!0),d.physicsType===u.STATIC_BODY&&!A&&(c.blocked.none=!1,c.blocked.down=!0))),d.overlapY=f,c.overlapY=f,f},"GetOverlapY");o.exports=T},60758:(o,m,s)=>{/** + */var u=s(37747),T=v(function(A,c,d,h){var f=0,S=A.deltaAbsY()+c.deltaAbsY()+h;return A._dy===0&&c._dy===0?(A.embedded=!0,c.embedded=!0):A._dy>c._dy?(f=A.bottom-c.y,f>S&&!d||A.checkCollision.down===!1||c.checkCollision.up===!1?f=0:(A.touching.none=!1,A.touching.down=!0,c.touching.none=!1,c.touching.up=!0,c.physicsType===u.STATIC_BODY&&!d&&(A.blocked.none=!1,A.blocked.down=!0),A.physicsType===u.STATIC_BODY&&!d&&(c.blocked.none=!1,c.blocked.up=!0))):A._dyS&&!d||A.checkCollision.up===!1||c.checkCollision.down===!1?f=0:(A.touching.none=!1,A.touching.up=!0,c.touching.none=!1,c.touching.down=!0,c.physicsType===u.STATIC_BODY&&!d&&(A.blocked.none=!1,A.blocked.up=!0),A.physicsType===u.STATIC_BODY&&!d&&(c.blocked.none=!1,c.blocked.down=!0))),A.overlapY=f,c.overlapY=f,f},"GetOverlapY");o.exports=T},60758:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(13759),T=s(83419),d=s(78389),c=s(37747),A=s(95540),h=s(26479),f=s(41212),S=new T({Extends:h,Mixins:[d],initialize:P(function(L,p,N,g){if(!N&&!g)g={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler};else if(f(N))g=N,N=null,g.internalCreateCallback=this.createCallbackHandler,g.internalRemoveCallback=this.removeCallbackHandler;else if(Array.isArray(N)&&f(N[0])){var C=this;N.forEach(function(v){v.internalCreateCallback=C.createCallbackHandler,v.internalRemoveCallback=C.removeCallbackHandler,v.classType=A(v,"classType",u)}),g=null}else g={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler};this.world=L,g&&(g.classType=A(g,"classType",u)),this.physicsType=c.DYNAMIC_BODY,this.collisionCategory=1,this.collisionMask=1,this.defaults={setCollideWorldBounds:A(g,"collideWorldBounds",!1),setBoundsRectangle:A(g,"customBoundsRectangle",null),setAccelerationX:A(g,"accelerationX",0),setAccelerationY:A(g,"accelerationY",0),setAllowDrag:A(g,"allowDrag",!0),setAllowGravity:A(g,"allowGravity",!0),setAllowRotation:A(g,"allowRotation",!0),setDamping:A(g,"useDamping",!1),setBounceX:A(g,"bounceX",0),setBounceY:A(g,"bounceY",0),setDragX:A(g,"dragX",0),setDragY:A(g,"dragY",0),setEnable:A(g,"enable",!0),setGravityX:A(g,"gravityX",0),setGravityY:A(g,"gravityY",0),setFrictionX:A(g,"frictionX",0),setFrictionY:A(g,"frictionY",0),setMaxSpeed:A(g,"maxSpeed",-1),setMaxVelocityX:A(g,"maxVelocityX",1e4),setMaxVelocityY:A(g,"maxVelocityY",1e4),setVelocityX:A(g,"velocityX",0),setVelocityY:A(g,"velocityY",0),setAngularVelocity:A(g,"angularVelocity",0),setAngularAcceleration:A(g,"angularAcceleration",0),setAngularDrag:A(g,"angularDrag",0),setMass:A(g,"mass",1),setImmovable:A(g,"immovable",!1)},h.call(this,p,N,g),this.type="PhysicsGroup"},"PhysicsGroup"),createCallbackHandler:function(O){O.body||this.world.enableBody(O,c.DYNAMIC_BODY);var L=O.body;for(var p in this.defaults)L[p](this.defaults[p])},removeCallbackHandler:function(O){O.body&&this.world.disableBody(O)},setVelocity:function(O,L,p){p===void 0&&(p=0);for(var N=this.getChildren(),g=0;g{/** + */var u=s(13759),T=s(83419),A=s(78389),c=s(37747),d=s(95540),h=s(26479),f=s(41212),S=new T({Extends:h,Mixins:[A],initialize:v(function(L,p,N,g){if(!N&&!g)g={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler};else if(f(N))g=N,N=null,g.internalCreateCallback=this.createCallbackHandler,g.internalRemoveCallback=this.removeCallbackHandler;else if(Array.isArray(N)&&f(N[0])){var C=this;N.forEach(function(P){P.internalCreateCallback=C.createCallbackHandler,P.internalRemoveCallback=C.removeCallbackHandler,P.classType=d(P,"classType",u)}),g=null}else g={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler};this.world=L,g&&(g.classType=d(g,"classType",u)),this.physicsType=c.DYNAMIC_BODY,this.collisionCategory=1,this.collisionMask=1,this.defaults={setCollideWorldBounds:d(g,"collideWorldBounds",!1),setBoundsRectangle:d(g,"customBoundsRectangle",null),setAccelerationX:d(g,"accelerationX",0),setAccelerationY:d(g,"accelerationY",0),setAllowDrag:d(g,"allowDrag",!0),setAllowGravity:d(g,"allowGravity",!0),setAllowRotation:d(g,"allowRotation",!0),setDamping:d(g,"useDamping",!1),setBounceX:d(g,"bounceX",0),setBounceY:d(g,"bounceY",0),setDragX:d(g,"dragX",0),setDragY:d(g,"dragY",0),setEnable:d(g,"enable",!0),setGravityX:d(g,"gravityX",0),setGravityY:d(g,"gravityY",0),setFrictionX:d(g,"frictionX",0),setFrictionY:d(g,"frictionY",0),setMaxSpeed:d(g,"maxSpeed",-1),setMaxVelocityX:d(g,"maxVelocityX",1e4),setMaxVelocityY:d(g,"maxVelocityY",1e4),setVelocityX:d(g,"velocityX",0),setVelocityY:d(g,"velocityY",0),setAngularVelocity:d(g,"angularVelocity",0),setAngularAcceleration:d(g,"angularAcceleration",0),setAngularDrag:d(g,"angularDrag",0),setMass:d(g,"mass",1),setImmovable:d(g,"immovable",!1)},h.call(this,p,N,g),this.type="PhysicsGroup"},"PhysicsGroup"),createCallbackHandler:function(R){R.body||this.world.enableBody(R,c.DYNAMIC_BODY);var L=R.body;for(var p in this.defaults)L[p](this.defaults[p])},removeCallbackHandler:function(R){R.body&&this.world.disableBody(R)},setVelocity:function(R,L,p){p===void 0&&(p=0);for(var N=this.getChildren(),g=0;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m,s,u,T,d,c,A,h,f,S,O,L,p,N,g,C,v,M=P(function(w,b,F){m=w,s=b;var k=m.velocity.x,V=s.velocity.x;return u=m.pushable,f=m._dx<0,S=m._dx>0,O=m._dx===0,g=Math.abs(m.right-s.x)<=Math.abs(s.right-m.x),A=V-k*m.bounce.x,T=s.pushable,L=s._dx<0,p=s._dx>0,N=s._dx===0,C=!g,h=k-V*s.bounce.x,v=Math.abs(F),D()},"Set"),D=P(function(){return S&&g&&s.blocked.right?(m.processX(-v,A,!1,!0),1):f&&C&&s.blocked.left?(m.processX(v,A,!0),1):p&&C&&m.blocked.right?(s.processX(-v,h,!1,!0),2):L&&g&&m.blocked.left?(s.processX(v,h,!0),2):0},"BlockCheck"),G=P(function(){var w=m.velocity.x,b=s.velocity.x,F=Math.sqrt(b*b*s.mass/m.mass)*(b>0?1:-1),k=Math.sqrt(w*w*m.mass/s.mass)*(w>0?1:-1),V=(F+k)*.5;return F-=V,k-=V,d=V+F*m.bounce.x,c=V+k*s.bounce.x,f&&C?H(0):L&&g?H(1):S&&g?H(2):p&&C?H(3):!1},"Check"),H=P(function(w){if(u&&T)v*=.5,w===0||w===3?(m.processX(v,d),s.processX(-v,c)):(m.processX(-v,d),s.processX(v,c));else if(u&&!T)w===0||w===3?m.processX(v,A,!0):m.processX(-v,A,!1,!0);else if(!u&&T)w===0||w===3?s.processX(-v,h,!1,!0):s.processX(v,h,!0);else{var b=v*.5;w===0?N?(m.processX(v,0,!0),s.processX(0,null,!1,!0)):p?(m.processX(b,0,!0),s.processX(-b,0,!1,!0)):(m.processX(b,s.velocity.x,!0),s.processX(-b,null,!1,!0)):w===1?O?(m.processX(0,null,!1,!0),s.processX(v,0,!0)):S?(m.processX(-b,0,!1,!0),s.processX(b,0,!0)):(m.processX(-b,null,!1,!0),s.processX(b,m.velocity.x,!0)):w===2?N?(m.processX(-v,0,!1,!0),s.processX(0,null,!0)):L?(m.processX(-b,0,!1,!0),s.processX(b,0,!0)):(m.processX(-b,s.velocity.x,!1,!0),s.processX(b,null,!0)):w===3&&(O?(m.processX(0,null,!0),s.processX(-v,0,!1,!0)):f?(m.processX(b,0,!0),s.processX(-b,0,!1,!0)):(m.processX(b,s.velocity.y,!0),s.processX(-b,null,!1,!0)))}return!0},"Run"),B=P(function(w){w===1?s.velocity.x=0:g?s.processX(v,h,!0):s.processX(-v,h,!1,!0),m.moves&&(s.y+=(m.y-m.prev.y)*m.friction.y,s._dy=s.y-s.prev.y)},"RunImmovableBody1"),_=P(function(w){w===2?m.velocity.x=0:C?m.processX(v,A,!0):m.processX(-v,A,!1,!0),s.moves&&(m.y+=(s.y-s.prev.y)*s.friction.y,m._dy=m.y-m.prev.y)},"RunImmovableBody2");o.exports={BlockCheck:D,Check:G,Set:M,Run:H,RunImmovableBody1:B,RunImmovableBody2:_}},47962:o=>{/** + */var O,s,u,T,A,c,d,h,f,S,R,L,p,N,g,C,P,M=v(function(w,_,F){O=w,s=_;var x=O.velocity.x,V=s.velocity.x;return u=O.pushable,f=O._dx<0,S=O._dx>0,R=O._dx===0,g=Math.abs(O.right-s.x)<=Math.abs(s.right-O.x),d=V-x*O.bounce.x,T=s.pushable,L=s._dx<0,p=s._dx>0,N=s._dx===0,C=!g,h=x-V*s.bounce.x,P=Math.abs(F),D()},"Set"),D=v(function(){return S&&g&&s.blocked.right?(O.processX(-P,d,!1,!0),1):f&&C&&s.blocked.left?(O.processX(P,d,!0),1):p&&C&&O.blocked.right?(s.processX(-P,h,!1,!0),2):L&&g&&O.blocked.left?(s.processX(P,h,!0),2):0},"BlockCheck"),G=v(function(){var w=O.velocity.x,_=s.velocity.x,F=Math.sqrt(_*_*s.mass/O.mass)*(_>0?1:-1),x=Math.sqrt(w*w*O.mass/s.mass)*(w>0?1:-1),V=(F+x)*.5;return F-=V,x-=V,A=V+F*O.bounce.x,c=V+x*s.bounce.x,f&&C?H(0):L&&g?H(1):S&&g?H(2):p&&C?H(3):!1},"Check"),H=v(function(w){if(u&&T)P*=.5,w===0||w===3?(O.processX(P,A),s.processX(-P,c)):(O.processX(-P,A),s.processX(P,c));else if(u&&!T)w===0||w===3?O.processX(P,d,!0):O.processX(-P,d,!1,!0);else if(!u&&T)w===0||w===3?s.processX(-P,h,!1,!0):s.processX(P,h,!0);else{var _=P*.5;w===0?N?(O.processX(P,0,!0),s.processX(0,null,!1,!0)):p?(O.processX(_,0,!0),s.processX(-_,0,!1,!0)):(O.processX(_,s.velocity.x,!0),s.processX(-_,null,!1,!0)):w===1?R?(O.processX(0,null,!1,!0),s.processX(P,0,!0)):S?(O.processX(-_,0,!1,!0),s.processX(_,0,!0)):(O.processX(-_,null,!1,!0),s.processX(_,O.velocity.x,!0)):w===2?N?(O.processX(-P,0,!1,!0),s.processX(0,null,!0)):L?(O.processX(-_,0,!1,!0),s.processX(_,0,!0)):(O.processX(-_,s.velocity.x,!1,!0),s.processX(_,null,!0)):w===3&&(R?(O.processX(0,null,!0),s.processX(-P,0,!1,!0)):f?(O.processX(_,0,!0),s.processX(-_,0,!1,!0)):(O.processX(_,s.velocity.y,!0),s.processX(-_,null,!1,!0)))}return!0},"Run"),B=v(function(w){w===1?s.velocity.x=0:g?s.processX(P,h,!0):s.processX(-P,h,!1,!0),O.moves&&(s.y+=(O.y-O.prev.y)*O.friction.y,s._dy=s.y-s.prev.y)},"RunImmovableBody1"),b=v(function(w){w===2?O.velocity.x=0:C?O.processX(P,d,!0):O.processX(-P,d,!1,!0),s.moves&&(O.y+=(s.y-s.prev.y)*s.friction.y,O._dy=O.y-O.prev.y)},"RunImmovableBody2");o.exports={BlockCheck:D,Check:G,Set:M,Run:H,RunImmovableBody1:B,RunImmovableBody2:b}},47962:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m,s,u,T,d,c,A,h,f,S,O,L,p,N,g,C,v,M=P(function(w,b,F){m=w,s=b;var k=m.velocity.y,V=s.velocity.y;return u=m.pushable,f=m._dy<0,S=m._dy>0,O=m._dy===0,g=Math.abs(m.bottom-s.y)<=Math.abs(s.bottom-m.y),A=V-k*m.bounce.y,T=s.pushable,L=s._dy<0,p=s._dy>0,N=s._dy===0,C=!g,h=k-V*s.bounce.y,v=Math.abs(F),D()},"Set"),D=P(function(){return S&&g&&s.blocked.down?(m.processY(-v,A,!1,!0),1):f&&C&&s.blocked.up?(m.processY(v,A,!0),1):p&&C&&m.blocked.down?(s.processY(-v,h,!1,!0),2):L&&g&&m.blocked.up?(s.processY(v,h,!0),2):0},"BlockCheck"),G=P(function(){var w=m.velocity.y,b=s.velocity.y,F=Math.sqrt(b*b*s.mass/m.mass)*(b>0?1:-1),k=Math.sqrt(w*w*m.mass/s.mass)*(w>0?1:-1),V=(F+k)*.5;return F-=V,k-=V,d=V+F*m.bounce.y,c=V+k*s.bounce.y,f&&C?H(0):L&&g?H(1):S&&g?H(2):p&&C?H(3):!1},"Check"),H=P(function(w){if(u&&T)v*=.5,w===0||w===3?(m.processY(v,d),s.processY(-v,c)):(m.processY(-v,d),s.processY(v,c));else if(u&&!T)w===0||w===3?m.processY(v,A,!0):m.processY(-v,A,!1,!0);else if(!u&&T)w===0||w===3?s.processY(-v,h,!1,!0):s.processY(v,h,!0);else{var b=v*.5;w===0?N?(m.processY(v,0,!0),s.processY(0,null,!1,!0)):p?(m.processY(b,0,!0),s.processY(-b,0,!1,!0)):(m.processY(b,s.velocity.y,!0),s.processY(-b,null,!1,!0)):w===1?O?(m.processY(0,null,!1,!0),s.processY(v,0,!0)):S?(m.processY(-b,0,!1,!0),s.processY(b,0,!0)):(m.processY(-b,null,!1,!0),s.processY(b,m.velocity.y,!0)):w===2?N?(m.processY(-v,0,!1,!0),s.processY(0,null,!0)):L?(m.processY(-b,0,!1,!0),s.processY(b,0,!0)):(m.processY(-b,s.velocity.y,!1,!0),s.processY(b,null,!0)):w===3&&(O?(m.processY(0,null,!0),s.processY(-v,0,!1,!0)):f?(m.processY(b,0,!0),s.processY(-b,0,!1,!0)):(m.processY(b,s.velocity.y,!0),s.processY(-b,null,!1,!0)))}return!0},"Run"),B=P(function(w){w===1?s.velocity.y=0:g?s.processY(v,h,!0):s.processY(-v,h,!1,!0),m.moves&&(s.x+=(m.x-m.prev.x)*m.friction.x,s._dx=s.x-s.prev.x)},"RunImmovableBody1"),_=P(function(w){w===2?m.velocity.y=0:C?m.processY(v,A,!0):m.processY(-v,A,!1,!0),s.moves&&(m.x+=(s.x-s.prev.x)*s.friction.x,m._dx=m.x-m.prev.x)},"RunImmovableBody2");o.exports={BlockCheck:D,Check:G,Set:M,Run:H,RunImmovableBody1:B,RunImmovableBody2:_}},14087:(o,m,s)=>{/** + */var O,s,u,T,A,c,d,h,f,S,R,L,p,N,g,C,P,M=v(function(w,_,F){O=w,s=_;var x=O.velocity.y,V=s.velocity.y;return u=O.pushable,f=O._dy<0,S=O._dy>0,R=O._dy===0,g=Math.abs(O.bottom-s.y)<=Math.abs(s.bottom-O.y),d=V-x*O.bounce.y,T=s.pushable,L=s._dy<0,p=s._dy>0,N=s._dy===0,C=!g,h=x-V*s.bounce.y,P=Math.abs(F),D()},"Set"),D=v(function(){return S&&g&&s.blocked.down?(O.processY(-P,d,!1,!0),1):f&&C&&s.blocked.up?(O.processY(P,d,!0),1):p&&C&&O.blocked.down?(s.processY(-P,h,!1,!0),2):L&&g&&O.blocked.up?(s.processY(P,h,!0),2):0},"BlockCheck"),G=v(function(){var w=O.velocity.y,_=s.velocity.y,F=Math.sqrt(_*_*s.mass/O.mass)*(_>0?1:-1),x=Math.sqrt(w*w*O.mass/s.mass)*(w>0?1:-1),V=(F+x)*.5;return F-=V,x-=V,A=V+F*O.bounce.y,c=V+x*s.bounce.y,f&&C?H(0):L&&g?H(1):S&&g?H(2):p&&C?H(3):!1},"Check"),H=v(function(w){if(u&&T)P*=.5,w===0||w===3?(O.processY(P,A),s.processY(-P,c)):(O.processY(-P,A),s.processY(P,c));else if(u&&!T)w===0||w===3?O.processY(P,d,!0):O.processY(-P,d,!1,!0);else if(!u&&T)w===0||w===3?s.processY(-P,h,!1,!0):s.processY(P,h,!0);else{var _=P*.5;w===0?N?(O.processY(P,0,!0),s.processY(0,null,!1,!0)):p?(O.processY(_,0,!0),s.processY(-_,0,!1,!0)):(O.processY(_,s.velocity.y,!0),s.processY(-_,null,!1,!0)):w===1?R?(O.processY(0,null,!1,!0),s.processY(P,0,!0)):S?(O.processY(-_,0,!1,!0),s.processY(_,0,!0)):(O.processY(-_,null,!1,!0),s.processY(_,O.velocity.y,!0)):w===2?N?(O.processY(-P,0,!1,!0),s.processY(0,null,!0)):L?(O.processY(-_,0,!1,!0),s.processY(_,0,!0)):(O.processY(-_,s.velocity.y,!1,!0),s.processY(_,null,!0)):w===3&&(R?(O.processY(0,null,!0),s.processY(-P,0,!1,!0)):f?(O.processY(_,0,!0),s.processY(-_,0,!1,!0)):(O.processY(_,s.velocity.y,!0),s.processY(-_,null,!1,!0)))}return!0},"Run"),B=v(function(w){w===1?s.velocity.y=0:g?s.processY(P,h,!0):s.processY(-P,h,!1,!0),O.moves&&(s.x+=(O.x-O.prev.x)*O.friction.x,s._dx=s.x-s.prev.x)},"RunImmovableBody1"),b=v(function(w){w===2?O.velocity.y=0:C?O.processY(P,d,!0):O.processY(-P,d,!1,!0),s.moves&&(O.x+=(s.x-s.prev.x)*s.friction.x,O._dx=O.x-O.prev.x)},"RunImmovableBody2");o.exports={BlockCheck:D,Check:G,Set:M,Run:H,RunImmovableBody1:B,RunImmovableBody2:b}},14087:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(64897),T=s(3017),d=P(function(c,A,h,f,S){S===void 0&&(S=u(c,A,h,f));var O=c.immovable,L=A.immovable;if(h||S===0||O&&L||c.customSeparateX||A.customSeparateX)return S!==0||c.embedded&&A.embedded;var p=T.Set(c,A,S);return!O&&!L?p>0?!0:T.Check():(O?T.RunImmovableBody1(p):L&&T.RunImmovableBody2(p),!0)},"SeparateX");o.exports=d},89936:(o,m,s)=>{/** + */var u=s(64897),T=s(3017),A=v(function(c,d,h,f,S){S===void 0&&(S=u(c,d,h,f));var R=c.immovable,L=d.immovable;if(h||S===0||R&&L||c.customSeparateX||d.customSeparateX)return S!==0||c.embedded&&d.embedded;var p=T.Set(c,d,S);return!R&&!L?p>0?!0:T.Check():(R?T.RunImmovableBody1(p):L&&T.RunImmovableBody2(p),!0)},"SeparateX");o.exports=A},89936:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(45170),T=s(47962),d=P(function(c,A,h,f,S){S===void 0&&(S=u(c,A,h,f));var O=c.immovable,L=A.immovable;if(h||S===0||O&&L||c.customSeparateY||A.customSeparateY)return S!==0||c.embedded&&A.embedded;var p=T.Set(c,A,S);return!O&&!L?p>0?!0:T.Check():(O?T.RunImmovableBody1(p):L&&T.RunImmovableBody2(p),!0)},"SeparateY");o.exports=d},95829:o=>{/** + */var u=s(45170),T=s(47962),A=v(function(c,d,h,f,S){S===void 0&&(S=u(c,d,h,f));var R=c.immovable,L=d.immovable;if(h||S===0||R&&L||c.customSeparateY||d.customSeparateY)return S!==0||c.embedded&&d.embedded;var p=T.Set(c,d,S);return!R&&!L?p>0?!0:T.Check():(R?T.RunImmovableBody1(p):L&&T.RunImmovableBody2(p),!0)},"SeparateY");o.exports=A},95829:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return u===void 0&&(u={}),u.none=s,u.up=!1,u.down=!1,u.left=!1,u.right=!1,s||(u.up=!0,u.down=!0,u.left=!0,u.right=!0),u},"SetCollisionObject");o.exports=m},72624:(o,m,s)=>{/** + */var O=v(function(s,u){return u===void 0&&(u={}),u.none=s,u.up=!1,u.down=!1,u.left=!1,u.right=!1,s||(u.up=!0,u.down=!0,u.left=!0,u.right=!0),u},"SetCollisionObject");o.exports=O},72624:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(87902),T=s(83419),d=s(78389),c=s(37747),A=s(37303),h=s(95829),f=s(26099),S=new T({Mixins:[d],initialize:P(function(L,p){var N=64,g=64,C={x:0,y:0,angle:0,rotation:0,scaleX:1,scaleY:1,displayOriginX:0,displayOriginY:0},v=p!==void 0;v&&p.displayWidth&&(N=p.displayWidth,g=p.displayHeight),v||(p=C),this.world=L,this.gameObject=v?p:void 0,this.isBody=!0,this.debugShowBody=L.defaults.debugShowStaticBody,this.debugBodyColor=L.defaults.staticBodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new f,this.position=new f(p.x-N*p.originX,p.y-g*p.originY),this.width=N,this.height=g,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center=new f(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=f.ZERO,this.allowGravity=!1,this.gravity=f.ZERO,this.bounce=f.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=h(!1),this.touching=h(!0),this.wasTouching=h(!0),this.blocked=h(!0),this.physicsType=c.STATIC_BODY,this.collisionCategory=1,this.collisionMask=1,this._dx=0,this._dy=0},"StaticBody"),setGameObject:function(O,L){return O&&O!==this.gameObject&&(this.gameObject.body=null,O.body=this,this.gameObject=O),L&&this.updateFromGameObject(),this},updateFromGameObject:function(){this.world.staticTree.remove(this);var O=this.gameObject;return O.getTopLeft(this.position),this.width=O.displayWidth,this.height=O.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(O,L){return L===void 0&&(L=O),this.world.staticTree.remove(this),this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(O,L),this.position.x+=this.offset.x,this.position.y+=this.offset.y,this.updateCenter(),this.world.staticTree.insert(this),this},setSize:function(O,L,p){p===void 0&&(p=!0);var N=this.gameObject;if(N&&N.frame&&(O||(O=N.frame.realWidth),L||(L=N.frame.realHeight)),this.world.staticTree.remove(this),this.width=O,this.height=L,this.halfWidth=Math.floor(O/2),this.halfHeight=Math.floor(L/2),p&&N&&N.getCenter){var g=N.displayWidth/2,C=N.displayHeight/2;this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(g-this.halfWidth,C-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(O,L,p){return L===void 0&&(L=this.offset.x),p===void 0&&(p=this.offset.y),O>0?(this.world.staticTree.remove(this),this.isCircle=!0,this.radius=O,this.width=O*2,this.height=O*2,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(L,p),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(O,L){var p=this.gameObject;O===void 0&&(O=p.x),L===void 0&&(L=p.y),this.world.staticTree.remove(this),p.setPosition(O,L),p.getTopLeft(this.position),this.position.x+=this.offset.x,this.position.y+=this.offset.y,this.updateCenter(),this.world.staticTree.insert(this)},stop:function(){return this},getBounds:function(O){return O.x=this.x,O.y=this.y,O.right=this.right,O.bottom=this.bottom,O},hitTest:function(O,L){return this.isCircle?u(this,O,L):A(this,O,L)},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(O){var L=this.position,p=L.x+this.halfWidth,N=L.y+this.halfHeight;this.debugShowBody&&(O.lineStyle(O.defaultStrokeWidth,this.debugBodyColor,1),this.isCircle?O.strokeCircle(p,N,this.width/2):O.strokeRect(L.x,L.y,this.width,this.height))},willDrawDebug:function(){return this.debugShowBody},setMass:function(O){return O<=0&&(O=.1),this.mass=O,this},x:{get:function(){return this.position.x},set:function(O){this.world.staticTree.remove(this),this.position.x=O,this.world.staticTree.insert(this)}},y:{get:function(){return this.position.y},set:function(O){this.world.staticTree.remove(this),this.position.y=O,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}}});o.exports=S},71464:(o,m,s)=>{/** + */var u=s(87902),T=s(83419),A=s(78389),c=s(37747),d=s(37303),h=s(95829),f=s(26099),S=new T({Mixins:[A],initialize:v(function(L,p){var N=64,g=64,C={x:0,y:0,angle:0,rotation:0,scaleX:1,scaleY:1,displayOriginX:0,displayOriginY:0},P=p!==void 0;P&&p.displayWidth&&(N=p.displayWidth,g=p.displayHeight),P||(p=C),this.world=L,this.gameObject=P?p:void 0,this.isBody=!0,this.debugShowBody=L.defaults.debugShowStaticBody,this.debugBodyColor=L.defaults.staticBodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new f,this.position=new f(p.x-N*p.originX,p.y-g*p.originY),this.width=N,this.height=g,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center=new f(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=f.ZERO,this.allowGravity=!1,this.gravity=f.ZERO,this.bounce=f.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=h(!1),this.touching=h(!0),this.wasTouching=h(!0),this.blocked=h(!0),this.physicsType=c.STATIC_BODY,this.collisionCategory=1,this.collisionMask=1,this._dx=0,this._dy=0},"StaticBody"),setGameObject:function(R,L){return R&&R!==this.gameObject&&(this.gameObject.body=null,R.body=this,this.gameObject=R),L&&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,L){return L===void 0&&(L=R),this.world.staticTree.remove(this),this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(R,L),this.position.x+=this.offset.x,this.position.y+=this.offset.y,this.updateCenter(),this.world.staticTree.insert(this),this},setSize:function(R,L,p){p===void 0&&(p=!0);var N=this.gameObject;if(N&&N.frame&&(R||(R=N.frame.realWidth),L||(L=N.frame.realHeight)),this.world.staticTree.remove(this),this.width=R,this.height=L,this.halfWidth=Math.floor(R/2),this.halfHeight=Math.floor(L/2),p&&N&&N.getCenter){var g=N.displayWidth/2,C=N.displayHeight/2;this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(g-this.halfWidth,C-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,L,p){return L===void 0&&(L=this.offset.x),p===void 0&&(p=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(L,p),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,L){var p=this.gameObject;R===void 0&&(R=p.x),L===void 0&&(L=p.y),this.world.staticTree.remove(this),p.setPosition(R,L),p.getTopLeft(this.position),this.position.x+=this.offset.x,this.position.y+=this.offset.y,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,L){return this.isCircle?u(this,R,L):d(this,R,L)},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 L=this.position,p=L.x+this.halfWidth,N=L.y+this.halfHeight;this.debugShowBody&&(R.lineStyle(R.defaultStrokeWidth,this.debugBodyColor,1),this.isCircle?R.strokeCircle(p,N,this.width/2):R.strokeRect(L.x,L.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}}});o.exports=S},71464:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(13759),T=s(83419),d=s(78389),c=s(37747),A=s(95540),h=s(26479),f=s(41212),S=new T({Extends:h,Mixins:[d],initialize:P(function(L,p,N,g){!N&&!g?g={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler,createMultipleCallback:this.createMultipleCallbackHandler,classType:u}:f(N)?(g=N,N=null,g.internalCreateCallback=this.createCallbackHandler,g.internalRemoveCallback=this.removeCallbackHandler,g.createMultipleCallback=this.createMultipleCallbackHandler,g.classType=A(g,"classType",u)):Array.isArray(N)&&f(N[0])?(g=N,N=null,g.forEach(function(C){C.internalCreateCallback=this.createCallbackHandler,C.internalRemoveCallback=this.removeCallbackHandler,C.createMultipleCallback=this.createMultipleCallbackHandler,C.classType=A(C,"classType",u)})):g={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler},this.world=L,this.physicsType=c.STATIC_BODY,this.collisionCategory=1,this.collisionMask=1,h.call(this,p,N,g),this.type="StaticPhysicsGroup"},"StaticPhysicsGroup"),createCallbackHandler:function(O){O.body||this.world.enableBody(O,c.STATIC_BODY)},removeCallbackHandler:function(O){O.body&&this.world.disableBody(O)},createMultipleCallbackHandler:function(){this.refresh()},refresh:function(){for(var O=this.children.entries,L=0;L{/** + */var u=s(13759),T=s(83419),A=s(78389),c=s(37747),d=s(95540),h=s(26479),f=s(41212),S=new T({Extends:h,Mixins:[A],initialize:v(function(L,p,N,g){!N&&!g?g={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler,createMultipleCallback:this.createMultipleCallbackHandler,classType:u}:f(N)?(g=N,N=null,g.internalCreateCallback=this.createCallbackHandler,g.internalRemoveCallback=this.removeCallbackHandler,g.createMultipleCallback=this.createMultipleCallbackHandler,g.classType=d(g,"classType",u)):Array.isArray(N)&&f(N[0])?(g=N,N=null,g.forEach(function(C){C.internalCreateCallback=this.createCallbackHandler,C.internalRemoveCallback=this.removeCallbackHandler,C.createMultipleCallback=this.createMultipleCallbackHandler,C.classType=d(C,"classType",u)})):g={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler},this.world=L,this.physicsType=c.STATIC_BODY,this.collisionCategory=1,this.collisionMask=1,h.call(this,p,N,g),this.type="StaticPhysicsGroup"},"StaticPhysicsGroup"),createCallbackHandler:function(R){R.body||this.world.enableBody(R,c.STATIC_BODY)},removeCallbackHandler:function(R){R.body&&this.world.disableBody(R)},createMultipleCallbackHandler:function(){this.refresh()},refresh:function(){for(var R=this.children.entries,L=0;L{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(55495),T=s(37742),d=s(45319),c=s(83419),A=s(79342),h=s(37747),f=s(20339),S=s(52816),O=s(50792),L=s(63012),p=s(43855),N=s(5470),g=s(94977),C=s(64897),v=s(45170),M=s(96523),D=s(35154),G=s(36383),H=s(25774),B=s(96602),_=s(87841),w=s(59542),b=s(40012),F=s(14087),k=s(89936),V=s(35072),Z=s(72624),$=s(2483),Q=s(61340),te=s(26099),z=s(15994),j=new c({Extends:O,initialize:P(function(X,q){O.call(this),this.scene=X,this.bodies=new V,this.staticBodies=new V,this.pendingDestroy=new V,this.colliders=new H,this.gravity=new te(D(q,"gravity.x",0),D(q,"gravity.y",0)),this.bounds=new _(D(q,"x",0),D(q,"y",0),D(q,"width",X.sys.scale.width),D(q,"height",X.sys.scale.height)),this.checkCollision={up:D(q,"checkCollision.up",!0),down:D(q,"checkCollision.down",!0),left:D(q,"checkCollision.left",!0),right:D(q,"checkCollision.right",!0)},this.fps=D(q,"fps",60),this.fixedStep=D(q,"fixedStep",!0),this._elapsed=0,this._frameTime=1/this.fps,this._frameTimeMS=1e3*this._frameTime,this.stepsLastFrame=0,this.timeScale=D(q,"timeScale",1),this.OVERLAP_BIAS=D(q,"overlapBias",4),this.TILE_BIAS=D(q,"tileBias",16),this.forceX=D(q,"forceX",!1),this.isPaused=D(q,"isPaused",!1),this._total=0,this.drawDebug=D(q,"debug",!1),this.debugGraphic,this.defaults={debugShowBody:D(q,"debugShowBody",!0),debugShowStaticBody:D(q,"debugShowStaticBody",!0),debugShowVelocity:D(q,"debugShowVelocity",!0),bodyDebugColor:D(q,"debugBodyColor",16711935),staticBodyDebugColor:D(q,"debugStaticBodyColor",255),velocityDebugColor:D(q,"debugVelocityColor",65280)},this.maxEntries=D(q,"maxEntries",16),this.useTree=D(q,"useTree",!0),this.tree=new w(this.maxEntries),this.staticTree=new w(this.maxEntries),this.treeMinMax={minX:0,minY:0,maxX:0,maxY:0},this._tempMatrix=new Q,this._tempMatrix2=new Q,this.tileFilterOptions={isColliding:!0,isNotEmpty:!0,hasInterestingFace:!0},this.drawDebug&&this.createDebugGraphic()},"World"),enable:function(x,X){X===void 0&&(X=h.DYNAMIC_BODY),Array.isArray(x)||(x=[x]);for(var q=0;q=ae;for(this.fixedStep||(J=X*.001,Ee=!0,this._elapsed=0),q=0;q=ae;)this._elapsed-=ae,this.step(J)}},step:function(x){var X,q,J=this.bodies.entries,ae=J.length;for(X=0;X0){var Re=this.tree,Le=this.staticTree;for(q=Ee.entries,J=q.length,x=0;x-1&&x.velocity.length()>ye&&(x.velocity.normalize().scale(ye),ve=ye),x.speed=ve},separate:function(x,X,q,J,ae){var re,oe,Ee=!1,Re=!0;if(!x.enable||!X.enable||x.checkCollision.none||X.checkCollision.none||!this.intersects(x,X)||q&&q.call(J,x.gameObject,X.gameObject)===!1)return Ee;if(x.isCircle||X.isCircle){var Le=this.separateCircle(x,X,ae);Le.result?(Ee=!0,Re=!1):(re=Le.x,oe=Le.y,Re=!0)}if(Re){var ve=!1,ye=!1,De=this.OVERLAP_BIAS;ae?(ve=F(x,X,ae,De,re),ye=k(x,X,ae,De,oe)):this.forceX||Math.abs(this.gravity.y+x.gravity.y)Je&&(ye=f(ke,it,Je,Ge)-lt):it>tt&&(keJe&&(ye=f(ke,it,Je,tt)-lt)),ye*=-1}else ye=x.halfWidth+X.halfWidth-S(re,oe);x.overlapR=ye,X.overlapR=ye;var Ut=u(re,oe),Nt=(ye+G.EPSILON)*Math.cos(Ut),Ta=(ye+G.EPSILON)*Math.sin(Ut),Ua={overlap:ye,result:!1,x:Nt,y:Ta};if(q&&(!De||De&&ye!==0))return Ua.result=!0,Ua;if(!De&&ye===0||Ee&&Re||x.customSeparateX||X.customSeparateX)return Ua.x=void 0,Ua.y=void 0,Ua;var zt=!x.pushable&&!X.pushable;if(De){var bt=re.x-oe.x,Ga=re.y-oe.y,oa=Math.sqrt(Math.pow(bt,2)+Math.pow(Ga,2)),Sn=(oe.x-re.x)/oa||0,Tn=(oe.y-re.y)/oa||0,ci=2*(Le.x*Sn+Le.y*Tn-ve.x*Sn-ve.y*Tn)/(x.mass+X.mass);(Ee||Re)&&(ci*=2),Ee||(Le.x=Le.x-ci/x.mass*Sn,Le.y=Le.y-ci/x.mass*Tn,Le.multiply(x.bounce)),Re||(ve.x=ve.x+ci/X.mass*Sn,ve.y=ve.y+ci/X.mass*Tn,ve.multiply(X.bounce)),!Ee&&!Re&&(Nt*=.5,Ta*=.5),Ee||(x.x-=Nt,x.y-=Ta,x.updateCenter()),Re||(X.x+=Nt,X.y+=Ta,X.updateCenter()),Ua.result=!0}else!Ee||x.pushable||zt?(x.x-=Nt,x.y-=Ta,x.updateCenter()):(!Re||X.pushable||zt)&&(X.x+=Nt,X.y+=Ta,X.updateCenter()),Ua.x=void 0,Ua.y=void 0;return Ua},intersects:function(x,X){return x===X?!1:!x.isCircle&&!X.isCircle?!(x.right<=X.left||x.bottom<=X.top||x.left>=X.right||x.top>=X.bottom):x.isCircle?X.isCircle?S(x.center,X.center)<=x.halfWidth+X.halfWidth:this.circleBodyIntersects(x,X):this.circleBodyIntersects(X,x)},circleBodyIntersects:function(x,X){var q=d(x.center.x,X.left,X.right),J=d(x.center.y,X.top,X.bottom),ae=(x.center.x-q)*(x.center.x-q),re=(x.center.y-J)*(x.center.y-J);return ae+re<=x.halfWidth*x.halfWidth},overlap:function(x,X,q,J,ae){return q===void 0&&(q=null),J===void 0&&(J=null),ae===void 0&&(ae=q),this.collideObjects(x,X,q,J,ae,!0)},collide:function(x,X,q,J,ae){return q===void 0&&(q=null),J===void 0&&(J=null),ae===void 0&&(ae=q),this.collideObjects(x,X,q,J,ae,!1)},collideObjects:function(x,X,q,J,ae,re){var oe,Ee;x.isParent&&(x.physicsType===void 0||X===void 0||x===X)&&(x=x.children.entries),X&&X.isParent&&X.physicsType===void 0&&(X=X.children.entries);var Re=Array.isArray(x),Le=Array.isArray(X);if(this._total=0,!Re&&!Le)this.collideHandler(x,X,q,J,ae,re);else if(!Re&&Le)for(oe=0;oe0},collideHandler:function(x,X,q,J,ae,re){if(X===void 0&&x.isParent)return this.collideGroupVsGroup(x,x,q,J,ae,re);if(!x||!X)return!1;if(x.body||x.isBody){if(X.body||X.isBody)return this.collideSpriteVsSprite(x,X,q,J,ae,re);if(X.isParent)return this.collideSpriteVsGroup(x,X,q,J,ae,re);if(X.isTilemap)return this.collideSpriteVsTilemapLayer(x,X,q,J,ae,re)}else if(x.isParent){if(X.body||X.isBody)return this.collideSpriteVsGroup(X,x,q,J,ae,re);if(X.isParent)return this.collideGroupVsGroup(x,X,q,J,ae,re);if(X.isTilemap)return this.collideGroupVsTilemapLayer(x,X,q,J,ae,re)}else if(x.isTilemap){if(X.body||X.isBody)return this.collideSpriteVsTilemapLayer(X,x,q,J,ae,re);if(X.isParent)return this.collideGroupVsTilemapLayer(X,x,q,J,ae,re)}},canCollide:function(x,X){return x&&X&&(x.collisionMask&X.collisionCategory)!==0&&(X.collisionMask&x.collisionCategory)!==0},collideSpriteVsSprite:function(x,X,q,J,ae,re){var oe=x.isBody?x:x.body,Ee=X.isBody?X:X.body;return this.canCollide(oe,Ee)?(this.separate(oe,Ee,J,ae,re)&&(q&&q.call(ae,x,X),this._total++),!0):!1},collideSpriteVsGroup:function(x,X,q,J,ae,re){var oe=x.isBody?x:x.body;if(!(X.length===0||!oe||!oe.enable||oe.checkCollision.none||!this.canCollide(oe,X))){var Ee,Re,Le;if(this.useTree||X.physicsType===h.STATIC_BODY){var ve=this.treeMinMax;ve.minX=oe.left,ve.minY=oe.top,ve.maxX=oe.right,ve.maxY=oe.bottom;var ye=X.physicsType===h.DYNAMIC_BODY?this.tree.search(ve):this.staticTree.search(ve);for(Re=ye.length,Ee=0;Ee{/** + */var u=s(55495),T=s(37742),A=s(45319),c=s(83419),d=s(79342),h=s(37747),f=s(20339),S=s(52816),R=s(50792),L=s(63012),p=s(43855),N=s(5470),g=s(94977),C=s(64897),P=s(45170),M=s(96523),D=s(35154),G=s(36383),H=s(25774),B=s(96602),b=s(87841),w=s(59542),_=s(40012),F=s(14087),x=s(89936),V=s(35072),Z=s(72624),$=s(2483),Q=s(61340),te=s(26099),z=s(15994),j=new c({Extends:R,initialize:v(function(X,q){R.call(this),this.scene=X,this.bodies=new V,this.staticBodies=new V,this.pendingDestroy=new V,this.colliders=new H,this.gravity=new te(D(q,"gravity.x",0),D(q,"gravity.y",0)),this.bounds=new b(D(q,"x",0),D(q,"y",0),D(q,"width",X.sys.scale.width),D(q,"height",X.sys.scale.height)),this.checkCollision={up:D(q,"checkCollision.up",!0),down:D(q,"checkCollision.down",!0),left:D(q,"checkCollision.left",!0),right:D(q,"checkCollision.right",!0)},this.fps=D(q,"fps",60),this.fixedStep=D(q,"fixedStep",!0),this._elapsed=0,this._frameTime=1/this.fps,this._frameTimeMS=1e3*this._frameTime,this.stepsLastFrame=0,this.timeScale=D(q,"timeScale",1),this.OVERLAP_BIAS=D(q,"overlapBias",4),this.TILE_BIAS=D(q,"tileBias",16),this.forceX=D(q,"forceX",!1),this.isPaused=D(q,"isPaused",!1),this._total=0,this.drawDebug=D(q,"debug",!1),this.debugGraphic,this.defaults={debugShowBody:D(q,"debugShowBody",!0),debugShowStaticBody:D(q,"debugShowStaticBody",!0),debugShowVelocity:D(q,"debugShowVelocity",!0),bodyDebugColor:D(q,"debugBodyColor",16711935),staticBodyDebugColor:D(q,"debugStaticBodyColor",255),velocityDebugColor:D(q,"debugVelocityColor",65280)},this.maxEntries=D(q,"maxEntries",16),this.useTree=D(q,"useTree",!0),this.tree=new w(this.maxEntries),this.staticTree=new w(this.maxEntries),this.treeMinMax={minX:0,minY:0,maxX:0,maxY:0},this._tempMatrix=new Q,this._tempMatrix2=new Q,this.tileFilterOptions={isColliding:!0,isNotEmpty:!0,hasInterestingFace:!0},this.drawDebug&&this.createDebugGraphic()},"World"),enable:function(k,X){X===void 0&&(X=h.DYNAMIC_BODY),Array.isArray(k)||(k=[k]);for(var q=0;q=ne;for(this.fixedStep||(J=X*.001,Ee=!0,this._elapsed=0),q=0;q=ne;)this._elapsed-=ne,this.step(J)}},step:function(k){var X,q,J=this.bodies.entries,ne=J.length;for(X=0;X0){var me=this.tree,Le=this.staticTree;for(q=Ee.entries,J=q.length,k=0;k-1&&k.velocity.length()>ye&&(k.velocity.normalize().scale(ye),Pe=ye),k.speed=Pe},separate:function(k,X,q,J,ne){var re,oe,Ee=!1,me=!0;if(!k.enable||!X.enable||k.checkCollision.none||X.checkCollision.none||!this.intersects(k,X)||q&&q.call(J,k.gameObject,X.gameObject)===!1)return Ee;if(k.isCircle||X.isCircle){var Le=this.separateCircle(k,X,ne);Le.result?(Ee=!0,me=!1):(re=Le.x,oe=Le.y,me=!0)}if(me){var Pe=!1,ye=!1,De=this.OVERLAP_BIAS;ne?(Pe=F(k,X,ne,De,re),ye=x(k,X,ne,De,oe)):this.forceX||Math.abs(this.gravity.y+k.gravity.y)Je&&(ye=f(xe,it,Je,Ge)-lt):it>tt&&(xeJe&&(ye=f(xe,it,Je,tt)-lt)),ye*=-1}else ye=k.halfWidth+X.halfWidth-S(re,oe);k.overlapR=ye,X.overlapR=ye;var Ut=u(re,oe),Nt=(ye+G.EPSILON)*Math.cos(Ut),La=(ye+G.EPSILON)*Math.sin(Ut),ya={overlap:ye,result:!1,x:Nt,y:La};if(q&&(!De||De&&ye!==0))return ya.result=!0,ya;if(!De&&ye===0||Ee&&me||k.customSeparateX||X.customSeparateX)return ya.x=void 0,ya.y=void 0,ya;var zt=!k.pushable&&!X.pushable;if(De){var _t=re.x-oe.x,Ha=re.y-oe.y,la=Math.sqrt(Math.pow(_t,2)+Math.pow(Ha,2)),Sn=(oe.x-re.x)/la||0,Tn=(oe.y-re.y)/la||0,ci=2*(Le.x*Sn+Le.y*Tn-Pe.x*Sn-Pe.y*Tn)/(k.mass+X.mass);(Ee||me)&&(ci*=2),Ee||(Le.x=Le.x-ci/k.mass*Sn,Le.y=Le.y-ci/k.mass*Tn,Le.multiply(k.bounce)),me||(Pe.x=Pe.x+ci/X.mass*Sn,Pe.y=Pe.y+ci/X.mass*Tn,Pe.multiply(X.bounce)),!Ee&&!me&&(Nt*=.5,La*=.5),Ee||(k.x-=Nt,k.y-=La,k.updateCenter()),me||(X.x+=Nt,X.y+=La,X.updateCenter()),ya.result=!0}else!Ee||k.pushable||zt?(k.x-=Nt,k.y-=La,k.updateCenter()):(!me||X.pushable||zt)&&(X.x+=Nt,X.y+=La,X.updateCenter()),ya.x=void 0,ya.y=void 0;return ya},intersects:function(k,X){return k===X?!1:!k.isCircle&&!X.isCircle?!(k.right<=X.left||k.bottom<=X.top||k.left>=X.right||k.top>=X.bottom):k.isCircle?X.isCircle?S(k.center,X.center)<=k.halfWidth+X.halfWidth:this.circleBodyIntersects(k,X):this.circleBodyIntersects(X,k)},circleBodyIntersects:function(k,X){var q=A(k.center.x,X.left,X.right),J=A(k.center.y,X.top,X.bottom),ne=(k.center.x-q)*(k.center.x-q),re=(k.center.y-J)*(k.center.y-J);return ne+re<=k.halfWidth*k.halfWidth},overlap:function(k,X,q,J,ne){return q===void 0&&(q=null),J===void 0&&(J=null),ne===void 0&&(ne=q),this.collideObjects(k,X,q,J,ne,!0)},collide:function(k,X,q,J,ne){return q===void 0&&(q=null),J===void 0&&(J=null),ne===void 0&&(ne=q),this.collideObjects(k,X,q,J,ne,!1)},collideObjects:function(k,X,q,J,ne,re){var oe,Ee;k.isParent&&(k.physicsType===void 0||X===void 0||k===X)&&(k=k.children.entries),X&&X.isParent&&X.physicsType===void 0&&(X=X.children.entries);var me=Array.isArray(k),Le=Array.isArray(X);if(this._total=0,!me&&!Le)this.collideHandler(k,X,q,J,ne,re);else if(!me&&Le)for(oe=0;oe0},collideHandler:function(k,X,q,J,ne,re){if(X===void 0&&k.isParent)return this.collideGroupVsGroup(k,k,q,J,ne,re);if(!k||!X)return!1;if(k.body||k.isBody){if(X.body||X.isBody)return this.collideSpriteVsSprite(k,X,q,J,ne,re);if(X.isParent)return this.collideSpriteVsGroup(k,X,q,J,ne,re);if(X.isTilemap)return this.collideSpriteVsTilemapLayer(k,X,q,J,ne,re)}else if(k.isParent){if(X.body||X.isBody)return this.collideSpriteVsGroup(X,k,q,J,ne,re);if(X.isParent)return this.collideGroupVsGroup(k,X,q,J,ne,re);if(X.isTilemap)return this.collideGroupVsTilemapLayer(k,X,q,J,ne,re)}else if(k.isTilemap){if(X.body||X.isBody)return this.collideSpriteVsTilemapLayer(X,k,q,J,ne,re);if(X.isParent)return this.collideGroupVsTilemapLayer(X,k,q,J,ne,re)}},canCollide:function(k,X){return k&&X&&(k.collisionMask&X.collisionCategory)!==0&&(X.collisionMask&k.collisionCategory)!==0},collideSpriteVsSprite:function(k,X,q,J,ne,re){var oe=k.isBody?k:k.body,Ee=X.isBody?X:X.body;return this.canCollide(oe,Ee)?(this.separate(oe,Ee,J,ne,re)&&(q&&q.call(ne,k,X),this._total++),!0):!1},collideSpriteVsGroup:function(k,X,q,J,ne,re){var oe=k.isBody?k:k.body;if(!(X.length===0||!oe||!oe.enable||oe.checkCollision.none||!this.canCollide(oe,X))){var Ee,me,Le;if(this.useTree||X.physicsType===h.STATIC_BODY){var Pe=this.treeMinMax;Pe.minX=oe.left,Pe.minY=oe.top,Pe.maxX=oe.right,Pe.maxY=oe.bottom;var ye=X.physicsType===h.DYNAMIC_BODY?this.tree.search(Pe):this.staticTree.search(Pe);for(me=ye.length,Ee=0;Ee{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={setAcceleration:function(s,u){return this.body.acceleration.set(s,u),this},setAccelerationX:function(s){return this.body.acceleration.x=s,this},setAccelerationY:function(s){return this.body.acceleration.y=s,this}};o.exports=m},59023:o=>{/** + */var O={setAcceleration:function(s,u){return this.body.acceleration.set(s,u),this},setAccelerationX:function(s){return this.body.acceleration.x=s,this},setAccelerationY:function(s){return this.body.acceleration.y=s,this}};o.exports=O},59023:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={setAngularVelocity:function(s){return this.body.angularVelocity=s,this},setAngularAcceleration:function(s){return this.body.angularAcceleration=s,this},setAngularDrag:function(s){return this.body.angularDrag=s,this}};o.exports=m},62069:o=>{/** + */var O={setAngularVelocity:function(s){return this.body.angularVelocity=s,this},setAngularAcceleration:function(s){return this.body.angularAcceleration=s,this},setAngularDrag:function(s){return this.body.angularDrag=s,this}};o.exports=O},62069:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={setBounce:function(s,u){return this.body.bounce.set(s,u),this},setBounceX:function(s){return this.body.bounce.x=s,this},setBounceY:function(s){return this.body.bounce.y=s,this},setCollideWorldBounds:function(s,u,T,d){return this.body.setCollideWorldBounds(s,u,T,d),this}};o.exports=m},78389:(o,m,s)=>{/** + */var O={setBounce:function(s,u){return this.body.bounce.set(s,u),this},setBounceX:function(s){return this.body.bounce.x=s,this},setBounceY:function(s){return this.body.bounce.y=s,this},setCollideWorldBounds:function(s,u,T,A){return this.body.setCollideWorldBounds(s,u,T,A),this}};o.exports=O},78389:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(79599),T={setCollisionCategory:function(d){var c=this.body?this.body:this;return c.collisionCategory=d,this},willCollideWith:function(d){var c=this.body?this.body:this;return(c.collisionMask&d)!==0},addCollidesWith:function(d){var c=this.body?this.body:this;return c.collisionMask=c.collisionMask|d,this},removeCollidesWith:function(d){var c=this.body?this.body:this;return c.collisionMask=c.collisionMask&~d,this},setCollidesWith:function(d){var c=this.body?this.body:this;return c.collisionMask=u(d),this},resetCollisionCategory:function(){var d=this.body?this.body:this;return d.collisionCategory=1,d.collisionMask=1,this}};o.exports=T},87118:o=>{/** + */var u=s(79599),T={setCollisionCategory:function(A){var c=this.body?this.body:this;return c.collisionCategory=A,this},willCollideWith:function(A){var c=this.body?this.body:this;return(c.collisionMask&A)!==0},addCollidesWith:function(A){var c=this.body?this.body:this;return c.collisionMask=c.collisionMask|A,this},removeCollidesWith:function(A){var c=this.body?this.body:this;return c.collisionMask=c.collisionMask&~A,this},setCollidesWith:function(A){var c=this.body?this.body:this;return c.collisionMask=u(A),this},resetCollisionCategory:function(){var A=this.body?this.body:this;return A.collisionCategory=1,A.collisionMask=1,this}};o.exports=T},87118:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={setDebug:function(s,u,T){return this.debugShowBody=s,this.debugShowVelocity=u,this.debugBodyColor=T,this},setDebugBodyColor:function(s){return this.body.debugBodyColor=s,this},debugShowBody:{get:function(){return this.body.debugShowBody},set:function(s){this.body.debugShowBody=s}},debugShowVelocity:{get:function(){return this.body.debugShowVelocity},set:function(s){this.body.debugShowVelocity=s}},debugBodyColor:{get:function(){return this.body.debugBodyColor},set:function(s){this.body.debugBodyColor=s}}};o.exports=m},52819:o=>{/** + */var O={setDebug:function(s,u,T){return this.debugShowBody=s,this.debugShowVelocity=u,this.debugBodyColor=T,this},setDebugBodyColor:function(s){return this.body.debugBodyColor=s,this},debugShowBody:{get:function(){return this.body.debugShowBody},set:function(s){this.body.debugShowBody=s}},debugShowVelocity:{get:function(){return this.body.debugShowVelocity},set:function(s){this.body.debugShowVelocity=s}},debugBodyColor:{get:function(){return this.body.debugBodyColor},set:function(s){this.body.debugBodyColor=s}}};o.exports=O},52819:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={setDrag:function(s,u){return this.body.drag.set(s,u),this},setDragX:function(s){return this.body.drag.x=s,this},setDragY:function(s){return this.body.drag.y=s,this},setDamping:function(s){return this.body.useDamping=s,this}};o.exports=m},4074:o=>{/** + */var O={setDrag:function(s,u){return this.body.drag.set(s,u),this},setDragX:function(s){return this.body.drag.x=s,this},setDragY:function(s){return this.body.drag.y=s,this},setDamping:function(s){return this.body.useDamping=s,this}};o.exports=O},4074:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={setDirectControl:function(s){return this.body.setDirectControl(s),this},enableBody:function(s,u,T,d,c){return s&&this.body.reset(u,T),d&&(this.body.gameObject.active=!0),c&&(this.body.gameObject.visible=!0),this.body.enable=!0,this},disableBody:function(s,u){return s===void 0&&(s=!1),u===void 0&&(u=!1),this.body.stop(),this.body.enable=!1,s&&(this.body.gameObject.active=!1),u&&(this.body.gameObject.visible=!1),this},refreshBody:function(){return this.body.updateFromGameObject(),this}};o.exports=m},40831:o=>{/** + */var O={setDirectControl:function(s){return this.body.setDirectControl(s),this},enableBody:function(s,u,T,A,c){return s&&this.body.reset(u,T),A&&(this.body.gameObject.active=!0),c&&(this.body.gameObject.visible=!0),this.body.enable=!0,this},disableBody:function(s,u){return s===void 0&&(s=!1),u===void 0&&(u=!1),this.body.stop(),this.body.enable=!1,s&&(this.body.gameObject.active=!1),u&&(this.body.gameObject.visible=!1),this},refreshBody:function(){return this.body.updateFromGameObject(),this}};o.exports=O},40831:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={setFriction:function(s,u){return this.body.friction.set(s,u),this},setFrictionX:function(s){return this.body.friction.x=s,this},setFrictionY:function(s){return this.body.friction.y=s,this}};o.exports=m},26775:o=>{/** + */var O={setFriction:function(s,u){return this.body.friction.set(s,u),this},setFrictionX:function(s){return this.body.friction.x=s,this},setFrictionY:function(s){return this.body.friction.y=s,this}};o.exports=O},26775:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={setGravity:function(s,u){return this.body.gravity.set(s,u),this},setGravityX:function(s){return this.body.gravity.x=s,this},setGravityY:function(s){return this.body.gravity.y=s,this}};o.exports=m},9437:o=>{/** + */var O={setGravity:function(s,u){return this.body.gravity.set(s,u),this},setGravityX:function(s){return this.body.gravity.x=s,this},setGravityY:function(s){return this.body.gravity.y=s,this}};o.exports=O},9437:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={setImmovable:function(s){return s===void 0&&(s=!0),this.body.immovable=s,this}};o.exports=m},30621:o=>{/** + */var O={setImmovable:function(s){return s===void 0&&(s=!0),this.body.immovable=s,this}};o.exports=O},30621:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={setMass:function(s){return this.body.mass=s,this}};o.exports=m},72441:(o,m,s)=>{var u=s(47956),T=s(96503),d=s(2044),c=s(81491),A=P(function(h,f,S,O,L,p){var N=u(h,f-O,S-O,2*O,2*O,L,p);if(N.length===0)return N;for(var g=new T(f,S,O),C=new T,v=[],M=0;M{var m=P(function(s,u,T,d,c,A,h){A===void 0&&(A=!0),h===void 0&&(h=!1);var f=[],S=[],O=s.treeMinMax;if(O.minX=u,O.minY=T,O.maxX=u+d,O.maxY=T+c,h&&(S=s.staticTree.search(O)),A&&s.useTree)f=s.tree.search(O);else if(A){var L=s.bodies,p={position:{x:u,y:T},left:u,top:T,right:u+d,bottom:T+c,isCircle:!1},N=s.intersects;L.iterate(function(g){N(g,p)&&f.push(g)})}return S.concat(f)},"OverlapRect");o.exports=m},62121:o=>{/** + */var O={setMass:function(s){return this.body.mass=s,this}};o.exports=O},72441:(o,O,s)=>{var u=s(47956),T=s(96503),A=s(2044),c=s(81491),d=v(function(h,f,S,R,L,p){var N=u(h,f-R,S-R,2*R,2*R,L,p);if(N.length===0)return N;for(var g=new T(f,S,R),C=new T,P=[],M=0;M{var O=v(function(s,u,T,A,c,d,h){d===void 0&&(d=!0),h===void 0&&(h=!1);var f=[],S=[],R=s.treeMinMax;if(R.minX=u,R.minY=T,R.maxX=u+A,R.maxY=T+c,h&&(S=s.staticTree.search(R)),d&&s.useTree)f=s.tree.search(R);else if(d){var L=s.bodies,p={position:{x:u,y:T},left:u,top:T,right:u+A,bottom:T+c,isCircle:!1},N=s.intersects;L.iterate(function(g){N(g,p)&&f.push(g)})}return S.concat(f)},"OverlapRect");o.exports=O},62121:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={setPushable:function(s){return s===void 0&&(s=!0),this.body.pushable=s,this}};o.exports=m},29384:o=>{/** + */var O={setPushable:function(s){return s===void 0&&(s=!0),this.body.pushable=s,this}};o.exports=O},29384:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={setOffset:function(s,u){return this.body.setOffset(s,u),this},setSize:function(s,u,T){return this.body.setSize(s,u,T),this},setBodySize:function(s,u,T){return this.body.setSize(s,u,T),this},setCircle:function(s,u,T){return this.body.setCircle(s,u,T),this}};o.exports=m},15098:o=>{/** + */var O={setOffset:function(s,u){return this.body.setOffset(s,u),this},setSize:function(s,u,T){return this.body.setSize(s,u,T),this},setBodySize:function(s,u,T){return this.body.setSize(s,u,T),this},setCircle:function(s,u,T){return this.body.setCircle(s,u,T),this}};o.exports=O},15098:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={setVelocity:function(s,u){return this.body.setVelocity(s,u),this},setVelocityX:function(s){return this.body.setVelocityX(s),this},setVelocityY:function(s){return this.body.setVelocityY(s),this},setMaxVelocity:function(s,u){return this.body.maxVelocity.set(s,u),this}};o.exports=m},92209:(o,m,s)=>{/** + */var O={setVelocity:function(s,u){return this.body.setVelocity(s,u),this},setVelocityX:function(s){return this.body.setVelocityX(s),this},setVelocityY:function(s){return this.body.setVelocityY(s),this},setMaxVelocity:function(s,u){return this.body.maxVelocity.set(s,u),this}};o.exports=O},92209:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4323,7 +4323,7 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={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};o.exports=m},20009:o=>{/** + */var O={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};o.exports=O},20009:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4355,149 +4355,149 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports="worldstep"},63012:(o,m,s)=>{/** + */o.exports="worldstep"},63012:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={COLLIDE:s(20009),OVERLAP:s(36768),PAUSE:s(60473),RESUME:s(89954),TILE_COLLIDE:s(61804),TILE_OVERLAP:s(7161),WORLD_BOUNDS:s(34689),WORLD_STEP:s(16006)}},27064:(o,m,s)=>{/** + */o.exports={COLLIDE:s(20009),OVERLAP:s(36768),PAUSE:s(60473),RESUME:s(89954),TILE_COLLIDE:s(61804),TILE_OVERLAP:s(7161),WORLD_BOUNDS:s(34689),WORLD_STEP:s(16006)}},27064:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(37747),T=s(79291),d={ArcadePhysics:s(86689),Body:s(37742),Collider:s(79342),Components:s(92209),Events:s(63012),Factory:s(66022),GetCollidesWith:s(79599),GetOverlapX:s(64897),GetOverlapY:s(45170),SeparateX:s(14087),SeparateY:s(89936),Group:s(60758),Image:s(71289),Sprite:s(13759),StaticBody:s(72624),StaticGroup:s(71464),Tilemap:s(55173),World:s(82248)};d=T(!1,d,u),o.exports=d},96602:o=>{/** + */var u=s(37747),T=s(79291),A={ArcadePhysics:s(86689),Body:s(37742),Collider:s(79342),Components:s(92209),Events:s(63012),Factory:s(66022),GetCollidesWith:s(79599),GetOverlapX:s(64897),GetOverlapY:s(45170),SeparateX:s(14087),SeparateY:s(89936),Group:s(60758),Image:s(71289),Sprite:s(13759),StaticBody:s(72624),StaticGroup:s(71464),Tilemap:s(55173),World:s(82248)};A=T(!1,A,u),o.exports=A},96602:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return s.collisionCallback?!s.collisionCallback.call(s.collisionCallbackContext,u,s):s.layer.callbacks[s.index]?!s.layer.callbacks[s.index].callback.call(s.layer.callbacks[s.index].callbackContext,u,s):!0},"ProcessTileCallbacks");o.exports=m},36294:o=>{/** + */var O=v(function(s,u){return s.collisionCallback?!s.collisionCallback.call(s.collisionCallbackContext,u,s):s.layer.callbacks[s.index]?!s.layer.callbacks[s.index].callback.call(s.layer.callbacks[s.index].callbackContext,u,s):!0},"ProcessTileCallbacks");o.exports=O},36294:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){u<0?(s.blocked.none=!1,s.blocked.left=!0):u>0&&(s.blocked.none=!1,s.blocked.right=!0),s.position.x-=u,s.updateCenter(),s.bounce.x===0?s.velocity.x=0:s.velocity.x=-s.velocity.x*s.bounce.x},"ProcessTileSeparationX");o.exports=m},67013:o=>{/** + */var O=v(function(s,u){u<0?(s.blocked.none=!1,s.blocked.left=!0):u>0&&(s.blocked.none=!1,s.blocked.right=!0),s.position.x-=u,s.updateCenter(),s.bounce.x===0?s.velocity.x=0:s.velocity.x=-s.velocity.x*s.bounce.x},"ProcessTileSeparationX");o.exports=O},67013:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){u<0?(s.blocked.none=!1,s.blocked.up=!0):u>0&&(s.blocked.none=!1,s.blocked.down=!0),s.position.y-=u,s.updateCenter(),s.bounce.y===0?s.velocity.y=0:s.velocity.y=-s.velocity.y*s.bounce.y},"ProcessTileSeparationY");o.exports=m},40012:(o,m,s)=>{/** + */var O=v(function(s,u){u<0?(s.blocked.none=!1,s.blocked.up=!0):u>0&&(s.blocked.none=!1,s.blocked.down=!0),s.position.y-=u,s.updateCenter(),s.bounce.y===0?s.velocity.y=0:s.velocity.y=-s.velocity.y*s.bounce.y},"ProcessTileSeparationY");o.exports=O},40012:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(21329),T=s(53442),d=s(2483),c=P(function(A,h,f,S,O,L,p){var N=S.left,g=S.top,C=S.right,v=S.bottom,M=f.faceLeft||f.faceRight,D=f.faceTop||f.faceBottom;if(p||(M=!0,D=!0),!M&&!D)return!1;var G=0,H=0,B=0,_=1;if(h.deltaAbsX()>h.deltaAbsY()?B=-1:h.deltaAbsX(){/** + */var u=s(21329),T=s(53442),A=s(2483),c=v(function(d,h,f,S,R,L,p){var N=S.left,g=S.top,C=S.right,P=S.bottom,M=f.faceLeft||f.faceRight,D=f.faceTop||f.faceBottom;if(p||(M=!0,D=!0),!M&&!D)return!1;var G=0,H=0,B=0,b=1;if(h.deltaAbsX()>h.deltaAbsY()?B=-1:h.deltaAbsX(){/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(36294),T=P(function(d,c,A,h,f,S){var O=0,L=c.faceLeft,p=c.faceRight,N=c.collideLeft,g=c.collideRight;return S||(L=!0,p=!0,N=!0,g=!0),d.deltaX()<0&&g&&d.checkCollision.left?p&&d.x0&&N&&d.checkCollision.right&&L&&d.right>A&&(O=d.right-A,O>f&&(O=0)),O!==0&&(d.customSeparateX?d.overlapX=O:u(d,O)),O},"TileCheckX");o.exports=T},53442:(o,m,s)=>{/** + */var u=s(36294),T=v(function(A,c,d,h,f,S){var R=0,L=c.faceLeft,p=c.faceRight,N=c.collideLeft,g=c.collideRight;return S||(L=!0,p=!0,N=!0,g=!0),A.deltaX()<0&&g&&A.checkCollision.left?p&&A.x0&&N&&A.checkCollision.right&&L&&A.right>d&&(R=A.right-d,R>f&&(R=0)),R!==0&&(A.customSeparateX?A.overlapX=R:u(A,R)),R},"TileCheckX");o.exports=T},53442:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(67013),T=P(function(d,c,A,h,f,S){var O=0,L=c.faceTop,p=c.faceBottom,N=c.collideUp,g=c.collideDown;return S||(L=!0,p=!0,N=!0,g=!0),d.deltaY()<0&&g&&d.checkCollision.up?p&&d.y0&&N&&d.checkCollision.down&&L&&d.bottom>A&&(O=d.bottom-A,O>f&&(O=0)),O!==0&&(d.customSeparateY?d.overlapY=O:u(d,O)),O},"TileCheckY");o.exports=T},2483:o=>{/** + */var u=s(67013),T=v(function(A,c,d,h,f,S){var R=0,L=c.faceTop,p=c.faceBottom,N=c.collideUp,g=c.collideDown;return S||(L=!0,p=!0,N=!0,g=!0),A.deltaY()<0&&g&&A.checkCollision.up?p&&A.y0&&N&&A.checkCollision.down&&L&&A.bottom>d&&(R=A.bottom-d,R>f&&(R=0)),R!==0&&(A.customSeparateY?A.overlapY=R:u(A,R)),R},"TileCheckY");o.exports=T},2483:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return!(u.right<=s.left||u.bottom<=s.top||u.position.x>=s.right||u.position.y>=s.bottom)},"TileIntersectsBody");o.exports=m},55173:(o,m,s)=>{/** + */var O=v(function(s,u){return!(u.right<=s.left||u.bottom<=s.top||u.position.x>=s.right||u.position.y>=s.bottom)},"TileIntersectsBody");o.exports=O},55173:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u={ProcessTileCallbacks:s(96602),ProcessTileSeparationX:s(36294),ProcessTileSeparationY:s(67013),SeparateTile:s(40012),TileCheckX:s(21329),TileCheckY:s(53442),TileIntersectsBody:s(2483)};o.exports=u},44563:(o,m,s)=>{/** + */var u={ProcessTileCallbacks:s(96602),ProcessTileSeparationX:s(36294),ProcessTileSeparationY:s(67013),SeparateTile:s(40012),TileCheckX:s(21329),TileCheckY:s(53442),TileIntersectsBody:s(2483)};o.exports=u},44563:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={Arcade:s(27064),Matter:s(3875)}},68174:(o,m,s)=>{/** + */o.exports={Arcade:s(27064),Matter:s(3875)}},68174:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(26099),d=new u({initialize:P(function(){this.boundsCenter=new T,this.centerDiff=new T},"BodyBounds"),parseBody:function(c){if(c=c.hasOwnProperty("body")?c.body:c,!c.hasOwnProperty("bounds")||!c.hasOwnProperty("centerOfMass"))return!1;var A=this.boundsCenter,h=this.centerDiff,f=c.bounds.max.x-c.bounds.min.x,S=c.bounds.max.y-c.bounds.min.y,O=f*c.centerOfMass.x,L=S*c.centerOfMass.y;return A.set(f/2,S/2),h.set(O-A.x,L-A.y),!0},getTopLeft:function(c,A,h){if(A===void 0&&(A=0),h===void 0&&(h=0),this.parseBody(c)){var f=this.boundsCenter,S=this.centerDiff;return new T(A+f.x+S.x,h+f.y+S.y)}return!1},getTopCenter:function(c,A,h){if(A===void 0&&(A=0),h===void 0&&(h=0),this.parseBody(c)){var f=this.boundsCenter,S=this.centerDiff;return new T(A+S.x,h+f.y+S.y)}return!1},getTopRight:function(c,A,h){if(A===void 0&&(A=0),h===void 0&&(h=0),this.parseBody(c)){var f=this.boundsCenter,S=this.centerDiff;return new T(A-(f.x-S.x),h+f.y+S.y)}return!1},getLeftCenter:function(c,A,h){if(A===void 0&&(A=0),h===void 0&&(h=0),this.parseBody(c)){var f=this.boundsCenter,S=this.centerDiff;return new T(A+f.x+S.x,h+S.y)}return!1},getCenter:function(c,A,h){if(A===void 0&&(A=0),h===void 0&&(h=0),this.parseBody(c)){var f=this.centerDiff;return new T(A+f.x,h+f.y)}return!1},getRightCenter:function(c,A,h){if(A===void 0&&(A=0),h===void 0&&(h=0),this.parseBody(c)){var f=this.boundsCenter,S=this.centerDiff;return new T(A-(f.x-S.x),h+S.y)}return!1},getBottomLeft:function(c,A,h){if(A===void 0&&(A=0),h===void 0&&(h=0),this.parseBody(c)){var f=this.boundsCenter,S=this.centerDiff;return new T(A+f.x+S.x,h-(f.y-S.y))}return!1},getBottomCenter:function(c,A,h){if(A===void 0&&(A=0),h===void 0&&(h=0),this.parseBody(c)){var f=this.boundsCenter,S=this.centerDiff;return new T(A+S.x,h-(f.y-S.y))}return!1},getBottomRight:function(c,A,h){if(A===void 0&&(A=0),h===void 0&&(h=0),this.parseBody(c)){var f=this.boundsCenter,S=this.centerDiff;return new T(A-(f.x-S.x),h-(f.y-S.y))}return!1}});o.exports=d},19933:(o,m,s)=>{/** + */var u=s(83419),T=s(26099),A=new u({initialize:v(function(){this.boundsCenter=new T,this.centerDiff=new T},"BodyBounds"),parseBody:function(c){if(c=c.hasOwnProperty("body")?c.body:c,!c.hasOwnProperty("bounds")||!c.hasOwnProperty("centerOfMass"))return!1;var d=this.boundsCenter,h=this.centerDiff,f=c.bounds.max.x-c.bounds.min.x,S=c.bounds.max.y-c.bounds.min.y,R=f*c.centerOfMass.x,L=S*c.centerOfMass.y;return d.set(f/2,S/2),h.set(R-d.x,L-d.y),!0},getTopLeft:function(c,d,h){if(d===void 0&&(d=0),h===void 0&&(h=0),this.parseBody(c)){var f=this.boundsCenter,S=this.centerDiff;return new T(d+f.x+S.x,h+f.y+S.y)}return!1},getTopCenter:function(c,d,h){if(d===void 0&&(d=0),h===void 0&&(h=0),this.parseBody(c)){var f=this.boundsCenter,S=this.centerDiff;return new T(d+S.x,h+f.y+S.y)}return!1},getTopRight:function(c,d,h){if(d===void 0&&(d=0),h===void 0&&(h=0),this.parseBody(c)){var f=this.boundsCenter,S=this.centerDiff;return new T(d-(f.x-S.x),h+f.y+S.y)}return!1},getLeftCenter:function(c,d,h){if(d===void 0&&(d=0),h===void 0&&(h=0),this.parseBody(c)){var f=this.boundsCenter,S=this.centerDiff;return new T(d+f.x+S.x,h+S.y)}return!1},getCenter:function(c,d,h){if(d===void 0&&(d=0),h===void 0&&(h=0),this.parseBody(c)){var f=this.centerDiff;return new T(d+f.x,h+f.y)}return!1},getRightCenter:function(c,d,h){if(d===void 0&&(d=0),h===void 0&&(h=0),this.parseBody(c)){var f=this.boundsCenter,S=this.centerDiff;return new T(d-(f.x-S.x),h+S.y)}return!1},getBottomLeft:function(c,d,h){if(d===void 0&&(d=0),h===void 0&&(h=0),this.parseBody(c)){var f=this.boundsCenter,S=this.centerDiff;return new T(d+f.x+S.x,h-(f.y-S.y))}return!1},getBottomCenter:function(c,d,h){if(d===void 0&&(d=0),h===void 0&&(h=0),this.parseBody(c)){var f=this.boundsCenter,S=this.centerDiff;return new T(d+S.x,h-(f.y-S.y))}return!1},getBottomRight:function(c,d,h){if(d===void 0&&(d=0),h===void 0&&(h=0),this.parseBody(c)){var f=this.boundsCenter,S=this.centerDiff;return new T(d-(f.x-S.x),h-(f.y-S.y))}return!1}});o.exports=A},19933:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(6790);u.Body=s(22562),u.Composite=s(69351),u.World=s(4372),u.Collision=s(52284),u.Detector=s(81388),u.Pairs=s(99561),u.Pair=s(4506),u.Query=s(73296),u.Resolver=s(66272),u.Constraint=s(48140),u.Common=s(53402),u.Engine=s(48413),u.Events=s(35810),u.Sleeping=s(53614),u.Plugin=s(73832),u.Bodies=s(66280),u.Composites=s(74116),u.Axes=s(66615),u.Bounds=s(15647),u.Svg=s(74058),u.Vector=s(31725),u.Vertices=s(41598),u.World.add=u.Composite.add,u.World.remove=u.Composite.remove,u.World.addComposite=u.Composite.addComposite,u.World.addBody=u.Composite.addBody,u.World.addConstraint=u.Composite.addConstraint,u.World.clear=u.Composite.clear,o.exports=u},28137:(o,m,s)=>{/** + */var u=s(6790);u.Body=s(22562),u.Composite=s(69351),u.World=s(4372),u.Collision=s(52284),u.Detector=s(81388),u.Pairs=s(99561),u.Pair=s(4506),u.Query=s(73296),u.Resolver=s(66272),u.Constraint=s(48140),u.Common=s(53402),u.Engine=s(48413),u.Events=s(35810),u.Sleeping=s(53614),u.Plugin=s(73832),u.Bodies=s(66280),u.Composites=s(74116),u.Axes=s(66615),u.Bounds=s(15647),u.Svg=s(74058),u.Vector=s(31725),u.Vertices=s(41598),u.World.add=u.Composite.add,u.World.remove=u.Composite.remove,u.World.addComposite=u.Composite.addComposite,u.World.addBody=u.Composite.addBody,u.World.addConstraint=u.Composite.addConstraint,u.World.clear=u.Composite.clear,o.exports=u},28137:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(66280),T=s(83419),d=s(74116),c=s(48140),A=s(74058),h=s(75803),f=s(23181),S=s(34803),O=s(73834),L=s(19496),p=s(85791),N=s(98713),g=s(41598),C=new T({initialize:P(function(M){this.world=M,this.scene=M.scene,this.sys=M.scene.sys},"Factory"),rectangle:function(v,M,D,G,H){var B=u.rectangle(v,M,D,G,H);return this.world.add(B),B},trapezoid:function(v,M,D,G,H,B){var _=u.trapezoid(v,M,D,G,H,B);return this.world.add(_),_},circle:function(v,M,D,G,H){var B=u.circle(v,M,D,G,H);return this.world.add(B),B},polygon:function(v,M,D,G,H){var B=u.polygon(v,M,D,G,H);return this.world.add(B),B},fromVertices:function(v,M,D,G,H,B,_){typeof D=="string"&&(D=g.fromPath(D));var w=u.fromVertices(v,M,D,G,H,B,_);return this.world.add(w),w},fromPhysicsEditor:function(v,M,D,G,H){H===void 0&&(H=!0);var B=L.parseBody(v,M,D,G);return H&&!this.world.has(B)&&this.world.add(B),B},fromSVG:function(v,M,D,G,H,B){G===void 0&&(G=1),H===void 0&&(H={}),B===void 0&&(B=!0);for(var _=D.getElementsByTagName("path"),w=[],b=0;b<_.length;b++){var F=A.pathToVertices(_[b],30);G!==1&&g.scale(F,G,G),w.push(F)}var k=u.fromVertices(v,M,w,H);return B&&this.world.add(k),k},fromJSON:function(v,M,D,G,H){G===void 0&&(G={}),H===void 0&&(H=!0);var B=p.parseBody(v,M,D,G);return B&&H&&this.world.add(B),B},imageStack:function(v,M,D,G,H,B,_,w,b){_===void 0&&(_=0),w===void 0&&(w=0),b===void 0&&(b={});var F=this.world,k=this.sys.displayList;b.addToWorld=!1;var V=d.stack(D,G,H,B,_,w,function(Z,$){var Q=new f(F,Z,$,v,M,b);return k.add(Q),Q.body});return F.add(V),V},stack:function(v,M,D,G,H,B,_){var w=d.stack(v,M,D,G,H,B,_);return this.world.add(w),w},pyramid:function(v,M,D,G,H,B,_){var w=d.pyramid(v,M,D,G,H,B,_);return this.world.add(w),w},chain:function(v,M,D,G,H,B){return d.chain(v,M,D,G,H,B)},mesh:function(v,M,D,G,H){return d.mesh(v,M,D,G,H)},newtonsCradle:function(v,M,D,G,H){var B=d.newtonsCradle(v,M,D,G,H);return this.world.add(B),B},car:function(v,M,D,G,H){var B=d.car(v,M,D,G,H);return this.world.add(B),B},softBody:function(v,M,D,G,H,B,_,w,b,F){var k=d.softBody(v,M,D,G,H,B,_,w,b,F);return this.world.add(k),k},joint:function(v,M,D,G,H){return this.constraint(v,M,D,G,H)},spring:function(v,M,D,G,H){return this.constraint(v,M,D,G,H)},constraint:function(v,M,D,G,H){G===void 0&&(G=1),H===void 0&&(H={}),H.bodyA=v.type==="body"?v:v.body,H.bodyB=M.type==="body"?M:M.body,isNaN(D)||(H.length=D),H.stiffness=G;var B=c.create(H);return this.world.add(B),B},worldConstraint:function(v,M,D,G){D===void 0&&(D=1),G===void 0&&(G={}),G.bodyB=v.type==="body"?v:v.body,isNaN(M)||(G.length=M),G.stiffness=D;var H=c.create(G);return this.world.add(H),H},mouseSpring:function(v){return this.pointerConstraint(v)},pointerConstraint:function(v){v===void 0&&(v={}),v.hasOwnProperty("render")||(v.render={visible:!1});var M=new N(this.scene,this.world,v);return this.world.add(M.constraint),M},image:function(v,M,D,G,H){var B=new f(this.world,v,M,D,G,H);return this.sys.displayList.add(B),B},tileBody:function(v,M){return new O(this.world,v,M)},sprite:function(v,M,D,G,H){var B=new S(this.world,v,M,D,G,H);return this.sys.displayList.add(B),this.sys.updateList.add(B),B},gameObject:function(v,M,D){return h(this.world,v,M,D)},destroy:function(){this.world=null,this.scene=null,this.sys=null}});o.exports=C},75803:(o,m,s)=>{/** + */var u=s(66280),T=s(83419),A=s(74116),c=s(48140),d=s(74058),h=s(75803),f=s(23181),S=s(34803),R=s(73834),L=s(19496),p=s(85791),N=s(98713),g=s(41598),C=new T({initialize:v(function(M){this.world=M,this.scene=M.scene,this.sys=M.scene.sys},"Factory"),rectangle:function(P,M,D,G,H){var B=u.rectangle(P,M,D,G,H);return this.world.add(B),B},trapezoid:function(P,M,D,G,H,B){var b=u.trapezoid(P,M,D,G,H,B);return this.world.add(b),b},circle:function(P,M,D,G,H){var B=u.circle(P,M,D,G,H);return this.world.add(B),B},polygon:function(P,M,D,G,H){var B=u.polygon(P,M,D,G,H);return this.world.add(B),B},fromVertices:function(P,M,D,G,H,B,b){typeof D=="string"&&(D=g.fromPath(D));var w=u.fromVertices(P,M,D,G,H,B,b);return this.world.add(w),w},fromPhysicsEditor:function(P,M,D,G,H){H===void 0&&(H=!0);var B=L.parseBody(P,M,D,G);return H&&!this.world.has(B)&&this.world.add(B),B},fromSVG:function(P,M,D,G,H,B){G===void 0&&(G=1),H===void 0&&(H={}),B===void 0&&(B=!0);for(var b=D.getElementsByTagName("path"),w=[],_=0;_{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(31884),T=s(95540),d=s(26099);function c(h){return!!h.get&&typeof h.get=="function"||!!h.set&&typeof h.set=="function"}P(c,"hasGetterOrSetter");var A=P(function(h,f,S,O){S===void 0&&(S={}),O===void 0&&(O=!0);var L=f.x,p=f.y;f.body={temp:!0,position:{x:L,y:p}};var N=[u.Bounce,u.Collision,u.Force,u.Friction,u.Gravity,u.Mass,u.Sensor,u.SetBody,u.Sleep,u.Static,u.Transform,u.Velocity];if(N.forEach(function(C){for(var v in C)c(C[v])?Object.defineProperty(f,v,{get:C[v].get,set:C[v].set}):Object.defineProperty(f,v,{value:C[v]})}),f.world=h,f._tempVec2=new d(L,p),S.hasOwnProperty("type")&&S.type==="body")f.setExistingBody(S,O);else{var g=T(S,"shape",null);g||(g="rectangle"),S.addToWorld=O,f.setBody(g,S)}return f},"MatterGameObject");o.exports=A},23181:(o,m,s)=>{/** + */var u=s(31884),T=s(95540),A=s(26099);function c(h){return!!h.get&&typeof h.get=="function"||!!h.set&&typeof h.set=="function"}v(c,"hasGetterOrSetter");var d=v(function(h,f,S,R){S===void 0&&(S={}),R===void 0&&(R=!0);var L=f.x,p=f.y;f.body={temp:!0,position:{x:L,y:p}};var N=[u.Bounce,u.Collision,u.Force,u.Friction,u.Gravity,u.Mass,u.Sensor,u.SetBody,u.Sleep,u.Static,u.Transform,u.Velocity];if(N.forEach(function(C){for(var P in C)c(C[P])?Object.defineProperty(f,P,{get:C[P].get,set:C[P].set}):Object.defineProperty(f,P,{value:C[P]})}),f.world=h,f._tempVec2=new A(L,p),S.hasOwnProperty("type")&&S.type==="body")f.setExistingBody(S,R);else{var g=T(S,"shape",null);g||(g="rectangle"),S.addToWorld=R,f.setBody(g,S)}return f},"MatterGameObject");o.exports=d},23181:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(31884),d=s(95643),c=s(95540),A=s(88571),h=s(72699),f=s(26099),S=new u({Extends:A,Mixins:[T.Bounce,T.Collision,T.Force,T.Friction,T.Gravity,T.Mass,T.Sensor,T.SetBody,T.Sleep,T.Static,T.Transform,T.Velocity,h],initialize:P(function(L,p,N,g,C,v){d.call(this,L.scene,"Image"),this._crop=this.resetCropObject(),this.setTexture(g,C),this.setSizeToFrame(),this.setOrigin(),this.world=L,this._tempVec2=new f(p,N);var M=c(v,"shape",null);M?this.setBody(M,v):this.setRectangle(this.width,this.height,v),this.setPosition(p,N),this.initPipeline(),this.initPostPipeline(!0)},"MatterImage")});o.exports=S},42045:(o,m,s)=>{/** + */var u=s(83419),T=s(31884),A=s(95643),c=s(95540),d=s(88571),h=s(72699),f=s(26099),S=new u({Extends:d,Mixins:[T.Bounce,T.Collision,T.Force,T.Friction,T.Gravity,T.Mass,T.Sensor,T.SetBody,T.Sleep,T.Static,T.Transform,T.Velocity,h],initialize:v(function(L,p,N,g,C,P){A.call(this,L.scene,"Image"),this._crop=this.resetCropObject(),this.setTexture(g,C),this.setSizeToFrame(),this.setOrigin(),this.world=L,this._tempVec2=new f(p,N);var M=c(P,"shape",null);M?this.setBody(M,P):this.setRectangle(this.width,this.height,P),this.setPosition(p,N),this.initPipeline(),this.initPostPipeline(!0)},"MatterImage")});o.exports=S},42045:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(60461),T=s(66615),d=s(66280),c=s(22562),A=s(68174),h=s(15647),f=s(83419),S=s(52284),O=s(53402),L=s(69351),p=s(74116),N=s(48140),g=s(81388),C=s(20339),v=s(28137),M=s(95540),D=s(35154),G=s(18210),H=s(40178),B=s(6790),_=s(74507),w=s(46975),b=s(4506),F=s(99561),k=s(73832),V=s(37277),Z=s(73296),$=s(66272),Q=s(44594),te=s(74058),z=s(31725),j=s(41598),x=s(68243);O.setDecomp(s(55973));var X=new f({initialize:P(function(J){this.scene=J,this.systems=J.sys,this.config=this.getConfig(),this.world,this.add,this.bodyBounds,this.body=c,this.composite=L,this.collision=S,this.detector=g,this.pair=b,this.pairs=F,this.query=Z,this.resolver=$,this.constraint=N,this.bodies=d,this.composites=p,this.axes=T,this.bounds=h,this.svg=te,this.vector=z,this.vertices=j,this.verts=j,this._tempVec2=z.create(),D(this.config,"plugins.collisionevents",!0)&&this.enableCollisionEventsPlugin(),D(this.config,"plugins.attractors",!1)&&this.enableAttractorPlugin(),D(this.config,"plugins.wrap",!1)&&this.enableWrapPlugin(),$._restingThresh=D(this.config,"restingThresh",4),$._restingThreshTangent=D(this.config,"restingThreshTangent",6),$._positionDampen=D(this.config,"positionDampen",.9),$._positionWarming=D(this.config,"positionWarming",.8),$._frictionNormalMultiplier=D(this.config,"frictionNormalMultiplier",5),J.sys.events.once(Q.BOOT,this.boot,this),J.sys.events.on(Q.START,this.start,this)},"MatterPhysics"),boot:function(){this.world=new x(this.scene,this.config),this.add=new v(this.world),this.bodyBounds=new A,this.systems.events.once(Q.DESTROY,this.destroy,this)},start:function(){this.world||(this.world=new x(this.scene,this.config),this.add=new v(this.world));var q=this.systems.events;q.on(Q.UPDATE,this.world.update,this.world),q.on(Q.POST_UPDATE,this.world.postUpdate,this.world),q.once(Q.SHUTDOWN,this.shutdown,this)},getConfig:function(){var q=this.systems.game.config.physics,J=this.systems.settings.physics,ae=w(M(J,"matter",{}),M(q,"matter",{}));return ae},enableAttractorPlugin:function(){return k.register(G),k.use(B,G),this},enableWrapPlugin:function(){return k.register(_),k.use(B,_),this},enableCollisionEventsPlugin:function(){return k.register(H),k.use(B,H),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(q,J){this.world.step(q,J)},containsPoint:function(q,J,ae){q=this.getMatterBodies(q);var re=z.create(J,ae),oe=Z.point(q,re);return oe.length>0},intersectPoint:function(q,J,ae){ae=this.getMatterBodies(ae);var re=z.create(q,J),oe=[],Ee=Z.point(ae,re);return Ee.forEach(function(Re){oe.indexOf(Re)===-1&&oe.push(Re)}),oe},intersectRect:function(q,J,ae,re,oe,Ee){oe===void 0&&(oe=!1),Ee=this.getMatterBodies(Ee);var Re={min:{x:q,y:J},max:{x:q+ae,y:J+re}},Le=[],ve=Z.region(Ee,Re,oe);return ve.forEach(function(ye){Le.indexOf(ye)===-1&&Le.push(ye)}),Le},intersectRay:function(q,J,ae,re,oe,Ee){oe===void 0&&(oe=1),Ee=this.getMatterBodies(Ee);for(var Re=[],Le=Z.ray(Ee,z.create(q,J),z.create(ae,re),oe),ve=0;ve{/** + */var u=s(60461),T=s(66615),A=s(66280),c=s(22562),d=s(68174),h=s(15647),f=s(83419),S=s(52284),R=s(53402),L=s(69351),p=s(74116),N=s(48140),g=s(81388),C=s(20339),P=s(28137),M=s(95540),D=s(35154),G=s(18210),H=s(40178),B=s(6790),b=s(74507),w=s(46975),_=s(4506),F=s(99561),x=s(73832),V=s(37277),Z=s(73296),$=s(66272),Q=s(44594),te=s(74058),z=s(31725),j=s(41598),k=s(68243);R.setDecomp(s(55973));var X=new f({initialize:v(function(J){this.scene=J,this.systems=J.sys,this.config=this.getConfig(),this.world,this.add,this.bodyBounds,this.body=c,this.composite=L,this.collision=S,this.detector=g,this.pair=_,this.pairs=F,this.query=Z,this.resolver=$,this.constraint=N,this.bodies=A,this.composites=p,this.axes=T,this.bounds=h,this.svg=te,this.vector=z,this.vertices=j,this.verts=j,this._tempVec2=z.create(),D(this.config,"plugins.collisionevents",!0)&&this.enableCollisionEventsPlugin(),D(this.config,"plugins.attractors",!1)&&this.enableAttractorPlugin(),D(this.config,"plugins.wrap",!1)&&this.enableWrapPlugin(),$._restingThresh=D(this.config,"restingThresh",4),$._restingThreshTangent=D(this.config,"restingThreshTangent",6),$._positionDampen=D(this.config,"positionDampen",.9),$._positionWarming=D(this.config,"positionWarming",.8),$._frictionNormalMultiplier=D(this.config,"frictionNormalMultiplier",5),J.sys.events.once(Q.BOOT,this.boot,this),J.sys.events.on(Q.START,this.start,this)},"MatterPhysics"),boot:function(){this.world=new k(this.scene,this.config),this.add=new P(this.world),this.bodyBounds=new d,this.systems.events.once(Q.DESTROY,this.destroy,this)},start:function(){this.world||(this.world=new k(this.scene,this.config),this.add=new P(this.world));var q=this.systems.events;q.on(Q.UPDATE,this.world.update,this.world),q.on(Q.POST_UPDATE,this.world.postUpdate,this.world),q.once(Q.SHUTDOWN,this.shutdown,this)},getConfig:function(){var q=this.systems.game.config.physics,J=this.systems.settings.physics,ne=w(M(J,"matter",{}),M(q,"matter",{}));return ne},enableAttractorPlugin:function(){return x.register(G),x.use(B,G),this},enableWrapPlugin:function(){return x.register(b),x.use(B,b),this},enableCollisionEventsPlugin:function(){return x.register(H),x.use(B,H),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(q,J){this.world.step(q,J)},containsPoint:function(q,J,ne){q=this.getMatterBodies(q);var re=z.create(J,ne),oe=Z.point(q,re);return oe.length>0},intersectPoint:function(q,J,ne){ne=this.getMatterBodies(ne);var re=z.create(q,J),oe=[],Ee=Z.point(ne,re);return Ee.forEach(function(me){oe.indexOf(me)===-1&&oe.push(me)}),oe},intersectRect:function(q,J,ne,re,oe,Ee){oe===void 0&&(oe=!1),Ee=this.getMatterBodies(Ee);var me={min:{x:q,y:J},max:{x:q+ne,y:J+re}},Le=[],Pe=Z.region(Ee,me,oe);return Pe.forEach(function(ye){Le.indexOf(ye)===-1&&Le.push(ye)}),Le},intersectRay:function(q,J,ne,re,oe,Ee){oe===void 0&&(oe=1),Ee=this.getMatterBodies(Ee);for(var me=[],Le=Z.ray(Ee,z.create(q,J),z.create(ne,re),oe),Pe=0;Pe{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(9674),T=s(83419),d=s(31884),c=s(95643),A=s(95540),h=s(72699),f=s(68287),S=s(26099),O=new T({Extends:f,Mixins:[d.Bounce,d.Collision,d.Force,d.Friction,d.Gravity,d.Mass,d.Sensor,d.SetBody,d.Sleep,d.Static,d.Transform,d.Velocity,h],initialize:P(function(p,N,g,C,v,M){c.call(this,p.scene,"Sprite"),this._crop=this.resetCropObject(),this.anims=new u(this),this.setTexture(C,v),this.setSizeToFrame(),this.setOrigin(),this.world=p,this._tempVec2=new S(N,g);var D=A(M,"shape",null);D?this.setBody(D,M):this.setRectangle(this.width,this.height,M),this.setPosition(N,g),this.initPipeline(),this.initPostPipeline(!0)},"MatterSprite")});o.exports=O},73834:(o,m,s)=>{/** + */var u=s(9674),T=s(83419),A=s(31884),c=s(95643),d=s(95540),h=s(72699),f=s(68287),S=s(26099),R=new T({Extends:f,Mixins:[A.Bounce,A.Collision,A.Force,A.Friction,A.Gravity,A.Mass,A.Sensor,A.SetBody,A.Sleep,A.Static,A.Transform,A.Velocity,h],initialize:v(function(p,N,g,C,P,M){c.call(this,p.scene,"Sprite"),this._crop=this.resetCropObject(),this.anims=new u(this),this.setTexture(C,P),this.setSizeToFrame(),this.setOrigin(),this.world=p,this._tempVec2=new S(N,g);var D=d(M,"shape",null);D?this.setBody(D,M):this.setRectangle(this.width,this.height,M),this.setPosition(N,g),this.initPipeline(),this.initPostPipeline(!0)},"MatterSprite")});o.exports=R},73834:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(66280),T=s(22562),d=s(83419),c=s(31884),A=s(62644),h=s(50792),f=s(95540),S=s(97022),O=s(41598),L=new d({Extends:h,Mixins:[c.Bounce,c.Collision,c.Friction,c.Gravity,c.Mass,c.Sensor,c.Sleep,c.Static],initialize:P(function(N,g,C){h.call(this),this.tile=g,this.world=N,g.physics.matterBody&&g.physics.matterBody.destroy(),g.physics.matterBody=this;var v=f(C,"body",null),M=f(C,"addToWorld",!0);if(v)this.setBody(v,M);else{var D=g.getCollisionGroup(),G=f(D,"objects",[]);G.length>0?this.setFromTileCollision(C):this.setFromTileRectangle(C)}if(g.flipX||g.flipY){var H={x:g.getCenterX(),y:g.getCenterY()},B=g.flipX?-1:1,_=g.flipY?-1:1;T.scale(v,B,_,H)}},"MatterTileBody"),setFromTileRectangle:function(p){p===void 0&&(p={}),S(p,"isStatic")||(p.isStatic=!0),S(p,"addToWorld")||(p.addToWorld=!0);var N=this.tile.getBounds(),g=N.x+N.width/2,C=N.y+N.height/2,v=u.rectangle(g,C,N.width,N.height,p);return this.setBody(v,p.addToWorld),this},setFromTileCollision:function(p){p===void 0&&(p={}),S(p,"isStatic")||(p.isStatic=!0),S(p,"addToWorld")||(p.addToWorld=!0);for(var N=this.tile.tilemapLayer.scaleX,g=this.tile.tilemapLayer.scaleY,C=this.tile.getLeft(),v=this.tile.getTop(),M=this.tile.getCollisionGroup(),D=f(M,"objects",[]),G=[],H=0;H1){var te=A(p);te.parts=G,this.setBody(T.create(te),te.addToWorld)}return this},setBody:function(p,N){return N===void 0&&(N=!0),this.body&&this.removeBody(),this.body=p,this.body.gameObject=this,N&&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()}});o.exports=L},19496:(o,m,s)=>{/** + */var u=s(66280),T=s(22562),A=s(83419),c=s(31884),d=s(62644),h=s(50792),f=s(95540),S=s(97022),R=s(41598),L=new A({Extends:h,Mixins:[c.Bounce,c.Collision,c.Friction,c.Gravity,c.Mass,c.Sensor,c.Sleep,c.Static],initialize:v(function(N,g,C){h.call(this),this.tile=g,this.world=N,g.physics.matterBody&&g.physics.matterBody.destroy(),g.physics.matterBody=this;var P=f(C,"body",null),M=f(C,"addToWorld",!0);if(P)this.setBody(P,M);else{var D=g.getCollisionGroup(),G=f(D,"objects",[]);G.length>0?this.setFromTileCollision(C):this.setFromTileRectangle(C)}if(g.flipX||g.flipY){var H={x:g.getCenterX(),y:g.getCenterY()},B=g.flipX?-1:1,b=g.flipY?-1:1;T.scale(P,B,b,H)}},"MatterTileBody"),setFromTileRectangle:function(p){p===void 0&&(p={}),S(p,"isStatic")||(p.isStatic=!0),S(p,"addToWorld")||(p.addToWorld=!0);var N=this.tile.getBounds(),g=N.x+N.width/2,C=N.y+N.height/2,P=u.rectangle(g,C,N.width,N.height,p);return this.setBody(P,p.addToWorld),this},setFromTileCollision:function(p){p===void 0&&(p={}),S(p,"isStatic")||(p.isStatic=!0),S(p,"addToWorld")||(p.addToWorld=!0);for(var N=this.tile.tilemapLayer.scaleX,g=this.tile.tilemapLayer.scaleY,C=this.tile.getLeft(),P=this.tile.getTop(),M=this.tile.getCollisionGroup(),D=f(M,"objects",[]),G=[],H=0;H1){var te=d(p);te.parts=G,this.setBody(T.create(te),te.addToWorld)}return this},setBody:function(p,N){return N===void 0&&(N=!0),this.body&&this.removeBody(),this.body=p,this.body.gameObject=this,N&&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()}});o.exports=L},19496:(o,O,s)=>{/** * @author Joachim Grill * @author Richard Davey * @copyright 2018 CodeAndWeb GmbH * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(66280),T=s(22562),d=s(53402),c=s(95540),A=s(41598),h={parseBody:function(f,S,O,L){L===void 0&&(L={});for(var p=c(O,"fixtures",[]),N=[],g=0;g{/** + */var u=s(66280),T=s(22562),A=s(53402),c=s(95540),d=s(41598),h={parseBody:function(f,S,R,L){L===void 0&&(L={});for(var p=c(R,"fixtures",[]),N=[],g=0;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(66280),T=s(22562),d={parseBody:function(c,A,h,f){f===void 0&&(f={});var S,O=h.vertices;if(O.length===1)f.vertices=O[0],S=T.create(f),u.flagCoincidentParts(S.parts);else{for(var L=[],p=0;p{/** + */var u=s(66280),T=s(22562),A={parseBody:function(c,d,h,f){f===void 0&&(f={});var S,R=h.vertices;if(R.length===1)f.vertices=R[0],S=T.create(f),u.flagCoincidentParts(S.parts);else{for(var L=[],p=0;p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(15647),T=s(83419),d=s(69351),c=s(48140),A=s(81388),h=s(1121),f=s(8214),S=s(46975),O=s(53614),L=s(26099),p=s(41598),N=new T({initialize:P(function(C,v,M){M===void 0&&(M={});var D={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=C,this.world=v,this.camera=null,this.pointer=null,this.active=!0,this.position=new L,this.body=null,this.part=null,this.constraint=c.create(S(M,D)),this.world.on(h.BEFORE_UPDATE,this.update,this),C.sys.input.on(f.POINTER_DOWN,this.onDown,this),C.sys.input.on(f.POINTER_UP,this.onUp,this)},"PointerConstraint"),onDown:function(g){this.pointer||(this.pointer=g,this.camera=g.camera)},onUp:function(g){g===this.pointer&&(this.pointer=null)},getBody:function(g){var C=this.position,v=this.constraint;this.camera.getWorldPoint(g.x,g.y,C);for(var M=d.allBodies(this.world.localWorld),D=0;D1?1:0,G=D;G{/** + */var u=s(15647),T=s(83419),A=s(69351),c=s(48140),d=s(81388),h=s(1121),f=s(8214),S=s(46975),R=s(53614),L=s(26099),p=s(41598),N=new T({initialize:v(function(C,P,M){M===void 0&&(M={});var D={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=C,this.world=P,this.camera=null,this.pointer=null,this.active=!0,this.position=new L,this.body=null,this.part=null,this.constraint=c.create(S(M,D)),this.world.on(h.BEFORE_UPDATE,this.update,this),C.sys.input.on(f.POINTER_DOWN,this.onDown,this),C.sys.input.on(f.POINTER_UP,this.onUp,this)},"PointerConstraint"),onDown:function(g){this.pointer||(this.pointer=g,this.camera=g.camera)},onUp:function(g){g===this.pointer&&(this.pointer=null)},getBody:function(g){var C=this.position,P=this.constraint;this.camera.getWorldPoint(g.x,g.y,C);for(var M=A.allBodies(this.world.localWorld),D=0;D1?1:0,G=D;G{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(66280),T=s(22562),d=s(83419),c=s(53402),A=s(69351),h=s(48413),f=s(50792),S=s(1121),O=s(95540),L=s(35154),p=s(22562),N=s(35810),g=s(73834),C=s(4372),v=s(31725),M=new d({Extends:f,initialize:P(function(G,H){f.call(this),this.scene=G,this.engine=h.create(H),this.localWorld=this.engine.world;var B=L(H,"gravity",null);B?this.setGravity(B.x,B.y,B.scale):B===!1&&this.setGravity(0,0,0),this.walls={left:null,right:null,top:null,bottom:null},this.enabled=L(H,"enabled",!0),this.getDelta=L(H,"getDelta",this.update60Hz);var _=O(H,"runner",{}),w=O(_,"fps",!1),b=O(_,"fps",60),F=O(_,"delta",1e3/b),k=O(_,"deltaMin",1e3/b),V=O(_,"deltaMax",1e3/(b*.5));w||(b=1e3/F),this.runner={fps:b,deltaSampleSize:O(_,"deltaSampleSize",60),counterTimestamp:0,frameCounter:0,deltaHistory:[],timePrev:null,timeScalePrev:1,frameRequestId:null,isFixed:O(_,"isFixed",!1),delta:F,deltaMin:k,deltaMax:V},this.autoUpdate=L(H,"autoUpdate",!0);var Z=L(H,"debug",!1);if(this.drawDebug=typeof Z=="object"?!0:Z,this.debugGraphic,this.debugConfig={showAxes:O(Z,"showAxes",!1),showAngleIndicator:O(Z,"showAngleIndicator",!1),angleColor:O(Z,"angleColor",15208787),showBroadphase:O(Z,"showBroadphase",!1),broadphaseColor:O(Z,"broadphaseColor",16757760),showBounds:O(Z,"showBounds",!1),boundsColor:O(Z,"boundsColor",16777215),showVelocity:O(Z,"showVelocity",!1),velocityColor:O(Z,"velocityColor",44783),showCollisions:O(Z,"showCollisions",!1),collisionColor:O(Z,"collisionColor",16094476),showSeparations:O(Z,"showSeparations",!1),separationColor:O(Z,"separationColor",16753920),showBody:O(Z,"showBody",!0),showStaticBody:O(Z,"showStaticBody",!0),showInternalEdges:O(Z,"showInternalEdges",!1),renderFill:O(Z,"renderFill",!1),renderLine:O(Z,"renderLine",!0),fillColor:O(Z,"fillColor",1075465),fillOpacity:O(Z,"fillOpacity",1),lineColor:O(Z,"lineColor",2678297),lineOpacity:O(Z,"lineOpacity",1),lineThickness:O(Z,"lineThickness",1),staticFillColor:O(Z,"staticFillColor",857979),staticLineColor:O(Z,"staticLineColor",1255396),showSleeping:O(Z,"showSleeping",!1),staticBodySleepOpacity:O(Z,"staticBodySleepOpacity",.7),sleepFillColor:O(Z,"sleepFillColor",4605510),sleepLineColor:O(Z,"sleepLineColor",10066585),showSensors:O(Z,"showSensors",!0),sensorFillColor:O(Z,"sensorFillColor",857979),sensorLineColor:O(Z,"sensorLineColor",1255396),showPositions:O(Z,"showPositions",!0),positionSize:O(Z,"positionSize",4),positionColor:O(Z,"positionColor",14697178),showJoint:O(Z,"showJoint",!0),jointColor:O(Z,"jointColor",14737474),jointLineOpacity:O(Z,"jointLineOpacity",1),jointLineThickness:O(Z,"jointLineThickness",2),pinSize:O(Z,"pinSize",4),pinColor:O(Z,"pinColor",4382944),springColor:O(Z,"springColor",14697184),anchorColor:O(Z,"anchorColor",15724527),anchorSize:O(Z,"anchorSize",4),showConvexHulls:O(Z,"showConvexHulls",!1),hullColor:O(Z,"hullColor",14091216)},this.drawDebug&&this.createDebugGraphic(),this.setEventsProxy(),O(H,"setBounds",!1)){var $=H.setBounds;if(typeof $=="boolean")this.setBounds();else{var Q=O($,"x",0),te=O($,"y",0),z=O($,"width",G.sys.scale.width),j=O($,"height",G.sys.scale.height),x=O($,"thickness",64),X=O($,"left",!0),q=O($,"right",!0),J=O($,"top",!0),ae=O($,"bottom",!0);this.setBounds(Q,te,z,j,x,X,q,J,ae)}}},"World"),setCompositeRenderStyle:function(D){var G=D.bodies,H=D.constraints,B=D.composites,_,w,b;for(_=0;_0&&(w=_[0].bodyA,b=_[0].bodyB),D.emit(S.COLLISION_START,B,w,b)}),N.on(G,"collisionActive",function(B){var _=B.pairs,w,b;_.length>0&&(w=_[0].bodyA,b=_[0].bodyB),D.emit(S.COLLISION_ACTIVE,B,w,b)}),N.on(G,"collisionEnd",function(B){var _=B.pairs,w,b;_.length>0&&(w=_[0].bodyA,b=_[0].bodyB),D.emit(S.COLLISION_END,B,w,b)})},setBounds:function(D,G,H,B,_,w,b,F,k){return D===void 0&&(D=0),G===void 0&&(G=0),H===void 0&&(H=this.scene.sys.scale.width),B===void 0&&(B=this.scene.sys.scale.height),_===void 0&&(_=64),w===void 0&&(w=!0),b===void 0&&(b=!0),F===void 0&&(F=!0),k===void 0&&(k=!0),this.updateWall(w,"left",D-_,G-_,_,B+_*2),this.updateWall(b,"right",D+H,G-_,_,B+_*2),this.updateWall(F,"top",D,G-_,H,_),this.updateWall(k,"bottom",D,G+B,H,_),this},updateWall:function(D,G,H,B,_,w){var b=this.walls[G];D?(b&&C.remove(this.localWorld,b),H+=_/2,B+=w/2,this.walls[G]=this.create(H,B,_,w,{isStatic:!0,friction:0,frictionStatic:0})):(b&&C.remove(this.localWorld,b),this.walls[G]=null)},createDebugGraphic:function(){var D=this.scene.sys.add.graphics({x:0,y:0});return D.setDepth(Number.MAX_VALUE),this.debugGraphic=D,this.drawDebug=!0,D},disableGravity:function(){return this.localWorld.gravity.x=0,this.localWorld.gravity.y=0,this.localWorld.gravity.scale=0,this},setGravity:function(D,G,H){return D===void 0&&(D=0),G===void 0&&(G=1),H===void 0&&(H=.001),this.localWorld.gravity.x=D,this.localWorld.gravity.y=G,this.localWorld.gravity.scale=H,this},create:function(D,G,H,B,_){var w=u.rectangle(D,G,H,B,_);return C.add(this.localWorld,w),w},add:function(D){return C.add(this.localWorld,D),this},remove:function(D,G){Array.isArray(D)||(D=[D]);for(var H=0;HB.deltaMax?B.deltaMax:G,B.delta=G),B.timeScalePrev=_.timeScale,B.frameCounter+=1,D-B.counterTimestamp>=1e3&&(B.fps=B.frameCounter*((D-B.counterTimestamp)/1e3),B.counterTimestamp=D,B.frameCounter=0),h.update(H,G)}},step:function(D){h.update(this.engine,D)},update60Hz:function(){return 1e3/60},update30Hz:function(){return 1e3/30},has:function(D){var G=D.hasOwnProperty("body")?D.body:D;return A.get(this.localWorld,G.id,G.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 D=this.debugConfig,G=this.engine,H=this.debugGraphic,B=A.allBodies(this.localWorld);this.debugGraphic.clear(),D.showBroadphase&&G.broadphase.controller&&this.renderGrid(G.broadphase,H,D.broadphaseColor,.5),D.showBounds&&this.renderBodyBounds(B,H,D.boundsColor,.5),(D.showBody||D.showStaticBody)&&this.renderBodies(B),D.showJoint&&this.renderJoints(),(D.showAxes||D.showAngleIndicator)&&this.renderBodyAxes(B,H,D.showAxes,D.angleColor,.5),D.showVelocity&&this.renderBodyVelocity(B,H,D.velocityColor,1,2),D.showSeparations&&this.renderSeparations(G.pairs.list,H,D.separationColor),D.showCollisions&&this.renderCollisions(G.pairs.list,H,D.collisionColor)}},renderGrid:function(D,G,H,B){G.lineStyle(1,H,B);for(var _=c.keys(D.buckets),w=0;w<_.length;w++){var b=_[w];if(!(D.buckets[b].length<2)){var F=b.split(/C|R/);G.strokeRect(parseInt(F[1],10)*D.bucketWidth,parseInt(F[2],10)*D.bucketHeight,D.bucketWidth,D.bucketHeight)}}return this},renderSeparations:function(D,G,H){G.lineStyle(1,H,1);for(var B=0;B0){var Z=V[0].vertex.x,$=V[0].vertex.y;V.length===2&&(Z=(V[0].vertex.x+V[1].vertex.x)/2,$=(V[0].vertex.y+V[1].vertex.y)/2),k.bodyB===k.supports[0].body||k.bodyA.isStatic?G.lineBetween(Z-k.normal.x*8,$-k.normal.y*8,Z,$):G.lineBetween(Z+k.normal.x*8,$+k.normal.y*8,Z,$)}}return this},renderBodyBounds:function(D,G,H,B){G.lineStyle(1,H,B);for(var _=0;_1?1:0;k1?1:0;V1?1:0;V1&&this.renderConvexHull(j,G,te,q)}}},renderBody:function(D,G,H,B,_,w,b,F){B===void 0&&(B=null),_===void 0&&(_=null),w===void 0&&(w=1),b===void 0&&(b=null),F===void 0&&(F=null);for(var k=this.debugConfig,V=k.sensorFillColor,Z=k.sensorLineColor,$=D.parts,Q=$.length,te=Q>1?1:0;te1){var b=D.vertices;G.lineStyle(B,H),G.beginPath(),G.moveTo(b[0].x,b[0].y);for(var F=1;F0&&(G.fillStyle(b),G.fillCircle($.x,$.y,F),G.fillCircle(Q.x,Q.y,F)),this},resetCollisionIDs:function(){return T._nextCollidingGroupId=1,T._nextNonCollidingGroupId=-1,T._nextCategory=1,this},shutdown:function(){N.off(this.engine),this.removeAllListeners(),C.clear(this.localWorld,!1),h.clear(this.engine),this.drawDebug&&this.debugGraphic.destroy()},destroy:function(){this.shutdown()}});o.exports=M},70410:o=>{/** + */var u=s(66280),T=s(22562),A=s(83419),c=s(53402),d=s(69351),h=s(48413),f=s(50792),S=s(1121),R=s(95540),L=s(35154),p=s(22562),N=s(35810),g=s(73834),C=s(4372),P=s(31725),M=new A({Extends:f,initialize:v(function(G,H){f.call(this),this.scene=G,this.engine=h.create(H),this.localWorld=this.engine.world;var B=L(H,"gravity",null);B?this.setGravity(B.x,B.y,B.scale):B===!1&&this.setGravity(0,0,0),this.walls={left:null,right:null,top:null,bottom:null},this.enabled=L(H,"enabled",!0),this.getDelta=L(H,"getDelta",this.update60Hz);var b=R(H,"runner",{}),w=R(b,"fps",!1),_=R(b,"fps",60),F=R(b,"delta",1e3/_),x=R(b,"deltaMin",1e3/_),V=R(b,"deltaMax",1e3/(_*.5));w||(_=1e3/F),this.runner={fps:_,deltaSampleSize:R(b,"deltaSampleSize",60),counterTimestamp:0,frameCounter:0,deltaHistory:[],timePrev:null,timeScalePrev:1,frameRequestId:null,isFixed:R(b,"isFixed",!1),delta:F,deltaMin:x,deltaMax:V},this.autoUpdate=L(H,"autoUpdate",!0);var Z=L(H,"debug",!1);if(this.drawDebug=typeof Z=="object"?!0:Z,this.debugGraphic,this.debugConfig={showAxes:R(Z,"showAxes",!1),showAngleIndicator:R(Z,"showAngleIndicator",!1),angleColor:R(Z,"angleColor",15208787),showBroadphase:R(Z,"showBroadphase",!1),broadphaseColor:R(Z,"broadphaseColor",16757760),showBounds:R(Z,"showBounds",!1),boundsColor:R(Z,"boundsColor",16777215),showVelocity:R(Z,"showVelocity",!1),velocityColor:R(Z,"velocityColor",44783),showCollisions:R(Z,"showCollisions",!1),collisionColor:R(Z,"collisionColor",16094476),showSeparations:R(Z,"showSeparations",!1),separationColor:R(Z,"separationColor",16753920),showBody:R(Z,"showBody",!0),showStaticBody:R(Z,"showStaticBody",!0),showInternalEdges:R(Z,"showInternalEdges",!1),renderFill:R(Z,"renderFill",!1),renderLine:R(Z,"renderLine",!0),fillColor:R(Z,"fillColor",1075465),fillOpacity:R(Z,"fillOpacity",1),lineColor:R(Z,"lineColor",2678297),lineOpacity:R(Z,"lineOpacity",1),lineThickness:R(Z,"lineThickness",1),staticFillColor:R(Z,"staticFillColor",857979),staticLineColor:R(Z,"staticLineColor",1255396),showSleeping:R(Z,"showSleeping",!1),staticBodySleepOpacity:R(Z,"staticBodySleepOpacity",.7),sleepFillColor:R(Z,"sleepFillColor",4605510),sleepLineColor:R(Z,"sleepLineColor",10066585),showSensors:R(Z,"showSensors",!0),sensorFillColor:R(Z,"sensorFillColor",857979),sensorLineColor:R(Z,"sensorLineColor",1255396),showPositions:R(Z,"showPositions",!0),positionSize:R(Z,"positionSize",4),positionColor:R(Z,"positionColor",14697178),showJoint:R(Z,"showJoint",!0),jointColor:R(Z,"jointColor",14737474),jointLineOpacity:R(Z,"jointLineOpacity",1),jointLineThickness:R(Z,"jointLineThickness",2),pinSize:R(Z,"pinSize",4),pinColor:R(Z,"pinColor",4382944),springColor:R(Z,"springColor",14697184),anchorColor:R(Z,"anchorColor",15724527),anchorSize:R(Z,"anchorSize",4),showConvexHulls:R(Z,"showConvexHulls",!1),hullColor:R(Z,"hullColor",14091216)},this.drawDebug&&this.createDebugGraphic(),this.setEventsProxy(),R(H,"setBounds",!1)){var $=H.setBounds;if(typeof $=="boolean")this.setBounds();else{var Q=R($,"x",0),te=R($,"y",0),z=R($,"width",G.sys.scale.width),j=R($,"height",G.sys.scale.height),k=R($,"thickness",64),X=R($,"left",!0),q=R($,"right",!0),J=R($,"top",!0),ne=R($,"bottom",!0);this.setBounds(Q,te,z,j,k,X,q,J,ne)}}},"World"),setCompositeRenderStyle:function(D){var G=D.bodies,H=D.constraints,B=D.composites,b,w,_;for(b=0;b0&&(w=b[0].bodyA,_=b[0].bodyB),D.emit(S.COLLISION_START,B,w,_)}),N.on(G,"collisionActive",function(B){var b=B.pairs,w,_;b.length>0&&(w=b[0].bodyA,_=b[0].bodyB),D.emit(S.COLLISION_ACTIVE,B,w,_)}),N.on(G,"collisionEnd",function(B){var b=B.pairs,w,_;b.length>0&&(w=b[0].bodyA,_=b[0].bodyB),D.emit(S.COLLISION_END,B,w,_)})},setBounds:function(D,G,H,B,b,w,_,F,x){return D===void 0&&(D=0),G===void 0&&(G=0),H===void 0&&(H=this.scene.sys.scale.width),B===void 0&&(B=this.scene.sys.scale.height),b===void 0&&(b=64),w===void 0&&(w=!0),_===void 0&&(_=!0),F===void 0&&(F=!0),x===void 0&&(x=!0),this.updateWall(w,"left",D-b,G-b,b,B+b*2),this.updateWall(_,"right",D+H,G-b,b,B+b*2),this.updateWall(F,"top",D,G-b,H,b),this.updateWall(x,"bottom",D,G+B,H,b),this},updateWall:function(D,G,H,B,b,w){var _=this.walls[G];D?(_&&C.remove(this.localWorld,_),H+=b/2,B+=w/2,this.walls[G]=this.create(H,B,b,w,{isStatic:!0,friction:0,frictionStatic:0})):(_&&C.remove(this.localWorld,_),this.walls[G]=null)},createDebugGraphic:function(){var D=this.scene.sys.add.graphics({x:0,y:0});return D.setDepth(Number.MAX_VALUE),this.debugGraphic=D,this.drawDebug=!0,D},disableGravity:function(){return this.localWorld.gravity.x=0,this.localWorld.gravity.y=0,this.localWorld.gravity.scale=0,this},setGravity:function(D,G,H){return D===void 0&&(D=0),G===void 0&&(G=1),H===void 0&&(H=.001),this.localWorld.gravity.x=D,this.localWorld.gravity.y=G,this.localWorld.gravity.scale=H,this},create:function(D,G,H,B,b){var w=u.rectangle(D,G,H,B,b);return C.add(this.localWorld,w),w},add:function(D){return C.add(this.localWorld,D),this},remove:function(D,G){Array.isArray(D)||(D=[D]);for(var H=0;HB.deltaMax?B.deltaMax:G,B.delta=G),B.timeScalePrev=b.timeScale,B.frameCounter+=1,D-B.counterTimestamp>=1e3&&(B.fps=B.frameCounter*((D-B.counterTimestamp)/1e3),B.counterTimestamp=D,B.frameCounter=0),h.update(H,G)}},step:function(D){h.update(this.engine,D)},update60Hz:function(){return 1e3/60},update30Hz:function(){return 1e3/30},has:function(D){var G=D.hasOwnProperty("body")?D.body:D;return d.get(this.localWorld,G.id,G.type)!==null},getAllBodies:function(){return d.allBodies(this.localWorld)},getAllConstraints:function(){return d.allConstraints(this.localWorld)},getAllComposites:function(){return d.allComposites(this.localWorld)},postUpdate:function(){if(this.drawDebug){var D=this.debugConfig,G=this.engine,H=this.debugGraphic,B=d.allBodies(this.localWorld);this.debugGraphic.clear(),D.showBroadphase&&G.broadphase.controller&&this.renderGrid(G.broadphase,H,D.broadphaseColor,.5),D.showBounds&&this.renderBodyBounds(B,H,D.boundsColor,.5),(D.showBody||D.showStaticBody)&&this.renderBodies(B),D.showJoint&&this.renderJoints(),(D.showAxes||D.showAngleIndicator)&&this.renderBodyAxes(B,H,D.showAxes,D.angleColor,.5),D.showVelocity&&this.renderBodyVelocity(B,H,D.velocityColor,1,2),D.showSeparations&&this.renderSeparations(G.pairs.list,H,D.separationColor),D.showCollisions&&this.renderCollisions(G.pairs.list,H,D.collisionColor)}},renderGrid:function(D,G,H,B){G.lineStyle(1,H,B);for(var b=c.keys(D.buckets),w=0;w0){var Z=V[0].vertex.x,$=V[0].vertex.y;V.length===2&&(Z=(V[0].vertex.x+V[1].vertex.x)/2,$=(V[0].vertex.y+V[1].vertex.y)/2),x.bodyB===x.supports[0].body||x.bodyA.isStatic?G.lineBetween(Z-x.normal.x*8,$-x.normal.y*8,Z,$):G.lineBetween(Z+x.normal.x*8,$+x.normal.y*8,Z,$)}}return this},renderBodyBounds:function(D,G,H,B){G.lineStyle(1,H,B);for(var b=0;b1?1:0;x1?1:0;V1?1:0;V1&&this.renderConvexHull(j,G,te,q)}}},renderBody:function(D,G,H,B,b,w,_,F){B===void 0&&(B=null),b===void 0&&(b=null),w===void 0&&(w=1),_===void 0&&(_=null),F===void 0&&(F=null);for(var x=this.debugConfig,V=x.sensorFillColor,Z=x.sensorLineColor,$=D.parts,Q=$.length,te=Q>1?1:0;te1){var _=D.vertices;G.lineStyle(B,H),G.beginPath(),G.moveTo(_[0].x,_[0].y);for(var F=1;F<_.length;F++)G.lineTo(_[F].x,_[F].y);G.lineTo(_[0].x,_[0].y),G.strokePath()}return this},renderJoints:function(){for(var D=this.debugGraphic,G=d.allConstraints(this.localWorld),H=0;H0&&(G.fillStyle(_),G.fillCircle($.x,$.y,F),G.fillCircle(Q.x,Q.y,F)),this},resetCollisionIDs:function(){return T._nextCollidingGroupId=1,T._nextNonCollidingGroupId=-1,T._nextCategory=1,this},shutdown:function(){N.off(this.engine),this.removeAllListeners(),C.clear(this.localWorld,!1),h.clear(this.engine),this.drawDebug&&this.debugGraphic.destroy()},destroy:function(){this.shutdown()}});o.exports=M},70410:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={setBounce:function(s){return this.body.restitution=s,this}};o.exports=m},66968:o=>{/** + */var O={setBounce:function(s){return this.body.restitution=s,this}};o.exports=O},66968:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={setCollisionCategory:function(s){return this.body.collisionFilter.category=s,this},setCollisionGroup:function(s){return this.body.collisionFilter.group=s,this},setCollidesWith:function(s){var u=0;if(!Array.isArray(s))u=s;else for(var T=0;T{/** + */var O={setCollisionCategory:function(s){return this.body.collisionFilter.category=s,this},setCollisionGroup:function(s){return this.body.collisionFilter.group=s,this},setCollidesWith:function(s){var u=0;if(!Array.isArray(s))u=s;else for(var T=0;T{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(22562),T={applyForce:function(d){return this._tempVec2.set(this.body.position.x,this.body.position.y),u.applyForce(this.body,this._tempVec2,d),this},applyForceFrom:function(d,c){return u.applyForce(this.body,d,c),this},thrust:function(d){var c=this.body.angle;return this._tempVec2.set(d*Math.cos(c),d*Math.sin(c)),u.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustLeft:function(d){var c=this.body.angle-Math.PI/2;return this._tempVec2.set(d*Math.cos(c),d*Math.sin(c)),u.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustRight:function(d){var c=this.body.angle+Math.PI/2;return this._tempVec2.set(d*Math.cos(c),d*Math.sin(c)),u.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustBack:function(d){var c=this.body.angle-Math.PI;return this._tempVec2.set(d*Math.cos(c),d*Math.sin(c)),u.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this}};o.exports=T},5436:o=>{/** + */var u=s(22562),T={applyForce:function(A){return this._tempVec2.set(this.body.position.x,this.body.position.y),u.applyForce(this.body,this._tempVec2,A),this},applyForceFrom:function(A,c){return u.applyForce(this.body,A,c),this},thrust:function(A){var c=this.body.angle;return this._tempVec2.set(A*Math.cos(c),A*Math.sin(c)),u.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustLeft:function(A){var c=this.body.angle-Math.PI/2;return this._tempVec2.set(A*Math.cos(c),A*Math.sin(c)),u.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustRight:function(A){var c=this.body.angle+Math.PI/2;return this._tempVec2.set(A*Math.cos(c),A*Math.sin(c)),u.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustBack:function(A){var c=this.body.angle-Math.PI;return this._tempVec2.set(A*Math.cos(c),A*Math.sin(c)),u.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this}};o.exports=T},5436:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={setFriction:function(s,u,T){return this.body.friction=s,u!==void 0&&(this.body.frictionAir=u),T!==void 0&&(this.body.frictionStatic=T),this},setFrictionAir:function(s){return this.body.frictionAir=s,this},setFrictionStatic:function(s){return this.body.frictionStatic=s,this}};o.exports=m},39858:o=>{/** + */var O={setFriction:function(s,u,T){return this.body.friction=s,u!==void 0&&(this.body.frictionAir=u),T!==void 0&&(this.body.frictionStatic=T),this},setFrictionAir:function(s){return this.body.frictionAir=s,this},setFrictionStatic:function(s){return this.body.frictionStatic=s,this}};o.exports=O},39858:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={setIgnoreGravity:function(s){return this.body.ignoreGravity=s,this}};o.exports=m},37302:(o,m,s)=>{/** + */var O={setIgnoreGravity:function(s){return this.body.ignoreGravity=s,this}};o.exports=O},37302:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(22562),T=s(26099),d={setMass:function(c){return u.setMass(this.body,c),this},setDensity:function(c){return u.setDensity(this.body,c),this},centerOfMass:{get:function(){return new T(this.body.centerOfMass.x,this.body.centerOfMass.y)}}};o.exports=d},39132:o=>{/** + */var u=s(22562),T=s(26099),A={setMass:function(c){return u.setMass(this.body,c),this},setDensity:function(c){return u.setDensity(this.body,c),this},centerOfMass:{get:function(){return new T(this.body.centerOfMass.x,this.body.centerOfMass.y)}}};o.exports=A},39132:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={setSensor:function(s){return this.body.isSensor=s,this},isSensor:function(){return this.body.isSensor}};o.exports=m},57772:(o,m,s)=>{/** + */var O={setSensor:function(s){return this.body.isSensor=s,this},isSensor:function(){return this.body.isSensor}};o.exports=O},57772:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(66280),T=s(22562),d=s(43855),c=s(95540),A=s(19496),h=s(85791),f=s(41598),S={setRectangle:function(O,L,p){return this.setBody({type:"rectangle",width:O,height:L},p)},setCircle:function(O,L){return this.setBody({type:"circle",radius:O},L)},setPolygon:function(O,L,p){return this.setBody({type:"polygon",sides:L,radius:O},p)},setTrapezoid:function(O,L,p,N){return this.setBody({type:"trapezoid",width:O,height:L,slope:p},N)},setExistingBody:function(O,L){L===void 0&&(L=!0),this.body&&this.world.remove(this.body,!0),this.body=O;for(var p=0;p{/** + */var u=s(66280),T=s(22562),A=s(43855),c=s(95540),d=s(19496),h=s(85791),f=s(41598),S={setRectangle:function(R,L,p){return this.setBody({type:"rectangle",width:R,height:L},p)},setCircle:function(R,L){return this.setBody({type:"circle",radius:R},L)},setPolygon:function(R,L,p){return this.setBody({type:"polygon",sides:L,radius:R},p)},setTrapezoid:function(R,L,p,N){return this.setBody({type:"trapezoid",width:R,height:L,slope:p},N)},setExistingBody:function(R,L){L===void 0&&(L=!0),this.body&&this.world.remove(this.body,!0),this.body=R;for(var p=0;p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(1121),T=s(53614),d=s(35810),c={setToSleep:function(){return T.set(this.body,!0),this},setAwake:function(){return T.set(this.body,!1),this},setSleepThreshold:function(A){return A===void 0&&(A=60),this.body.sleepThreshold=A,this},setSleepEvents:function(A,h){return this.setSleepStartEvent(A),this.setSleepEndEvent(h),this},setSleepStartEvent:function(A){if(A){var h=this.world;d.on(this.body,"sleepStart",function(f){h.emit(u.SLEEP_START,f,this)})}else d.off(this.body,"sleepStart");return this},setSleepEndEvent:function(A){if(A){var h=this.world;d.on(this.body,"sleepEnd",function(f){h.emit(u.SLEEP_END,f,this)})}else d.off(this.body,"sleepEnd");return this}};o.exports=c},90556:(o,m,s)=>{/** + */var u=s(1121),T=s(53614),A=s(35810),c={setToSleep:function(){return T.set(this.body,!0),this},setAwake:function(){return T.set(this.body,!1),this},setSleepThreshold:function(d){return d===void 0&&(d=60),this.body.sleepThreshold=d,this},setSleepEvents:function(d,h){return this.setSleepStartEvent(d),this.setSleepEndEvent(h),this},setSleepStartEvent:function(d){if(d){var h=this.world;A.on(this.body,"sleepStart",function(f){h.emit(u.SLEEP_START,f,this)})}else A.off(this.body,"sleepStart");return this},setSleepEndEvent:function(d){if(d){var h=this.world;A.on(this.body,"sleepEnd",function(f){h.emit(u.SLEEP_END,f,this)})}else A.off(this.body,"sleepEnd");return this}};o.exports=c},90556:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(22562),T={setStatic:function(d){return u.setStatic(this.body,d),this},isStatic:function(){return this.body.isStatic}};o.exports=T},85436:(o,m,s)=>{/** + */var u=s(22562),T={setStatic:function(A){return u.setStatic(this.body,A),this},isStatic:function(){return this.body.isStatic}};o.exports=T},85436:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(22562),T=s(36383),d=s(86554),c=s(30954),A=4,h={x:{get:function(){return this.body.position.x},set:function(f){this._tempVec2.set(f,this.y),u.setPosition(this.body,this._tempVec2)}},y:{get:function(){return this.body.position.y},set:function(f){this._tempVec2.set(this.x,f),u.setPosition(this.body,this._tempVec2)}},scaleX:{get:function(){return this._scaleX},set:function(f){var S=1/this._scaleX,O=1/this._scaleY;this._scaleX=f,this._scaleX===0?this.renderFlags&=~A:this.renderFlags|=A,u.scale(this.body,S,O),u.scale(this.body,f,this._scaleY)}},scaleY:{get:function(){return this._scaleY},set:function(f){var S=1/this._scaleX,O=1/this._scaleY;this._scaleY=f,this._scaleY===0?this.renderFlags&=~A:this.renderFlags|=A,u.scale(this.body,S,O),u.scale(this.body,this._scaleX,f)}},angle:{get:function(){return c(this.body.angle*T.RAD_TO_DEG)},set:function(f){this.rotation=c(f)*T.DEG_TO_RAD}},rotation:{get:function(){return this.body.angle},set:function(f){this._rotation=d(f),u.setAngle(this.body,this._rotation)}},setPosition:function(f,S){return f===void 0&&(f=0),S===void 0&&(S=f),this._tempVec2.set(f,S),u.setPosition(this.body,this._tempVec2),this},setRotation:function(f){return f===void 0&&(f=0),this._rotation=d(f),u.setAngle(this.body,f),this},setFixedRotation:function(){return u.setInertia(this.body,1/0),this},setAngle:function(f){return f===void 0&&(f=0),this.angle=f,u.setAngle(this.body,this.rotation),this},setScale:function(f,S,O){f===void 0&&(f=1),S===void 0&&(S=f);var L=1/this._scaleX,p=1/this._scaleY;return this._scaleX=f,this._scaleY=S,u.scale(this.body,L,p,O),u.scale(this.body,f,S,O),this}};o.exports=h},42081:(o,m,s)=>{/** + */var u=s(22562),T=s(36383),A=s(86554),c=s(30954),d=4,h={x:{get:function(){return this.body.position.x},set:function(f){this._tempVec2.set(f,this.y),u.setPosition(this.body,this._tempVec2)}},y:{get:function(){return this.body.position.y},set:function(f){this._tempVec2.set(this.x,f),u.setPosition(this.body,this._tempVec2)}},scaleX:{get:function(){return this._scaleX},set:function(f){var S=1/this._scaleX,R=1/this._scaleY;this._scaleX=f,this._scaleX===0?this.renderFlags&=~d:this.renderFlags|=d,u.scale(this.body,S,R),u.scale(this.body,f,this._scaleY)}},scaleY:{get:function(){return this._scaleY},set:function(f){var S=1/this._scaleX,R=1/this._scaleY;this._scaleY=f,this._scaleY===0?this.renderFlags&=~d:this.renderFlags|=d,u.scale(this.body,S,R),u.scale(this.body,this._scaleX,f)}},angle:{get:function(){return c(this.body.angle*T.RAD_TO_DEG)},set:function(f){this.rotation=c(f)*T.DEG_TO_RAD}},rotation:{get:function(){return this.body.angle},set:function(f){this._rotation=A(f),u.setAngle(this.body,this._rotation)}},setPosition:function(f,S){return f===void 0&&(f=0),S===void 0&&(S=f),this._tempVec2.set(f,S),u.setPosition(this.body,this._tempVec2),this},setRotation:function(f){return f===void 0&&(f=0),this._rotation=A(f),u.setAngle(this.body,f),this},setFixedRotation:function(){return u.setInertia(this.body,1/0),this},setAngle:function(f){return f===void 0&&(f=0),this.angle=f,u.setAngle(this.body,this.rotation),this},setScale:function(f,S,R){f===void 0&&(f=1),S===void 0&&(S=f);var L=1/this._scaleX,p=1/this._scaleY;return this._scaleX=f,this._scaleY=S,u.scale(this.body,L,p,R),u.scale(this.body,f,S,R),this}};o.exports=h},42081:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(22562),T={setVelocityX:function(d){return this._tempVec2.set(d,this.body.velocity.y),u.setVelocity(this.body,this._tempVec2),this},setVelocityY:function(d){return this._tempVec2.set(this.body.velocity.x,d),u.setVelocity(this.body,this._tempVec2),this},setVelocity:function(d,c){return this._tempVec2.set(d,c),u.setVelocity(this.body,this._tempVec2),this},getVelocity:function(){return u.getVelocity(this.body)},setAngularVelocity:function(d){return u.setAngularVelocity(this.body,d),this},getAngularVelocity:function(){return u.getAngularVelocity(this.body)},setAngularSpeed:function(d){return u.setAngularSpeed(this.body,d),this},getAngularSpeed:function(){return u.getAngularSpeed(this.body)}};o.exports=T},31884:(o,m,s)=>{/** + */var u=s(22562),T={setVelocityX:function(A){return this._tempVec2.set(A,this.body.velocity.y),u.setVelocity(this.body,this._tempVec2),this},setVelocityY:function(A){return this._tempVec2.set(this.body.velocity.x,A),u.setVelocity(this.body,this._tempVec2),this},setVelocity:function(A,c){return this._tempVec2.set(A,c),u.setVelocity(this.body,this._tempVec2),this},getVelocity:function(){return u.getVelocity(this.body)},setAngularVelocity:function(A){return u.setAngularVelocity(this.body,A),this},getAngularVelocity:function(){return u.getAngularVelocity(this.body)},setAngularSpeed:function(A){return u.setAngularSpeed(this.body,A),this},getAngularSpeed:function(){return u.getAngularSpeed(this.body)}};o.exports=T},31884:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4565,46 +4565,46 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports="sleepstart"},1121:(o,m,s)=>{/** + */o.exports="sleepstart"},1121:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={AFTER_ADD:s(85608),AFTER_REMOVE:s(1213),AFTER_UPDATE:s(25968),BEFORE_ADD:s(67205),BEFORE_REMOVE:s(39438),BEFORE_UPDATE:s(44823),COLLISION_ACTIVE:s(92593),COLLISION_END:s(60128),COLLISION_START:s(76861),DRAG_END:s(92362),DRAG:s(76408),DRAG_START:s(93971),PAUSE:s(5656),RESUME:s(47861),SLEEP_END:s(79099),SLEEP_START:s(35906)}},3875:(o,m,s)=>{/** + */o.exports={AFTER_ADD:s(85608),AFTER_REMOVE:s(1213),AFTER_UPDATE:s(25968),BEFORE_ADD:s(67205),BEFORE_REMOVE:s(39438),BEFORE_UPDATE:s(44823),COLLISION_ACTIVE:s(92593),COLLISION_END:s(60128),COLLISION_START:s(76861),DRAG_END:s(92362),DRAG:s(76408),DRAG_START:s(93971),PAUSE:s(5656),RESUME:s(47861),SLEEP_END:s(79099),SLEEP_START:s(35906)}},3875:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={BodyBounds:s(68174),Components:s(31884),Events:s(1121),Factory:s(28137),MatterGameObject:s(75803),Image:s(23181),Matter:s(19933),MatterPhysics:s(42045),PolyDecomp:s(55973),Sprite:s(34803),TileBody:s(73834),PhysicsEditorParser:s(19496),PhysicsJSONParser:s(85791),PointerConstraint:s(98713),World:s(68243)}},22562:(o,m,s)=>{var u={};o.exports=u;var T=s(41598),d=s(31725),c=s(53614),A=s(53402),h=s(15647),f=s(66615);(function(){u._timeCorrection=!0,u._inertiaScale=4,u._nextCollidingGroupId=1,u._nextNonCollidingGroupId=-1,u._nextCategory=1,u._baseDelta=16.666666666666668,u.create=function(O){var L={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:{}};!O.hasOwnProperty("position")&&O.hasOwnProperty("vertices")?O.position=T.centre(O.vertices):O.hasOwnProperty("vertices")||(L.vertices=T.fromPath("L 0 0 L 40 0 L 40 40 L 0 40"));var p=A.extend(L,O);return S(p,O),p.setOnCollideWith=function(N,g){return g?this.onCollideWith[N.id]=g:delete this.onCollideWith[N.id],this},p},u.nextGroup=function(O){return O?u._nextNonCollidingGroupId--:u._nextCollidingGroupId++},u.nextCategory=function(){return u._nextCategory=u._nextCategory<<1,u._nextCategory};var S=P(function(O,L){if(L=L||{},u.set(O,{bounds:O.bounds||h.create(O.vertices),positionPrev:O.positionPrev||d.clone(O.position),anglePrev:O.anglePrev||O.angle,vertices:O.vertices,parts:O.parts||[O],isStatic:O.isStatic,isSleeping:O.isSleeping,parent:O.parent||O}),T.rotate(O.vertices,O.angle,O.position),f.rotate(O.axes,O.angle),h.update(O.bounds,O.vertices,O.velocity),u.set(O,{axes:L.axes||O.axes,area:L.area||O.area,mass:L.mass||O.mass,inertia:L.inertia||O.inertia}),O.parts.length===1){var p=O.bounds,N=O.centerOfMass,g=O.centerOffset,C=p.max.x-p.min.x,v=p.max.y-p.min.y;N.x=-(p.min.x-O.position.x)/C,N.y=-(p.min.y-O.position.y)/v,g.x=C*N.x,g.y=v*N.y}},"_initProperties");u.set=function(O,L,p){var N;typeof L=="string"&&(N=L,L={},L[N]=p);for(N in L)if(Object.prototype.hasOwnProperty.call(L,N))switch(p=L[N],N){case"isStatic":u.setStatic(O,p);break;case"isSleeping":c.set(O,p);break;case"mass":u.setMass(O,p);break;case"density":u.setDensity(O,p);break;case"inertia":u.setInertia(O,p);break;case"vertices":u.setVertices(O,p);break;case"position":u.setPosition(O,p);break;case"angle":u.setAngle(O,p);break;case"velocity":u.setVelocity(O,p);break;case"angularVelocity":u.setAngularVelocity(O,p);break;case"speed":u.setSpeed(O,p);break;case"angularSpeed":u.setAngularSpeed(O,p);break;case"parts":u.setParts(O,p);break;case"centre":u.setCentre(O,p);break;default:O[N]=p}},u.setStatic=function(O,L){for(var p=0;p0&&d.rotateAbout(C.position,N,O.position,C.position)}},u.setVelocity=function(O,L){var p=O.deltaTime/u._baseDelta;O.positionPrev.x=O.position.x-L.x*p,O.positionPrev.y=O.position.y-L.y*p,O.velocity.x=(O.position.x-O.positionPrev.x)/p,O.velocity.y=(O.position.y-O.positionPrev.y)/p,O.speed=d.magnitude(O.velocity)},u.getVelocity=function(O){var L=u._baseDelta/O.deltaTime;return{x:(O.position.x-O.positionPrev.x)*L,y:(O.position.y-O.positionPrev.y)*L}},u.getSpeed=function(O){return d.magnitude(u.getVelocity(O))},u.setSpeed=function(O,L){u.setVelocity(O,d.mult(d.normalise(u.getVelocity(O)),L))},u.setAngularVelocity=function(O,L){var p=O.deltaTime/u._baseDelta;O.anglePrev=O.angle-L*p,O.angularVelocity=(O.angle-O.anglePrev)/p,O.angularSpeed=Math.abs(O.angularVelocity)},u.getAngularVelocity=function(O){return(O.angle-O.anglePrev)*u._baseDelta/O.deltaTime},u.getAngularSpeed=function(O){return Math.abs(u.getAngularVelocity(O))},u.setAngularSpeed=function(O,L){u.setAngularVelocity(O,A.sign(u.getAngularVelocity(O))*L)},u.translate=function(O,L,p){u.setPosition(O,d.add(O.position,L),p)},u.rotate=function(O,L,p,N){if(!p)u.setAngle(O,O.angle+L,N);else{var g=Math.cos(L),C=Math.sin(L),v=O.position.x-p.x,M=O.position.y-p.y;u.setPosition(O,{x:p.x+(v*g-M*C),y:p.y+(v*C+M*g)},N),u.setAngle(O,O.angle+L,N)}},u.scale=function(O,L,p,N){var g=0,C=0;N=N||O.position;for(var v=O.inertia===1/0,M=0;M0&&(g+=D.area,C+=D.inertia),D.position.x=N.x+(D.position.x-N.x)*L,D.position.y=N.y+(D.position.y-N.y)*p,h.update(D.bounds,D.vertices,O.velocity)}O.parts.length>1&&(O.area=g,O.isStatic||(u.setMass(O,O.density*g),u.setInertia(O,C))),O.circleRadius&&(L===p?O.circleRadius*=L:O.circleRadius=null),v&&u.setInertia(O,1/0)},u.update=function(O,L){L=(typeof L<"u"?L:16.666666666666668)*O.timeScale;var p=L*L,N=u._timeCorrection?L/(O.deltaTime||L):1,g=1-O.frictionAir*(L/A._baseDelta),C=(O.position.x-O.positionPrev.x)*N,v=(O.position.y-O.positionPrev.y)*N;O.velocity.x=C*g+O.force.x/O.mass*p,O.velocity.y=v*g+O.force.y/O.mass*p,O.positionPrev.x=O.position.x,O.positionPrev.y=O.position.y,O.position.x+=O.velocity.x,O.position.y+=O.velocity.y,O.deltaTime=L,O.angularVelocity=(O.angle-O.anglePrev)*g*N+O.torque/O.inertia*p,O.anglePrev=O.angle,O.angle+=O.angularVelocity,O.speed=d.magnitude(O.velocity),O.angularSpeed=Math.abs(O.angularVelocity);for(var M=0;M0&&(D.position.x+=O.velocity.x,D.position.y+=O.velocity.y),O.angularVelocity!==0&&(T.rotate(D.vertices,O.angularVelocity,O.position),f.rotate(D.axes,O.angularVelocity),M>0&&d.rotateAbout(D.position,O.angularVelocity,O.position,D.position)),h.update(D.bounds,D.vertices,O.velocity)}},u.updateVelocities=function(O){var L=u._baseDelta/O.deltaTime,p=O.velocity;p.x=(O.position.x-O.positionPrev.x)*L,p.y=(O.position.y-O.positionPrev.y)*L,O.speed=Math.sqrt(p.x*p.x+p.y*p.y),O.angularVelocity=(O.angle-O.anglePrev)*L,O.angularSpeed=Math.abs(O.angularVelocity)},u.applyForce=function(O,L,p){var N={x:L.x-O.position.x,y:L.y-O.position.y};O.force.x+=p.x,O.force.y+=p.y,O.torque+=N.x*p.y-N.y*p.x},u._totalProperties=function(O){for(var L={mass:0,area:0,inertia:0,centre:{x:0,y:0}},p=O.parts.length===1?0:1;p{var u={};o.exports=u;var T=s(35810),d=s(53402),c=s(15647),A=s(22562);(function(){u.create=function(h){return d.extend({id:d.nextId(),type:"composite",parent:null,isModified:!1,bodies:[],constraints:[],composites:[],label:"Composite",plugin:{},cache:{allBodies:null,allConstraints:null,allComposites:null}},h)},u.setModified=function(h,f,S,O){if(T.trigger(h,"compositeModified",h),h.isModified=f,f&&h.cache&&(h.cache.allBodies=null,h.cache.allConstraints=null,h.cache.allComposites=null),S&&h.parent&&u.setModified(h.parent,f,S,O),O)for(var L=0;L{var u={};o.exports=u;var T=s(69351);(function(){u.create=T.create,u.add=T.add,u.remove=T.remove,u.clear=T.clear,u.addComposite=T.addComposite,u.addBody=T.addBody,u.addConstraint=T.addConstraint})()},52284:(o,m,s)=>{var u={};o.exports=u;var T=s(41598),d=s(4506);(function(){var c=[],A={overlap:0,axis:null},h={overlap:0,axis:null};u.create=function(f,S){return{pair:null,collided:!1,bodyA:f,bodyB:S,parentA:f.parent,parentB:S.parent,depth:0,normal:{x:0,y:0},tangent:{x:0,y:0},penetration:{x:0,y:0},supports:[]}},u.collides=function(f,S,O){if(u._overlapAxes(A,f.vertices,S.vertices,f.axes),A.overlap<=0||(u._overlapAxes(h,S.vertices,f.vertices,S.axes),h.overlap<=0))return null;var L=O&&O.table[d.id(f,S)],p;L?p=L.collision:(p=u.create(f,S),p.collided=!0,p.bodyA=f.idz?z=b:bj?j=b:bp?p=g:g{var m={};o.exports=m,function(){m.create=function(s){return{vertex:s,normalImpulse:0,tangentImpulse:0}}}()},81388:(o,m,s)=>{var u={};o.exports=u;var T=s(53402),d=s(52284);(function(){u.create=function(c){var A={bodies:[],pairs:null};return T.extend(A,c)},u.setBodies=function(c,A){c.bodies=A.slice(0)},u.clear=function(c){c.bodies=[]},u.collisions=function(c){var A=[],h=c.pairs,f=c.bodies,S=f.length,O=u.canCollide,L=d.collides,p,N;for(f.sort(u._compareBoundsX),p=0;pv)break;if(!(Mw.max.y)&&!(G&&(_.isStatic||_.isSleeping))&&O(g.collisionFilter,_.collisionFilter)){var b=_.parts.length;if(B&&b===1){var F=L(g,_,h);F&&A.push(F)}else for(var k=H>1?1:0,V=b>1?1:0,Z=k;Zw.max.x||C.max.xw.max.y)){var F=L($,te,h);F&&A.push(F)}}}}}return A},u.canCollide=function(c,A){return c.group===A.group&&c.group!==0?c.group>0:(c.mask&A.category)!==0&&(A.mask&c.category)!==0},u._compareBoundsX=function(c,A){return c.bounds.min.x-A.bounds.min.x}})()},4506:(o,m,s)=>{var u={};o.exports=u;var T=s(43424);(function(){u.create=function(d,c){var A=d.bodyA,h=d.bodyB,f={id:u.id(A,h),bodyA:A,bodyB:h,collision:d,contacts:[],activeContacts:[],separation:0,isActive:!0,confirmedActive:!0,isSensor:A.isSensor||h.isSensor,timeCreated:c,timeUpdated:c,inverseMass:0,friction:0,frictionStatic:0,restitution:0,slop:0};return u.update(f,d,c),f},u.update=function(d,c,A){var h=d.contacts,f=c.supports,S=d.activeContacts,O=c.parentA,L=c.parentB,p=O.vertices.length;d.isActive=!0,d.timeUpdated=A,d.collision=c,d.separation=c.depth,d.inverseMass=O.inverseMass+L.inverseMass,d.friction=O.frictionL.frictionStatic?O.frictionStatic:L.frictionStatic,d.restitution=O.restitution>L.restitution?O.restitution:L.restitution,d.slop=O.slop>L.slop?O.slop:L.slop,c.pair=d,S.length=0;for(var N=0;N{var u={};o.exports=u;var T=s(4506),d=s(53402);(function(){u.create=function(c){return d.extend({table:{},list:[],collisionStart:[],collisionActive:[],collisionEnd:[]},c)},u.update=function(c,A,h){var f=c.list,S=f.length,O=c.table,L=A.length,p=c.collisionStart,N=c.collisionEnd,g=c.collisionActive,C,v,M,D;for(p.length=0,N.length=0,g.length=0,D=0;D{var u={};o.exports=u;var T=s(31725),d=s(52284),c=s(15647),A=s(66280),h=s(41598);(function(){u.collides=function(f,S){for(var O=[],L=S.length,p=f.bounds,N=d.collides,g=c.overlaps,C=0;C{var u={};o.exports=u;var T=s(41598),d=s(53402),c=s(15647);(function(){u._restingThresh=2,u._restingThreshTangent=Math.sqrt(6),u._positionDampen=.9,u._positionWarming=.8,u._frictionNormalMultiplier=5,u._frictionMaxStatic=Number.MAX_VALUE,u.preSolvePosition=function(A){var h,f,S,O=A.length;for(h=0;hGe?(M=it>0?it:-it,v=H.friction*(it>0?1:-1)*O,v<-M?v=-M:v>M&&(v=M)):(v=it,M=g);var Je=J*V-ae*k,tt=re*V-oe*k,Ut=z/(j+_.inverseInertia*Je*Je+w.inverseInertia*tt*tt),Nt=(1+H.restitution)*ke*Ut;if(v*=Ut,ke0&&(X.normalImpulse=0),Nt=X.normalImpulse-Ta}if(it<-p||it>p)X.tangentImpulse=0;else{var Ua=X.tangentImpulse;X.tangentImpulse+=v,X.tangentImpulse<-M&&(X.tangentImpulse=-M),X.tangentImpulse>M&&(X.tangentImpulse=M),v=X.tangentImpulse-Ua}var zt=k*Nt+Z*v,bt=V*Nt+$*v;_.isStatic||_.isSleeping||(_.positionPrev.x+=zt*_.inverseMass,_.positionPrev.y+=bt*_.inverseMass,_.anglePrev+=(J*bt-ae*zt)*_.inverseInertia),w.isStatic||w.isSleeping||(w.positionPrev.x-=zt*w.inverseMass,w.positionPrev.y-=bt*w.inverseMass,w.anglePrev-=(re*bt-oe*zt)*w.inverseInertia)}}}}})()},48140:(o,m,s)=>{var u={};o.exports=u;var T=s(41598),d=s(31725),c=s(53614),A=s(15647),h=s(66615),f=s(53402);(function(){u._warming=.4,u._torqueDampen=1,u._minLength=1e-6,u.create=function(S){var O=S;O.bodyA&&!O.pointA&&(O.pointA={x:0,y:0}),O.bodyB&&!O.pointB&&(O.pointB={x:0,y:0});var L=O.bodyA?d.add(O.bodyA.position,O.pointA):O.pointA,p=O.bodyB?d.add(O.bodyB.position,O.pointB):O.pointB,N=d.magnitude(d.sub(L,p));O.length=typeof O.length<"u"?O.length:N,O.id=O.id||f.nextId(),O.label=O.label||"Constraint",O.type="constraint",O.stiffness=O.stiffness||(O.length>0?1:.7),O.damping=O.damping||0,O.angularStiffness=O.angularStiffness||0,O.angleA=O.bodyA?O.bodyA.angle:O.angleA,O.angleB=O.bodyB?O.bodyB.angle:O.angleB,O.plugin={};var g={visible:!0,type:"line",anchors:!0,lineColor:null,lineOpacity:null,lineThickness:null,pinSize:null,anchorColor:null,anchorSize:null};return O.length===0&&O.stiffness>.1?(g.type="pin",g.anchors=!1):O.stiffness<.9&&(g.type="spring"),O.render=f.extend(g,O.render),O},u.preSolveAll=function(S){for(var O=0;O=1||S.length===0,B=H?S.stiffness*O:S.stiffness*O*O,_=S.damping*O,w=d.mult(M,G*B),b=(L?L.inverseMass:0)+(p?p.inverseMass:0),F=(L?L.inverseInertia:0)+(p?p.inverseInertia:0),k=b+F,V,Z,$,Q,te;if(_>0){var z=d.create();$=d.div(M,D),te=d.sub(p&&d.sub(p.position,p.positionPrev)||z,L&&d.sub(L.position,L.positionPrev)||z),Q=d.dot($,te)}L&&!L.isStatic&&(Z=L.inverseMass/b,L.constraintImpulse.x-=w.x*Z,L.constraintImpulse.y-=w.y*Z,L.position.x-=w.x*Z,L.position.y-=w.y*Z,_>0&&(L.positionPrev.x-=_*$.x*Q*Z,L.positionPrev.y-=_*$.y*Q*Z),V=d.cross(N,w)/k*u._torqueDampen*L.inverseInertia*(1-S.angularStiffness),L.constraintImpulse.angle-=V,L.angle-=V),p&&!p.isStatic&&(Z=p.inverseMass/b,p.constraintImpulse.x+=w.x*Z,p.constraintImpulse.y+=w.y*Z,p.position.x+=w.x*Z,p.position.y+=w.y*Z,_>0&&(p.positionPrev.x+=_*$.x*Q*Z,p.positionPrev.y+=_*$.y*Q*Z),V=d.cross(g,w)/k*u._torqueDampen*p.inverseInertia*(1-S.angularStiffness),p.constraintImpulse.angle+=V,p.angle+=V)}}},u.postSolveAll=function(S){for(var O=0;O0&&(g.position.x+=p.x,g.position.y+=p.y),p.angle!==0&&(T.rotate(g.vertices,p.angle,L.position),h.rotate(g.axes,p.angle),N>0&&d.rotateAbout(g.position,p.angle,L.position,g.position)),A.update(g.bounds,g.vertices,L.velocity)}p.angle*=u._warming,p.x*=u._warming,p.y*=u._warming}}},u.pointAWorld=function(S){return{x:(S.bodyA?S.bodyA.position.x:0)+(S.pointA?S.pointA.x:0),y:(S.bodyA?S.bodyA.position.y:0)+(S.pointA?S.pointA.y:0)}},u.pointBWorld=function(S){return{x:(S.bodyB?S.bodyB.position.x:0)+(S.pointB?S.pointB.x:0),y:(S.bodyB?S.bodyB.position.y:0)+(S.pointB?S.pointB.y:0)}},u.currentLength=function(S){var O=(S.bodyA?S.bodyA.position.x:0)+(S.pointA?S.pointA.x:0),L=(S.bodyA?S.bodyA.position.y:0)+(S.pointA?S.pointA.y:0),p=(S.bodyB?S.bodyB.position.x:0)+(S.pointB?S.pointB.x:0),N=(S.bodyB?S.bodyB.position.y:0)+(S.pointB?S.pointB.y:0),g=O-p,C=L-N;return Math.sqrt(g*g+C*C)}})()},53402:(o,m,s)=>{var u={};o.exports=u,function(){u._baseDelta=16.666666666666668,u._nextId=0,u._seed=0,u._nowStartTime=+new Date,u._warnedOnce={},u._decomp=null,u.extend=function(d,c){var A,h;typeof c=="boolean"?(A=2,h=c):(A=1,h=!0);for(var f=A;f0;c--){var A=Math.floor(u.random()*(c+1)),h=d[c];d[c]=d[A],d[A]=h}return d},u.choose=function(d){return d[Math.floor(u.random()*d.length)]},u.isElement=function(d){return typeof HTMLElement<"u"?d instanceof HTMLElement:!!(d&&d.nodeType&&d.nodeName)},u.isArray=function(d){return Object.prototype.toString.call(d)==="[object Array]"},u.isFunction=function(d){return typeof d=="function"},u.isPlainObject=function(d){return typeof d=="object"&&d.constructor===Object},u.isString=function(d){return toString.call(d)==="[object String]"},u.clamp=function(d,c,A){return dA?A:d},u.sign=function(d){return d<0?-1:1},u.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-u._nowStartTime},u.random=function(d,c){return d=typeof d<"u"?d:0,c=typeof c<"u"?c:1,d+T()*(c-d)};var T=P(function(){return u._seed=(u._seed*9301+49297)%233280,u._seed/233280},"_seededRandom");u.colorToNumber=function(d){return d=d.replace("#",""),d.length==3&&(d=d.charAt(0)+d.charAt(0)+d.charAt(1)+d.charAt(1)+d.charAt(2)+d.charAt(2)),parseInt(d,16)},u.logLevel=1,u.log=function(){console&&u.logLevel>0&&u.logLevel<=3&&console.log.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},u.info=function(){console&&u.logLevel>0&&u.logLevel<=2&&console.info.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},u.warn=function(){console&&u.logLevel>0&&u.logLevel<=3&&console.warn.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},u.warnOnce=function(){var d=Array.prototype.slice.call(arguments).join(" ");u._warnedOnce[d]||(u.warn(d),u._warnedOnce[d]=!0)},u.deprecated=function(d,c,A){d[c]=u.chain(function(){u.warnOnce("🔅 deprecated 🔅",A)},d[c])},u.nextId=function(){return u._nextId++},u.indexOf=function(d,c){if(d.indexOf)return d.indexOf(c);for(var A=0;A{var u={};o.exports=u;var T=s(53614),d=s(66272),c=s(81388),A=s(99561),h=s(35810),f=s(69351),S=s(48140),O=s(53402),L=s(22562);(function(){u.create=function(p){p=p||{};var N={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}},g=O.extend(N,p);return g.world=p.world||f.create({label:"World"}),g.pairs=p.pairs||A.create(),g.detector=p.detector||c.create(),g.grid={buckets:[]},g.world.gravity=g.gravity,g.broadphase=g.grid,g.metrics={},g},u.update=function(p,N){var g=O.now(),C=p.world,v=p.detector,M=p.pairs,D=p.timing,G=D.timestamp,H;N=typeof N<"u"?N:O._baseDelta,N*=D.timeScale,D.timestamp+=N,D.lastDelta=N;var B={timestamp:D.timestamp,delta:N};h.trigger(p,"beforeUpdate",B);var _=f.allBodies(C),w=f.allConstraints(C);for(C.isModified&&(c.setBodies(v,_),f.setModified(C,!1,!1,!0)),p.enableSleeping&&T.update(_,N),u._bodiesApplyGravity(_,p.gravity),N>0&&u._bodiesUpdate(_,N),h.trigger(p,"beforeSolve",B),S.preSolveAll(_),H=0;H0&&h.trigger(p,"collisionStart",{pairs:M.collisionStart,timestamp:D.timestamp,delta:N});var F=O.clamp(20/p.positionIterations,0,1);for(d.preSolvePosition(M.list),H=0;H0&&h.trigger(p,"collisionActive",{pairs:M.collisionActive,timestamp:D.timestamp,delta:N}),M.collisionEnd.length>0&&h.trigger(p,"collisionEnd",{pairs:M.collisionEnd,timestamp:D.timestamp,delta:N}),u._bodiesClearForces(_),h.trigger(p,"afterUpdate",B),p.timing.lastElapsed=O.now()-g,p},u.merge=function(p,N){if(O.extend(p,N),N.world){p.world=N.world,u.clear(p);for(var g=f.allBodies(p.world),C=0;C{var u={};o.exports=u;var T=s(53402);(function(){u.on=function(d,c,A){for(var h=c.split(" "),f,S=0;S0){A||(A={}),h=c.split(" ");for(var p=0;p{var u={};o.exports=u;var T=s(73832),d=s(53402);(function(){u.name="matter-js",u.version="0.19.0",u.uses=[],u.used=[],u.use=function(){T.use(u,Array.prototype.slice.call(arguments))},u.before=function(c,A){return c=c.replace(/^Matter./,""),d.chainPathBefore(u,c,A)},u.after=function(c,A){return c=c.replace(/^Matter./,""),d.chainPathAfter(u,c,A)}})()},73832:(o,m,s)=>{var u={};o.exports=u;var T=s(53402);(function(){u._registry={},u.register=function(d){if(u.isPlugin(d)||T.warn("Plugin.register:",u.toString(d),"does not implement all required fields."),d.name in u._registry){var c=u._registry[d.name],A=u.versionParse(d.version).number,h=u.versionParse(c.version).number;A>h?(T.warn("Plugin.register:",u.toString(c),"was upgraded to",u.toString(d)),u._registry[d.name]=d):A-1},u.isFor=function(d,c){var A=d.for&&u.dependencyParse(d.for);return!d.for||c.name===A.name&&u.versionSatisfies(c.version,A.range)},u.use=function(d,c){if(d.uses=(d.uses||[]).concat(c||[]),d.uses.length===0){T.warn("Plugin.use:",u.toString(d),"does not specify any dependencies to install.");return}for(var A=u.dependencies(d),h=T.topologicalSort(A),f=[],S=0;S0&&!O.silent&&T.info(f.join(" "))},u.dependencies=function(d,c){var A=u.dependencyParse(d),h=A.name;if(c=c||{},!(h in c)){d=u.resolve(d)||d,c[h]=T.map(d.uses||[],function(S){u.isPlugin(S)&&u.register(S);var O=u.dependencyParse(S),L=u.resolve(S);return L&&!u.versionSatisfies(L.version,O.range)?(T.warn("Plugin.dependencies:",u.toString(L),"does not satisfy",u.toString(O),"used by",u.toString(A)+"."),L._warned=!0,d._warned=!0):L||(T.warn("Plugin.dependencies:",u.toString(S),"used by",u.toString(A),"could not be resolved."),d._warned=!0),O.name});for(var f=0;f=|>)?\s*((\d+)\.(\d+)\.(\d+))(-[0-9A-Za-z-+]+)?$/;c.test(d)||T.warn("Plugin.versionParse:",d,"is not a valid version or range.");var A=c.exec(d),h=Number(A[4]),f=Number(A[5]),S=Number(A[6]);return{isRange:!!(A[1]||A[2]),version:A[3],range:d,operator:A[1]||A[2]||"",major:h,minor:f,patch:S,parts:[h,f,S],prerelease:A[7],number:h*1e8+f*1e4+S}},u.versionSatisfies=function(d,c){c=c||"*";var A=u.versionParse(c),h=u.versionParse(d);if(A.isRange){if(A.operator==="*"||d==="*")return!0;if(A.operator===">")return h.number>A.number;if(A.operator===">=")return h.number>=A.number;if(A.operator==="~")return h.major===A.major&&h.minor===A.minor&&h.patch>=A.patch;if(A.operator==="^")return A.major>0?h.major===A.major&&h.number>=A.number:A.minor>0?h.minor===A.minor&&h.patch>=A.patch:h.patch===A.patch}return d===c||d==="*"}})()},53614:(o,m,s)=>{var u={};o.exports=u;var T=s(22562),d=s(35810),c=s(53402);(function(){u._motionWakeThreshold=.18,u._motionSleepThreshold=.08,u._minBias=.9,u.update=function(A,h){for(var f=h/c._baseDelta,S=u._motionSleepThreshold,O=0;O0&&L.motion=L.sleepThreshold/f&&u.set(L,!0)):L.sleepCounter>0&&(L.sleepCounter-=1)}},u.afterCollisions=function(A){for(var h=u._motionSleepThreshold,f=0;fh&&u.set(N,!1)}}}},u.set=function(A,h){var f=A.isSleeping;h?(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,f||d.trigger(A,"sleepStart")):(A.isSleeping=!1,A.sleepCounter=0,f&&d.trigger(A,"sleepEnd"))}})()},66280:(o,m,s)=>{var u={};o.exports=u;var T=s(41598),d=s(53402),c=s(22562),A=s(15647),h=s(31725);(function(){u.rectangle=function(f,S,O,L,p){p=p||{};var N={label:"Rectangle Body",position:{x:f,y:S},vertices:T.fromPath("L 0 0 L "+O+" 0 L "+O+" "+L+" L 0 "+L)};if(p.chamfer){var g=p.chamfer;N.vertices=T.chamfer(N.vertices,g.radius,g.quality,g.qualityMin,g.qualityMax),delete p.chamfer}return c.create(d.extend({},N,p))},u.trapezoid=function(f,S,O,L,p,N){N=N||{},p*=.5;var g=(1-p*2)*O,C=O*p,v=C+g,M=v+C,D;p<.5?D="L 0 0 L "+C+" "+-L+" L "+v+" "+-L+" L "+M+" 0":D="L 0 0 L "+v+" "+-L+" L "+M+" 0";var G={label:"Trapezoid Body",position:{x:f,y:S},vertices:T.fromPath(D)};if(N.chamfer){var H=N.chamfer;G.vertices=T.chamfer(G.vertices,H.radius,H.quality,H.qualityMin,H.qualityMax),delete N.chamfer}return c.create(d.extend({},G,N))},u.circle=function(f,S,O,L,p){L=L||{};var N={label:"Circle Body",circleRadius:O};p=p||25;var g=Math.ceil(Math.max(10,Math.min(p,O)));return g%2===1&&(g+=1),u.polygon(f,S,g,O,d.extend({},N,L))},u.polygon=function(f,S,O,L,p){if(p=p||{},O<3)return u.circle(f,S,L,p);for(var N=2*Math.PI/O,g="",C=N*.5,v=0;v0&&T.area(te)1?(D=c.create(d.extend({parts:G.slice(0)},L)),c.setPosition(D,{x:f,y:S}),D):G[0]},u.flagCoincidentParts=function(f,S){S===void 0&&(S=5);for(var O=0;O{var u={};o.exports=u;var T=s(69351),d=s(48140),c=s(53402),A=s(22562),h=s(66280);(function(){u.stack=function(f,S,O,L,p,N,g){for(var C=T.create({label:"Stack"}),v=f,M=S,D,G=0,H=0;HB&&(B=b),A.translate(w,{x:F*.5,y:b*.5}),v=w.bounds.max.x+p,T.addBody(C,w),D=w,G+=1}else v+=p}M+=B+N,v=f}return C},u.chain=function(f,S,O,L,p,N){for(var g=f.bodies,C=1;C0)for(C=0;C0&&(D=N[C-1+(g-1)*S],T.addConstraint(f,d.create(c.extend({bodyA:D,bodyB:M},p)))),L&&CB)){D=B-D;var w=D,b=O-1-D;if(!(Mb)){H===1&&A.translate(G,{x:(M+(O%2===1?1:-1))*_,y:0});var F=G?M*_:0;return g(f+F+M*p,v,M,D,G,H)}}})},u.newtonsCradle=function(f,S,O,L,p){for(var N=T.create({label:"Newtons Cradle"}),g=0;g{var u={};o.exports=u;var T=s(31725),d=s(53402);(function(){u.fromVertices=function(c){for(var A={},h=0;h{var m={};o.exports=m,function(){m.create=function(s){var u={min:{x:0,y:0},max:{x:0,y:0}};return s&&m.update(u,s),u},m.update=function(s,u,T){s.min.x=1/0,s.max.x=-1/0,s.min.y=1/0,s.max.y=-1/0;for(var d=0;ds.max.x&&(s.max.x=c.x),c.xs.max.y&&(s.max.y=c.y),c.y0?s.max.x+=T.x:s.min.x+=T.x,T.y>0?s.max.y+=T.y:s.min.y+=T.y)},m.contains=function(s,u){return u.x>=s.min.x&&u.x<=s.max.x&&u.y>=s.min.y&&u.y<=s.max.y},m.overlaps=function(s,u){return s.min.x<=u.max.x&&s.max.x>=u.min.x&&s.max.y>=u.min.y&&s.min.y<=u.max.y},m.translate=function(s,u){s.min.x+=u.x,s.max.x+=u.x,s.min.y+=u.y,s.max.y+=u.y},m.shift=function(s,u){var T=s.max.x-s.min.x,d=s.max.y-s.min.y;s.min.x=u.x,s.max.x=u.x+T,s.min.y=u.y,s.max.y=u.y+d}}()},74058:(o,m,s)=>{var u={};o.exports=u,s(15647);var T=s(53402);(function(){u.pathToVertices=function(d,c){typeof window<"u"&&!("SVGPathSeg"in window)&&T.warn("Svg.pathToVertices: SVGPathSeg not defined, a polyfill is required.");var A,h,f,S,O,L,p,N,g,C,v=[],M,D,G=0,H=0,B=0;c=c||15;var _=P(function(b,F,k){var V=k%2===1&&k>1;if(!g||b!=g.x||F!=g.y){g&&V?(M=g.x,D=g.y):(M=0,D=0);var Z={x:M+b,y:D+F};(V||!g)&&(g=Z),v.push(Z),H=M+b,B=D+F}},"addPoint"),w=P(function(b){var F=b.pathSegTypeAsLetter.toUpperCase();if(F!=="Z"){switch(F){case"M":case"L":case"T":case"C":case"S":case"Q":H=b.x,B=b.y;break;case"H":H=b.x;break;case"V":B=b.y;break}_(H,B,b.pathSegType)}},"addSegmentPoint");for(u._svgPathToAbsolute(d),f=d.getTotalLength(),L=[],A=0;A{var m={};o.exports=m,function(){m.create=function(s,u){return{x:s||0,y:u||0}},m.clone=function(s){return{x:s.x,y:s.y}},m.magnitude=function(s){return Math.sqrt(s.x*s.x+s.y*s.y)},m.magnitudeSquared=function(s){return s.x*s.x+s.y*s.y},m.rotate=function(s,u,T){var d=Math.cos(u),c=Math.sin(u);T||(T={});var A=s.x*d-s.y*c;return T.y=s.x*c+s.y*d,T.x=A,T},m.rotateAbout=function(s,u,T,d){var c=Math.cos(u),A=Math.sin(u);d||(d={});var h=T.x+((s.x-T.x)*c-(s.y-T.y)*A);return d.y=T.y+((s.x-T.x)*A+(s.y-T.y)*c),d.x=h,d},m.normalise=function(s){var u=m.magnitude(s);return u===0?{x:0,y:0}:{x:s.x/u,y:s.y/u}},m.dot=function(s,u){return s.x*u.x+s.y*u.y},m.cross=function(s,u){return s.x*u.y-s.y*u.x},m.cross3=function(s,u,T){return(u.x-s.x)*(T.y-s.y)-(u.y-s.y)*(T.x-s.x)},m.add=function(s,u,T){return T||(T={}),T.x=s.x+u.x,T.y=s.y+u.y,T},m.sub=function(s,u,T){return T||(T={}),T.x=s.x-u.x,T.y=s.y-u.y,T},m.mult=function(s,u){return{x:s.x*u,y:s.y*u}},m.div=function(s,u){return{x:s.x/u,y:s.y/u}},m.perp=function(s,u){return u=u===!0?-1:1,{x:u*-s.y,y:u*s.x}},m.neg=function(s){return{x:-s.x,y:-s.y}},m.angle=function(s,u){return Math.atan2(u.y-s.y,u.x-s.x)},m._temp=[m.create(),m.create(),m.create(),m.create(),m.create(),m.create()]}()},41598:(o,m,s)=>{var u={};o.exports=u;var T=s(31725),d=s(53402);(function(){u.create=function(c,A){for(var h=[],f=0;f0)return!1;O=L}return!0},u.scale=function(c,A,h,f){if(A===1&&h===1)return c;f=f||u.centre(c);for(var S,O,L=0;L=0?L-1:c.length-1],N=c[L],g=c[(L+1)%c.length],C=A[L0&&(A|=2),A===3)return!1;return A!==0?!0:null},u.hull=function(c){var A=[],h=[],f,S;for(c=c.slice(0),c.sort(function(O,L){var p=O.x-L.x;return p!==0?p:O.y-L.y}),S=0;S=2&&T.cross3(h[h.length-2],h[h.length-1],f)<=0;)h.pop();h.push(f)}for(S=c.length-1;S>=0;S-=1){for(f=c[S];A.length>=2&&T.cross3(A[A.length-2],A[A.length-1],f)<=0;)A.pop();A.push(f)}return A.pop(),h.pop(),A.concat(h)}})()},18210:(o,m,s)=>{var u=s(19933),T={name:"matter-attractors",version:"0.1.7",for:"matter-js@^0.19.0",silent:!0,install:function(d){d.after("Body.create",function(){T.Body.init(this)}),d.before("Engine.update",function(c){T.Engine.update(c)})},Body:{init:function(d){d.plugin.attractors=d.plugin.attractors||[]}},Engine:{update:function(d){for(var c=u.Composite.allBodies(d.world),A=0;A0)for(var S=0;S{/** + */o.exports={BodyBounds:s(68174),Components:s(31884),Events:s(1121),Factory:s(28137),MatterGameObject:s(75803),Image:s(23181),Matter:s(19933),MatterPhysics:s(42045),PolyDecomp:s(55973),Sprite:s(34803),TileBody:s(73834),PhysicsEditorParser:s(19496),PhysicsJSONParser:s(85791),PointerConstraint:s(98713),World:s(68243)}},22562:(o,O,s)=>{var u={};o.exports=u;var T=s(41598),A=s(31725),c=s(53614),d=s(53402),h=s(15647),f=s(66615);(function(){u._timeCorrection=!0,u._inertiaScale=4,u._nextCollidingGroupId=1,u._nextNonCollidingGroupId=-1,u._nextCategory=1,u._baseDelta=16.666666666666668,u.create=function(R){var L={id:d.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:{}};!R.hasOwnProperty("position")&&R.hasOwnProperty("vertices")?R.position=T.centre(R.vertices):R.hasOwnProperty("vertices")||(L.vertices=T.fromPath("L 0 0 L 40 0 L 40 40 L 0 40"));var p=d.extend(L,R);return S(p,R),p.setOnCollideWith=function(N,g){return g?this.onCollideWith[N.id]=g:delete this.onCollideWith[N.id],this},p},u.nextGroup=function(R){return R?u._nextNonCollidingGroupId--:u._nextCollidingGroupId++},u.nextCategory=function(){return u._nextCategory=u._nextCategory<<1,u._nextCategory};var S=v(function(R,L){if(L=L||{},u.set(R,{bounds:R.bounds||h.create(R.vertices),positionPrev:R.positionPrev||A.clone(R.position),anglePrev:R.anglePrev||R.angle,vertices:R.vertices,parts:R.parts||[R],isStatic:R.isStatic,isSleeping:R.isSleeping,parent:R.parent||R}),T.rotate(R.vertices,R.angle,R.position),f.rotate(R.axes,R.angle),h.update(R.bounds,R.vertices,R.velocity),u.set(R,{axes:L.axes||R.axes,area:L.area||R.area,mass:L.mass||R.mass,inertia:L.inertia||R.inertia}),R.parts.length===1){var p=R.bounds,N=R.centerOfMass,g=R.centerOffset,C=p.max.x-p.min.x,P=p.max.y-p.min.y;N.x=-(p.min.x-R.position.x)/C,N.y=-(p.min.y-R.position.y)/P,g.x=C*N.x,g.y=P*N.y}},"_initProperties");u.set=function(R,L,p){var N;typeof L=="string"&&(N=L,L={},L[N]=p);for(N in L)if(Object.prototype.hasOwnProperty.call(L,N))switch(p=L[N],N){case"isStatic":u.setStatic(R,p);break;case"isSleeping":c.set(R,p);break;case"mass":u.setMass(R,p);break;case"density":u.setDensity(R,p);break;case"inertia":u.setInertia(R,p);break;case"vertices":u.setVertices(R,p);break;case"position":u.setPosition(R,p);break;case"angle":u.setAngle(R,p);break;case"velocity":u.setVelocity(R,p);break;case"angularVelocity":u.setAngularVelocity(R,p);break;case"speed":u.setSpeed(R,p);break;case"angularSpeed":u.setAngularSpeed(R,p);break;case"parts":u.setParts(R,p);break;case"centre":u.setCentre(R,p);break;default:R[N]=p}},u.setStatic=function(R,L){for(var p=0;p0&&A.rotateAbout(C.position,N,R.position,C.position)}},u.setVelocity=function(R,L){var p=R.deltaTime/u._baseDelta;R.positionPrev.x=R.position.x-L.x*p,R.positionPrev.y=R.position.y-L.y*p,R.velocity.x=(R.position.x-R.positionPrev.x)/p,R.velocity.y=(R.position.y-R.positionPrev.y)/p,R.speed=A.magnitude(R.velocity)},u.getVelocity=function(R){var L=u._baseDelta/R.deltaTime;return{x:(R.position.x-R.positionPrev.x)*L,y:(R.position.y-R.positionPrev.y)*L}},u.getSpeed=function(R){return A.magnitude(u.getVelocity(R))},u.setSpeed=function(R,L){u.setVelocity(R,A.mult(A.normalise(u.getVelocity(R)),L))},u.setAngularVelocity=function(R,L){var p=R.deltaTime/u._baseDelta;R.anglePrev=R.angle-L*p,R.angularVelocity=(R.angle-R.anglePrev)/p,R.angularSpeed=Math.abs(R.angularVelocity)},u.getAngularVelocity=function(R){return(R.angle-R.anglePrev)*u._baseDelta/R.deltaTime},u.getAngularSpeed=function(R){return Math.abs(u.getAngularVelocity(R))},u.setAngularSpeed=function(R,L){u.setAngularVelocity(R,d.sign(u.getAngularVelocity(R))*L)},u.translate=function(R,L,p){u.setPosition(R,A.add(R.position,L),p)},u.rotate=function(R,L,p,N){if(!p)u.setAngle(R,R.angle+L,N);else{var g=Math.cos(L),C=Math.sin(L),P=R.position.x-p.x,M=R.position.y-p.y;u.setPosition(R,{x:p.x+(P*g-M*C),y:p.y+(P*C+M*g)},N),u.setAngle(R,R.angle+L,N)}},u.scale=function(R,L,p,N){var g=0,C=0;N=N||R.position;for(var P=R.inertia===1/0,M=0;M0&&(g+=D.area,C+=D.inertia),D.position.x=N.x+(D.position.x-N.x)*L,D.position.y=N.y+(D.position.y-N.y)*p,h.update(D.bounds,D.vertices,R.velocity)}R.parts.length>1&&(R.area=g,R.isStatic||(u.setMass(R,R.density*g),u.setInertia(R,C))),R.circleRadius&&(L===p?R.circleRadius*=L:R.circleRadius=null),P&&u.setInertia(R,1/0)},u.update=function(R,L){L=(typeof L<"u"?L:16.666666666666668)*R.timeScale;var p=L*L,N=u._timeCorrection?L/(R.deltaTime||L):1,g=1-R.frictionAir*(L/d._baseDelta),C=(R.position.x-R.positionPrev.x)*N,P=(R.position.y-R.positionPrev.y)*N;R.velocity.x=C*g+R.force.x/R.mass*p,R.velocity.y=P*g+R.force.y/R.mass*p,R.positionPrev.x=R.position.x,R.positionPrev.y=R.position.y,R.position.x+=R.velocity.x,R.position.y+=R.velocity.y,R.deltaTime=L,R.angularVelocity=(R.angle-R.anglePrev)*g*N+R.torque/R.inertia*p,R.anglePrev=R.angle,R.angle+=R.angularVelocity,R.speed=A.magnitude(R.velocity),R.angularSpeed=Math.abs(R.angularVelocity);for(var M=0;M0&&(D.position.x+=R.velocity.x,D.position.y+=R.velocity.y),R.angularVelocity!==0&&(T.rotate(D.vertices,R.angularVelocity,R.position),f.rotate(D.axes,R.angularVelocity),M>0&&A.rotateAbout(D.position,R.angularVelocity,R.position,D.position)),h.update(D.bounds,D.vertices,R.velocity)}},u.updateVelocities=function(R){var L=u._baseDelta/R.deltaTime,p=R.velocity;p.x=(R.position.x-R.positionPrev.x)*L,p.y=(R.position.y-R.positionPrev.y)*L,R.speed=Math.sqrt(p.x*p.x+p.y*p.y),R.angularVelocity=(R.angle-R.anglePrev)*L,R.angularSpeed=Math.abs(R.angularVelocity)},u.applyForce=function(R,L,p){var N={x:L.x-R.position.x,y:L.y-R.position.y};R.force.x+=p.x,R.force.y+=p.y,R.torque+=N.x*p.y-N.y*p.x},u._totalProperties=function(R){for(var L={mass:0,area:0,inertia:0,centre:{x:0,y:0}},p=R.parts.length===1?0:1;p{var u={};o.exports=u;var T=s(35810),A=s(53402),c=s(15647),d=s(22562);(function(){u.create=function(h){return A.extend({id:A.nextId(),type:"composite",parent:null,isModified:!1,bodies:[],constraints:[],composites:[],label:"Composite",plugin:{},cache:{allBodies:null,allConstraints:null,allComposites:null}},h)},u.setModified=function(h,f,S,R){if(T.trigger(h,"compositeModified",h),h.isModified=f,f&&h.cache&&(h.cache.allBodies=null,h.cache.allConstraints=null,h.cache.allComposites=null),S&&h.parent&&u.setModified(h.parent,f,S,R),R)for(var L=0;L{var u={};o.exports=u;var T=s(69351);(function(){u.create=T.create,u.add=T.add,u.remove=T.remove,u.clear=T.clear,u.addComposite=T.addComposite,u.addBody=T.addBody,u.addConstraint=T.addConstraint})()},52284:(o,O,s)=>{var u={};o.exports=u;var T=s(41598),A=s(4506);(function(){var c=[],d={overlap:0,axis:null},h={overlap:0,axis:null};u.create=function(f,S){return{pair:null,collided:!1,bodyA:f,bodyB:S,parentA:f.parent,parentB:S.parent,depth:0,normal:{x:0,y:0},tangent:{x:0,y:0},penetration:{x:0,y:0},supports:[]}},u.collides=function(f,S,R){if(u._overlapAxes(d,f.vertices,S.vertices,f.axes),d.overlap<=0||(u._overlapAxes(h,S.vertices,f.vertices,S.axes),h.overlap<=0))return null;var L=R&&R.table[A.id(f,S)],p;L?p=L.collision:(p=u.create(f,S),p.collided=!0,p.bodyA=f.idz?z=_:_j?j=_:_p?p=g:g{var O={};o.exports=O,function(){O.create=function(s){return{vertex:s,normalImpulse:0,tangentImpulse:0}}}()},81388:(o,O,s)=>{var u={};o.exports=u;var T=s(53402),A=s(52284);(function(){u.create=function(c){var d={bodies:[],pairs:null};return T.extend(d,c)},u.setBodies=function(c,d){c.bodies=d.slice(0)},u.clear=function(c){c.bodies=[]},u.collisions=function(c){var d=[],h=c.pairs,f=c.bodies,S=f.length,R=u.canCollide,L=A.collides,p,N;for(f.sort(u._compareBoundsX),p=0;pP)break;if(!(Mw.max.y)&&!(G&&(b.isStatic||b.isSleeping))&&R(g.collisionFilter,b.collisionFilter)){var _=b.parts.length;if(B&&_===1){var F=L(g,b,h);F&&d.push(F)}else for(var x=H>1?1:0,V=_>1?1:0,Z=x;Zw.max.x||C.max.xw.max.y)){var F=L($,te,h);F&&d.push(F)}}}}}return d},u.canCollide=function(c,d){return c.group===d.group&&c.group!==0?c.group>0:(c.mask&d.category)!==0&&(d.mask&c.category)!==0},u._compareBoundsX=function(c,d){return c.bounds.min.x-d.bounds.min.x}})()},4506:(o,O,s)=>{var u={};o.exports=u;var T=s(43424);(function(){u.create=function(A,c){var d=A.bodyA,h=A.bodyB,f={id:u.id(d,h),bodyA:d,bodyB:h,collision:A,contacts:[],activeContacts:[],separation:0,isActive:!0,confirmedActive:!0,isSensor:d.isSensor||h.isSensor,timeCreated:c,timeUpdated:c,inverseMass:0,friction:0,frictionStatic:0,restitution:0,slop:0};return u.update(f,A,c),f},u.update=function(A,c,d){var h=A.contacts,f=c.supports,S=A.activeContacts,R=c.parentA,L=c.parentB,p=R.vertices.length;A.isActive=!0,A.timeUpdated=d,A.collision=c,A.separation=c.depth,A.inverseMass=R.inverseMass+L.inverseMass,A.friction=R.frictionL.frictionStatic?R.frictionStatic:L.frictionStatic,A.restitution=R.restitution>L.restitution?R.restitution:L.restitution,A.slop=R.slop>L.slop?R.slop:L.slop,c.pair=A,S.length=0;for(var N=0;N{var u={};o.exports=u;var T=s(4506),A=s(53402);(function(){u.create=function(c){return A.extend({table:{},list:[],collisionStart:[],collisionActive:[],collisionEnd:[]},c)},u.update=function(c,d,h){var f=c.list,S=f.length,R=c.table,L=d.length,p=c.collisionStart,N=c.collisionEnd,g=c.collisionActive,C,P,M,D;for(p.length=0,N.length=0,g.length=0,D=0;D{var u={};o.exports=u;var T=s(31725),A=s(52284),c=s(15647),d=s(66280),h=s(41598);(function(){u.collides=function(f,S){for(var R=[],L=S.length,p=f.bounds,N=A.collides,g=c.overlaps,C=0;C{var u={};o.exports=u;var T=s(41598),A=s(53402),c=s(15647);(function(){u._restingThresh=2,u._restingThreshTangent=Math.sqrt(6),u._positionDampen=.9,u._positionWarming=.8,u._frictionNormalMultiplier=5,u._frictionMaxStatic=Number.MAX_VALUE,u.preSolvePosition=function(d){var h,f,S,R=d.length;for(h=0;hGe?(M=it>0?it:-it,P=H.friction*(it>0?1:-1)*R,P<-M?P=-M:P>M&&(P=M)):(P=it,M=g);var Je=J*V-ne*x,tt=re*V-oe*x,Ut=z/(j+b.inverseInertia*Je*Je+w.inverseInertia*tt*tt),Nt=(1+H.restitution)*xe*Ut;if(P*=Ut,xe0&&(X.normalImpulse=0),Nt=X.normalImpulse-La}if(it<-p||it>p)X.tangentImpulse=0;else{var ya=X.tangentImpulse;X.tangentImpulse+=P,X.tangentImpulse<-M&&(X.tangentImpulse=-M),X.tangentImpulse>M&&(X.tangentImpulse=M),P=X.tangentImpulse-ya}var zt=x*Nt+Z*P,_t=V*Nt+$*P;b.isStatic||b.isSleeping||(b.positionPrev.x+=zt*b.inverseMass,b.positionPrev.y+=_t*b.inverseMass,b.anglePrev+=(J*_t-ne*zt)*b.inverseInertia),w.isStatic||w.isSleeping||(w.positionPrev.x-=zt*w.inverseMass,w.positionPrev.y-=_t*w.inverseMass,w.anglePrev-=(re*_t-oe*zt)*w.inverseInertia)}}}}})()},48140:(o,O,s)=>{var u={};o.exports=u;var T=s(41598),A=s(31725),c=s(53614),d=s(15647),h=s(66615),f=s(53402);(function(){u._warming=.4,u._torqueDampen=1,u._minLength=1e-6,u.create=function(S){var R=S;R.bodyA&&!R.pointA&&(R.pointA={x:0,y:0}),R.bodyB&&!R.pointB&&(R.pointB={x:0,y:0});var L=R.bodyA?A.add(R.bodyA.position,R.pointA):R.pointA,p=R.bodyB?A.add(R.bodyB.position,R.pointB):R.pointB,N=A.magnitude(A.sub(L,p));R.length=typeof R.length<"u"?R.length:N,R.id=R.id||f.nextId(),R.label=R.label||"Constraint",R.type="constraint",R.stiffness=R.stiffness||(R.length>0?1:.7),R.damping=R.damping||0,R.angularStiffness=R.angularStiffness||0,R.angleA=R.bodyA?R.bodyA.angle:R.angleA,R.angleB=R.bodyB?R.bodyB.angle:R.angleB,R.plugin={};var g={visible:!0,type:"line",anchors:!0,lineColor:null,lineOpacity:null,lineThickness:null,pinSize:null,anchorColor:null,anchorSize:null};return R.length===0&&R.stiffness>.1?(g.type="pin",g.anchors=!1):R.stiffness<.9&&(g.type="spring"),R.render=f.extend(g,R.render),R},u.preSolveAll=function(S){for(var R=0;R=1||S.length===0,B=H?S.stiffness*R:S.stiffness*R*R,b=S.damping*R,w=A.mult(M,G*B),_=(L?L.inverseMass:0)+(p?p.inverseMass:0),F=(L?L.inverseInertia:0)+(p?p.inverseInertia:0),x=_+F,V,Z,$,Q,te;if(b>0){var z=A.create();$=A.div(M,D),te=A.sub(p&&A.sub(p.position,p.positionPrev)||z,L&&A.sub(L.position,L.positionPrev)||z),Q=A.dot($,te)}L&&!L.isStatic&&(Z=L.inverseMass/_,L.constraintImpulse.x-=w.x*Z,L.constraintImpulse.y-=w.y*Z,L.position.x-=w.x*Z,L.position.y-=w.y*Z,b>0&&(L.positionPrev.x-=b*$.x*Q*Z,L.positionPrev.y-=b*$.y*Q*Z),V=A.cross(N,w)/x*u._torqueDampen*L.inverseInertia*(1-S.angularStiffness),L.constraintImpulse.angle-=V,L.angle-=V),p&&!p.isStatic&&(Z=p.inverseMass/_,p.constraintImpulse.x+=w.x*Z,p.constraintImpulse.y+=w.y*Z,p.position.x+=w.x*Z,p.position.y+=w.y*Z,b>0&&(p.positionPrev.x+=b*$.x*Q*Z,p.positionPrev.y+=b*$.y*Q*Z),V=A.cross(g,w)/x*u._torqueDampen*p.inverseInertia*(1-S.angularStiffness),p.constraintImpulse.angle+=V,p.angle+=V)}}},u.postSolveAll=function(S){for(var R=0;R0&&(g.position.x+=p.x,g.position.y+=p.y),p.angle!==0&&(T.rotate(g.vertices,p.angle,L.position),h.rotate(g.axes,p.angle),N>0&&A.rotateAbout(g.position,p.angle,L.position,g.position)),d.update(g.bounds,g.vertices,L.velocity)}p.angle*=u._warming,p.x*=u._warming,p.y*=u._warming}}},u.pointAWorld=function(S){return{x:(S.bodyA?S.bodyA.position.x:0)+(S.pointA?S.pointA.x:0),y:(S.bodyA?S.bodyA.position.y:0)+(S.pointA?S.pointA.y:0)}},u.pointBWorld=function(S){return{x:(S.bodyB?S.bodyB.position.x:0)+(S.pointB?S.pointB.x:0),y:(S.bodyB?S.bodyB.position.y:0)+(S.pointB?S.pointB.y:0)}},u.currentLength=function(S){var R=(S.bodyA?S.bodyA.position.x:0)+(S.pointA?S.pointA.x:0),L=(S.bodyA?S.bodyA.position.y:0)+(S.pointA?S.pointA.y:0),p=(S.bodyB?S.bodyB.position.x:0)+(S.pointB?S.pointB.x:0),N=(S.bodyB?S.bodyB.position.y:0)+(S.pointB?S.pointB.y:0),g=R-p,C=L-N;return Math.sqrt(g*g+C*C)}})()},53402:(o,O,s)=>{var u={};o.exports=u,function(){u._baseDelta=16.666666666666668,u._nextId=0,u._seed=0,u._nowStartTime=+new Date,u._warnedOnce={},u._decomp=null,u.extend=function(A,c){var d,h;typeof c=="boolean"?(d=2,h=c):(d=1,h=!0);for(var f=d;f0;c--){var d=Math.floor(u.random()*(c+1)),h=A[c];A[c]=A[d],A[d]=h}return A},u.choose=function(A){return A[Math.floor(u.random()*A.length)]},u.isElement=function(A){return typeof HTMLElement<"u"?A instanceof HTMLElement:!!(A&&A.nodeType&&A.nodeName)},u.isArray=function(A){return Object.prototype.toString.call(A)==="[object Array]"},u.isFunction=function(A){return typeof A=="function"},u.isPlainObject=function(A){return typeof A=="object"&&A.constructor===Object},u.isString=function(A){return toString.call(A)==="[object String]"},u.clamp=function(A,c,d){return Ad?d:A},u.sign=function(A){return A<0?-1:1},u.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-u._nowStartTime},u.random=function(A,c){return A=typeof A<"u"?A:0,c=typeof c<"u"?c:1,A+T()*(c-A)};var T=v(function(){return u._seed=(u._seed*9301+49297)%233280,u._seed/233280},"_seededRandom");u.colorToNumber=function(A){return A=A.replace("#",""),A.length==3&&(A=A.charAt(0)+A.charAt(0)+A.charAt(1)+A.charAt(1)+A.charAt(2)+A.charAt(2)),parseInt(A,16)},u.logLevel=1,u.log=function(){console&&u.logLevel>0&&u.logLevel<=3&&console.log.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},u.info=function(){console&&u.logLevel>0&&u.logLevel<=2&&console.info.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},u.warn=function(){console&&u.logLevel>0&&u.logLevel<=3&&console.warn.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},u.warnOnce=function(){var A=Array.prototype.slice.call(arguments).join(" ");u._warnedOnce[A]||(u.warn(A),u._warnedOnce[A]=!0)},u.deprecated=function(A,c,d){A[c]=u.chain(function(){u.warnOnce("🔅 deprecated 🔅",d)},A[c])},u.nextId=function(){return u._nextId++},u.indexOf=function(A,c){if(A.indexOf)return A.indexOf(c);for(var d=0;d{var u={};o.exports=u;var T=s(53614),A=s(66272),c=s(81388),d=s(99561),h=s(35810),f=s(69351),S=s(48140),R=s(53402),L=s(22562);(function(){u.create=function(p){p=p||{};var N={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}},g=R.extend(N,p);return g.world=p.world||f.create({label:"World"}),g.pairs=p.pairs||d.create(),g.detector=p.detector||c.create(),g.grid={buckets:[]},g.world.gravity=g.gravity,g.broadphase=g.grid,g.metrics={},g},u.update=function(p,N){var g=R.now(),C=p.world,P=p.detector,M=p.pairs,D=p.timing,G=D.timestamp,H;N=typeof N<"u"?N:R._baseDelta,N*=D.timeScale,D.timestamp+=N,D.lastDelta=N;var B={timestamp:D.timestamp,delta:N};h.trigger(p,"beforeUpdate",B);var b=f.allBodies(C),w=f.allConstraints(C);for(C.isModified&&(c.setBodies(P,b),f.setModified(C,!1,!1,!0)),p.enableSleeping&&T.update(b,N),u._bodiesApplyGravity(b,p.gravity),N>0&&u._bodiesUpdate(b,N),h.trigger(p,"beforeSolve",B),S.preSolveAll(b),H=0;H0&&h.trigger(p,"collisionStart",{pairs:M.collisionStart,timestamp:D.timestamp,delta:N});var F=R.clamp(20/p.positionIterations,0,1);for(A.preSolvePosition(M.list),H=0;H0&&h.trigger(p,"collisionActive",{pairs:M.collisionActive,timestamp:D.timestamp,delta:N}),M.collisionEnd.length>0&&h.trigger(p,"collisionEnd",{pairs:M.collisionEnd,timestamp:D.timestamp,delta:N}),u._bodiesClearForces(b),h.trigger(p,"afterUpdate",B),p.timing.lastElapsed=R.now()-g,p},u.merge=function(p,N){if(R.extend(p,N),N.world){p.world=N.world,u.clear(p);for(var g=f.allBodies(p.world),C=0;C{var u={};o.exports=u;var T=s(53402);(function(){u.on=function(A,c,d){for(var h=c.split(" "),f,S=0;S0){d||(d={}),h=c.split(" ");for(var p=0;p{var u={};o.exports=u;var T=s(73832),A=s(53402);(function(){u.name="matter-js",u.version="0.19.0",u.uses=[],u.used=[],u.use=function(){T.use(u,Array.prototype.slice.call(arguments))},u.before=function(c,d){return c=c.replace(/^Matter./,""),A.chainPathBefore(u,c,d)},u.after=function(c,d){return c=c.replace(/^Matter./,""),A.chainPathAfter(u,c,d)}})()},73832:(o,O,s)=>{var u={};o.exports=u;var T=s(53402);(function(){u._registry={},u.register=function(A){if(u.isPlugin(A)||T.warn("Plugin.register:",u.toString(A),"does not implement all required fields."),A.name in u._registry){var c=u._registry[A.name],d=u.versionParse(A.version).number,h=u.versionParse(c.version).number;d>h?(T.warn("Plugin.register:",u.toString(c),"was upgraded to",u.toString(A)),u._registry[A.name]=A):d-1},u.isFor=function(A,c){var d=A.for&&u.dependencyParse(A.for);return!A.for||c.name===d.name&&u.versionSatisfies(c.version,d.range)},u.use=function(A,c){if(A.uses=(A.uses||[]).concat(c||[]),A.uses.length===0){T.warn("Plugin.use:",u.toString(A),"does not specify any dependencies to install.");return}for(var d=u.dependencies(A),h=T.topologicalSort(d),f=[],S=0;S0&&!R.silent&&T.info(f.join(" "))},u.dependencies=function(A,c){var d=u.dependencyParse(A),h=d.name;if(c=c||{},!(h in c)){A=u.resolve(A)||A,c[h]=T.map(A.uses||[],function(S){u.isPlugin(S)&&u.register(S);var R=u.dependencyParse(S),L=u.resolve(S);return L&&!u.versionSatisfies(L.version,R.range)?(T.warn("Plugin.dependencies:",u.toString(L),"does not satisfy",u.toString(R),"used by",u.toString(d)+"."),L._warned=!0,A._warned=!0):L||(T.warn("Plugin.dependencies:",u.toString(S),"used by",u.toString(d),"could not be resolved."),A._warned=!0),R.name});for(var f=0;f=|>)?\s*((\d+)\.(\d+)\.(\d+))(-[0-9A-Za-z-+]+)?$/;c.test(A)||T.warn("Plugin.versionParse:",A,"is not a valid version or range.");var d=c.exec(A),h=Number(d[4]),f=Number(d[5]),S=Number(d[6]);return{isRange:!!(d[1]||d[2]),version:d[3],range:A,operator:d[1]||d[2]||"",major:h,minor:f,patch:S,parts:[h,f,S],prerelease:d[7],number:h*1e8+f*1e4+S}},u.versionSatisfies=function(A,c){c=c||"*";var d=u.versionParse(c),h=u.versionParse(A);if(d.isRange){if(d.operator==="*"||A==="*")return!0;if(d.operator===">")return h.number>d.number;if(d.operator===">=")return h.number>=d.number;if(d.operator==="~")return h.major===d.major&&h.minor===d.minor&&h.patch>=d.patch;if(d.operator==="^")return d.major>0?h.major===d.major&&h.number>=d.number:d.minor>0?h.minor===d.minor&&h.patch>=d.patch:h.patch===d.patch}return A===c||A==="*"}})()},53614:(o,O,s)=>{var u={};o.exports=u;var T=s(22562),A=s(35810),c=s(53402);(function(){u._motionWakeThreshold=.18,u._motionSleepThreshold=.08,u._minBias=.9,u.update=function(d,h){for(var f=h/c._baseDelta,S=u._motionSleepThreshold,R=0;R0&&L.motion=L.sleepThreshold/f&&u.set(L,!0)):L.sleepCounter>0&&(L.sleepCounter-=1)}},u.afterCollisions=function(d){for(var h=u._motionSleepThreshold,f=0;fh&&u.set(N,!1)}}}},u.set=function(d,h){var f=d.isSleeping;h?(d.isSleeping=!0,d.sleepCounter=d.sleepThreshold,d.positionImpulse.x=0,d.positionImpulse.y=0,d.positionPrev.x=d.position.x,d.positionPrev.y=d.position.y,d.anglePrev=d.angle,d.speed=0,d.angularSpeed=0,d.motion=0,f||A.trigger(d,"sleepStart")):(d.isSleeping=!1,d.sleepCounter=0,f&&A.trigger(d,"sleepEnd"))}})()},66280:(o,O,s)=>{var u={};o.exports=u;var T=s(41598),A=s(53402),c=s(22562),d=s(15647),h=s(31725);(function(){u.rectangle=function(f,S,R,L,p){p=p||{};var N={label:"Rectangle Body",position:{x:f,y:S},vertices:T.fromPath("L 0 0 L "+R+" 0 L "+R+" "+L+" L 0 "+L)};if(p.chamfer){var g=p.chamfer;N.vertices=T.chamfer(N.vertices,g.radius,g.quality,g.qualityMin,g.qualityMax),delete p.chamfer}return c.create(A.extend({},N,p))},u.trapezoid=function(f,S,R,L,p,N){N=N||{},p*=.5;var g=(1-p*2)*R,C=R*p,P=C+g,M=P+C,D;p<.5?D="L 0 0 L "+C+" "+-L+" L "+P+" "+-L+" L "+M+" 0":D="L 0 0 L "+P+" "+-L+" L "+M+" 0";var G={label:"Trapezoid Body",position:{x:f,y:S},vertices:T.fromPath(D)};if(N.chamfer){var H=N.chamfer;G.vertices=T.chamfer(G.vertices,H.radius,H.quality,H.qualityMin,H.qualityMax),delete N.chamfer}return c.create(A.extend({},G,N))},u.circle=function(f,S,R,L,p){L=L||{};var N={label:"Circle Body",circleRadius:R};p=p||25;var g=Math.ceil(Math.max(10,Math.min(p,R)));return g%2===1&&(g+=1),u.polygon(f,S,g,R,A.extend({},N,L))},u.polygon=function(f,S,R,L,p){if(p=p||{},R<3)return u.circle(f,S,L,p);for(var N=2*Math.PI/R,g="",C=N*.5,P=0;P0&&T.area(te)1?(D=c.create(A.extend({parts:G.slice(0)},L)),c.setPosition(D,{x:f,y:S}),D):G[0]},u.flagCoincidentParts=function(f,S){S===void 0&&(S=5);for(var R=0;R{var u={};o.exports=u;var T=s(69351),A=s(48140),c=s(53402),d=s(22562),h=s(66280);(function(){u.stack=function(f,S,R,L,p,N,g){for(var C=T.create({label:"Stack"}),P=f,M=S,D,G=0,H=0;HB&&(B=_),d.translate(w,{x:F*.5,y:_*.5}),P=w.bounds.max.x+p,T.addBody(C,w),D=w,G+=1}else P+=p}M+=B+N,P=f}return C},u.chain=function(f,S,R,L,p,N){for(var g=f.bodies,C=1;C0)for(C=0;C0&&(D=N[C-1+(g-1)*S],T.addConstraint(f,A.create(c.extend({bodyA:D,bodyB:M},p)))),L&&CB)){D=B-D;var w=D,_=R-1-D;if(!(M_)){H===1&&d.translate(G,{x:(M+(R%2===1?1:-1))*b,y:0});var F=G?M*b:0;return g(f+F+M*p,P,M,D,G,H)}}})},u.newtonsCradle=function(f,S,R,L,p){for(var N=T.create({label:"Newtons Cradle"}),g=0;g{var u={};o.exports=u;var T=s(31725),A=s(53402);(function(){u.fromVertices=function(c){for(var d={},h=0;h{var O={};o.exports=O,function(){O.create=function(s){var u={min:{x:0,y:0},max:{x:0,y:0}};return s&&O.update(u,s),u},O.update=function(s,u,T){s.min.x=1/0,s.max.x=-1/0,s.min.y=1/0,s.max.y=-1/0;for(var A=0;As.max.x&&(s.max.x=c.x),c.xs.max.y&&(s.max.y=c.y),c.y0?s.max.x+=T.x:s.min.x+=T.x,T.y>0?s.max.y+=T.y:s.min.y+=T.y)},O.contains=function(s,u){return u.x>=s.min.x&&u.x<=s.max.x&&u.y>=s.min.y&&u.y<=s.max.y},O.overlaps=function(s,u){return s.min.x<=u.max.x&&s.max.x>=u.min.x&&s.max.y>=u.min.y&&s.min.y<=u.max.y},O.translate=function(s,u){s.min.x+=u.x,s.max.x+=u.x,s.min.y+=u.y,s.max.y+=u.y},O.shift=function(s,u){var T=s.max.x-s.min.x,A=s.max.y-s.min.y;s.min.x=u.x,s.max.x=u.x+T,s.min.y=u.y,s.max.y=u.y+A}}()},74058:(o,O,s)=>{var u={};o.exports=u,s(15647);var T=s(53402);(function(){u.pathToVertices=function(A,c){typeof window<"u"&&!("SVGPathSeg"in window)&&T.warn("Svg.pathToVertices: SVGPathSeg not defined, a polyfill is required.");var d,h,f,S,R,L,p,N,g,C,P=[],M,D,G=0,H=0,B=0;c=c||15;var b=v(function(_,F,x){var V=x%2===1&&x>1;if(!g||_!=g.x||F!=g.y){g&&V?(M=g.x,D=g.y):(M=0,D=0);var Z={x:M+_,y:D+F};(V||!g)&&(g=Z),P.push(Z),H=M+_,B=D+F}},"addPoint"),w=v(function(_){var F=_.pathSegTypeAsLetter.toUpperCase();if(F!=="Z"){switch(F){case"M":case"L":case"T":case"C":case"S":case"Q":H=_.x,B=_.y;break;case"H":H=_.x;break;case"V":B=_.y;break}b(H,B,_.pathSegType)}},"addSegmentPoint");for(u._svgPathToAbsolute(A),f=A.getTotalLength(),L=[],d=0;d{var O={};o.exports=O,function(){O.create=function(s,u){return{x:s||0,y:u||0}},O.clone=function(s){return{x:s.x,y:s.y}},O.magnitude=function(s){return Math.sqrt(s.x*s.x+s.y*s.y)},O.magnitudeSquared=function(s){return s.x*s.x+s.y*s.y},O.rotate=function(s,u,T){var A=Math.cos(u),c=Math.sin(u);T||(T={});var d=s.x*A-s.y*c;return T.y=s.x*c+s.y*A,T.x=d,T},O.rotateAbout=function(s,u,T,A){var c=Math.cos(u),d=Math.sin(u);A||(A={});var h=T.x+((s.x-T.x)*c-(s.y-T.y)*d);return A.y=T.y+((s.x-T.x)*d+(s.y-T.y)*c),A.x=h,A},O.normalise=function(s){var u=O.magnitude(s);return u===0?{x:0,y:0}:{x:s.x/u,y:s.y/u}},O.dot=function(s,u){return s.x*u.x+s.y*u.y},O.cross=function(s,u){return s.x*u.y-s.y*u.x},O.cross3=function(s,u,T){return(u.x-s.x)*(T.y-s.y)-(u.y-s.y)*(T.x-s.x)},O.add=function(s,u,T){return T||(T={}),T.x=s.x+u.x,T.y=s.y+u.y,T},O.sub=function(s,u,T){return T||(T={}),T.x=s.x-u.x,T.y=s.y-u.y,T},O.mult=function(s,u){return{x:s.x*u,y:s.y*u}},O.div=function(s,u){return{x:s.x/u,y:s.y/u}},O.perp=function(s,u){return u=u===!0?-1:1,{x:u*-s.y,y:u*s.x}},O.neg=function(s){return{x:-s.x,y:-s.y}},O.angle=function(s,u){return Math.atan2(u.y-s.y,u.x-s.x)},O._temp=[O.create(),O.create(),O.create(),O.create(),O.create(),O.create()]}()},41598:(o,O,s)=>{var u={};o.exports=u;var T=s(31725),A=s(53402);(function(){u.create=function(c,d){for(var h=[],f=0;f0)return!1;R=L}return!0},u.scale=function(c,d,h,f){if(d===1&&h===1)return c;f=f||u.centre(c);for(var S,R,L=0;L=0?L-1:c.length-1],N=c[L],g=c[(L+1)%c.length],C=d[L0&&(d|=2),d===3)return!1;return d!==0?!0:null},u.hull=function(c){var d=[],h=[],f,S;for(c=c.slice(0),c.sort(function(R,L){var p=R.x-L.x;return p!==0?p:R.y-L.y}),S=0;S=2&&T.cross3(h[h.length-2],h[h.length-1],f)<=0;)h.pop();h.push(f)}for(S=c.length-1;S>=0;S-=1){for(f=c[S];d.length>=2&&T.cross3(d[d.length-2],d[d.length-1],f)<=0;)d.pop();d.push(f)}return d.pop(),h.pop(),d.concat(h)}})()},18210:(o,O,s)=>{var u=s(19933),T={name:"matter-attractors",version:"0.1.7",for:"matter-js@^0.19.0",silent:!0,install:function(A){A.after("Body.create",function(){T.Body.init(this)}),A.before("Engine.update",function(c){T.Engine.update(c)})},Body:{init:function(A){A.plugin.attractors=A.plugin.attractors||[]}},Engine:{update:function(A){for(var c=u.Composite.allBodies(A.world),d=0;d0)for(var S=0;S{/** * @author @dxu https://github.com/dxu/matter-collision-events * @author Richard Davey * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={name:"matter-collision-events",version:"0.1.6",for:"matter-js@^0.19.0",silent:!0,install:function(s){s.after("Engine.create",function(){s.Events.on(this,"collisionStart",function(u){u.pairs.map(function(T){var d=T.bodyA,c=T.bodyB;d.gameObject&&d.gameObject.emit("collide",d,c,T),c.gameObject&&c.gameObject.emit("collide",c,d,T),s.Events.trigger(d,"onCollide",{pair:T}),s.Events.trigger(c,"onCollide",{pair:T}),d.onCollideCallback&&d.onCollideCallback(T),c.onCollideCallback&&c.onCollideCallback(T),d.onCollideWith[c.id]&&d.onCollideWith[c.id](c,T),c.onCollideWith[d.id]&&c.onCollideWith[d.id](d,T)})}),s.Events.on(this,"collisionActive",function(u){u.pairs.map(function(T){var d=T.bodyA,c=T.bodyB;d.gameObject&&d.gameObject.emit("collideActive",d,c,T),c.gameObject&&c.gameObject.emit("collideActive",c,d,T),s.Events.trigger(d,"onCollideActive",{pair:T}),s.Events.trigger(c,"onCollideActive",{pair:T}),d.onCollideActiveCallback&&d.onCollideActiveCallback(T),c.onCollideActiveCallback&&c.onCollideActiveCallback(T)})}),s.Events.on(this,"collisionEnd",function(u){u.pairs.map(function(T){var d=T.bodyA,c=T.bodyB;d.gameObject&&d.gameObject.emit("collideEnd",d,c,T),c.gameObject&&c.gameObject.emit("collideEnd",c,d,T),s.Events.trigger(d,"onCollideEnd",{pair:T}),s.Events.trigger(c,"onCollideEnd",{pair:T}),d.onCollideEndCallback&&d.onCollideEndCallback(T),c.onCollideEndCallback&&c.onCollideEndCallback(T)})})})}};o.exports=m},74507:(o,m,s)=>{var u=s(19933),T={name:"matter-wrap",version:"0.1.4",for:"matter-js@^0.19.0",silent:!0,install:function(d){d.after("Engine.update",function(){T.Engine.update(this)})},Engine:{update:function(d){for(var c=d.world,A=u.Composite.allBodies(c),h=u.Composite.allComposites(c),f=0;fc.max.x?A=c.min.x-d.max.x:d.max.xc.max.y?h=c.min.y-d.max.y:d.max.y{/** + */var O={name:"matter-collision-events",version:"0.1.6",for:"matter-js@^0.19.0",silent:!0,install:function(s){s.after("Engine.create",function(){s.Events.on(this,"collisionStart",function(u){u.pairs.map(function(T){var A=T.bodyA,c=T.bodyB;A.gameObject&&A.gameObject.emit("collide",A,c,T),c.gameObject&&c.gameObject.emit("collide",c,A,T),s.Events.trigger(A,"onCollide",{pair:T}),s.Events.trigger(c,"onCollide",{pair:T}),A.onCollideCallback&&A.onCollideCallback(T),c.onCollideCallback&&c.onCollideCallback(T),A.onCollideWith[c.id]&&A.onCollideWith[c.id](c,T),c.onCollideWith[A.id]&&c.onCollideWith[A.id](A,T)})}),s.Events.on(this,"collisionActive",function(u){u.pairs.map(function(T){var A=T.bodyA,c=T.bodyB;A.gameObject&&A.gameObject.emit("collideActive",A,c,T),c.gameObject&&c.gameObject.emit("collideActive",c,A,T),s.Events.trigger(A,"onCollideActive",{pair:T}),s.Events.trigger(c,"onCollideActive",{pair:T}),A.onCollideActiveCallback&&A.onCollideActiveCallback(T),c.onCollideActiveCallback&&c.onCollideActiveCallback(T)})}),s.Events.on(this,"collisionEnd",function(u){u.pairs.map(function(T){var A=T.bodyA,c=T.bodyB;A.gameObject&&A.gameObject.emit("collideEnd",A,c,T),c.gameObject&&c.gameObject.emit("collideEnd",c,A,T),s.Events.trigger(A,"onCollideEnd",{pair:T}),s.Events.trigger(c,"onCollideEnd",{pair:T}),A.onCollideEndCallback&&A.onCollideEndCallback(T),c.onCollideEndCallback&&c.onCollideEndCallback(T)})})})}};o.exports=O},74507:(o,O,s)=>{var u=s(19933),T={name:"matter-wrap",version:"0.1.4",for:"matter-js@^0.19.0",silent:!0,install:function(A){A.after("Engine.update",function(){T.Engine.update(this)})},Engine:{update:function(A){for(var c=A.world,d=u.Composite.allBodies(c),h=u.Composite.allComposites(c),f=0;fc.max.x?d=c.min.x-A.max.x:A.max.xc.max.y?h=c.min.y-A.max.y:A.max.y{/** * @author Stefan Hedman (http://steffe.se) * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={decomp:w,quickDecomp:V,isSimple:F,removeCollinearPoints:Z,removeDuplicatePoints:$,makeCCW:g};function m(z,j,x){x=x||0;var X=[0,0],q,J,ae,re,oe,Ee,Re;return q=z[1][1]-z[0][1],J=z[0][0]-z[1][0],ae=q*z[0][0]+J*z[0][1],re=j[1][1]-j[0][1],oe=j[0][0]-j[1][0],Ee=re*j[0][0]+oe*j[0][1],Re=q*oe-re*J,Q(Re,0,x)||(X[0]=(oe*ae-J*Ee)/Re,X[1]=(q*Ee-re*ae)/Re),X}P(m,"lineInt");function s(z,j,x,X){var q=j[0]-z[0],J=j[1]-z[1],ae=X[0]-x[0],re=X[1]-x[1];if(ae*J-re*q===0)return!1;var oe=(q*(x[1]-z[1])+J*(z[0]-x[0]))/(ae*J-re*q),Ee=(ae*(z[1]-x[1])+re*(x[0]-z[0]))/(re*q-ae*J);return oe>=0&&oe<=1&&Ee>=0&&Ee<=1}P(s,"lineSegmentsIntersect");function u(z,j,x){return(j[0]-z[0])*(x[1]-z[1])-(x[0]-z[0])*(j[1]-z[1])}P(u,"triangleArea");function T(z,j,x){return u(z,j,x)>0}P(T,"isLeft");function d(z,j,x){return u(z,j,x)>=0}P(d,"isLeftOn");function c(z,j,x){return u(z,j,x)<0}P(c,"isRight");function A(z,j,x){return u(z,j,x)<=0}P(A,"isRightOn");var h=[],f=[];function S(z,j,x,X){if(X){var q=h,J=f;q[0]=j[0]-z[0],q[1]=j[1]-z[1],J[0]=x[0]-j[0],J[1]=x[1]-j[1];var ae=q[0]*J[0]+q[1]*J[1],re=Math.sqrt(q[0]*q[0]+q[1]*q[1]),oe=Math.sqrt(J[0]*J[0]+J[1]*J[1]),Ee=Math.acos(ae/(re*oe));return Eex[j][0])&&(j=X);return T(L(z,j-1),L(z,j),L(z,j+1))?!1:(C(z),!0)}P(g,"polygonMakeCCW");function C(z){for(var j=[],x=z.length,X=0;X!==x;X++)j.push(z.pop());for(var X=0;X!==x;X++)z[X]=j[X]}P(C,"polygonReverse");function v(z,j){return c(L(z,j-1),L(z,j),L(z,j+1))}P(v,"polygonIsReflex");var M=[],D=[];function G(z,j,x){var X,q,J=M,ae=D;if(d(L(z,j+1),L(z,j),L(z,x))&&A(L(z,j-1),L(z,j),L(z,x)))return!1;q=O(L(z,j),L(z,x));for(var re=0;re!==z.length;++re)if(!((re+1)%z.length===j||re===j)&&d(L(z,j),L(z,x),L(z,re+1))&&A(L(z,j),L(z,x),L(z,re))&&(J[0]=L(z,j),J[1]=L(z,x),ae[0]=L(z,re),ae[1]=L(z,re+1),X=m(J,ae),O(L(z,j),X)0?b(z,j):[z]}P(w,"polygonDecomp");function b(z,j){if(j.length===0)return[z];if(j instanceof Array&&j.length&&j[0]instanceof Array&&j[0].length===2&&j[0][0]instanceof Array){for(var x=[z],X=0;XJ)return console.warn("quickDecomp: max level ("+J+") reached."),j;for(var tt=0;ttDe&&(De+=z.length),ye=Number.MAX_VALUE,De3&&X>=0;--X)S(L(z,X-1),L(z,X),L(z,X+1),j)&&(z.splice(X%z.length,1),x++);return x}P(Z,"polygonRemoveCollinearPoints");function $(z,j){for(var x=z.length-1;x>=1;--x)for(var X=z[x],q=x-1;q>=0;--q)if(te(X,z[q],j)){z.splice(x,1);continue}}P($,"polygonRemoveDuplicatePoints");function Q(z,j,x){return x=x||0,Math.abs(z-j)<=x}P(Q,"scalar_eq");function te(z,j,x){return Q(z[0],j[0],x)&&Q(z[1],j[1],x)}P(te,"points_eq")},52018:(o,m,s)=>{/** + */o.exports={decomp:w,quickDecomp:V,isSimple:F,removeCollinearPoints:Z,removeDuplicatePoints:$,makeCCW:g};function O(z,j,k){k=k||0;var X=[0,0],q,J,ne,re,oe,Ee,me;return q=z[1][1]-z[0][1],J=z[0][0]-z[1][0],ne=q*z[0][0]+J*z[0][1],re=j[1][1]-j[0][1],oe=j[0][0]-j[1][0],Ee=re*j[0][0]+oe*j[0][1],me=q*oe-re*J,Q(me,0,k)||(X[0]=(oe*ne-J*Ee)/me,X[1]=(q*Ee-re*ne)/me),X}v(O,"lineInt");function s(z,j,k,X){var q=j[0]-z[0],J=j[1]-z[1],ne=X[0]-k[0],re=X[1]-k[1];if(ne*J-re*q===0)return!1;var oe=(q*(k[1]-z[1])+J*(z[0]-k[0]))/(ne*J-re*q),Ee=(ne*(z[1]-k[1])+re*(k[0]-z[0]))/(re*q-ne*J);return oe>=0&&oe<=1&&Ee>=0&&Ee<=1}v(s,"lineSegmentsIntersect");function u(z,j,k){return(j[0]-z[0])*(k[1]-z[1])-(k[0]-z[0])*(j[1]-z[1])}v(u,"triangleArea");function T(z,j,k){return u(z,j,k)>0}v(T,"isLeft");function A(z,j,k){return u(z,j,k)>=0}v(A,"isLeftOn");function c(z,j,k){return u(z,j,k)<0}v(c,"isRight");function d(z,j,k){return u(z,j,k)<=0}v(d,"isRightOn");var h=[],f=[];function S(z,j,k,X){if(X){var q=h,J=f;q[0]=j[0]-z[0],q[1]=j[1]-z[1],J[0]=k[0]-j[0],J[1]=k[1]-j[1];var ne=q[0]*J[0]+q[1]*J[1],re=Math.sqrt(q[0]*q[0]+q[1]*q[1]),oe=Math.sqrt(J[0]*J[0]+J[1]*J[1]),Ee=Math.acos(ne/(re*oe));return Eek[j][0])&&(j=X);return T(L(z,j-1),L(z,j),L(z,j+1))?!1:(C(z),!0)}v(g,"polygonMakeCCW");function C(z){for(var j=[],k=z.length,X=0;X!==k;X++)j.push(z.pop());for(var X=0;X!==k;X++)z[X]=j[X]}v(C,"polygonReverse");function P(z,j){return c(L(z,j-1),L(z,j),L(z,j+1))}v(P,"polygonIsReflex");var M=[],D=[];function G(z,j,k){var X,q,J=M,ne=D;if(A(L(z,j+1),L(z,j),L(z,k))&&d(L(z,j-1),L(z,j),L(z,k)))return!1;q=R(L(z,j),L(z,k));for(var re=0;re!==z.length;++re)if(!((re+1)%z.length===j||re===j)&&A(L(z,j),L(z,k),L(z,re+1))&&d(L(z,j),L(z,k),L(z,re))&&(J[0]=L(z,j),J[1]=L(z,k),ne[0]=L(z,re),ne[1]=L(z,re+1),X=O(J,ne),R(L(z,j),X)0?_(z,j):[z]}v(w,"polygonDecomp");function _(z,j){if(j.length===0)return[z];if(j instanceof Array&&j.length&&j[0]instanceof Array&&j[0].length===2&&j[0][0]instanceof Array){for(var k=[z],X=0;XJ)return console.warn("quickDecomp: max level ("+J+") reached."),j;for(var tt=0;ttDe&&(De+=z.length),ye=Number.MAX_VALUE,De3&&X>=0;--X)S(L(z,X-1),L(z,X),L(z,X+1),j)&&(z.splice(X%z.length,1),k++);return k}v(Z,"polygonRemoveCollinearPoints");function $(z,j){for(var k=z.length-1;k>=1;--k)for(var X=z[k],q=k-1;q>=0;--q)if(te(X,z[q],j)){z.splice(k,1);continue}}v($,"polygonRemoveDuplicatePoints");function Q(z,j,k){return k=k||0,Math.abs(z-j)<=k}v(Q,"scalar_eq");function te(z,j,k){return Q(z[0],j[0],k)&&Q(z[1],j[1],k)}v(te,"points_eq")},52018:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://github.com/photonstorm/phaser3-plugin-template/blob/master/LICENSE|MIT License} -*/var u=s(83419),T=new u({initialize:P(function(c){this.pluginManager=c,this.game=c.game},"BasePlugin"),init:function(){},start:function(){},stop:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});o.exports=T},42363:o=>{/** +*/var u=s(83419),T=new u({initialize:v(function(c){this.pluginManager=c,this.game=c.game},"BasePlugin"),init:function(){},start:function(){},stop:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});o.exports=T},42363:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={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"]};o.exports=m},37277:o=>{/** + */var O={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"]};o.exports=O},37277:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={},s={},u={};u.register=function(T,d,c,A){A===void 0&&(A=!1),m[T]={plugin:d,mapping:c,custom:A}},u.registerCustom=function(T,d,c,A){s[T]={plugin:d,mapping:c,data:A}},u.hasCore=function(T){return m.hasOwnProperty(T)},u.hasCustom=function(T){return s.hasOwnProperty(T)},u.getCore=function(T){return m[T]},u.getCustom=function(T){return s[T]},u.getCustomClass=function(T){return s.hasOwnProperty(T)?s[T].plugin:null},u.remove=function(T){m.hasOwnProperty(T)&&delete m[T]},u.removeCustom=function(T){s.hasOwnProperty(T)&&delete s[T]},u.destroyCorePlugins=function(){for(var T in m)m.hasOwnProperty(T)&&delete m[T]},u.destroyCustomPlugins=function(){for(var T in s)s.hasOwnProperty(T)&&delete s[T]},o.exports=u},77332:(o,m,s)=>{/** + */var O={},s={},u={};u.register=function(T,A,c,d){d===void 0&&(d=!1),O[T]={plugin:A,mapping:c,custom:d}},u.registerCustom=function(T,A,c,d){s[T]={plugin:A,mapping:c,data:d}},u.hasCore=function(T){return O.hasOwnProperty(T)},u.hasCustom=function(T){return s.hasOwnProperty(T)},u.getCore=function(T){return O[T]},u.getCustom=function(T){return s[T]},u.getCustomClass=function(T){return s.hasOwnProperty(T)?s[T].plugin:null},u.remove=function(T){O.hasOwnProperty(T)&&delete O[T]},u.removeCustom=function(T){s.hasOwnProperty(T)&&delete s[T]},u.destroyCorePlugins=function(){for(var T in O)O.hasOwnProperty(T)&&delete O[T]},u.destroyCustomPlugins=function(){for(var T in s)s.hasOwnProperty(T)&&delete s[T]},o.exports=u},77332:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(8443),d=s(50792),c=s(74099),A=s(44603),h=s(39429),f=s(95540),S=s(37277),O=s(72905),L=new u({Extends:d,initialize:P(function(N){d.call(this),this.game=N,this.plugins=[],this.scenePlugins=[],this._pendingGlobal=[],this._pendingScene=[],N.isBooted?this.boot():N.events.once(T.BOOT,this.boot,this)},"PluginManager"),boot:function(){var p,N,g,C,v,M,D,G=this.game.config,H=G.installGlobalPlugins;for(H=H.concat(this._pendingGlobal),p=0;p{/** + */var u=s(83419),T=s(8443),A=s(50792),c=s(74099),d=s(44603),h=s(39429),f=s(95540),S=s(37277),R=s(72905),L=new u({Extends:A,initialize:v(function(N){A.call(this),this.game=N,this.plugins=[],this.scenePlugins=[],this._pendingGlobal=[],this._pendingScene=[],N.isBooted?this.boot():N.events.once(T.BOOT,this.boot,this)},"PluginManager"),boot:function(){var p,N,g,C,P,M,D,G=this.game.config,H=G.installGlobalPlugins;for(H=H.concat(this._pendingGlobal),p=0;p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://github.com/photonstorm/phaser3-plugin-template/blob/master/LICENSE|MIT License} -*/var u=s(52018),T=s(83419),d=s(44594),c=new T({Extends:u,initialize:P(function(h,f,S){u.call(this,f),this.scene=h,this.systems=h.sys,this.pluginKey=S,h.sys.events.once(d.BOOT,this.boot,this)},"ScenePlugin"),boot:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});o.exports=c},18922:(o,m,s)=>{/** +*/var u=s(52018),T=s(83419),A=s(44594),c=new T({Extends:u,initialize:v(function(h,f,S){u.call(this,f),this.scene=h,this.systems=h.sys,this.pluginKey=S,h.sys.events.once(A.BOOT,this.boot,this)},"ScenePlugin"),boot:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});o.exports=c},18922:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={BasePlugin:s(52018),DefaultPlugins:s(42363),PluginCache:s(37277),PluginManager:s(77332),ScenePlugin:s(45145)}},63595:()=>{HTMLVideoElement&&!("requestVideoFrameCallback"in HTMLVideoElement.prototype)&&"getVideoPlaybackQuality"in HTMLVideoElement.prototype&&(HTMLVideoElement.prototype._rvfcpolyfillmap={},HTMLVideoElement.prototype.requestVideoFrameCallback=function(o){const m=performance.now(),s=this.getVideoPlaybackQuality(),u=this.mozPresentedFrames||this.mozPaintedFrames||s.totalVideoFrames-s.droppedVideoFrames,T=P((d,c)=>{const A=this.getVideoPlaybackQuality(),h=this.mozPresentedFrames||this.mozPaintedFrames||A.totalVideoFrames-A.droppedVideoFrames;if(h>u){const f=this.mozFrameDelay||A.totalFrameDelay-s.totalFrameDelay||0,S=c-d;o(c,{presentationTime:c+f*1e3,expectedDisplayTime:c+S,width:this.videoWidth,height:this.videoHeight,mediaTime:Math.max(0,this.currentTime||0)+S/1e3,presentedFrames:h,processingDuration:f}),delete this._rvfcpolyfillmap[m]}else this._rvfcpolyfillmap[m]=requestAnimationFrame(f=>T(c,f))},"check");return this._rvfcpolyfillmap[m]=requestAnimationFrame(d=>T(m,d)),m},HTMLVideoElement.prototype.cancelVideoFrameCallback=function(o){cancelAnimationFrame(this._rvfcpolyfillmap[o]),delete this._rvfcpolyfillmap[o]})},10312:o=>{/** + */o.exports={BasePlugin:s(52018),DefaultPlugins:s(42363),PluginCache:s(37277),PluginManager:s(77332),ScenePlugin:s(45145)}},63595:()=>{HTMLVideoElement&&!("requestVideoFrameCallback"in HTMLVideoElement.prototype)&&"getVideoPlaybackQuality"in HTMLVideoElement.prototype&&(HTMLVideoElement.prototype._rvfcpolyfillmap={},HTMLVideoElement.prototype.requestVideoFrameCallback=function(o){const O=performance.now(),s=this.getVideoPlaybackQuality(),u=this.mozPresentedFrames||this.mozPaintedFrames||s.totalVideoFrames-s.droppedVideoFrames,T=v((A,c)=>{const d=this.getVideoPlaybackQuality(),h=this.mozPresentedFrames||this.mozPaintedFrames||d.totalVideoFrames-d.droppedVideoFrames;if(h>u){const f=this.mozFrameDelay||d.totalFrameDelay-s.totalFrameDelay||0,S=c-A;o(c,{presentationTime:c+f*1e3,expectedDisplayTime:c+S,width:this.videoWidth,height:this.videoHeight,mediaTime:Math.max(0,this.currentTime||0)+S/1e3,presentedFrames:h,processingDuration:f}),delete this._rvfcpolyfillmap[O]}else this._rvfcpolyfillmap[O]=requestAnimationFrame(f=>T(c,f))},"check");return this._rvfcpolyfillmap[O]=requestAnimationFrame(A=>T(O,A)),O},HTMLVideoElement.prototype.cancelVideoFrameCallback=function(o){cancelAnimationFrame(this._rvfcpolyfillmap[o]),delete this._rvfcpolyfillmap[o]})},10312:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4612,24 +4612,24 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={DEFAULT:0,LINEAR:0,NEAREST:1};o.exports=m},68627:(o,m,s)=>{/** + */var O={DEFAULT:0,LINEAR:0,NEAREST:1};o.exports=O},68627:(o,O,s)=>{/** * @author Richard Davey * @author Felipe Alfonso <@bitnenfer> * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(19715),T=s(32880),d=s(83419),c=s(8054),A=s(50792),h=s(92503),f=s(56373),S=s(97480),O=s(69442),L=s(61340),p=new d({Extends:A,initialize:P(function(g){A.call(this);var C=g.config;this.config={clearBeforeRender:C.clearBeforeRender,backgroundColor:C.backgroundColor,antialias:C.antialias,roundPixels:C.roundPixels},this.game=g,this.type=c.CANVAS,this.drawCount=0,this.width=0,this.height=0,this.gameCanvas=g.canvas;var v={alpha:g.config.transparent,desynchronized:g.config.desynchronized,willReadFrequently:!1};this.gameContext=C.context?C.context:this.gameCanvas.getContext("2d",v),this.currentContext=this.gameContext,this.antialias=g.config.antialias,this.blendModes=f(),this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92},this._tempMatrix1=new L,this._tempMatrix2=new L,this._tempMatrix3=new L,this.isBooted=!1,this.init()},"CanvasRenderer"),init:function(){this.game.textures.once(O.READY,this.boot,this)},boot:function(){var N=this.game,g=N.scale.baseSize;this.width=g.width,this.height=g.height,this.isBooted=!0,N.scale.on(S.RESIZE,this.onResize,this),this.resize(g.width,g.height)},onResize:function(N,g){(g.width!==this.width||g.height!==this.height)&&this.resize(g.width,g.height)},resize:function(N,g){this.width=N,this.height=g,this.emit(h.RESIZE,N,g)},resetTransform:function(){this.currentContext.setTransform(1,0,0,1,0,0)},setBlendMode:function(N){return this.currentContext.globalCompositeOperation=N,this},setContext:function(N){return this.currentContext=N||this.gameContext,this},setAlpha:function(N){return this.currentContext.globalAlpha=N,this},preRender:function(){var N=this.gameContext,g=this.config,C=this.width,v=this.height;N.globalAlpha=1,N.globalCompositeOperation="source-over",N.setTransform(1,0,0,1,0,0),g.clearBeforeRender&&(N.clearRect(0,0,C,v),g.transparent||(N.fillStyle=g.backgroundColor.rgba,N.fillRect(0,0,C,v))),N.save(),this.drawCount=0,this.emit(h.PRE_RENDER)},render:function(N,g,C){var v=g.length;this.emit(h.RENDER,N,C);var M=C.x,D=C.y,G=C.width,H=C.height,B=C.renderToTexture?C.context:N.sys.context;B.save(),this.game.scene.customViewports&&(B.beginPath(),B.rect(M,D,G,H),B.clip()),C.emit(u.PRE_RENDER,C),this.currentContext=B;var _=C.mask;_&&_.preRenderCanvas(this,null,C._maskCamera),C.transparent||(B.fillStyle=C.backgroundColor.rgba,B.fillRect(M,D,G,H)),B.globalAlpha=C.alpha,B.globalCompositeOperation="source-over",this.drawCount+=v,C.renderToTexture&&C.emit(u.PRE_RENDER,C),C.matrix.copyToContext(B);for(var w=0;w=0?Q=-(Q+b):Q<0&&(Q=Math.abs(Q)-b)),N.flipY&&(te>=0?te=-(te+F):te<0&&(te=Math.abs(te)-F))}var j=1,x=1;N.flipX&&(k||(Q+=-g.realWidth+Z*2),j=-1),N.flipY&&(k||(te+=-g.realHeight+$*2),x=-1);var X=N.x,q=N.y;H.applyITRS(X,q,N.rotation,N.scaleX*j,N.scaleY*x),G.copyFrom(C.matrix),v?(G.multiplyWithOffset(v,-C.scrollX*N.scrollFactorX,-C.scrollY*N.scrollFactorY),H.e=X,H.f=q):(H.e-=C.scrollX*N.scrollFactorX,H.f-=C.scrollY*N.scrollFactorY),G.multiply(H),C.roundPixels&&(G.e=Math.round(G.e),G.f=Math.round(G.f)),D.save(),G.setToContext(D),D.globalCompositeOperation=this.blendModes[N.blendMode],D.globalAlpha=M,D.imageSmoothingEnabled=!g.source.scaleMode,N.mask&&N.mask.preRenderCanvas(this,N,C),b>0&&F>0&&(C.roundPixels?D.drawImage(g.source.image,_,w,b,F,Math.round(Q),Math.round(te),Math.round(b/V),Math.round(F/V)):D.drawImage(g.source.image,_,w,b,F,Q,te,b/V,F/V)),N.mask&&N.mask.postRenderCanvas(this,N,C),D.restore()}},destroy:function(){this.removeAllListeners(),this.game=null,this.gameCanvas=null,this.gameContext=null}});o.exports=p},55830:(o,m,s)=>{/** + */var u=s(19715),T=s(32880),A=s(83419),c=s(8054),d=s(50792),h=s(92503),f=s(56373),S=s(97480),R=s(69442),L=s(61340),p=new A({Extends:d,initialize:v(function(g){d.call(this);var C=g.config;this.config={clearBeforeRender:C.clearBeforeRender,backgroundColor:C.backgroundColor,antialias:C.antialias,roundPixels:C.roundPixels},this.game=g,this.type=c.CANVAS,this.drawCount=0,this.width=0,this.height=0,this.gameCanvas=g.canvas;var P={alpha:g.config.transparent,desynchronized:g.config.desynchronized,willReadFrequently:!1};this.gameContext=C.context?C.context:this.gameCanvas.getContext("2d",P),this.currentContext=this.gameContext,this.antialias=g.config.antialias,this.blendModes=f(),this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92},this._tempMatrix1=new L,this._tempMatrix2=new L,this._tempMatrix3=new L,this.isBooted=!1,this.init()},"CanvasRenderer"),init:function(){this.game.textures.once(R.READY,this.boot,this)},boot:function(){var N=this.game,g=N.scale.baseSize;this.width=g.width,this.height=g.height,this.isBooted=!0,N.scale.on(S.RESIZE,this.onResize,this),this.resize(g.width,g.height)},onResize:function(N,g){(g.width!==this.width||g.height!==this.height)&&this.resize(g.width,g.height)},resize:function(N,g){this.width=N,this.height=g,this.emit(h.RESIZE,N,g)},resetTransform:function(){this.currentContext.setTransform(1,0,0,1,0,0)},setBlendMode:function(N){return this.currentContext.globalCompositeOperation=N,this},setContext:function(N){return this.currentContext=N||this.gameContext,this},setAlpha:function(N){return this.currentContext.globalAlpha=N,this},preRender:function(){var N=this.gameContext,g=this.config,C=this.width,P=this.height;N.globalAlpha=1,N.globalCompositeOperation="source-over",N.setTransform(1,0,0,1,0,0),g.clearBeforeRender&&(N.clearRect(0,0,C,P),g.transparent||(N.fillStyle=g.backgroundColor.rgba,N.fillRect(0,0,C,P))),N.save(),this.drawCount=0,this.emit(h.PRE_RENDER)},render:function(N,g,C){var P=g.length;this.emit(h.RENDER,N,C);var M=C.x,D=C.y,G=C.width,H=C.height,B=C.renderToTexture?C.context:N.sys.context;B.save(),this.game.scene.customViewports&&(B.beginPath(),B.rect(M,D,G,H),B.clip()),C.emit(u.PRE_RENDER,C),this.currentContext=B;var b=C.mask;b&&b.preRenderCanvas(this,null,C._maskCamera),C.transparent||(B.fillStyle=C.backgroundColor.rgba,B.fillRect(M,D,G,H)),B.globalAlpha=C.alpha,B.globalCompositeOperation="source-over",this.drawCount+=P,C.renderToTexture&&C.emit(u.PRE_RENDER,C),C.matrix.copyToContext(B);for(var w=0;w=0?Q=-(Q+_):Q<0&&(Q=Math.abs(Q)-_)),N.flipY&&(te>=0?te=-(te+F):te<0&&(te=Math.abs(te)-F))}var j=1,k=1;N.flipX&&(x||(Q+=-g.realWidth+Z*2),j=-1),N.flipY&&(x||(te+=-g.realHeight+$*2),k=-1);var X=N.x,q=N.y;H.applyITRS(X,q,N.rotation,N.scaleX*j,N.scaleY*k),G.copyFrom(C.matrix),P?(G.multiplyWithOffset(P,-C.scrollX*N.scrollFactorX,-C.scrollY*N.scrollFactorY),H.e=X,H.f=q):(H.e-=C.scrollX*N.scrollFactorX,H.f-=C.scrollY*N.scrollFactorY),G.multiply(H),C.roundPixels&&(G.e=Math.round(G.e),G.f=Math.round(G.f)),D.save(),G.setToContext(D),D.globalCompositeOperation=this.blendModes[N.blendMode],D.globalAlpha=M,D.imageSmoothingEnabled=!g.source.scaleMode,N.mask&&N.mask.preRenderCanvas(this,N,C),_>0&&F>0&&(C.roundPixels?D.drawImage(g.source.image,b,w,_,F,Math.round(Q),Math.round(te),Math.round(_/V),Math.round(F/V)):D.drawImage(g.source.image,b,w,_,F,Q,te,_/V,F/V)),N.mask&&N.mask.postRenderCanvas(this,N,C),D.restore()}},destroy:function(){this.removeAllListeners(),this.game=null,this.gameCanvas=null,this.gameContext=null}});o.exports=p},55830:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={CanvasRenderer:s(68627),GetBlendModes:s(56373),SetTransform:s(20926)}},56373:(o,m,s)=>{/** + */o.exports={CanvasRenderer:s(68627),GetBlendModes:s(56373),SetTransform:s(20926)}},56373:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(10312),T=s(89289),d=P(function(){var c=[],A=T.supportNewBlendModes,h="source-over";return c[u.NORMAL]=h,c[u.ADD]="lighter",c[u.MULTIPLY]=A?"multiply":h,c[u.SCREEN]=A?"screen":h,c[u.OVERLAY]=A?"overlay":h,c[u.DARKEN]=A?"darken":h,c[u.LIGHTEN]=A?"lighten":h,c[u.COLOR_DODGE]=A?"color-dodge":h,c[u.COLOR_BURN]=A?"color-burn":h,c[u.HARD_LIGHT]=A?"hard-light":h,c[u.SOFT_LIGHT]=A?"soft-light":h,c[u.DIFFERENCE]=A?"difference":h,c[u.EXCLUSION]=A?"exclusion":h,c[u.HUE]=A?"hue":h,c[u.SATURATION]=A?"saturation":h,c[u.COLOR]=A?"color":h,c[u.LUMINOSITY]=A?"luminosity":h,c[u.ERASE]="destination-out",c[u.SOURCE_IN]="source-in",c[u.SOURCE_OUT]="source-out",c[u.SOURCE_ATOP]="source-atop",c[u.DESTINATION_OVER]="destination-over",c[u.DESTINATION_IN]="destination-in",c[u.DESTINATION_OUT]="destination-out",c[u.DESTINATION_ATOP]="destination-atop",c[u.LIGHTER]="lighter",c[u.COPY]="copy",c[u.XOR]="xor",c},"GetBlendModes");o.exports=d},20926:(o,m,s)=>{/** + */var u=s(10312),T=s(89289),A=v(function(){var c=[],d=T.supportNewBlendModes,h="source-over";return c[u.NORMAL]=h,c[u.ADD]="lighter",c[u.MULTIPLY]=d?"multiply":h,c[u.SCREEN]=d?"screen":h,c[u.OVERLAY]=d?"overlay":h,c[u.DARKEN]=d?"darken":h,c[u.LIGHTEN]=d?"lighten":h,c[u.COLOR_DODGE]=d?"color-dodge":h,c[u.COLOR_BURN]=d?"color-burn":h,c[u.HARD_LIGHT]=d?"hard-light":h,c[u.SOFT_LIGHT]=d?"soft-light":h,c[u.DIFFERENCE]=d?"difference":h,c[u.EXCLUSION]=d?"exclusion":h,c[u.HUE]=d?"hue":h,c[u.SATURATION]=d?"saturation":h,c[u.COLOR]=d?"color":h,c[u.LUMINOSITY]=d?"luminosity":h,c[u.ERASE]="destination-out",c[u.SOURCE_IN]="source-in",c[u.SOURCE_OUT]="source-out",c[u.SOURCE_ATOP]="source-atop",c[u.DESTINATION_OVER]="destination-over",c[u.DESTINATION_IN]="destination-in",c[u.DESTINATION_OUT]="destination-out",c[u.DESTINATION_ATOP]="destination-atop",c[u.LIGHTER]="lighter",c[u.COPY]="copy",c[u.XOR]="xor",c},"GetBlendModes");o.exports=A},20926:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91296),T=P(function(d,c,A,h,f){var S=h.alpha*A.alpha;if(S<=0)return!1;var O=u(A,h,f).calc;return c.globalCompositeOperation=d.blendModes[A.blendMode],c.globalAlpha=S,c.save(),O.setToContext(c),c.imageSmoothingEnabled=A.frame?!A.frame.source.scaleMode:d.antialias,!0},"SetTransform");o.exports=T},63899:o=>{/** + */var u=s(91296),T=v(function(A,c,d,h,f){var S=h.alpha*d.alpha;if(S<=0)return!1;var R=u(d,h,f).calc;return c.globalCompositeOperation=A.blendModes[d.blendMode],c.globalAlpha=S,c.save(),R.setToContext(c),c.imageSmoothingEnabled=d.frame?!d.frame.source.scaleMode:A.antialias,!0},"SetTransform");o.exports=T},63899:o=>{/** * @author Benjamin D. Richards * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4653,118 +4653,118 @@ return new `+this.key+`(); * @author Benjamin D. Richards * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports="restorewebgl"},92503:(o,m,s)=>{/** + */o.exports="restorewebgl"},92503:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={LOSE_WEBGL:s(63899),POST_RENDER:s(6119),PRE_RENDER:s(48070),RENDER:s(15640),RESIZE:s(8912),RESTORE_WEBGL:s(87124)}},36909:(o,m,s)=>{/** + */o.exports={LOSE_WEBGL:s(63899),POST_RENDER:s(6119),PRE_RENDER:s(48070),RENDER:s(15640),RESIZE:s(8912),RESTORE_WEBGL:s(87124)}},36909:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={Events:s(92503),Snapshot:s(89966)},o.exports.Canvas=s(55830),o.exports.WebGL=s(4159)},32880:(o,m,s)=>{/** + */o.exports={Events:s(92503),Snapshot:s(89966)},o.exports.Canvas=s(55830),o.exports.WebGL=s(4159)},32880:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(27919),T=s(40987),d=s(95540),c=P(function(A,h){var f=d(h,"callback"),S=d(h,"type","image/png"),O=d(h,"encoder",.92),L=Math.abs(Math.round(d(h,"x",0))),p=Math.abs(Math.round(d(h,"y",0))),N=Math.floor(d(h,"width",A.width)),g=Math.floor(d(h,"height",A.height)),C=d(h,"getPixel",!1);if(C){var v=A.getContext("2d",{willReadFrequently:!1}),M=v.getImageData(L,p,1,1),D=M.data;f.call(null,new T(D[0],D[1],D[2],D[3]))}else if(L!==0||p!==0||N!==A.width||g!==A.height){var G=u.createWebGL(this,N,g),H=G.getContext("2d",{willReadFrequently:!0});N>0&&g>0&&H.drawImage(A,L,p,N,g,0,0,N,g);var B=new Image;B.onerror=function(){f.call(null),u.remove(G)},B.onload=function(){f.call(null,B),u.remove(G)},B.src=G.toDataURL(S,O)}else{var _=new Image;_.onerror=function(){f.call(null)},_.onload=function(){f.call(null,_)},_.src=A.toDataURL(S,O)}},"CanvasSnapshot");o.exports=c},88815:(o,m,s)=>{/** + */var u=s(27919),T=s(40987),A=s(95540),c=v(function(d,h){var f=A(h,"callback"),S=A(h,"type","image/png"),R=A(h,"encoder",.92),L=Math.abs(Math.round(A(h,"x",0))),p=Math.abs(Math.round(A(h,"y",0))),N=Math.floor(A(h,"width",d.width)),g=Math.floor(A(h,"height",d.height)),C=A(h,"getPixel",!1);if(C){var P=d.getContext("2d",{willReadFrequently:!1}),M=P.getImageData(L,p,1,1),D=M.data;f.call(null,new T(D[0],D[1],D[2],D[3]))}else if(L!==0||p!==0||N!==d.width||g!==d.height){var G=u.createWebGL(this,N,g),H=G.getContext("2d",{willReadFrequently:!0});N>0&&g>0&&H.drawImage(d,L,p,N,g,0,0,N,g);var B=new Image;B.onerror=function(){f.call(null),u.remove(G)},B.onload=function(){f.call(null,B),u.remove(G)},B.src=G.toDataURL(S,R)}else{var b=new Image;b.onerror=function(){f.call(null)},b.onload=function(){f.call(null,b)},b.src=d.toDataURL(S,R)}},"CanvasSnapshot");o.exports=c},88815:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(27919),T=s(40987),d=s(95540),c=P(function(A,h){var f=A,S=d(h,"callback"),O=d(h,"type","image/png"),L=d(h,"encoder",.92),p=Math.abs(Math.round(d(h,"x",0))),N=Math.abs(Math.round(d(h,"y",0))),g=d(h,"getPixel",!1),C=d(h,"isFramebuffer",!1),v=C?d(h,"bufferWidth",1):f.drawingBufferWidth,M=C?d(h,"bufferHeight",1):f.drawingBufferHeight;if(g){var D=new Uint8Array(4),G=C?N:M-N;f.readPixels(p,G,1,1,f.RGBA,f.UNSIGNED_BYTE,D),S.call(null,new T(D[0],D[1],D[2],D[3]))}else{var H=Math.floor(d(h,"width",v)),B=Math.floor(d(h,"height",M)),_=H*B*4,w=new Uint8Array(_);f.readPixels(p,M-N-B,H,B,f.RGBA,f.UNSIGNED_BYTE,w);for(var b=u.createWebGL(this,H,B),F=b.getContext("2d",{willReadFrequently:!0}),k=F.getImageData(0,0,H,B),V=k.data,Z=0;Z{/** + */var u=s(27919),T=s(40987),A=s(95540),c=v(function(d,h){var f=d,S=A(h,"callback"),R=A(h,"type","image/png"),L=A(h,"encoder",.92),p=Math.abs(Math.round(A(h,"x",0))),N=Math.abs(Math.round(A(h,"y",0))),g=A(h,"getPixel",!1),C=A(h,"isFramebuffer",!1),P=C?A(h,"bufferWidth",1):f.drawingBufferWidth,M=C?A(h,"bufferHeight",1):f.drawingBufferHeight;if(g){var D=new Uint8Array(4),G=C?N:M-N;f.readPixels(p,G,1,1,f.RGBA,f.UNSIGNED_BYTE,D),S.call(null,new T(D[0],D[1],D[2],D[3]))}else{var H=Math.floor(A(h,"width",P)),B=Math.floor(A(h,"height",M)),b=H*B*4,w=new Uint8Array(b);f.readPixels(p,M-N-B,H,B,f.RGBA,f.UNSIGNED_BYTE,w);for(var _=u.createWebGL(this,H,B),F=_.getContext("2d",{willReadFrequently:!0}),x=F.getImageData(0,0,H,B),V=x.data,Z=0;Z{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={Canvas:s(32880),WebGL:s(88815)}},7530:(o,m,s)=>{/** + */o.exports={Canvas:s(32880),WebGL:s(88815)}},7530:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(36060),d=s(90330),c=s(82264),A=s(95540),h=s(32302),f=s(63448),S=s(31302),O=s(58918),L=s(14811),p=s(92651),N=s(96569),g=s(56527),C=s(57516),v=s(43439),M=s(81041),D=s(12385),G=s(7589),H=s(95428),B=s(72905),_=new u({initialize:P(function(b){this.game=b.game,this.renderer=b,this.classes=new d([[T.UTILITY_PIPELINE,G],[T.MULTI_PIPELINE,C],[T.BITMAPMASK_PIPELINE,S],[T.SINGLE_PIPELINE,D],[T.ROPE_PIPELINE,M],[T.LIGHT_PIPELINE,N],[T.POINTLIGHT_PIPELINE,v],[T.MOBILE_PIPELINE,g]]),this.postPipelineClasses=new d,this.pipelines=new d,this.postPipelineInstances=[],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},"PipelineManager"),boot:function(w,b,F){var k=this.renderer,V=this.renderTargets;this.frameInc=Math.floor(A(w,"frameInc",32));var Z=k.width,$=k.height,Q=this.game.config.disablePreFX,te=this.game.config.disablePostFX;if(te||this.postPipelineClasses.setAll([[String(L.BARREL),O.Barrel],[String(L.BLOOM),O.Bloom],[String(L.BLUR),O.Blur],[String(L.BOKEH),O.Bokeh],[String(L.CIRCLE),O.Circle],[String(L.COLOR_MATRIX),O.ColorMatrix],[String(L.DISPLACEMENT),O.Displacement],[String(L.GLOW),O.Glow],[String(L.GRADIENT),O.Gradient],[String(L.PIXELATE),O.Pixelate],[String(L.SHADOW),O.Shadow],[String(L.SHINE),O.Shine],[String(L.VIGNETTE),O.Vignette],[String(L.WIPE),O.Wipe]]),!Q){this.classes.set(T.FX_PIPELINE,p);for(var z=Math.min(Z,$),j=Math.ceil(z/this.frameInc),x=1;x=0;F--){var k=b[F];k.active&&k.preBatch(w)}}},postBatch:function(w){if(w.hasPostPipeline){this.flush();for(var b=w.postPipelines,F=0;F=0;F--){var k=b[F];k.active&&k.preBatch(w)}}},postBatchCamera:function(w){if(w.hasPostPipeline){this.flush();for(var b=w.postPipelines,F=0;Fthis.maxDimension)return this.targetIndex=b.length-F,b[this.targetIndex];var k=(f(w,this.frameInc,0,!0)-1)*F;return this.targetIndex=k,b[k]},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}});o.exports=_},32302:(o,m,s)=>{/** + */var u=s(83419),T=s(36060),A=s(90330),c=s(82264),d=s(95540),h=s(32302),f=s(63448),S=s(31302),R=s(58918),L=s(14811),p=s(92651),N=s(96569),g=s(56527),C=s(57516),P=s(43439),M=s(81041),D=s(12385),G=s(7589),H=s(95428),B=s(72905),b=new u({initialize:v(function(_){this.game=_.game,this.renderer=_,this.classes=new A([[T.UTILITY_PIPELINE,G],[T.MULTI_PIPELINE,C],[T.BITMAPMASK_PIPELINE,S],[T.SINGLE_PIPELINE,D],[T.ROPE_PIPELINE,M],[T.LIGHT_PIPELINE,N],[T.POINTLIGHT_PIPELINE,P],[T.MOBILE_PIPELINE,g]]),this.postPipelineClasses=new A,this.pipelines=new A,this.postPipelineInstances=[],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},"PipelineManager"),boot:function(w,_,F){var x=this.renderer,V=this.renderTargets;this.frameInc=Math.floor(d(w,"frameInc",32));var Z=x.width,$=x.height,Q=this.game.config.disablePreFX,te=this.game.config.disablePostFX;if(te||this.postPipelineClasses.setAll([[String(L.BARREL),R.Barrel],[String(L.BLOOM),R.Bloom],[String(L.BLUR),R.Blur],[String(L.BOKEH),R.Bokeh],[String(L.CIRCLE),R.Circle],[String(L.COLOR_MATRIX),R.ColorMatrix],[String(L.DISPLACEMENT),R.Displacement],[String(L.GLOW),R.Glow],[String(L.GRADIENT),R.Gradient],[String(L.PIXELATE),R.Pixelate],[String(L.SHADOW),R.Shadow],[String(L.SHINE),R.Shine],[String(L.VIGNETTE),R.Vignette],[String(L.WIPE),R.Wipe]]),!Q){this.classes.set(T.FX_PIPELINE,p);for(var z=Math.min(Z,$),j=Math.ceil(z/this.frameInc),k=1;k=0;F--){var x=_[F];x.active&&x.preBatch(w)}}},postBatch:function(w){if(w.hasPostPipeline){this.flush();for(var _=w.postPipelines,F=0;F<_.length;F++){var x=_[F];x.active&&x.postBatch(w)}}},preBatchCamera:function(w){if(w.hasPostPipeline){this.flush();for(var _=w.postPipelines,F=_.length-1;F>=0;F--){var x=_[F];x.active&&x.preBatch(w)}}},postBatchCamera:function(w){if(w.hasPostPipeline){this.flush();for(var _=w.postPipelines,F=0;F<_.length;F++){var x=_[F];x.active&&x.postBatch(w)}}},isCurrent:function(w,_){var F=this.renderer,x=this.current;return x&&!_&&(_=x.currentShader),!(x!==w||_.program!==F.currentProgram)},copyFrame:function(w,_,F,x,V){return this.setUtility(this.UTILITY_PIPELINE.copyShader).copyFrame(w,_,F,x,V),this},copyToGame:function(w){return this.setUtility(this.UTILITY_PIPELINE.copyShader).copyToGame(w),this},drawFrame:function(w,_,F,x){return this.setUtility(this.UTILITY_PIPELINE.colorMatrixShader).drawFrame(w,_,F,x),this},blendFrames:function(w,_,F,x,V){return this.setUtility(this.UTILITY_PIPELINE.linearShader).blendFrames(w,_,F,x,V),this},blendFramesAdditive:function(w,_,F,x,V){return this.setUtility(this.UTILITY_PIPELINE.addShader).blendFramesAdditive(w,_,F,x,V),this},clearFrame:function(w,_){return this.UTILITY_PIPELINE.clearFrame(w,_),this},blitFrame:function(w,_,F,x,V,Z){return this.setUtility(this.UTILITY_PIPELINE.copyShader).blitFrame(w,_,F,x,V,Z),this},copyFrameRect:function(w,_,F,x,V,Z,$,Q){return this.UTILITY_PIPELINE.copyFrameRect(w,_,F,x,V,Z,$,Q),this},forceZero:function(){return this.current&&this.current.forceZero},setMulti:function(){return this.set(this.MULTI_PIPELINE)},setUtility:function(w){return this.UTILITY_PIPELINE.bind(w)},setFX:function(){return this.set(this.FX_PIPELINE)},restoreContext:function(){this.rebind(),this.pipelines.each(function(w,_){_.restoreContext()}),H(this.postPipelineInstances,function(w){w.restoreContext()})},rebind:function(w){w===void 0&&this.previous&&(w=this.previous);var _=this.renderer,F=_.gl;F.disable(F.DEPTH_TEST),F.disable(F.CULL_FACE),_.hasActiveStencilMask()?F.clear(F.DEPTH_BUFFER_BIT):(F.disable(F.STENCIL_TEST),F.clear(F.DEPTH_BUFFER_BIT|F.STENCIL_BUFFER_BIT)),F.viewport(0,0,_.width,_.height),_.currentProgram=null,_.setBlendMode(0,!0);var x=_.vaoExtension;x&&x.bindVertexArrayOES(null);var V=this.pipelines.entries;for(var Z in V)V[Z].glReset=!0;w&&(this.current=w,w.rebind())},clear:function(){var w=this.renderer;this.flush(),this.current?(this.current.unbind(),this.previous=this.current,this.current=null):this.previous=null,w.currentProgram=null,w.setBlendMode(0,!0);var _=w.vaoExtension;_&&_.bindVertexArrayOES(null)},getRenderTarget:function(w){var _=this.renderTargets,F=3;if(w>this.maxDimension)return this.targetIndex=_.length-F,_[this.targetIndex];var x=(f(w,this.frameInc,0,!0)-1)*F;return this.targetIndex=x,_[x]},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}});o.exports=b},32302:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(92503),d=new u({initialize:P(function(A,h,f,S,O,L,p,N,g){S===void 0&&(S=1),O===void 0&&(O=0),L===void 0&&(L=!0),p===void 0&&(p=!1),N===void 0&&(N=!0),g===void 0&&(g=!0),this.renderer=A,this.framebuffer=null,this.texture=null,this.width=0,this.height=0,this.scale=S,this.minFilter=O,this.autoClear=L,this.autoResize=!0,this.hasDepthBuffer=N,this.forceClamp=g,this.resize(h,f),p?this.setAutoResize(!0):this.autoResize=!1},"RenderTarget"),setAutoResize:function(c){return c&&!this.autoResize?(this.renderer.on(T.RESIZE,this.resize,this),this.autoResize=!0):!c&&this.autoResize&&(this.renderer.off(T.RESIZE,this.resize,this),this.autoResize=!1),this},resize:function(c,A){if(c=Math.round(c*this.scale),A=Math.round(A*this.scale),c<=0&&(c=1),A<=0&&(A=1),this.autoResize&&(c!==this.width||A!==this.height)){var h=this.renderer;h.deleteFramebuffer(this.framebuffer),h.deleteTexture(this.texture),this.texture=h.createTextureFromSource(null,c,A,this.minFilter,this.forceClamp),this.framebuffer=h.createFramebuffer(c,A,this.texture,this.hasDepthBuffer),this.width=c,this.height=A}return this},willResize:function(c,A){return c=Math.round(c*this.scale),A=Math.round(A*this.scale),c<=0&&(c=1),A<=0&&(A=1),c!==this.width||A!==this.height},bind:function(c,A,h){c===void 0&&(c=!1);var f=this.renderer;if(c&&f.flush(),A&&h&&this.resize(A,h),f.pushFramebuffer(this.framebuffer,!1,!1),c&&this.adjustViewport(),this.autoClear){var S=this.renderer.gl;S.clearColor(0,0,0,0),S.clear(S.COLOR_BUFFER_BIT)}f.clearStencilMask()},adjustViewport:function(){var c=this.renderer.gl;c.viewport(0,0,this.width,this.height),c.disable(c.SCISSOR_TEST)},clear:function(){var c=this.renderer,A=c.gl;c.pushFramebuffer(this.framebuffer),A.disable(A.SCISSOR_TEST),A.clearColor(0,0,0,0),A.clear(A.COLOR_BUFFER_BIT),c.popFramebuffer(),c.resetScissor()},unbind:function(c){c===void 0&&(c=!1);var A=this.renderer;return c&&A.flush(),A.popFramebuffer()},destroy:function(){var c=this.renderer;c.off(T.RESIZE,this.resize,this),c.deleteFramebuffer(this.framebuffer),c.deleteTexture(this.texture),this.renderer=null,this.framebuffer=null,this.texture=null}});o.exports=d},70554:o=>{/** + */var u=s(83419),T=s(92503),A=new u({initialize:v(function(d,h,f,S,R,L,p,N,g){S===void 0&&(S=1),R===void 0&&(R=0),L===void 0&&(L=!0),p===void 0&&(p=!1),N===void 0&&(N=!0),g===void 0&&(g=!0),this.renderer=d,this.framebuffer=null,this.texture=null,this.width=0,this.height=0,this.scale=S,this.minFilter=R,this.autoClear=L,this.autoResize=!0,this.hasDepthBuffer=N,this.forceClamp=g,this.resize(h,f),p?this.setAutoResize(!0):this.autoResize=!1},"RenderTarget"),setAutoResize:function(c){return c&&!this.autoResize?(this.renderer.on(T.RESIZE,this.resize,this),this.autoResize=!0):!c&&this.autoResize&&(this.renderer.off(T.RESIZE,this.resize,this),this.autoResize=!1),this},resize:function(c,d){if(c=Math.round(c*this.scale),d=Math.round(d*this.scale),c<=0&&(c=1),d<=0&&(d=1),this.autoResize&&(c!==this.width||d!==this.height)){var h=this.renderer;h.deleteFramebuffer(this.framebuffer),h.deleteTexture(this.texture),this.texture=h.createTextureFromSource(null,c,d,this.minFilter,this.forceClamp),this.framebuffer=h.createFramebuffer(c,d,this.texture,this.hasDepthBuffer),this.width=c,this.height=d}return this},willResize:function(c,d){return c=Math.round(c*this.scale),d=Math.round(d*this.scale),c<=0&&(c=1),d<=0&&(d=1),c!==this.width||d!==this.height},bind:function(c,d,h){c===void 0&&(c=!1);var f=this.renderer;if(c&&f.flush(),d&&h&&this.resize(d,h),f.pushFramebuffer(this.framebuffer,!1,!1),c&&this.adjustViewport(),this.autoClear){var S=this.renderer.gl;S.clearColor(0,0,0,0),S.clear(S.COLOR_BUFFER_BIT)}f.clearStencilMask()},adjustViewport:function(){var c=this.renderer.gl;c.viewport(0,0,this.width,this.height),c.disable(c.SCISSOR_TEST)},clear:function(){var c=this.renderer,d=c.gl;c.pushFramebuffer(this.framebuffer),d.disable(d.SCISSOR_TEST),d.clearColor(0,0,0,0),d.clear(d.COLOR_BUFFER_BIT),c.popFramebuffer(),c.resetScissor()},unbind:function(c){c===void 0&&(c=!1);var d=this.renderer;return c&&d.flush(),d.popFramebuffer()},destroy:function(){var c=this.renderer;c.off(T.RESIZE,this.resize,this),c.deleteFramebuffer(this.framebuffer),c.deleteTexture(this.texture),this.renderer=null,this.framebuffer=null,this.texture=null}});o.exports=A},70554:o=>{/** * @author Richard Davey * @author Felipe Alfonso <@bitnenfer> * @author Matthew Groves <@doormat> * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={getTintFromFloats:function(m,s,u,T){var d=(m*255|0)&255,c=(s*255|0)&255,A=(u*255|0)&255,h=(T*255|0)&255;return(h<<24|d<<16|c<<8|A)>>>0},getTintAppendFloatAlpha:function(m,s){var u=(s*255|0)&255;return(u<<24|m)>>>0},getTintAppendFloatAlphaAndSwap:function(m,s){var u=(m>>16|0)&255,T=(m>>8|0)&255,d=(m|0)&255,c=(s*255|0)&255;return(c<<24|d<<16|T<<8|u)>>>0},getFloatsFromUintRGB:function(m){var s=(m>>16|0)&255,u=(m>>8|0)&255,T=(m|0)&255;return[s/255,u/255,T/255]},checkShaderMax:function(m,s){var u=Math.min(16,m.getParameter(m.MAX_TEXTURE_IMAGE_UNITS));return!s||s===-1?u:Math.min(u,s)},parseFragmentShaderMaxTextures:function(m,s){if(!m)return"";for(var u="",T=0;T0&&(u+=` + */o.exports={getTintFromFloats:function(O,s,u,T){var A=(O*255|0)&255,c=(s*255|0)&255,d=(u*255|0)&255,h=(T*255|0)&255;return(h<<24|A<<16|c<<8|d)>>>0},getTintAppendFloatAlpha:function(O,s){var u=(s*255|0)&255;return(u<<24|O)>>>0},getTintAppendFloatAlphaAndSwap:function(O,s){var u=(O>>16|0)&255,T=(O>>8|0)&255,A=(O|0)&255,c=(s*255|0)&255;return(c<<24|A<<16|T<<8|u)>>>0},getFloatsFromUintRGB:function(O){var s=(O>>16|0)&255,u=(O>>8|0)&255,T=(O|0)&255;return[s/255,u/255,T/255]},checkShaderMax:function(O,s){var u=Math.min(16,O.getParameter(O.MAX_TEXTURE_IMAGE_UNITS));return!s||s===-1?u:Math.min(u,s)},parseFragmentShaderMaxTextures:function(O,s){if(!O)return"";for(var u="",T=0;T0&&(u+=` else `),T{/** + }`;return O=O.replace(/%count%/gi,s.toString()),O.replace(/%forloop%/gi,u)},setGlowQuality:function(O,s,u,T){return u===void 0&&(u=s.config.glowFXQuality),T===void 0&&(T=s.config.glowFXDistance),O=O.replace(/__SIZE__/gi,(1/u/T).toFixed(7)),O=O.replace(/__DIST__/gi,T.toFixed(0)+".0"),O}}},29100:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(62644),d=s(50792),c=s(77085),A=s(95540),h=s(37867),f=s(92503),S=s(32302),O=s(70554),L=s(38683),p=new u({Extends:d,initialize:P(function(g){d.call(this);var C=g.game,v=C.renderer,M=v.gl;this.name=A(g,"name","WebGLPipeline"),this.game=C,this.renderer=v,this.manager,this.gl=M,this.view=C.canvas,this.width=0,this.height=0,this.vertexCount=0,this.vertexCapacity=0,this.vertexData,this.vertexBuffer,this.activeBuffer,this.topology=A(g,"topology",M.TRIANGLES),this.bytes,this.vertexViewF32,this.vertexViewU32,this.active=!0,this.forceZero=A(g,"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=g,this.glReset=!1,this.batch=[],this.currentBatch=null,this.currentTexture=null,this.currentUnit=0,this.activeTextures=[],this.resizeUniform=A(g,"resizeUniform","")},"WebGLPipeline"),boot:function(){var N,g=this.gl,C=this.config,v=this.renderer;this.isPostFX||(this.projectionMatrix=new h().identity());var M=this.renderTargets,D=A(C,"renderTarget",!1);typeof D=="boolean"&&D&&(D=1);var G=v.width,H=v.height;if(typeof D=="number")for(N=0;NZ&&(Z=V[N].vertexSize);var $=A(C,"batchSize",v.config.batchSize);this.vertexCapacity=$*6;var Q=new ArrayBuffer(this.vertexCapacity*Z);this.vertexData=Q,this.bytes=new Uint8Array(Q),this.vertexViewF32=new Float32Array(Q),this.vertexViewU32=new Uint32Array(Q);var te=A(C,"vertices",null);for(te?(this.vertexViewF32.set(te),this.vertexBuffer=v.createVertexBuffer(Q,g.STATIC_DRAW)):this.vertexBuffer=v.createVertexBuffer(Q.byteLength,g.DYNAMIC_DRAW),this.setVertexBuffer(),N=V.length-1;N>=0;N--)V[N].rebind();this.hasBooted=!0,v.on(f.RESIZE,this.resize,this),v.on(f.PRE_RENDER,this.onPreRender,this),v.on(f.RENDER,this.onRender,this),v.on(f.POST_RENDER,this.onPostRender,this),this.emit(c.BOOT,this),this.onBoot()},onBoot:function(){},onResize:function(){},setShader:function(N,g,C){var v=this.renderer;if(N!==this.currentShader||v.currentProgram!==this.currentShader.program){this.flush();var M=this.setVertexBuffer(C);M&&!g&&(g=!0),N.bind(g,!1),this.currentShader=N}return this},getShaderByName:function(N){for(var g=this.shaders,C=0;C-1&&(V=z.substring(20))}Z&&$&&F.push(new L(this,V,Z,$,T(Q)))}this.shaders=F}return this.shaders.length===0?console.warn("Pipeline: "+this.name+" - Invalid shader config"):this.currentShader=this.shaders[0],this},createBatch:function(N){return this.currentBatch={start:this.vertexCount,count:0,texture:[N],unit:0,maxUnit:0},this.currentUnit=0,this.currentTexture=N,this.batch.push(this.currentBatch),0},addTextureToBatch:function(N){var g=this.currentBatch;g&&(g.texture.push(N),g.unit++,g.maxUnit++)},pushBatch:function(N){if(!this.currentBatch||this.forceZero&&N!==this.currentTexture)return this.createBatch(N);if(N===this.currentTexture)return this.currentUnit;var g=this.currentBatch,C=g.texture.indexOf(N);return C===-1?g.texture.length===this.renderer.maxTextures?this.createBatch(N):(g.unit++,g.maxUnit++,g.texture.push(N),this.currentUnit=g.unit,this.currentTexture=N,g.unit):(this.currentUnit=C,this.currentTexture=N,C)},setGameObject:function(N,g){return g===void 0&&(g=N.frame),this.pushBatch(g.source.glTexture)},shouldFlush:function(N){return N===void 0&&(N=0),this.vertexCount+N>this.vertexCapacity},vertexAvailable:function(){return this.vertexCapacity-this.vertexCount},resize:function(N,g){(N!==this.width||g!==this.height)&&this.flush(),this.width=N,this.height=g;for(var C=this.renderTargets,v=0;v=0;C--){var v=g[C].rebind();(!N||v===N)&&(this.currentShader=v)}return this.activeTextures.length=0,this.emit(c.REBIND,this.currentShader),this.onActive(this.currentShader),this.onRebind(),this.glReset=!1,this},restoreContext:function(){var N=this.shaders,g=!!this.vertexBuffer;this.activeBuffer=null,this.activeTextures.length=0,this.batch.length=0,this.currentBatch=null,this.currentTexture=null,this.currentUnit=0,g&&this.setVertexBuffer();for(var C=0;C0){this.emit(c.BEFORE_FLUSH,this,N),this.onBeforeFlush(N);var g=this.gl,C=this.vertexCount,v=this.currentShader.vertexSize,M=this.topology;if(this.active){this.setVertexBuffer(),C===this.vertexCapacity?g.bufferData(g.ARRAY_BUFFER,this.vertexData,g.DYNAMIC_DRAW):g.bufferSubData(g.ARRAY_BUFFER,0,this.bytes.subarray(0,C*v));var D,G,H,B=this.batch,_=this.activeTextures;if(this.forceZero)for(_[0]||g.activeTexture(g.TEXTURE0),D=0;D{/** + */var u=s(83419),T=s(62644),A=s(50792),c=s(77085),d=s(95540),h=s(37867),f=s(92503),S=s(32302),R=s(70554),L=s(38683),p=new u({Extends:A,initialize:v(function(g){A.call(this);var C=g.game,P=C.renderer,M=P.gl;this.name=d(g,"name","WebGLPipeline"),this.game=C,this.renderer=P,this.manager,this.gl=M,this.view=C.canvas,this.width=0,this.height=0,this.vertexCount=0,this.vertexCapacity=0,this.vertexData,this.vertexBuffer,this.activeBuffer,this.topology=d(g,"topology",M.TRIANGLES),this.bytes,this.vertexViewF32,this.vertexViewU32,this.active=!0,this.forceZero=d(g,"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=g,this.glReset=!1,this.batch=[],this.currentBatch=null,this.currentTexture=null,this.currentUnit=0,this.activeTextures=[],this.resizeUniform=d(g,"resizeUniform","")},"WebGLPipeline"),boot:function(){var N,g=this.gl,C=this.config,P=this.renderer;this.isPostFX||(this.projectionMatrix=new h().identity());var M=this.renderTargets,D=d(C,"renderTarget",!1);typeof D=="boolean"&&D&&(D=1);var G=P.width,H=P.height;if(typeof D=="number")for(N=0;NZ&&(Z=V[N].vertexSize);var $=d(C,"batchSize",P.config.batchSize);this.vertexCapacity=$*6;var Q=new ArrayBuffer(this.vertexCapacity*Z);this.vertexData=Q,this.bytes=new Uint8Array(Q),this.vertexViewF32=new Float32Array(Q),this.vertexViewU32=new Uint32Array(Q);var te=d(C,"vertices",null);for(te?(this.vertexViewF32.set(te),this.vertexBuffer=P.createVertexBuffer(Q,g.STATIC_DRAW)):this.vertexBuffer=P.createVertexBuffer(Q.byteLength,g.DYNAMIC_DRAW),this.setVertexBuffer(),N=V.length-1;N>=0;N--)V[N].rebind();this.hasBooted=!0,P.on(f.RESIZE,this.resize,this),P.on(f.PRE_RENDER,this.onPreRender,this),P.on(f.RENDER,this.onRender,this),P.on(f.POST_RENDER,this.onPostRender,this),this.emit(c.BOOT,this),this.onBoot()},onBoot:function(){},onResize:function(){},setShader:function(N,g,C){var P=this.renderer;if(N!==this.currentShader||P.currentProgram!==this.currentShader.program){this.flush();var M=this.setVertexBuffer(C);M&&!g&&(g=!0),N.bind(g,!1),this.currentShader=N}return this},getShaderByName:function(N){for(var g=this.shaders,C=0;C-1&&(V=z.substring(20))}Z&&$&&F.push(new L(this,V,Z,$,T(Q)))}this.shaders=F}return this.shaders.length===0?console.warn("Pipeline: "+this.name+" - Invalid shader config"):this.currentShader=this.shaders[0],this},createBatch:function(N){return this.currentBatch={start:this.vertexCount,count:0,texture:[N],unit:0,maxUnit:0},this.currentUnit=0,this.currentTexture=N,this.batch.push(this.currentBatch),0},addTextureToBatch:function(N){var g=this.currentBatch;g&&(g.texture.push(N),g.unit++,g.maxUnit++)},pushBatch:function(N){if(!this.currentBatch||this.forceZero&&N!==this.currentTexture)return this.createBatch(N);if(N===this.currentTexture)return this.currentUnit;var g=this.currentBatch,C=g.texture.indexOf(N);return C===-1?g.texture.length===this.renderer.maxTextures?this.createBatch(N):(g.unit++,g.maxUnit++,g.texture.push(N),this.currentUnit=g.unit,this.currentTexture=N,g.unit):(this.currentUnit=C,this.currentTexture=N,C)},setGameObject:function(N,g){return g===void 0&&(g=N.frame),this.pushBatch(g.source.glTexture)},shouldFlush:function(N){return N===void 0&&(N=0),this.vertexCount+N>this.vertexCapacity},vertexAvailable:function(){return this.vertexCapacity-this.vertexCount},resize:function(N,g){(N!==this.width||g!==this.height)&&this.flush(),this.width=N,this.height=g;for(var C=this.renderTargets,P=0;P=0;C--){var P=g[C].rebind();(!N||P===N)&&(this.currentShader=P)}return this.activeTextures.length=0,this.emit(c.REBIND,this.currentShader),this.onActive(this.currentShader),this.onRebind(),this.glReset=!1,this},restoreContext:function(){var N=this.shaders,g=!!this.vertexBuffer;this.activeBuffer=null,this.activeTextures.length=0,this.batch.length=0,this.currentBatch=null,this.currentTexture=null,this.currentUnit=0,g&&this.setVertexBuffer();for(var C=0;C0){this.emit(c.BEFORE_FLUSH,this,N),this.onBeforeFlush(N);var g=this.gl,C=this.vertexCount,P=this.currentShader.vertexSize,M=this.topology;if(this.active){this.setVertexBuffer(),C===this.vertexCapacity?g.bufferData(g.ARRAY_BUFFER,this.vertexData,g.DYNAMIC_DRAW):g.bufferSubData(g.ARRAY_BUFFER,0,this.bytes.subarray(0,C*P));var D,G,H,B=this.batch,b=this.activeTextures;if(this.forceZero)for(b[0]||g.activeTexture(g.TEXTURE0),D=0;D{/** * @author Richard Davey * @author Felipe Alfonso <@bitnenfer> * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(95428),T=s(72905),d=s(19715),c=s(83419),A=s(8054),h=s(50792),f=s(92503),S=s(50030),O=s(37867),L=s(29747),p=s(7530),N=s(32302),g=s(97480),C=s(69442),v=s(70554),M=s(88815),D=s(26128),G=s(1482),H=s(82751),B=s(84387),_=s(93567),w=s(57183),b=new c({Extends:h,initialize:P(function(k){h.call(this);var V=k.config,Z={alpha:V.transparent,desynchronized:V.desynchronized,depth:!0,antialias:V.antialiasGL,premultipliedAlpha:V.premultipliedAlpha,stencil:!0,failIfMajorPerformanceCaveat:V.failIfMajorPerformanceCaveat,powerPreference:V.powerPreference,preserveDrawingBuffer:V.preserveDrawingBuffer,willReadFrequently:!1};this.config={clearBeforeRender:V.clearBeforeRender,antialias:V.antialias,backgroundColor:V.backgroundColor,contextCreation:Z,roundPixels:V.roundPixels,maxTextures:V.maxTextures,maxTextureSize:V.maxTextureSize,batchSize:V.batchSize,maxLights:V.maxLights,mipmapFilter:V.mipmapFilter},this.game=k,this.type=A.WEBGL,this.pipelines=null,this.width=0,this.height=0,this.canvas=k.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.glBufferWrappers=[],this.glProgramWrappers=[],this.glTextureWrappers=[],this.glFramebufferWrappers=[],this.glAttribLocationWrappers=[],this.glUniformLocationWrappers=[],this.currentFramebuffer=null,this.fboStack=[],this.currentProgram=null,this.currentBlendMode=1/0,this.currentScissorEnabled=!1,this.currentScissor=null,this.scissorStack=[],this.contextLostHandler=L,this.contextRestoredHandler=L,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.normalTexture=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)},"WebGLRenderer"),init:function(F){var k,V=this.game,Z=this.canvas,$=F.backgroundColor;if(V.config.context?k=V.config.context:k=Z.getContext("webgl",F.contextCreation)||Z.getContext("experimental-webgl",F.contextCreation),!k||k.isContextLost())throw this.contextLost=!0,new Error("WebGL unsupported");this.gl=k;var Q=this,te=P(function(){var x=k.getSupportedExtensions();Q.supportedExtensions=x;var X="ANGLE_instanced_arrays";Q.instancedArraysExtension=x.indexOf(X)>-1?k.getExtension(X):null;var q="OES_vertex_array_object";Q.vaoExtension=x.indexOf(q)>-1?k.getExtension(q):null},"setupExtensions");te(),this.contextLostHandler=function(x){Q.contextLost=!0,console&&console.warn("WebGL Context lost. Renderer disabled"),Q.emit(f.LOSE_WEBGL,Q),x.preventDefault()},Z.addEventListener("webglcontextlost",this.contextLostHandler,!1),this.contextRestoredHandler=function(x){if(k.isContextLost()){console&&console.log("WebGL Context restored, but context is still lost");return}Q.currentProgram=null,Q.currentFramebuffer=null,Q.setBlendMode(A.BlendModes.NORMAL),k.disable(k.BLEND),k.disable(k.DEPTH_TEST),k.enable(k.CULL_FACE),Q.compression=Q.getCompressedTextures();var X=P(function(q){q.createResource()},"wrapperCreateResource");u(Q.glTextureWrappers,X),u(Q.glBufferWrappers,X),u(Q.glFramebufferWrappers,X),u(Q.glProgramWrappers,X),u(Q.glAttribLocationWrappers,X),u(Q.glUniformLocationWrappers,X),Q.createTemporaryTextures(),Q.pipelines.restoreContext(),Q.resize(Q.game.scale.baseSize.width,Q.game.scale.baseSize.height),te(),Q.contextLost=!1,console&&console.warn("WebGL Context restored. Renderer running again."),Q.emit(f.RESTORE_WEBGL,Q),x.preventDefault()},Z.addEventListener("webglcontextrestored",this.contextRestoredHandler,!1),V.context=k;for(var z=0;z<=27;z++)this.blendModes.push({func:[k.ONE,k.ONE_MINUS_SRC_ALPHA],equation:k.FUNC_ADD});this.blendModes[1].func=[k.ONE,k.DST_ALPHA],this.blendModes[2].func=[k.DST_COLOR,k.ONE_MINUS_SRC_ALPHA],this.blendModes[3].func=[k.ONE,k.ONE_MINUS_SRC_COLOR],this.blendModes[17]={func:[k.ZERO,k.ONE_MINUS_SRC_ALPHA],equation:k.FUNC_REVERSE_SUBTRACT},this.glFormats=[k.BYTE,k.SHORT,k.UNSIGNED_BYTE,k.UNSIGNED_SHORT,k.FLOAT],this.glFuncMap={mat2:{func:k.uniformMatrix2fv,length:1,matrix:!0},mat3:{func:k.uniformMatrix3fv,length:1,matrix:!0},mat4:{func:k.uniformMatrix4fv,length:1,matrix:!0},"1f":{func:k.uniform1f,length:1},"1fv":{func:k.uniform1fv,length:1},"1i":{func:k.uniform1i,length:1},"1iv":{func:k.uniform1iv,length:1},"2f":{func:k.uniform2f,length:2},"2fv":{func:k.uniform2fv,length:1},"2i":{func:k.uniform2i,length:2},"2iv":{func:k.uniform2iv,length:1},"3f":{func:k.uniform3f,length:3},"3fv":{func:k.uniform3fv,length:1},"3i":{func:k.uniform3i,length:3},"3iv":{func:k.uniform3iv,length:1},"4f":{func:k.uniform4f,length:4},"4fv":{func:k.uniform4fv,length:1},"4i":{func:k.uniform4i,length:4},"4iv":{func:k.uniform4iv,length:1}},(!F.maxTextures||F.maxTextures===-1)&&(F.maxTextures=k.getParameter(k.MAX_TEXTURE_IMAGE_UNITS)),F.maxTextureSize||(F.maxTextureSize=k.getParameter(k.MAX_TEXTURE_SIZE)),this.compression=this.getCompressedTextures(),k.disable(k.DEPTH_TEST),k.disable(k.CULL_FACE),k.enable(k.BLEND),k.clearColor($.redGL,$.greenGL,$.blueGL,$.alphaGL);var j=["NEAREST","LINEAR","NEAREST_MIPMAP_NEAREST","LINEAR_MIPMAP_NEAREST","NEAREST_MIPMAP_LINEAR","LINEAR_MIPMAP_LINEAR"];return j.indexOf(F.mipmapFilter)!==-1&&(this.mipmapFilter=k[F.mipmapFilter]),this.maxTextures=v.checkShaderMax(k,F.maxTextures),this.textureIndexes=[],this.createTemporaryTextures(),this.pipelines=new p(this),this.setBlendMode(A.BlendModes.NORMAL),this.projectionMatrix=new O().identity(),V.textures.once(C.READY,this.boot,this),this},boot:function(){var F=this.game,k=this.pipelines,V=F.scale.baseSize,Z=V.width,$=V.height;this.width=Z,this.height=$,this.isBooted=!0,this.renderTarget=new N(this,Z,$,1,0,!0,!0),this.maskTarget=new N(this,Z,$,1,0,!0,!0),this.maskSource=new N(this,Z,$,1,0,!0,!0);var Q=F.config;k.boot(Q.pipeline,Q.defaultPipeline,Q.autoMobilePipeline),this.blankTexture=F.textures.getFrame("__DEFAULT").glTexture,this.normalTexture=F.textures.getFrame("__NORMAL").glTexture,this.whiteTexture=F.textures.getFrame("__WHITE").glTexture;var te=this.gl;te.bindFramebuffer(te.FRAMEBUFFER,null),te.enable(te.SCISSOR_TEST),F.scale.on(g.RESIZE,this.onResize,this),this.resize(Z,$)},createTemporaryTextures:function(){for(var F=this.gl,k=0;k0&&Z>0;if(te&&z){var j=te[0],x=te[1],X=te[2],q=te[3];z=j!==F||x!==k||X!==V||q!==Z}z&&(this.flush(),Q.scissor(F,$-k-Z,V,Z))},resetScissor:function(){var F=this.gl;F.enable(F.SCISSOR_TEST);var k=this.currentScissor;if(k){var V=k[0],Z=k[1],$=k[2],Q=k[3];$>0&&Q>0&&F.scissor(V,this.drawingBufferHeight-Z-Q,$,Q)}},popScissor:function(){var F=this.scissorStack;F.pop();var k=F[F.length-1];k&&this.setScissor(k[0],k[1],k[2],k[3]),this.currentScissor=k},hasActiveStencilMask:function(){var F=this.currentMask.mask,k=this.currentCameraMask.mask;return F&&F.isStencil||k&&k.isStencil},resetViewport:function(){var F=this.gl;F.viewport(0,0,this.width,this.height),this.drawingBufferHeight=F.drawingBufferHeight},setBlendMode:function(F,k){k===void 0&&(k=!1);var V=this.gl,Z=this.blendModes[F];return k||F!==A.BlendModes.SKIP_CHECK&&this.currentBlendMode!==F?(this.flush(),V.enable(V.BLEND),V.blendEquation(Z.equation),Z.func.length>2?V.blendFuncSeparate(Z.func[0],Z.func[1],Z.func[2],Z.func[3]):V.blendFunc(Z.func[0],Z.func[1]),this.currentBlendMode=F,!0):!1},addBlendMode:function(F,k){var V=this.blendModes.push({func:F,equation:k});return V-1},updateBlendMode:function(F,k,V){return this.blendModes[F]&&(this.blendModes[F].func=k,V&&(this.blendModes[F].equation=V)),this},removeBlendMode:function(F){return F>17&&this.blendModes[F]&&this.blendModes.splice(F,1),this},pushFramebuffer:function(F,k,V,Z,$){return F===this.currentFramebuffer?this:(this.fboStack.push(F),this.setFramebuffer(F,k,V,Z,$))},setFramebuffer:function(F,k,V,Z,$){if(k===void 0&&(k=!1),V===void 0&&(V=!0),Z===void 0&&(Z=null),$===void 0&&($=!1),F===this.currentFramebuffer)return this;var Q=this.gl,te=this.width,z=this.height;return F&&F.renderTexture&&V?(te=F.renderTexture.width,z=F.renderTexture.height):this.flush(),F?Q.bindFramebuffer(Q.FRAMEBUFFER,F.webGLFramebuffer):Q.bindFramebuffer(Q.FRAMEBUFFER,null),V&&Q.viewport(0,0,te,z),Z&&Q.framebufferTexture2D(Q.FRAMEBUFFER,Q.COLOR_ATTACHMENT0,Q.TEXTURE_2D,Z.webGLTexture,0),$&&(Q.clearColor(0,0,0,0),Q.clear(Q.COLOR_BUFFER_BIT)),k&&(F?(this.drawingBufferHeight=z,this.pushScissor(0,0,te,z)):(this.drawingBufferHeight=this.height,this.popScissor())),this.currentFramebuffer=F,this},popFramebuffer:function(F,k){F===void 0&&(F=!1),k===void 0&&(k=!0);var V=this.fboStack;V.pop();var Z=V[V.length-1];return Z||(Z=null),this.setFramebuffer(Z,F,k),Z},restoreFramebuffer:function(F,k){F===void 0&&(F=!1),k===void 0&&(k=!0);var V=this.fboStack,Z=V[V.length-1];Z||(Z=null),this.currentFramebuffer=null,this.setFramebuffer(Z,F,k)},setProgram:function(F){return F!==this.currentProgram?(this.flush(),this.gl.useProgram(F.webGLProgram),this.currentProgram=F,!0):!1},resetProgram:function(){return this.gl.useProgram(this.currentProgram.webGLProgramWrapper),this},createTextureFromSource:function(F,k,V,Z,$){$===void 0&&($=!1);var Q=this.gl,te=Q.NEAREST,z=Q.NEAREST,j=Q.CLAMP_TO_EDGE,x=null;k=F?F.width:k,V=F?F.height:V;var X=S(k,V);if(X&&!$&&(j=Q.REPEAT),Z===A.ScaleModes.LINEAR&&this.config.antialias){var q=F&&F.compressed,J=!q&&X||q&&F.mipmaps.length>1;te=this.mipmapFilter&&J?this.mipmapFilter:Q.LINEAR,z=Q.LINEAR}return!F&&typeof k=="number"&&typeof V=="number"?x=this.createTexture2D(0,te,z,j,j,Q.RGBA,null,k,V):x=this.createTexture2D(0,te,z,j,j,Q.RGBA,F),x},createTexture2D:function(F,k,V,Z,$,Q,te,z,j,x,X,q){typeof z!="number"&&(z=te?te.width:1),typeof j!="number"&&(j=te?te.height:1);var J=new H(this.gl,F,k,V,Z,$,Q,te,z,j,x,X,q);return this.glTextureWrappers.push(J),J},createFramebuffer:function(F,k,V,Z){this.currentFramebuffer=null;var $=new B(this.gl,F,k,V,Z);return this.glFramebufferWrappers.push($),$},beginBitmapMask:function(F,k){var V=this.gl;V&&(this.flush(),this.maskTarget.bind(!0),this.currentCameraMask.mask!==F&&(this.currentMask.mask=F,this.currentMask.camera=k))},drawBitmapMask:function(F,k,V){this.flush(),this.maskSource.bind(),this.setBlendMode(0,!0),F.renderWebGL(this,F,k),this.maskSource.unbind(!0),this.maskTarget.unbind();var Z=this.gl,$=this.getCurrentStencilMask();$?(Z.enable(Z.STENCIL_TEST),$.mask.applyStencil(this,$.camera,!0)):this.currentMask.mask=null,this.pipelines.set(V),Z.activeTexture(Z.TEXTURE0),Z.bindTexture(Z.TEXTURE_2D,this.maskTarget.texture.webGLTexture),Z.activeTexture(Z.TEXTURE1),Z.bindTexture(Z.TEXTURE_2D,this.maskSource.texture.webGLTexture)},createProgram:function(F,k){var V=new G(this.gl,F,k);return this.glProgramWrappers.push(V),V},createVertexBuffer:function(F,k){var V=this.gl,Z=new D(V,F,V.ARRAY_BUFFER,k);return this.glBufferWrappers.push(Z),Z},createAttribLocation:function(F,k){var V=new _(this.gl,F,k);return this.glAttribLocationWrappers.push(V),V},createUniformLocation:function(F,k){var V=new w(this.gl,F,k);return this.glUniformLocationWrappers.push(V),V},createIndexBuffer:function(F,k){var V=this.gl,Z=new D(V,F,V.ELEMENT_ARRAY_BUFFER,k);return this.glBufferWrappers.push(Z),Z},deleteTexture:function(F){if(F)return T(this.glTextureWrappers,F),F.destroy(),this},deleteFramebuffer:function(F){return F?(T(this.fboStack,F),T(this.glFramebufferWrappers,F),F.destroy(),this):this},deleteProgram:function(F){return F&&(T(this.glProgramWrappers,F),F.destroy()),this},deleteAttribLocation:function(F){return F&&(T(this.glAttribLocationWrappers,F),F.destroy()),this},deleteUniformLocation:function(F){return F&&(T(this.glUniformLocationWrappers,F),F.destroy()),this},deleteBuffer:function(F){return F?(T(this.glBufferWrappers,F),F.destroy(),this):this},preRenderCamera:function(F){var k=F.x,V=F.y,Z=F.width,$=F.height,Q=F.backgroundColor;if(F.emit(d.PRE_RENDER,F),this.pipelines.preBatchCamera(F),this.pushScissor(k,V,Z,$),F.mask&&(this.currentCameraMask.mask=F.mask,this.currentCameraMask.camera=F._maskCamera,F.mask.preRenderWebGL(this,F,F._maskCamera)),Q.alphaGL>0){var te=this.pipelines.setMulti();te.drawFillRect(k,V,Z,$,v.getTintFromFloats(Q.blueGL,Q.greenGL,Q.redGL,1),Q.alphaGL)}},getCurrentStencilMask:function(){var F=null,k=this.maskStack,V=this.currentCameraMask;return k.length>0?F=k[k.length-1]:V.mask&&V.mask.isStencil&&(F=V),F},postRenderCamera:function(F){var k=F.flashEffect,V=F.fadeEffect;if(k.isRunning||V.isRunning||V.isComplete){var Z=this.pipelines.setMulti();k.postRenderWebGL(Z,v.getTintFromFloats),V.postRenderWebGL(Z,v.getTintFromFloats)}F.dirty=!1,this.popScissor(),F.mask&&(this.currentCameraMask.mask=null,F.mask.postRenderWebGL(this,F._maskCamera)),this.pipelines.postBatchCamera(F),F.emit(d.POST_RENDER,F)},preRender:function(){if(!this.contextLost){var F=this.gl;if(F.bindFramebuffer(F.FRAMEBUFFER,null),this.config.clearBeforeRender){var k=this.config.backgroundColor;F.clearColor(k.redGL,k.greenGL,k.blueGL,k.alphaGL),F.clear(F.COLOR_BUFFER_BIT|F.DEPTH_BUFFER_BIT|F.STENCIL_BUFFER_BIT)}F.enable(F.SCISSOR_TEST),this.currentScissor=this.defaultScissor,this.scissorStack.length=0,this.scissorStack.push(this.currentScissor),this.game.scene.customViewports&&F.scissor(0,this.drawingBufferHeight-this.height,this.width,this.height),this.currentMask.mask=null,this.currentCameraMask.mask=null,this.maskStack.length=0,this.emit(f.PRE_RENDER)}},render:function(F,k,V){if(!this.contextLost){var Z=k.length;if(this.emit(f.RENDER,F,V),this.preRenderCamera(V),Z===0){this.setBlendMode(A.BlendModes.NORMAL),this.postRenderCamera(V);return}this.currentType="";for(var $=this.currentMask,Q=0;Q{/** + */var u=s(95428),T=s(72905),A=s(19715),c=s(83419),d=s(8054),h=s(50792),f=s(92503),S=s(50030),R=s(37867),L=s(29747),p=s(7530),N=s(32302),g=s(97480),C=s(69442),P=s(70554),M=s(88815),D=s(26128),G=s(1482),H=s(82751),B=s(84387),b=s(93567),w=s(57183),_=new c({Extends:h,initialize:v(function(x){h.call(this);var V=x.config,Z={alpha:V.transparent,desynchronized:V.desynchronized,depth:!0,antialias:V.antialiasGL,premultipliedAlpha:V.premultipliedAlpha,stencil:!0,failIfMajorPerformanceCaveat:V.failIfMajorPerformanceCaveat,powerPreference:V.powerPreference,preserveDrawingBuffer:V.preserveDrawingBuffer,willReadFrequently:!1};this.config={clearBeforeRender:V.clearBeforeRender,antialias:V.antialias,backgroundColor:V.backgroundColor,contextCreation:Z,roundPixels:V.roundPixels,maxTextures:V.maxTextures,maxTextureSize:V.maxTextureSize,batchSize:V.batchSize,maxLights:V.maxLights,mipmapFilter:V.mipmapFilter},this.game=x,this.type=d.WEBGL,this.pipelines=null,this.width=0,this.height=0,this.canvas=x.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.glBufferWrappers=[],this.glProgramWrappers=[],this.glTextureWrappers=[],this.glFramebufferWrappers=[],this.glAttribLocationWrappers=[],this.glUniformLocationWrappers=[],this.currentFramebuffer=null,this.fboStack=[],this.currentProgram=null,this.currentBlendMode=1/0,this.currentScissorEnabled=!1,this.currentScissor=null,this.scissorStack=[],this.contextLostHandler=L,this.contextRestoredHandler=L,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.normalTexture=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)},"WebGLRenderer"),init:function(F){var x,V=this.game,Z=this.canvas,$=F.backgroundColor;if(V.config.context?x=V.config.context:x=Z.getContext("webgl",F.contextCreation)||Z.getContext("experimental-webgl",F.contextCreation),!x||x.isContextLost())throw this.contextLost=!0,new Error("WebGL unsupported");this.gl=x;var Q=this,te=v(function(){var k=x.getSupportedExtensions();Q.supportedExtensions=k;var X="ANGLE_instanced_arrays";Q.instancedArraysExtension=k.indexOf(X)>-1?x.getExtension(X):null;var q="OES_vertex_array_object";Q.vaoExtension=k.indexOf(q)>-1?x.getExtension(q):null},"setupExtensions");te(),this.contextLostHandler=function(k){Q.contextLost=!0,console&&console.warn("WebGL Context lost. Renderer disabled"),Q.emit(f.LOSE_WEBGL,Q),k.preventDefault()},Z.addEventListener("webglcontextlost",this.contextLostHandler,!1),this.contextRestoredHandler=function(k){if(x.isContextLost()){console&&console.log("WebGL Context restored, but context is still lost");return}Q.currentProgram=null,Q.currentFramebuffer=null,Q.setBlendMode(d.BlendModes.NORMAL),x.disable(x.BLEND),x.disable(x.DEPTH_TEST),x.enable(x.CULL_FACE),Q.compression=Q.getCompressedTextures();var X=v(function(q){q.createResource()},"wrapperCreateResource");u(Q.glTextureWrappers,X),u(Q.glBufferWrappers,X),u(Q.glFramebufferWrappers,X),u(Q.glProgramWrappers,X),u(Q.glAttribLocationWrappers,X),u(Q.glUniformLocationWrappers,X),Q.createTemporaryTextures(),Q.pipelines.restoreContext(),Q.resize(Q.game.scale.baseSize.width,Q.game.scale.baseSize.height),te(),Q.contextLost=!1,console&&console.warn("WebGL Context restored. Renderer running again."),Q.emit(f.RESTORE_WEBGL,Q),k.preventDefault()},Z.addEventListener("webglcontextrestored",this.contextRestoredHandler,!1),V.context=x;for(var z=0;z<=27;z++)this.blendModes.push({func:[x.ONE,x.ONE_MINUS_SRC_ALPHA],equation:x.FUNC_ADD});this.blendModes[1].func=[x.ONE,x.DST_ALPHA],this.blendModes[2].func=[x.DST_COLOR,x.ONE_MINUS_SRC_ALPHA],this.blendModes[3].func=[x.ONE,x.ONE_MINUS_SRC_COLOR],this.blendModes[17]={func:[x.ZERO,x.ONE_MINUS_SRC_ALPHA],equation:x.FUNC_REVERSE_SUBTRACT},this.glFormats=[x.BYTE,x.SHORT,x.UNSIGNED_BYTE,x.UNSIGNED_SHORT,x.FLOAT],this.glFuncMap={mat2:{func:x.uniformMatrix2fv,length:1,matrix:!0},mat3:{func:x.uniformMatrix3fv,length:1,matrix:!0},mat4:{func:x.uniformMatrix4fv,length:1,matrix:!0},"1f":{func:x.uniform1f,length:1},"1fv":{func:x.uniform1fv,length:1},"1i":{func:x.uniform1i,length:1},"1iv":{func:x.uniform1iv,length:1},"2f":{func:x.uniform2f,length:2},"2fv":{func:x.uniform2fv,length:1},"2i":{func:x.uniform2i,length:2},"2iv":{func:x.uniform2iv,length:1},"3f":{func:x.uniform3f,length:3},"3fv":{func:x.uniform3fv,length:1},"3i":{func:x.uniform3i,length:3},"3iv":{func:x.uniform3iv,length:1},"4f":{func:x.uniform4f,length:4},"4fv":{func:x.uniform4fv,length:1},"4i":{func:x.uniform4i,length:4},"4iv":{func:x.uniform4iv,length:1}},(!F.maxTextures||F.maxTextures===-1)&&(F.maxTextures=x.getParameter(x.MAX_TEXTURE_IMAGE_UNITS)),F.maxTextureSize||(F.maxTextureSize=x.getParameter(x.MAX_TEXTURE_SIZE)),this.compression=this.getCompressedTextures(),x.disable(x.DEPTH_TEST),x.disable(x.CULL_FACE),x.enable(x.BLEND),x.clearColor($.redGL,$.greenGL,$.blueGL,$.alphaGL);var j=["NEAREST","LINEAR","NEAREST_MIPMAP_NEAREST","LINEAR_MIPMAP_NEAREST","NEAREST_MIPMAP_LINEAR","LINEAR_MIPMAP_LINEAR"];return j.indexOf(F.mipmapFilter)!==-1&&(this.mipmapFilter=x[F.mipmapFilter]),this.maxTextures=P.checkShaderMax(x,F.maxTextures),this.textureIndexes=[],this.createTemporaryTextures(),this.pipelines=new p(this),this.setBlendMode(d.BlendModes.NORMAL),this.projectionMatrix=new R().identity(),V.textures.once(C.READY,this.boot,this),this},boot:function(){var F=this.game,x=this.pipelines,V=F.scale.baseSize,Z=V.width,$=V.height;this.width=Z,this.height=$,this.isBooted=!0,this.renderTarget=new N(this,Z,$,1,0,!0,!0),this.maskTarget=new N(this,Z,$,1,0,!0,!0),this.maskSource=new N(this,Z,$,1,0,!0,!0);var Q=F.config;x.boot(Q.pipeline,Q.defaultPipeline,Q.autoMobilePipeline),this.blankTexture=F.textures.getFrame("__DEFAULT").glTexture,this.normalTexture=F.textures.getFrame("__NORMAL").glTexture,this.whiteTexture=F.textures.getFrame("__WHITE").glTexture;var te=this.gl;te.bindFramebuffer(te.FRAMEBUFFER,null),te.enable(te.SCISSOR_TEST),F.scale.on(g.RESIZE,this.onResize,this),this.resize(Z,$)},createTemporaryTextures:function(){for(var F=this.gl,x=0;x0&&Z>0;if(te&&z){var j=te[0],k=te[1],X=te[2],q=te[3];z=j!==F||k!==x||X!==V||q!==Z}z&&(this.flush(),Q.scissor(F,$-x-Z,V,Z))},resetScissor:function(){var F=this.gl;F.enable(F.SCISSOR_TEST);var x=this.currentScissor;if(x){var V=x[0],Z=x[1],$=x[2],Q=x[3];$>0&&Q>0&&F.scissor(V,this.drawingBufferHeight-Z-Q,$,Q)}},popScissor:function(){var F=this.scissorStack;F.pop();var x=F[F.length-1];x&&this.setScissor(x[0],x[1],x[2],x[3]),this.currentScissor=x},hasActiveStencilMask:function(){var F=this.currentMask.mask,x=this.currentCameraMask.mask;return F&&F.isStencil||x&&x.isStencil},resetViewport:function(){var F=this.gl;F.viewport(0,0,this.width,this.height),this.drawingBufferHeight=F.drawingBufferHeight},setBlendMode:function(F,x){x===void 0&&(x=!1);var V=this.gl,Z=this.blendModes[F];return x||F!==d.BlendModes.SKIP_CHECK&&this.currentBlendMode!==F?(this.flush(),V.enable(V.BLEND),V.blendEquation(Z.equation),Z.func.length>2?V.blendFuncSeparate(Z.func[0],Z.func[1],Z.func[2],Z.func[3]):V.blendFunc(Z.func[0],Z.func[1]),this.currentBlendMode=F,!0):!1},addBlendMode:function(F,x){var V=this.blendModes.push({func:F,equation:x});return V-1},updateBlendMode:function(F,x,V){return this.blendModes[F]&&(this.blendModes[F].func=x,V&&(this.blendModes[F].equation=V)),this},removeBlendMode:function(F){return F>17&&this.blendModes[F]&&this.blendModes.splice(F,1),this},pushFramebuffer:function(F,x,V,Z,$){return F===this.currentFramebuffer?this:(this.fboStack.push(F),this.setFramebuffer(F,x,V,Z,$))},setFramebuffer:function(F,x,V,Z,$){if(x===void 0&&(x=!1),V===void 0&&(V=!0),Z===void 0&&(Z=null),$===void 0&&($=!1),F===this.currentFramebuffer)return this;var Q=this.gl,te=this.width,z=this.height;return F&&F.renderTexture&&V?(te=F.renderTexture.width,z=F.renderTexture.height):this.flush(),F?Q.bindFramebuffer(Q.FRAMEBUFFER,F.webGLFramebuffer):Q.bindFramebuffer(Q.FRAMEBUFFER,null),V&&Q.viewport(0,0,te,z),Z&&Q.framebufferTexture2D(Q.FRAMEBUFFER,Q.COLOR_ATTACHMENT0,Q.TEXTURE_2D,Z.webGLTexture,0),$&&(Q.clearColor(0,0,0,0),Q.clear(Q.COLOR_BUFFER_BIT)),x&&(F?(this.drawingBufferHeight=z,this.pushScissor(0,0,te,z)):(this.drawingBufferHeight=this.height,this.popScissor())),this.currentFramebuffer=F,this},popFramebuffer:function(F,x){F===void 0&&(F=!1),x===void 0&&(x=!0);var V=this.fboStack;V.pop();var Z=V[V.length-1];return Z||(Z=null),this.setFramebuffer(Z,F,x),Z},restoreFramebuffer:function(F,x){F===void 0&&(F=!1),x===void 0&&(x=!0);var V=this.fboStack,Z=V[V.length-1];Z||(Z=null),this.currentFramebuffer=null,this.setFramebuffer(Z,F,x)},setProgram:function(F){return F!==this.currentProgram?(this.flush(),this.gl.useProgram(F.webGLProgram),this.currentProgram=F,!0):!1},resetProgram:function(){return this.gl.useProgram(this.currentProgram.webGLProgramWrapper),this},createTextureFromSource:function(F,x,V,Z,$){$===void 0&&($=!1);var Q=this.gl,te=Q.NEAREST,z=Q.NEAREST,j=Q.CLAMP_TO_EDGE,k=null;x=F?F.width:x,V=F?F.height:V;var X=S(x,V);if(X&&!$&&(j=Q.REPEAT),Z===d.ScaleModes.LINEAR&&this.config.antialias){var q=F&&F.compressed,J=!q&&X||q&&F.mipmaps.length>1;te=this.mipmapFilter&&J?this.mipmapFilter:Q.LINEAR,z=Q.LINEAR}return!F&&typeof x=="number"&&typeof V=="number"?k=this.createTexture2D(0,te,z,j,j,Q.RGBA,null,x,V):k=this.createTexture2D(0,te,z,j,j,Q.RGBA,F),k},createTexture2D:function(F,x,V,Z,$,Q,te,z,j,k,X,q){typeof z!="number"&&(z=te?te.width:1),typeof j!="number"&&(j=te?te.height:1);var J=new H(this.gl,F,x,V,Z,$,Q,te,z,j,k,X,q);return this.glTextureWrappers.push(J),J},createFramebuffer:function(F,x,V,Z){this.currentFramebuffer=null;var $=new B(this.gl,F,x,V,Z);return this.glFramebufferWrappers.push($),$},beginBitmapMask:function(F,x){var V=this.gl;V&&(this.flush(),this.maskTarget.bind(!0),this.currentCameraMask.mask!==F&&(this.currentMask.mask=F,this.currentMask.camera=x))},drawBitmapMask:function(F,x,V){this.flush(),this.maskSource.bind(),this.setBlendMode(0,!0),F.renderWebGL(this,F,x),this.maskSource.unbind(!0),this.maskTarget.unbind();var Z=this.gl,$=this.getCurrentStencilMask();$?(Z.enable(Z.STENCIL_TEST),$.mask.applyStencil(this,$.camera,!0)):this.currentMask.mask=null,this.pipelines.set(V),Z.activeTexture(Z.TEXTURE0),Z.bindTexture(Z.TEXTURE_2D,this.maskTarget.texture.webGLTexture),Z.activeTexture(Z.TEXTURE1),Z.bindTexture(Z.TEXTURE_2D,this.maskSource.texture.webGLTexture)},createProgram:function(F,x){var V=new G(this.gl,F,x);return this.glProgramWrappers.push(V),V},createVertexBuffer:function(F,x){var V=this.gl,Z=new D(V,F,V.ARRAY_BUFFER,x);return this.glBufferWrappers.push(Z),Z},createAttribLocation:function(F,x){var V=new b(this.gl,F,x);return this.glAttribLocationWrappers.push(V),V},createUniformLocation:function(F,x){var V=new w(this.gl,F,x);return this.glUniformLocationWrappers.push(V),V},createIndexBuffer:function(F,x){var V=this.gl,Z=new D(V,F,V.ELEMENT_ARRAY_BUFFER,x);return this.glBufferWrappers.push(Z),Z},deleteTexture:function(F){if(F)return T(this.glTextureWrappers,F),F.destroy(),this},deleteFramebuffer:function(F){return F?(T(this.fboStack,F),T(this.glFramebufferWrappers,F),F.destroy(),this):this},deleteProgram:function(F){return F&&(T(this.glProgramWrappers,F),F.destroy()),this},deleteAttribLocation:function(F){return F&&(T(this.glAttribLocationWrappers,F),F.destroy()),this},deleteUniformLocation:function(F){return F&&(T(this.glUniformLocationWrappers,F),F.destroy()),this},deleteBuffer:function(F){return F?(T(this.glBufferWrappers,F),F.destroy(),this):this},preRenderCamera:function(F){var x=F.x,V=F.y,Z=F.width,$=F.height,Q=F.backgroundColor;if(F.emit(A.PRE_RENDER,F),this.pipelines.preBatchCamera(F),this.pushScissor(x,V,Z,$),F.mask&&(this.currentCameraMask.mask=F.mask,this.currentCameraMask.camera=F._maskCamera,F.mask.preRenderWebGL(this,F,F._maskCamera)),Q.alphaGL>0){var te=this.pipelines.setMulti();te.drawFillRect(x,V,Z,$,P.getTintFromFloats(Q.blueGL,Q.greenGL,Q.redGL,1),Q.alphaGL)}},getCurrentStencilMask:function(){var F=null,x=this.maskStack,V=this.currentCameraMask;return x.length>0?F=x[x.length-1]:V.mask&&V.mask.isStencil&&(F=V),F},postRenderCamera:function(F){var x=F.flashEffect,V=F.fadeEffect;if(x.isRunning||V.isRunning||V.isComplete){var Z=this.pipelines.setMulti();x.postRenderWebGL(Z,P.getTintFromFloats),V.postRenderWebGL(Z,P.getTintFromFloats)}F.dirty=!1,this.popScissor(),F.mask&&(this.currentCameraMask.mask=null,F.mask.postRenderWebGL(this,F._maskCamera)),this.pipelines.postBatchCamera(F),F.emit(A.POST_RENDER,F)},preRender:function(){if(!this.contextLost){var F=this.gl;if(F.bindFramebuffer(F.FRAMEBUFFER,null),this.config.clearBeforeRender){var x=this.config.backgroundColor;F.clearColor(x.redGL,x.greenGL,x.blueGL,x.alphaGL),F.clear(F.COLOR_BUFFER_BIT|F.DEPTH_BUFFER_BIT|F.STENCIL_BUFFER_BIT)}F.enable(F.SCISSOR_TEST),this.currentScissor=this.defaultScissor,this.scissorStack.length=0,this.scissorStack.push(this.currentScissor),this.game.scene.customViewports&&F.scissor(0,this.drawingBufferHeight-this.height,this.width,this.height),this.currentMask.mask=null,this.currentCameraMask.mask=null,this.maskStack.length=0,this.emit(f.PRE_RENDER)}},render:function(F,x,V){if(!this.contextLost){var Z=x.length;if(this.emit(f.RENDER,F,V),this.preRenderCamera(V),Z===0){this.setBlendMode(d.BlendModes.NORMAL),this.postRenderCamera(V);return}this.currentType="";for(var $=this.currentMask,Q=0;Q{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(95428),d=s(95540),c=s(14500),A=new u({initialize:P(function(f,S,O,L,p){this.pipeline=f,this.name=S,this.renderer=f.renderer,this.gl=this.renderer.gl,this.fragSrc=L,this.vertSrc=O,this.program=this.renderer.createProgram(O,L),this.attributes,this.vertexComponentCount=0,this.vertexSize=0,this.uniforms={},this.createAttributes(p),this.createUniforms()},"WebGLShader"),createAttributes:function(h){var f=0,S=0,O=[];this.vertexComponentCount=0;for(var L=0;L=0?(f.enableVertexAttribArray(B.webGLAttribLocation),f.vertexAttribPointer(B.webGLAttribLocation,C,v,H,O,M),g.enabled=!0,g.location=B):B.webGLAttribLocation!==-1&&f.disableVertexAttribArray(B.webGLAttribLocation)}else D?f.vertexAttribPointer(G.webGLAttribLocation,C,v,H,O,M):!D&&G!==-1&&G.webGLAttribLocation>-1&&(f.disableVertexAttribArray(G.webGLAttribLocation),g.location=-1)}return this},createUniforms:function(){var h=this.gl,f=this.program,S=this.uniforms,O,L,p,N=h.getProgramParameter(f.webGLProgram,h.ACTIVE_UNIFORMS);for(O=0;O0&&(L=L.substr(0,C),S.hasOwnProperty(L)||(p=this.renderer.createUniformLocation(f,L),p!==null&&(S[L]={name:L,location:p,setter:null,value1:null,value2:null,value3:null,value4:null})))}}return this},syncUniforms:function(){var h=this.gl;this.renderer.setProgram(this.program);for(var f in this.uniforms){var S=this.uniforms[f];S.setter&&S.setter.call(h,S.location.webGLUniformLocation,S.value1,S.value2,S.value3,S.value4)}},hasUniform:function(h){return this.uniforms.hasOwnProperty(h)},resetUniform:function(h){var f=this.uniforms[h];return f&&(f.value1=null,f.value2=null,f.value3=null,f.value4=null),this},setUniform1:function(h,f,S,O){var L=this.uniforms[f];return L?((O||L.value1!==S)&&(L.setter||(L.setter=h),L.value1=S,this.renderer.setProgram(this.program),h.call(this.gl,L.location.webGLUniformLocation,S),this.pipeline.currentShader=this),this):this},setUniform2:function(h,f,S,O,L){var p=this.uniforms[f];return p?((L||p.value1!==S||p.value2!==O)&&(p.setter||(p.setter=h),p.value1=S,p.value2=O,this.renderer.setProgram(this.program),h.call(this.gl,p.location.webGLUniformLocation,S,O),this.pipeline.currentShader=this),this):this},setUniform3:function(h,f,S,O,L,p){var N=this.uniforms[f];return N?((p||N.value1!==S||N.value2!==O||N.value3!==L)&&(N.setter||(N.setter=h),N.value1=S,N.value2=O,N.value3=L,this.renderer.setProgram(this.program),h.call(this.gl,N.location.webGLUniformLocation,S,O,L),this.pipeline.currentShader=this),this):this},setUniform4:function(h,f,S,O,L,p,N){var g=this.uniforms[f];return g?((N||g.value1!==S||g.value2!==O||g.value3!==L||g.value4!==p)&&(g.setter||(g.setter=h),g.value1=S,g.value2=O,g.value3=L,g.value4=p,this.renderer.setProgram(this.program),h.call(this.gl,g.location.webGLUniformLocation,S,O,L,p),this.pipeline.currentShader=this),this):this},setBoolean:function(h,f){return this.setUniform1(this.gl.uniform1i,h,Number(f))},set1f:function(h,f){return this.setUniform1(this.gl.uniform1f,h,f)},set2f:function(h,f,S){return this.setUniform2(this.gl.uniform2f,h,f,S)},set3f:function(h,f,S,O){return this.setUniform3(this.gl.uniform3f,h,f,S,O)},set4f:function(h,f,S,O,L){return this.setUniform4(this.gl.uniform4f,h,f,S,O,L)},set1fv:function(h,f){return this.setUniform1(this.gl.uniform1fv,h,f,!0)},set2fv:function(h,f){return this.setUniform1(this.gl.uniform2fv,h,f,!0)},set3fv:function(h,f){return this.setUniform1(this.gl.uniform3fv,h,f,!0)},set4fv:function(h,f){return this.setUniform1(this.gl.uniform4fv,h,f,!0)},set1iv:function(h,f){return this.setUniform1(this.gl.uniform1iv,h,f,!0)},set2iv:function(h,f){return this.setUniform1(this.gl.uniform2iv,h,f,!0)},set3iv:function(h,f){return this.setUniform1(this.gl.uniform3iv,h,f,!0)},set4iv:function(h,f){return this.setUniform1(this.gl.uniform4iv,h,f,!0)},set1i:function(h,f){return this.setUniform1(this.gl.uniform1i,h,f)},set2i:function(h,f,S){return this.setUniform2(this.gl.uniform2i,h,f,S)},set3i:function(h,f,S,O){return this.setUniform3(this.gl.uniform3i,h,f,S,O)},set4i:function(h,f,S,O,L){return this.setUniform4(this.gl.uniform4i,h,f,S,O,L)},setMatrix2fv:function(h,f,S){return this.setUniform2(this.gl.uniformMatrix2fv,h,f,S,!0)},setMatrix3fv:function(h,f,S){return this.setUniform2(this.gl.uniformMatrix3fv,h,f,S,!0)},setMatrix4fv:function(h,f,S){return this.setUniform2(this.gl.uniformMatrix4fv,h,f,S,!0)},createProgram:function(h,f){return h===void 0&&(h=this.vertSrc),f===void 0&&(f=this.fragSrc),this.program&&this.renderer.deleteProgram(this.program),this.vertSrc=h,this.fragSrc=f,this.program=this.renderer.createProgram(h,f),this.createUniforms(),this.rebind()},destroy:function(){var h=this.renderer;T(this.uniforms,function(f){h.deleteUniformLocation(f.location)}),this.uniforms=null,T(this.attributes,function(f){h.deleteAttribLocation(f.location)}),this.attributes=null,h.deleteProgram(this.program),this.pipeline=null,this.renderer=null,this.gl=null,this.program=null}});o.exports=A},14500:o=>{/** + */var u=s(83419),T=s(95428),A=s(95540),c=s(14500),d=new u({initialize:v(function(f,S,R,L,p){this.pipeline=f,this.name=S,this.renderer=f.renderer,this.gl=this.renderer.gl,this.fragSrc=L,this.vertSrc=R,this.program=this.renderer.createProgram(R,L),this.attributes,this.vertexComponentCount=0,this.vertexSize=0,this.uniforms={},this.createAttributes(p),this.createUniforms()},"WebGLShader"),createAttributes:function(h){var f=0,S=0,R=[];this.vertexComponentCount=0;for(var L=0;L=0?(f.enableVertexAttribArray(B.webGLAttribLocation),f.vertexAttribPointer(B.webGLAttribLocation,C,P,H,R,M),g.enabled=!0,g.location=B):B.webGLAttribLocation!==-1&&f.disableVertexAttribArray(B.webGLAttribLocation)}else D?f.vertexAttribPointer(G.webGLAttribLocation,C,P,H,R,M):!D&&G!==-1&&G.webGLAttribLocation>-1&&(f.disableVertexAttribArray(G.webGLAttribLocation),g.location=-1)}return this},createUniforms:function(){var h=this.gl,f=this.program,S=this.uniforms,R,L,p,N=h.getProgramParameter(f.webGLProgram,h.ACTIVE_UNIFORMS);for(R=0;R0&&(L=L.substr(0,C),S.hasOwnProperty(L)||(p=this.renderer.createUniformLocation(f,L),p!==null&&(S[L]={name:L,location:p,setter:null,value1:null,value2:null,value3:null,value4:null})))}}return this},syncUniforms:function(){var h=this.gl;this.renderer.setProgram(this.program);for(var f in this.uniforms){var S=this.uniforms[f];S.setter&&S.setter.call(h,S.location.webGLUniformLocation,S.value1,S.value2,S.value3,S.value4)}},hasUniform:function(h){return this.uniforms.hasOwnProperty(h)},resetUniform:function(h){var f=this.uniforms[h];return f&&(f.value1=null,f.value2=null,f.value3=null,f.value4=null),this},setUniform1:function(h,f,S,R){var L=this.uniforms[f];return L?((R||L.value1!==S)&&(L.setter||(L.setter=h),L.value1=S,this.renderer.setProgram(this.program),h.call(this.gl,L.location.webGLUniformLocation,S),this.pipeline.currentShader=this),this):this},setUniform2:function(h,f,S,R,L){var p=this.uniforms[f];return p?((L||p.value1!==S||p.value2!==R)&&(p.setter||(p.setter=h),p.value1=S,p.value2=R,this.renderer.setProgram(this.program),h.call(this.gl,p.location.webGLUniformLocation,S,R),this.pipeline.currentShader=this),this):this},setUniform3:function(h,f,S,R,L,p){var N=this.uniforms[f];return N?((p||N.value1!==S||N.value2!==R||N.value3!==L)&&(N.setter||(N.setter=h),N.value1=S,N.value2=R,N.value3=L,this.renderer.setProgram(this.program),h.call(this.gl,N.location.webGLUniformLocation,S,R,L),this.pipeline.currentShader=this),this):this},setUniform4:function(h,f,S,R,L,p,N){var g=this.uniforms[f];return g?((N||g.value1!==S||g.value2!==R||g.value3!==L||g.value4!==p)&&(g.setter||(g.setter=h),g.value1=S,g.value2=R,g.value3=L,g.value4=p,this.renderer.setProgram(this.program),h.call(this.gl,g.location.webGLUniformLocation,S,R,L,p),this.pipeline.currentShader=this),this):this},setBoolean:function(h,f){return this.setUniform1(this.gl.uniform1i,h,Number(f))},set1f:function(h,f){return this.setUniform1(this.gl.uniform1f,h,f)},set2f:function(h,f,S){return this.setUniform2(this.gl.uniform2f,h,f,S)},set3f:function(h,f,S,R){return this.setUniform3(this.gl.uniform3f,h,f,S,R)},set4f:function(h,f,S,R,L){return this.setUniform4(this.gl.uniform4f,h,f,S,R,L)},set1fv:function(h,f){return this.setUniform1(this.gl.uniform1fv,h,f,!0)},set2fv:function(h,f){return this.setUniform1(this.gl.uniform2fv,h,f,!0)},set3fv:function(h,f){return this.setUniform1(this.gl.uniform3fv,h,f,!0)},set4fv:function(h,f){return this.setUniform1(this.gl.uniform4fv,h,f,!0)},set1iv:function(h,f){return this.setUniform1(this.gl.uniform1iv,h,f,!0)},set2iv:function(h,f){return this.setUniform1(this.gl.uniform2iv,h,f,!0)},set3iv:function(h,f){return this.setUniform1(this.gl.uniform3iv,h,f,!0)},set4iv:function(h,f){return this.setUniform1(this.gl.uniform4iv,h,f,!0)},set1i:function(h,f){return this.setUniform1(this.gl.uniform1i,h,f)},set2i:function(h,f,S){return this.setUniform2(this.gl.uniform2i,h,f,S)},set3i:function(h,f,S,R){return this.setUniform3(this.gl.uniform3i,h,f,S,R)},set4i:function(h,f,S,R,L){return this.setUniform4(this.gl.uniform4i,h,f,S,R,L)},setMatrix2fv:function(h,f,S){return this.setUniform2(this.gl.uniformMatrix2fv,h,f,S,!0)},setMatrix3fv:function(h,f,S){return this.setUniform2(this.gl.uniformMatrix3fv,h,f,S,!0)},setMatrix4fv:function(h,f,S){return this.setUniform2(this.gl.uniformMatrix4fv,h,f,S,!0)},createProgram:function(h,f){return h===void 0&&(h=this.vertSrc),f===void 0&&(f=this.fragSrc),this.program&&this.renderer.deleteProgram(this.program),this.vertSrc=h,this.fragSrc=f,this.program=this.renderer.createProgram(h,f),this.createUniforms(),this.rebind()},destroy:function(){var h=this.renderer;T(this.uniforms,function(f){h.deleteUniformLocation(f.location)}),this.uniforms=null,T(this.attributes,function(f){h.deleteAttribLocation(f.location)}),this.attributes=null,h.deleteProgram(this.program),this.pipeline=null,this.renderer=null,this.gl=null,this.program=null}});o.exports=d},14500:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={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}};o.exports=m},4159:(o,m,s)=>{/** + */var O={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}};o.exports=O},4159:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(14500),T=s(79291),d={PipelineManager:s(7530),Pipelines:s(96615),RenderTarget:s(32302),Utils:s(70554),WebGLPipeline:s(29100),WebGLRenderer:s(74797),WebGLShader:s(38683),Wrappers:s(9503)};d=T(!1,d,u),o.exports=d},31302:(o,m,s)=>{/** + */var u=s(14500),T=s(79291),A={PipelineManager:s(7530),Pipelines:s(96615),RenderTarget:s(32302),Utils:s(70554),WebGLPipeline:s(29100),WebGLRenderer:s(74797),WebGLShader:s(38683),Wrappers:s(9503)};A=T(!1,A,u),o.exports=A},31302:(o,O,s)=>{/** * @author Richard Davey * @author Felipe Alfonso <@bitnenfer> * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(95540),d=s(78908),c=s(85191),A=s(14500),h=s(29100),f=new u({Extends:h,initialize:P(function(O){O.fragShader=T(O,"fragShader",d),O.vertShader=T(O,"vertShader",c),O.batchSize=T(O,"batchSize",1),O.vertices=T(O,"vertices",[-1,1,-1,-7,7,1]),O.attributes=T(O,"attributes",[{name:"inPosition",size:2,type:A.FLOAT}]),h.call(this,O)},"BitmapMaskPipeline"),boot:function(){h.prototype.boot.call(this),this.set1i("uMainSampler",0),this.set1i("uMaskSampler",1)},resize:function(S,O){h.prototype.resize.call(this,S,O),this.set2f("uResolution",S,O)},beginMask:function(S,O,L){this.renderer.beginBitmapMask(S,L)},endMask:function(S,O,L){var p=this.gl,N=this.renderer,g=S.bitmapMask;g&&p&&(N.drawBitmapMask(g,O,this),L&&this.set2f("uResolution",L.width,L.height),this.set1i("uInvertMaskAlpha",S.invertAlpha),p.drawArrays(this.topology,0,3),L&&this.set2f("uResolution",this.width,this.height),p.bindTexture(p.TEXTURE_2D,null))}});o.exports=f},92651:(o,m,s)=>{/** + */var u=s(83419),T=s(95540),A=s(78908),c=s(85191),d=s(14500),h=s(29100),f=new u({Extends:h,initialize:v(function(R){R.fragShader=T(R,"fragShader",A),R.vertShader=T(R,"vertShader",c),R.batchSize=T(R,"batchSize",1),R.vertices=T(R,"vertices",[-1,1,-1,-7,7,1]),R.attributes=T(R,"attributes",[{name:"inPosition",size:2,type:d.FLOAT}]),h.call(this,R)},"BitmapMaskPipeline"),boot:function(){h.prototype.boot.call(this),this.set1i("uMainSampler",0),this.set1i("uMaskSampler",1)},resize:function(S,R){h.prototype.resize.call(this,S,R),this.set2f("uResolution",S,R)},beginMask:function(S,R,L){this.renderer.beginBitmapMask(S,L)},endMask:function(S,R,L){var p=this.gl,N=this.renderer,g=S.bitmapMask;g&&p&&(N.drawBitmapMask(g,R,this),L&&this.set2f("uResolution",L.width,L.height),this.set1i("uInvertMaskAlpha",S.invertAlpha),p.drawArrays(this.topology,0,3),L&&this.set2f("uResolution",this.width,this.height),p.bindTexture(p.TEXTURE_2D,null))}});o.exports=f},92651:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(58918),d=s(14811),c=s(95540),A=s(43558),h=s(89350),f=s(70554),S=new u({Extends:A,initialize:P(function(L){L.shaders=[f.setGlowQuality(h.FXGlowFrag,L.game),h.FXShadowFrag,h.FXPixelateFrag,h.FXVignetteFrag,h.FXShineFrag,h.FXBlurLowFrag,h.FXBlurMedFrag,h.FXBlurHighFrag,h.FXGradientFrag,h.FXBloomFrag,h.ColorMatrixFrag,h.FXCircleFrag,h.FXBarrelFrag,h.FXDisplacementFrag,h.FXWipeFrag,h.FXBokehFrag],A.call(this,L);var p=this.game;this.glow=new T.Glow(p),this.shadow=new T.Shadow(p),this.pixelate=new T.Pixelate(p),this.vignette=new T.Vignette(p),this.shine=new T.Shine(p),this.gradient=new T.Gradient(p),this.circle=new T.Circle(p),this.barrel=new T.Barrel(p),this.wipe=new T.Wipe(p),this.bokeh=new T.Bokeh(p);var N=[];N[d.GLOW]=this.onGlow,N[d.SHADOW]=this.onShadow,N[d.PIXELATE]=this.onPixelate,N[d.VIGNETTE]=this.onVignette,N[d.SHINE]=this.onShine,N[d.BLUR]=this.onBlur,N[d.GRADIENT]=this.onGradient,N[d.BLOOM]=this.onBloom,N[d.COLOR_MATRIX]=this.onColorMatrix,N[d.CIRCLE]=this.onCircle,N[d.BARREL]=this.onBarrel,N[d.DISPLACEMENT]=this.onDisplacement,N[d.WIPE]=this.onWipe,N[d.BOKEH]=this.onBokeh,this.fxHandlers=N,this.source,this.target,this.swap},"FXPipeline"),onDraw:function(O,L,p){this.source=O,this.target=L,this.swap=p;var N=O.width,g=O.height,C=this.tempSprite,v=this.fxHandlers;if(C&&C.preFX)for(var M=C.preFX.list,D=0;D{/** + */var u=s(83419),T=s(58918),A=s(14811),c=s(95540),d=s(43558),h=s(89350),f=s(70554),S=new u({Extends:d,initialize:v(function(L){L.shaders=[f.setGlowQuality(h.FXGlowFrag,L.game),h.FXShadowFrag,h.FXPixelateFrag,h.FXVignetteFrag,h.FXShineFrag,h.FXBlurLowFrag,h.FXBlurMedFrag,h.FXBlurHighFrag,h.FXGradientFrag,h.FXBloomFrag,h.ColorMatrixFrag,h.FXCircleFrag,h.FXBarrelFrag,h.FXDisplacementFrag,h.FXWipeFrag,h.FXBokehFrag],d.call(this,L);var p=this.game;this.glow=new T.Glow(p),this.shadow=new T.Shadow(p),this.pixelate=new T.Pixelate(p),this.vignette=new T.Vignette(p),this.shine=new T.Shine(p),this.gradient=new T.Gradient(p),this.circle=new T.Circle(p),this.barrel=new T.Barrel(p),this.wipe=new T.Wipe(p),this.bokeh=new T.Bokeh(p);var N=[];N[A.GLOW]=this.onGlow,N[A.SHADOW]=this.onShadow,N[A.PIXELATE]=this.onPixelate,N[A.VIGNETTE]=this.onVignette,N[A.SHINE]=this.onShine,N[A.BLUR]=this.onBlur,N[A.GRADIENT]=this.onGradient,N[A.BLOOM]=this.onBloom,N[A.COLOR_MATRIX]=this.onColorMatrix,N[A.CIRCLE]=this.onCircle,N[A.BARREL]=this.onBarrel,N[A.DISPLACEMENT]=this.onDisplacement,N[A.WIPE]=this.onWipe,N[A.BOKEH]=this.onBokeh,this.fxHandlers=N,this.source,this.target,this.swap},"FXPipeline"),onDraw:function(R,L,p){this.source=R,this.target=L,this.swap=p;var N=R.width,g=R.height,C=this.tempSprite,P=this.fxHandlers;if(C&&C.preFX)for(var M=C.preFX.list,D=0;D{/** * @author Richard Davey * @author Felipe Alfonso <@bitnenfer> * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(95540),d=s(31063),c=s(57516),A=s(61340),h=s(26099),f=s(29100),S=new u({Extends:c,initialize:P(function(L){var p=T(L,"fragShader",d);L.fragShader=p.replace("%LIGHT_COUNT%",L.game.renderer.config.maxLights),c.call(this,L),this.inverseRotationMatrix=new Float32Array([1,0,0,0,1,0,0,0,1]),this.currentNormalMap,this.lightsActive=!0,this.tempVec2=new h,this._tempMatrix=new A,this._tempMatrix2=new A},"LightPipeline"),boot:function(){f.prototype.boot.call(this)},onRender:function(O,L){var p=O.sys.lights;if(this.lightsActive=!1,!(!p||!p.active)){var N=p.getLights(L),g=N.length;this.lightsActive=!0;var C,v=this.renderer,M=v.height,D=L.matrix,G=this.tempVec2;for(this.set1i("uMainSampler",0),this.set1i("uNormSampler",1),this.set2f("uResolution",this.width/2,this.height/2),this.set4f("uCamera",L.x,L.y,L.rotation,L.zoom),this.set3f("uAmbientLightColor",p.ambientColor.r,p.ambientColor.g,p.ambientColor.b),this.set1i("uLightCount",g),C=0;C0&&this.flush();var L=this.inverseRotationMatrix;if(O){var p=-O,N=Math.cos(p),g=Math.sin(p);L[1]=g,L[3]=-g,L[0]=L[4]=N}else L[0]=L[4]=1,L[1]=L[3]=0;this.setMatrix3fv("uInverseRotationMatrix",!1,L),this.currentNormalMapRotation=O}},setTexture2D:function(O,L){var p=this.renderer;O===void 0&&(O=p.whiteTexture);var N=this.getNormalMap(L);this.isNewNormalMap(O,N)&&(this.flush(),this.createBatch(O),this.addTextureToBatch(N),this.currentNormalMap=N);var g=0;if(L&&L.parentContainer){var C=L.getWorldTransformMatrix(this._tempMatrix,this._tempMatrix2);g=C.rotationNormalized}else L&&(g=L.rotation);return this.setNormalMapRotation(g),0},setGameObject:function(O,L){L===void 0&&(L=O.frame);var p=L.glTexture,N=this.getNormalMap(O);if(this.isNewNormalMap(p,N)&&(this.flush(),this.createBatch(p),this.addTextureToBatch(N),this.currentNormalMap=N),O.parentContainer){var g=O.getWorldTransformMatrix(this._tempMatrix,this._tempMatrix2);this.setNormalMapRotation(g.rotationNormalized)}else this.setNormalMapRotation(O.rotation);return 0},isNewNormalMap:function(O,L){return this.currentTexture!==O||this.currentNormalMap!==L},getNormalMap:function(O){var L;if(O)O.displayTexture?L=O.displayTexture.dataSource[O.displayFrame.sourceIndex]:O.texture?L=O.texture.dataSource[O.frame.sourceIndex]:O.tileset&&(Array.isArray(O.tileset)?L=O.tileset[0].image.dataSource[0]:L=O.tileset.image.dataSource[0]);else return this.renderer.normalTexture;return L?L.glTexture:this.renderer.normalTexture},batchSprite:function(O,L,p){this.lightsActive&&c.prototype.batchSprite.call(this,O,L,p)},batchTexture:function(O,L,p,N,g,C,v,M,D,G,H,B,_,w,b,F,k,V,Z,$,Q,te,z,j,x,X,q,J,ae,re,oe,Ee){this.lightsActive&&c.prototype.batchTexture.call(this,O,L,p,N,g,C,v,M,D,G,H,B,_,w,b,F,k,V,Z,$,Q,te,z,j,x,X,q,J,ae,re,oe,Ee)},batchTextureFrame:function(O,L,p,N,g,C,v){this.lightsActive&&c.prototype.batchTextureFrame.call(this,O,L,p,N,g,C,v)}});o.exports=S},56527:(o,m,s)=>{/** + */var u=s(83419),T=s(95540),A=s(31063),c=s(57516),d=s(61340),h=s(26099),f=s(29100),S=new u({Extends:c,initialize:v(function(L){var p=T(L,"fragShader",A);L.fragShader=p.replace("%LIGHT_COUNT%",L.game.renderer.config.maxLights),c.call(this,L),this.inverseRotationMatrix=new Float32Array([1,0,0,0,1,0,0,0,1]),this.currentNormalMap,this.lightsActive=!0,this.tempVec2=new h,this._tempMatrix=new d,this._tempMatrix2=new d},"LightPipeline"),boot:function(){f.prototype.boot.call(this)},onRender:function(R,L){var p=R.sys.lights;if(this.lightsActive=!1,!(!p||!p.active)){var N=p.getLights(L),g=N.length;this.lightsActive=!0;var C,P=this.renderer,M=P.height,D=L.matrix,G=this.tempVec2;for(this.set1i("uMainSampler",0),this.set1i("uNormSampler",1),this.set2f("uResolution",this.width/2,this.height/2),this.set4f("uCamera",L.x,L.y,L.rotation,L.zoom),this.set3f("uAmbientLightColor",p.ambientColor.r,p.ambientColor.g,p.ambientColor.b),this.set1i("uLightCount",g),C=0;C0&&this.flush();var L=this.inverseRotationMatrix;if(R){var p=-R,N=Math.cos(p),g=Math.sin(p);L[1]=g,L[3]=-g,L[0]=L[4]=N}else L[0]=L[4]=1,L[1]=L[3]=0;this.setMatrix3fv("uInverseRotationMatrix",!1,L),this.currentNormalMapRotation=R}},setTexture2D:function(R,L){var p=this.renderer;R===void 0&&(R=p.whiteTexture);var N=this.getNormalMap(L);this.isNewNormalMap(R,N)&&(this.flush(),this.createBatch(R),this.addTextureToBatch(N),this.currentNormalMap=N);var g=0;if(L&&L.parentContainer){var C=L.getWorldTransformMatrix(this._tempMatrix,this._tempMatrix2);g=C.rotationNormalized}else L&&(g=L.rotation);return this.setNormalMapRotation(g),0},setGameObject:function(R,L){L===void 0&&(L=R.frame);var p=L.glTexture,N=this.getNormalMap(R);if(this.isNewNormalMap(p,N)&&(this.flush(),this.createBatch(p),this.addTextureToBatch(N),this.currentNormalMap=N),R.parentContainer){var g=R.getWorldTransformMatrix(this._tempMatrix,this._tempMatrix2);this.setNormalMapRotation(g.rotationNormalized)}else this.setNormalMapRotation(R.rotation);return 0},isNewNormalMap:function(R,L){return this.currentTexture!==R||this.currentNormalMap!==L},getNormalMap:function(R){var L;if(R)R.displayTexture?L=R.displayTexture.dataSource[R.displayFrame.sourceIndex]:R.texture?L=R.texture.dataSource[R.frame.sourceIndex]:R.tileset&&(Array.isArray(R.tileset)?L=R.tileset[0].image.dataSource[0]:L=R.tileset.image.dataSource[0]);else return this.renderer.normalTexture;return L?L.glTexture:this.renderer.normalTexture},batchSprite:function(R,L,p){this.lightsActive&&c.prototype.batchSprite.call(this,R,L,p)},batchTexture:function(R,L,p,N,g,C,P,M,D,G,H,B,b,w,_,F,x,V,Z,$,Q,te,z,j,k,X,q,J,ne,re,oe,Ee){this.lightsActive&&c.prototype.batchTexture.call(this,R,L,p,N,g,C,P,M,D,G,H,B,b,w,_,F,x,V,Z,$,Q,te,z,j,k,X,q,J,ne,re,oe,Ee)},batchTextureFrame:function(R,L,p,N,g,C,P){this.lightsActive&&c.prototype.batchTextureFrame.call(this,R,L,p,N,g,C,P)}});o.exports=S},56527:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(95540),d=s(57516),c=s(45561),A=s(60722),h=s(14500),f=s(29100),S=new u({Extends:d,initialize:P(function(L){L.fragShader=T(L,"fragShader",c),L.vertShader=T(L,"vertShader",A),L.attributes=T(L,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2},{name:"inTexId"},{name:"inTintEffect"},{name:"inTint",size:4,type:h.UNSIGNED_BYTE,normalized:!0}]),L.forceZero=!0,L.resizeUniform="uResolution",d.call(this,L)},"MobilePipeline"),boot:function(){f.prototype.boot.call(this);var O=this.renderer;this.set1i("uMainSampler",0),this.set2f("uResolution",O.width,O.height),this.set1i("uRoundPixels",O.config.roundPixels)}});o.exports=S},57516:(o,m,s)=>{/** + */var u=s(83419),T=s(95540),A=s(57516),c=s(45561),d=s(60722),h=s(14500),f=s(29100),S=new u({Extends:A,initialize:v(function(L){L.fragShader=T(L,"fragShader",c),L.vertShader=T(L,"vertShader",d),L.attributes=T(L,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2},{name:"inTexId"},{name:"inTintEffect"},{name:"inTint",size:4,type:h.UNSIGNED_BYTE,normalized:!0}]),L.forceZero=!0,L.resizeUniform="uResolution",A.call(this,L)},"MobilePipeline"),boot:function(){f.prototype.boot.call(this);var R=this.renderer;this.set1i("uMainSampler",0),this.set2f("uResolution",R.width,R.height),this.set1i("uRoundPixels",R.config.roundPixels)}});o.exports=S},57516:(o,O,s)=>{/** * @author Richard Davey * @author Felipe Alfonso <@bitnenfer> * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(94811),d=s(95540),c=s(98840),A=s(44667),h=s(61340),f=s(70554),S=s(14500),O=s(29100),L=new u({Extends:O,initialize:P(function(N){var g=N.game.renderer,C=d(N,"fragShader",c);N.fragShader=f.parseFragmentShaderMaxTextures(C,g.maxTextures),N.vertShader=d(N,"vertShader",A),N.attributes=d(N,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2},{name:"inTexId"},{name:"inTintEffect"},{name:"inTint",size:4,type:S.UNSIGNED_BYTE,normalized:!0}]),N.resizeUniform="uResolution",O.call(this,N),this._tempMatrix1=new h,this._tempMatrix2=new h,this._tempMatrix3=new h,this.calcMatrix=new h,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=[]},"MultiPipeline"),boot:function(){O.prototype.boot.call(this);var p=this.renderer;this.set1iv("uMainSampler",p.textureIndexes),this.set2f("uResolution",p.width,p.height),this.set1i("uRoundPixels",p.config.roundPixels)},batchSprite:function(p,N,g){this.manager.set(this,p);var C=this._tempMatrix1,v=this._tempMatrix2,M=this._tempMatrix3,D=p.frame,G=D.glTexture,H=D.u0,B=D.v0,_=D.u1,w=D.v1,b=D.x,F=D.y,k=D.cutWidth,V=D.cutHeight,Z=D.customPivot,$=p.displayOriginX,Q=p.displayOriginY,te=-$+b,z=-Q+F;if(p.isCropped){var j=p._crop;(j.flipX!==p.flipX||j.flipY!==p.flipY)&&D.updateCropUVs(j,p.flipX,p.flipY),H=j.u0,B=j.v0,_=j.u1,w=j.v1,k=j.width,V=j.height,b=j.x,F=j.y,te=-$+b,z=-Q+F}var x=1,X=1;p.flipX&&(Z||(te+=-D.realWidth+$*2),x=-1),p.flipY&&(Z||(z+=-D.realHeight+Q*2),X=-1);var q=p.x,J=p.y;v.applyITRS(q,J,p.rotation,p.scaleX*x,p.scaleY*X),C.copyFrom(N.matrix),g?(C.multiplyWithOffset(g,-N.scrollX*p.scrollFactorX,-N.scrollY*p.scrollFactorY),v.e=q,v.f=J):(v.e-=N.scrollX*p.scrollFactorX,v.f-=N.scrollY*p.scrollFactorY),C.multiply(v,M);var ae=M.setQuad(te,z,te+k,z+V),re=f.getTintAppendFloatAlpha,oe=N.alpha,Ee=re(p.tintTopLeft,oe*p._alphaTL),Re=re(p.tintTopRight,oe*p._alphaTR),Le=re(p.tintBottomLeft,oe*p._alphaBL),ve=re(p.tintBottomRight,oe*p._alphaBR);this.shouldFlush(6)&&this.flush();var ye=this.setGameObject(p,D);this.manager.preBatch(p),this.currentShader.set1i("uRoundPixels",N.roundPixels),this.batchQuad(p,ae[0],ae[1],ae[2],ae[3],ae[4],ae[5],ae[6],ae[7],H,B,_,w,Ee,Re,Le,ve,p.tintFill,G,ye),this.manager.postBatch(p)},batchTexture:function(p,N,g,C,v,M,D,G,H,B,_,w,b,F,k,V,Z,$,Q,te,z,j,x,X,q,J,ae,re,oe,Ee,Re,Le,ve){ve===void 0&&(ve=!1),this.manager.set(this,p);var ye=this._tempMatrix1,De=this._tempMatrix2,ke=this._tempMatrix3,it=$/g+ae,lt=Q/C+re,at=($+te)/g+ae,Ge=(Q+z)/C+re,Je=D,tt=G,Ut=-V,Nt=-Z;if(p.isCropped){var Ta=p._crop,Ua=Ta.width,zt=Ta.height;Je=Ua,tt=zt,D=Ua,G=zt,$=Ta.x,Q=Ta.y;var bt=$,Ga=Q;w&&(bt=te-Ta.x-Ua),b&&(Ga=z-Ta.y-zt),it=bt/g+ae,lt=Ga/C+re,at=(bt+Ua)/g+ae,Ge=(Ga+zt)/C+re,Ut=-V+$,Nt=-Z+Q}b=b^(!Re&&N.isRenderTexture?1:0),w&&(Je*=-1,Ut+=D),b&&(tt*=-1,Nt+=G),De.applyITRS(v,M,_,H,B),ye.copyFrom(oe.matrix),Ee?(ye.multiplyWithOffset(Ee,-oe.scrollX*F,-oe.scrollY*k),De.e=v,De.f=M):(De.e-=oe.scrollX*F,De.f-=oe.scrollY*k),ye.multiply(De,ke);var oa=ke.setQuad(Ut,Nt,Ut+Je,Nt+tt);Le==null&&(Le=this.setTexture2D(N)),p&&!ve&&this.manager.preBatch(p),this.currentShader.set1i("uRoundPixels",oe.roundPixels),this.batchQuad(p,oa[0],oa[1],oa[2],oa[3],oa[4],oa[5],oa[6],oa[7],it,lt,at,Ge,j,x,X,q,J,N,Le),p&&!ve&&this.manager.postBatch(p)},batchTextureFrame:function(p,N,g,C,v,M,D){this.manager.set(this);var G=this._tempMatrix1.copyFrom(M),H=this._tempMatrix2;D?G.multiply(D,H):H=G;var B=H.setQuad(N,g,N+p.width,g+p.height),_=this.setTexture2D(p.source.glTexture);C=f.getTintAppendFloatAlpha(C,v),this.batchQuad(null,B[0],B[1],B[2],B[3],B[4],B[5],B[6],B[7],p.u0,p.v0,p.u1,p.v1,C,C,C,C,0,p.glTexture,_)},batchFillRect:function(p,N,g,C,v,M){this.renderer.pipelines.set(this);var D=this.calcMatrix;M&&M.multiply(v,D);var G=D.setQuad(p,N,p+g,N+C),H=this.fillTint;this.batchQuad(null,G[0],G[1],G[2],G[3],G[4],G[5],G[6],G[7],0,0,1,1,H.TL,H.TR,H.BL,H.BR,2)},batchFillTriangle:function(p,N,g,C,v,M,D,G){this.renderer.pipelines.set(this);var H=this.calcMatrix;G&&G.multiply(D,H);var B=H.getX(p,N),_=H.getY(p,N),w=H.getX(g,C),b=H.getY(g,C),F=H.getX(v,M),k=H.getY(v,M),V=this.fillTint;this.currentShader.set1i("uRoundPixels",!1),this.batchTri(null,B,_,w,b,F,k,0,0,1,1,V.TL,V.TR,V.BL,2)},batchStrokeTriangle:function(p,N,g,C,v,M,D,G,H){var B=this.tempTriangle;B[0].x=p,B[0].y=N,B[0].width=D,B[1].x=g,B[1].y=C,B[1].width=D,B[2].x=v,B[2].y=M,B[2].width=D,B[3].x=p,B[3].y=N,B[3].width=D,this.batchStrokePath(B,D,!1,G,H)},batchFillPath:function(p,N,g){this.renderer.pipelines.set(this);var C=this.calcMatrix;g&&g.multiply(N,C);for(var v=p.length,M=this.polygonCache,D,G,H=this.fillTint.TL,B=this.fillTint.TR,_=this.fillTint.BL,w=0;w0&&Je[4]?this.batchQuad(null,ye,De,Ee,Re,Je[0],Je[1],Je[2],Je[3],0,0,1,1,it,lt,at,Ge,2):(tt[0]=ye,tt[1]=De,tt[2]=Ee,tt[3]=Re,tt[4]=1),H&&tt[4]?this.batchQuad(null,re,oe,Le,ve,tt[0],tt[1],tt[2],tt[3],0,0,1,1,it,lt,at,Ge,2):(Je[0]=re,Je[1]=oe,Je[2]=Le,Je[3]=ve,Je[4]=1)}}},destroy:function(){return this._tempMatrix1.destroy(),this._tempMatrix2.destroy(),this._tempMatrix3.destroy(),this._tempMatrix1=null,this._tempMatrix1=null,this._tempMatrix1=null,O.prototype.destroy.call(this),this}});o.exports=L},43439:(o,m,s)=>{/** + */var u=s(83419),T=s(94811),A=s(95540),c=s(98840),d=s(44667),h=s(61340),f=s(70554),S=s(14500),R=s(29100),L=new u({Extends:R,initialize:v(function(N){var g=N.game.renderer,C=A(N,"fragShader",c);N.fragShader=f.parseFragmentShaderMaxTextures(C,g.maxTextures),N.vertShader=A(N,"vertShader",d),N.attributes=A(N,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2},{name:"inTexId"},{name:"inTintEffect"},{name:"inTint",size:4,type:S.UNSIGNED_BYTE,normalized:!0}]),N.resizeUniform="uResolution",R.call(this,N),this._tempMatrix1=new h,this._tempMatrix2=new h,this._tempMatrix3=new h,this.calcMatrix=new h,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=[]},"MultiPipeline"),boot:function(){R.prototype.boot.call(this);var p=this.renderer;this.set1iv("uMainSampler",p.textureIndexes),this.set2f("uResolution",p.width,p.height),this.set1i("uRoundPixels",p.config.roundPixels)},batchSprite:function(p,N,g){this.manager.set(this,p);var C=this._tempMatrix1,P=this._tempMatrix2,M=this._tempMatrix3,D=p.frame,G=D.glTexture,H=D.u0,B=D.v0,b=D.u1,w=D.v1,_=D.x,F=D.y,x=D.cutWidth,V=D.cutHeight,Z=D.customPivot,$=p.displayOriginX,Q=p.displayOriginY,te=-$+_,z=-Q+F;if(p.isCropped){var j=p._crop;(j.flipX!==p.flipX||j.flipY!==p.flipY)&&D.updateCropUVs(j,p.flipX,p.flipY),H=j.u0,B=j.v0,b=j.u1,w=j.v1,x=j.width,V=j.height,_=j.x,F=j.y,te=-$+_,z=-Q+F}var k=1,X=1;p.flipX&&(Z||(te+=-D.realWidth+$*2),k=-1),p.flipY&&(Z||(z+=-D.realHeight+Q*2),X=-1);var q=p.x,J=p.y;P.applyITRS(q,J,p.rotation,p.scaleX*k,p.scaleY*X),C.copyFrom(N.matrix),g?(C.multiplyWithOffset(g,-N.scrollX*p.scrollFactorX,-N.scrollY*p.scrollFactorY),P.e=q,P.f=J):(P.e-=N.scrollX*p.scrollFactorX,P.f-=N.scrollY*p.scrollFactorY),C.multiply(P,M);var ne=M.setQuad(te,z,te+x,z+V),re=f.getTintAppendFloatAlpha,oe=N.alpha,Ee=re(p.tintTopLeft,oe*p._alphaTL),me=re(p.tintTopRight,oe*p._alphaTR),Le=re(p.tintBottomLeft,oe*p._alphaBL),Pe=re(p.tintBottomRight,oe*p._alphaBR);this.shouldFlush(6)&&this.flush();var ye=this.setGameObject(p,D);this.manager.preBatch(p),this.currentShader.set1i("uRoundPixels",N.roundPixels),this.batchQuad(p,ne[0],ne[1],ne[2],ne[3],ne[4],ne[5],ne[6],ne[7],H,B,b,w,Ee,me,Le,Pe,p.tintFill,G,ye),this.manager.postBatch(p)},batchTexture:function(p,N,g,C,P,M,D,G,H,B,b,w,_,F,x,V,Z,$,Q,te,z,j,k,X,q,J,ne,re,oe,Ee,me,Le,Pe){Pe===void 0&&(Pe=!1),this.manager.set(this,p);var ye=this._tempMatrix1,De=this._tempMatrix2,xe=this._tempMatrix3,it=$/g+ne,lt=Q/C+re,at=($+te)/g+ne,Ge=(Q+z)/C+re,Je=D,tt=G,Ut=-V,Nt=-Z;if(p.isCropped){var La=p._crop,ya=La.width,zt=La.height;Je=ya,tt=zt,D=ya,G=zt,$=La.x,Q=La.y;var _t=$,Ha=Q;w&&(_t=te-La.x-ya),_&&(Ha=z-La.y-zt),it=_t/g+ne,lt=Ha/C+re,at=(_t+ya)/g+ne,Ge=(Ha+zt)/C+re,Ut=-V+$,Nt=-Z+Q}_=_^(!me&&N.isRenderTexture?1:0),w&&(Je*=-1,Ut+=D),_&&(tt*=-1,Nt+=G),De.applyITRS(P,M,b,H,B),ye.copyFrom(oe.matrix),Ee?(ye.multiplyWithOffset(Ee,-oe.scrollX*F,-oe.scrollY*x),De.e=P,De.f=M):(De.e-=oe.scrollX*F,De.f-=oe.scrollY*x),ye.multiply(De,xe);var la=xe.setQuad(Ut,Nt,Ut+Je,Nt+tt);Le==null&&(Le=this.setTexture2D(N)),p&&!Pe&&this.manager.preBatch(p),this.currentShader.set1i("uRoundPixels",oe.roundPixels),this.batchQuad(p,la[0],la[1],la[2],la[3],la[4],la[5],la[6],la[7],it,lt,at,Ge,j,k,X,q,J,N,Le),p&&!Pe&&this.manager.postBatch(p)},batchTextureFrame:function(p,N,g,C,P,M,D){this.manager.set(this);var G=this._tempMatrix1.copyFrom(M),H=this._tempMatrix2;D?G.multiply(D,H):H=G;var B=H.setQuad(N,g,N+p.width,g+p.height),b=this.setTexture2D(p.source.glTexture);C=f.getTintAppendFloatAlpha(C,P),this.batchQuad(null,B[0],B[1],B[2],B[3],B[4],B[5],B[6],B[7],p.u0,p.v0,p.u1,p.v1,C,C,C,C,0,p.glTexture,b)},batchFillRect:function(p,N,g,C,P,M){this.renderer.pipelines.set(this);var D=this.calcMatrix;M&&M.multiply(P,D);var G=D.setQuad(p,N,p+g,N+C),H=this.fillTint;this.batchQuad(null,G[0],G[1],G[2],G[3],G[4],G[5],G[6],G[7],0,0,1,1,H.TL,H.TR,H.BL,H.BR,2)},batchFillTriangle:function(p,N,g,C,P,M,D,G){this.renderer.pipelines.set(this);var H=this.calcMatrix;G&&G.multiply(D,H);var B=H.getX(p,N),b=H.getY(p,N),w=H.getX(g,C),_=H.getY(g,C),F=H.getX(P,M),x=H.getY(P,M),V=this.fillTint;this.currentShader.set1i("uRoundPixels",!1),this.batchTri(null,B,b,w,_,F,x,0,0,1,1,V.TL,V.TR,V.BL,2)},batchStrokeTriangle:function(p,N,g,C,P,M,D,G,H){var B=this.tempTriangle;B[0].x=p,B[0].y=N,B[0].width=D,B[1].x=g,B[1].y=C,B[1].width=D,B[2].x=P,B[2].y=M,B[2].width=D,B[3].x=p,B[3].y=N,B[3].width=D,this.batchStrokePath(B,D,!1,G,H)},batchFillPath:function(p,N,g){this.renderer.pipelines.set(this);var C=this.calcMatrix;g&&g.multiply(N,C);for(var P=p.length,M=this.polygonCache,D,G,H=this.fillTint.TL,B=this.fillTint.TR,b=this.fillTint.BL,w=0;w0&&Je[4]?this.batchQuad(null,ye,De,Ee,me,Je[0],Je[1],Je[2],Je[3],0,0,1,1,it,lt,at,Ge,2):(tt[0]=ye,tt[1]=De,tt[2]=Ee,tt[3]=me,tt[4]=1),H&&tt[4]?this.batchQuad(null,re,oe,Le,Pe,tt[0],tt[1],tt[2],tt[3],0,0,1,1,it,lt,at,Ge,2):(Je[0]=re,Je[1]=oe,Je[2]=Le,Je[3]=Pe,Je[4]=1)}}},destroy:function(){return this._tempMatrix1.destroy(),this._tempMatrix2.destroy(),this._tempMatrix3.destroy(),this._tempMatrix1=null,this._tempMatrix1=null,this._tempMatrix1=null,R.prototype.destroy.call(this),this}});o.exports=L},43439:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(95540),d=s(4127),c=s(89924),A=s(29100),h=new u({Extends:A,initialize:P(function(S){S.vertShader=T(S,"vertShader",c),S.fragShader=T(S,"fragShader",d),S.attributes=T(S,"attributes",[{name:"inPosition",size:2},{name:"inLightPosition",size:2},{name:"inLightRadius"},{name:"inLightAttenuation"},{name:"inLightColor",size:4}]),A.call(this,S)},"PointLightPipeline"),onRender:function(f,S){this.set2f("uResolution",this.width,this.height),this.set1f("uCameraZoom",S.zoom)},batchPointLight:function(f,S,O,L,p,N,g,C,v,M,D,G){var H=f.color,B=f.intensity,_=f.radius,w=f.attenuation,b=H.r*B,F=H.g*B,k=H.b*B,V=S.alpha*f.alpha;this.shouldFlush(6)&&this.flush(),this.currentBatch||this.setTexture2D(),this.batchLightVert(O,L,D,G,_,w,b,F,k,V),this.batchLightVert(p,N,D,G,_,w,b,F,k,V),this.batchLightVert(g,C,D,G,_,w,b,F,k,V),this.batchLightVert(O,L,D,G,_,w,b,F,k,V),this.batchLightVert(g,C,D,G,_,w,b,F,k,V),this.batchLightVert(v,M,D,G,_,w,b,F,k,V),this.currentBatch.count=this.vertexCount-this.currentBatch.start},batchLightVert:function(f,S,O,L,p,N,g,C,v,M){var D=this.vertexViewF32,G=this.vertexCount*this.currentShader.vertexComponentCount-1;D[++G]=f,D[++G]=S,D[++G]=O,D[++G]=L,D[++G]=p,D[++G]=N,D[++G]=g,D[++G]=C,D[++G]=v,D[++G]=M,this.vertexCount++}});o.exports=h},84057:(o,m,s)=>{/** + */var u=s(83419),T=s(95540),A=s(4127),c=s(89924),d=s(29100),h=new u({Extends:d,initialize:v(function(S){S.vertShader=T(S,"vertShader",c),S.fragShader=T(S,"fragShader",A),S.attributes=T(S,"attributes",[{name:"inPosition",size:2},{name:"inLightPosition",size:2},{name:"inLightRadius"},{name:"inLightAttenuation"},{name:"inLightColor",size:4}]),d.call(this,S)},"PointLightPipeline"),onRender:function(f,S){this.set2f("uResolution",this.width,this.height),this.set1f("uCameraZoom",S.zoom)},batchPointLight:function(f,S,R,L,p,N,g,C,P,M,D,G){var H=f.color,B=f.intensity,b=f.radius,w=f.attenuation,_=H.r*B,F=H.g*B,x=H.b*B,V=S.alpha*f.alpha;this.shouldFlush(6)&&this.flush(),this.currentBatch||this.setTexture2D(),this.batchLightVert(R,L,D,G,b,w,_,F,x,V),this.batchLightVert(p,N,D,G,b,w,_,F,x,V),this.batchLightVert(g,C,D,G,b,w,_,F,x,V),this.batchLightVert(R,L,D,G,b,w,_,F,x,V),this.batchLightVert(g,C,D,G,b,w,_,F,x,V),this.batchLightVert(P,M,D,G,b,w,_,F,x,V),this.currentBatch.count=this.vertexCount-this.currentBatch.start},batchLightVert:function(f,S,R,L,p,N,g,C,P,M){var D=this.vertexViewF32,G=this.vertexCount*this.currentShader.vertexComponentCount-1;D[++G]=f,D[++G]=S,D[++G]=R,D[++G]=L,D[++G]=p,D[++G]=N,D[++G]=g,D[++G]=C,D[++G]=P,D[++G]=M,this.vertexCount++}});o.exports=h},84057:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(89422),d=s(95540),c=s(27681),A=s(49627),h=s(29100),f=new u({Extends:h,initialize:P(function(O){O.renderTarget=d(O,"renderTarget",1),O.fragShader=d(O,"fragShader",c),O.vertShader=d(O,"vertShader",A),O.attributes=d(O,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2}]),O.batchSize=1,O.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],h.call(this,O),this.isPostFX=!0,this.gameObject,this.controller,this.colorMatrix=new T,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2,this.renderer.isBooted&&(this.manager=this.renderer.pipelines)},"PostFXPipeline"),bootFX:function(){h.prototype.boot.call(this);var S=this.manager.UTILITY_PIPELINE;this.fullFrame1=S.fullFrame1,this.fullFrame2=S.fullFrame2,this.halfFrame1=S.halfFrame1,this.halfFrame2=S.halfFrame2;var O=this.renderer;this.set1i("uMainSampler",0),this.set2f("uResolution",O.width,O.height),this.set1i("uRoundPixels",O.config.roundPixels);for(var L=this.renderTargets,p=0;p{/** + */var u=s(83419),T=s(89422),A=s(95540),c=s(27681),d=s(49627),h=s(29100),f=new u({Extends:h,initialize:v(function(R){R.renderTarget=A(R,"renderTarget",1),R.fragShader=A(R,"fragShader",c),R.vertShader=A(R,"vertShader",d),R.attributes=A(R,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2}]),R.batchSize=1,R.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],h.call(this,R),this.isPostFX=!0,this.gameObject,this.controller,this.colorMatrix=new T,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2,this.renderer.isBooted&&(this.manager=this.renderer.pipelines)},"PostFXPipeline"),bootFX:function(){h.prototype.boot.call(this);var S=this.manager.UTILITY_PIPELINE;this.fullFrame1=S.fullFrame1,this.fullFrame2=S.fullFrame2,this.halfFrame1=S.halfFrame1,this.halfFrame2=S.halfFrame2;var R=this.renderer;this.set1i("uMainSampler",0),this.set2f("uResolution",R.width,R.height),this.set1i("uRoundPixels",R.config.roundPixels);for(var L=this.renderTargets,p=0;p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(10312),T=s(67502),d=s(83419),c=s(96293),A=s(95540),h=s(57516),f=s(27681),S=s(87841),O=s(32302),L=s(45561),p=s(60722),N=s(29100),g=new d({Extends:h,initialize:P(function(v){var M=A(v,"fragShader",f),D=A(v,"vertShader",p),G=A(v,"drawShader",f),H=[{name:"DrawSprite",fragShader:L,vertShader:p},{name:"CopySprite",fragShader:M,vertShader:D},{name:"DrawGame",fragShader:G,vertShader:p},{name:"ColorMatrix",fragShader:c}],B=A(v,"shaders",[]);v.shaders=H.concat(B),v.vertShader||(v.vertShader=D),v.batchSize=1,h.call(this,v),this.isPreFX=!0,this.customMainSampler=null,this.drawSpriteShader,this.copyShader,this.gameShader,this.colorMatrixShader,this.quadVertexData,this.quadVertexBuffer,this.quadVertexViewF32,this.spriteBounds=new S,this.targetBounds=new S,this.fsTarget,this.tempSprite,this.renderer.isBooted&&(this.manager=this.renderer.pipelines,this.boot())},"PreFXPipeline"),boot:function(){N.prototype.boot.call(this);var C=this.shaders,v=this.renderer;this.drawSpriteShader=C[0],this.copyShader=C[1],this.gameShader=C[2],this.colorMatrixShader=C[3],this.fsTarget=new O(v,v.width,v.height,1,0,!0,!0),this.renderTargets=this.manager.renderTargets.concat(this.fsTarget);var M=new ArrayBuffer(168);this.quadVertexData=M,this.quadVertexViewF32=new Float32Array(M),this.quadVertexBuffer=v.createVertexBuffer(M,this.gl.STATIC_DRAW),this.onResize(v.width,v.height),this.currentShader=this.copyShader,this.set2f("uResolution",v.width,v.height),this.set1i("uRoundPixels",v.config.roundPixels)},onResize:function(C,v){var M=this.quadVertexViewF32;M[1]=v,M[22]=v,M[14]=C,M[28]=C,M[35]=C,M[36]=v},batchQuad:function(C,v,M,D,G,H,B,_,w,b,F,k,V,Z,$,Q,te,z,j){var x=Math.min(v,D,H,_),X=Math.min(M,G,B,w),q=Math.max(v,D,H,_),J=Math.max(M,G,B,w),ae=q-x,re=J-X,oe=this.spriteBounds.setTo(x,X,ae,re),Ee=C?C.preFX.padding:0,Re=ae+Ee*2,Le=re+Ee*2,ve=Math.abs(Math.max(Re,Le)),ye=this.manager.getRenderTarget(ve),De=this.targetBounds.setTo(0,0,ye.width,ye.height);T(De,oe.centerX,oe.centerY),this.tempSprite=C;var ke=this.gl,it=this.renderer;it.clearStencilMask(),this.setShader(this.drawSpriteShader),this.set1i("uMainSampler",0),this.set2f("uResolution",it.width,it.height),this.set1i("uRoundPixels",it.config.roundPixels),this.flipProjectionMatrix(!0),C&&(this.onDrawSprite(C,ye),C.preFX.onFX(this));var lt=this.fsTarget;return this.flush(),ke.viewport(0,0,it.width,it.height),ke.bindFramebuffer(ke.FRAMEBUFFER,lt.framebuffer.webGLFramebuffer),ke.framebufferTexture2D(ke.FRAMEBUFFER,ke.COLOR_ATTACHMENT0,ke.TEXTURE_2D,lt.texture.webGLTexture,0),ke.clearColor(0,0,0,0),ke.clear(ke.COLOR_BUFFER_BIT),this.setTexture2D(j),this.batchVert(v,M,b,F,0,z,Z),this.batchVert(D,G,b,V,0,z,Q),this.batchVert(H,B,k,V,0,z,te),this.batchVert(v,M,b,F,0,z,Z),this.batchVert(H,B,k,V,0,z,te),this.batchVert(_,w,k,F,0,z,$),this.flush(),this.flipProjectionMatrix(!1),ke.activeTexture(ke.TEXTURE0),ke.bindTexture(ke.TEXTURE_2D,ye.texture.webGLTexture),ke.copyTexSubImage2D(ke.TEXTURE_2D,0,0,0,De.x,De.y,De.width,De.height),ke.bindFramebuffer(ke.FRAMEBUFFER,null),ke.bindTexture(ke.TEXTURE_2D,null),this.onBatch(C),this.currentShader=this.copyShader,this.onDraw(ye,this.manager.getSwapRenderTarget(),this.manager.getAltSwapRenderTarget()),!0},onDrawSprite:function(){},onCopySprite:function(){},copySprite:function(C,v,M,D,G,H,B){M===void 0&&(M=!0),D===void 0&&(D=!0),G===void 0&&(G=!1),B===void 0&&(B=this.copyShader);var _=this.gl,w=this.tempSprite;H&&(B=this.colorMatrixShader),this.currentShader=B;var b=this.setVertexBuffer(this.quadVertexBuffer);B.bind(b,!1);var F=this.renderer;if(this.set1i("uMainSampler",0),this.set2f("uResolution",F.width,F.height),this.set1i("uRoundPixels",F.config.roundPixels),w.preFX.onFXCopy(this),this.onCopySprite(C,v,w),H&&(this.set1fv("uColorMatrix",H.getData()),this.set1f("uAlpha",H.alpha)),_.activeTexture(_.TEXTURE0),_.bindTexture(_.TEXTURE_2D,C.texture.webGLTexture),C.height>v.height)_.viewport(0,0,C.width,C.height),this.setTargetUVs(C,v);else{var k=v.height-C.height;_.viewport(0,k,C.width,C.height),this.resetUVs()}if(_.bindFramebuffer(_.FRAMEBUFFER,v.framebuffer.webGLFramebuffer),_.framebufferTexture2D(_.FRAMEBUFFER,_.COLOR_ATTACHMENT0,_.TEXTURE_2D,v.texture.webGLTexture,0),M&&(_.clearColor(0,0,0,+!D),_.clear(_.COLOR_BUFFER_BIT)),G){var V=this.renderer.currentBlendMode;this.renderer.setBlendMode(u.ERASE)}_.bufferData(_.ARRAY_BUFFER,this.quadVertexData,_.STATIC_DRAW),_.drawArrays(_.TRIANGLES,0,6),G&&this.renderer.setBlendMode(V),_.bindFramebuffer(_.FRAMEBUFFER,null)},copy:function(C,v){var M=this.gl;this.set1i("uMainSampler",0),M.activeTexture(M.TEXTURE0),M.bindTexture(M.TEXTURE_2D,C.texture.webGLTexture),M.viewport(0,0,C.width,C.height),this.setUVs(0,0,0,1,1,1,1,0),M.bindFramebuffer(M.FRAMEBUFFER,v.framebuffer.webGLFramebuffer),M.framebufferTexture2D(M.FRAMEBUFFER,M.COLOR_ATTACHMENT0,M.TEXTURE_2D,v.texture.webGLTexture,0),M.clearColor(0,0,0,0),M.clear(M.COLOR_BUFFER_BIT),M.bufferData(M.ARRAY_BUFFER,this.quadVertexData,M.STATIC_DRAW),M.drawArrays(M.TRIANGLES,0,6),M.bindFramebuffer(M.FRAMEBUFFER,null)},blendFrames:function(C,v,M,D,G){this.manager.blendFrames(C,v,M,D,G)},blendFramesAdditive:function(C,v,M,D,G){this.manager.blendFramesAdditive(C,v,M,D,G)},drawToGame:function(C){this.currentShader=null,this.setShader(this.copyShader),this.bindAndDraw(C)},copyToGame:function(C){this.currentShader=null,this.setShader(this.gameShader),this.bindAndDraw(C)},bindAndDraw:function(C){var v=this.gl,M=this.renderer;this.set1i("uMainSampler",0),this.customMainSampler?this.setTexture2D(this.customMainSampler):this.setTexture2D(C.texture);var D=this._tempMatrix1.loadIdentity(),G=this.targetBounds.x,H=this.targetBounds.y,B=G+C.width,_=H+C.height,w=D.getX(G,H),b=D.getX(G,_),F=D.getX(B,_),k=D.getX(B,H),V=D.getY(G,H),Z=D.getY(G,_),$=D.getY(B,_),Q=D.getY(B,H),te=16777215;this.batchVert(w,V,0,0,0,0,te),this.batchVert(b,Z,0,1,0,0,te),this.batchVert(F,$,1,1,0,0,te),this.batchVert(w,V,0,0,0,0,te),this.batchVert(F,$,1,1,0,0,te),this.batchVert(k,Q,1,0,0,0,te),M.restoreFramebuffer(!1,!0),M.currentFramebuffer||v.viewport(0,0,M.width,M.height),M.restoreStencilMask(),this.flush(),this.tempSprite=null},onDraw:function(C){this.drawToGame(C)},setUVs:function(C,v,M,D,G,H,B,_){var w=this.quadVertexViewF32;w[2]=C,w[3]=v,w[9]=M,w[10]=D,w[16]=G,w[17]=H,w[23]=C,w[24]=v,w[30]=G,w[31]=H,w[37]=B,w[38]=_},setTargetUVs:function(C,v){var M=v.height/C.height;M>.5?M=.5-(M-.5):M=.5+(.5-M),this.setUVs(0,M,0,1+M,1,1+M,1,M)},resetUVs:function(){this.setUVs(0,0,0,1,1,1,1,0)},destroy:function(){return this.renderer.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,h.prototype.destroy.call(this),this}});o.exports=g},81041:(o,m,s)=>{/** + */var u=s(10312),T=s(67502),A=s(83419),c=s(96293),d=s(95540),h=s(57516),f=s(27681),S=s(87841),R=s(32302),L=s(45561),p=s(60722),N=s(29100),g=new A({Extends:h,initialize:v(function(P){var M=d(P,"fragShader",f),D=d(P,"vertShader",p),G=d(P,"drawShader",f),H=[{name:"DrawSprite",fragShader:L,vertShader:p},{name:"CopySprite",fragShader:M,vertShader:D},{name:"DrawGame",fragShader:G,vertShader:p},{name:"ColorMatrix",fragShader:c}],B=d(P,"shaders",[]);P.shaders=H.concat(B),P.vertShader||(P.vertShader=D),P.batchSize=1,h.call(this,P),this.isPreFX=!0,this.customMainSampler=null,this.drawSpriteShader,this.copyShader,this.gameShader,this.colorMatrixShader,this.quadVertexData,this.quadVertexBuffer,this.quadVertexViewF32,this.spriteBounds=new S,this.targetBounds=new S,this.fsTarget,this.tempSprite,this.renderer.isBooted&&(this.manager=this.renderer.pipelines,this.boot())},"PreFXPipeline"),boot:function(){N.prototype.boot.call(this);var C=this.shaders,P=this.renderer;this.drawSpriteShader=C[0],this.copyShader=C[1],this.gameShader=C[2],this.colorMatrixShader=C[3],this.fsTarget=new R(P,P.width,P.height,1,0,!0,!0),this.renderTargets=this.manager.renderTargets.concat(this.fsTarget);var M=new ArrayBuffer(168);this.quadVertexData=M,this.quadVertexViewF32=new Float32Array(M),this.quadVertexBuffer=P.createVertexBuffer(M,this.gl.STATIC_DRAW),this.onResize(P.width,P.height),this.currentShader=this.copyShader,this.set2f("uResolution",P.width,P.height),this.set1i("uRoundPixels",P.config.roundPixels)},onResize:function(C,P){var M=this.quadVertexViewF32;M[1]=P,M[22]=P,M[14]=C,M[28]=C,M[35]=C,M[36]=P},batchQuad:function(C,P,M,D,G,H,B,b,w,_,F,x,V,Z,$,Q,te,z,j){var k=Math.min(P,D,H,b),X=Math.min(M,G,B,w),q=Math.max(P,D,H,b),J=Math.max(M,G,B,w),ne=q-k,re=J-X,oe=this.spriteBounds.setTo(k,X,ne,re),Ee=C?C.preFX.padding:0,me=ne+Ee*2,Le=re+Ee*2,Pe=Math.abs(Math.max(me,Le)),ye=this.manager.getRenderTarget(Pe),De=this.targetBounds.setTo(0,0,ye.width,ye.height);T(De,oe.centerX,oe.centerY),this.tempSprite=C;var xe=this.gl,it=this.renderer;it.clearStencilMask(),this.setShader(this.drawSpriteShader),this.set1i("uMainSampler",0),this.set2f("uResolution",it.width,it.height),this.set1i("uRoundPixels",it.config.roundPixels),this.flipProjectionMatrix(!0),C&&(this.onDrawSprite(C,ye),C.preFX.onFX(this));var lt=this.fsTarget;return this.flush(),xe.viewport(0,0,it.width,it.height),xe.bindFramebuffer(xe.FRAMEBUFFER,lt.framebuffer.webGLFramebuffer),xe.framebufferTexture2D(xe.FRAMEBUFFER,xe.COLOR_ATTACHMENT0,xe.TEXTURE_2D,lt.texture.webGLTexture,0),xe.clearColor(0,0,0,0),xe.clear(xe.COLOR_BUFFER_BIT),this.setTexture2D(j),this.batchVert(P,M,_,F,0,z,Z),this.batchVert(D,G,_,V,0,z,Q),this.batchVert(H,B,x,V,0,z,te),this.batchVert(P,M,_,F,0,z,Z),this.batchVert(H,B,x,V,0,z,te),this.batchVert(b,w,x,F,0,z,$),this.flush(),this.flipProjectionMatrix(!1),xe.activeTexture(xe.TEXTURE0),xe.bindTexture(xe.TEXTURE_2D,ye.texture.webGLTexture),xe.copyTexSubImage2D(xe.TEXTURE_2D,0,0,0,De.x,De.y,De.width,De.height),xe.bindFramebuffer(xe.FRAMEBUFFER,null),xe.bindTexture(xe.TEXTURE_2D,null),this.onBatch(C),this.currentShader=this.copyShader,this.onDraw(ye,this.manager.getSwapRenderTarget(),this.manager.getAltSwapRenderTarget()),!0},onDrawSprite:function(){},onCopySprite:function(){},copySprite:function(C,P,M,D,G,H,B){M===void 0&&(M=!0),D===void 0&&(D=!0),G===void 0&&(G=!1),B===void 0&&(B=this.copyShader);var b=this.gl,w=this.tempSprite;H&&(B=this.colorMatrixShader),this.currentShader=B;var _=this.setVertexBuffer(this.quadVertexBuffer);B.bind(_,!1);var F=this.renderer;if(this.set1i("uMainSampler",0),this.set2f("uResolution",F.width,F.height),this.set1i("uRoundPixels",F.config.roundPixels),w.preFX.onFXCopy(this),this.onCopySprite(C,P,w),H&&(this.set1fv("uColorMatrix",H.getData()),this.set1f("uAlpha",H.alpha)),b.activeTexture(b.TEXTURE0),b.bindTexture(b.TEXTURE_2D,C.texture.webGLTexture),C.height>P.height)b.viewport(0,0,C.width,C.height),this.setTargetUVs(C,P);else{var x=P.height-C.height;b.viewport(0,x,C.width,C.height),this.resetUVs()}if(b.bindFramebuffer(b.FRAMEBUFFER,P.framebuffer.webGLFramebuffer),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,P.texture.webGLTexture,0),M&&(b.clearColor(0,0,0,+!D),b.clear(b.COLOR_BUFFER_BIT)),G){var V=this.renderer.currentBlendMode;this.renderer.setBlendMode(u.ERASE)}b.bufferData(b.ARRAY_BUFFER,this.quadVertexData,b.STATIC_DRAW),b.drawArrays(b.TRIANGLES,0,6),G&&this.renderer.setBlendMode(V),b.bindFramebuffer(b.FRAMEBUFFER,null)},copy:function(C,P){var M=this.gl;this.set1i("uMainSampler",0),M.activeTexture(M.TEXTURE0),M.bindTexture(M.TEXTURE_2D,C.texture.webGLTexture),M.viewport(0,0,C.width,C.height),this.setUVs(0,0,0,1,1,1,1,0),M.bindFramebuffer(M.FRAMEBUFFER,P.framebuffer.webGLFramebuffer),M.framebufferTexture2D(M.FRAMEBUFFER,M.COLOR_ATTACHMENT0,M.TEXTURE_2D,P.texture.webGLTexture,0),M.clearColor(0,0,0,0),M.clear(M.COLOR_BUFFER_BIT),M.bufferData(M.ARRAY_BUFFER,this.quadVertexData,M.STATIC_DRAW),M.drawArrays(M.TRIANGLES,0,6),M.bindFramebuffer(M.FRAMEBUFFER,null)},blendFrames:function(C,P,M,D,G){this.manager.blendFrames(C,P,M,D,G)},blendFramesAdditive:function(C,P,M,D,G){this.manager.blendFramesAdditive(C,P,M,D,G)},drawToGame:function(C){this.currentShader=null,this.setShader(this.copyShader),this.bindAndDraw(C)},copyToGame:function(C){this.currentShader=null,this.setShader(this.gameShader),this.bindAndDraw(C)},bindAndDraw:function(C){var P=this.gl,M=this.renderer;this.set1i("uMainSampler",0),this.customMainSampler?this.setTexture2D(this.customMainSampler):this.setTexture2D(C.texture);var D=this._tempMatrix1.loadIdentity(),G=this.targetBounds.x,H=this.targetBounds.y,B=G+C.width,b=H+C.height,w=D.getX(G,H),_=D.getX(G,b),F=D.getX(B,b),x=D.getX(B,H),V=D.getY(G,H),Z=D.getY(G,b),$=D.getY(B,b),Q=D.getY(B,H),te=16777215;this.batchVert(w,V,0,0,0,0,te),this.batchVert(_,Z,0,1,0,0,te),this.batchVert(F,$,1,1,0,0,te),this.batchVert(w,V,0,0,0,0,te),this.batchVert(F,$,1,1,0,0,te),this.batchVert(x,Q,1,0,0,0,te),M.restoreFramebuffer(!1,!0),M.currentFramebuffer||P.viewport(0,0,M.width,M.height),M.restoreStencilMask(),this.flush(),this.tempSprite=null},onDraw:function(C){this.drawToGame(C)},setUVs:function(C,P,M,D,G,H,B,b){var w=this.quadVertexViewF32;w[2]=C,w[3]=P,w[9]=M,w[10]=D,w[16]=G,w[17]=H,w[23]=C,w[24]=P,w[30]=G,w[31]=H,w[37]=B,w[38]=b},setTargetUVs:function(C,P){var M=P.height/C.height;M>.5?M=.5-(M-.5):M=.5+(.5-M),this.setUVs(0,M,0,1+M,1,1+M,1,M)},resetUVs:function(){this.setUVs(0,0,0,1,1,1,1,0)},destroy:function(){return this.renderer.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,h.prototype.destroy.call(this),this}});o.exports=g},81041:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(95540),d=s(57516),c=new u({Extends:d,initialize:P(function(h){h.topology=5,h.batchSize=T(h,"batchSize",256),d.call(this,h)},"RopePipeline")});o.exports=c},12385:(o,m,s)=>{/** + */var u=s(83419),T=s(95540),A=s(57516),c=new u({Extends:A,initialize:v(function(h){h.topology=5,h.batchSize=T(h,"batchSize",256),A.call(this,h)},"RopePipeline")});o.exports=c},12385:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(95540),d=s(57516),c=s(45561),A=s(60722),h=s(29100),f=new u({Extends:d,initialize:P(function(O){O.fragShader=T(O,"fragShader",c),O.vertShader=T(O,"vertShader",A),O.forceZero=!0,d.call(this,O)},"SinglePipeline"),boot:function(){h.prototype.boot.call(this);var S=this.renderer;this.set1i("uMainSampler",0),this.set2f("uResolution",S.width,S.height),this.set1i("uRoundPixels",S.config.roundPixels)}});o.exports=f},7589:(o,m,s)=>{/** + */var u=s(83419),T=s(95540),A=s(57516),c=s(45561),d=s(60722),h=s(29100),f=new u({Extends:A,initialize:v(function(R){R.fragShader=T(R,"fragShader",c),R.vertShader=T(R,"vertShader",d),R.forceZero=!0,A.call(this,R)},"SinglePipeline"),boot:function(){h.prototype.boot.call(this);var S=this.renderer;this.set1i("uMainSampler",0),this.set2f("uResolution",S.width,S.height),this.set1i("uRoundPixels",S.config.roundPixels)}});o.exports=f},7589:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(35407),T=s(10312),d=s(83419),c=s(89422),A=s(96293),h=s(36682),f=s(95540),S=s(48247),O=s(49627),L=s(29100),p=new d({Extends:L,initialize:P(function(g){g.renderTarget=f(g,"renderTarget",[{scale:1,autoResize:!0},{scale:1,autoResize:!0},{scale:.5,autoResize:!0},{scale:.5,autoResize:!0}]),g.vertShader=f(g,"vertShader",O),g.shaders=f(g,"shaders",[{name:"Copy",fragShader:h},{name:"AddBlend",fragShader:u},{name:"LinearBlend",fragShader:S},{name:"ColorMatrix",fragShader:A}]),g.attributes=f(g,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2}]),g.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],g.batchSize=1,L.call(this,g),this.colorMatrix=new c,this.copyShader,this.addShader,this.linearShader,this.colorMatrixShader,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2},"UtilityPipeline"),boot:function(){L.prototype.boot.call(this);var N=this.shaders,g=this.renderTargets;this.copyShader=N[0],this.addShader=N[1],this.linearShader=N[2],this.colorMatrixShader=N[3],this.fullFrame1=g[0],this.fullFrame2=g[1],this.halfFrame1=g[2],this.halfFrame2=g[3]},copyFrame:function(N,g,C,v,M){C===void 0&&(C=1),v===void 0&&(v=!0),M===void 0&&(M=!0);var D=this.gl;this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",C),D.activeTexture(D.TEXTURE0),D.bindTexture(D.TEXTURE_2D,N.texture.webGLTexture),g?(D.viewport(0,0,g.width,g.height),D.bindFramebuffer(D.FRAMEBUFFER,g.framebuffer.webGLFramebuffer),D.framebufferTexture2D(D.FRAMEBUFFER,D.COLOR_ATTACHMENT0,D.TEXTURE_2D,g.texture.webGLTexture,0)):D.viewport(0,0,N.width,N.height),v&&(M?D.clearColor(0,0,0,0):D.clearColor(0,0,0,1),D.clear(D.COLOR_BUFFER_BIT)),D.bufferData(D.ARRAY_BUFFER,this.vertexData,D.STATIC_DRAW),D.drawArrays(D.TRIANGLES,0,6),D.bindFramebuffer(D.FRAMEBUFFER,null),D.bindTexture(D.TEXTURE_2D,null)},blitFrame:function(N,g,C,v,M,D,G){C===void 0&&(C=1),v===void 0&&(v=!0),M===void 0&&(M=!0),D===void 0&&(D=!1),G===void 0&&(G=!1);var H=this.gl;if(this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",C),H.activeTexture(H.TEXTURE0),H.bindTexture(H.TEXTURE_2D,N.texture.webGLTexture),N.height>g.height)H.viewport(0,0,N.width,N.height),this.setTargetUVs(N,g);else{var B=g.height-N.height;H.viewport(0,B,N.width,N.height)}if(H.bindFramebuffer(H.FRAMEBUFFER,g.framebuffer.webGLFramebuffer),H.framebufferTexture2D(H.FRAMEBUFFER,H.COLOR_ATTACHMENT0,H.TEXTURE_2D,g.texture.webGLTexture,0),v&&(M?H.clearColor(0,0,0,0):H.clearColor(0,0,0,1),H.clear(H.COLOR_BUFFER_BIT)),D){var _=this.renderer.currentBlendMode;this.renderer.setBlendMode(T.ERASE)}G&&this.flipY(),H.bufferData(H.ARRAY_BUFFER,this.vertexData,H.STATIC_DRAW),H.drawArrays(H.TRIANGLES,0,6),D&&this.renderer.setBlendMode(_),H.bindFramebuffer(H.FRAMEBUFFER,null),H.bindTexture(H.TEXTURE_2D,null),this.resetUVs()},copyFrameRect:function(N,g,C,v,M,D,G,H){G===void 0&&(G=!0),H===void 0&&(H=!0);var B=this.gl;B.bindFramebuffer(B.FRAMEBUFFER,N.framebuffer.webGLFramebuffer),B.framebufferTexture2D(B.FRAMEBUFFER,B.COLOR_ATTACHMENT0,B.TEXTURE_2D,N.texture.webGLTexture,0),G&&(H?B.clearColor(0,0,0,0):B.clearColor(0,0,0,1),B.clear(B.COLOR_BUFFER_BIT)),B.activeTexture(B.TEXTURE0),B.bindTexture(B.TEXTURE_2D,g.texture.webGLTexture),B.copyTexSubImage2D(B.TEXTURE_2D,0,0,0,C,v,M,D),B.bindFramebuffer(B.FRAMEBUFFER,null),B.bindTexture(B.TEXTURE_2D,null)},copyToGame:function(N){var g=this.gl;this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",1),this.renderer.popFramebuffer(),g.activeTexture(g.TEXTURE0),g.bindTexture(g.TEXTURE_2D,N.texture.webGLTexture),g.bufferData(g.ARRAY_BUFFER,this.vertexData,g.STATIC_DRAW),g.drawArrays(g.TRIANGLES,0,6)},drawFrame:function(N,g,C,v){C===void 0&&(C=!0),v===void 0&&(v=this.colorMatrix);var M=this.gl;this.setShader(this.colorMatrixShader),this.set1i("uMainSampler",0),this.set1fv("uColorMatrix",v.getData()),this.set1f("uAlpha",v.alpha),M.activeTexture(M.TEXTURE0),M.bindTexture(M.TEXTURE_2D,N.texture.webGLTexture),g?(M.viewport(0,0,g.width,g.height),M.bindFramebuffer(M.FRAMEBUFFER,g.framebuffer.webGLFramebuffer),M.framebufferTexture2D(M.FRAMEBUFFER,M.COLOR_ATTACHMENT0,M.TEXTURE_2D,g.texture.webGLTexture,0)):M.viewport(0,0,N.width,N.height),C?M.clearColor(0,0,0,0):M.clearColor(0,0,0,1),M.clear(M.COLOR_BUFFER_BIT),M.bufferData(M.ARRAY_BUFFER,this.vertexData,M.STATIC_DRAW),M.drawArrays(M.TRIANGLES,0,6),M.bindFramebuffer(M.FRAMEBUFFER,null),M.bindTexture(M.TEXTURE_2D,null)},blendFrames:function(N,g,C,v,M,D){v===void 0&&(v=1),M===void 0&&(M=!0),D===void 0&&(D=this.linearShader);var G=this.gl;this.setShader(D),this.set1i("uMainSampler1",0),this.set1i("uMainSampler2",1),this.set1f("uStrength",v),G.activeTexture(G.TEXTURE0),G.bindTexture(G.TEXTURE_2D,N.texture.webGLTexture),G.activeTexture(G.TEXTURE1),G.bindTexture(G.TEXTURE_2D,g.texture.webGLTexture),C?(G.bindFramebuffer(G.FRAMEBUFFER,C.framebuffer.webGLFramebuffer),G.framebufferTexture2D(G.FRAMEBUFFER,G.COLOR_ATTACHMENT0,G.TEXTURE_2D,C.texture.webGLTexture,0),G.viewport(0,0,C.width,C.height)):G.viewport(0,0,N.width,N.height),M?G.clearColor(0,0,0,0):G.clearColor(0,0,0,1),G.clear(G.COLOR_BUFFER_BIT),G.bufferData(G.ARRAY_BUFFER,this.vertexData,G.STATIC_DRAW),G.drawArrays(G.TRIANGLES,0,6),G.bindFramebuffer(G.FRAMEBUFFER,null),G.bindTexture(G.TEXTURE_2D,null)},blendFramesAdditive:function(N,g,C,v,M){this.blendFrames(N,g,C,v,M,this.addShader)},clearFrame:function(N,g){g===void 0&&(g=!0);var C=this.gl;C.viewport(0,0,N.width,N.height),C.bindFramebuffer(C.FRAMEBUFFER,N.framebuffer.webGLFramebuffer),g?C.clearColor(0,0,0,0):C.clearColor(0,0,0,1),C.clear(C.COLOR_BUFFER_BIT);var v=this.renderer.currentFramebuffer;C.bindFramebuffer(C.FRAMEBUFFER,v.webGLFramebuffer)},setUVs:function(N,g,C,v,M,D,G,H){var B=this.vertexViewF32;B[2]=N,B[3]=g,B[6]=C,B[7]=v,B[10]=M,B[11]=D,B[14]=N,B[15]=g,B[18]=M,B[19]=D,B[22]=G,B[23]=H},setTargetUVs:function(N,g){var C=g.height/N.height;C>.5?C=.5-(C-.5):C=.5+(.5-C),this.setUVs(0,C,0,1+C,1,1+C,1,C)},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)}});o.exports=p},36060:o=>{/** + */var u=s(35407),T=s(10312),A=s(83419),c=s(89422),d=s(96293),h=s(36682),f=s(95540),S=s(48247),R=s(49627),L=s(29100),p=new A({Extends:L,initialize:v(function(g){g.renderTarget=f(g,"renderTarget",[{scale:1,autoResize:!0},{scale:1,autoResize:!0},{scale:.5,autoResize:!0},{scale:.5,autoResize:!0}]),g.vertShader=f(g,"vertShader",R),g.shaders=f(g,"shaders",[{name:"Copy",fragShader:h},{name:"AddBlend",fragShader:u},{name:"LinearBlend",fragShader:S},{name:"ColorMatrix",fragShader:d}]),g.attributes=f(g,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2}]),g.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],g.batchSize=1,L.call(this,g),this.colorMatrix=new c,this.copyShader,this.addShader,this.linearShader,this.colorMatrixShader,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2},"UtilityPipeline"),boot:function(){L.prototype.boot.call(this);var N=this.shaders,g=this.renderTargets;this.copyShader=N[0],this.addShader=N[1],this.linearShader=N[2],this.colorMatrixShader=N[3],this.fullFrame1=g[0],this.fullFrame2=g[1],this.halfFrame1=g[2],this.halfFrame2=g[3]},copyFrame:function(N,g,C,P,M){C===void 0&&(C=1),P===void 0&&(P=!0),M===void 0&&(M=!0);var D=this.gl;this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",C),D.activeTexture(D.TEXTURE0),D.bindTexture(D.TEXTURE_2D,N.texture.webGLTexture),g?(D.viewport(0,0,g.width,g.height),D.bindFramebuffer(D.FRAMEBUFFER,g.framebuffer.webGLFramebuffer),D.framebufferTexture2D(D.FRAMEBUFFER,D.COLOR_ATTACHMENT0,D.TEXTURE_2D,g.texture.webGLTexture,0)):D.viewport(0,0,N.width,N.height),P&&(M?D.clearColor(0,0,0,0):D.clearColor(0,0,0,1),D.clear(D.COLOR_BUFFER_BIT)),D.bufferData(D.ARRAY_BUFFER,this.vertexData,D.STATIC_DRAW),D.drawArrays(D.TRIANGLES,0,6),D.bindFramebuffer(D.FRAMEBUFFER,null),D.bindTexture(D.TEXTURE_2D,null)},blitFrame:function(N,g,C,P,M,D,G){C===void 0&&(C=1),P===void 0&&(P=!0),M===void 0&&(M=!0),D===void 0&&(D=!1),G===void 0&&(G=!1);var H=this.gl;if(this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",C),H.activeTexture(H.TEXTURE0),H.bindTexture(H.TEXTURE_2D,N.texture.webGLTexture),N.height>g.height)H.viewport(0,0,N.width,N.height),this.setTargetUVs(N,g);else{var B=g.height-N.height;H.viewport(0,B,N.width,N.height)}if(H.bindFramebuffer(H.FRAMEBUFFER,g.framebuffer.webGLFramebuffer),H.framebufferTexture2D(H.FRAMEBUFFER,H.COLOR_ATTACHMENT0,H.TEXTURE_2D,g.texture.webGLTexture,0),P&&(M?H.clearColor(0,0,0,0):H.clearColor(0,0,0,1),H.clear(H.COLOR_BUFFER_BIT)),D){var b=this.renderer.currentBlendMode;this.renderer.setBlendMode(T.ERASE)}G&&this.flipY(),H.bufferData(H.ARRAY_BUFFER,this.vertexData,H.STATIC_DRAW),H.drawArrays(H.TRIANGLES,0,6),D&&this.renderer.setBlendMode(b),H.bindFramebuffer(H.FRAMEBUFFER,null),H.bindTexture(H.TEXTURE_2D,null),this.resetUVs()},copyFrameRect:function(N,g,C,P,M,D,G,H){G===void 0&&(G=!0),H===void 0&&(H=!0);var B=this.gl;B.bindFramebuffer(B.FRAMEBUFFER,N.framebuffer.webGLFramebuffer),B.framebufferTexture2D(B.FRAMEBUFFER,B.COLOR_ATTACHMENT0,B.TEXTURE_2D,N.texture.webGLTexture,0),G&&(H?B.clearColor(0,0,0,0):B.clearColor(0,0,0,1),B.clear(B.COLOR_BUFFER_BIT)),B.activeTexture(B.TEXTURE0),B.bindTexture(B.TEXTURE_2D,g.texture.webGLTexture),B.copyTexSubImage2D(B.TEXTURE_2D,0,0,0,C,P,M,D),B.bindFramebuffer(B.FRAMEBUFFER,null),B.bindTexture(B.TEXTURE_2D,null)},copyToGame:function(N){var g=this.gl;this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",1),this.renderer.popFramebuffer(),g.activeTexture(g.TEXTURE0),g.bindTexture(g.TEXTURE_2D,N.texture.webGLTexture),g.bufferData(g.ARRAY_BUFFER,this.vertexData,g.STATIC_DRAW),g.drawArrays(g.TRIANGLES,0,6)},drawFrame:function(N,g,C,P){C===void 0&&(C=!0),P===void 0&&(P=this.colorMatrix);var M=this.gl;this.setShader(this.colorMatrixShader),this.set1i("uMainSampler",0),this.set1fv("uColorMatrix",P.getData()),this.set1f("uAlpha",P.alpha),M.activeTexture(M.TEXTURE0),M.bindTexture(M.TEXTURE_2D,N.texture.webGLTexture),g?(M.viewport(0,0,g.width,g.height),M.bindFramebuffer(M.FRAMEBUFFER,g.framebuffer.webGLFramebuffer),M.framebufferTexture2D(M.FRAMEBUFFER,M.COLOR_ATTACHMENT0,M.TEXTURE_2D,g.texture.webGLTexture,0)):M.viewport(0,0,N.width,N.height),C?M.clearColor(0,0,0,0):M.clearColor(0,0,0,1),M.clear(M.COLOR_BUFFER_BIT),M.bufferData(M.ARRAY_BUFFER,this.vertexData,M.STATIC_DRAW),M.drawArrays(M.TRIANGLES,0,6),M.bindFramebuffer(M.FRAMEBUFFER,null),M.bindTexture(M.TEXTURE_2D,null)},blendFrames:function(N,g,C,P,M,D){P===void 0&&(P=1),M===void 0&&(M=!0),D===void 0&&(D=this.linearShader);var G=this.gl;this.setShader(D),this.set1i("uMainSampler1",0),this.set1i("uMainSampler2",1),this.set1f("uStrength",P),G.activeTexture(G.TEXTURE0),G.bindTexture(G.TEXTURE_2D,N.texture.webGLTexture),G.activeTexture(G.TEXTURE1),G.bindTexture(G.TEXTURE_2D,g.texture.webGLTexture),C?(G.bindFramebuffer(G.FRAMEBUFFER,C.framebuffer.webGLFramebuffer),G.framebufferTexture2D(G.FRAMEBUFFER,G.COLOR_ATTACHMENT0,G.TEXTURE_2D,C.texture.webGLTexture,0),G.viewport(0,0,C.width,C.height)):G.viewport(0,0,N.width,N.height),M?G.clearColor(0,0,0,0):G.clearColor(0,0,0,1),G.clear(G.COLOR_BUFFER_BIT),G.bufferData(G.ARRAY_BUFFER,this.vertexData,G.STATIC_DRAW),G.drawArrays(G.TRIANGLES,0,6),G.bindFramebuffer(G.FRAMEBUFFER,null),G.bindTexture(G.TEXTURE_2D,null)},blendFramesAdditive:function(N,g,C,P,M){this.blendFrames(N,g,C,P,M,this.addShader)},clearFrame:function(N,g){g===void 0&&(g=!0);var C=this.gl;C.viewport(0,0,N.width,N.height),C.bindFramebuffer(C.FRAMEBUFFER,N.framebuffer.webGLFramebuffer),g?C.clearColor(0,0,0,0):C.clearColor(0,0,0,1),C.clear(C.COLOR_BUFFER_BIT);var P=this.renderer.currentFramebuffer;C.bindFramebuffer(C.FRAMEBUFFER,P.webGLFramebuffer)},setUVs:function(N,g,C,P,M,D,G,H){var B=this.vertexViewF32;B[2]=N,B[3]=g,B[6]=C,B[7]=P,B[10]=M,B[11]=D,B[14]=N,B[15]=g,B[18]=M,B[19]=D,B[22]=G,B[23]=H},setTargetUVs:function(N,g){var C=g.height/N.height;C>.5?C=.5-(C-.5):C=.5+(.5-C),this.setUVs(0,C,0,1+C,1,1+C,1,C)},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)}});o.exports=p},36060:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={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"};o.exports=m},84817:o=>{/** + */var O={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"};o.exports=O},84817:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4792,75 +4792,75 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports="pipelineresize"},77085:(o,m,s)=>{/** + */o.exports="pipelineresize"},77085:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={AFTER_FLUSH:s(84817),BEFORE_FLUSH:s(36712),BIND:s(40285),BOOT:s(65918),DESTROY:s(92852),REBIND:s(56072),RESIZE:s(57566)}},54812:(o,m,s)=>{/** + */o.exports={AFTER_FLUSH:s(84817),BEFORE_FLUSH:s(36712),BIND:s(40285),BOOT:s(65918),DESTROY:s(92852),REBIND:s(56072),RESIZE:s(57566)}},54812:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(99155),d=s(84057),c=new u({Extends:d,initialize:P(function(h){d.call(this,{game:h,fragShader:T}),this.amount=1},"BarrelFXPipeline"),onPreRender:function(A,h){A=this.getController(A),this.set1f("amount",A.amount,h)}});o.exports=c},67329:(o,m,s)=>{/** + */var u=s(83419),T=s(99155),A=s(84057),c=new u({Extends:A,initialize:v(function(h){A.call(this,{game:h,fragShader:T}),this.amount=1},"BarrelFXPipeline"),onPreRender:function(d,h){d=this.getController(d),this.set1f("amount",d.amount,h)}});o.exports=c},67329:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(24400),d=s(84057),c=new u({Extends:d,initialize:P(function(h){d.call(this,{game:h,fragShader:T}),this.steps=4,this.offsetX=1,this.offsetY=1,this.blurStrength=1,this.strength=1,this.glcolor=[1,1,1]},"BloomFXPipeline"),onPreRender:function(A){A=this.getController(A),this.set1f("strength",A.blurStrength),this.set3fv("color",A.glcolor)},onDraw:function(A){var h=this.getController(),f=this.fullFrame1,S=this.fullFrame2;this.copyFrame(A,S);for(var O=2/A.width*h.offsetX,L=2/A.height*h.offsetY,p=0;p{/** + */var u=s(83419),T=s(24400),A=s(84057),c=new u({Extends:A,initialize:v(function(h){A.call(this,{game:h,fragShader:T}),this.steps=4,this.offsetX=1,this.offsetY=1,this.blurStrength=1,this.strength=1,this.glcolor=[1,1,1]},"BloomFXPipeline"),onPreRender:function(d){d=this.getController(d),this.set1f("strength",d.blurStrength),this.set3fv("color",d.glcolor)},onDraw:function(d){var h=this.getController(),f=this.fullFrame1,S=this.fullFrame2;this.copyFrame(d,S);for(var R=2/d.width*h.offsetX,L=2/d.height*h.offsetY,p=0;p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(41514),d=s(51078),c=s(94328),A=s(84057),h=new u({Extends:A,initialize:P(function(S){A.call(this,{game:S,shaders:[{name:"Gaussian5",fragShader:T},{name:"Gaussian9",fragShader:d},{name:"Gaussian13",fragShader:c}]}),this.activeShader=this.shaders[0],this.x=2,this.y=2,this.steps=4,this.strength=1,this.glcolor=[1,1,1]},"BlurFXPipeline"),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(f){var S=this.getController(),O=this.gl,L=this.fullFrame1,p=O.getParameter(O.FRAMEBUFFER_BINDING);this.bind(this.shaders[S.quality]),O.activeTexture(O.TEXTURE0),O.viewport(0,0,f.width,f.height),this.set1i("uMainSampler",0),this.set2f("resolution",f.width,f.height),this.set1f("strength",S.strength),this.set3fv("color",S.glcolor);for(var N=0;N{/** + */var u=s(83419),T=s(41514),A=s(51078),c=s(94328),d=s(84057),h=new u({Extends:d,initialize:v(function(S){d.call(this,{game:S,shaders:[{name:"Gaussian5",fragShader:T},{name:"Gaussian9",fragShader:A},{name:"Gaussian13",fragShader:c}]}),this.activeShader=this.shaders[0],this.x=2,this.y=2,this.steps=4,this.strength=1,this.glcolor=[1,1,1]},"BlurFXPipeline"),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(f){var S=this.getController(),R=this.gl,L=this.fullFrame1,p=R.getParameter(R.FRAMEBUFFER_BINDING);this.bind(this.shaders[S.quality]),R.activeTexture(R.TEXTURE0),R.viewport(0,0,f.width,f.height),this.set1i("uMainSampler",0),this.set2f("resolution",f.width,f.height),this.set1f("strength",S.strength),this.set3fv("color",S.glcolor);for(var N=0;N{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(90610),d=s(84057),c=new u({Extends:d,initialize:P(function(h){d.call(this,{game:h,fragShader:T}),this.isTiltShift=!1,this.strength=1,this.blurX=1,this.blurY=1,this.radius=.5,this.amount=1,this.contrast=.2},"BokehFXPipeline"),onPreRender:function(A,h,f,S){A=this.getController(A),this.set1f("radius",A.radius,h),this.set1f("amount",A.amount,h),this.set1f("contrast",A.contrast,h),this.set1f("strength",A.strength,h),this.set2f("blur",A.blurX,A.blurY,h),this.setBoolean("isTiltShift",A.isTiltShift,h),f&&S&&this.set2f("resolution",f,S,h)},onDraw:function(A){this.set2f("resolution",A.width,A.height),this.bindAndDraw(A)}});o.exports=c},89428:(o,m,s)=>{/** + */var u=s(83419),T=s(90610),A=s(84057),c=new u({Extends:A,initialize:v(function(h){A.call(this,{game:h,fragShader:T}),this.isTiltShift=!1,this.strength=1,this.blurX=1,this.blurY=1,this.radius=.5,this.amount=1,this.contrast=.2},"BokehFXPipeline"),onPreRender:function(d,h,f,S){d=this.getController(d),this.set1f("radius",d.radius,h),this.set1f("amount",d.amount,h),this.set1f("contrast",d.contrast,h),this.set1f("strength",d.strength,h),this.set2f("blur",d.blurX,d.blurY,h),this.setBoolean("isTiltShift",d.isTiltShift,h),f&&S&&this.set2f("resolution",f,S,h)},onDraw:function(d){this.set2f("resolution",d.width,d.height),this.bindAndDraw(d)}});o.exports=c},89428:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(91899),d=s(84057),c=new u({Extends:d,initialize:P(function(h){d.call(this,{game:h,fragShader:T}),this.scale=1,this.feather=.005,this.thickness=8,this.glcolor=[1,.2,.7],this.glcolor2=[1,0,0,.4]},"CircleFXPipeline"),onPreRender:function(A,h,f,S){A=this.getController(A),this.set1f("scale",A.scale,h),this.set1f("feather",A.feather,h),this.set1f("thickness",A.thickness,h),this.set3fv("color",A.glcolor,h),this.set4fv("backgroundColor",A.glcolor2,h),f&&S&&this.set2f("resolution",f,S,h)},onDraw:function(A){this.set2f("resolution",A.width,A.height),this.bindAndDraw(A)}});o.exports=c},88904:(o,m,s)=>{/** + */var u=s(83419),T=s(91899),A=s(84057),c=new u({Extends:A,initialize:v(function(h){A.call(this,{game:h,fragShader:T}),this.scale=1,this.feather=.005,this.thickness=8,this.glcolor=[1,.2,.7],this.glcolor2=[1,0,0,.4]},"CircleFXPipeline"),onPreRender:function(d,h,f,S){d=this.getController(d),this.set1f("scale",d.scale,h),this.set1f("feather",d.feather,h),this.set1f("thickness",d.thickness,h),this.set3fv("color",d.glcolor,h),this.set4fv("backgroundColor",d.glcolor2,h),f&&S&&this.set2f("resolution",f,S,h)},onDraw:function(d){this.set2f("resolution",d.width,d.height),this.bindAndDraw(d)}});o.exports=c},88904:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(84057),d=new u({Extends:T,initialize:P(function(A){T.call(this,{game:A})},"ColorMatrixFXPipeline"),onDraw:function(c){var A=this.fullFrame1;this.controller?this.manager.drawFrame(c,A,!0,this.controller):this.drawFrame(c,A),this.copyToGame(A)}});o.exports=d},63563:(o,m,s)=>{/** + */var u=s(83419),T=s(84057),A=new u({Extends:T,initialize:v(function(d){T.call(this,{game:d})},"ColorMatrixFXPipeline"),onDraw:function(c){var d=this.fullFrame1;this.controller?this.manager.drawFrame(c,d,!0,this.controller):this.drawFrame(c,d),this.copyToGame(d)}});o.exports=A},63563:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(47838),d=s(84057),c=new u({Extends:d,initialize:P(function(h){d.call(this,{game:h,fragShader:T}),this.x=.005,this.y=.005,this.glTexture},"DisplacementFXPipeline"),onBoot:function(){this.setTexture("__WHITE")},setTexture:function(A){var h=this.game.textures.getFrame(A);h&&(this.glTexture=h.glTexture)},onDraw:function(A){var h=this.getController(),f=this.fullFrame1;this.bind(),this.set1i("uMainSampler",0),this.set1i("uDisplacementSampler",1),this.set2f("amount",h.x,h.y),this.bindTexture(h.glTexture,1),this.copySprite(A,f),this.copyToGame(f)}});o.exports=c},94045:(o,m,s)=>{/** + */var u=s(83419),T=s(47838),A=s(84057),c=new u({Extends:A,initialize:v(function(h){A.call(this,{game:h,fragShader:T}),this.x=.005,this.y=.005,this.glTexture},"DisplacementFXPipeline"),onBoot:function(){this.setTexture("__WHITE")},setTexture:function(d){var h=this.game.textures.getFrame(d);h&&(this.glTexture=h.glTexture)},onDraw:function(d){var h=this.getController(),f=this.fullFrame1;this.bind(),this.set1i("uMainSampler",0),this.set1i("uDisplacementSampler",1),this.set2f("amount",h.x,h.y),this.bindTexture(h.glTexture,1),this.copySprite(d,f),this.copyToGame(f)}});o.exports=c},94045:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(95540),d=s(98656),c=s(84057),A=s(70554),h=new u({Extends:c,initialize:P(function(S,O){var L=T(O,"quality",.1),p=T(O,"distance",10);c.call(this,{game:S,fragShader:A.setGlowQuality(d,S,L,p)}),this.outerStrength=4,this.innerStrength=0,this.knockout=!1,this.glcolor=[1,1,1,1]},"GlowFXPipeline"),onPreRender:function(f,S,O,L){f=this.getController(f),this.set1f("outerStrength",f.outerStrength,S),this.set1f("innerStrength",f.innerStrength,S),this.set4fv("glowColor",f.glcolor,S),this.setBoolean("knockout",f.knockout,S),O&&L&&this.set2f("resolution",O,L,S)},onDraw:function(f){this.set2f("resolution",f.width,f.height),this.bindAndDraw(f)}});o.exports=h},74088:(o,m,s)=>{/** + */var u=s(83419),T=s(95540),A=s(98656),c=s(84057),d=s(70554),h=new u({Extends:c,initialize:v(function(S,R){var L=T(R,"quality",.1),p=T(R,"distance",10);c.call(this,{game:S,fragShader:d.setGlowQuality(A,S,L,p)}),this.outerStrength=4,this.innerStrength=0,this.knockout=!1,this.glcolor=[1,1,1,1]},"GlowFXPipeline"),onPreRender:function(f,S,R,L){f=this.getController(f),this.set1f("outerStrength",f.outerStrength,S),this.set1f("innerStrength",f.innerStrength,S),this.set4fv("glowColor",f.glcolor,S),this.setBoolean("knockout",f.knockout,S),R&&L&&this.set2f("resolution",R,L,S)},onDraw:function(f){this.set2f("resolution",f.width,f.height),this.bindAndDraw(f)}});o.exports=h},74088:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(70463),d=s(84057),c=new u({Extends:d,initialize:P(function(h){d.call(this,{game:h,fragShader:T}),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]},"GradientFXPipeline"),onPreRender:function(A,h){A=this.getController(A),this.set1f("alpha",A.alpha,h),this.set1i("size",A.size,h),this.set3fv("color1",A.glcolor1,h),this.set3fv("color2",A.glcolor2,h),this.set2f("positionFrom",A.fromX,A.fromY,h),this.set2f("positionTo",A.toX,A.toY,h)}});o.exports=c},99636:(o,m,s)=>{/** + */var u=s(83419),T=s(70463),A=s(84057),c=new u({Extends:A,initialize:v(function(h){A.call(this,{game:h,fragShader:T}),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]},"GradientFXPipeline"),onPreRender:function(d,h){d=this.getController(d),this.set1f("alpha",d.alpha,h),this.set1i("size",d.size,h),this.set3fv("color1",d.glcolor1,h),this.set3fv("color2",d.glcolor2,h),this.set2f("positionFrom",d.fromX,d.fromY,h),this.set2f("positionTo",d.toX,d.toY,h)}});o.exports=c},99636:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(50831),d=s(84057),c=new u({Extends:d,initialize:P(function(h){d.call(this,{game:h,fragShader:T}),this.amount=1},"PixelateFXPipeline"),onPreRender:function(A,h,f,S){A=this.getController(A),this.set1f("amount",A.amount,h),f&&S&&this.set2f("resolution",f,S,h)},onDraw:function(A){this.set2f("resolution",A.width,A.height),this.bindAndDraw(A)}});o.exports=c},34700:(o,m,s)=>{/** + */var u=s(83419),T=s(50831),A=s(84057),c=new u({Extends:A,initialize:v(function(h){A.call(this,{game:h,fragShader:T}),this.amount=1},"PixelateFXPipeline"),onPreRender:function(d,h,f,S){d=this.getController(d),this.set1f("amount",d.amount,h),f&&S&&this.set2f("resolution",f,S,h)},onDraw:function(d){this.set2f("resolution",d.width,d.height),this.bindAndDraw(d)}});o.exports=c},34700:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(92595),d=s(84057),c=new u({Extends:d,initialize:P(function(h){d.call(this,{game:h,fragShader:T}),this.x=0,this.y=0,this.decay=.1,this.power=1,this.glcolor=[0,0,0,1],this.samples=6,this.intensity=1},"ShadowFXPipeline"),onPreRender:function(A,h){A=this.getController(A);var f=A.samples;this.set1i("samples",f,h),this.set1f("intensity",A.intensity,h),this.set1f("decay",A.decay,h),this.set1f("power",A.power/f,h),this.set2f("lightPosition",A.x,A.y,h),this.set4fv("color",A.glcolor,h)}});o.exports=c},91157:(o,m,s)=>{/** + */var u=s(83419),T=s(92595),A=s(84057),c=new u({Extends:A,initialize:v(function(h){A.call(this,{game:h,fragShader:T}),this.x=0,this.y=0,this.decay=.1,this.power=1,this.glcolor=[0,0,0,1],this.samples=6,this.intensity=1},"ShadowFXPipeline"),onPreRender:function(d,h){d=this.getController(d);var f=d.samples;this.set1i("samples",f,h),this.set1f("intensity",d.intensity,h),this.set1f("decay",d.decay,h),this.set1f("power",d.power/f,h),this.set2f("lightPosition",d.x,d.y,h),this.set4fv("color",d.glcolor,h)}});o.exports=c},91157:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(72464),d=s(84057),c=new u({Extends:d,initialize:P(function(h){d.call(this,{game:h,fragShader:T}),this.speed=.5,this.lineWidth=.5,this.gradient=3,this.reveal=!1},"ShineFXPipeline"),onPreRender:function(A,h,f,S){A=this.getController(A),this.setTime("time",h),this.set1f("speed",A.speed,h),this.set1f("lineWidth",A.lineWidth,h),this.set1f("gradient",A.gradient,h),this.setBoolean("reveal",A.reveal,h),f&&S&&this.set2f("resolution",f,S,h)},onDraw:function(A){this.set2f("resolution",A.width,A.height),this.bindAndDraw(A)}});o.exports=c},27797:(o,m,s)=>{/** + */var u=s(83419),T=s(72464),A=s(84057),c=new u({Extends:A,initialize:v(function(h){A.call(this,{game:h,fragShader:T}),this.speed=.5,this.lineWidth=.5,this.gradient=3,this.reveal=!1},"ShineFXPipeline"),onPreRender:function(d,h,f,S){d=this.getController(d),this.setTime("time",h),this.set1f("speed",d.speed,h),this.set1f("lineWidth",d.lineWidth,h),this.set1f("gradient",d.gradient,h),this.setBoolean("reveal",d.reveal,h),f&&S&&this.set2f("resolution",f,S,h)},onDraw:function(d){this.set2f("resolution",d.width,d.height),this.bindAndDraw(d)}});o.exports=c},27797:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(39249),d=s(84057),c=new u({Extends:d,initialize:P(function(h){d.call(this,{game:h,fragShader:T}),this.x=.5,this.y=.5,this.radius=.5,this.strength=.5},"VignetteFXPipeline"),onPreRender:function(A,h){A=this.getController(A),this.set1f("radius",A.radius,h),this.set1f("strength",A.strength,h),this.set2f("position",A.x,A.y,h)}});o.exports=c},67603:(o,m,s)=>{/** + */var u=s(83419),T=s(39249),A=s(84057),c=new u({Extends:A,initialize:v(function(h){A.call(this,{game:h,fragShader:T}),this.x=.5,this.y=.5,this.radius=.5,this.strength=.5},"VignetteFXPipeline"),onPreRender:function(d,h){d=this.getController(d),this.set1f("radius",d.radius,h),this.set1f("strength",d.strength,h),this.set2f("position",d.x,d.y,h)}});o.exports=c},67603:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(2878),d=s(84057),c=new u({Extends:d,initialize:P(function(h){d.call(this,{game:h,fragShader:T}),this.progress=0,this.wipeWidth=.1,this.direction=0,this.axis=0,this.reveal=!1},"WipeFXPipeline"),onPreRender:function(A,h){A=this.getController(A);var f=A.progress,S=A.wipeWidth,O=A.direction,L=A.axis;this.set4f("config",f,S,O,L,h),this.setBoolean("reveal",A.reveal,h)}});o.exports=c},58918:(o,m,s)=>{/** + */var u=s(83419),T=s(2878),A=s(84057),c=new u({Extends:A,initialize:v(function(h){A.call(this,{game:h,fragShader:T}),this.progress=0,this.wipeWidth=.1,this.direction=0,this.axis=0,this.reveal=!1},"WipeFXPipeline"),onPreRender:function(d,h){d=this.getController(d);var f=d.progress,S=d.wipeWidth,R=d.direction,L=d.axis;this.set4f("config",f,S,R,L,h),this.setBoolean("reveal",d.reveal,h)}});o.exports=c},58918:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u={Barrel:s(54812),Bloom:s(67329),Blur:s(8861),Bokeh:s(51051),Circle:s(89428),ColorMatrix:s(88904),Displacement:s(63563),Glow:s(94045),Gradient:s(74088),Pixelate:s(99636),Shadow:s(34700),Shine:s(91157),Vignette:s(27797),Wipe:s(67603)};o.exports=u},96615:(o,m,s)=>{/** + */var u={Barrel:s(54812),Bloom:s(67329),Blur:s(8861),Bokeh:s(51051),Circle:s(89428),ColorMatrix:s(88904),Displacement:s(63563),Glow:s(94045),Gradient:s(74088),Pixelate:s(99636),Shadow:s(34700),Shine:s(91157),Vignette:s(27797),Wipe:s(67603)};o.exports=u},96615:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(36060),T=s(79291),d={FX:s(58918),BitmapMaskPipeline:s(31302),Events:s(77085),FXPipeline:s(92651),LightPipeline:s(96569),MobilePipeline:s(56527),MultiPipeline:s(57516),PointLightPipeline:s(43439),PostFXPipeline:s(84057),PreFXPipeline:s(43558),RopePipeline:s(81041),SinglePipeline:s(12385),UtilityPipeline:s(7589)};d=T(!1,d,u),o.exports=d},35407:o=>{o.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(` + */var u=s(36060),T=s(79291),A={FX:s(58918),BitmapMaskPipeline:s(31302),Events:s(77085),FXPipeline:s(92651),LightPipeline:s(96569),MobilePipeline:s(56527),MultiPipeline:s(57516),PointLightPipeline:s(43439),PostFXPipeline:s(84057),PreFXPipeline:s(43558),RopePipeline:s(81041),SinglePipeline:s(12385),UtilityPipeline:s(7589)};A=T(!1,A,u),o.exports=A},35407:o=>{o.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(` `)},78908:o=>{o.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(` `)},85191:o=>{o.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(` `)},96293:o=>{o.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(` @@ -4894,44 +4894,44 @@ return new `+this.key+`(); `)},49627:o=>{o.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(` `)},45561:o=>{o.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(` `)},60722:o=>{o.exports=["#define SHADER_NAME PHASER_SINGLE_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","uniform int uRoundPixels;","uniform vec2 uResolution;","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);"," if (uRoundPixels == 1)"," {"," gl_Position.xy = floor(((gl_Position.xy + 1.0) * 0.5 * uResolution) + 0.5) / uResolution * 2.0 - 1.0;"," }"," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join(` -`)},89350:(o,m,s)=>{/** +`)},89350:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={AddBlendFrag:s(35407),BitmapMaskFrag:s(78908),BitmapMaskVert:s(85191),ColorMatrixFrag:s(96293),CopyFrag:s(36682),FXBarrelFrag:s(99155),FXBloomFrag:s(24400),FXBlurHighFrag:s(94328),FXBlurLowFrag:s(41514),FXBlurMedFrag:s(51078),FXBokehFrag:s(90610),FXCircleFrag:s(91899),FXDisplacementFrag:s(47838),FXGlowFrag:s(98656),FXGradientFrag:s(70463),FXPixelateFrag:s(50831),FXShadowFrag:s(92595),FXShineFrag:s(72464),FXVignetteFrag:s(39249),FXWipeFrag:s(2878),LightFrag:s(31063),LinearBlendFrag:s(48247),MeshFrag:s(41214),MeshVert:s(39653),MobileFrag:s(62143),MobileVert:s(47940),MultiFrag:s(98840),MultiVert:s(44667),PointLightFrag:s(4127),PointLightVert:s(89924),PostFXFrag:s(27681),QuadVert:s(49627),SingleFrag:s(45561),SingleVert:s(60722)}},93567:(o,m,s)=>{/** + */o.exports={AddBlendFrag:s(35407),BitmapMaskFrag:s(78908),BitmapMaskVert:s(85191),ColorMatrixFrag:s(96293),CopyFrag:s(36682),FXBarrelFrag:s(99155),FXBloomFrag:s(24400),FXBlurHighFrag:s(94328),FXBlurLowFrag:s(41514),FXBlurMedFrag:s(51078),FXBokehFrag:s(90610),FXCircleFrag:s(91899),FXDisplacementFrag:s(47838),FXGlowFrag:s(98656),FXGradientFrag:s(70463),FXPixelateFrag:s(50831),FXShadowFrag:s(92595),FXShineFrag:s(72464),FXVignetteFrag:s(39249),FXWipeFrag:s(2878),LightFrag:s(31063),LinearBlendFrag:s(48247),MeshFrag:s(41214),MeshVert:s(39653),MobileFrag:s(62143),MobileVert:s(47940),MultiFrag:s(98840),MultiVert:s(44667),PointLightFrag:s(4127),PointLightVert:s(89924),PostFXFrag:s(27681),QuadVert:s(49627),SingleFrag:s(45561),SingleVert:s(60722)}},93567:(o,O,s)=>{/** * @author Benjamin D. Richards * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=new u({initialize:P(function(c,A,h){this.webGLAttribLocation=-1,this.gl=c,this.program=A,this.name=h,this.createResource()},"WebGLAttribLocationWrapper"),createResource:function(){if(this.program.webGLProgram===null){this.webGLAttribLocation=-1;return}var d=this.gl;d.isContextLost()||(this.webGLAttribLocation=d.getAttribLocation(this.program.webGLProgram,this.name))},destroy:function(){this.gl=null,this.program=null,this.name=null,this.webGLAttribLocation=-1}});o.exports=T},26128:(o,m,s)=>{/** + */var u=s(83419),T=new u({initialize:v(function(c,d,h){this.webGLAttribLocation=-1,this.gl=c,this.program=d,this.name=h,this.createResource()},"WebGLAttribLocationWrapper"),createResource:function(){if(this.program.webGLProgram===null){this.webGLAttribLocation=-1;return}var A=this.gl;A.isContextLost()||(this.webGLAttribLocation=A.getAttribLocation(this.program.webGLProgram,this.name))},destroy:function(){this.gl=null,this.program=null,this.name=null,this.webGLAttribLocation=-1}});o.exports=T},26128:(o,O,s)=>{/** * @author Benjamin D. Richards * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=new u({initialize:P(function(c,A,h,f){this.webGLBuffer=null,this.gl=c,this.initialDataOrSize=A,this.bufferType=h,this.bufferUsage=f,this.createResource()},"WebGLBufferWrapper"),createResource:function(){if(this.initialDataOrSize!==null){var d=this.gl;if(!d.isContextLost()){var c=this.bufferType,A=d.createBuffer();this.webGLBuffer=A,d.bindBuffer(c,this.webGLBuffer),d.bufferData(c,this.initialDataOrSize,this.bufferUsage),d.bindBuffer(c,null)}}},destroy:function(){var d=this.gl;d.isContextLost()||d.deleteBuffer(this.webGLBuffer),this.webGLBuffer=null,this.initialDataOrSize=null,this.gl=null}});o.exports=T},84387:(o,m,s)=>{/** + */var u=s(83419),T=new u({initialize:v(function(c,d,h,f){this.webGLBuffer=null,this.gl=c,this.initialDataOrSize=d,this.bufferType=h,this.bufferUsage=f,this.createResource()},"WebGLBufferWrapper"),createResource:function(){if(this.initialDataOrSize!==null){var A=this.gl;if(!A.isContextLost()){var c=this.bufferType,d=A.createBuffer();this.webGLBuffer=d,A.bindBuffer(c,this.webGLBuffer),A.bufferData(c,this.initialDataOrSize,this.bufferUsage),A.bindBuffer(c,null)}}},destroy:function(){var A=this.gl;A.isContextLost()||A.deleteBuffer(this.webGLBuffer),this.webGLBuffer=null,this.initialDataOrSize=null,this.gl=null}});o.exports=T},84387:(o,O,s)=>{/** * @author Benjamin D. Richards * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T={36054:"Incomplete Attachment",36055:"Missing Attachment",36057:"Incomplete Dimensions",36061:"Framebuffer Unsupported"},d=new u({initialize:P(function(A,h,f,S,O){this.webGLFramebuffer=null,this.gl=A,this.width=h,this.height=f,this.renderTexture=S,this.addDepthStencilBuffer=!!O,this.createResource()},"WebGLFramebufferWrapper"),createResource:function(){var c=this.gl;if(!c.isContextLost()){var A=this.renderTexture,h=0,f=c.createFramebuffer();if(this.webGLFramebuffer=f,c.bindFramebuffer(c.FRAMEBUFFER,f),A.isRenderTexture=!0,A.isAlphaPremultiplied=!1,c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,A.webGLTexture,0),h=c.checkFramebufferStatus(c.FRAMEBUFFER),h!==c.FRAMEBUFFER_COMPLETE)throw new Error("Framebuffer status: "+(T[h]||h));if(this.addDepthStencilBuffer){var S=c.createRenderbuffer();c.bindRenderbuffer(c.RENDERBUFFER,S),c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_STENCIL,this.width,this.height),c.framebufferRenderbuffer(c.FRAMEBUFFER,c.DEPTH_STENCIL_ATTACHMENT,c.RENDERBUFFER,S)}c.bindFramebuffer(c.FRAMEBUFFER,null)}},destroy:function(){if(this.webGLFramebuffer!==null){var c=this.gl;if(!c.isContextLost()){c.bindFramebuffer(c.FRAMEBUFFER,this.webGLFramebuffer);var A=c.getFramebufferAttachmentParameter(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME);A!==null&&(c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,null,0),c.deleteTexture(A));var h=c.getFramebufferAttachmentParameter(c.FRAMEBUFFER,c.DEPTH_STENCIL_ATTACHMENT,c.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME);h!==null&&c.deleteRenderbuffer(h),c.bindFramebuffer(c.FRAMEBUFFER,null),c.deleteFramebuffer(this.webGLFramebuffer)}this.renderTexture=null,this.webGLFramebuffer=null,this.gl=null}}});o.exports=d},1482:(o,m,s)=>{/** + */var u=s(83419),T={36054:"Incomplete Attachment",36055:"Missing Attachment",36057:"Incomplete Dimensions",36061:"Framebuffer Unsupported"},A=new u({initialize:v(function(d,h,f,S,R){this.webGLFramebuffer=null,this.gl=d,this.width=h,this.height=f,this.renderTexture=S,this.addDepthStencilBuffer=!!R,this.createResource()},"WebGLFramebufferWrapper"),createResource:function(){var c=this.gl;if(!c.isContextLost()){var d=this.renderTexture,h=0,f=c.createFramebuffer();if(this.webGLFramebuffer=f,c.bindFramebuffer(c.FRAMEBUFFER,f),d.isRenderTexture=!0,d.isAlphaPremultiplied=!1,c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,d.webGLTexture,0),h=c.checkFramebufferStatus(c.FRAMEBUFFER),h!==c.FRAMEBUFFER_COMPLETE)throw new Error("Framebuffer status: "+(T[h]||h));if(this.addDepthStencilBuffer){var S=c.createRenderbuffer();c.bindRenderbuffer(c.RENDERBUFFER,S),c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_STENCIL,this.width,this.height),c.framebufferRenderbuffer(c.FRAMEBUFFER,c.DEPTH_STENCIL_ATTACHMENT,c.RENDERBUFFER,S)}c.bindFramebuffer(c.FRAMEBUFFER,null)}},destroy:function(){if(this.webGLFramebuffer!==null){var c=this.gl;if(!c.isContextLost()){c.bindFramebuffer(c.FRAMEBUFFER,this.webGLFramebuffer);var d=c.getFramebufferAttachmentParameter(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME);d!==null&&(c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,null,0),c.deleteTexture(d));var h=c.getFramebufferAttachmentParameter(c.FRAMEBUFFER,c.DEPTH_STENCIL_ATTACHMENT,c.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME);h!==null&&c.deleteRenderbuffer(h),c.bindFramebuffer(c.FRAMEBUFFER,null),c.deleteFramebuffer(this.webGLFramebuffer)}this.renderTexture=null,this.webGLFramebuffer=null,this.gl=null}}});o.exports=A},1482:(o,O,s)=>{/** * @author Benjamin D. Richards * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=new u({initialize:P(function(c,A,h){this.webGLProgram=null,this.gl=c,this.vertexSource=A,this.fragmentSource=h,this.createResource()},"WebGLProgramWrapper"),createResource:function(){var d=this.gl;if(!d.isContextLost()){var c=d.createProgram(),A=d.createShader(d.VERTEX_SHADER),h=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(A,this.vertexSource),d.shaderSource(h,this.fragmentSource),d.compileShader(A),d.compileShader(h);var f=`Shader failed: -`;if(!d.getShaderParameter(A,d.COMPILE_STATUS))throw new Error("Vertex "+f+d.getShaderInfoLog(A));if(!d.getShaderParameter(h,d.COMPILE_STATUS))throw new Error("Fragment "+f+d.getShaderInfoLog(h));if(d.attachShader(c,A),d.attachShader(c,h),d.linkProgram(c),!d.getProgramParameter(c,d.LINK_STATUS))throw new Error("Link "+f+d.getProgramInfoLog(c));d.useProgram(c),this.webGLProgram=c}},destroy:function(){this.webGLProgram&&(this.gl.isContextLost()||this.gl.deleteProgram(this.webGLProgram),this.webGLProgram=null,this.gl=null)}});o.exports=T},82751:(o,m,s)=>{/** + */var u=s(83419),T=new u({initialize:v(function(c,d,h){this.webGLProgram=null,this.gl=c,this.vertexSource=d,this.fragmentSource=h,this.createResource()},"WebGLProgramWrapper"),createResource:function(){var A=this.gl;if(!A.isContextLost()){var c=A.createProgram(),d=A.createShader(A.VERTEX_SHADER),h=A.createShader(A.FRAGMENT_SHADER);A.shaderSource(d,this.vertexSource),A.shaderSource(h,this.fragmentSource),A.compileShader(d),A.compileShader(h);var f=`Shader failed: +`;if(!A.getShaderParameter(d,A.COMPILE_STATUS))throw new Error("Vertex "+f+A.getShaderInfoLog(d));if(!A.getShaderParameter(h,A.COMPILE_STATUS))throw new Error("Fragment "+f+A.getShaderInfoLog(h));if(A.attachShader(c,d),A.attachShader(c,h),A.linkProgram(c),!A.getProgramParameter(c,A.LINK_STATUS))throw new Error("Link "+f+A.getProgramInfoLog(c));A.useProgram(c),this.webGLProgram=c}},destroy:function(){this.webGLProgram&&(this.gl.isContextLost()||this.gl.deleteProgram(this.webGLProgram),this.webGLProgram=null,this.gl=null)}});o.exports=T},82751:(o,O,s)=>{/** * @author Benjamin D. Richards * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(50030),d=new u({initialize:P(function(A,h,f,S,O,L,p,N,g,C,v,M,D){this.webGLTexture=null,this.isRenderTexture=!1,this.gl=A,this.mipLevel=h,this.minFilter=f,this.magFilter=S,this.wrapT=O,this.wrapS=L,this.format=p,this.pixels=N,this.width=g,this.height=C,this.pma=v??!0,this.forceSize=!!M,this.flipY=!!D,this.__SPECTOR_Metadata={},this.createResource()},"WebGLTextureWrapper"),createResource:function(){var c=this.gl;if(!c.isContextLost()){if(this.pixels instanceof d){this.webGLTexture=this.pixels.webGLTexture;return}var A=c.createTexture();A.__SPECTOR_Metadata=this.__SPECTOR_Metadata,this.webGLTexture=A,this._processTexture()}},update:function(c,A,h,f,S,O,L,p,N){if(!(A===0||h===0)){this.pixels=c,this.width=A,this.height=h,this.flipY=f,this.wrapS=S,this.wrapT=O,this.minFilter=L,this.magFilter=p,this.format=N;var g=this.gl;g.isContextLost()||this._processTexture()}},_processTexture:function(){var c=this.gl;c.activeTexture(c.TEXTURE0);var A=c.getParameter(c.TEXTURE_BINDING_2D);c.bindTexture(c.TEXTURE_2D,this.webGLTexture),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,this.minFilter),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,this.magFilter),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,this.wrapS),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,this.wrapT),c.pixelStorei(c.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.pma),c.pixelStorei(c.UNPACK_FLIP_Y_WEBGL,this.flipY);var h=this.pixels,f=this.mipLevel,S=this.width,O=this.height,L=this.format,p=!1;if(h==null)c.texImage2D(c.TEXTURE_2D,f,L,S,O,0,L,c.UNSIGNED_BYTE,null),p=T(S,O);else if(h.compressed){S=h.width,O=h.height,p=h.generateMipmap;for(var N=0;N{/** + */var u=s(83419),T=s(50030),A=new u({initialize:v(function(d,h,f,S,R,L,p,N,g,C,P,M,D){this.webGLTexture=null,this.isRenderTexture=!1,this.gl=d,this.mipLevel=h,this.minFilter=f,this.magFilter=S,this.wrapT=R,this.wrapS=L,this.format=p,this.pixels=N,this.width=g,this.height=C,this.pma=P??!0,this.forceSize=!!M,this.flipY=!!D,this.__SPECTOR_Metadata={},this.createResource()},"WebGLTextureWrapper"),createResource:function(){var c=this.gl;if(!c.isContextLost()){if(this.pixels instanceof A){this.webGLTexture=this.pixels.webGLTexture;return}var d=c.createTexture();d.__SPECTOR_Metadata=this.__SPECTOR_Metadata,this.webGLTexture=d,this._processTexture()}},update:function(c,d,h,f,S,R,L,p,N){if(!(d===0||h===0)){this.pixels=c,this.width=d,this.height=h,this.flipY=f,this.wrapS=S,this.wrapT=R,this.minFilter=L,this.magFilter=p,this.format=N;var g=this.gl;g.isContextLost()||this._processTexture()}},_processTexture:function(){var c=this.gl;c.activeTexture(c.TEXTURE0);var d=c.getParameter(c.TEXTURE_BINDING_2D);c.bindTexture(c.TEXTURE_2D,this.webGLTexture),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,this.minFilter),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,this.magFilter),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,this.wrapS),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,this.wrapT),c.pixelStorei(c.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.pma),c.pixelStorei(c.UNPACK_FLIP_Y_WEBGL,this.flipY);var h=this.pixels,f=this.mipLevel,S=this.width,R=this.height,L=this.format,p=!1;if(h==null)c.texImage2D(c.TEXTURE_2D,f,L,S,R,0,L,c.UNSIGNED_BYTE,null),p=T(S,R);else if(h.compressed){S=h.width,R=h.height,p=h.generateMipmap;for(var N=0;N{/** * @author Benjamin D. Richards * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=new u({initialize:P(function(c,A,h){this.webGLUniformLocation=null,this.gl=c,this.program=A,this.name=h,this.createResource()},"WebGLUniformLocationWrapper"),createResource:function(){if(this.program.webGLProgram===null){this.webGLUniformLocation=null;return}var d=this.gl;d.isContextLost()||(this.webGLUniformLocation=d.getUniformLocation(this.program.webGLProgram,this.name))},destroy:function(){this.gl=null,this.program=null,this.name=null,this.webGLUniformLocation=null}});o.exports=T},9503:(o,m,s)=>{/** + */var u=s(83419),T=new u({initialize:v(function(c,d,h){this.webGLUniformLocation=null,this.gl=c,this.program=d,this.name=h,this.createResource()},"WebGLUniformLocationWrapper"),createResource:function(){if(this.program.webGLProgram===null){this.webGLUniformLocation=null;return}var A=this.gl;A.isContextLost()||(this.webGLUniformLocation=A.getUniformLocation(this.program.webGLProgram,this.name))},destroy:function(){this.gl=null,this.program=null,this.name=null,this.webGLUniformLocation=null}});o.exports=T},9503:(o,O,s)=>{/** * @author Benjamin D. Richards * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u={WebGLAttribLocationWrapper:s(93567),WebGLBufferWrapper:s(26128),WebGLProgramWrapper:s(1482),WebGLTextureWrapper:s(82751),WebGLFramebufferWrapper:s(84387),WebGLUniformLocationWrapper:s(57183)};o.exports=u},76531:(o,m,s)=>{/** + */var u={WebGLAttribLocationWrapper:s(93567),WebGLBufferWrapper:s(26128),WebGLProgramWrapper:s(1482),WebGLTextureWrapper:s(82751),WebGLFramebufferWrapper:s(84387),WebGLUniformLocationWrapper:s(57183)};o.exports=u},76531:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(13560),T=s(83419),d=s(50792),c=s(97480),A=s(8443),h=s(57811),f=s(74403),S=s(45818),O=s(29747),L=s(87841),p=s(86555),N=s(56583),g=s(26099),C=s(38058),v=new T({Extends:d,initialize:P(function(D){d.call(this),this.game=D,this.canvas,this.canvasBounds=new L,this.parent=null,this.parentIsWindow=!1,this.parentSize=new p,this.gameSize=new p,this.baseSize=new p,this.displaySize=new p,this.scaleMode=u.SCALE_MODE.NONE,this.zoom=1,this._resetZoom=!1,this.displayScale=new g(1,1),this.autoRound=!1,this.autoCenter=u.CENTER.NO_CENTER,this.orientation=u.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:O,windowResize:O,fullScreenChange:O,fullScreenError:O}},"ScaleManager"),preBoot:function(){this.parseConfig(this.game.config),this.game.events.once(A.BOOT,this.boot,this)},boot:function(){var M=this.game;this.canvas=M.canvas,this.fullscreen=M.device.fullscreen,this.scaleMode!==u.SCALE_MODE.RESIZE&&this.scaleMode!==u.SCALE_MODE.EXPAND&&this.displaySize.setAspectMode(this.scaleMode),this.scaleMode===u.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()),M.events.on(A.PRE_STEP,this.step,this),M.events.once(A.READY,this.refresh,this),M.events.once(A.DESTROY,this.destroy,this),this.startListeners()},parseConfig:function(M){this.getParent(M),this.getParentBounds();var D=M.width,G=M.height,H=M.scaleMode,B=M.zoom,_=M.autoRound;if(typeof D=="string")if(D.substr(-1)!=="%")D=parseInt(D,10);else{var w=this.parentSize.width;w===0&&(w=window.innerWidth);var b=parseInt(D,10)/100;D=Math.floor(w*b)}if(typeof G=="string")if(G.substr(-1)!=="%")G=parseInt(G,10);else{var F=this.parentSize.height;F===0&&(F=window.innerHeight);var k=parseInt(G,10)/100;G=Math.floor(F*k)}this.scaleMode=H,this.autoRound=_,this.autoCenter=M.autoCenter,this.resizeInterval=M.resizeInterval,_&&(D=Math.floor(D),G=Math.floor(G)),this.gameSize.setSize(D,G),B===u.ZOOM.MAX_ZOOM&&(B=this.getMaxZoom()),this.zoom=B,B!==1&&(this._resetZoom=!0),this.baseSize.setSize(D,G),_&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),M.minWidth>0&&this.displaySize.setMin(M.minWidth*B,M.minHeight*B),M.maxWidth>0&&this.displaySize.setMax(M.maxWidth*B,M.maxHeight*B),this.displaySize.setSize(D,G),(M.snapWidth>0||M.snapHeight>0)&&this.displaySize.setSnap(M.snapWidth,M.snapHeight),this.orientation=S(D,G)},getParent:function(M){var D=M.parent;if(D!==null){if(this.parent=f(D),this.parentIsWindow=this.parent===document.body,M.expandParent&&M.scaleMode!==u.SCALE_MODE.NONE){var G=this.parent.getBoundingClientRect();(this.parentIsWindow||G.height===0)&&(document.documentElement.style.height="100%",document.body.style.height="100%",G=this.parent.getBoundingClientRect(),!this.parentIsWindow&&G.height===0&&(this.parent.style.overflow="hidden",this.parent.style.width="100%",this.parent.style.height="100%"))}M.fullscreenTarget&&!this.fullscreenTarget&&(this.fullscreenTarget=f(M.fullscreenTarget))}},getParentBounds:function(){if(!this.parent)return!1;var M=this.parentSize,D=this.parent.getBoundingClientRect();this.parentIsWindow&&this.game.device.os.iOS&&(D.height=h(!0));var G=D.width,H=D.height;if(M.width!==G||M.height!==H)return M.setSize(G,H),!0;if(this.canvas){var B=this.canvasBounds,_=this.canvas.getBoundingClientRect();if(_.x!==B.x||_.y!==B.y)return!0}return!1},lockOrientation:function(M){var D=screen.lockOrientation||screen.mozLockOrientation||screen.msLockOrientation;return D?D.call(screen,M):!1},setParentSize:function(M,D){return this.parentSize.setSize(M,D),this.refresh()},setGameSize:function(M,D){var G=this.autoRound;G&&(M=Math.floor(M),D=Math.floor(D));var H=this.width,B=this.height;return this.gameSize.resize(M,D),this.baseSize.resize(M,D),G&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setAspectRatio(M/D),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height,this.refresh(H,B)},resize:function(M,D){var G=this.zoom,H=this.autoRound;H&&(M=Math.floor(M),D=Math.floor(D));var B=this.width,_=this.height;this.gameSize.resize(M,D),this.baseSize.resize(M,D),H&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(M*G,D*G),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height;var w=this.canvas.style,b=M*G,F=D*G;return H&&(b=Math.floor(b),F=Math.floor(F)),(b!==M||F!==D)&&(w.width=b+"px",w.height=F+"px"),this.refresh(B,_)},setZoom:function(M){return this.zoom=M,this._resetZoom=!0,this.refresh()},setMaxZoom:function(){return this.zoom=this.getMaxZoom(),this._resetZoom=!0,this.refresh()},setSnap:function(M,D){return M===void 0&&(M=0),D===void 0&&(D=M),this.displaySize.setSnap(M,D),this.refresh()},refresh:function(M,D){M===void 0&&(M=this.width),D===void 0&&(D=this.height),this.updateScale(),this.updateBounds(),this.updateOrientation(),this.displayScale.set(this.baseSize.width/this.canvasBounds.width,this.baseSize.height/this.canvasBounds.height);var G=this.game.domContainer;if(G){this.baseSize.setCSS(G);var H=this.canvas.style,B=G.style;B.transform="scale("+this.displaySize.width/this.baseSize.width+","+this.displaySize.height/this.baseSize.height+")",B.marginLeft=H.marginLeft,B.marginTop=H.marginTop}return this.emit(c.RESIZE,this.gameSize,this.baseSize,this.displaySize,M,D),this},updateOrientation:function(){if(this._checkOrientation){this._checkOrientation=!1;var M=S(this.width,this.height);M!==this.orientation&&(this.orientation=M,this.emit(c.ORIENTATION_CHANGE,M))}},updateScale:function(){var M=this.canvas.style,D=this.gameSize.width,G=this.gameSize.height,H,B,_=this.zoom,w=this.autoRound;if(this.scaleMode===u.SCALE_MODE.NONE)this.displaySize.setSize(D*_,G*_),H=this.displaySize.width,B=this.displaySize.height,w&&(H=Math.floor(H),B=Math.floor(B)),this._resetZoom&&(M.width=H+"px",M.height=B+"px",this._resetZoom=!1);else if(this.scaleMode===u.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),H=this.displaySize.width,B=this.displaySize.height,w&&(H=Math.floor(H),B=Math.floor(B)),this.canvas.width=H,this.canvas.height=B;else if(this.scaleMode===u.SCALE_MODE.EXPAND){this.displaySize.setSize(this.parentSize.width,this.parentSize.height),H=this.displaySize.width,B=this.displaySize.height,w&&(H=Math.floor(H),B=Math.floor(B)),M.width=H+"px",M.height=B+"px";var b=this.parentSize.width/this.gameSize.width,F=this.parentSize.height/this.gameSize.height;b=0?0:-(B.x*_.x),b=B.y>=0?0:-(B.y*_.y),F;H.width>=B.width?F=G.width:F=G.width-(B.width-H.width)*_.x;var k;return H.height>=B.height?k=G.height:k=G.height-(B.height-H.height)*_.y,D.setTo(w,b,F,k),M&&(D.width/=M.zoomX,D.height/=M.zoomY,D.centerX=M.centerX+M.scrollX,D.centerY=M.centerY+M.scrollY),D},step:function(M,D){this.parent&&(this._lastCheck+=D,(this.dirty||this._lastCheck>this.resizeInterval)&&(this.getParentBounds()&&this.refresh(),this.dirty=!1,this._lastCheck=0))},stopListeners:function(){var M=this.domlisteners;window.removeEventListener("orientationchange",M.orientationChange,!1),window.removeEventListener("resize",M.windowResize,!1);var D=["webkit","moz",""];D.forEach(function(G){document.removeEventListener(G+"fullscreenchange",M.fullScreenChange,!1),document.removeEventListener(G+"fullscreenerror",M.fullScreenError,!1)}),document.removeEventListener("MSFullscreenChange",M.fullScreenChange,!1),document.removeEventListener("MSFullscreenError",M.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===u.ORIENTATION.PORTRAIT}},isLandscape:{get:function(){return this.orientation===u.ORIENTATION.LANDSCAPE}},isGamePortrait:{get:function(){return this.height>this.width}},isGameLandscape:{get:function(){return this.width>this.height}}});o.exports=v},64743:o=>{/** + */var u=s(13560),T=s(83419),A=s(50792),c=s(97480),d=s(8443),h=s(57811),f=s(74403),S=s(45818),R=s(29747),L=s(87841),p=s(86555),N=s(56583),g=s(26099),C=s(38058),P=new T({Extends:A,initialize:v(function(D){A.call(this),this.game=D,this.canvas,this.canvasBounds=new L,this.parent=null,this.parentIsWindow=!1,this.parentSize=new p,this.gameSize=new p,this.baseSize=new p,this.displaySize=new p,this.scaleMode=u.SCALE_MODE.NONE,this.zoom=1,this._resetZoom=!1,this.displayScale=new g(1,1),this.autoRound=!1,this.autoCenter=u.CENTER.NO_CENTER,this.orientation=u.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:R,windowResize:R,fullScreenChange:R,fullScreenError:R}},"ScaleManager"),preBoot:function(){this.parseConfig(this.game.config),this.game.events.once(d.BOOT,this.boot,this)},boot:function(){var M=this.game;this.canvas=M.canvas,this.fullscreen=M.device.fullscreen,this.scaleMode!==u.SCALE_MODE.RESIZE&&this.scaleMode!==u.SCALE_MODE.EXPAND&&this.displaySize.setAspectMode(this.scaleMode),this.scaleMode===u.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()),M.events.on(d.PRE_STEP,this.step,this),M.events.once(d.READY,this.refresh,this),M.events.once(d.DESTROY,this.destroy,this),this.startListeners()},parseConfig:function(M){this.getParent(M),this.getParentBounds();var D=M.width,G=M.height,H=M.scaleMode,B=M.zoom,b=M.autoRound;if(typeof D=="string")if(D.substr(-1)!=="%")D=parseInt(D,10);else{var w=this.parentSize.width;w===0&&(w=window.innerWidth);var _=parseInt(D,10)/100;D=Math.floor(w*_)}if(typeof G=="string")if(G.substr(-1)!=="%")G=parseInt(G,10);else{var F=this.parentSize.height;F===0&&(F=window.innerHeight);var x=parseInt(G,10)/100;G=Math.floor(F*x)}this.scaleMode=H,this.autoRound=b,this.autoCenter=M.autoCenter,this.resizeInterval=M.resizeInterval,b&&(D=Math.floor(D),G=Math.floor(G)),this.gameSize.setSize(D,G),B===u.ZOOM.MAX_ZOOM&&(B=this.getMaxZoom()),this.zoom=B,B!==1&&(this._resetZoom=!0),this.baseSize.setSize(D,G),b&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),M.minWidth>0&&this.displaySize.setMin(M.minWidth*B,M.minHeight*B),M.maxWidth>0&&this.displaySize.setMax(M.maxWidth*B,M.maxHeight*B),this.displaySize.setSize(D,G),(M.snapWidth>0||M.snapHeight>0)&&this.displaySize.setSnap(M.snapWidth,M.snapHeight),this.orientation=S(D,G)},getParent:function(M){var D=M.parent;if(D!==null){if(this.parent=f(D),this.parentIsWindow=this.parent===document.body,M.expandParent&&M.scaleMode!==u.SCALE_MODE.NONE){var G=this.parent.getBoundingClientRect();(this.parentIsWindow||G.height===0)&&(document.documentElement.style.height="100%",document.body.style.height="100%",G=this.parent.getBoundingClientRect(),!this.parentIsWindow&&G.height===0&&(this.parent.style.overflow="hidden",this.parent.style.width="100%",this.parent.style.height="100%"))}M.fullscreenTarget&&!this.fullscreenTarget&&(this.fullscreenTarget=f(M.fullscreenTarget))}},getParentBounds:function(){if(!this.parent)return!1;var M=this.parentSize,D=this.parent.getBoundingClientRect();this.parentIsWindow&&this.game.device.os.iOS&&(D.height=h(!0));var G=D.width,H=D.height;if(M.width!==G||M.height!==H)return M.setSize(G,H),!0;if(this.canvas){var B=this.canvasBounds,b=this.canvas.getBoundingClientRect();if(b.x!==B.x||b.y!==B.y)return!0}return!1},lockOrientation:function(M){var D=screen.lockOrientation||screen.mozLockOrientation||screen.msLockOrientation;return D?D.call(screen,M):!1},setParentSize:function(M,D){return this.parentSize.setSize(M,D),this.refresh()},setGameSize:function(M,D){var G=this.autoRound;G&&(M=Math.floor(M),D=Math.floor(D));var H=this.width,B=this.height;return this.gameSize.resize(M,D),this.baseSize.resize(M,D),G&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setAspectRatio(M/D),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height,this.refresh(H,B)},resize:function(M,D){var G=this.zoom,H=this.autoRound;H&&(M=Math.floor(M),D=Math.floor(D));var B=this.width,b=this.height;this.gameSize.resize(M,D),this.baseSize.resize(M,D),H&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(M*G,D*G),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height;var w=this.canvas.style,_=M*G,F=D*G;return H&&(_=Math.floor(_),F=Math.floor(F)),(_!==M||F!==D)&&(w.width=_+"px",w.height=F+"px"),this.refresh(B,b)},setZoom:function(M){return this.zoom=M,this._resetZoom=!0,this.refresh()},setMaxZoom:function(){return this.zoom=this.getMaxZoom(),this._resetZoom=!0,this.refresh()},setSnap:function(M,D){return M===void 0&&(M=0),D===void 0&&(D=M),this.displaySize.setSnap(M,D),this.refresh()},refresh:function(M,D){M===void 0&&(M=this.width),D===void 0&&(D=this.height),this.updateScale(),this.updateBounds(),this.updateOrientation(),this.displayScale.set(this.baseSize.width/this.canvasBounds.width,this.baseSize.height/this.canvasBounds.height);var G=this.game.domContainer;if(G){this.baseSize.setCSS(G);var H=this.canvas.style,B=G.style;B.transform="scale("+this.displaySize.width/this.baseSize.width+","+this.displaySize.height/this.baseSize.height+")",B.marginLeft=H.marginLeft,B.marginTop=H.marginTop}return this.emit(c.RESIZE,this.gameSize,this.baseSize,this.displaySize,M,D),this},updateOrientation:function(){if(this._checkOrientation){this._checkOrientation=!1;var M=S(this.width,this.height);M!==this.orientation&&(this.orientation=M,this.emit(c.ORIENTATION_CHANGE,M))}},updateScale:function(){var M=this.canvas.style,D=this.gameSize.width,G=this.gameSize.height,H,B,b=this.zoom,w=this.autoRound;if(this.scaleMode===u.SCALE_MODE.NONE)this.displaySize.setSize(D*b,G*b),H=this.displaySize.width,B=this.displaySize.height,w&&(H=Math.floor(H),B=Math.floor(B)),this._resetZoom&&(M.width=H+"px",M.height=B+"px",this._resetZoom=!1);else if(this.scaleMode===u.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),H=this.displaySize.width,B=this.displaySize.height,w&&(H=Math.floor(H),B=Math.floor(B)),this.canvas.width=H,this.canvas.height=B;else if(this.scaleMode===u.SCALE_MODE.EXPAND){this.displaySize.setSize(this.parentSize.width,this.parentSize.height),H=this.displaySize.width,B=this.displaySize.height,w&&(H=Math.floor(H),B=Math.floor(B)),M.width=H+"px",M.height=B+"px";var _=this.parentSize.width/this.gameSize.width,F=this.parentSize.height/this.gameSize.height;_=0?0:-(B.x*b.x),_=B.y>=0?0:-(B.y*b.y),F;H.width>=B.width?F=G.width:F=G.width-(B.width-H.width)*b.x;var x;return H.height>=B.height?x=G.height:x=G.height-(B.height-H.height)*b.y,D.setTo(w,_,F,x),M&&(D.width/=M.zoomX,D.height/=M.zoomY,D.centerX=M.centerX+M.scrollX,D.centerY=M.centerY+M.scrollY),D},step:function(M,D){this.parent&&(this._lastCheck+=D,(this.dirty||this._lastCheck>this.resizeInterval)&&(this.getParentBounds()&&this.refresh(),this.dirty=!1,this._lastCheck=0))},stopListeners:function(){var M=this.domlisteners;window.removeEventListener("orientationchange",M.orientationChange,!1),window.removeEventListener("resize",M.windowResize,!1);var D=["webkit","moz",""];D.forEach(function(G){document.removeEventListener(G+"fullscreenchange",M.fullScreenChange,!1),document.removeEventListener(G+"fullscreenerror",M.fullScreenError,!1)}),document.removeEventListener("MSFullscreenChange",M.fullScreenChange,!1),document.removeEventListener("MSFullscreenError",M.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===u.ORIENTATION.PORTRAIT}},isLandscape:{get:function(){return this.orientation===u.ORIENTATION.LANDSCAPE}},isGamePortrait:{get:function(){return this.height>this.width}},isGameLandscape:{get:function(){return this.width>this.height}}});o.exports=P},64743:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4947,7 +4947,7 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={NO_ZOOM:1,ZOOM_2X:2,ZOOM_4X:4,MAX_ZOOM:-1}},13560:(o,m,s)=>{/** + */o.exports={NO_ZOOM:1,ZOOM_2X:2,ZOOM_4X:4,MAX_ZOOM:-1}},13560:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4975,52 +4975,52 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports="resize"},97480:(o,m,s)=>{/** + */o.exports="resize"},97480:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={ENTER_FULLSCREEN:s(56139),FULLSCREEN_FAILED:s(2336),FULLSCREEN_UNSUPPORTED:s(47412),LEAVE_FULLSCREEN:s(51452),ORIENTATION_CHANGE:s(20666),RESIZE:s(47945)}},93364:(o,m,s)=>{/** + */o.exports={ENTER_FULLSCREEN:s(56139),FULLSCREEN_FAILED:s(2336),FULLSCREEN_UNSUPPORTED:s(47412),LEAVE_FULLSCREEN:s(51452),ORIENTATION_CHANGE:s(20666),RESIZE:s(47945)}},93364:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(79291),T=s(13560),d={Center:s(64743),Events:s(97480),Orientation:s(39218),ScaleManager:s(76531),ScaleModes:s(81050),Zoom:s(80805)};d=u(!1,d,T.CENTER),d=u(!1,d,T.ORIENTATION),d=u(!1,d,T.SCALE_MODE),d=u(!1,d,T.ZOOM),o.exports=d},27397:(o,m,s)=>{/** + */var u=s(79291),T=s(13560),A={Center:s(64743),Events:s(97480),Orientation:s(39218),ScaleManager:s(76531),ScaleModes:s(81050),Zoom:s(80805)};A=u(!1,A,T.CENTER),A=u(!1,A,T.ORIENTATION),A=u(!1,A,T.SCALE_MODE),A=u(!1,A,T.ZOOM),o.exports=A},27397:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(95540),T=s(35355),d=P(function(c){var A=c.game.config.defaultPhysicsSystem,h=u(c.settings,"physics",!1);if(!(!A&&!h)){var f=[];if(A&&f.push(T(A+"Physics")),h)for(var S in h)S=T(S.concat("Physics")),f.indexOf(S)===-1&&f.push(S);return f}},"GetPhysicsPlugins");o.exports=d},52106:(o,m,s)=>{/** + */var u=s(95540),T=s(35355),A=v(function(c){var d=c.game.config.defaultPhysicsSystem,h=u(c.settings,"physics",!1);if(!(!d&&!h)){var f=[];if(d&&f.push(T(d+"Physics")),h)for(var S in h)S=T(S.concat("Physics")),f.indexOf(S)===-1&&f.push(S);return f}},"GetPhysicsPlugins");o.exports=A},52106:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(95540),T=P(function(d){var c=d.plugins.getDefaultScenePlugins(),A=u(d.settings,"plugins",!1);return Array.isArray(A)?A:c||[]},"GetScenePlugins");o.exports=T},87033:o=>{/** + */var u=s(95540),T=v(function(A){var c=A.plugins.getDefaultScenePlugins(),d=u(A.settings,"plugins",!1);return Array.isArray(d)?d:c||[]},"GetScenePlugins");o.exports=T},87033:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={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"};o.exports=m},97482:(o,m,s)=>{/** + */var O={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"};o.exports=O},97482:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(2368),d=new u({initialize:P(function(A){this.sys=new T(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},"Scene"),update:function(){}});o.exports=d},60903:(o,m,s)=>{/** + */var u=s(83419),T=s(2368),A=new u({initialize:v(function(d){this.sys=new T(this,d),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},"Scene"),update:function(){}});o.exports=A},60903:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(89993),d=s(44594),c=s(8443),A=s(35154),h=s(54899),f=s(29747),S=s(97482),O=s(2368),L=new u({initialize:P(function(N,g){if(this.game=N,this.keys={},this.scenes=[],this._pending=[],this._start=[],this._queue=[],this._data={},this.isProcessing=!1,this.isBooted=!1,this.customViewports=0,this.systemScene,g){Array.isArray(g)||(g=[g]);for(var C=0;C-1&&(delete this.keys[C],this.scenes.splice(g,1),this._start.indexOf(C)>-1&&(g=this._start.indexOf(C),this._start.splice(g,1)),N.sys.destroy())}return this},bootScene:function(p){var N=p.sys,g=N.settings;N.sceneUpdate=f,p.init&&(p.init.call(p,g.data),g.status=T.INIT,g.isTransition&&N.events.emit(d.TRANSITION_INIT,g.transitionFrom,g.transitionDuration));var C;N.load&&(C=N.load,C.reset()),C&&p.preload?(p.preload.call(p),g.status=T.LOADING,C.once(h.COMPLETE,this.loadComplete,this),C.start()):this.create(p)},loadComplete:function(p){this.game.sound&&this.game.sound.onBlurPausedSounds&&this.game.sound.unlock(),this.create(p.scene)},payloadComplete:function(p){this.bootScene(p.scene)},update:function(p,N){this.processQueue(),this.isProcessing=!0;for(var g=this.scenes.length-1;g>=0;g--){var C=this.scenes[g].sys;C.settings.status>T.START&&C.settings.status<=T.RUNNING&&C.step(p,N),C.scenePlugin&&C.scenePlugin._target&&C.scenePlugin.step(p,N)}},render:function(p){for(var N=0;N=T.LOADING&&g.settings.status=T.START&&v<=T.CREATING)return this;if(v>=T.RUNNING&&v<=T.SLEEPING)C.shutdown(),C.sceneUpdate=f,C.start(N);else{C.sceneUpdate=f,C.start(N);var M;if(C.load&&(M=C.load),M&&C.settings.hasOwnProperty("pack")&&(M.reset(),M.addPack({payload:C.settings.pack})))return C.settings.status=T.LOADING,M.once(h.COMPLETE,this.payloadComplete,this),M.start(),this}return this.bootScene(g),this},stop:function(p,N){var g=this.getScene(p);if(g&&!g.sys.isTransitioning()&&g.sys.settings.status!==T.SHUTDOWN){var C=g.sys.load;C&&(C.off(h.COMPLETE,this.loadComplete,this),C.off(h.COMPLETE,this.payloadComplete,this)),g.sys.shutdown(N)}return this},switch:function(p,N){var g=this.getScene(p),C=this.getScene(N);return g&&C&&g!==C&&(this.sleep(p),this.isSleeping(N)?this.wake(N):this.start(N)),this},getAt:function(p){return this.scenes[p]},getIndex:function(p){var N=this.getScene(p);return this.scenes.indexOf(N)},bringToTop:function(p){if(this.isProcessing)this._queue.push({op:"bringToTop",keyA:p,keyB:null});else{var N=this.getIndex(p);if(N!==-1&&N0){var g=this.getScene(p);this.scenes.splice(N,1),this.scenes.unshift(g)}}return this},moveDown:function(p){if(this.isProcessing)this._queue.push({op:"moveDown",keyA:p,keyB:null});else{var N=this.getIndex(p);if(N>0){var g=N-1,C=this.getScene(p),v=this.getAt(g);this.scenes[N]=v,this.scenes[g]=C}}return this},moveUp:function(p){if(this.isProcessing)this._queue.push({op:"moveUp",keyA:p,keyB:null});else{var N=this.getIndex(p);if(Ng),0,v)}}return this},moveBelow:function(p,N){if(p===N)return this;if(this.isProcessing)this._queue.push({op:"moveBelow",keyA:p,keyB:N});else{var g=this.getIndex(p),C=this.getIndex(N);if(g!==-1&&C!==-1&&C>g){var v=this.getAt(C);this.scenes.splice(C,1),g===0?this.scenes.unshift(v):this.scenes.splice(g-(C{/** + */var u=s(83419),T=s(89993),A=s(44594),c=s(8443),d=s(35154),h=s(54899),f=s(29747),S=s(97482),R=s(2368),L=new u({initialize:v(function(N,g){if(this.game=N,this.keys={},this.scenes=[],this._pending=[],this._start=[],this._queue=[],this._data={},this.isProcessing=!1,this.isBooted=!1,this.customViewports=0,this.systemScene,g){Array.isArray(g)||(g=[g]);for(var C=0;C-1&&(delete this.keys[C],this.scenes.splice(g,1),this._start.indexOf(C)>-1&&(g=this._start.indexOf(C),this._start.splice(g,1)),N.sys.destroy())}return this},bootScene:function(p){var N=p.sys,g=N.settings;N.sceneUpdate=f,p.init&&(p.init.call(p,g.data),g.status=T.INIT,g.isTransition&&N.events.emit(A.TRANSITION_INIT,g.transitionFrom,g.transitionDuration));var C;N.load&&(C=N.load,C.reset()),C&&p.preload?(p.preload.call(p),g.status=T.LOADING,C.once(h.COMPLETE,this.loadComplete,this),C.start()):this.create(p)},loadComplete:function(p){this.game.sound&&this.game.sound.onBlurPausedSounds&&this.game.sound.unlock(),this.create(p.scene)},payloadComplete:function(p){this.bootScene(p.scene)},update:function(p,N){this.processQueue(),this.isProcessing=!0;for(var g=this.scenes.length-1;g>=0;g--){var C=this.scenes[g].sys;C.settings.status>T.START&&C.settings.status<=T.RUNNING&&C.step(p,N),C.scenePlugin&&C.scenePlugin._target&&C.scenePlugin.step(p,N)}},render:function(p){for(var N=0;N=T.LOADING&&g.settings.status=T.START&&P<=T.CREATING)return this;if(P>=T.RUNNING&&P<=T.SLEEPING)C.shutdown(),C.sceneUpdate=f,C.start(N);else{C.sceneUpdate=f,C.start(N);var M;if(C.load&&(M=C.load),M&&C.settings.hasOwnProperty("pack")&&(M.reset(),M.addPack({payload:C.settings.pack})))return C.settings.status=T.LOADING,M.once(h.COMPLETE,this.payloadComplete,this),M.start(),this}return this.bootScene(g),this},stop:function(p,N){var g=this.getScene(p);if(g&&!g.sys.isTransitioning()&&g.sys.settings.status!==T.SHUTDOWN){var C=g.sys.load;C&&(C.off(h.COMPLETE,this.loadComplete,this),C.off(h.COMPLETE,this.payloadComplete,this)),g.sys.shutdown(N)}return this},switch:function(p,N){var g=this.getScene(p),C=this.getScene(N);return g&&C&&g!==C&&(this.sleep(p),this.isSleeping(N)?this.wake(N):this.start(N)),this},getAt:function(p){return this.scenes[p]},getIndex:function(p){var N=this.getScene(p);return this.scenes.indexOf(N)},bringToTop:function(p){if(this.isProcessing)this._queue.push({op:"bringToTop",keyA:p,keyB:null});else{var N=this.getIndex(p);if(N!==-1&&N0){var g=this.getScene(p);this.scenes.splice(N,1),this.scenes.unshift(g)}}return this},moveDown:function(p){if(this.isProcessing)this._queue.push({op:"moveDown",keyA:p,keyB:null});else{var N=this.getIndex(p);if(N>0){var g=N-1,C=this.getScene(p),P=this.getAt(g);this.scenes[N]=P,this.scenes[g]=C}}return this},moveUp:function(p){if(this.isProcessing)this._queue.push({op:"moveUp",keyA:p,keyB:null});else{var N=this.getIndex(p);if(Ng),0,P)}}return this},moveBelow:function(p,N){if(p===N)return this;if(this.isProcessing)this._queue.push({op:"moveBelow",keyA:p,keyB:N});else{var g=this.getIndex(p),C=this.getIndex(N);if(g!==-1&&C!==-1&&C>g){var P=this.getAt(C);this.scenes.splice(C,1),g===0?this.scenes.unshift(P):this.scenes.splice(g-(C{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(45319),T=s(83419),d=s(44594),c=s(95540),A=s(37277),h=new T({initialize:P(function(S){this.scene=S,this.systems=S.sys,this.settings=S.sys.settings,this.key=S.sys.settings.key,this.manager=S.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,S.sys.events.once(d.BOOT,this.boot,this),S.sys.events.on(d.START,this.pluginStart,this)},"ScenePlugin"),boot:function(){this.systems.events.once(d.DESTROY,this.destroy,this)},pluginStart:function(){this._target=null,this.systems.events.once(d.SHUTDOWN,this.shutdown,this)},start:function(f,S){return f===void 0&&(f=this.key),this.manager.queueOp("stop",this.key),this.manager.queueOp("start",f,S),this},restart:function(f){var S=this.key;return this.manager.queueOp("stop",S),this.manager.queueOp("start",S,f),this},transition:function(f){f===void 0&&(f={});var S=c(f,"target",!1),O=this.manager.getScene(S);if(!S||!this.checkValidTransition(O))return!1;var L=c(f,"duration",1e3);this._elapsed=0,this._target=O,this._duration=L,this._willSleep=c(f,"sleep",!1),this._willRemove=c(f,"remove",!1);var p=c(f,"onUpdate",null);p&&(this._onUpdate=p,this._onUpdateScope=c(f,"onUpdateScope",this.scene));var N=c(f,"allowInput",!1);this.settings.transitionAllowInput=N;var g=O.sys.settings;g.isTransition=!0,g.transitionFrom=this.scene,g.transitionDuration=L,g.transitionAllowInput=N,c(f,"moveAbove",!1)?this.manager.moveAbove(this.key,S):c(f,"moveBelow",!1)&&this.manager.moveBelow(this.key,S),O.sys.isSleeping()?O.sys.wake(c(f,"data")):this.manager.start(S,c(f,"data"));var C=c(f,"onStart",null),v=c(f,"onStartScope",this.scene);return C&&C.call(v,this.scene,O,L),this.systems.events.emit(d.TRANSITION_OUT,O,L),!0},checkValidTransition:function(f){return!(!f||f.sys.isActive()||f.sys.isTransitioning()||f===this.scene||this.systems.isTransitioning())},step:function(f,S){this._elapsed+=S,this.transitionProgress=u(this._elapsed/this._duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.transitionProgress),this._elapsed>=this._duration&&this.transitionComplete()},transitionComplete:function(){var f=this._target.sys,S=this._target.sys.settings;f.events.emit(d.TRANSITION_COMPLETE,this.scene),S.isTransition=!1,S.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(f,S,O,L){return this.manager.add(f,S,O,L)},launch:function(f,S){return f&&f!==this.key&&this.manager.queueOp("start",f,S),this},run:function(f,S){return f&&f!==this.key&&this.manager.queueOp("run",f,S),this},pause:function(f,S){return f===void 0&&(f=this.key),this.manager.queueOp("pause",f,S),this},resume:function(f,S){return f===void 0&&(f=this.key),this.manager.queueOp("resume",f,S),this},sleep:function(f,S){return f===void 0&&(f=this.key),this.manager.queueOp("sleep",f,S),this},wake:function(f,S){return f===void 0&&(f=this.key),this.manager.queueOp("wake",f,S),this},switch:function(f){return f!==this.key&&this.manager.queueOp("switch",this.key,f),this},stop:function(f,S){return f===void 0&&(f=this.key),this.manager.queueOp("stop",f,S),this},setActive:function(f,S,O){S===void 0&&(S=this.key);var L=this.manager.getScene(S);return L&&L.sys.setActive(f,O),this},setVisible:function(f,S){S===void 0&&(S=this.key);var O=this.manager.getScene(S);return O&&O.sys.setVisible(f),this},isSleeping:function(f){return f===void 0&&(f=this.key),this.manager.isSleeping(f)},isActive:function(f){return f===void 0&&(f=this.key),this.manager.isActive(f)},isPaused:function(f){return f===void 0&&(f=this.key),this.manager.isPaused(f)},isVisible:function(f){return f===void 0&&(f=this.key),this.manager.isVisible(f)},swapPosition:function(f,S){return S===void 0&&(S=this.key),f!==S&&this.manager.swapPosition(f,S),this},moveAbove:function(f,S){return S===void 0&&(S=this.key),f!==S&&this.manager.moveAbove(f,S),this},moveBelow:function(f,S){return S===void 0&&(S=this.key),f!==S&&this.manager.moveBelow(f,S),this},remove:function(f){return f===void 0&&(f=this.key),this.manager.remove(f),this},moveUp:function(f){return f===void 0&&(f=this.key),this.manager.moveUp(f),this},moveDown:function(f){return f===void 0&&(f=this.key),this.manager.moveDown(f),this},bringToTop:function(f){return f===void 0&&(f=this.key),this.manager.bringToTop(f),this},sendToBack:function(f){return f===void 0&&(f=this.key),this.manager.sendToBack(f),this},get:function(f){return this.manager.getScene(f)},getStatus:function(f){var S=this.manager.getScene(f);if(S)return S.sys.getStatus()},getIndex:function(f){return f===void 0&&(f=this.key),this.manager.getIndex(f)},shutdown:function(){var f=this.systems.events;f.off(d.SHUTDOWN,this.shutdown,this),f.off(d.TRANSITION_OUT)},destroy:function(){this.shutdown(),this.scene.sys.events.off(d.START,this.start,this),this.scene=null,this.systems=null,this.settings=null,this.manager=null}});A.register("ScenePlugin",h,"scenePlugin"),o.exports=h},55681:(o,m,s)=>{/** + */var u=s(45319),T=s(83419),A=s(44594),c=s(95540),d=s(37277),h=new T({initialize:v(function(S){this.scene=S,this.systems=S.sys,this.settings=S.sys.settings,this.key=S.sys.settings.key,this.manager=S.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,S.sys.events.once(A.BOOT,this.boot,this),S.sys.events.on(A.START,this.pluginStart,this)},"ScenePlugin"),boot:function(){this.systems.events.once(A.DESTROY,this.destroy,this)},pluginStart:function(){this._target=null,this.systems.events.once(A.SHUTDOWN,this.shutdown,this)},start:function(f,S){return f===void 0&&(f=this.key),this.manager.queueOp("stop",this.key),this.manager.queueOp("start",f,S),this},restart:function(f){var S=this.key;return this.manager.queueOp("stop",S),this.manager.queueOp("start",S,f),this},transition:function(f){f===void 0&&(f={});var S=c(f,"target",!1),R=this.manager.getScene(S);if(!S||!this.checkValidTransition(R))return!1;var L=c(f,"duration",1e3);this._elapsed=0,this._target=R,this._duration=L,this._willSleep=c(f,"sleep",!1),this._willRemove=c(f,"remove",!1);var p=c(f,"onUpdate",null);p&&(this._onUpdate=p,this._onUpdateScope=c(f,"onUpdateScope",this.scene));var N=c(f,"allowInput",!1);this.settings.transitionAllowInput=N;var g=R.sys.settings;g.isTransition=!0,g.transitionFrom=this.scene,g.transitionDuration=L,g.transitionAllowInput=N,c(f,"moveAbove",!1)?this.manager.moveAbove(this.key,S):c(f,"moveBelow",!1)&&this.manager.moveBelow(this.key,S),R.sys.isSleeping()?R.sys.wake(c(f,"data")):this.manager.start(S,c(f,"data"));var C=c(f,"onStart",null),P=c(f,"onStartScope",this.scene);return C&&C.call(P,this.scene,R,L),this.systems.events.emit(A.TRANSITION_OUT,R,L),!0},checkValidTransition:function(f){return!(!f||f.sys.isActive()||f.sys.isTransitioning()||f===this.scene||this.systems.isTransitioning())},step:function(f,S){this._elapsed+=S,this.transitionProgress=u(this._elapsed/this._duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.transitionProgress),this._elapsed>=this._duration&&this.transitionComplete()},transitionComplete:function(){var f=this._target.sys,S=this._target.sys.settings;f.events.emit(A.TRANSITION_COMPLETE,this.scene),S.isTransition=!1,S.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(f,S,R,L){return this.manager.add(f,S,R,L)},launch:function(f,S){return f&&f!==this.key&&this.manager.queueOp("start",f,S),this},run:function(f,S){return f&&f!==this.key&&this.manager.queueOp("run",f,S),this},pause:function(f,S){return f===void 0&&(f=this.key),this.manager.queueOp("pause",f,S),this},resume:function(f,S){return f===void 0&&(f=this.key),this.manager.queueOp("resume",f,S),this},sleep:function(f,S){return f===void 0&&(f=this.key),this.manager.queueOp("sleep",f,S),this},wake:function(f,S){return f===void 0&&(f=this.key),this.manager.queueOp("wake",f,S),this},switch:function(f){return f!==this.key&&this.manager.queueOp("switch",this.key,f),this},stop:function(f,S){return f===void 0&&(f=this.key),this.manager.queueOp("stop",f,S),this},setActive:function(f,S,R){S===void 0&&(S=this.key);var L=this.manager.getScene(S);return L&&L.sys.setActive(f,R),this},setVisible:function(f,S){S===void 0&&(S=this.key);var R=this.manager.getScene(S);return R&&R.sys.setVisible(f),this},isSleeping:function(f){return f===void 0&&(f=this.key),this.manager.isSleeping(f)},isActive:function(f){return f===void 0&&(f=this.key),this.manager.isActive(f)},isPaused:function(f){return f===void 0&&(f=this.key),this.manager.isPaused(f)},isVisible:function(f){return f===void 0&&(f=this.key),this.manager.isVisible(f)},swapPosition:function(f,S){return S===void 0&&(S=this.key),f!==S&&this.manager.swapPosition(f,S),this},moveAbove:function(f,S){return S===void 0&&(S=this.key),f!==S&&this.manager.moveAbove(f,S),this},moveBelow:function(f,S){return S===void 0&&(S=this.key),f!==S&&this.manager.moveBelow(f,S),this},remove:function(f){return f===void 0&&(f=this.key),this.manager.remove(f),this},moveUp:function(f){return f===void 0&&(f=this.key),this.manager.moveUp(f),this},moveDown:function(f){return f===void 0&&(f=this.key),this.manager.moveDown(f),this},bringToTop:function(f){return f===void 0&&(f=this.key),this.manager.bringToTop(f),this},sendToBack:function(f){return f===void 0&&(f=this.key),this.manager.sendToBack(f),this},get:function(f){return this.manager.getScene(f)},getStatus:function(f){var S=this.manager.getScene(f);if(S)return S.sys.getStatus()},getIndex:function(f){return f===void 0&&(f=this.key),this.manager.getIndex(f)},shutdown:function(){var f=this.systems.events;f.off(A.SHUTDOWN,this.shutdown,this),f.off(A.TRANSITION_OUT)},destroy:function(){this.shutdown(),this.scene.sys.events.off(A.START,this.start,this),this.scene=null,this.systems=null,this.settings=null,this.manager=null}});d.register("ScenePlugin",h,"scenePlugin"),o.exports=h},55681:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(89993),T=s(35154),d=s(46975),c=s(87033),A={create:function(h){return typeof h=="string"?h={key:h}:h===void 0&&(h={}),{status:u.PENDING,key:T(h,"key",""),active:T(h,"active",!1),visible:T(h,"visible",!0),isBooted:!1,isTransition:!1,transitionFrom:null,transitionDuration:0,transitionAllowInput:!0,data:{},pack:T(h,"pack",!1),cameras:T(h,"cameras",null),map:T(h,"map",d(c,T(h,"mapAdd",{}))),physics:T(h,"physics",{}),loader:T(h,"loader",{}),plugins:T(h,"plugins",!1),input:T(h,"input",{})}}};o.exports=A},2368:(o,m,s)=>{/** + */var u=s(89993),T=s(35154),A=s(46975),c=s(87033),d={create:function(h){return typeof h=="string"?h={key:h}:h===void 0&&(h={}),{status:u.PENDING,key:T(h,"key",""),active:T(h,"active",!1),visible:T(h,"visible",!0),isBooted:!1,isTransition:!1,transitionFrom:null,transitionDuration:0,transitionAllowInput:!0,data:{},pack:T(h,"pack",!1),cameras:T(h,"cameras",null),map:T(h,"map",A(c,T(h,"mapAdd",{}))),physics:T(h,"physics",{}),loader:T(h,"loader",{}),plugins:T(h,"plugins",!1),input:T(h,"input",{})}}};o.exports=d},2368:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(89993),d=s(42363),c=s(44594),A=s(27397),h=s(52106),f=s(29747),S=s(55681),O=new u({initialize:P(function(p,N){this.scene=p,this.game,this.renderer,this.config=N,this.settings=S.create(N),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=f},"Systems"),init:function(L){this.settings.status=T.INIT,this.sceneUpdate=f,this.game=L,this.renderer=L.renderer,this.canvas=L.canvas,this.context=L.context;var p=L.plugins;this.plugins=p,p.addToScene(this,d.Global,[d.CoreScene,h(this),A(this)]),this.events.emit(c.BOOT,this),this.settings.isBooted=!0},step:function(L,p){var N=this.events;N.emit(c.PRE_UPDATE,L,p),N.emit(c.UPDATE,L,p),this.sceneUpdate.call(this.scene,L,p),N.emit(c.POST_UPDATE,L,p)},render:function(L){var p=this.displayList;p.depthSort(),this.events.emit(c.PRE_RENDER,L),this.cameras.render(L,p),this.events.emit(c.RENDER,L)},queueDepthSort:function(){this.displayList.queueDepthSort()},depthSort:function(){this.displayList.depthSort()},pause:function(L){var p=this.settings,N=this.getStatus();return N!==T.CREATING&&N!==T.RUNNING?console.warn("Cannot pause non-running Scene",p.key):this.settings.active&&(p.status=T.PAUSED,p.active=!1,this.events.emit(c.PAUSE,this,L)),this},resume:function(L){var p=this.events,N=this.settings;return this.settings.active||(N.status=T.RUNNING,N.active=!0,p.emit(c.RESUME,this,L)),this},sleep:function(L){var p=this.settings,N=this.getStatus();return N!==T.CREATING&&N!==T.RUNNING?console.warn("Cannot sleep non-running Scene",p.key):(p.status=T.SLEEPING,p.active=!1,p.visible=!1,this.events.emit(c.SLEEP,this,L)),this},wake:function(L){var p=this.events,N=this.settings;return N.status=T.RUNNING,N.active=!0,N.visible=!0,p.emit(c.WAKE,this,L),N.isTransition&&p.emit(c.TRANSITION_WAKE,N.transitionFrom,N.transitionDuration),this},getData:function(){return this.settings.data},getStatus:function(){return this.settings.status},canInput:function(){var L=this.settings.status;return L>T.PENDING&&L<=T.RUNNING},isSleeping:function(){return this.settings.status===T.SLEEPING},isActive:function(){return this.settings.status===T.RUNNING},isPaused:function(){return this.settings.status===T.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(L){return this.settings.visible=L,this},setActive:function(L,p){return L?this.resume(p):this.pause(p)},start:function(L){var p=this.events,N=this.settings;L&&(N.data=L),N.status=T.START,N.active=!0,N.visible=!0,p.emit(c.START,this),p.emit(c.READY,this,L)},shutdown:function(L){var p=this.events,N=this.settings;p.off(c.TRANSITION_INIT),p.off(c.TRANSITION_START),p.off(c.TRANSITION_COMPLETE),p.off(c.TRANSITION_OUT),N.status=T.SHUTDOWN,N.active=!1,N.visible=!1,p.emit(c.SHUTDOWN,this,L)},destroy:function(){var L=this.events,p=this.settings;p.status=T.DESTROYED,p.active=!1,p.visible=!1,L.emit(c.DESTROY,this),L.removeAllListeners();for(var N=["scene","game","anims","cache","plugins","registry","sound","textures","add","camera","displayList","events","make","scenePlugin","updateList"],g=0;g{/** + */var u=s(83419),T=s(89993),A=s(42363),c=s(44594),d=s(27397),h=s(52106),f=s(29747),S=s(55681),R=new u({initialize:v(function(p,N){this.scene=p,this.game,this.renderer,this.config=N,this.settings=S.create(N),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=f},"Systems"),init:function(L){this.settings.status=T.INIT,this.sceneUpdate=f,this.game=L,this.renderer=L.renderer,this.canvas=L.canvas,this.context=L.context;var p=L.plugins;this.plugins=p,p.addToScene(this,A.Global,[A.CoreScene,h(this),d(this)]),this.events.emit(c.BOOT,this),this.settings.isBooted=!0},step:function(L,p){var N=this.events;N.emit(c.PRE_UPDATE,L,p),N.emit(c.UPDATE,L,p),this.sceneUpdate.call(this.scene,L,p),N.emit(c.POST_UPDATE,L,p)},render:function(L){var p=this.displayList;p.depthSort(),this.events.emit(c.PRE_RENDER,L),this.cameras.render(L,p),this.events.emit(c.RENDER,L)},queueDepthSort:function(){this.displayList.queueDepthSort()},depthSort:function(){this.displayList.depthSort()},pause:function(L){var p=this.settings,N=this.getStatus();return N!==T.CREATING&&N!==T.RUNNING?console.warn("Cannot pause non-running Scene",p.key):this.settings.active&&(p.status=T.PAUSED,p.active=!1,this.events.emit(c.PAUSE,this,L)),this},resume:function(L){var p=this.events,N=this.settings;return this.settings.active||(N.status=T.RUNNING,N.active=!0,p.emit(c.RESUME,this,L)),this},sleep:function(L){var p=this.settings,N=this.getStatus();return N!==T.CREATING&&N!==T.RUNNING?console.warn("Cannot sleep non-running Scene",p.key):(p.status=T.SLEEPING,p.active=!1,p.visible=!1,this.events.emit(c.SLEEP,this,L)),this},wake:function(L){var p=this.events,N=this.settings;return N.status=T.RUNNING,N.active=!0,N.visible=!0,p.emit(c.WAKE,this,L),N.isTransition&&p.emit(c.TRANSITION_WAKE,N.transitionFrom,N.transitionDuration),this},getData:function(){return this.settings.data},getStatus:function(){return this.settings.status},canInput:function(){var L=this.settings.status;return L>T.PENDING&&L<=T.RUNNING},isSleeping:function(){return this.settings.status===T.SLEEPING},isActive:function(){return this.settings.status===T.RUNNING},isPaused:function(){return this.settings.status===T.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(L){return this.settings.visible=L,this},setActive:function(L,p){return L?this.resume(p):this.pause(p)},start:function(L){var p=this.events,N=this.settings;L&&(N.data=L),N.status=T.START,N.active=!0,N.visible=!0,p.emit(c.START,this),p.emit(c.READY,this,L)},shutdown:function(L){var p=this.events,N=this.settings;p.off(c.TRANSITION_INIT),p.off(c.TRANSITION_START),p.off(c.TRANSITION_COMPLETE),p.off(c.TRANSITION_OUT),N.status=T.SHUTDOWN,N.active=!1,N.visible=!1,p.emit(c.SHUTDOWN,this,L)},destroy:function(){var L=this.events,p=this.settings;p.status=T.DESTROYED,p.active=!1,p.visible=!1,L.emit(c.DESTROY,this),L.removeAllListeners();for(var N=["scene","game","anims","cache","plugins","registry","sound","textures","add","camera","displayList","events","make","scenePlugin","updateList"],g=0;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={PENDING:0,INIT:1,START:2,LOADING:3,CREATING:4,RUNNING:5,PAUSED:6,SLEEPING:7,SHUTDOWN:8,DESTROYED:9};o.exports=m},69830:o=>{/** + */var O={PENDING:0,INIT:1,START:2,LOADING:3,CREATING:4,RUNNING:5,PAUSED:6,SLEEPING:7,SHUTDOWN:8,DESTROYED:9};o.exports=O},69830:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -5108,30 +5108,30 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports="wake"},44594:(o,m,s)=>{/** + */o.exports="wake"},44594:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={ADDED_TO_SCENE:s(69830),BOOT:s(7919),CREATE:s(46763),DESTROY:s(11763),PAUSE:s(71555),POST_UPDATE:s(36735),PRE_RENDER:s(3809),PRE_UPDATE:s(90716),READY:s(58262),REMOVED_FROM_SCENE:s(91633),RENDER:s(10319),RESUME:s(87132),SHUTDOWN:s(81961),SLEEP:s(90194),START:s(6265),TRANSITION_COMPLETE:s(33178),TRANSITION_INIT:s(43063),TRANSITION_OUT:s(11259),TRANSITION_START:s(61611),TRANSITION_WAKE:s(45209),UPDATE:s(22966),WAKE:s(21747)}},62194:(o,m,s)=>{/** + */o.exports={ADDED_TO_SCENE:s(69830),BOOT:s(7919),CREATE:s(46763),DESTROY:s(11763),PAUSE:s(71555),POST_UPDATE:s(36735),PRE_RENDER:s(3809),PRE_UPDATE:s(90716),READY:s(58262),REMOVED_FROM_SCENE:s(91633),RENDER:s(10319),RESUME:s(87132),SHUTDOWN:s(81961),SLEEP:s(90194),START:s(6265),TRANSITION_COMPLETE:s(33178),TRANSITION_INIT:s(43063),TRANSITION_OUT:s(11259),TRANSITION_START:s(61611),TRANSITION_WAKE:s(45209),UPDATE:s(22966),WAKE:s(21747)}},62194:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(89993),T=s(79291),d={Events:s(44594),GetPhysicsPlugins:s(27397),GetScenePlugins:s(52106),SceneManager:s(60903),ScenePlugin:s(52209),Settings:s(55681),Systems:s(2368)};d=T(!1,d,u),o.exports=d},30341:(o,m,s)=>{/** + */var u=s(89993),T=s(79291),A={Events:s(44594),GetPhysicsPlugins:s(27397),GetScenePlugins:s(52106),SceneManager:s(60903),ScenePlugin:s(52209),Settings:s(55681),Systems:s(2368)};A=T(!1,A,u),o.exports=A},30341:(o,O,s)=>{/** * @author Richard Davey * @author Pavle Goloskokovic (http://prunegames.com) * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(50792),d=s(14463),c=s(79291),A=s(29747),h=new u({Extends:T,initialize:P(function(S,O,L){T.call(this),this.manager=S,this.key=O,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=c(this.config,L),this.markers={},this.currentMarker=null,this.pendingRemove=!1},"BaseSound"),addMarker:function(f){return!f||!f.name||typeof f.name!="string"?!1:this.markers[f.name]?(console.error("addMarker "+f.name+" already exists in Sound"),!1):(f=c(!0,{name:"",start:0,duration:this.totalDuration-(f.start||0),config:{mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0}},f),this.markers[f.name]=f,!0)},updateMarker:function(f){return!f||!f.name||typeof f.name!="string"?!1:this.markers[f.name]?(this.markers[f.name]=c(!0,this.markers[f.name],f),!0):(console.warn("Audio Marker: "+f.name+" missing in Sound: "+this.key),!1)},removeMarker:function(f){var S=this.markers[f];return S?(this.markers[f]=null,S):null},play:function(f,S){if(f===void 0&&(f=""),typeof f=="object"&&(S=f,f=""),typeof f!="string")return!1;if(!f)this.currentMarker=null,this.currentConfig=this.config,this.duration=this.totalDuration;else{if(!this.markers[f])return console.warn("Marker: "+f+" missing in Sound: "+this.key),!1;this.currentMarker=this.markers[f],this.currentConfig=this.currentMarker.config,this.duration=this.currentMarker.duration}return this.resetConfig(),this.currentConfig=c(this.currentConfig,S),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 f=1.0005777895065548,S=this.currentConfig.detune+this.manager.detune,O=Math.pow(f,S);this.totalRate=this.currentConfig.rate*this.manager.rate*O},destroy:function(){this.pendingRemove||(this.stop(),this.emit(d.DESTROY,this),this.removeAllListeners(),this.pendingRemove=!0,this.manager=null,this.config=null,this.currentConfig=null,this.markers=null,this.currentMarker=null)}});o.exports=h},85034:(o,m,s)=>{/** + */var u=s(83419),T=s(50792),A=s(14463),c=s(79291),d=s(29747),h=new u({Extends:T,initialize:v(function(S,R,L){T.call(this),this.manager=S,this.key=R,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=c(this.config,L),this.markers={},this.currentMarker=null,this.pendingRemove=!1},"BaseSound"),addMarker:function(f){return!f||!f.name||typeof f.name!="string"?!1:this.markers[f.name]?(console.error("addMarker "+f.name+" already exists in Sound"),!1):(f=c(!0,{name:"",start:0,duration:this.totalDuration-(f.start||0),config:{mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0}},f),this.markers[f.name]=f,!0)},updateMarker:function(f){return!f||!f.name||typeof f.name!="string"?!1:this.markers[f.name]?(this.markers[f.name]=c(!0,this.markers[f.name],f),!0):(console.warn("Audio Marker: "+f.name+" missing in Sound: "+this.key),!1)},removeMarker:function(f){var S=this.markers[f];return S?(this.markers[f]=null,S):null},play:function(f,S){if(f===void 0&&(f=""),typeof f=="object"&&(S=f,f=""),typeof f!="string")return!1;if(!f)this.currentMarker=null,this.currentConfig=this.config,this.duration=this.totalDuration;else{if(!this.markers[f])return console.warn("Marker: "+f+" missing in Sound: "+this.key),!1;this.currentMarker=this.markers[f],this.currentConfig=this.currentMarker.config,this.duration=this.currentMarker.duration}return this.resetConfig(),this.currentConfig=c(this.currentConfig,S),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:d,calculateRate:function(){var f=1.0005777895065548,S=this.currentConfig.detune+this.manager.detune,R=Math.pow(f,S);this.totalRate=this.currentConfig.rate*this.manager.rate*R},destroy:function(){this.pendingRemove||(this.stop(),this.emit(A.DESTROY,this),this.removeAllListeners(),this.pendingRemove=!0,this.manager=null,this.config=null,this.currentConfig=null,this.markers=null,this.currentMarker=null)}});o.exports=h},85034:(o,O,s)=>{/** * @author Richard Davey * @author Pavle Goloskokovic (http://prunegames.com) * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(41786),d=s(50792),c=s(14463),A=s(8443),h=s(46710),f=s(58731),S=s(29747),O=s(26099),L=new u({Extends:d,initialize:P(function(N){d.call(this),this.game=N,this.jsonCache=N.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 O,N.events.on(A.BLUR,this.onGameBlur,this),N.events.on(A.FOCUS,this.onGameFocus,this),N.events.on(A.PRE_STEP,this.update,this),N.events.once(A.DESTROY,this.destroy,this)},"BaseSoundManager"),add:S,addAudioSprite:function(p,N){N===void 0&&(N={});var g=this.add(p,N);g.spritemap=this.jsonCache.get(p).spritemap;for(var C in g.spritemap)if(g.spritemap.hasOwnProperty(C)){var v=T(N),M=g.spritemap[C];v.loop=M.hasOwnProperty("loop")?M.loop:!1,g.addMarker({name:C,start:M.start,duration:M.end-M.start,config:v})}return g},get:function(p){return f(this.sounds,"key",p)},getAll:function(p){return p?h(this.sounds,"key",p):h(this.sounds)},getAllPlaying:function(){return h(this.sounds,"isPlaying",!0)},play:function(p,N){var g=this.add(p);return g.once(c.COMPLETE,g.destroy,g),N?N.name?(g.addMarker(N),g.play(N.name)):g.play(N):g.play()},playAudioSprite:function(p,N,g){var C=this.addAudioSprite(p);return C.once(c.COMPLETE,C.destroy,C),C.play(N,g)},remove:function(p){var N=this.sounds.indexOf(p);return N!==-1?(p.destroy(),this.sounds.splice(N,1),!0):!1},removeAll:function(){this.sounds.forEach(function(p){p.destroy()}),this.sounds.length=0},removeByKey:function(p){for(var N=0,g=this.sounds.length-1;g>=0;g--){var C=this.sounds[g];C.key===p&&(C.destroy(),this.sounds.splice(g,1),N++)}return N},pauseAll:function(){this.forEachActiveSound(function(p){p.pause()}),this.emit(c.PAUSE_ALL,this)},resumeAll:function(){this.forEachActiveSound(function(p){p.resume()}),this.emit(c.RESUME_ALL,this)},setListenerPosition:S,stopAll:function(){this.forEachActiveSound(function(p){p.stop()}),this.emit(c.STOP_ALL,this)},stopByKey:function(p){var N=0;return this.getAll(p).forEach(function(g){g.stop()&&N++}),N},unlock:S,onBlur:S,onFocus:S,onGameBlur:function(){this.gameLostFocus=!0,this.pauseOnBlur&&this.onBlur()},onGameFocus:function(){this.gameLostFocus=!1,this.pauseOnBlur&&this.onFocus()},update:function(p,N){this.unlocked&&(this.unlocked=!1,this.locked=!1,this.emit(c.UNLOCKED,this));for(var g=this.sounds.length-1;g>=0;g--)this.sounds[g].pendingRemove&&this.sounds.splice(g,1);this.sounds.forEach(function(C){C.update(p,N)})},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(p,N){var g=this;this.sounds.forEach(function(C,v){C&&!C.pendingRemove&&p.call(N||g,C,v,g.sounds)})},setRate:function(p){return this.rate=p,this},rate:{get:function(){return this._rate},set:function(p){this._rate=p,this.forEachActiveSound(function(N){N.calculateRate()}),this.emit(c.GLOBAL_RATE,this,p)}},setDetune:function(p){return this.detune=p,this},detune:{get:function(){return this._detune},set:function(p){this._detune=p,this.forEachActiveSound(function(N){N.calculateRate()}),this.emit(c.GLOBAL_DETUNE,this,p)}}});o.exports=L},14747:(o,m,s)=>{/** + */var u=s(83419),T=s(41786),A=s(50792),c=s(14463),d=s(8443),h=s(46710),f=s(58731),S=s(29747),R=s(26099),L=new u({Extends:A,initialize:v(function(N){A.call(this),this.game=N,this.jsonCache=N.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 R,N.events.on(d.BLUR,this.onGameBlur,this),N.events.on(d.FOCUS,this.onGameFocus,this),N.events.on(d.PRE_STEP,this.update,this),N.events.once(d.DESTROY,this.destroy,this)},"BaseSoundManager"),add:S,addAudioSprite:function(p,N){N===void 0&&(N={});var g=this.add(p,N);g.spritemap=this.jsonCache.get(p).spritemap;for(var C in g.spritemap)if(g.spritemap.hasOwnProperty(C)){var P=T(N),M=g.spritemap[C];P.loop=M.hasOwnProperty("loop")?M.loop:!1,g.addMarker({name:C,start:M.start,duration:M.end-M.start,config:P})}return g},get:function(p){return f(this.sounds,"key",p)},getAll:function(p){return p?h(this.sounds,"key",p):h(this.sounds)},getAllPlaying:function(){return h(this.sounds,"isPlaying",!0)},play:function(p,N){var g=this.add(p);return g.once(c.COMPLETE,g.destroy,g),N?N.name?(g.addMarker(N),g.play(N.name)):g.play(N):g.play()},playAudioSprite:function(p,N,g){var C=this.addAudioSprite(p);return C.once(c.COMPLETE,C.destroy,C),C.play(N,g)},remove:function(p){var N=this.sounds.indexOf(p);return N!==-1?(p.destroy(),this.sounds.splice(N,1),!0):!1},removeAll:function(){this.sounds.forEach(function(p){p.destroy()}),this.sounds.length=0},removeByKey:function(p){for(var N=0,g=this.sounds.length-1;g>=0;g--){var C=this.sounds[g];C.key===p&&(C.destroy(),this.sounds.splice(g,1),N++)}return N},pauseAll:function(){this.forEachActiveSound(function(p){p.pause()}),this.emit(c.PAUSE_ALL,this)},resumeAll:function(){this.forEachActiveSound(function(p){p.resume()}),this.emit(c.RESUME_ALL,this)},setListenerPosition:S,stopAll:function(){this.forEachActiveSound(function(p){p.stop()}),this.emit(c.STOP_ALL,this)},stopByKey:function(p){var N=0;return this.getAll(p).forEach(function(g){g.stop()&&N++}),N},unlock:S,onBlur:S,onFocus:S,onGameBlur:function(){this.gameLostFocus=!0,this.pauseOnBlur&&this.onBlur()},onGameFocus:function(){this.gameLostFocus=!1,this.pauseOnBlur&&this.onFocus()},update:function(p,N){this.unlocked&&(this.unlocked=!1,this.locked=!1,this.emit(c.UNLOCKED,this));for(var g=this.sounds.length-1;g>=0;g--)this.sounds[g].pendingRemove&&this.sounds.splice(g,1);this.sounds.forEach(function(C){C.update(p,N)})},destroy:function(){this.game.events.off(d.BLUR,this.onGameBlur,this),this.game.events.off(d.FOCUS,this.onGameFocus,this),this.game.events.off(d.PRE_STEP,this.update,this),this.removeAllListeners(),this.removeAll(),this.sounds.length=0,this.sounds=null,this.listenerPosition=null,this.game=null},forEachActiveSound:function(p,N){var g=this;this.sounds.forEach(function(C,P){C&&!C.pendingRemove&&p.call(N||g,C,P,g.sounds)})},setRate:function(p){return this.rate=p,this},rate:{get:function(){return this._rate},set:function(p){this._rate=p,this.forEachActiveSound(function(N){N.calculateRate()}),this.emit(c.GLOBAL_RATE,this,p)}},setDetune:function(p){return this.detune=p,this},detune:{get:function(){return this._detune},set:function(p){this._detune=p,this.forEachActiveSound(function(N){N.calculateRate()}),this.emit(c.GLOBAL_DETUNE,this,p)}}});o.exports=L},14747:(o,O,s)=>{/** * @author Richard Davey * @author Pavle Goloskokovic (http://prunegames.com) * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(33684),T=s(25960),d=s(57490),c={create:function(A){var h=A.config.audio,f=A.device.audio;return h.noAudio||!f.webAudio&&!f.audioData?new T(A):f.webAudio&&!h.disableWebAudio?new d(A):new u(A)}};o.exports=c},19723:o=>{/** + */var u=s(33684),T=s(25960),A=s(57490),c={create:function(d){var h=d.config.audio,f=d.device.audio;return h.noAudio||!f.webAudio&&!f.audioData?new T(d):f.webAudio&&!h.disableWebAudio?new A(d):new u(d)}};o.exports=c},19723:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -5227,71 +5227,71 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports="volume"},14463:(o,m,s)=>{/** + */o.exports="volume"},14463:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={COMPLETE:s(19723),DECODED:s(57506),DECODED_ALL:s(98882),DESTROY:s(73146),DETUNE:s(11305),GLOBAL_DETUNE:s(40577),GLOBAL_MUTE:s(30333),GLOBAL_RATE:s(20394),GLOBAL_VOLUME:s(21802),LOOP:s(99190),LOOPED:s(1299),MUTE:s(97125),PAN:s(89259),PAUSE_ALL:s(79986),PAUSE:s(17586),PLAY:s(19618),RATE:s(42306),RESUME_ALL:s(10387),RESUME:s(48959),SEEK:s(9960),STOP_ALL:s(19180),STOP:s(98328),UNLOCKED:s(50401),VOLUME:s(52498)}},64895:(o,m,s)=>{/** + */o.exports={COMPLETE:s(19723),DECODED:s(57506),DECODED_ALL:s(98882),DESTROY:s(73146),DETUNE:s(11305),GLOBAL_DETUNE:s(40577),GLOBAL_MUTE:s(30333),GLOBAL_RATE:s(20394),GLOBAL_VOLUME:s(21802),LOOP:s(99190),LOOPED:s(1299),MUTE:s(97125),PAN:s(89259),PAUSE_ALL:s(79986),PAUSE:s(17586),PLAY:s(19618),RATE:s(42306),RESUME_ALL:s(10387),RESUME:s(48959),SEEK:s(9960),STOP_ALL:s(19180),STOP:s(98328),UNLOCKED:s(50401),VOLUME:s(52498)}},64895:(o,O,s)=>{/** * @author Richard Davey * @author Pavle Goloskokovic (http://prunegames.com) * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(30341),T=s(83419),d=s(14463),c=s(45319),A=new T({Extends:u,initialize:P(function(f,S,O){if(O===void 0&&(O={}),this.tags=f.game.cache.audio.get(S),!this.tags)throw new Error('No cached audio asset with key "'+S);this.audio=null,this.startTime=0,this.previousTime=0,this.duration=this.tags[0].duration,this.totalDuration=this.tags[0].duration,u.call(this,f,S,O)},"HTML5AudioSound"),play:function(h,f){return this.manager.isLocked(this,"play",[h,f])||!u.prototype.play.call(this,h,f)||!this.pickAndPlayAudioTag()?!1:(this.emit(d.PLAY,this),!0)},pause:function(){return this.manager.isLocked(this,"pause")||this.startTime>0||!u.prototype.pause.call(this)?!1:(this.currentConfig.seek=this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0),this.stopAndReleaseAudioTag(),this.emit(d.PAUSE,this),!0)},resume:function(){return this.manager.isLocked(this,"resume")||this.startTime>0||!u.prototype.resume.call(this)||!this.pickAndPlayAudioTag()?!1:(this.emit(d.RESUME,this),!0)},stop:function(){return this.manager.isLocked(this,"stop")||!u.prototype.stop.call(this)?!1:(this.stopAndReleaseAudioTag(),this.emit(d.STOP,this),!0)},pickAndPlayAudioTag:function(){if(!this.pickAudioTag())return this.reset(),!1;var h=this.currentConfig.seek,f=this.currentConfig.delay,S=(this.currentMarker?this.currentMarker.start:0)+h;return this.previousTime=S,this.audio.currentTime=S,this.applyConfig(),f===0?(this.startTime=0,this.audio.paused&&this.playCatchPromise()):(this.startTime=window.performance.now()+f*1e3,this.audio.paused||this.audio.pause()),this.resetConfig(),!0},pickAudioTag:function(){if(this.audio)return!0;for(var h=0;h0){this.startTime=S-this.manager.loopEndOffset?(this.audio.currentTime=f+Math.max(0,O-S),O=this.audio.currentTime):O=S){this.reset(),this.stopAndReleaseAudioTag(),this.emit(d.COMPLETE,this);return}this.previousTime=O}},destroy:function(){u.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=c(this.currentConfig.volume*this.manager.volume,0,1))},calculateRate:function(){u.prototype.calculateRate.call(this),this.audio&&(this.audio.playbackRate=this.totalRate)},mute:{get:function(){return this.currentConfig.mute},set:function(h){this.currentConfig.mute=h,!this.manager.isLocked(this,"mute",h)&&(this.updateMute(),this.emit(d.MUTE,this,h))}},setMute:function(h){return this.mute=h,this},volume:{get:function(){return this.currentConfig.volume},set:function(h){this.currentConfig.volume=h,!this.manager.isLocked(this,"volume",h)&&(this.updateVolume(),this.emit(d.VOLUME,this,h))}},setVolume:function(h){return this.volume=h,this},rate:{get:function(){return this.currentConfig.rate},set:function(h){this.currentConfig.rate=h,!this.manager.isLocked(this,d.RATE,h)&&(this.calculateRate(),this.emit(d.RATE,this,h))}},setRate:function(h){return this.rate=h,this},detune:{get:function(){return this.currentConfig.detune},set:function(h){this.currentConfig.detune=h,!this.manager.isLocked(this,d.DETUNE,h)&&(this.calculateRate(),this.emit(d.DETUNE,this,h))}},setDetune:function(h){return this.detune=h,this},seek:{get:function(){return this.isPlaying?this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0):this.isPaused?this.currentConfig.seek:0},set:function(h){this.manager.isLocked(this,"seek",h)||this.startTime>0||(this.isPlaying||this.isPaused)&&(h=Math.min(Math.max(0,h),this.duration),this.isPlaying?(this.previousTime=h,this.audio.currentTime=h):this.isPaused&&(this.currentConfig.seek=h),this.emit(d.SEEK,this,h))}},setSeek:function(h){return this.seek=h,this},loop:{get:function(){return this.currentConfig.loop},set:function(h){this.currentConfig.loop=h,!this.manager.isLocked(this,"loop",h)&&(this.audio&&(this.audio.loop=h),this.emit(d.LOOP,this,h))}},setLoop:function(h){return this.loop=h,this},pan:{get:function(){return this.currentConfig.pan},set:function(h){this.currentConfig.pan=h,this.emit(d.PAN,this,h)}},setPan:function(h){return this.pan=h,this}});o.exports=A},33684:(o,m,s)=>{/** + */var u=s(30341),T=s(83419),A=s(14463),c=s(45319),d=new T({Extends:u,initialize:v(function(f,S,R){if(R===void 0&&(R={}),this.tags=f.game.cache.audio.get(S),!this.tags)throw new Error('No cached audio asset with key "'+S);this.audio=null,this.startTime=0,this.previousTime=0,this.duration=this.tags[0].duration,this.totalDuration=this.tags[0].duration,u.call(this,f,S,R)},"HTML5AudioSound"),play:function(h,f){return this.manager.isLocked(this,"play",[h,f])||!u.prototype.play.call(this,h,f)||!this.pickAndPlayAudioTag()?!1:(this.emit(A.PLAY,this),!0)},pause:function(){return this.manager.isLocked(this,"pause")||this.startTime>0||!u.prototype.pause.call(this)?!1:(this.currentConfig.seek=this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0),this.stopAndReleaseAudioTag(),this.emit(A.PAUSE,this),!0)},resume:function(){return this.manager.isLocked(this,"resume")||this.startTime>0||!u.prototype.resume.call(this)||!this.pickAndPlayAudioTag()?!1:(this.emit(A.RESUME,this),!0)},stop:function(){return this.manager.isLocked(this,"stop")||!u.prototype.stop.call(this)?!1:(this.stopAndReleaseAudioTag(),this.emit(A.STOP,this),!0)},pickAndPlayAudioTag:function(){if(!this.pickAudioTag())return this.reset(),!1;var h=this.currentConfig.seek,f=this.currentConfig.delay,S=(this.currentMarker?this.currentMarker.start:0)+h;return this.previousTime=S,this.audio.currentTime=S,this.applyConfig(),f===0?(this.startTime=0,this.audio.paused&&this.playCatchPromise()):(this.startTime=window.performance.now()+f*1e3,this.audio.paused||this.audio.pause()),this.resetConfig(),!0},pickAudioTag:function(){if(this.audio)return!0;for(var h=0;h0){this.startTime=S-this.manager.loopEndOffset?(this.audio.currentTime=f+Math.max(0,R-S),R=this.audio.currentTime):R=S){this.reset(),this.stopAndReleaseAudioTag(),this.emit(A.COMPLETE,this);return}this.previousTime=R}},destroy:function(){u.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=c(this.currentConfig.volume*this.manager.volume,0,1))},calculateRate:function(){u.prototype.calculateRate.call(this),this.audio&&(this.audio.playbackRate=this.totalRate)},mute:{get:function(){return this.currentConfig.mute},set:function(h){this.currentConfig.mute=h,!this.manager.isLocked(this,"mute",h)&&(this.updateMute(),this.emit(A.MUTE,this,h))}},setMute:function(h){return this.mute=h,this},volume:{get:function(){return this.currentConfig.volume},set:function(h){this.currentConfig.volume=h,!this.manager.isLocked(this,"volume",h)&&(this.updateVolume(),this.emit(A.VOLUME,this,h))}},setVolume:function(h){return this.volume=h,this},rate:{get:function(){return this.currentConfig.rate},set:function(h){this.currentConfig.rate=h,!this.manager.isLocked(this,A.RATE,h)&&(this.calculateRate(),this.emit(A.RATE,this,h))}},setRate:function(h){return this.rate=h,this},detune:{get:function(){return this.currentConfig.detune},set:function(h){this.currentConfig.detune=h,!this.manager.isLocked(this,A.DETUNE,h)&&(this.calculateRate(),this.emit(A.DETUNE,this,h))}},setDetune:function(h){return this.detune=h,this},seek:{get:function(){return this.isPlaying?this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0):this.isPaused?this.currentConfig.seek:0},set:function(h){this.manager.isLocked(this,"seek",h)||this.startTime>0||(this.isPlaying||this.isPaused)&&(h=Math.min(Math.max(0,h),this.duration),this.isPlaying?(this.previousTime=h,this.audio.currentTime=h):this.isPaused&&(this.currentConfig.seek=h),this.emit(A.SEEK,this,h))}},setSeek:function(h){return this.seek=h,this},loop:{get:function(){return this.currentConfig.loop},set:function(h){this.currentConfig.loop=h,!this.manager.isLocked(this,"loop",h)&&(this.audio&&(this.audio.loop=h),this.emit(A.LOOP,this,h))}},setLoop:function(h){return this.loop=h,this},pan:{get:function(){return this.currentConfig.pan},set:function(h){this.currentConfig.pan=h,this.emit(A.PAN,this,h)}},setPan:function(h){return this.pan=h,this}});o.exports=d},33684:(o,O,s)=>{/** * @author Richard Davey * @author Pavle Goloskokovic (http://prunegames.com) * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(85034),T=s(83419),d=s(14463),c=s(64895),A=new T({Extends:u,initialize:P(function(f){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,u.call(this,f)},"HTML5AudioSoundManager"),add:function(h,f){var S=new c(this,h,f);return this.sounds.push(S),S},unlock:function(){this.locked=!1;var h=this;if(this.game.cache.audio.entries.each(function(L,p){for(var N=0;N{/** + */var u=s(85034),T=s(83419),A=s(14463),c=s(64895),d=new T({Extends:u,initialize:v(function(f){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,u.call(this,f)},"HTML5AudioSoundManager"),add:function(h,f){var S=new c(this,h,f);return this.sounds.push(S),S},unlock:function(){this.locked=!1;var h=this;if(this.game.cache.audio.entries.each(function(L,p){for(var N=0;N{/** * @author Richard Davey * @author Pavle Goloskokovic (http://prunegames.com) * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={SoundManagerCreator:s(14747),Events:s(14463),BaseSound:s(30341),BaseSoundManager:s(85034),WebAudioSound:s(71741),WebAudioSoundManager:s(57490),HTML5AudioSound:s(64895),HTML5AudioSoundManager:s(33684),NoAudioSound:s(4603),NoAudioSoundManager:s(25960)}},4603:(o,m,s)=>{/** + */o.exports={SoundManagerCreator:s(14747),Events:s(14463),BaseSound:s(30341),BaseSoundManager:s(85034),WebAudioSound:s(71741),WebAudioSoundManager:s(57490),HTML5AudioSound:s(64895),HTML5AudioSoundManager:s(33684),NoAudioSound:s(4603),NoAudioSoundManager:s(25960)}},4603:(o,O,s)=>{/** * @author Richard Davey * @author Pavle Goloskokovic (http://prunegames.com) * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(30341),T=s(83419),d=s(50792),c=s(79291),A=s(29747),h=P(function(){return!1},"returnFalse"),f=P(function(){return null},"returnNull"),S=P(function(){return this},"returnThis"),O=new T({Extends:d,initialize:P(function(p,N,g){g===void 0&&(g={}),d.call(this),this.manager=p,this.key=N,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=0,this.totalDuration=0,this.config=c({mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0},g),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},"NoAudioSound"),addMarker:h,updateMarker:h,removeMarker:f,play:h,pause:h,resume:h,stop:h,setMute:S,setVolume:S,setRate:S,setDetune:S,setSeek:S,setLoop:S,setPan:S,applyConfig:f,resetConfig:f,update:A,calculateRate:f,destroy:function(){u.prototype.destroy.call(this)}});o.exports=O},25960:(o,m,s)=>{/** + */var u=s(30341),T=s(83419),A=s(50792),c=s(79291),d=s(29747),h=v(function(){return!1},"returnFalse"),f=v(function(){return null},"returnNull"),S=v(function(){return this},"returnThis"),R=new T({Extends:A,initialize:v(function(p,N,g){g===void 0&&(g={}),A.call(this),this.manager=p,this.key=N,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=0,this.totalDuration=0,this.config=c({mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0},g),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},"NoAudioSound"),addMarker:h,updateMarker:h,removeMarker:f,play:h,pause:h,resume:h,stop:h,setMute:S,setVolume:S,setRate:S,setDetune:S,setSeek:S,setLoop:S,setPan:S,applyConfig:f,resetConfig:f,update:d,calculateRate:f,destroy:function(){u.prototype.destroy.call(this)}});o.exports=R},25960:(o,O,s)=>{/** * @author Richard Davey * @author Pavle Goloskokovic (http://prunegames.com) * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(85034),T=s(83419),d=s(50792),c=s(4603),A=s(29747),h=new T({Extends:d,initialize:P(function(S){d.call(this),this.game=S,this.sounds=[],this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.pauseOnBlur=!0,this.locked=!1},"NoAudioSoundManager"),add:function(f,S){var O=new c(this,f,S);return this.sounds.push(O),O},addAudioSprite:function(f,S){var O=this.add(f,S);return O.spritemap={},O},get:function(f){return u.prototype.get.call(this,f)},getAll:function(f){return u.prototype.getAll.call(this,f)},play:function(f,S){return!1},playAudioSprite:function(f,S,O){return!1},remove:function(f){return u.prototype.remove.call(this,f)},removeAll:function(){return u.prototype.removeAll.call(this)},removeByKey:function(f){return u.prototype.removeByKey.call(this,f)},stopByKey:function(f){return u.prototype.stopByKey.call(this,f)},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(f,S){u.prototype.forEachActiveSound.call(this,f,S)},destroy:function(){u.prototype.destroy.call(this)}});o.exports=h},71741:(o,m,s)=>{/** + */var u=s(85034),T=s(83419),A=s(50792),c=s(4603),d=s(29747),h=new T({Extends:A,initialize:v(function(S){A.call(this),this.game=S,this.sounds=[],this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.pauseOnBlur=!0,this.locked=!1},"NoAudioSoundManager"),add:function(f,S){var R=new c(this,f,S);return this.sounds.push(R),R},addAudioSprite:function(f,S){var R=this.add(f,S);return R.spritemap={},R},get:function(f){return u.prototype.get.call(this,f)},getAll:function(f){return u.prototype.getAll.call(this,f)},play:function(f,S){return!1},playAudioSprite:function(f,S,R){return!1},remove:function(f){return u.prototype.remove.call(this,f)},removeAll:function(){return u.prototype.removeAll.call(this)},removeByKey:function(f){return u.prototype.removeByKey.call(this,f)},stopByKey:function(f){return u.prototype.stopByKey.call(this,f)},onBlur:d,onFocus:d,onGameBlur:d,onGameFocus:d,pauseAll:d,resumeAll:d,stopAll:d,update:d,setRate:d,setDetune:d,setMute:d,setVolume:d,unlock:d,forEachActiveSound:function(f,S){u.prototype.forEachActiveSound.call(this,f,S)},destroy:function(){u.prototype.destroy.call(this)}});o.exports=h},71741:(o,O,s)=>{/** * @author Richard Davey * @author Pavle Goloskokovic (http://prunegames.com) * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(30341),T=s(83419),d=s(14463),c=s(95540),A=new T({Extends:u,initialize:P(function(f,S,O){if(O===void 0&&(O={}),this.audioBuffer=f.game.cache.audio.get(S),!this.audioBuffer)throw new Error('Audio key "'+S+'" missing from cache');this.source=null,this.loopSource=null,this.muteNode=f.context.createGain(),this.volumeNode=f.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),f.context.createPanner&&(this.spatialNode=f.context.createPanner(),this.volumeNode.connect(this.spatialNode)),f.context.createStereoPanner?(this.pannerNode=f.context.createStereoPanner(),f.context.createPanner?this.spatialNode.connect(this.pannerNode):this.volumeNode.connect(this.pannerNode),this.pannerNode.connect(f.destination)):f.context.createPanner?this.spatialNode.connect(f.destination):this.volumeNode.connect(f.destination),this.duration=this.audioBuffer.duration,this.totalDuration=this.audioBuffer.duration,u.call(this,f,S,O)},"WebAudioSound"),play:function(h,f){return u.prototype.play.call(this,h,f)?(this.stopAndRemoveBufferSource(),this.createAndStartBufferSource(),this.emit(d.PLAY,this),!0):!1},pause:function(){return this.manager.context.currentTime{/** + */var u=s(30341),T=s(83419),A=s(14463),c=s(95540),d=new T({Extends:u,initialize:v(function(f,S,R){if(R===void 0&&(R={}),this.audioBuffer=f.game.cache.audio.get(S),!this.audioBuffer)throw new Error('Audio key "'+S+'" missing from cache');this.source=null,this.loopSource=null,this.muteNode=f.context.createGain(),this.volumeNode=f.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),f.context.createPanner&&(this.spatialNode=f.context.createPanner(),this.volumeNode.connect(this.spatialNode)),f.context.createStereoPanner?(this.pannerNode=f.context.createStereoPanner(),f.context.createPanner?this.spatialNode.connect(this.pannerNode):this.volumeNode.connect(this.pannerNode),this.pannerNode.connect(f.destination)):f.context.createPanner?this.spatialNode.connect(f.destination):this.volumeNode.connect(f.destination),this.duration=this.audioBuffer.duration,this.totalDuration=this.audioBuffer.duration,u.call(this,f,S,R)},"WebAudioSound"),play:function(h,f){return u.prototype.play.call(this,h,f)?(this.stopAndRemoveBufferSource(),this.createAndStartBufferSource(),this.emit(A.PLAY,this),!0):!1},pause:function(){return this.manager.context.currentTime{/** * @author Richard Davey * @author Pavle Goloskokovic (http://prunegames.com) * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(53134),T=s(85034),d=s(83419),c=s(14463),A=s(8443),h=s(71741),f=s(95540),S=new d({Extends:T,initialize:P(function(L){this.context=this.createAudioContext(L),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),T.call(this,L),this.locked&&L.isBooted?this.unlock():L.events.once(A.BOOT,this.unlock,this)},"WebAudioSoundManager"),createAudioContext:function(O){var L=O.config.audio;if(L.context)return L.context.resume(),L.context;if(window.hasOwnProperty("AudioContext"))return new AudioContext;if(window.hasOwnProperty("webkitAudioContext"))return new window.webkitAudioContext},setAudioContext:function(O){return this.context&&this.context.close(),this.masterMuteNode&&this.masterMuteNode.disconnect(),this.masterVolumeNode&&this.masterVolumeNode.disconnect(),this.context=O,this.masterMuteNode=O.createGain(),this.masterVolumeNode=O.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(O.destination),this.destination=this.masterMuteNode,this},add:function(O,L){var p=new h(this,O,L);return this.sounds.push(p),p},decodeAudio:function(O,L){var p;Array.isArray(O)?p=O:p=[{key:O,data:L}];for(var N=this.game.cache.audio,g=p.length,C=0;C{/** + */var u=s(53134),T=s(85034),A=s(83419),c=s(14463),d=s(8443),h=s(71741),f=s(95540),S=new A({Extends:T,initialize:v(function(L){this.context=this.createAudioContext(L),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),T.call(this,L),this.locked&&L.isBooted?this.unlock():L.events.once(d.BOOT,this.unlock,this)},"WebAudioSoundManager"),createAudioContext:function(R){var L=R.config.audio;if(L.context)return L.context.resume(),L.context;if(window.hasOwnProperty("AudioContext"))return new AudioContext;if(window.hasOwnProperty("webkitAudioContext"))return new window.webkitAudioContext},setAudioContext:function(R){return this.context&&this.context.close(),this.masterMuteNode&&this.masterMuteNode.disconnect(),this.masterVolumeNode&&this.masterVolumeNode.disconnect(),this.context=R,this.masterMuteNode=R.createGain(),this.masterVolumeNode=R.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(R.destination),this.destination=this.masterMuteNode,this},add:function(R,L){var p=new h(this,R,L);return this.sounds.push(p),p},decodeAudio:function(R,L){var p;Array.isArray(R)?p=R:p=[{key:R,data:L}];for(var N=this.game.cache.audio,g=p.length,C=0;C{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(37105),T=s(83419),d=s(29747),c=s(19186),A=new T({initialize:P(function(f){this.parent=f,this.list=[],this.position=0,this.addCallback=d,this.removeCallback=d,this._sortKey=""},"List"),add:function(h,f){return f?u.Add(this.list,h):u.Add(this.list,h,0,this.addCallback,this)},addAt:function(h,f,S){return S?u.AddAt(this.list,h,f):u.AddAt(this.list,h,f,0,this.addCallback,this)},getAt:function(h){return this.list[h]},getIndex:function(h){return this.list.indexOf(h)},sort:function(h,f){return h?(f===void 0&&(f=P(function(S,O){return S[h]-O[h]},"handler")),c(this.list,f),this):this},getByName:function(h){return u.GetFirst(this.list,"name",h)},getRandom:function(h,f){return u.GetRandom(this.list,h,f)},getFirst:function(h,f,S,O){return u.GetFirst(this.list,h,f,S,O)},getAll:function(h,f,S,O){return u.GetAll(this.list,h,f,S,O)},count:function(h,f){return u.CountAllMatching(this.list,h,f)},swap:function(h,f){u.Swap(this.list,h,f)},moveTo:function(h,f){return u.MoveTo(this.list,h,f)},moveAbove:function(h,f){return u.MoveAbove(this.list,h,f)},moveBelow:function(h,f){return u.MoveBelow(this.list,h,f)},remove:function(h,f){return f?u.Remove(this.list,h):u.Remove(this.list,h,this.removeCallback,this)},removeAt:function(h,f){return f?u.RemoveAt(this.list,h):u.RemoveAt(this.list,h,this.removeCallback,this)},removeBetween:function(h,f,S){return S?u.RemoveBetween(this.list,h,f):u.RemoveBetween(this.list,h,f,this.removeCallback,this)},removeAll:function(h){for(var f=this.list.length;f--;)this.remove(this.list[f],h);return this},bringToTop:function(h){return u.BringToTop(this.list,h)},sendToBack:function(h){return u.SendToBack(this.list,h)},moveUp:function(h){return u.MoveUp(this.list,h),h},moveDown:function(h){return u.MoveDown(this.list,h),h},reverse:function(){return this.list.reverse(),this},shuffle:function(){return u.Shuffle(this.list),this},replace:function(h,f){return u.Replace(this.list,h,f)},exists:function(h){return this.list.indexOf(h)>-1},setAll:function(h,f,S,O){return u.SetAll(this.list,h,f,S,O),this},each:function(h,f){for(var S=[null],O=2;O0?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}}});o.exports=A},90330:(o,m,s)=>{/** + */var u=s(37105),T=s(83419),A=s(29747),c=s(19186),d=new T({initialize:v(function(f){this.parent=f,this.list=[],this.position=0,this.addCallback=A,this.removeCallback=A,this._sortKey=""},"List"),add:function(h,f){return f?u.Add(this.list,h):u.Add(this.list,h,0,this.addCallback,this)},addAt:function(h,f,S){return S?u.AddAt(this.list,h,f):u.AddAt(this.list,h,f,0,this.addCallback,this)},getAt:function(h){return this.list[h]},getIndex:function(h){return this.list.indexOf(h)},sort:function(h,f){return h?(f===void 0&&(f=v(function(S,R){return S[h]-R[h]},"handler")),c(this.list,f),this):this},getByName:function(h){return u.GetFirst(this.list,"name",h)},getRandom:function(h,f){return u.GetRandom(this.list,h,f)},getFirst:function(h,f,S,R){return u.GetFirst(this.list,h,f,S,R)},getAll:function(h,f,S,R){return u.GetAll(this.list,h,f,S,R)},count:function(h,f){return u.CountAllMatching(this.list,h,f)},swap:function(h,f){u.Swap(this.list,h,f)},moveTo:function(h,f){return u.MoveTo(this.list,h,f)},moveAbove:function(h,f){return u.MoveAbove(this.list,h,f)},moveBelow:function(h,f){return u.MoveBelow(this.list,h,f)},remove:function(h,f){return f?u.Remove(this.list,h):u.Remove(this.list,h,this.removeCallback,this)},removeAt:function(h,f){return f?u.RemoveAt(this.list,h):u.RemoveAt(this.list,h,this.removeCallback,this)},removeBetween:function(h,f,S){return S?u.RemoveBetween(this.list,h,f):u.RemoveBetween(this.list,h,f,this.removeCallback,this)},removeAll:function(h){for(var f=this.list.length;f--;)this.remove(this.list[f],h);return this},bringToTop:function(h){return u.BringToTop(this.list,h)},sendToBack:function(h){return u.SendToBack(this.list,h)},moveUp:function(h){return u.MoveUp(this.list,h),h},moveDown:function(h){return u.MoveDown(this.list,h),h},reverse:function(){return this.list.reverse(),this},shuffle:function(){return u.Shuffle(this.list),this},replace:function(h,f){return u.Replace(this.list,h,f)},exists:function(h){return this.list.indexOf(h)>-1},setAll:function(h,f,S,R){return u.SetAll(this.list,h,f,S,R),this},each:function(h,f){for(var S=[null],R=2;R0?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}}});o.exports=d},90330:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=new u({initialize:P(function(c){this.entries={},this.size=0,this.setAll(c)},"Map"),setAll:function(d){if(Array.isArray(d))for(var c=0;c{/** + */var u=s(83419),T=new u({initialize:v(function(c){this.entries={},this.size=0,this.setAll(c)},"Map"),setAll:function(A){if(Array.isArray(A))for(var c=0;c{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(50792),d=s(82348),c=new u({Extends:T,initialize:P(function(){T.call(this),this._pending=[],this._active=[],this._destroy=[],this._toProcess=0,this.checkQueue=!1},"ProcessQueue"),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(A)&&!this.isDestroying(A)||this.isPending(A)||(this._pending.push(A),this._toProcess++),A},remove:function(A){if(this.isPending(A)){var h=this._pending,f=h.indexOf(A);f!==-1&&h.splice(f,1)}else this.isActive(A)&&(this._destroy.push(A),this._toProcess++);return A},removeAll:function(){for(var A=this._active,h=this._destroy,f=A.length;f--;)h.push(A[f]),this._toProcess++;return this},update:function(){if(this._toProcess===0)return this._active;var A=this._destroy,h=this._active,f,S;for(f=0;f{/** + */var u=s(83419),T=s(50792),A=s(82348),c=new u({Extends:T,initialize:v(function(){T.call(this),this._pending=[],this._active=[],this._destroy=[],this._toProcess=0,this.checkQueue=!1},"ProcessQueue"),isActive:function(d){return this._active.indexOf(d)>-1},isPending:function(d){return this._toProcess>0&&this._pending.indexOf(d)>-1},isDestroying:function(d){return this._destroy.indexOf(d)>-1},add:function(d){return this.checkQueue&&this.isActive(d)&&!this.isDestroying(d)||this.isPending(d)||(this._pending.push(d),this._toProcess++),d},remove:function(d){if(this.isPending(d)){var h=this._pending,f=h.indexOf(d);f!==-1&&h.splice(f,1)}else this.isActive(d)&&(this._destroy.push(d),this._toProcess++);return d},removeAll:function(){for(var d=this._active,h=this._destroy,f=d.length;f--;)h.push(d[f]),this._toProcess++;return this},update:function(){if(this._toProcess===0)return this._active;var d=this._destroy,h=this._active,f,S;for(f=0;f{/** * @author Vladimir Agafonkin * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(43886);function T(D){if(!(this instanceof T))return new T(D);this._maxEntries=Math.max(4,D||9),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}P(T,"rbush"),T.prototype={all:function(){return this._all(this.data,[])},search:function(D){var G=this.data,H=[],B=this.toBBox;if(!C(D,G))return H;for(var _=[],w,b,F,k;G;){for(w=0,b=G.children.length;w=0&&w[G].children.length>this._maxEntries;)this._split(w,G),G--;this._adjustParentBBoxes(_,w,G)},_split:function(D,G){var H=D[G],B=H.children.length,_=this._minEntries;this._chooseSplitAxis(H,_,B);var w=this._chooseSplitIndex(H,_,B),b=v(H.children.splice(w,H.children.length-w));b.height=H.height,b.leaf=H.leaf,c(H,this.toBBox),c(b,this.toBBox),G?D[G-1].children.push(b):this._splitRoot(H,b)},_splitRoot:function(D,G){this.data=v([D,G]),this.data.height=D.height+1,this.data.leaf=!1,c(this.data,this.toBBox)},_chooseSplitIndex:function(D,G,H){var B,_,w,b,F,k,V,Z;for(k=V=1/0,B=G;B<=H-G;B++)_=A(D,0,B,this.toBBox),w=A(D,B,H,this.toBBox),b=N(_,w),F=O(_)+O(w),b=G;k--)V=D.children[k],h(b,D.leaf?_(V):V),F+=L(b);return F},_adjustParentBBoxes:function(D,G,H){for(var B=H;B>=0;B--)h(G[B],D)},_condense:function(D){for(var G=D.length-1,H;G>=0;G--)D[G].children.length===0?G>0?(H=D[G-1].children,H.splice(H.indexOf(D[G]),1)):this.clear():c(D[G],this.toBBox)},compareMinX:function(D,G){return D.left-G.left},compareMinY:function(D,G){return D.top-G.top},toBBox:function(D){return{minX:D.left,minY:D.top,maxX:D.right,maxY:D.bottom}}};function d(D,G,H){if(!H)return G.indexOf(D);for(var B=0;B=D.minX&&G.maxY>=D.minY}P(C,"intersects");function v(D){return{children:D,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}P(v,"createNode");function M(D,G,H,B,_){for(var w=[G,H],b;w.length;)H=w.pop(),G=w.pop(),!(H-G<=B)&&(b=G+Math.ceil((H-G)/B/2)*B,u(D,b,G,H,_),w.push(G,b,b,H))}P(M,"multiSelect"),o.exports=T},35072:(o,m,s)=>{/** + */var u=s(43886);function T(D){if(!(this instanceof T))return new T(D);this._maxEntries=Math.max(4,D||9),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}v(T,"rbush"),T.prototype={all:function(){return this._all(this.data,[])},search:function(D){var G=this.data,H=[],B=this.toBBox;if(!C(D,G))return H;for(var b=[],w,_,F,x;G;){for(w=0,_=G.children.length;w<_;w++)F=G.children[w],x=G.leaf?B(F):F,C(D,x)&&(G.leaf?H.push(F):g(D,x)?this._all(F,H):b.push(F));G=b.pop()}return H},collides:function(D){var G=this.data,H=this.toBBox;if(!C(D,G))return!1;for(var B=[],b,w,_,F;G;){for(b=0,w=G.children.length;b=0&&w[G].children.length>this._maxEntries;)this._split(w,G),G--;this._adjustParentBBoxes(b,w,G)},_split:function(D,G){var H=D[G],B=H.children.length,b=this._minEntries;this._chooseSplitAxis(H,b,B);var w=this._chooseSplitIndex(H,b,B),_=P(H.children.splice(w,H.children.length-w));_.height=H.height,_.leaf=H.leaf,c(H,this.toBBox),c(_,this.toBBox),G?D[G-1].children.push(_):this._splitRoot(H,_)},_splitRoot:function(D,G){this.data=P([D,G]),this.data.height=D.height+1,this.data.leaf=!1,c(this.data,this.toBBox)},_chooseSplitIndex:function(D,G,H){var B,b,w,_,F,x,V,Z;for(x=V=1/0,B=G;B<=H-G;B++)b=d(D,0,B,this.toBBox),w=d(D,B,H,this.toBBox),_=N(b,w),F=R(b)+R(w),_=G;x--)V=D.children[x],h(_,D.leaf?b(V):V),F+=L(_);return F},_adjustParentBBoxes:function(D,G,H){for(var B=H;B>=0;B--)h(G[B],D)},_condense:function(D){for(var G=D.length-1,H;G>=0;G--)D[G].children.length===0?G>0?(H=D[G-1].children,H.splice(H.indexOf(D[G]),1)):this.clear():c(D[G],this.toBBox)},compareMinX:function(D,G){return D.left-G.left},compareMinY:function(D,G){return D.top-G.top},toBBox:function(D){return{minX:D.left,minY:D.top,maxX:D.right,maxY:D.bottom}}};function A(D,G,H){if(!H)return G.indexOf(D);for(var B=0;B=D.minX&&G.maxY>=D.minY}v(C,"intersects");function P(D){return{children:D,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}v(P,"createNode");function M(D,G,H,B,b){for(var w=[G,H],_;w.length;)H=w.pop(),G=w.pop(),!(H-G<=B)&&(_=G+Math.ceil((H-G)/B/2)*B,u(D,_,G,H,b),w.push(G,_,_,H))}v(M,"multiSelect"),o.exports=T},35072:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=new u({initialize:P(function(c){if(this.entries=[],Array.isArray(c))for(var A=0;A-1&&this.entries.splice(c,1),this},dump:function(){console.group("Set");for(var d=0;d-1},union:function(d){var c=new T;return d.entries.forEach(function(A){c.set(A)}),this.entries.forEach(function(A){c.set(A)}),c},intersect:function(d){var c=new T;return this.entries.forEach(function(A){d.contains(A)&&c.set(A)}),c},difference:function(d){var c=new T;return this.entries.forEach(function(A){d.contains(A)||c.set(A)}),c},size:{get:function(){return this.entries.length},set:function(d){return d{/** + */var u=s(83419),T=new u({initialize:v(function(c){if(this.entries=[],Array.isArray(c))for(var d=0;d-1&&this.entries.splice(c,1),this},dump:function(){console.group("Set");for(var A=0;A-1},union:function(A){var c=new T;return A.entries.forEach(function(d){c.set(d)}),this.entries.forEach(function(d){c.set(d)}),c},intersect:function(A){var c=new T;return this.entries.forEach(function(d){A.contains(d)&&c.set(d)}),c},difference:function(A){var c=new T;return this.entries.forEach(function(d){A.contains(d)||c.set(d)}),c},size:{get:function(){return this.entries.length},set:function(A){return A{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(45319),T=s(83419),d=s(56583),c=s(26099),A=new T({initialize:P(function(f,S,O,L){f===void 0&&(f=0),S===void 0&&(S=f),O===void 0&&(O=0),L===void 0&&(L=null),this._width=f,this._height=S,this._parent=L,this.aspectMode=O,this.aspectRatio=S===0?1:f/S,this.minWidth=0,this.minHeight=0,this.maxWidth=Number.MAX_VALUE,this.maxHeight=Number.MAX_VALUE,this.snapTo=new c},"Size"),setAspectMode:function(h){return h===void 0&&(h=0),this.aspectMode=h,this.setSize(this._width,this._height)},setSnap:function(h,f){return h===void 0&&(h=0),f===void 0&&(f=h),this.snapTo.set(h,f),this.setSize(this._width,this._height)},setParent:function(h){return this._parent=h,this.setSize(this._width,this._height)},setMin:function(h,f){return h===void 0&&(h=0),f===void 0&&(f=h),this.minWidth=u(h,0,this.maxWidth),this.minHeight=u(f,0,this.maxHeight),this.setSize(this._width,this._height)},setMax:function(h,f){return h===void 0&&(h=Number.MAX_VALUE),f===void 0&&(f=h),this.maxWidth=u(h,this.minWidth,Number.MAX_VALUE),this.maxHeight=u(f,this.minHeight,Number.MAX_VALUE),this.setSize(this._width,this._height)},setSize:function(h,f){switch(h===void 0&&(h=0),f===void 0&&(f=h),this.aspectMode){case A.NONE:this._width=this.getNewWidth(d(h,this.snapTo.x)),this._height=this.getNewHeight(d(f,this.snapTo.y)),this.aspectRatio=this._height===0?1:this._width/this._height;break;case A.WIDTH_CONTROLS_HEIGHT:this._width=this.getNewWidth(d(h,this.snapTo.x)),this._height=this.getNewHeight(this._width*(1/this.aspectRatio),!1);break;case A.HEIGHT_CONTROLS_WIDTH:this._height=this.getNewHeight(d(f,this.snapTo.y)),this._width=this.getNewWidth(this._height*this.aspectRatio,!1);break;case A.FIT:this.constrain(h,f,!0);break;case A.ENVELOP:this.constrain(h,f,!1);break}return this},setAspectRatio:function(h){return this.aspectRatio=h,this.setSize(this._width,this._height)},resize:function(h,f){return this._width=this.getNewWidth(d(h,this.snapTo.x)),this._height=this.getNewHeight(d(f,this.snapTo.y)),this.aspectRatio=this._height===0?1:this._width/this._height,this},getNewWidth:function(h,f){return f===void 0&&(f=!0),h=u(h,this.minWidth,this.maxWidth),f&&this._parent&&h>this._parent.width&&(h=Math.max(this.minWidth,this._parent.width)),h},getNewHeight:function(h,f){return f===void 0&&(f=!0),h=u(h,this.minHeight,this.maxHeight),f&&this._parent&&h>this._parent.height&&(h=Math.max(this.minHeight,this._parent.height)),h},constrain:function(h,f,S){h===void 0&&(h=0),f===void 0&&(f=h),S===void 0&&(S=!0),h=this.getNewWidth(h),f=this.getNewHeight(f);var O=this.snapTo,L=f===0?1:h/f;return S&&this.aspectRatio>L||!S&&this.aspectRatio0&&(f=d(f,O.y),h=f*this.aspectRatio)):(S&&this.aspectRatioL)&&(f=d(f,O.y),h=f*this.aspectRatio,O.x>0&&(h=d(h,O.x),f=h*(1/this.aspectRatio))),this._width=h,this._height=f,this},fitTo:function(h,f){return this.constrain(h,f,!0)},envelop:function(h,f){return this.constrain(h,f,!1)},setWidth:function(h){return this.setSize(h,this._height)},setHeight:function(h){return this.setSize(this._width,h)},toString:function(){return"[{ Size (width="+this._width+" height="+this._height+" aspectRatio="+this.aspectRatio+" aspectMode="+this.aspectMode+") }]"},setCSS:function(h){h&&h.style&&(h.style.width=this._width+"px",h.style.height=this._height+"px")},copy:function(h){return h.setAspectMode(this.aspectMode),h.aspectRatio=this.aspectRatio,h.setSize(this.width,this.height)},destroy:function(){this._parent=null,this.snapTo=null},width:{get:function(){return this._width},set:function(h){this.setSize(h,this._height)}},height:{get:function(){return this._height},set:function(h){this.setSize(this._width,h)}}});A.NONE=0,A.WIDTH_CONTROLS_HEIGHT=1,A.HEIGHT_CONTROLS_WIDTH=2,A.FIT=3,A.ENVELOP=4,o.exports=A},15238:o=>{/** + */var u=s(45319),T=s(83419),A=s(56583),c=s(26099),d=new T({initialize:v(function(f,S,R,L){f===void 0&&(f=0),S===void 0&&(S=f),R===void 0&&(R=0),L===void 0&&(L=null),this._width=f,this._height=S,this._parent=L,this.aspectMode=R,this.aspectRatio=S===0?1:f/S,this.minWidth=0,this.minHeight=0,this.maxWidth=Number.MAX_VALUE,this.maxHeight=Number.MAX_VALUE,this.snapTo=new c},"Size"),setAspectMode:function(h){return h===void 0&&(h=0),this.aspectMode=h,this.setSize(this._width,this._height)},setSnap:function(h,f){return h===void 0&&(h=0),f===void 0&&(f=h),this.snapTo.set(h,f),this.setSize(this._width,this._height)},setParent:function(h){return this._parent=h,this.setSize(this._width,this._height)},setMin:function(h,f){return h===void 0&&(h=0),f===void 0&&(f=h),this.minWidth=u(h,0,this.maxWidth),this.minHeight=u(f,0,this.maxHeight),this.setSize(this._width,this._height)},setMax:function(h,f){return h===void 0&&(h=Number.MAX_VALUE),f===void 0&&(f=h),this.maxWidth=u(h,this.minWidth,Number.MAX_VALUE),this.maxHeight=u(f,this.minHeight,Number.MAX_VALUE),this.setSize(this._width,this._height)},setSize:function(h,f){switch(h===void 0&&(h=0),f===void 0&&(f=h),this.aspectMode){case d.NONE:this._width=this.getNewWidth(A(h,this.snapTo.x)),this._height=this.getNewHeight(A(f,this.snapTo.y)),this.aspectRatio=this._height===0?1:this._width/this._height;break;case d.WIDTH_CONTROLS_HEIGHT:this._width=this.getNewWidth(A(h,this.snapTo.x)),this._height=this.getNewHeight(this._width*(1/this.aspectRatio),!1);break;case d.HEIGHT_CONTROLS_WIDTH:this._height=this.getNewHeight(A(f,this.snapTo.y)),this._width=this.getNewWidth(this._height*this.aspectRatio,!1);break;case d.FIT:this.constrain(h,f,!0);break;case d.ENVELOP:this.constrain(h,f,!1);break}return this},setAspectRatio:function(h){return this.aspectRatio=h,this.setSize(this._width,this._height)},resize:function(h,f){return this._width=this.getNewWidth(A(h,this.snapTo.x)),this._height=this.getNewHeight(A(f,this.snapTo.y)),this.aspectRatio=this._height===0?1:this._width/this._height,this},getNewWidth:function(h,f){return f===void 0&&(f=!0),h=u(h,this.minWidth,this.maxWidth),f&&this._parent&&h>this._parent.width&&(h=Math.max(this.minWidth,this._parent.width)),h},getNewHeight:function(h,f){return f===void 0&&(f=!0),h=u(h,this.minHeight,this.maxHeight),f&&this._parent&&h>this._parent.height&&(h=Math.max(this.minHeight,this._parent.height)),h},constrain:function(h,f,S){h===void 0&&(h=0),f===void 0&&(f=h),S===void 0&&(S=!0),h=this.getNewWidth(h),f=this.getNewHeight(f);var R=this.snapTo,L=f===0?1:h/f;return S&&this.aspectRatio>L||!S&&this.aspectRatio0&&(f=A(f,R.y),h=f*this.aspectRatio)):(S&&this.aspectRatioL)&&(f=A(f,R.y),h=f*this.aspectRatio,R.x>0&&(h=A(h,R.x),f=h*(1/this.aspectRatio))),this._width=h,this._height=f,this},fitTo:function(h,f){return this.constrain(h,f,!0)},envelop:function(h,f){return this.constrain(h,f,!1)},setWidth:function(h){return this.setSize(h,this._height)},setHeight:function(h){return this.setSize(this._width,h)},toString:function(){return"[{ Size (width="+this._width+" height="+this._height+" aspectRatio="+this.aspectRatio+" aspectMode="+this.aspectMode+") }]"},setCSS:function(h){h&&h.style&&(h.style.width=this._width+"px",h.style.height=this._height+"px")},copy:function(h){return h.setAspectMode(this.aspectMode),h.aspectRatio=this.aspectRatio,h.setSize(this.width,this.height)},destroy:function(){this._parent=null,this.snapTo=null},width:{get:function(){return this._width},set:function(h){this.setSize(h,this._height)}},height:{get:function(){return this._height},set:function(h){this.setSize(this._width,h)}}});d.NONE=0,d.WIDTH_CONTROLS_HEIGHT=1,d.HEIGHT_CONTROLS_WIDTH=2,d.FIT=3,d.ENVELOP=4,o.exports=d},15238:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -5299,43 +5299,43 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports="remove"},82348:(o,m,s)=>{/** + */o.exports="remove"},82348:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={PROCESS_QUEUE_ADD:s(15238),PROCESS_QUEUE_REMOVE:s(56187)}},41392:(o,m,s)=>{/** + */o.exports={PROCESS_QUEUE_ADD:s(15238),PROCESS_QUEUE_REMOVE:s(56187)}},41392:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={Events:s(82348),List:s(73162),Map:s(90330),ProcessQueue:s(25774),RTree:s(59542),Set:s(35072),Size:s(86555)}},57382:(o,m,s)=>{/** + */o.exports={Events:s(82348),List:s(73162),Map:s(90330),ProcessQueue:s(25774),RTree:s(59542),Set:s(35072),Size:s(86555)}},57382:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(45319),d=s(40987),c=s(8054),A=s(50030),h=s(79237),f=new u({Extends:h,initialize:P(function(O,L,p,N,g){h.call(this,O,L,p,N,g),this.add("__BASE",0,0,0,N,g),this._source=this.frames.__BASE.source,this.canvas=this._source.image,this.context=this.canvas.getContext("2d",{willReadFrequently:!0}),this.width=N,this.height=g,this.imageData=this.context.getImageData(0,0,N,g),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)},"CanvasTexture"),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===c.WEBGL&&this.refresh(),this},draw:function(S,O,L,p){return p===void 0&&(p=!0),this.context.drawImage(L,S,O),p&&this.update(),this},drawFrame:function(S,O,L,p,N){L===void 0&&(L=0),p===void 0&&(p=0),N===void 0&&(N=!0);var g=this.manager.getFrame(S,O);if(g){var C=g.canvasData,v=g.cutWidth,M=g.cutHeight,D=g.source.resolution;this.context.drawImage(g.source.image,C.x,C.y,v,M,L,p,v/D,M/D),N&&this.update()}return this},setPixel:function(S,O,L,p,N,g){g===void 0&&(g=255),S=Math.abs(Math.floor(S)),O=Math.abs(Math.floor(O));var C=this.getIndex(S,O);if(C>-1){var v=this.context.getImageData(S,O,1,1);v.data[0]=L,v.data[1]=p,v.data[2]=N,v.data[3]=g,this.context.putImageData(v,S,O)}return this},putData:function(S,O,L,p,N,g,C){return p===void 0&&(p=0),N===void 0&&(N=0),g===void 0&&(g=S.width),C===void 0&&(C=S.height),this.context.putImageData(S,O,L,p,N,g,C),this},getData:function(S,O,L,p){S=T(Math.floor(S),0,this.width-1),O=T(Math.floor(O),0,this.height-1),L=T(L,1,this.width-S),p=T(p,1,this.height-O);var N=this.context.getImageData(S,O,L,p);return N},getPixel:function(S,O,L){L||(L=new d);var p=this.getIndex(S,O);if(p>-1){var N=this.data,g=N[p+0],C=N[p+1],v=N[p+2],M=N[p+3];L.setTo(g,C,v,M)}return L},getPixels:function(S,O,L,p){S===void 0&&(S=0),O===void 0&&(O=0),L===void 0&&(L=this.width),p===void 0&&(p=L),S=Math.abs(Math.round(S)),O=Math.abs(Math.round(O));for(var N=T(S,0,this.width),g=T(S+L,0,this.width),C=T(O,0,this.height),v=T(O+p,0,this.height),M=new d,D=[],G=C;G{/** + */var u=s(83419),T=s(45319),A=s(40987),c=s(8054),d=s(50030),h=s(79237),f=new u({Extends:h,initialize:v(function(R,L,p,N,g){h.call(this,R,L,p,N,g),this.add("__BASE",0,0,0,N,g),this._source=this.frames.__BASE.source,this.canvas=this._source.image,this.context=this.canvas.getContext("2d",{willReadFrequently:!0}),this.width=N,this.height=g,this.imageData=this.context.getImageData(0,0,N,g),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)},"CanvasTexture"),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===c.WEBGL&&this.refresh(),this},draw:function(S,R,L,p){return p===void 0&&(p=!0),this.context.drawImage(L,S,R),p&&this.update(),this},drawFrame:function(S,R,L,p,N){L===void 0&&(L=0),p===void 0&&(p=0),N===void 0&&(N=!0);var g=this.manager.getFrame(S,R);if(g){var C=g.canvasData,P=g.cutWidth,M=g.cutHeight,D=g.source.resolution;this.context.drawImage(g.source.image,C.x,C.y,P,M,L,p,P/D,M/D),N&&this.update()}return this},setPixel:function(S,R,L,p,N,g){g===void 0&&(g=255),S=Math.abs(Math.floor(S)),R=Math.abs(Math.floor(R));var C=this.getIndex(S,R);if(C>-1){var P=this.context.getImageData(S,R,1,1);P.data[0]=L,P.data[1]=p,P.data[2]=N,P.data[3]=g,this.context.putImageData(P,S,R)}return this},putData:function(S,R,L,p,N,g,C){return p===void 0&&(p=0),N===void 0&&(N=0),g===void 0&&(g=S.width),C===void 0&&(C=S.height),this.context.putImageData(S,R,L,p,N,g,C),this},getData:function(S,R,L,p){S=T(Math.floor(S),0,this.width-1),R=T(Math.floor(R),0,this.height-1),L=T(L,1,this.width-S),p=T(p,1,this.height-R);var N=this.context.getImageData(S,R,L,p);return N},getPixel:function(S,R,L){L||(L=new A);var p=this.getIndex(S,R);if(p>-1){var N=this.data,g=N[p+0],C=N[p+1],P=N[p+2],M=N[p+3];L.setTo(g,C,P,M)}return L},getPixels:function(S,R,L,p){S===void 0&&(S=0),R===void 0&&(R=0),L===void 0&&(L=this.width),p===void 0&&(p=L),S=Math.abs(Math.round(S)),R=Math.abs(Math.round(R));for(var N=T(S,0,this.width),g=T(S+L,0,this.width),C=T(R,0,this.height),P=T(R+p,0,this.height),M=new A,D=[],G=C;G{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(10312),T=s(71911),d=s(27919),c=s(83419),A=s(8054),h=s(4327),f=s(95540),S=s(36060),O=s(32302),L=s(79237),p=s(70554),N=new c({Extends:L,initialize:P(function(C,v,M,D){M===void 0&&(M=256),D===void 0&&(D=256),this.type="DynamicTexture";var G=C.game.renderer,H=G&&G.type===A.CANVAS,B=H?d.create2D(this,M,D):[this];L.call(this,C,v,B,M,D),this.add("__BASE",0,0,0,M,D),this.renderer=G,this.width=-1,this.height=-1,this.isDrawing=!1,this.canvas=H?B:null,this.context=H?B.getContext("2d",{willReadFrequently:!0}):null,this.dirty=!1,this.isSpriteTexture=!0,this._eraseMode=!1,this.camera=new T(0,0,M,D).setScene(C.game.scene.systemScene,!1),this.renderTarget=H?null:new O(G,M,D,1,0,!1,!0,!0,!1),this.pipeline=H?null:G.pipelines.get(S.SINGLE_PIPELINE),this.setSize(M,D)},"DynamicTexture"),setSize:function(g,C){C===void 0&&(C=g);var v=this.get(),M=v.source;if(g!==this.width||C!==this.height){this.canvas&&(this.canvas.width=g,this.canvas.height=C);var D=this.renderTarget;D&&(D.willResize(g,C)&&D.resize(g,C),D.texture!==M.glTexture&&this.renderer.deleteTexture(M.glTexture),this.setFromRenderTarget()),this.camera.setSize(g,C),M.width=g,M.height=C,v.setSize(g,C),this.width=g,this.height=C}else{var G=this.getSourceImage();v.cutX+g>G.width&&(g=G.width-v.cutX),v.cutY+C>G.height&&(C=G.height-v.cutY),v.setSize(g,C,v.cutX,v.cutY)}return this},setFromRenderTarget:function(){var g=this.get(),C=g.source,v=this.renderTarget;return C.isRenderTexture=!0,C.isGLTexture=!0,C.glTexture=v.texture,this},setIsSpriteTexture:function(g){return this.isSpriteTexture=g,this},fill:function(g,C,v,M,D,G){var H=this.camera,B=this.renderer;C===void 0&&(C=1),v===void 0&&(v=0),M===void 0&&(M=0),D===void 0&&(D=this.width),G===void 0&&(G=this.height);var _=g>>16&255,w=g>>8&255,b=g&255,F=this.renderTarget;if(H.preRender(),F){F.bind(!0);var k=this.pipeline.manager.set(this.pipeline),V=B.width/F.width,Z=B.height/F.height,$=F.height-(M+G);k.drawFillRect(v*V,$*Z,D*V,G*Z,p.getTintFromFloats(b/255,w/255,_/255,1),C),F.unbind(!0)}else{var Q=this.context;B.setContext(Q),Q.globalCompositeOperation="source-over",Q.fillStyle="rgba("+_+","+w+","+b+","+C+")",Q.fillRect(v,M,D,G),B.setContext()}return this.dirty=!0,this},clear:function(){if(this.dirty){var g=this.context,C=this.renderTarget;C?C.clear():g&&(g.save(),g.setTransform(1,0,0,1,0,0),g.clearRect(0,0,this.width,this.height),g.restore()),this.dirty=!1}return this},stamp:function(g,C,v,M,D){v===void 0&&(v=0),M===void 0&&(M=0);var G=f(D,"alpha",1),H=f(D,"tint",16777215),B=f(D,"angle",0),_=f(D,"rotation",0),w=f(D,"scale",1),b=f(D,"scaleX",w),F=f(D,"scaleY",w),k=f(D,"originX",.5),V=f(D,"originY",.5),Z=f(D,"blendMode",0),$=f(D,"erase",!1),Q=f(D,"skipBatch",!1),te=this.manager.resetStamp(G,H);return te.setAngle(0),B!==0?te.setAngle(B):_!==0&&te.setRotation(_),te.setScale(b,F),te.setTexture(g,C),te.setOrigin(k,V),te.setBlendMode(Z),$&&(this._eraseMode=!0),Q?this.batchGameObject(te,v,M):this.draw(te,v,M),$&&(this._eraseMode=!1),this},erase:function(g,C,v){return this._eraseMode=!0,this.draw(g,C,v),this._eraseMode=!1,this},draw:function(g,C,v,M,D){return this.beginDraw(),this.batchDraw(g,C,v,M,D),this.endDraw(),this},drawFrame:function(g,C,v,M,D,G){return this.beginDraw(),this.batchDrawFrame(g,C,v,M,D,G),this.endDraw(),this},repeat:function(g,C,v,M,D,G,H,B,_){if(v===void 0&&(v=0),M===void 0&&(M=0),D===void 0&&(D=this.width),G===void 0&&(G=this.height),H===void 0&&(H=1),B===void 0&&(B=16777215),_===void 0&&(_=!1),g instanceof h?C=g:C=this.manager.getFrame(g,C),!C)return this;var w=this.manager.resetStamp(H,B);w.setFrame(C),w.setOrigin(0);var b=C.width,F=C.height;D=Math.floor(D),G=Math.floor(G);var k=Math.ceil(D/b),V=Math.ceil(G/F),Z=k*b-D,$=V*F-G;Z>0&&(Z=b-Z),$>0&&($=F-$),v<0&&(k+=Math.ceil(Math.abs(v)/b)),M<0&&(V+=Math.ceil(Math.abs(M)/F));var Q=v,te=M,z=!1,j=this.manager.stampCrop.setTo(0,0,b,F);_||this.beginDraw();for(var x=0;x0&&X===k-1&&(z=!0,j.width=Z),$>0&&x===V-1&&(z=!0,j.height=$),z&&w.setCrop(j),this.batchGameObject(w,Q,te),w.isCropped=!1,j.setTo(0,0,b,F),Q+=b}Q=v,te+=F}return _||this.endDraw(),this},beginDraw:function(){if(!this.isDrawing){var g=this.camera,C=this.renderer,v=this.renderTarget;g.preRender(),v?C.beginCapture(v.width,v.height):C.setContext(this.context),this.isDrawing=!0}return this},batchDraw:function(g,C,v,M,D){return Array.isArray(g)||(g=[g]),this.batchList(g,C,v,M,D),this},batchDrawFrame:function(g,C,v,M,D,G){v===void 0&&(v=0),M===void 0&&(M=0),D===void 0&&(D=1),G===void 0&&(G=16777215);var H=this.manager.getFrame(g,C);return H&&(this.renderTarget?this.pipeline.batchTextureFrame(H,v,M,G,D,this.camera.matrix,null):this.batchTextureFrame(H,v,M,D,G)),this},endDraw:function(g){if(g===void 0&&(g=this._eraseMode),this.isDrawing){var C=this.renderer,v=this.renderTarget;if(v){var M=C.endCapture(),D=C.pipelines.setUtility();D.blitFrame(M,v,1,!1,!1,g,this.isSpriteTexture),C.resetScissor(),C.resetViewport()}else C.setContext();this.dirty=!0,this.isDrawing=!1}return this},batchList:function(g,C,v,M,D){var G=g.length;if(G!==0)for(var H=0;H0&&_.height>0&&B.drawImage(w,_.x,_.y,_.width,_.height,C,v,_.width,_.height),B.restore()}},snapshotArea:function(g,C,v,M,D,G,H){return this.renderTarget?this.renderer.snapshotFramebuffer(this.renderTarget.framebuffer,this.width,this.height,D,!1,g,C,v,M,G,H):this.renderer.snapshotCanvas(this.canvas,D,!1,g,C,v,M,G,H),this},snapshot:function(g,C,v){return this.snapshotArea(0,0,this.width,this.height,g,C,v)},snapshotPixel:function(g,C,v){return this.snapshotArea(g,C,1,1,v,"pixel")},getWebGLTexture:function(){if(this.renderTarget)return this.renderTarget.texture},renderWebGL:function(g,C,v,M){var D=this.manager.resetStamp();D.setTexture(this),D.setOrigin(0),D.renderWebGL(g,D,v,M)},renderCanvas:function(){},destroy:function(){var g=this.manager.stamp;g&&g.texture===this&&this.manager.resetStamp(),L.prototype.destroy.call(this),d.remove(this.canvas),this.renderTarget&&this.renderTarget.destroy(),this.camera.destroy(),this.canvas=null,this.context=null,this.renderer=null}});o.exports=N},4327:(o,m,s)=>{/** + */var u=s(10312),T=s(71911),A=s(27919),c=s(83419),d=s(8054),h=s(4327),f=s(95540),S=s(36060),R=s(32302),L=s(79237),p=s(70554),N=new c({Extends:L,initialize:v(function(C,P,M,D){M===void 0&&(M=256),D===void 0&&(D=256),this.type="DynamicTexture";var G=C.game.renderer,H=G&&G.type===d.CANVAS,B=H?A.create2D(this,M,D):[this];L.call(this,C,P,B,M,D),this.add("__BASE",0,0,0,M,D),this.renderer=G,this.width=-1,this.height=-1,this.isDrawing=!1,this.canvas=H?B:null,this.context=H?B.getContext("2d",{willReadFrequently:!0}):null,this.dirty=!1,this.isSpriteTexture=!0,this._eraseMode=!1,this.camera=new T(0,0,M,D).setScene(C.game.scene.systemScene,!1),this.renderTarget=H?null:new R(G,M,D,1,0,!1,!0,!0,!1),this.pipeline=H?null:G.pipelines.get(S.SINGLE_PIPELINE),this.setSize(M,D)},"DynamicTexture"),setSize:function(g,C){C===void 0&&(C=g);var P=this.get(),M=P.source;if(g!==this.width||C!==this.height){this.canvas&&(this.canvas.width=g,this.canvas.height=C);var D=this.renderTarget;D&&(D.willResize(g,C)&&D.resize(g,C),D.texture!==M.glTexture&&this.renderer.deleteTexture(M.glTexture),this.setFromRenderTarget()),this.camera.setSize(g,C),M.width=g,M.height=C,P.setSize(g,C),this.width=g,this.height=C}else{var G=this.getSourceImage();P.cutX+g>G.width&&(g=G.width-P.cutX),P.cutY+C>G.height&&(C=G.height-P.cutY),P.setSize(g,C,P.cutX,P.cutY)}return this},setFromRenderTarget:function(){var g=this.get(),C=g.source,P=this.renderTarget;return C.isRenderTexture=!0,C.isGLTexture=!0,C.glTexture=P.texture,this},setIsSpriteTexture:function(g){return this.isSpriteTexture=g,this},fill:function(g,C,P,M,D,G){var H=this.camera,B=this.renderer;C===void 0&&(C=1),P===void 0&&(P=0),M===void 0&&(M=0),D===void 0&&(D=this.width),G===void 0&&(G=this.height);var b=g>>16&255,w=g>>8&255,_=g&255,F=this.renderTarget;if(H.preRender(),F){F.bind(!0);var x=this.pipeline.manager.set(this.pipeline),V=B.width/F.width,Z=B.height/F.height,$=F.height-(M+G);x.drawFillRect(P*V,$*Z,D*V,G*Z,p.getTintFromFloats(_/255,w/255,b/255,1),C),F.unbind(!0)}else{var Q=this.context;B.setContext(Q),Q.globalCompositeOperation="source-over",Q.fillStyle="rgba("+b+","+w+","+_+","+C+")",Q.fillRect(P,M,D,G),B.setContext()}return this.dirty=!0,this},clear:function(){if(this.dirty){var g=this.context,C=this.renderTarget;C?C.clear():g&&(g.save(),g.setTransform(1,0,0,1,0,0),g.clearRect(0,0,this.width,this.height),g.restore()),this.dirty=!1}return this},stamp:function(g,C,P,M,D){P===void 0&&(P=0),M===void 0&&(M=0);var G=f(D,"alpha",1),H=f(D,"tint",16777215),B=f(D,"angle",0),b=f(D,"rotation",0),w=f(D,"scale",1),_=f(D,"scaleX",w),F=f(D,"scaleY",w),x=f(D,"originX",.5),V=f(D,"originY",.5),Z=f(D,"blendMode",0),$=f(D,"erase",!1),Q=f(D,"skipBatch",!1),te=this.manager.resetStamp(G,H);return te.setAngle(0),B!==0?te.setAngle(B):b!==0&&te.setRotation(b),te.setScale(_,F),te.setTexture(g,C),te.setOrigin(x,V),te.setBlendMode(Z),$&&(this._eraseMode=!0),Q?this.batchGameObject(te,P,M):this.draw(te,P,M),$&&(this._eraseMode=!1),this},erase:function(g,C,P){return this._eraseMode=!0,this.draw(g,C,P),this._eraseMode=!1,this},draw:function(g,C,P,M,D){return this.beginDraw(),this.batchDraw(g,C,P,M,D),this.endDraw(),this},drawFrame:function(g,C,P,M,D,G){return this.beginDraw(),this.batchDrawFrame(g,C,P,M,D,G),this.endDraw(),this},repeat:function(g,C,P,M,D,G,H,B,b){if(P===void 0&&(P=0),M===void 0&&(M=0),D===void 0&&(D=this.width),G===void 0&&(G=this.height),H===void 0&&(H=1),B===void 0&&(B=16777215),b===void 0&&(b=!1),g instanceof h?C=g:C=this.manager.getFrame(g,C),!C)return this;var w=this.manager.resetStamp(H,B);w.setFrame(C),w.setOrigin(0);var _=C.width,F=C.height;D=Math.floor(D),G=Math.floor(G);var x=Math.ceil(D/_),V=Math.ceil(G/F),Z=x*_-D,$=V*F-G;Z>0&&(Z=_-Z),$>0&&($=F-$),P<0&&(x+=Math.ceil(Math.abs(P)/_)),M<0&&(V+=Math.ceil(Math.abs(M)/F));var Q=P,te=M,z=!1,j=this.manager.stampCrop.setTo(0,0,_,F);b||this.beginDraw();for(var k=0;k0&&X===x-1&&(z=!0,j.width=Z),$>0&&k===V-1&&(z=!0,j.height=$),z&&w.setCrop(j),this.batchGameObject(w,Q,te),w.isCropped=!1,j.setTo(0,0,_,F),Q+=_}Q=P,te+=F}return b||this.endDraw(),this},beginDraw:function(){if(!this.isDrawing){var g=this.camera,C=this.renderer,P=this.renderTarget;g.preRender(),P?C.beginCapture(P.width,P.height):C.setContext(this.context),this.isDrawing=!0}return this},batchDraw:function(g,C,P,M,D){return Array.isArray(g)||(g=[g]),this.batchList(g,C,P,M,D),this},batchDrawFrame:function(g,C,P,M,D,G){P===void 0&&(P=0),M===void 0&&(M=0),D===void 0&&(D=1),G===void 0&&(G=16777215);var H=this.manager.getFrame(g,C);return H&&(this.renderTarget?this.pipeline.batchTextureFrame(H,P,M,G,D,this.camera.matrix,null):this.batchTextureFrame(H,P,M,D,G)),this},endDraw:function(g){if(g===void 0&&(g=this._eraseMode),this.isDrawing){var C=this.renderer,P=this.renderTarget;if(P){var M=C.endCapture(),D=C.pipelines.setUtility();D.blitFrame(M,P,1,!1,!1,g,this.isSpriteTexture),C.resetScissor(),C.resetViewport()}else C.setContext();this.dirty=!0,this.isDrawing=!1}return this},batchList:function(g,C,P,M,D){var G=g.length;if(G!==0)for(var H=0;H0&&b.height>0&&B.drawImage(w,b.x,b.y,b.width,b.height,C,P,b.width,b.height),B.restore()}},snapshotArea:function(g,C,P,M,D,G,H){return this.renderTarget?this.renderer.snapshotFramebuffer(this.renderTarget.framebuffer,this.width,this.height,D,!1,g,C,P,M,G,H):this.renderer.snapshotCanvas(this.canvas,D,!1,g,C,P,M,G,H),this},snapshot:function(g,C,P){return this.snapshotArea(0,0,this.width,this.height,g,C,P)},snapshotPixel:function(g,C,P){return this.snapshotArea(g,C,1,1,P,"pixel")},getWebGLTexture:function(){if(this.renderTarget)return this.renderTarget.texture},renderWebGL:function(g,C,P,M){var D=this.manager.resetStamp();D.setTexture(this),D.setOrigin(0),D.renderWebGL(g,D,P,M)},renderCanvas:function(){},destroy:function(){var g=this.manager.stamp;g&&g.texture===this&&this.manager.resetStamp(),L.prototype.destroy.call(this),A.remove(this.canvas),this.renderTarget&&this.renderTarget.destroy(),this.camera.destroy(),this.canvas=null,this.context=null,this.renderer=null}});o.exports=N},4327:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(45319),d=s(79291),c=new u({initialize:P(function(h,f,S,O,L,p,N){this.texture=h,this.name=f,this.source=h.source[S],this.sourceIndex=S,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},is3Slice:!1,scale9:!1,scale9Borders:{x:0,y:0,w:0,h:0}},this.setSize(p,N,O,L)},"Frame"),setSize:function(A,h,f,S){f===void 0&&(f=0),S===void 0&&(S=0),this.cutX=f,this.cutY=S,this.cutWidth=A,this.cutHeight=h,this.width=A,this.height=h,this.halfWidth=Math.floor(A*.5),this.halfHeight=Math.floor(h*.5),this.centerX=Math.floor(A/2),this.centerY=Math.floor(h/2);var O=this.data,L=O.cut;L.x=f,L.y=S,L.w=A,L.h=h,L.r=f+A,L.b=S+h,O.sourceSize.w=A,O.sourceSize.h=h,O.spriteSourceSize.w=A,O.spriteSourceSize.h=h,O.radius=.5*Math.sqrt(A*A+h*h);var p=O.drawImage;return p.x=f,p.y=S,p.width=A,p.height=h,this.updateUVs()},setTrim:function(A,h,f,S,O,L){var p=this.data,N=p.spriteSourceSize;return p.trim=!0,p.sourceSize.w=A,p.sourceSize.h=h,N.x=f,N.y=S,N.w=O,N.h=L,N.r=f+O,N.b=S+L,this.x=f,this.y=S,this.width=O,this.height=L,this.halfWidth=O*.5,this.halfHeight=L*.5,this.centerX=Math.floor(O/2),this.centerY=Math.floor(L/2),this.updateUVs()},setScale9:function(A,h,f,S){var O=this.data;return O.scale9=!0,O.is3Slice=h===0&&S===this.height,O.scale9Borders.x=A,O.scale9Borders.y=h,O.scale9Borders.w=f,O.scale9Borders.h=S,this},setCropUVs:function(A,h,f,S,O,L,p){var N=this.cutX,g=this.cutY,C=this.cutWidth,v=this.cutHeight,M=this.realWidth,D=this.realHeight;h=T(h,0,M),f=T(f,0,D),S=T(S,0,M-h),O=T(O,0,D-f);var G=N+h,H=g+f,B=S,_=O,w=this.data;if(w.trim){var b=w.spriteSourceSize;S=T(S,0,C-h),O=T(O,0,v-f);var F=h+S,k=f+O,V=!(b.rF||b.y>k);if(V){var Z=Math.max(b.x,h),$=Math.max(b.y,f),Q=Math.min(b.r,F)-Z,te=Math.min(b.b,k)-$;B=Q,_=te,L?G=N+(C-(Z-b.x)-Q):G=N+(Z-b.x),p?H=g+(v-($-b.y)-te):H=g+($-b.y),h=Z,f=$,S=Q,O=te}else G=0,H=0,B=0,_=0}else L&&(G=N+(C-h-S)),p&&(H=g+(v-f-O));var z=this.source.width,j=this.source.height;return A.u0=Math.max(0,G/z),A.v0=Math.max(0,H/j),A.u1=Math.min(1,(G+B)/z),A.v1=Math.min(1,(H+_)/j),A.x=h,A.y=f,A.cx=G,A.cy=H,A.cw=B,A.ch=_,A.width=S,A.height=O,A.flipX=L,A.flipY=p,A},updateCropUVs:function(A,h,f){return this.setCropUVs(A,A.x,A.y,A.width,A.height,h,f)},setUVs:function(A,h,f,S,O,L){var p=this.data.drawImage;return p.width=A,p.height=h,this.u0=f,this.v0=S,this.u1=O,this.v1=L,this},updateUVs:function(){var A=this.cutX,h=this.cutY,f=this.cutWidth,S=this.cutHeight,O=this.data.drawImage;O.width=f,O.height=S;var L=this.source.width,p=this.source.height;return this.u0=A/L,this.v0=h/p,this.u1=(A+f)/L,this.v1=(h+S)/p,this},updateUVsInverted:function(){var A=this.source.width,h=this.source.height;return this.u0=(this.cutX+this.cutHeight)/A,this.v0=this.cutY/h,this.u1=this.cutX/A,this.v1=(this.cutY+this.cutWidth)/h,this},clone:function(){var A=new c(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=d(!0,A.data,this.data),A.updateUVs(),A},destroy:function(){this.texture=null,this.source=null,this.customData=null,this.data=null},glTexture:{get:function(){return this.source.glTexture}},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}},scale9:{get:function(){return this.data.scale9}},is3Slice:{get:function(){return this.data.is3Slice}},canvasData:{get:function(){return this.data.drawImage}}});o.exports=c},79237:(o,m,s)=>{/** + */var u=s(83419),T=s(45319),A=s(79291),c=new u({initialize:v(function(h,f,S,R,L,p,N){this.texture=h,this.name=f,this.source=h.source[S],this.sourceIndex=S,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},is3Slice:!1,scale9:!1,scale9Borders:{x:0,y:0,w:0,h:0}},this.setSize(p,N,R,L)},"Frame"),setSize:function(d,h,f,S){f===void 0&&(f=0),S===void 0&&(S=0),this.cutX=f,this.cutY=S,this.cutWidth=d,this.cutHeight=h,this.width=d,this.height=h,this.halfWidth=Math.floor(d*.5),this.halfHeight=Math.floor(h*.5),this.centerX=Math.floor(d/2),this.centerY=Math.floor(h/2);var R=this.data,L=R.cut;L.x=f,L.y=S,L.w=d,L.h=h,L.r=f+d,L.b=S+h,R.sourceSize.w=d,R.sourceSize.h=h,R.spriteSourceSize.w=d,R.spriteSourceSize.h=h,R.radius=.5*Math.sqrt(d*d+h*h);var p=R.drawImage;return p.x=f,p.y=S,p.width=d,p.height=h,this.updateUVs()},setTrim:function(d,h,f,S,R,L){var p=this.data,N=p.spriteSourceSize;return p.trim=!0,p.sourceSize.w=d,p.sourceSize.h=h,N.x=f,N.y=S,N.w=R,N.h=L,N.r=f+R,N.b=S+L,this.x=f,this.y=S,this.width=R,this.height=L,this.halfWidth=R*.5,this.halfHeight=L*.5,this.centerX=Math.floor(R/2),this.centerY=Math.floor(L/2),this.updateUVs()},setScale9:function(d,h,f,S){var R=this.data;return R.scale9=!0,R.is3Slice=h===0&&S===this.height,R.scale9Borders.x=d,R.scale9Borders.y=h,R.scale9Borders.w=f,R.scale9Borders.h=S,this},setCropUVs:function(d,h,f,S,R,L,p){var N=this.cutX,g=this.cutY,C=this.cutWidth,P=this.cutHeight,M=this.realWidth,D=this.realHeight;h=T(h,0,M),f=T(f,0,D),S=T(S,0,M-h),R=T(R,0,D-f);var G=N+h,H=g+f,B=S,b=R,w=this.data;if(w.trim){var _=w.spriteSourceSize;S=T(S,0,C-h),R=T(R,0,P-f);var F=h+S,x=f+R,V=!(_.rF||_.y>x);if(V){var Z=Math.max(_.x,h),$=Math.max(_.y,f),Q=Math.min(_.r,F)-Z,te=Math.min(_.b,x)-$;B=Q,b=te,L?G=N+(C-(Z-_.x)-Q):G=N+(Z-_.x),p?H=g+(P-($-_.y)-te):H=g+($-_.y),h=Z,f=$,S=Q,R=te}else G=0,H=0,B=0,b=0}else L&&(G=N+(C-h-S)),p&&(H=g+(P-f-R));var z=this.source.width,j=this.source.height;return d.u0=Math.max(0,G/z),d.v0=Math.max(0,H/j),d.u1=Math.min(1,(G+B)/z),d.v1=Math.min(1,(H+b)/j),d.x=h,d.y=f,d.cx=G,d.cy=H,d.cw=B,d.ch=b,d.width=S,d.height=R,d.flipX=L,d.flipY=p,d},updateCropUVs:function(d,h,f){return this.setCropUVs(d,d.x,d.y,d.width,d.height,h,f)},setUVs:function(d,h,f,S,R,L){var p=this.data.drawImage;return p.width=d,p.height=h,this.u0=f,this.v0=S,this.u1=R,this.v1=L,this},updateUVs:function(){var d=this.cutX,h=this.cutY,f=this.cutWidth,S=this.cutHeight,R=this.data.drawImage;R.width=f,R.height=S;var L=this.source.width,p=this.source.height;return this.u0=d/L,this.v0=h/p,this.u1=(d+f)/L,this.v1=(h+S)/p,this},updateUVsInverted:function(){var d=this.source.width,h=this.source.height;return this.u0=(this.cutX+this.cutHeight)/d,this.v0=this.cutY/h,this.u1=this.cutX/d,this.v1=(this.cutY+this.cutWidth)/h,this},clone:function(){var d=new c(this.texture,this.name,this.sourceIndex);return d.cutX=this.cutX,d.cutY=this.cutY,d.cutWidth=this.cutWidth,d.cutHeight=this.cutHeight,d.x=this.x,d.y=this.y,d.width=this.width,d.height=this.height,d.halfWidth=this.halfWidth,d.halfHeight=this.halfHeight,d.centerX=this.centerX,d.centerY=this.centerY,d.rotated=this.rotated,d.data=A(!0,d.data,this.data),d.updateUVs(),d},destroy:function(){this.texture=null,this.source=null,this.customData=null,this.data=null},glTexture:{get:function(){return this.source.glTexture}},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}},scale9:{get:function(){return this.data.scale9}},is3Slice:{get:function(){return this.data.is3Slice}},canvasData:{get:function(){return this.data.drawImage}}});o.exports=c},79237:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(4327),d=s(11876),c='Texture "%s" has no frame "%s"',A=new u({initialize:P(function(f,S,O,L,p){Array.isArray(O)||(O=[O]),this.manager=f,this.key=S,this.source=[],this.dataSource=[],this.frames={},this.customData={},this.firstFrame="__BASE",this.frameTotal=0;for(var N=0;NL&&(L=g.cutX+g.cutWidth),g.cutY+g.cutHeight>p&&(p=g.cutY+g.cutHeight)}return{x:S,y:O,width:L-S,height:p-O}},getFrameNames:function(h){h===void 0&&(h=!1);var f=Object.keys(this.frames);if(!h){var S=f.indexOf("__BASE");S!==-1&&f.splice(S,1)}return f},getSourceImage:function(h){(h==null||this.frameTotal===1)&&(h="__BASE");var f=this.frames[h];return f?f.source.image:(console.warn(c,this.key,h),this.frames.__BASE.source.image)},getDataSourceImage:function(h){(h==null||this.frameTotal===1)&&(h="__BASE");var f=this.frames[h],S;return f?S=f.sourceIndex:(console.warn(c,this.key,h),S=this.frames.__BASE.sourceIndex),this.dataSource[S].image},setDataSource:function(h){Array.isArray(h)||(h=[h]);for(var f=0;f{/** + */var u=s(83419),T=s(4327),A=s(11876),c='Texture "%s" has no frame "%s"',d=new u({initialize:v(function(f,S,R,L,p){Array.isArray(R)||(R=[R]),this.manager=f,this.key=S,this.source=[],this.dataSource=[],this.frames={},this.customData={},this.firstFrame="__BASE",this.frameTotal=0;for(var N=0;NL&&(L=g.cutX+g.cutWidth),g.cutY+g.cutHeight>p&&(p=g.cutY+g.cutHeight)}return{x:S,y:R,width:L-S,height:p-R}},getFrameNames:function(h){h===void 0&&(h=!1);var f=Object.keys(this.frames);if(!h){var S=f.indexOf("__BASE");S!==-1&&f.splice(S,1)}return f},getSourceImage:function(h){(h==null||this.frameTotal===1)&&(h="__BASE");var f=this.frames[h];return f?f.source.image:(console.warn(c,this.key,h),this.frames.__BASE.source.image)},getDataSourceImage:function(h){(h==null||this.frameTotal===1)&&(h="__BASE");var f=this.frames[h],S;return f?S=f.sourceIndex:(console.warn(c,this.key,h),S=this.frames.__BASE.sourceIndex),this.dataSource[S].image},setDataSource:function(h){Array.isArray(h)||(h=[h]);for(var f=0;f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(27919),T=s(57382),d=s(83419),c=s(40987),A=s(8054),h=s(81320),f=s(50792),S=s(69442),O=s(4327),L=s(8443),p=s(99584),N=s(35154),g=s(88571),C=s(41212),v=s(61309),M=s(87841),D=s(79237),G=new d({Extends:f,initialize:P(function(B){f.call(this),this.game=B,this.name="TextureManager",this.list={},this._tempCanvas=u.create2D(this),this._tempContext=this._tempCanvas.getContext("2d",{willReadFrequently:!0}),this._pending=0,this.stamp,this.stampCrop=new M,this.silentWarnings=!1,B.events.once(L.BOOT,this.boot,this)},"TextureManager"),boot:function(){this._pending=3,this.on(S.LOAD,this.updatePending,this),this.on(S.ERROR,this.updatePending,this);var H=this.game.config;this.addBase64("__DEFAULT",H.defaultImage),this.addBase64("__MISSING",H.missingImage),this.addBase64("__WHITE",H.whiteImage),this.game.renderer&&this.game.renderer.gl&&this.addUint8Array("__NORMAL",new Uint8Array([127,127,255,255]),1,1),this.game.events.once(L.DESTROY,this.destroy,this),this.game.events.once(L.SYSTEM_READY,function(B){this.stamp=new g(B).setOrigin(0)},this)},updatePending:function(){this._pending--,this._pending===0&&(this.off(S.LOAD),this.off(S.ERROR),this.emit(S.READY))},checkKey:function(H){return this.exists(H)?(this.silentWarnings||console.error("Texture key already in use: "+H),!1):!0},remove:function(H){if(typeof H=="string")if(this.exists(H))H=this.get(H);else return this.silentWarnings||console.warn("No texture found matching key: "+H),this;var B=H.key;return this.list.hasOwnProperty(B)&&(H.destroy(),this.emit(S.REMOVE,B),this.emit(S.REMOVE_KEY+B)),this},removeKey:function(H){return this.list.hasOwnProperty(H)&&delete this.list[H],this},addBase64:function(H,B){if(this.checkKey(H)){var _=this,w=new Image;w.onerror=function(){_.emit(S.ERROR,H)},w.onload=function(){var b=_.create(H,w);v.Image(b,0),_.emit(S.ADD,H,b),_.emit(S.ADD_KEY+H,b),_.emit(S.LOAD,H,b)},w.src=B}return this},getBase64:function(H,B,_,w){_===void 0&&(_="image/png"),w===void 0&&(w=.92);var b="",F=this.getFrame(H,B);if(F&&(F.source.isRenderTexture||F.source.isGLTexture))this.silentWarnings||console.warn("Cannot getBase64 from WebGL Texture");else if(F){var k=F.canvasData,V=u.create2D(this,k.width,k.height),Z=V.getContext("2d",{willReadFrequently:!0});k.width>0&&k.height>0&&Z.drawImage(F.source.image,k.x,k.y,k.width,k.height,0,0,k.width,k.height),b=V.toDataURL(_,w),u.remove(V)}return b},addImage:function(H,B,_){var w=null;return this.checkKey(H)&&(w=this.create(H,B),v.Image(w,0),_&&w.setDataSource(_),this.emit(S.ADD,H,w),this.emit(S.ADD_KEY+H,w)),w},addGLTexture:function(H,B){var _=null;if(this.checkKey(H)){var w=B.width,b=B.height;_=this.create(H,B,w,b),_.add("__BASE",0,0,0,w,b),this.emit(S.ADD,H,_),this.emit(S.ADD_KEY+H,_)}return _},addCompressedTexture:function(H,B,_){var w=null;if(this.checkKey(H)){if(w=this.create(H,B),w.add("__BASE",0,0,0,B.width,B.height),_){var b=P(function(k,V,Z){Array.isArray(Z.textures)||Array.isArray(Z.frames)?v.JSONArray(k,V,Z):v.JSONHash(k,V,Z)},"parse");if(Array.isArray(_))for(var F=0;F<_.length;F++)b(w,F,_[F]);else b(w,0,_)}this.emit(S.ADD,H,w),this.emit(S.ADD_KEY+H,w)}return w},addRenderTexture:function(H,B){var _=null;return this.checkKey(H)&&(_=this.create(H,B),_.add("__BASE",0,0,0,B.width,B.height),this.emit(S.ADD,H,_),this.emit(S.ADD_KEY+H,_)),_},generate:function(H,B){if(this.checkKey(H)){var _=u.create(this,1,1);return B.canvas=_,p(B),this.addCanvas(H,_)}else return null},createCanvas:function(H,B,_){if(B===void 0&&(B=256),_===void 0&&(_=256),this.checkKey(H)){var w=u.create(this,B,_,A.CANVAS,!0);return this.addCanvas(H,w)}return null},addCanvas:function(H,B,_){_===void 0&&(_=!1);var w=null;return _?w=new T(this,H,B,B.width,B.height):this.checkKey(H)&&(w=new T(this,H,B,B.width,B.height),this.list[H]=w,this.emit(S.ADD,H,w),this.emit(S.ADD_KEY+H,w)),w},addDynamicTexture:function(H,B,_){var w=null;return typeof H=="string"&&!this.exists(H)?w=new h(this,H,B,_):(w=H,H=w.key),this.checkKey(H)?(this.list[H]=w,this.emit(S.ADD,H,w),this.emit(S.ADD_KEY+H,w)):w=null,w},addAtlas:function(H,B,_,w){return Array.isArray(_.textures)||Array.isArray(_.frames)?this.addAtlasJSONArray(H,B,_,w):this.addAtlasJSONHash(H,B,_,w)},addAtlasJSONArray:function(H,B,_,w){var b=null;if(B instanceof D?(H=B.key,b=B):this.checkKey(H)&&(b=this.create(H,B)),b){if(Array.isArray(_))for(var F=_.length===1,k=0;k=F.x&&H=F.y&&B=F.x&&H=F.y&&B{/** + */var u=s(27919),T=s(57382),A=s(83419),c=s(40987),d=s(8054),h=s(81320),f=s(50792),S=s(69442),R=s(4327),L=s(8443),p=s(99584),N=s(35154),g=s(88571),C=s(41212),P=s(61309),M=s(87841),D=s(79237),G=new A({Extends:f,initialize:v(function(B){f.call(this),this.game=B,this.name="TextureManager",this.list={},this._tempCanvas=u.create2D(this),this._tempContext=this._tempCanvas.getContext("2d",{willReadFrequently:!0}),this._pending=0,this.stamp,this.stampCrop=new M,this.silentWarnings=!1,B.events.once(L.BOOT,this.boot,this)},"TextureManager"),boot:function(){this._pending=3,this.on(S.LOAD,this.updatePending,this),this.on(S.ERROR,this.updatePending,this);var H=this.game.config;this.addBase64("__DEFAULT",H.defaultImage),this.addBase64("__MISSING",H.missingImage),this.addBase64("__WHITE",H.whiteImage),this.game.renderer&&this.game.renderer.gl&&this.addUint8Array("__NORMAL",new Uint8Array([127,127,255,255]),1,1),this.game.events.once(L.DESTROY,this.destroy,this),this.game.events.once(L.SYSTEM_READY,function(B){this.stamp=new g(B).setOrigin(0)},this)},updatePending:function(){this._pending--,this._pending===0&&(this.off(S.LOAD),this.off(S.ERROR),this.emit(S.READY))},checkKey:function(H){return this.exists(H)?(this.silentWarnings||console.error("Texture key already in use: "+H),!1):!0},remove:function(H){if(typeof H=="string")if(this.exists(H))H=this.get(H);else return this.silentWarnings||console.warn("No texture found matching key: "+H),this;var B=H.key;return this.list.hasOwnProperty(B)&&(H.destroy(),this.emit(S.REMOVE,B),this.emit(S.REMOVE_KEY+B)),this},removeKey:function(H){return this.list.hasOwnProperty(H)&&delete this.list[H],this},addBase64:function(H,B){if(this.checkKey(H)){var b=this,w=new Image;w.onerror=function(){b.emit(S.ERROR,H)},w.onload=function(){var _=b.create(H,w);P.Image(_,0),b.emit(S.ADD,H,_),b.emit(S.ADD_KEY+H,_),b.emit(S.LOAD,H,_)},w.src=B}return this},getBase64:function(H,B,b,w){b===void 0&&(b="image/png"),w===void 0&&(w=.92);var _="",F=this.getFrame(H,B);if(F&&(F.source.isRenderTexture||F.source.isGLTexture))this.silentWarnings||console.warn("Cannot getBase64 from WebGL Texture");else if(F){var x=F.canvasData,V=u.create2D(this,x.width,x.height),Z=V.getContext("2d",{willReadFrequently:!0});x.width>0&&x.height>0&&Z.drawImage(F.source.image,x.x,x.y,x.width,x.height,0,0,x.width,x.height),_=V.toDataURL(b,w),u.remove(V)}return _},addImage:function(H,B,b){var w=null;return this.checkKey(H)&&(w=this.create(H,B),P.Image(w,0),b&&w.setDataSource(b),this.emit(S.ADD,H,w),this.emit(S.ADD_KEY+H,w)),w},addGLTexture:function(H,B){var b=null;if(this.checkKey(H)){var w=B.width,_=B.height;b=this.create(H,B,w,_),b.add("__BASE",0,0,0,w,_),this.emit(S.ADD,H,b),this.emit(S.ADD_KEY+H,b)}return b},addCompressedTexture:function(H,B,b){var w=null;if(this.checkKey(H)){if(w=this.create(H,B),w.add("__BASE",0,0,0,B.width,B.height),b){var _=v(function(x,V,Z){Array.isArray(Z.textures)||Array.isArray(Z.frames)?P.JSONArray(x,V,Z):P.JSONHash(x,V,Z)},"parse");if(Array.isArray(b))for(var F=0;F=F.x&&H=F.y&&B=F.x&&H=F.y&&B{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(27919),T=s(83419),d=s(50030),c=s(29795),A=s(82751),h=new T({initialize:P(function(S,O,L,p,N){N===void 0&&(N=!1);var g=S.manager.game;this.renderer=g.renderer,this.texture=S,this.source=O,this.image=O.compressed?null:O,this.compressionAlgorithm=O.compressed?O.format:null,this.resolution=1,this.width=L||O.naturalWidth||O.videoWidth||O.width||0,this.height=p||O.naturalHeight||O.videoHeight||O.height||0,this.scaleMode=c.DEFAULT,this.isCanvas=O instanceof HTMLCanvasElement,this.isVideo=window.hasOwnProperty("HTMLVideoElement")&&O instanceof HTMLVideoElement,this.isRenderTexture=O.type==="RenderTexture"||O.type==="DynamicTexture",this.isGLTexture=O instanceof A,this.isPowerOf2=d(this.width,this.height),this.glTexture=null,this.flipY=N,this.init(g)},"TextureSource"),init:function(f){var S=this.renderer;if(S){var O=this.source;if(S.gl){var L=this.image,p=this.flipY,N=this.width,g=this.height,C=this.scaleMode;this.isCanvas?this.glTexture=S.createCanvasTexture(L,!1,p):this.isVideo?this.glTexture=S.createVideoTexture(L,!1,p):this.isRenderTexture?this.glTexture=S.createTextureFromSource(null,N,g,C):this.isGLTexture?this.glTexture=O:this.compressionAlgorithm?this.glTexture=S.createTextureFromSource(O,void 0,void 0,C):O instanceof Uint8Array?this.glTexture=S.createUint8ArrayTexture(O,N,g,C):this.glTexture=S.createTextureFromSource(L,N,g,C)}else this.isRenderTexture&&(this.image=O.canvas)}f.config.antialias||this.setFilter(1)},setFilter:function(f){this.renderer&&this.renderer.gl&&this.renderer.setTextureFilter(this.glTexture,f),this.scaleMode=f},setFlipY:function(f){return f===void 0&&(f=!0),f===this.flipY?this:(this.flipY=f,this.update(),this)},update:function(){var f=this.renderer,S=this.image,O=this.flipY,L=f.gl;L&&this.isCanvas?f.updateCanvasTexture(S,this.glTexture,O):L&&this.isVideo&&f.updateVideoTexture(S,this.glTexture,O)},destroy:function(){this.glTexture&&this.renderer.deleteTexture(this.glTexture),this.isCanvas&&u.remove(this.image),this.renderer=null,this.texture=null,this.source=null,this.image=null,this.glTexture=null}});o.exports=h},19673:o=>{/** + */var u=s(27919),T=s(83419),A=s(50030),c=s(29795),d=s(82751),h=new T({initialize:v(function(S,R,L,p,N){N===void 0&&(N=!1);var g=S.manager.game;this.renderer=g.renderer,this.texture=S,this.source=R,this.image=R.compressed?null:R,this.compressionAlgorithm=R.compressed?R.format:null,this.resolution=1,this.width=L||R.naturalWidth||R.videoWidth||R.width||0,this.height=p||R.naturalHeight||R.videoHeight||R.height||0,this.scaleMode=c.DEFAULT,this.isCanvas=R instanceof HTMLCanvasElement,this.isVideo=window.hasOwnProperty("HTMLVideoElement")&&R instanceof HTMLVideoElement,this.isRenderTexture=R.type==="RenderTexture"||R.type==="DynamicTexture",this.isGLTexture=R instanceof d,this.isPowerOf2=A(this.width,this.height),this.glTexture=null,this.flipY=N,this.init(g)},"TextureSource"),init:function(f){var S=this.renderer;if(S){var R=this.source;if(S.gl){var L=this.image,p=this.flipY,N=this.width,g=this.height,C=this.scaleMode;this.isCanvas?this.glTexture=S.createCanvasTexture(L,!1,p):this.isVideo?this.glTexture=S.createVideoTexture(L,!1,p):this.isRenderTexture?this.glTexture=S.createTextureFromSource(null,N,g,C):this.isGLTexture?this.glTexture=R:this.compressionAlgorithm?this.glTexture=S.createTextureFromSource(R,void 0,void 0,C):R instanceof Uint8Array?this.glTexture=S.createUint8ArrayTexture(R,N,g,C):this.glTexture=S.createTextureFromSource(L,N,g,C)}else this.isRenderTexture&&(this.image=R.canvas)}f.config.antialias||this.setFilter(1)},setFilter:function(f){this.renderer&&this.renderer.gl&&this.renderer.setTextureFilter(this.glTexture,f),this.scaleMode=f},setFlipY:function(f){return f===void 0&&(f=!0),f===this.flipY?this:(this.flipY=f,this.update(),this)},update:function(){var f=this.renderer,S=this.image,R=this.flipY,L=f.gl;L&&this.isCanvas?f.updateCanvasTexture(S,this.glTexture,R):L&&this.isVideo&&f.updateVideoTexture(S,this.glTexture,R)},destroy:function(){this.glTexture&&this.renderer.deleteTexture(this.glTexture),this.isCanvas&&u.remove(this.image),this.renderer=null,this.texture=null,this.source=null,this.image=null,this.glTexture=null}});o.exports=h},19673:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={LINEAR:0,NEAREST:1};o.exports=m},44538:o=>{/** + */var O={LINEAR:0,NEAREST:1};o.exports=O},44538:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -5363,60 +5363,60 @@ return new `+this.key+`(); * @author samme * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports="removetexture-"},69442:(o,m,s)=>{/** + */o.exports="removetexture-"},69442:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={ADD:s(44538),ADD_KEY:s(63486),ERROR:s(94851),LOAD:s(29099),READY:s(8678),REMOVE:s(86415),REMOVE_KEY:s(30879)}},27458:(o,m,s)=>{/** + */o.exports={ADD:s(44538),ADD_KEY:s(63486),ERROR:s(94851),LOAD:s(29099),READY:s(8678),REMOVE:s(86415),REMOVE_KEY:s(30879)}},27458:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(79291),T=s(19673),d={CanvasTexture:s(57382),DynamicTexture:s(81320),Events:s(69442),FilterMode:T,Frame:s(4327),Parsers:s(61309),Texture:s(79237),TextureManager:s(17130),TextureSource:s(11876)};d=u(!1,d,T),o.exports=d},89905:o=>{/** + */var u=s(79291),T=s(19673),A={CanvasTexture:s(57382),DynamicTexture:s(81320),Events:s(69442),FilterMode:T,Frame:s(4327),Parsers:s(61309),Texture:s(79237),TextureManager:s(17130),TextureSource:s(11876)};A=u(!1,A,T),o.exports=A},89905:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){if(!T.getElementsByTagName("TextureAtlas")){console.warn("Invalid Texture Atlas XML given");return}var d=s.source[u];s.add("__BASE",u,0,0,d.width,d.height);for(var c=T.getElementsByTagName("SubTexture"),A,h=0;h{/** + */var O=v(function(s,u,T){if(!T.getElementsByTagName("TextureAtlas")){console.warn("Invalid Texture Atlas XML given");return}var A=s.source[u];s.add("__BASE",u,0,0,A.width,A.height);for(var c=T.getElementsByTagName("SubTexture"),d,h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){var T=s.source[u];return s.add("__BASE",u,0,0,T.width,T.height),s},"Canvas");o.exports=m},4832:o=>{/** + */var O=v(function(s,u){var T=s.source[u];return s.add("__BASE",u,0,0,T.width,T.height),s},"Canvas");o.exports=O},4832:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){var T=s.source[u];return s.add("__BASE",u,0,0,T.width,T.height),s},"Image");o.exports=m},78566:(o,m,s)=>{/** + */var O=v(function(s,u){var T=s.source[u];return s.add("__BASE",u,0,0,T.width,T.height),s},"Image");o.exports=O},78566:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(41786),T=P(function(d,c,A){if(!A.frames&&!A.textures){console.warn("Invalid Texture Atlas JSON Array");return}var h=d.source[c];d.add("__BASE",c,0,0,h.width,h.height);for(var f=Array.isArray(A.textures)?A.textures[c].frames:A.frames,S,O=0;O{/** + */var u=s(41786),T=v(function(A,c,d){if(!d.frames&&!d.textures){console.warn("Invalid Texture Atlas JSON Array");return}var h=A.source[c];A.add("__BASE",c,0,0,h.width,h.height);for(var f=Array.isArray(d.textures)?d.textures[c].frames:d.frames,S,R=0;R{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(41786),T=P(function(d,c,A){if(!A.frames){console.warn("Invalid Texture Atlas JSON Hash given, missing 'frames' Object");return}var h=d.source[c];d.add("__BASE",c,0,0,h.width,h.height);var f=A.frames,S;for(var O in f)if(f.hasOwnProperty(O)){var L=f[O];if(S=d.add(O,c,L.frame.x,L.frame.y,L.frame.w,L.frame.h),!S){console.warn("Invalid atlas json, frame already exists: "+O);continue}L.trimmed&&S.setTrim(L.sourceSize.w,L.sourceSize.h,L.spriteSourceSize.x,L.spriteSourceSize.y,L.spriteSourceSize.w,L.spriteSourceSize.h),L.rotated&&(S.rotated=!0,S.updateUVsInverted());var p=L.anchor||L.pivot;p&&(S.customPivot=!0,S.pivotX=p.x,S.pivotY=p.y),L.scale9Borders&&S.setScale9(L.scale9Borders.x,L.scale9Borders.y,L.scale9Borders.w,L.scale9Borders.h),S.customData=u(L)}for(var N in A)N!=="frames"&&(Array.isArray(A[N])?d.customData[N]=A[N].slice(0):d.customData[N]=A[N]);return d},"JSONHash");o.exports=T},31403:o=>{/** + */var u=s(41786),T=v(function(A,c,d){if(!d.frames){console.warn("Invalid Texture Atlas JSON Hash given, missing 'frames' Object");return}var h=A.source[c];A.add("__BASE",c,0,0,h.width,h.height);var f=d.frames,S;for(var R in f)if(f.hasOwnProperty(R)){var L=f[R];if(S=A.add(R,c,L.frame.x,L.frame.y,L.frame.w,L.frame.h),!S){console.warn("Invalid atlas json, frame already exists: "+R);continue}L.trimmed&&S.setTrim(L.sourceSize.w,L.sourceSize.h,L.spriteSourceSize.x,L.spriteSourceSize.y,L.spriteSourceSize.w,L.spriteSourceSize.h),L.rotated&&(S.rotated=!0,S.updateUVsInverted());var p=L.anchor||L.pivot;p&&(S.customPivot=!0,S.pivotX=p.x,S.pivotY=p.y),L.scale9Borders&&S.setScale9(L.scale9Borders.x,L.scale9Borders.y,L.scale9Borders.w,L.scale9Borders.h),S.customData=u(L)}for(var N in d)N!=="frames"&&(Array.isArray(d[N])?A.customData[N]=d[N].slice(0):A.customData[N]=d[N]);return A},"JSONHash");o.exports=T},31403:o=>{/** * @author Richard Davey * @copyright 2021 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){var u=[171,75,84,88,32,49,49,187,13,10,26,10],T,d=new Uint8Array(s,0,12);for(T=0;T>1),M=Math.max(1,M>>1),C+=D}return{mipmaps:g,width:O,height:L,internalFormat:S,compressed:!0,generateMipmap:!1}},"KTXParser");o.exports=m},82038:o=>{/** + */var O=v(function(s){var u=[171,75,84,88,32,49,49,187,13,10,26,10],T,A=new Uint8Array(s,0,12);for(T=0;T>1),M=Math.max(1,M>>1),C+=D}return{mipmaps:g,width:R,height:L,internalFormat:S,compressed:!0,generateMipmap:!1}},"KTXParser");o.exports=O},82038:o=>{/** * @author Richard Davey * @copyright 2021 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */function m(B,_,w,b,F,k,V){return V===void 0&&(V=16),Math.floor((B+w)/F)*Math.floor((_+b)/k)*V}P(m,"GetSize");function s(B,_){return B=Math.max(B,16),_=Math.max(_,8),B*_/4}P(s,"PVRTC2bppSize");function u(B,_){return B=Math.max(B,8),_=Math.max(_,8),B*_/2}P(u,"PVRTC4bppSize");function T(B,_){return Math.ceil(B/4)*Math.ceil(_/4)*16}P(T,"BPTCSize");function d(B,_){return m(B,_,3,3,4,4,8)}P(d,"DXTEtcSmallSize");function c(B,_){return m(B,_,3,3,4,4)}P(c,"DXTEtcAstcBigSize");function A(B,_){return m(B,_,4,3,5,4)}P(A,"ATC5x4Size");function h(B,_){return m(B,_,4,4,5,5)}P(h,"ATC5x5Size");function f(B,_){return m(B,_,5,4,6,5)}P(f,"ATC6x5Size");function S(B,_){return m(B,_,5,5,6,6)}P(S,"ATC6x6Size");function O(B,_){return m(B,_,7,4,8,5)}P(O,"ATC8x5Size");function L(B,_){return m(B,_,7,5,8,6)}P(L,"ATC8x6Size");function p(B,_){return m(B,_,7,7,8,8)}P(p,"ATC8x8Size");function N(B,_){return m(B,_,9,4,10,5)}P(N,"ATC10x5Size");function g(B,_){return m(B,_,9,5,10,6)}P(g,"ATC10x6Size");function C(B,_){return m(B,_,9,7,10,8)}P(C,"ATC10x8Size");function v(B,_){return m(B,_,9,9,10,10)}P(v,"ATC10x10Size");function M(B,_){return m(B,_,11,9,12,10)}P(M,"ATC12x10Size");function D(B,_){return m(B,_,11,11,12,12)}P(D,"ATC12x12Size");var G={0:{sizeFunc:s,glFormat:[35841]},1:{sizeFunc:s,glFormat:[35843]},2:{sizeFunc:u,glFormat:[35840]},3:{sizeFunc:u,glFormat:[35842]},6:{sizeFunc:d,glFormat:[36196]},7:{sizeFunc:d,glFormat:[33776,35916]},8:{sizeFunc:c,glFormat:[33777,35917]},9:{sizeFunc:c,glFormat:[33778,35918]},11:{sizeFunc:c,glFormat:[33779,35919]},14:{sizeFunc:T,glFormat:[36494,36495]},15:{sizeFunc:T,glFormat:[36492,36493]},22:{sizeFunc:d,glFormat:[37492,37493]},23:{sizeFunc:c,glFormat:[37496,37497]},24:{sizeFunc:d,glFormat:[37494,37495]},25:{sizeFunc:d,glFormat:[37488]},26:{sizeFunc:c,glFormat:[37490]},27:{sizeFunc:c,glFormat:[37808,37840]},28:{sizeFunc:A,glFormat:[37809,37841]},29:{sizeFunc:h,glFormat:[37810,37842]},30:{sizeFunc:f,glFormat:[37811,37843]},31:{sizeFunc:S,glFormat:[37812,37844]},32:{sizeFunc:O,glFormat:[37813,37845]},33:{sizeFunc:L,glFormat:[37814,37846]},34:{sizeFunc:p,glFormat:[37815,37847]},35:{sizeFunc:N,glFormat:[37816,37848]},36:{sizeFunc:g,glFormat:[37817,37849]},37:{sizeFunc:C,glFormat:[37818,37850]},38:{sizeFunc:v,glFormat:[37819,37851]},39:{sizeFunc:M,glFormat:[37820,37852]},40:{sizeFunc:D,glFormat:[37821,37853]}},H=P(function(B){for(var _=new Uint32Array(B,0,13),w=_[0],b=w===55727696,F=b?_[2]:_[3],k=_[4],V=G[F].glFormat[k],Z=G[F].sizeFunc,$=_[11],Q=_[7],te=_[6],z=52+_[12],j=new Uint8Array(B,z),x=new Array($),X=0,q=Q,J=te,ae=0;ae<$;ae++){var re=Z(q,J);x[ae]={data:new Uint8Array(j.buffer,j.byteOffset+X,re),width:q,height:J},q=Math.max(1,q>>1),J=Math.max(1,J>>1),X+=re}return{mipmaps:x,width:Q,height:te,internalFormat:V,compressed:!0,generateMipmap:!1}},"PVRParser");o.exports=H},75549:(o,m,s)=>{/** + */function O(B,b,w,_,F,x,V){return V===void 0&&(V=16),Math.floor((B+w)/F)*Math.floor((b+_)/x)*V}v(O,"GetSize");function s(B,b){return B=Math.max(B,16),b=Math.max(b,8),B*b/4}v(s,"PVRTC2bppSize");function u(B,b){return B=Math.max(B,8),b=Math.max(b,8),B*b/2}v(u,"PVRTC4bppSize");function T(B,b){return Math.ceil(B/4)*Math.ceil(b/4)*16}v(T,"BPTCSize");function A(B,b){return O(B,b,3,3,4,4,8)}v(A,"DXTEtcSmallSize");function c(B,b){return O(B,b,3,3,4,4)}v(c,"DXTEtcAstcBigSize");function d(B,b){return O(B,b,4,3,5,4)}v(d,"ATC5x4Size");function h(B,b){return O(B,b,4,4,5,5)}v(h,"ATC5x5Size");function f(B,b){return O(B,b,5,4,6,5)}v(f,"ATC6x5Size");function S(B,b){return O(B,b,5,5,6,6)}v(S,"ATC6x6Size");function R(B,b){return O(B,b,7,4,8,5)}v(R,"ATC8x5Size");function L(B,b){return O(B,b,7,5,8,6)}v(L,"ATC8x6Size");function p(B,b){return O(B,b,7,7,8,8)}v(p,"ATC8x8Size");function N(B,b){return O(B,b,9,4,10,5)}v(N,"ATC10x5Size");function g(B,b){return O(B,b,9,5,10,6)}v(g,"ATC10x6Size");function C(B,b){return O(B,b,9,7,10,8)}v(C,"ATC10x8Size");function P(B,b){return O(B,b,9,9,10,10)}v(P,"ATC10x10Size");function M(B,b){return O(B,b,11,9,12,10)}v(M,"ATC12x10Size");function D(B,b){return O(B,b,11,11,12,12)}v(D,"ATC12x12Size");var G={0:{sizeFunc:s,glFormat:[35841]},1:{sizeFunc:s,glFormat:[35843]},2:{sizeFunc:u,glFormat:[35840]},3:{sizeFunc:u,glFormat:[35842]},6:{sizeFunc:A,glFormat:[36196]},7:{sizeFunc:A,glFormat:[33776,35916]},8:{sizeFunc:c,glFormat:[33777,35917]},9:{sizeFunc:c,glFormat:[33778,35918]},11:{sizeFunc:c,glFormat:[33779,35919]},14:{sizeFunc:T,glFormat:[36494,36495]},15:{sizeFunc:T,glFormat:[36492,36493]},22:{sizeFunc:A,glFormat:[37492,37493]},23:{sizeFunc:c,glFormat:[37496,37497]},24:{sizeFunc:A,glFormat:[37494,37495]},25:{sizeFunc:A,glFormat:[37488]},26:{sizeFunc:c,glFormat:[37490]},27:{sizeFunc:c,glFormat:[37808,37840]},28:{sizeFunc:d,glFormat:[37809,37841]},29:{sizeFunc:h,glFormat:[37810,37842]},30:{sizeFunc:f,glFormat:[37811,37843]},31:{sizeFunc:S,glFormat:[37812,37844]},32:{sizeFunc:R,glFormat:[37813,37845]},33:{sizeFunc:L,glFormat:[37814,37846]},34:{sizeFunc:p,glFormat:[37815,37847]},35:{sizeFunc:N,glFormat:[37816,37848]},36:{sizeFunc:g,glFormat:[37817,37849]},37:{sizeFunc:C,glFormat:[37818,37850]},38:{sizeFunc:P,glFormat:[37819,37851]},39:{sizeFunc:M,glFormat:[37820,37852]},40:{sizeFunc:D,glFormat:[37821,37853]}},H=v(function(B){for(var b=new Uint32Array(B,0,13),w=b[0],_=w===55727696,F=_?b[2]:b[3],x=b[4],V=G[F].glFormat[x],Z=G[F].sizeFunc,$=b[11],Q=b[7],te=b[6],z=52+b[12],j=new Uint8Array(B,z),k=new Array($),X=0,q=Q,J=te,ne=0;ne<$;ne++){var re=Z(q,J);k[ne]={data:new Uint8Array(j.buffer,j.byteOffset+X,re),width:q,height:J},q=Math.max(1,q>>1),J=Math.max(1,J>>1),X+=re}return{mipmaps:k,width:Q,height:te,internalFormat:V,compressed:!0,generateMipmap:!1}},"PVRParser");o.exports=H},75549:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(95540),T=P(function(d,c,A,h,f,S,O){var L=u(O,"frameWidth",null),p=u(O,"frameHeight",L);if(L===null)throw new Error("TextureManager.SpriteSheet: Invalid frameWidth given.");var N=d.source[c];d.add("__BASE",c,0,0,N.width,N.height);var g=u(O,"startFrame",0),C=u(O,"endFrame",-1),v=u(O,"margin",0),M=u(O,"spacing",0),D=Math.floor((f-v+M)/(L+M)),G=Math.floor((S-v+M)/(p+M)),H=D*G;H===0&&console.warn("SpriteSheet frame dimensions will result in zero frames for texture:",d.key),(g>H||g<-H)&&(g=0),g<0&&(g=H+g),(C===-1||C>H||Cf&&(w=V-f),Z>S&&(b=Z-S),k>=g&&k<=C&&(d.add(F,c,A+B,h+_,L-w,p-b),F++),B+=L+M,B+L>f&&(B=v,_+=p+M)}return d},"SpriteSheet");o.exports=T},47534:(o,m,s)=>{/** + */var u=s(95540),T=v(function(A,c,d,h,f,S,R){var L=u(R,"frameWidth",null),p=u(R,"frameHeight",L);if(L===null)throw new Error("TextureManager.SpriteSheet: Invalid frameWidth given.");var N=A.source[c];A.add("__BASE",c,0,0,N.width,N.height);var g=u(R,"startFrame",0),C=u(R,"endFrame",-1),P=u(R,"margin",0),M=u(R,"spacing",0),D=Math.floor((f-P+M)/(L+M)),G=Math.floor((S-P+M)/(p+M)),H=D*G;H===0&&console.warn("SpriteSheet frame dimensions will result in zero frames for texture:",A.key),(g>H||g<-H)&&(g=0),g<0&&(g=H+g),(C===-1||C>H||Cf&&(w=V-f),Z>S&&(_=Z-S),x>=g&&x<=C&&(A.add(F,c,d+B,h+b,L-w,p-_),F++),B+=L+M,B+L>f&&(B=P,b+=p+M)}return A},"SpriteSheet");o.exports=T},47534:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(95540),T=P(function(d,c,A){var h=u(A,"frameWidth",null),f=u(A,"frameHeight",h);if(!h)throw new Error("TextureManager.SpriteSheetFromAtlas: Invalid frameWidth given.");var S=d.source[0];d.add("__BASE",0,0,0,S.width,S.height),u(A,"startFrame",0),u(A,"endFrame",-1);for(var O=u(A,"margin",0),L=u(A,"spacing",0),p=c.cutX,N=c.cutY,g=c.cutWidth,C=c.cutHeight,v=c.realWidth,M=c.realHeight,D=Math.floor((v-O+L)/(h+L)),G=Math.floor((M-O+L)/(f+L)),H=c.x,B=h-H,_=h-(v-g-H),w=c.y,b=f-w,F=f-(M-C-w),k,V=O,Z=O,$=0,Q=0,te=0;te{/** + */var u=s(95540),T=v(function(A,c,d){var h=u(d,"frameWidth",null),f=u(d,"frameHeight",h);if(!h)throw new Error("TextureManager.SpriteSheetFromAtlas: Invalid frameWidth given.");var S=A.source[0];A.add("__BASE",0,0,0,S.width,S.height),u(d,"startFrame",0),u(d,"endFrame",-1);for(var R=u(d,"margin",0),L=u(d,"spacing",0),p=c.cutX,N=c.cutY,g=c.cutWidth,C=c.cutHeight,P=c.realWidth,M=c.realHeight,D=Math.floor((P-R+L)/(h+L)),G=Math.floor((M-R+L)/(f+L)),H=c.x,B=h-H,b=h-(P-g-H),w=c.y,_=f-w,F=f-(M-C-w),x,V=R,Z=R,$=0,Q=0,te=0;te{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=0,s=P(function(T,d,c,A){var h=m-A.y-A.height;T.add(c,d,A.x,h,A.width,A.height)},"addFrame"),u=P(function(T,d,c){var A=T.source[d];T.add("__BASE",d,0,0,A.width,A.height),m=A.height;for(var h=c.split(` -`),f=/^[ ]*(- )*(\w+)+[: ]+(.*)/,S="",O="",L={x:0,y:0,width:0,height:0},p=0;p{/** + */var O=0,s=v(function(T,A,c,d){var h=O-d.y-d.height;T.add(c,A,d.x,h,d.width,d.height)},"addFrame"),u=v(function(T,A,c){var d=T.source[A];T.add("__BASE",A,0,0,d.width,d.height),O=d.height;for(var h=c.split(` +`),f=/^[ ]*(- )*(\w+)+[: ]+(.*)/,S="",R="",L={x:0,y:0,width:0,height:0},p=0;p{/** * @author Ben Richards * @copyright 2024 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(50030),T=P(function(S){for(var O=S.mipmaps,L=1;L{/** + */var u=s(50030),T=v(function(S){for(var R=S.mipmaps,L=1;L{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -5424,335 +5424,335 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={CSV:0,TILED_JSON:1,ARRAY_2D:2,WELTMEISTER:3}},16536:(o,m,s)=>{/** + */o.exports={CSV:0,TILED_JSON:1,ARRAY_2D:2,WELTMEISTER:3}},16536:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=new u({initialize:P(function(c,A,h,f,S,O,L){(h===void 0||h<=0)&&(h=32),(f===void 0||f<=0)&&(f=32),S===void 0&&(S=0),O===void 0&&(O=0),this.name=c,this.firstgid=A|0,this.imageWidth=h|0,this.imageHeight=f|0,this.imageMargin=S|0,this.imageSpacing=O|0,this.properties=L||{},this.images=[],this.total=0},"ImageCollection"),containsImageIndex:function(d){return d>=this.firstgid&&d{/** + */var u=s(83419),T=new u({initialize:v(function(c,d,h,f,S,R,L){(h===void 0||h<=0)&&(h=32),(f===void 0||f<=0)&&(f=32),S===void 0&&(S=0),R===void 0&&(R=0),this.name=c,this.firstgid=d|0,this.imageWidth=h|0,this.imageHeight=f|0,this.imageMargin=S|0,this.imageSpacing=R|0,this.properties=L||{},this.images=[],this.total=0},"ImageCollection"),containsImageIndex:function(A){return A>=this.firstgid&&A{/** * @author Richard Davey * @copyright 2021 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=new u({initialize:P(function(c){if(this.gids=[],c!==void 0)for(var A=0;A{/** + */var u=s(83419),T=new u({initialize:v(function(c){if(this.gids=[],c!==void 0)for(var d=0;d{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(80341),T=s(87010),d=s(46177),c=s(49075),A=P(function(h,f,S,O,L,p,N,g){S===void 0&&(S=32),O===void 0&&(O=32),L===void 0&&(L=10),p===void 0&&(p=10),g===void 0&&(g=!1);var C=null;if(Array.isArray(N)){var v=f!==void 0?f:"map";C=d(v,u.ARRAY_2D,N,S,O,g)}else if(f!==void 0){var M=h.cache.tilemap.get(f);M?C=d(f,M.format,M.data,S,O,g):console.warn("No map data found for key "+f)}return C===null&&(C=new T({tileWidth:S,tileHeight:O,width:L,height:p})),new c(h,C)},"ParseToTilemap");o.exports=A},23029:(o,m,s)=>{/** + */var u=s(80341),T=s(87010),A=s(46177),c=s(49075),d=v(function(h,f,S,R,L,p,N,g){S===void 0&&(S=32),R===void 0&&(R=32),L===void 0&&(L=10),p===void 0&&(p=10),g===void 0&&(g=!1);var C=null;if(Array.isArray(N)){var P=f!==void 0?f:"map";C=A(P,u.ARRAY_2D,N,S,R,g)}else if(f!==void 0){var M=h.cache.tilemap.get(f);M?C=A(f,M.format,M.data,S,R,g):console.warn("No map data found for key "+f)}return C===null&&(C=new T({tileWidth:S,tileHeight:R,width:L,height:p})),new c(h,C)},"ParseToTilemap");o.exports=d},23029:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(31401),d=s(91907),c=s(62644),A=s(93232),h=new u({Mixins:[T.AlphaSingle,T.Flip,T.Visible],initialize:P(function(S,O,L,p,N,g,C,v){this.layer=S,this.index=O,this.x=L,this.y=p,this.width=N,this.height=g,this.right,this.bottom,this.baseWidth=C!==void 0?C:N,this.baseHeight=v!==void 0?v:g,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.tintFill=!1,this.physics={}},"Tile"),containsPoint:function(f,S){return!(fthis.right||S>this.bottom)},copy:function(f){return this.index=f.index,this.alpha=f.alpha,this.properties=c(f.properties),this.visible=f.visible,this.setFlip(f.flipX,f.flipY),this.tint=f.tint,this.rotation=f.rotation,this.collideUp=f.collideUp,this.collideDown=f.collideDown,this.collideLeft=f.collideLeft,this.collideRight=f.collideRight,this.collisionCallback=f.collisionCallback,this.collisionCallbackContext=f.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(f){var S=this.tilemapLayer;if(S){var O=S.tileToWorldXY(this.x,this.y,void 0,f);return O.x}return this.x*this.baseWidth},getRight:function(f){var S=this.tilemapLayer;return S?this.getLeft(f)+this.width*S.scaleX:this.getLeft(f)+this.width},getTop:function(f){var S=this.tilemapLayer;if(S){var O=S.tileToWorldXY(this.x,this.y,void 0,f);return O.y}return this.y*this.baseWidth-(this.height-this.baseHeight)},getBottom:function(f){var S=this.tilemapLayer;return S?this.getTop(f)+this.height*S.scaleY:this.getTop(f)+this.height},getBounds:function(f,S){return S===void 0&&(S=new A),S.x=this.getLeft(f),S.y=this.getTop(f),S.width=this.getRight(f)-S.x,S.height=this.getBottom(f)-S.y,S},getCenterX:function(f){return(this.getLeft(f)+this.getRight(f))/2},getCenterY:function(f){return(this.getTop(f)+this.getBottom(f))/2},intersects:function(f,S,O,L){return!(O<=this.pixelX||L<=this.pixelY||f>=this.right||S>=this.bottom)},isInteresting:function(f,S){return f&&S?this.canCollide||this.hasInterestingFace:f?this.collides:S?this.hasInterestingFace:!1},resetCollision:function(f){if(f===void 0&&(f=!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,f){var S=this.tilemapLayer;S&&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(f,S,O,L,p){if(S===void 0&&(S=f),O===void 0&&(O=f),L===void 0&&(L=f),p===void 0&&(p=!0),this.collideLeft=f,this.collideRight=S,this.collideUp=O,this.collideDown=L,this.faceLeft=f,this.faceRight=S,this.faceTop=O,this.faceBottom=L,p){var N=this.tilemapLayer;N&&this.tilemapLayer.calculateFacesAt(this.x,this.y)}return this},setCollisionCallback:function(f,S){return f===null?(this.collisionCallback=void 0,this.collisionCallbackContext=void 0):(this.collisionCallback=f,this.collisionCallbackContext=S),this},setSize:function(f,S,O,L){return f!==void 0&&(this.width=f),S!==void 0&&(this.height=S),O!==void 0&&(this.baseWidth=O),L!==void 0&&(this.baseHeight=L),this.updatePixelXY(),this},updatePixelXY:function(){var f=this.layer.orientation;if(f===d.ORTHOGONAL)this.pixelX=this.x*this.baseWidth,this.pixelY=this.y*this.baseHeight;else if(f===d.ISOMETRIC)this.pixelX=(this.x-this.y)*this.baseWidth*.5,this.pixelY=(this.x+this.y)*this.baseHeight*.5;else if(f===d.STAGGERED)this.pixelX=this.x*this.baseWidth+this.y%2*(this.baseWidth/2),this.pixelY=this.y*(this.baseHeight/2);else if(f===d.HEXAGONAL){var S=this.layer.staggerAxis,O=this.layer.staggerIndex,L=this.layer.hexSideLength,p,N;S==="y"?(N=(this.baseHeight-L)/2+L,O==="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*N):S==="x"&&(p=(this.baseWidth-L)/2+L,this.pixelX=this.x*p,O==="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 f=this.layer.tilemapLayer;if(f){var S=f.gidMap[this.index];if(S)return S}return null}},tilemapLayer:{get:function(){return this.layer.tilemapLayer}},tilemap:{get:function(){var f=this.tilemapLayer;return f?f.tilemap:null}}});o.exports=h},49075:(o,m,s)=>{/** + */var u=s(83419),T=s(31401),A=s(91907),c=s(62644),d=s(93232),h=new u({Mixins:[T.AlphaSingle,T.Flip,T.Visible],initialize:v(function(S,R,L,p,N,g,C,P){this.layer=S,this.index=R,this.x=L,this.y=p,this.width=N,this.height=g,this.right,this.bottom,this.baseWidth=C!==void 0?C:N,this.baseHeight=P!==void 0?P:g,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.tintFill=!1,this.physics={}},"Tile"),containsPoint:function(f,S){return!(fthis.right||S>this.bottom)},copy:function(f){return this.index=f.index,this.alpha=f.alpha,this.properties=c(f.properties),this.visible=f.visible,this.setFlip(f.flipX,f.flipY),this.tint=f.tint,this.rotation=f.rotation,this.collideUp=f.collideUp,this.collideDown=f.collideDown,this.collideLeft=f.collideLeft,this.collideRight=f.collideRight,this.collisionCallback=f.collisionCallback,this.collisionCallbackContext=f.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(f){var S=this.tilemapLayer;if(S){var R=S.tileToWorldXY(this.x,this.y,void 0,f);return R.x}return this.x*this.baseWidth},getRight:function(f){var S=this.tilemapLayer;return S?this.getLeft(f)+this.width*S.scaleX:this.getLeft(f)+this.width},getTop:function(f){var S=this.tilemapLayer;if(S){var R=S.tileToWorldXY(this.x,this.y,void 0,f);return R.y}return this.y*this.baseWidth-(this.height-this.baseHeight)},getBottom:function(f){var S=this.tilemapLayer;return S?this.getTop(f)+this.height*S.scaleY:this.getTop(f)+this.height},getBounds:function(f,S){return S===void 0&&(S=new d),S.x=this.getLeft(f),S.y=this.getTop(f),S.width=this.getRight(f)-S.x,S.height=this.getBottom(f)-S.y,S},getCenterX:function(f){return(this.getLeft(f)+this.getRight(f))/2},getCenterY:function(f){return(this.getTop(f)+this.getBottom(f))/2},intersects:function(f,S,R,L){return!(R<=this.pixelX||L<=this.pixelY||f>=this.right||S>=this.bottom)},isInteresting:function(f,S){return f&&S?this.canCollide||this.hasInterestingFace:f?this.collides:S?this.hasInterestingFace:!1},resetCollision:function(f){if(f===void 0&&(f=!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,f){var S=this.tilemapLayer;S&&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(f,S,R,L,p){if(S===void 0&&(S=f),R===void 0&&(R=f),L===void 0&&(L=f),p===void 0&&(p=!0),this.collideLeft=f,this.collideRight=S,this.collideUp=R,this.collideDown=L,this.faceLeft=f,this.faceRight=S,this.faceTop=R,this.faceBottom=L,p){var N=this.tilemapLayer;N&&this.tilemapLayer.calculateFacesAt(this.x,this.y)}return this},setCollisionCallback:function(f,S){return f===null?(this.collisionCallback=void 0,this.collisionCallbackContext=void 0):(this.collisionCallback=f,this.collisionCallbackContext=S),this},setSize:function(f,S,R,L){return f!==void 0&&(this.width=f),S!==void 0&&(this.height=S),R!==void 0&&(this.baseWidth=R),L!==void 0&&(this.baseHeight=L),this.updatePixelXY(),this},updatePixelXY:function(){var f=this.layer.orientation;if(f===A.ORTHOGONAL)this.pixelX=this.x*this.baseWidth,this.pixelY=this.y*this.baseHeight;else if(f===A.ISOMETRIC)this.pixelX=(this.x-this.y)*this.baseWidth*.5,this.pixelY=(this.x+this.y)*this.baseHeight*.5;else if(f===A.STAGGERED)this.pixelX=this.x*this.baseWidth+this.y%2*(this.baseWidth/2),this.pixelY=this.y*(this.baseHeight/2);else if(f===A.HEXAGONAL){var S=this.layer.staggerAxis,R=this.layer.staggerIndex,L=this.layer.hexSideLength,p,N;S==="y"?(N=(this.baseHeight-L)/2+L,R==="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*N):S==="x"&&(p=(this.baseWidth-L)/2+L,this.pixelX=this.x*p,R==="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 f=this.layer.tilemapLayer;if(f){var S=f.gidMap[this.index];if(S)return S}return null}},tilemapLayer:{get:function(){return this.layer.tilemapLayer}},tilemap:{get:function(){var f=this.tilemapLayer;return f?f.tilemap:null}}});o.exports=h},49075:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(84101),T=s(83419),d=s(39506),c=s(80341),A=s(95540),h=s(14977),f=s(27462),S=s(91907),O=s(36305),L=s(19133),p=s(68287),N=s(23029),g=s(81086),C=s(20442),v=s(33629),M=new T({initialize:P(function(G,H){this.scene=G,this.tileWidth=H.tileWidth,this.tileHeight=H.tileHeight,this.width=H.width,this.height=H.height,this.orientation=H.orientation,this.renderOrder=H.renderOrder,this.format=H.format,this.version=H.version,this.properties=H.properties,this.widthInPixels=H.widthInPixels,this.heightInPixels=H.heightInPixels,this.imageCollections=H.imageCollections,this.images=H.images,this.layers=H.layers,this.tiles=H.tiles,this.tilesets=H.tilesets,this.objects=H.objects,this.currentLayerIndex=0,this.hexSideLength=H.hexSideLength;var B=this.orientation;this._convert={WorldToTileXY:g.GetWorldToTileXYFunction(B),WorldToTileX:g.GetWorldToTileXFunction(B),WorldToTileY:g.GetWorldToTileYFunction(B),TileToWorldXY:g.GetTileToWorldXYFunction(B),TileToWorldX:g.GetTileToWorldXFunction(B),TileToWorldY:g.GetTileToWorldYFunction(B),GetTileCorners:g.GetTileCornersFunction(B)}},"Tilemap"),setRenderOrder:function(D){var G=["right-down","left-down","right-up","left-up"];return typeof D=="number"&&(D=G[D]),G.indexOf(D)>-1&&(this.renderOrder=D),this},addTilesetImage:function(D,G,H,B,_,w,b,F){if(D===void 0)return null;G==null&&(G=D);var k=this.scene.sys.textures;if(!k.exists(G))return console.warn('Texture key "%s" not found',G),null;var V=k.get(G),Z=this.getTilesetIndex(D);if(Z===null&&this.format===c.TILED_JSON)return console.warn('Tilemap has no tileset "%s". Its tilesets are %o',D,this.tilesets),null;var $=this.tilesets[Z];return $?($.setTileSize(H,B),$.setSpacing(_,w),$.setImage(V),$):(H===void 0&&(H=this.tileWidth),B===void 0&&(B=this.tileHeight),_===void 0&&(_=0),w===void 0&&(w=0),b===void 0&&(b=0),F===void 0&&(F={x:0,y:0}),$=new v(D,b,H,B,_,w,void 0,void 0,F),$.setImage(V),this.tilesets.push($),this.tiles=u(this),$)},copy:function(D,G,H,B,_,w,b,F){return F=this.getLayer(F),F!==null?(g.Copy(D,G,H,B,_,w,b,F),this):null},createBlankLayer:function(D,G,H,B,_,w,b,F){H===void 0&&(H=0),B===void 0&&(B=0),_===void 0&&(_=this.width),w===void 0&&(w=this.height),b===void 0&&(b=this.tileWidth),F===void 0&&(F=this.tileHeight);var k=this.getLayerIndex(D);if(k!==null)return console.warn("Invalid Tilemap Layer ID: "+D),null;for(var V=new h({name:D,tileWidth:b,tileHeight:F,width:_,height:w,orientation:this.orientation}),Z,$=0;$-1&&this.putTileAt(G,w.x,w.y,H,w.tilemapLayer)}return B},removeTileAt:function(D,G,H,B,_){return H===void 0&&(H=!0),B===void 0&&(B=!0),_=this.getLayer(_),_===null?null:g.RemoveTileAt(D,G,H,B,_)},removeTileAtWorldXY:function(D,G,H,B,_,w){return H===void 0&&(H=!0),B===void 0&&(B=!0),w=this.getLayer(w),w===null?null:g.RemoveTileAtWorldXY(D,G,H,B,_,w)},renderDebug:function(D,G,H){return H=this.getLayer(H),H===null?null:(this.orientation===S.ORTHOGONAL&&g.RenderDebug(D,G,H),this)},renderDebugFull:function(D,G){for(var H=this.layers,B=0;B{/** + */var u=s(84101),T=s(83419),A=s(39506),c=s(80341),d=s(95540),h=s(14977),f=s(27462),S=s(91907),R=s(36305),L=s(19133),p=s(68287),N=s(23029),g=s(81086),C=s(20442),P=s(33629),M=new T({initialize:v(function(G,H){this.scene=G,this.tileWidth=H.tileWidth,this.tileHeight=H.tileHeight,this.width=H.width,this.height=H.height,this.orientation=H.orientation,this.renderOrder=H.renderOrder,this.format=H.format,this.version=H.version,this.properties=H.properties,this.widthInPixels=H.widthInPixels,this.heightInPixels=H.heightInPixels,this.imageCollections=H.imageCollections,this.images=H.images,this.layers=H.layers,this.tiles=H.tiles,this.tilesets=H.tilesets,this.objects=H.objects,this.currentLayerIndex=0,this.hexSideLength=H.hexSideLength;var B=this.orientation;this._convert={WorldToTileXY:g.GetWorldToTileXYFunction(B),WorldToTileX:g.GetWorldToTileXFunction(B),WorldToTileY:g.GetWorldToTileYFunction(B),TileToWorldXY:g.GetTileToWorldXYFunction(B),TileToWorldX:g.GetTileToWorldXFunction(B),TileToWorldY:g.GetTileToWorldYFunction(B),GetTileCorners:g.GetTileCornersFunction(B)}},"Tilemap"),setRenderOrder:function(D){var G=["right-down","left-down","right-up","left-up"];return typeof D=="number"&&(D=G[D]),G.indexOf(D)>-1&&(this.renderOrder=D),this},addTilesetImage:function(D,G,H,B,b,w,_,F){if(D===void 0)return null;G==null&&(G=D);var x=this.scene.sys.textures;if(!x.exists(G))return console.warn('Texture key "%s" not found',G),null;var V=x.get(G),Z=this.getTilesetIndex(D);if(Z===null&&this.format===c.TILED_JSON)return console.warn('Tilemap has no tileset "%s". Its tilesets are %o',D,this.tilesets),null;var $=this.tilesets[Z];return $?($.setTileSize(H,B),$.setSpacing(b,w),$.setImage(V),$):(H===void 0&&(H=this.tileWidth),B===void 0&&(B=this.tileHeight),b===void 0&&(b=0),w===void 0&&(w=0),_===void 0&&(_=0),F===void 0&&(F={x:0,y:0}),$=new P(D,_,H,B,b,w,void 0,void 0,F),$.setImage(V),this.tilesets.push($),this.tiles=u(this),$)},copy:function(D,G,H,B,b,w,_,F){return F=this.getLayer(F),F!==null?(g.Copy(D,G,H,B,b,w,_,F),this):null},createBlankLayer:function(D,G,H,B,b,w,_,F){H===void 0&&(H=0),B===void 0&&(B=0),b===void 0&&(b=this.width),w===void 0&&(w=this.height),_===void 0&&(_=this.tileWidth),F===void 0&&(F=this.tileHeight);var x=this.getLayerIndex(D);if(x!==null)return console.warn("Invalid Tilemap Layer ID: "+D),null;for(var V=new h({name:D,tileWidth:_,tileHeight:F,width:b,height:w,orientation:this.orientation}),Z,$=0;$-1&&this.putTileAt(G,w.x,w.y,H,w.tilemapLayer)}return B},removeTileAt:function(D,G,H,B,b){return H===void 0&&(H=!0),B===void 0&&(B=!0),b=this.getLayer(b),b===null?null:g.RemoveTileAt(D,G,H,B,b)},removeTileAtWorldXY:function(D,G,H,B,b,w){return H===void 0&&(H=!0),B===void 0&&(B=!0),w=this.getLayer(w),w===null?null:g.RemoveTileAtWorldXY(D,G,H,B,b,w)},renderDebug:function(D,G,H){return H=this.getLayer(H),H===null?null:(this.orientation===S.ORTHOGONAL&&g.RenderDebug(D,G,H),this)},renderDebugFull:function(D,G){for(var H=this.layers,B=0;B{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(44603),T=s(31989);u.register("tilemap",function(d){var c=d!==void 0?d:{};return T(this.scene,c.key,c.tileWidth,c.tileHeight,c.width,c.height,c.data,c.insertNull)})},46029:(o,m,s)=>{/** + */var u=s(44603),T=s(31989);u.register("tilemap",function(A){var c=A!==void 0?A:{};return T(this.scene,c.key,c.tileWidth,c.tileHeight,c.width,c.height,c.data,c.insertNull)})},46029:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(39429),T=s(31989);u.register("tilemap",function(d,c,A,h,f,S,O){return d===null&&(d=void 0),c===null&&(c=void 0),A===null&&(A=void 0),h===null&&(h=void 0),f===null&&(f=void 0),T(this.scene,d,c,A,h,f,S,O)})},20442:(o,m,s)=>{/** + */var u=s(39429),T=s(31989);u.register("tilemap",function(A,c,d,h,f,S,R){return A===null&&(A=void 0),c===null&&(c=void 0),d===null&&(d=void 0),h===null&&(h=void 0),f===null&&(f=void 0),T(this.scene,A,c,d,h,f,S,R)})},20442:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(78389),d=s(31401),c=s(95643),A=s(81086),h=s(19218),f=s(26099),S=new u({Extends:c,Mixins:[d.Alpha,d.BlendMode,d.ComputedSize,d.Depth,d.Flip,d.GetBounds,d.Mask,d.Origin,d.Pipeline,d.PostPipeline,d.Transform,d.Visible,d.ScrollFactor,T,h],initialize:P(function(L,p,N,g,C,v){c.call(this,L,"TilemapLayer"),this.isTilemap=!0,this.tilemap=p,this.layerIndex=N,this.layer=p.layers[N],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=A.GetCullTilesFunction(this.layer.orientation),this._renderOrder=0,this.gidMap=[],this.tempVec=new f,this.collisionCategory=1,this.collisionMask=1,this.setTilesets(g),this.setAlpha(this.layer.alpha),this.setPosition(C,v),this.setOrigin(0,0),this.setSize(p.tileWidth*this.layer.width,p.tileHeight*this.layer.height),this.initPipeline(),this.initPostPipeline(!1)},"TilemapLayer"),setTilesets:function(O){var L=[],p=[],N=this.tilemap;Array.isArray(O)||(O=[O]);for(var g=0;g=0&&O<4&&(this._renderOrder=O),this},calculateFacesAt:function(O,L){return A.CalculateFacesAt(O,L,this.layer),this},calculateFacesWithin:function(O,L,p,N){return A.CalculateFacesWithin(O,L,p,N,this.layer),this},createFromTiles:function(O,L,p,N,g){return A.CreateFromTiles(O,L,p,N,g,this.layer)},cull:function(O){return this.cullCallback(this.layer,O,this.culledTiles,this._renderOrder)},copy:function(O,L,p,N,g,C,v){return A.Copy(O,L,p,N,g,C,v,this.layer),this},fill:function(O,L,p,N,g,C){return A.Fill(O,L,p,N,g,C,this.layer),this},filterTiles:function(O,L,p,N,g,C,v){return A.FilterTiles(O,L,p,N,g,C,v,this.layer)},findByIndex:function(O,L,p){return A.FindByIndex(O,L,p,this.layer)},findTile:function(O,L,p,N,g,C,v){return A.FindTile(O,L,p,N,g,C,v,this.layer)},forEachTile:function(O,L,p,N,g,C,v){return A.ForEachTile(O,L,p,N,g,C,v,this.layer),this},setTint:function(O,L,p,N,g,C){O===void 0&&(O=16777215);var v=P(function(M){M.tint=O,M.tintFill=!1},"tintTile");return this.forEachTile(v,this,L,p,N,g,C)},setTintFill:function(O,L,p,N,g,C){O===void 0&&(O=16777215);var v=P(function(M){M.tint=O,M.tintFill=!0},"tintTile");return this.forEachTile(v,this,L,p,N,g,C)},getTileAt:function(O,L,p){return A.GetTileAt(O,L,p,this.layer)},getTileAtWorldXY:function(O,L,p,N){return A.GetTileAtWorldXY(O,L,p,N,this.layer)},getIsoTileAtWorldXY:function(O,L,p,N,g){p===void 0&&(p=!0);var C=this.tempVec;return A.IsometricWorldToTileXY(O,L,!0,C,g,this.layer,p),this.getTileAt(C.x,C.y,N)},getTilesWithin:function(O,L,p,N,g){return A.GetTilesWithin(O,L,p,N,g,this.layer)},getTilesWithinShape:function(O,L,p){return A.GetTilesWithinShape(O,L,p,this.layer)},getTilesWithinWorldXY:function(O,L,p,N,g,C){return A.GetTilesWithinWorldXY(O,L,p,N,g,C,this.layer)},hasTileAt:function(O,L){return A.HasTileAt(O,L,this.layer)},hasTileAtWorldXY:function(O,L,p){return A.HasTileAtWorldXY(O,L,p,this.layer)},putTileAt:function(O,L,p,N){return A.PutTileAt(O,L,p,N,this.layer)},putTileAtWorldXY:function(O,L,p,N,g){return A.PutTileAtWorldXY(O,L,p,N,g,this.layer)},putTilesAt:function(O,L,p,N){return A.PutTilesAt(O,L,p,N,this.layer),this},randomize:function(O,L,p,N,g){return A.Randomize(O,L,p,N,g,this.layer),this},removeTileAt:function(O,L,p,N){return A.RemoveTileAt(O,L,p,N,this.layer)},removeTileAtWorldXY:function(O,L,p,N,g){return A.RemoveTileAtWorldXY(O,L,p,N,g,this.layer)},renderDebug:function(O,L){return A.RenderDebug(O,L,this.layer),this},replaceByIndex:function(O,L,p,N,g,C){return A.ReplaceByIndex(O,L,p,N,g,C,this.layer),this},setSkipCull:function(O){return O===void 0&&(O=!0),this.skipCull=O,this},setCullPadding:function(O,L){return O===void 0&&(O=1),L===void 0&&(L=1),this.cullPaddingX=O,this.cullPaddingY=L,this},setCollision:function(O,L,p,N){return A.SetCollision(O,L,p,this.layer,N),this},setCollisionBetween:function(O,L,p,N){return A.SetCollisionBetween(O,L,p,N,this.layer),this},setCollisionByProperty:function(O,L,p){return A.SetCollisionByProperty(O,L,p,this.layer),this},setCollisionByExclusion:function(O,L,p){return A.SetCollisionByExclusion(O,L,p,this.layer),this},setCollisionFromCollisionGroup:function(O,L){return A.SetCollisionFromCollisionGroup(O,L,this.layer),this},setTileIndexCallback:function(O,L,p){return A.SetTileIndexCallback(O,L,p,this.layer),this},setTileLocationCallback:function(O,L,p,N,g,C){return A.SetTileLocationCallback(O,L,p,N,g,C,this.layer),this},shuffle:function(O,L,p,N){return A.Shuffle(O,L,p,N,this.layer),this},swapByIndex:function(O,L,p,N,g,C){return A.SwapByIndex(O,L,p,N,g,C,this.layer),this},tileToWorldX:function(O,L){return this.tilemap.tileToWorldX(O,L,this)},tileToWorldY:function(O,L){return this.tilemap.tileToWorldY(O,L,this)},tileToWorldXY:function(O,L,p,N){return this.tilemap.tileToWorldXY(O,L,p,N,this)},getTileCorners:function(O,L,p){return this.tilemap.getTileCorners(O,L,p,this)},weightedRandomize:function(O,L,p,N,g){return A.WeightedRandomize(L,p,N,g,O,this.layer),this},worldToTileX:function(O,L,p){return this.tilemap.worldToTileX(O,L,p,this)},worldToTileY:function(O,L,p){return this.tilemap.worldToTileY(O,L,p,this)},worldToTileXY:function(O,L,p,N,g){return this.tilemap.worldToTileXY(O,L,p,N,g,this)},destroy:function(O){O===void 0&&(O=!0),this.tilemap&&(this.layer.tilemapLayer===this&&(this.layer.tilemapLayer=void 0),O&&this.tilemap.removeLayer(this),this.tilemap=void 0,this.layer=void 0,this.culledTiles.length=0,this.cullCallback=null,this.gidMap=[],this.tileset=[],c.prototype.destroy.call(this))}});o.exports=S},16153:(o,m,s)=>{/** + */var u=s(83419),T=s(78389),A=s(31401),c=s(95643),d=s(81086),h=s(19218),f=s(26099),S=new u({Extends:c,Mixins:[A.Alpha,A.BlendMode,A.ComputedSize,A.Depth,A.Flip,A.GetBounds,A.Mask,A.Origin,A.Pipeline,A.PostPipeline,A.Transform,A.Visible,A.ScrollFactor,T,h],initialize:v(function(L,p,N,g,C,P){c.call(this,L,"TilemapLayer"),this.isTilemap=!0,this.tilemap=p,this.layerIndex=N,this.layer=p.layers[N],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=d.GetCullTilesFunction(this.layer.orientation),this._renderOrder=0,this.gidMap=[],this.tempVec=new f,this.collisionCategory=1,this.collisionMask=1,this.setTilesets(g),this.setAlpha(this.layer.alpha),this.setPosition(C,P),this.setOrigin(0,0),this.setSize(p.tileWidth*this.layer.width,p.tileHeight*this.layer.height),this.initPipeline(),this.initPostPipeline(!1)},"TilemapLayer"),setTilesets:function(R){var L=[],p=[],N=this.tilemap;Array.isArray(R)||(R=[R]);for(var g=0;g=0&&R<4&&(this._renderOrder=R),this},calculateFacesAt:function(R,L){return d.CalculateFacesAt(R,L,this.layer),this},calculateFacesWithin:function(R,L,p,N){return d.CalculateFacesWithin(R,L,p,N,this.layer),this},createFromTiles:function(R,L,p,N,g){return d.CreateFromTiles(R,L,p,N,g,this.layer)},cull:function(R){return this.cullCallback(this.layer,R,this.culledTiles,this._renderOrder)},copy:function(R,L,p,N,g,C,P){return d.Copy(R,L,p,N,g,C,P,this.layer),this},fill:function(R,L,p,N,g,C){return d.Fill(R,L,p,N,g,C,this.layer),this},filterTiles:function(R,L,p,N,g,C,P){return d.FilterTiles(R,L,p,N,g,C,P,this.layer)},findByIndex:function(R,L,p){return d.FindByIndex(R,L,p,this.layer)},findTile:function(R,L,p,N,g,C,P){return d.FindTile(R,L,p,N,g,C,P,this.layer)},forEachTile:function(R,L,p,N,g,C,P){return d.ForEachTile(R,L,p,N,g,C,P,this.layer),this},setTint:function(R,L,p,N,g,C){R===void 0&&(R=16777215);var P=v(function(M){M.tint=R,M.tintFill=!1},"tintTile");return this.forEachTile(P,this,L,p,N,g,C)},setTintFill:function(R,L,p,N,g,C){R===void 0&&(R=16777215);var P=v(function(M){M.tint=R,M.tintFill=!0},"tintTile");return this.forEachTile(P,this,L,p,N,g,C)},getTileAt:function(R,L,p){return d.GetTileAt(R,L,p,this.layer)},getTileAtWorldXY:function(R,L,p,N){return d.GetTileAtWorldXY(R,L,p,N,this.layer)},getIsoTileAtWorldXY:function(R,L,p,N,g){p===void 0&&(p=!0);var C=this.tempVec;return d.IsometricWorldToTileXY(R,L,!0,C,g,this.layer,p),this.getTileAt(C.x,C.y,N)},getTilesWithin:function(R,L,p,N,g){return d.GetTilesWithin(R,L,p,N,g,this.layer)},getTilesWithinShape:function(R,L,p){return d.GetTilesWithinShape(R,L,p,this.layer)},getTilesWithinWorldXY:function(R,L,p,N,g,C){return d.GetTilesWithinWorldXY(R,L,p,N,g,C,this.layer)},hasTileAt:function(R,L){return d.HasTileAt(R,L,this.layer)},hasTileAtWorldXY:function(R,L,p){return d.HasTileAtWorldXY(R,L,p,this.layer)},putTileAt:function(R,L,p,N){return d.PutTileAt(R,L,p,N,this.layer)},putTileAtWorldXY:function(R,L,p,N,g){return d.PutTileAtWorldXY(R,L,p,N,g,this.layer)},putTilesAt:function(R,L,p,N){return d.PutTilesAt(R,L,p,N,this.layer),this},randomize:function(R,L,p,N,g){return d.Randomize(R,L,p,N,g,this.layer),this},removeTileAt:function(R,L,p,N){return d.RemoveTileAt(R,L,p,N,this.layer)},removeTileAtWorldXY:function(R,L,p,N,g){return d.RemoveTileAtWorldXY(R,L,p,N,g,this.layer)},renderDebug:function(R,L){return d.RenderDebug(R,L,this.layer),this},replaceByIndex:function(R,L,p,N,g,C){return d.ReplaceByIndex(R,L,p,N,g,C,this.layer),this},setSkipCull:function(R){return R===void 0&&(R=!0),this.skipCull=R,this},setCullPadding:function(R,L){return R===void 0&&(R=1),L===void 0&&(L=1),this.cullPaddingX=R,this.cullPaddingY=L,this},setCollision:function(R,L,p,N){return d.SetCollision(R,L,p,this.layer,N),this},setCollisionBetween:function(R,L,p,N){return d.SetCollisionBetween(R,L,p,N,this.layer),this},setCollisionByProperty:function(R,L,p){return d.SetCollisionByProperty(R,L,p,this.layer),this},setCollisionByExclusion:function(R,L,p){return d.SetCollisionByExclusion(R,L,p,this.layer),this},setCollisionFromCollisionGroup:function(R,L){return d.SetCollisionFromCollisionGroup(R,L,this.layer),this},setTileIndexCallback:function(R,L,p){return d.SetTileIndexCallback(R,L,p,this.layer),this},setTileLocationCallback:function(R,L,p,N,g,C){return d.SetTileLocationCallback(R,L,p,N,g,C,this.layer),this},shuffle:function(R,L,p,N){return d.Shuffle(R,L,p,N,this.layer),this},swapByIndex:function(R,L,p,N,g,C){return d.SwapByIndex(R,L,p,N,g,C,this.layer),this},tileToWorldX:function(R,L){return this.tilemap.tileToWorldX(R,L,this)},tileToWorldY:function(R,L){return this.tilemap.tileToWorldY(R,L,this)},tileToWorldXY:function(R,L,p,N){return this.tilemap.tileToWorldXY(R,L,p,N,this)},getTileCorners:function(R,L,p){return this.tilemap.getTileCorners(R,L,p,this)},weightedRandomize:function(R,L,p,N,g){return d.WeightedRandomize(L,p,N,g,R,this.layer),this},worldToTileX:function(R,L,p){return this.tilemap.worldToTileX(R,L,p,this)},worldToTileY:function(R,L,p){return this.tilemap.worldToTileY(R,L,p,this)},worldToTileXY:function(R,L,p,N,g){return this.tilemap.worldToTileXY(R,L,p,N,g,this)},destroy:function(R){R===void 0&&(R=!0),this.tilemap&&(this.layer.tilemapLayer===this&&(this.layer.tilemapLayer=void 0),R&&this.tilemap.removeLayer(this),this.tilemap=void 0,this.layer=void 0,this.culledTiles.length=0,this.cullCallback=null,this.gidMap=[],this.tileset=[],c.prototype.destroy.call(this))}});o.exports=S},16153:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(61340),T=new u,d=new u,c=new u,A=P(function(h,f,S,O){var L=f.cull(S),p=L.length,N=S.alpha*f.alpha;if(!(p===0||N<=0)){var g=T,C=d,v=c;C.applyITRS(f.x,f.y,f.rotation,f.scaleX,f.scaleY),g.copyFrom(S.matrix);var M=h.currentContext,D=f.gidMap;M.save(),O?(g.multiplyWithOffset(O,-S.scrollX*f.scrollFactorX,-S.scrollY*f.scrollFactorY),C.e=f.x,C.f=f.y,g.multiply(C,v),v.copyToContext(M)):(C.e-=S.scrollX*f.scrollFactorX,C.f-=S.scrollY*f.scrollFactorY,C.copyToContext(M)),(!h.antialias||f.scaleX>1||f.scaleY>1)&&(M.imageSmoothingEnabled=!1);for(var G=0;G{/** + */var u=s(61340),T=new u,A=new u,c=new u,d=v(function(h,f,S,R){var L=f.cull(S),p=L.length,N=S.alpha*f.alpha;if(!(p===0||N<=0)){var g=T,C=A,P=c;C.applyITRS(f.x,f.y,f.rotation,f.scaleX,f.scaleY),g.copyFrom(S.matrix);var M=h.currentContext,D=f.gidMap;M.save(),R?(g.multiplyWithOffset(R,-S.scrollX*f.scrollFactorX,-S.scrollY*f.scrollFactorY),C.e=f.x,C.f=f.y,g.multiply(C,P),P.copyToContext(M)):(C.e-=S.scrollX*f.scrollFactorX,C.f-=S.scrollY*f.scrollFactorY,C.copyToContext(M)),(!h.antialias||f.scaleX>1||f.scaleY>1)&&(M.imageSmoothingEnabled=!1);for(var G=0;G{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(29747),T=u,d=u;T=s(99558),d=s(16153),o.exports={renderWebGL:T,renderCanvas:d}},99558:(o,m,s)=>{/** + */var u=s(29747),T=u,A=u;T=s(99558),A=s(16153),o.exports={renderWebGL:T,renderCanvas:A}},99558:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(70554),T=P(function(d,c,A){var h=c.cull(A),f=h.length,S=A.alpha*c.alpha;if(!(f===0||S<=0)){var O=c.gidMap,L=d.pipelines.set(c.pipeline,c),p=u.getTintAppendFloatAlpha,N=c.scrollFactorX,g=c.scrollFactorY,C=c.x,v=c.y,M=c.scaleX,D=c.scaleY;d.pipelines.preBatch(c);for(var G=0;G{/** + */var u=s(70554),T=v(function(A,c,d){var h=c.cull(d),f=h.length,S=d.alpha*c.alpha;if(!(f===0||S<=0)){var R=c.gidMap,L=A.pipelines.set(c.pipeline,c),p=u.getTintAppendFloatAlpha,N=c.scrollFactorX,g=c.scrollFactorY,C=c.x,P=c.y,M=c.scaleX,D=c.scaleY;A.pipelines.preBatch(c);for(var G=0;G{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(26099),d=new u({initialize:P(function(A,h,f,S,O,L,p,N,g){(f===void 0||f<=0)&&(f=32),(S===void 0||S<=0)&&(S=32),O===void 0&&(O=0),L===void 0&&(L=0),p===void 0&&(p={}),N===void 0&&(N={}),this.name=A,this.firstgid=h,this.tileWidth=f,this.tileHeight=S,this.tileMargin=O,this.tileSpacing=L,this.tileProperties=p,this.tileData=N,this.tileOffset=new T,g!==void 0&&this.tileOffset.set(g.x,g.y),this.image=null,this.glTexture=null,this.rows=0,this.columns=0,this.total=0,this.texCoordinates=[]},"Tileset"),getTileProperties:function(c){return this.containsTileIndex(c)?this.tileProperties[c-this.firstgid]:null},getTileData:function(c){return this.containsTileIndex(c)?this.tileData[c-this.firstgid]:null},getTileCollisionGroup:function(c){var A=this.getTileData(c);return A&&A.objectgroup?A.objectgroup:null},containsTileIndex:function(c){return c>=this.firstgid&&ch.width||A.height>h.height?this.updateTileData(A.width,A.height):this.updateTileData(h.width,h.height,h.x,h.y),this},setTileSize:function(c,A){return c!==void 0&&(this.tileWidth=c),A!==void 0&&(this.tileHeight=A),this.image&&this.updateTileData(this.image.source[0].width,this.image.source[0].height),this},setSpacing:function(c,A){return c!==void 0&&(this.tileMargin=c),A!==void 0&&(this.tileSpacing=A),this.image&&this.updateTileData(this.image.source[0].width,this.image.source[0].height),this},updateTileData:function(c,A,h,f){h===void 0&&(h=0),f===void 0&&(f=0);var S=(A-this.tileMargin*2+this.tileSpacing)/(this.tileHeight+this.tileSpacing),O=(c-this.tileMargin*2+this.tileSpacing)/(this.tileWidth+this.tileSpacing);(S%1!==0||O%1!==0)&&console.warn("Image tile area not tile size multiple in: "+this.name),S=Math.floor(S),O=Math.floor(O),this.rows=S,this.columns=O,this.total=S*O,this.texCoordinates.length=0;for(var L=this.tileMargin+h,p=this.tileMargin+f,N=0;N{/** + */var u=s(83419),T=s(26099),A=new u({initialize:v(function(d,h,f,S,R,L,p,N,g){(f===void 0||f<=0)&&(f=32),(S===void 0||S<=0)&&(S=32),R===void 0&&(R=0),L===void 0&&(L=0),p===void 0&&(p={}),N===void 0&&(N={}),this.name=d,this.firstgid=h,this.tileWidth=f,this.tileHeight=S,this.tileMargin=R,this.tileSpacing=L,this.tileProperties=p,this.tileData=N,this.tileOffset=new T,g!==void 0&&this.tileOffset.set(g.x,g.y),this.image=null,this.glTexture=null,this.rows=0,this.columns=0,this.total=0,this.texCoordinates=[]},"Tileset"),getTileProperties:function(c){return this.containsTileIndex(c)?this.tileProperties[c-this.firstgid]:null},getTileData:function(c){return this.containsTileIndex(c)?this.tileData[c-this.firstgid]:null},getTileCollisionGroup:function(c){var d=this.getTileData(c);return d&&d.objectgroup?d.objectgroup:null},containsTileIndex:function(c){return c>=this.firstgid&&ch.width||d.height>h.height?this.updateTileData(d.width,d.height):this.updateTileData(h.width,h.height,h.x,h.y),this},setTileSize:function(c,d){return c!==void 0&&(this.tileWidth=c),d!==void 0&&(this.tileHeight=d),this.image&&this.updateTileData(this.image.source[0].width,this.image.source[0].height),this},setSpacing:function(c,d){return c!==void 0&&(this.tileMargin=c),d!==void 0&&(this.tileSpacing=d),this.image&&this.updateTileData(this.image.source[0].width,this.image.source[0].height),this},updateTileData:function(c,d,h,f){h===void 0&&(h=0),f===void 0&&(f=0);var S=(d-this.tileMargin*2+this.tileSpacing)/(this.tileHeight+this.tileSpacing),R=(c-this.tileMargin*2+this.tileSpacing)/(this.tileWidth+this.tileSpacing);(S%1!==0||R%1!==0)&&console.warn("Image tile area not tile size multiple in: "+this.name),S=Math.floor(S),R=Math.floor(R),this.rows=S,this.columns=R,this.total=S*R,this.texCoordinates.length=0;for(var L=this.tileMargin+h,p=this.tileMargin+f,N=0;N{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(7423),T=P(function(d,c,A){var h=u(d,c,!0,A),f=u(d,c-1,!0,A),S=u(d,c+1,!0,A),O=u(d-1,c,!0,A),L=u(d+1,c,!0,A),p=h&&h.collides;return p&&(h.faceTop=!0,h.faceBottom=!0,h.faceLeft=!0,h.faceRight=!0),f&&f.collides&&(p&&(h.faceTop=!1),f.faceBottom=!p),S&&S.collides&&(p&&(h.faceBottom=!1),S.faceTop=!p),O&&O.collides&&(p&&(h.faceLeft=!1),O.faceRight=!p),L&&L.collides&&(p&&(h.faceRight=!1),L.faceLeft=!p),h&&!h.collides&&h.resetFaces(),h},"CalculateFacesAt");o.exports=T},42573:(o,m,s)=>{/** + */var u=s(7423),T=v(function(A,c,d){var h=u(A,c,!0,d),f=u(A,c-1,!0,d),S=u(A,c+1,!0,d),R=u(A-1,c,!0,d),L=u(A+1,c,!0,d),p=h&&h.collides;return p&&(h.faceTop=!0,h.faceBottom=!0,h.faceLeft=!0,h.faceRight=!0),f&&f.collides&&(p&&(h.faceTop=!1),f.faceBottom=!p),S&&S.collides&&(p&&(h.faceBottom=!1),S.faceTop=!p),R&&R.collides&&(p&&(h.faceLeft=!1),R.faceRight=!p),L&&L.collides&&(p&&(h.faceRight=!1),L.faceLeft=!p),h&&!h.collides&&h.resetFaces(),h},"CalculateFacesAt");o.exports=T},42573:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(7423),T=s(7386),d=P(function(c,A,h,f,S){for(var O=null,L=null,p=null,N=null,g=T(c,A,h,f,null,S),C=0;C{/** + */var u=s(7423),T=s(7386),A=v(function(c,d,h,f,S){for(var R=null,L=null,p=null,N=null,g=T(c,d,h,f,null,S),C=0;C{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(26099),T=new u,d=P(function(c,A,h,f){var S=h.tilemapLayer,O=S.cullPaddingX,L=S.cullPaddingY,p=S.tilemap.tileToWorldXY(c,A,T,f,S);return p.x>f.worldView.x+S.scaleX*h.tileWidth*(-O-.5)&&p.xf.worldView.y+S.scaleY*h.tileHeight*(-L-1)&&p.y{/** + */var u=s(26099),T=new u,A=v(function(c,d,h,f){var S=h.tilemapLayer,R=S.cullPaddingX,L=S.cullPaddingY,p=S.tilemap.tileToWorldXY(c,d,T,f,S);return p.x>f.worldView.x+S.scaleX*h.tileWidth*(-R-.5)&&p.xf.worldView.y+S.scaleY*h.tileHeight*(-L-1)&&p.y{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(42573),T=s(7386),d=s(62991),c=s(23029),A=P(function(h,f,S,O,L,p,N,g){N===void 0&&(N=!0);var C=T(h,f,S,O,null,g),v=[];C.forEach(function(w){var b=new c(w.layer,w.index,w.x,w.y,w.width,w.height,w.baseWidth,w.baseHeight);b.copy(w),v.push(b)});for(var M=L-h,D=p-f,G=0;G{/** + */var u=s(42573),T=s(7386),A=s(62991),c=s(23029),d=v(function(h,f,S,R,L,p,N,g){N===void 0&&(N=!0);var C=T(h,f,S,R,null,g),P=[];C.forEach(function(w){var _=new c(w.layer,w.index,w.x,w.y,w.width,w.height,w.baseWidth,w.baseHeight);_.copy(w),P.push(_)});for(var M=L-h,D=p-f,G=0;G{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(62644),T=s(7386),d=s(27987),c=P(function(A,h,f,S,O,L){f||(f={}),Array.isArray(A)||(A=[A]);var p=L.tilemapLayer;S||(S=p.scene),O||(O=S.cameras.main);var N=L.width,g=L.height,C=T(0,0,N,g,null,L),v=[],M,D=P(function(_,w,b){for(var F=0;F{/** + */var u=s(62644),T=s(7386),A=s(27987),c=v(function(d,h,f,S,R,L){f||(f={}),Array.isArray(d)||(d=[d]);var p=L.tilemapLayer;S||(S=p.scene),R||(R=S.cameras.main);var N=L.width,g=L.height,C=T(0,0,N,g,null,L),P=[],M,D=v(function(b,w,_){for(var F=0;F<_.length;F++){var x=_[F];b.hasOwnProperty(x)||(b[x]=w[x])}},"mergeExtras");for(M=0;M{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(87841),T=s(63448),d=s(56583),c=new u,A=P(function(h,f){var S=h.tilemapLayer.tilemap,O=h.tilemapLayer,L=Math.floor(S.tileWidth*O.scaleX),p=Math.floor(S.tileHeight*O.scaleY),N=d(f.worldView.x-O.x,L,0,!0)-O.cullPaddingX,g=T(f.worldView.right-O.x,L,0,!0)+O.cullPaddingX,C=d(f.worldView.y-O.y,p,0,!0)-O.cullPaddingY,v=T(f.worldView.bottom-O.y,p,0,!0)+O.cullPaddingY;return c.setTo(N,C,g-N,v-C)},"CullBounds");o.exports=A},30003:(o,m,s)=>{/** + */var u=s(87841),T=s(63448),A=s(56583),c=new u,d=v(function(h,f){var S=h.tilemapLayer.tilemap,R=h.tilemapLayer,L=Math.floor(S.tileWidth*R.scaleX),p=Math.floor(S.tileHeight*R.scaleY),N=A(f.worldView.x-R.x,L,0,!0)-R.cullPaddingX,g=T(f.worldView.right-R.x,L,0,!0)+R.cullPaddingX,C=A(f.worldView.y-R.y,p,0,!0)-R.cullPaddingY,P=T(f.worldView.bottom-R.y,p,0,!0)+R.cullPaddingY;return c.setTo(N,C,g-N,P-C)},"CullBounds");o.exports=d},30003:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(19545),T=s(32483),d=P(function(c,A,h,f){h===void 0&&(h=[]),f===void 0&&(f=0),h.length=0;var S=c.tilemapLayer,O=u(c,A);return(S.skipCull||S.scrollFactorX!==1||S.scrollFactorY!==1)&&(O.left=0,O.right=c.width,O.top=0,O.bottom=c.height),T(c,O,f,h),h},"CullTiles");o.exports=d},35137:(o,m,s)=>{/** + */var u=s(19545),T=s(32483),A=v(function(c,d,h,f){h===void 0&&(h=[]),f===void 0&&(f=0),h.length=0;var S=c.tilemapLayer,R=u(c,d);return(S.skipCull||S.scrollFactorX!==1||S.scrollFactorY!==1)&&(R.left=0,R.right=c.width,R.top=0,R.bottom=c.height),T(c,R,f,h),h},"CullTiles");o.exports=A},35137:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(7386),T=s(42573),d=s(20576),c=P(function(A,h,f,S,O,L,p){for(var N=p.collideIndexes.indexOf(A)!==-1,g=u(h,f,S,O,null,p),C=0;C{/** + */var u=s(7386),T=s(42573),A=s(20576),c=v(function(d,h,f,S,R,L,p){for(var N=p.collideIndexes.indexOf(d)!==-1,g=u(h,f,S,R,null,p),C=0;C{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(7386),T=P(function(d,c,A,h,f,S,O,L){var p=u(A,h,f,S,O,L);return p.filter(d,c)},"FilterTiles");o.exports=T},52692:o=>{/** + */var u=s(7386),T=v(function(A,c,d,h,f,S,R,L){var p=u(d,h,f,S,R,L);return p.filter(A,c)},"FilterTiles");o.exports=T},52692:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){u===void 0&&(u=0),T===void 0&&(T=!1);var c=0,A,h,f;if(T){for(h=d.height-1;h>=0;h--)for(A=d.width-1;A>=0;A--)if(f=d.data[h][A],f&&f.index===s){if(c===u)return f;c+=1}}else for(h=0;h{/** + */var O=v(function(s,u,T,A){u===void 0&&(u=0),T===void 0&&(T=!1);var c=0,d,h,f;if(T){for(h=A.height-1;h>=0;h--)for(d=A.width-1;d>=0;d--)if(f=A.data[h][d],f&&f.index===s){if(c===u)return f;c+=1}}else for(h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(7386),T=P(function(d,c,A,h,f,S,O,L){var p=u(A,h,f,S,O,L);return p.find(d,c)||null},"FindTile");o.exports=T},97560:(o,m,s)=>{/** + */var u=s(7386),T=v(function(A,c,d,h,f,S,R,L){var p=u(d,h,f,S,R,L);return p.find(A,c)||null},"FindTile");o.exports=T},97560:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(7386),T=P(function(d,c,A,h,f,S,O,L){var p=u(A,h,f,S,O,L);p.forEach(d,c)},"ForEachTile");o.exports=T},43305:(o,m,s)=>{/** + */var u=s(7386),T=v(function(A,c,d,h,f,S,R,L){var p=u(d,h,f,S,R,L);p.forEach(A,c)},"ForEachTile");o.exports=T},43305:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91907),T=s(30003),d=s(9474),c=s(14018),A=s(29747),h=s(54503),f=P(function(S){return S===u.ORTHOGONAL?T:S===u.HEXAGONAL?d:S===u.STAGGERED?h:S===u.ISOMETRIC?c:A},"GetCullTilesFunction");o.exports=f},7423:(o,m,s)=>{/** + */var u=s(91907),T=s(30003),A=s(9474),c=s(14018),d=s(29747),h=s(54503),f=v(function(S){return S===u.ORTHOGONAL?T:S===u.HEXAGONAL?A:S===u.STAGGERED?h:S===u.ISOMETRIC?c:d},"GetCullTilesFunction");o.exports=f},7423:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(62991),T=P(function(d,c,A,h){if(A===void 0&&(A=!1),u(d,c,h)){var f=h.data[c][d]||null;return f?f.index===-1?A?f:null:f:null}else return null},"GetTileAt");o.exports=T},60540:(o,m,s)=>{/** + */var u=s(62991),T=v(function(A,c,d,h){if(d===void 0&&(d=!1),u(A,c,h)){var f=h.data[c][A]||null;return f?f.index===-1?d?f:null:f:null}else return null},"GetTileAt");o.exports=T},60540:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(7423),T=s(26099),d=new T,c=P(function(A,h,f,S,O){return O.tilemapLayer.worldToTileXY(A,h,!0,d,S),u(d.x,d.y,f,O)},"GetTileAtWorldXY");o.exports=c},55826:(o,m,s)=>{/** + */var u=s(7423),T=s(26099),A=new T,c=v(function(d,h,f,S,R){return R.tilemapLayer.worldToTileXY(d,h,!0,A,S),u(A.x,A.y,f,R)},"GetTileAtWorldXY");o.exports=c},55826:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(26099),T=P(function(d,c,A,h){var f=h.baseTileWidth,S=h.baseTileHeight,O=h.tilemapLayer,L=0,p=0;O&&(A||(A=O.scene.cameras.main),L=O.x+A.scrollX*(1-O.scrollFactorX),p=O.y+A.scrollY*(1-O.scrollFactorY),f*=O.scaleX,S*=O.scaleY);var N=L+d*f,g=p+c*S;return[new u(N,g),new u(N+f,g),new u(N+f,g+S),new u(N,g+S)]},"GetTileCorners");o.exports=T},11758:(o,m,s)=>{/** + */var u=s(26099),T=v(function(A,c,d,h){var f=h.baseTileWidth,S=h.baseTileHeight,R=h.tilemapLayer,L=0,p=0;R&&(d||(d=R.scene.cameras.main),L=R.x+d.scrollX*(1-R.scrollFactorX),p=R.y+d.scrollY*(1-R.scrollFactorY),f*=R.scaleX,S*=R.scaleY);var N=L+A*f,g=p+c*S;return[new u(N,g),new u(N+f,g),new u(N+f,g+S),new u(N,g+S)]},"GetTileCorners");o.exports=T},11758:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91907),T=s(27229),d=s(29747),c=s(55826),A=P(function(h){return h===u.ORTHOGONAL?c:h===u.ISOMETRIC?d:h===u.HEXAGONAL?T:(h===u.STAGGERED,d)},"GetTileCornersFunction");o.exports=A},39167:(o,m,s)=>{/** + */var u=s(91907),T=s(27229),A=s(29747),c=s(55826),d=v(function(h){return h===u.ORTHOGONAL?c:h===u.ISOMETRIC?A:h===u.HEXAGONAL?T:(h===u.STAGGERED,A)},"GetTileCornersFunction");o.exports=d},39167:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91907),T=s(29747),d=s(97281),c=P(function(A){return A===u.ORTHOGONAL?d:T},"GetTileToWorldXFunction");o.exports=c},62e3:(o,m,s)=>{/** + */var u=s(91907),T=s(29747),A=s(97281),c=v(function(d){return d===u.ORTHOGONAL?A:T},"GetTileToWorldXFunction");o.exports=c},62e3:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91907),T=s(19951),d=s(14127),c=s(29747),A=s(97202),h=s(70326),f=P(function(S){return S===u.ORTHOGONAL?h:S===u.ISOMETRIC?d:S===u.HEXAGONAL?T:S===u.STAGGERED?A:c},"GetTileToWorldXYFunction");o.exports=f},5984:(o,m,s)=>{/** + */var u=s(91907),T=s(19951),A=s(14127),c=s(29747),d=s(97202),h=s(70326),f=v(function(S){return S===u.ORTHOGONAL?h:S===u.ISOMETRIC?A:S===u.HEXAGONAL?T:S===u.STAGGERED?d:c},"GetTileToWorldXYFunction");o.exports=f},5984:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91907),T=s(29747),d=s(28054),c=s(29650),A=P(function(h){return h===u.ORTHOGONAL?c:h===u.STAGGERED?d:T},"GetTileToWorldYFunction");o.exports=A},7386:(o,m,s)=>{/** + */var u=s(91907),T=s(29747),A=s(28054),c=s(29650),d=v(function(h){return h===u.ORTHOGONAL?c:h===u.STAGGERED?A:T},"GetTileToWorldYFunction");o.exports=d},7386:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(95540),T=P(function(d,c,A,h,f,S){d===void 0&&(d=0),c===void 0&&(c=0),A===void 0&&(A=S.width),h===void 0&&(h=S.height),f||(f={});var O=u(f,"isNotEmpty",!1),L=u(f,"isColliding",!1),p=u(f,"hasInterestingFace",!1);d<0&&(A+=d,d=0),c<0&&(h+=c,c=0),d+A>S.width&&(A=Math.max(S.width-d,0)),c+h>S.height&&(h=Math.max(S.height-c,0));for(var N=[],g=c;g{/** + */var u=s(95540),T=v(function(A,c,d,h,f,S){A===void 0&&(A=0),c===void 0&&(c=0),d===void 0&&(d=S.width),h===void 0&&(h=S.height),f||(f={});var R=u(f,"isNotEmpty",!1),L=u(f,"isColliding",!1),p=u(f,"hasInterestingFace",!1);A<0&&(d+=A,A=0),c<0&&(h+=c,c=0),A+d>S.width&&(d=Math.max(S.width-A,0)),c+h>S.height&&(h=Math.max(S.height-c,0));for(var N=[],g=c;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(55738),T=s(7386),d=s(91865),c=s(29747),A=s(26099),h=P(function(p,N){return d.RectangleToTriangle(N,p)},"TriangleToRectangle"),f=new A,S=new A,O=new A,L=P(function(p,N,g,C){if(p===void 0)return[];var v=c;p instanceof u.Circle?v=d.CircleToRectangle:p instanceof u.Rectangle?v=d.RectangleToRectangle:p instanceof u.Triangle?v=h:p instanceof u.Line&&(v=d.LineToRectangle),C.tilemapLayer.worldToTileXY(p.left,p.top,!0,S,g);var M=S.x,D=S.y;C.tilemapLayer.worldToTileXY(p.right,p.bottom,!1,O,g);var G=Math.ceil(O.x),H=Math.ceil(O.y),B=Math.max(G-M,1),_=Math.max(H-D,1),w=T(M,D,B,_,N,C),b=C.tileWidth,F=C.tileHeight;C.tilemapLayer&&(b*=C.tilemapLayer.scaleX,F*=C.tilemapLayer.scaleY);for(var k=[],V=new u.Rectangle(0,0,b,F),Z=0;Z{/** + */var u=s(55738),T=s(7386),A=s(91865),c=s(29747),d=s(26099),h=v(function(p,N){return A.RectangleToTriangle(N,p)},"TriangleToRectangle"),f=new d,S=new d,R=new d,L=v(function(p,N,g,C){if(p===void 0)return[];var P=c;p instanceof u.Circle?P=A.CircleToRectangle:p instanceof u.Rectangle?P=A.RectangleToRectangle:p instanceof u.Triangle?P=h:p instanceof u.Line&&(P=A.LineToRectangle),C.tilemapLayer.worldToTileXY(p.left,p.top,!0,S,g);var M=S.x,D=S.y;C.tilemapLayer.worldToTileXY(p.right,p.bottom,!1,R,g);var G=Math.ceil(R.x),H=Math.ceil(R.y),B=Math.max(G-M,1),b=Math.max(H-D,1),w=T(M,D,B,b,N,C),_=C.tileWidth,F=C.tileHeight;C.tilemapLayer&&(_*=C.tilemapLayer.scaleX,F*=C.tilemapLayer.scaleY);for(var x=[],V=new u.Rectangle(0,0,_,F),Z=0;Z{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(7386),T=s(26099),d=new T,c=new T,A=P(function(h,f,S,O,L,p,N){var g=N.tilemapLayer.tilemap._convert.WorldToTileXY;g(h,f,!0,d,p,N);var C=d.x,v=d.y;g(h+S,f+O,!1,c,p,N);var M=Math.ceil(c.x),D=Math.ceil(c.y);return u(C,v,M-C,D-v,L,N)},"GetTilesWithinWorldXY");o.exports=A},96113:(o,m,s)=>{/** + */var u=s(7386),T=s(26099),A=new T,c=new T,d=v(function(h,f,S,R,L,p,N){var g=N.tilemapLayer.tilemap._convert.WorldToTileXY;g(h,f,!0,A,p,N);var C=A.x,P=A.y;g(h+S,f+R,!1,c,p,N);var M=Math.ceil(c.x),D=Math.ceil(c.y);return u(C,P,M-C,D-P,L,N)},"GetTilesWithinWorldXY");o.exports=d},96113:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91907),T=s(20242),d=s(10095),c=P(function(A){return A===u.ORTHOGONAL?d:T},"GetWorldToTileXFunction");o.exports=c},16926:(o,m,s)=>{/** + */var u=s(91907),T=s(20242),A=s(10095),c=v(function(d){return d===u.ORTHOGONAL?A:T},"GetWorldToTileXFunction");o.exports=c},16926:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91907),T=s(86625),d=s(96897),c=s(29747),A=s(15108),h=s(85896),f=P(function(S){return S===u.ORTHOGONAL?h:S===u.ISOMETRIC?d:S===u.HEXAGONAL?T:S===u.STAGGERED?A:c},"GetWorldToTileXYFunction");o.exports=f},55762:(o,m,s)=>{/** + */var u=s(91907),T=s(86625),A=s(96897),c=s(29747),d=s(15108),h=s(85896),f=v(function(S){return S===u.ORTHOGONAL?h:S===u.ISOMETRIC?A:S===u.HEXAGONAL?T:S===u.STAGGERED?d:c},"GetWorldToTileXYFunction");o.exports=f},55762:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91907),T=s(20242),d=s(51900),c=s(63288),A=P(function(h){return h===u.ORTHOGONAL?c:h===u.STAGGERED?d:T},"GetWorldToTileYFunction");o.exports=A},45091:(o,m,s)=>{/** + */var u=s(91907),T=s(20242),A=s(51900),c=s(63288),d=v(function(h){return h===u.ORTHOGONAL?c:h===u.STAGGERED?A:T},"GetWorldToTileYFunction");o.exports=d},45091:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(62991),T=P(function(d,c,A){if(u(d,c,A)){var h=A.data[c][d];return h!==null&&h.index>-1}else return!1},"HasTileAt");o.exports=T},24152:(o,m,s)=>{/** + */var u=s(62991),T=v(function(A,c,d){if(u(A,c,d)){var h=d.data[c][A];return h!==null&&h.index>-1}else return!1},"HasTileAt");o.exports=T},24152:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(45091),T=s(26099),d=new T,c=P(function(A,h,f,S){S.tilemapLayer.worldToTileXY(A,h,!0,d,f);var O=d.x,L=d.y;return u(O,L,S)},"HasTileAtWorldXY");o.exports=c},90454:(o,m,s)=>{/** + */var u=s(45091),T=s(26099),A=new T,c=v(function(d,h,f,S){S.tilemapLayer.worldToTileXY(d,h,!0,A,f);var R=A.x,L=A.y;return u(R,L,S)},"HasTileAtWorldXY");o.exports=c},90454:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(63448),T=s(56583),d=P(function(c,A){var h=c.tilemapLayer.tilemap,f=c.tilemapLayer,S=Math.floor(h.tileWidth*f.scaleX),O=Math.floor(h.tileHeight*f.scaleY),L=c.hexSideLength,p,N,g,C;if(c.staggerAxis==="y"){var v=(O-L)/2+L;p=T(A.worldView.x-f.x,S,0,!0)-f.cullPaddingX,N=u(A.worldView.right-f.x,S,0,!0)+f.cullPaddingX,g=T(A.worldView.y-f.y,v,0,!0)-f.cullPaddingY,C=u(A.worldView.bottom-f.y,v,0,!0)+f.cullPaddingY}else{var M=(S-L)/2+L;p=T(A.worldView.x-f.x,M,0,!0)-f.cullPaddingX,N=u(A.worldView.right-f.x,M,0,!0)+f.cullPaddingX,g=T(A.worldView.y-f.y,O,0,!0)-f.cullPaddingY,C=u(A.worldView.bottom-f.y,O,0,!0)+f.cullPaddingY}return{left:p,right:N,top:g,bottom:C}},"HexagonalCullBounds");o.exports=d},9474:(o,m,s)=>{/** + */var u=s(63448),T=s(56583),A=v(function(c,d){var h=c.tilemapLayer.tilemap,f=c.tilemapLayer,S=Math.floor(h.tileWidth*f.scaleX),R=Math.floor(h.tileHeight*f.scaleY),L=c.hexSideLength,p,N,g,C;if(c.staggerAxis==="y"){var P=(R-L)/2+L;p=T(d.worldView.x-f.x,S,0,!0)-f.cullPaddingX,N=u(d.worldView.right-f.x,S,0,!0)+f.cullPaddingX,g=T(d.worldView.y-f.y,P,0,!0)-f.cullPaddingY,C=u(d.worldView.bottom-f.y,P,0,!0)+f.cullPaddingY}else{var M=(S-L)/2+L;p=T(d.worldView.x-f.x,M,0,!0)-f.cullPaddingX,N=u(d.worldView.right-f.x,M,0,!0)+f.cullPaddingX,g=T(d.worldView.y-f.y,R,0,!0)-f.cullPaddingY,C=u(d.worldView.bottom-f.y,R,0,!0)+f.cullPaddingY}return{left:p,right:N,top:g,bottom:C}},"HexagonalCullBounds");o.exports=A},9474:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(90454),T=s(32483),d=P(function(c,A,h,f){h===void 0&&(h=[]),f===void 0&&(f=0),h.length=0;var S=c.tilemapLayer,O=u(c,A);return S.skipCull&&S.scrollFactorX===1&&S.scrollFactorY===1&&(O.left=0,O.right=c.width,O.top=0,O.bottom=c.height),T(c,O,f,h),h},"HexagonalCullTiles");o.exports=d},27229:(o,m,s)=>{/** + */var u=s(90454),T=s(32483),A=v(function(c,d,h,f){h===void 0&&(h=[]),f===void 0&&(f=0),h.length=0;var S=c.tilemapLayer,R=u(c,d);return S.skipCull&&S.scrollFactorX===1&&S.scrollFactorY===1&&(R.left=0,R.right=c.width,R.top=0,R.bottom=c.height),T(c,R,f,h),h},"HexagonalCullTiles");o.exports=A},27229:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(19951),T=s(26099),d=new T,c=P(function(A,h,f,S){var O=S.baseTileWidth,L=S.baseTileHeight,p=S.tilemapLayer;p&&(O*=p.scaleX,L*=p.scaleY);var N=u(A,h,d,f,S),g=[],C=.5773502691896257,v,M;S.staggerAxis==="y"?(v=C*O,M=L/2):(v=O/2,M=C*L);for(var D=0;D<6;D++){var G=2*Math.PI*(.5-D)/6;g.push(new T(N.x+v*Math.cos(G),N.y+M*Math.sin(G)))}return g},"HexagonalGetTileCorners");o.exports=c},19951:(o,m,s)=>{/** + */var u=s(19951),T=s(26099),A=new T,c=v(function(d,h,f,S){var R=S.baseTileWidth,L=S.baseTileHeight,p=S.tilemapLayer;p&&(R*=p.scaleX,L*=p.scaleY);var N=u(d,h,A,f,S),g=[],C=.5773502691896257,P,M;S.staggerAxis==="y"?(P=C*R,M=L/2):(P=R/2,M=C*L);for(var D=0;D<6;D++){var G=2*Math.PI*(.5-D)/6;g.push(new T(N.x+P*Math.cos(G),N.y+M*Math.sin(G)))}return g},"HexagonalGetTileCorners");o.exports=c},19951:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(26099),T=P(function(d,c,A,h,f){A||(A=new u);var S=f.baseTileWidth,O=f.baseTileHeight,L=f.tilemapLayer,p=0,N=0;L&&(h||(h=L.scene.cameras.main),p=L.x+h.scrollX*(1-L.scrollFactorX),N=L.y+h.scrollY*(1-L.scrollFactorY),S*=L.scaleX,O*=L.scaleY);var g=S/2,C=O/2,v,M;return f.staggerAxis==="y"?(v=p+S*d+S,M=N+1.5*c*C+C,c%2===0&&(this.staggerIndex==="odd"?v-=g:v+=g)):this.staggerAxis==="x"&&this.staggerIndex==="odd"&&(v=p+1.5*d*g+g,M=N+O*d+O,d%2===0&&(this.staggerIndex==="odd"?M-=C:M+=C)),A.set(v,M)},"HexagonalTileToWorldXY");o.exports=T},86625:(o,m,s)=>{/** + */var u=s(26099),T=v(function(A,c,d,h,f){d||(d=new u);var S=f.baseTileWidth,R=f.baseTileHeight,L=f.tilemapLayer,p=0,N=0;L&&(h||(h=L.scene.cameras.main),p=L.x+h.scrollX*(1-L.scrollFactorX),N=L.y+h.scrollY*(1-L.scrollFactorY),S*=L.scaleX,R*=L.scaleY);var g=S/2,C=R/2,P,M;return f.staggerAxis==="y"?(P=p+S*A+S,M=N+1.5*c*C+C,c%2===0&&(this.staggerIndex==="odd"?P-=g:P+=g)):this.staggerAxis==="x"&&this.staggerIndex==="odd"&&(P=p+1.5*A*g+g,M=N+R*A+R,A%2===0&&(this.staggerIndex==="odd"?M-=C:M+=C)),d.set(P,M)},"HexagonalTileToWorldXY");o.exports=T},86625:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(26099),T=P(function(d,c,A,h,f,S){h||(h=new u);var O=S.baseTileWidth,L=S.baseTileHeight,p=S.tilemapLayer;p&&(f||(f=p.scene.cameras.main),d=d-(p.x+f.scrollX*(1-p.scrollFactorX)),c=c-(p.y+f.scrollY*(1-p.scrollFactorY)),O*=p.scaleX,L*=p.scaleY);var N=.5773502691896257,g=-.3333333333333333,C=0,v=.6666666666666666,M=O/2,D=L/2,G,H,B,_,w;S.staggerAxis==="y"?(G=(d-M)/(N*O),H=(c-D)/D,B=N*G+g*H,_=C*G+v*H):(G=(d-M)/M,H=(c-D)/(N*L),B=g*G+N*H,_=v*G+C*H),w=-B-_;var b=Math.round(B),F=Math.round(_),k=Math.round(w),V=Math.abs(b-B),Z=Math.abs(F-_),$=Math.abs(k-w);V>Z&&V>$?b=-F-k:Z>$&&(F=-b-k);var Q,te=F;return S.staggerIndex==="odd"?Q=te%2===0?F/2+b:F/2+b-.5:Q=te%2===0?F/2+b:F/2+b+.5,h.set(Q,te)},"HexagonalWorldToTileXY");o.exports=T},62991:o=>{/** + */var u=s(26099),T=v(function(A,c,d,h,f,S){h||(h=new u);var R=S.baseTileWidth,L=S.baseTileHeight,p=S.tilemapLayer;p&&(f||(f=p.scene.cameras.main),A=A-(p.x+f.scrollX*(1-p.scrollFactorX)),c=c-(p.y+f.scrollY*(1-p.scrollFactorY)),R*=p.scaleX,L*=p.scaleY);var N=.5773502691896257,g=-.3333333333333333,C=0,P=.6666666666666666,M=R/2,D=L/2,G,H,B,b,w;S.staggerAxis==="y"?(G=(A-M)/(N*R),H=(c-D)/D,B=N*G+g*H,b=C*G+P*H):(G=(A-M)/M,H=(c-D)/(N*L),B=g*G+N*H,b=P*G+C*H),w=-B-b;var _=Math.round(B),F=Math.round(b),x=Math.round(w),V=Math.abs(_-B),Z=Math.abs(F-b),$=Math.abs(x-w);V>Z&&V>$?_=-F-x:Z>$&&(F=-_-x);var Q,te=F;return S.staggerIndex==="odd"?Q=te%2===0?F/2+_:F/2+_-.5:Q=te%2===0?F/2+_:F/2+_+.5,h.set(Q,te)},"HexagonalWorldToTileXY");o.exports=T},62991:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){return s>=0&&s=0&&u{/** + */var O=v(function(s,u,T){return s>=0&&s=0&&u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(33528),T=P(function(d,c,A,h){A===void 0&&(A=[]),h===void 0&&(h=0),A.length=0;var f=d.tilemapLayer,S=d.data,O=d.width,L=d.height,p=f.skipCull,N=0,g=O,C=0,v=L,M,D,G;if(h===0)for(D=C;D=N;M--)G=S[D][M],!(!G||G.index===-1||!G.visible||G.alpha===0)&&(!p&&!u(M,D,d,c)||A.push(G));else if(h===2)for(D=v;D>=C;D--)for(M=N;M=C;D--)for(M=g;M>=N;M--)G=S[D][M],!(!G||G.index===-1||!G.visible||G.alpha===0)&&(!p&&!u(M,D,d,c)||A.push(G));return f.tilesDrawn=A.length,f.tilesTotal=O*L,A},"IsometricCullTiles");o.exports=T},14127:(o,m,s)=>{/** + */var u=s(33528),T=v(function(A,c,d,h){d===void 0&&(d=[]),h===void 0&&(h=0),d.length=0;var f=A.tilemapLayer,S=A.data,R=A.width,L=A.height,p=f.skipCull,N=0,g=R,C=0,P=L,M,D,G;if(h===0)for(D=C;D=N;M--)G=S[D][M],!(!G||G.index===-1||!G.visible||G.alpha===0)&&(!p&&!u(M,D,A,c)||d.push(G));else if(h===2)for(D=P;D>=C;D--)for(M=N;M=C;D--)for(M=g;M>=N;M--)G=S[D][M],!(!G||G.index===-1||!G.visible||G.alpha===0)&&(!p&&!u(M,D,A,c)||d.push(G));return f.tilesDrawn=d.length,f.tilesTotal=R*L,d},"IsometricCullTiles");o.exports=T},14127:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(26099),T=P(function(d,c,A,h,f){A||(A=new u);var S=f.baseTileWidth,O=f.baseTileHeight,L=f.tilemapLayer,p=0,N=0;L&&(h||(h=L.scene.cameras.main),p=L.x+h.scrollX*(1-L.scrollFactorX),S*=L.scaleX,N=L.y+h.scrollY*(1-L.scrollFactorY),O*=L.scaleY);var g=p+(d-c)*(S/2),C=N+(d+c)*(O/2);return A.set(g,C)},"IsometricTileToWorldXY");o.exports=T},96897:(o,m,s)=>{/** + */var u=s(26099),T=v(function(A,c,d,h,f){d||(d=new u);var S=f.baseTileWidth,R=f.baseTileHeight,L=f.tilemapLayer,p=0,N=0;L&&(h||(h=L.scene.cameras.main),p=L.x+h.scrollX*(1-L.scrollFactorX),S*=L.scaleX,N=L.y+h.scrollY*(1-L.scrollFactorY),R*=L.scaleY);var g=p+(A-c)*(S/2),C=N+(A+c)*(R/2);return d.set(g,C)},"IsometricTileToWorldXY");o.exports=T},96897:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(26099),T=P(function(d,c,A,h,f,S,O){h||(h=new u);var L=S.baseTileWidth,p=S.baseTileHeight,N=S.tilemapLayer;N&&(f||(f=N.scene.cameras.main),c=c-(N.y+f.scrollY*(1-N.scrollFactorY)),p*=N.scaleY,d=d-(N.x+f.scrollX*(1-N.scrollFactorX)),L*=N.scaleX);var g=L/2,C=p/2;d=d-g,O||(c=c-p);var v=.5*(d/g+c/C),M=.5*(-d/g+c/C);return A&&(v=Math.floor(v),M=Math.floor(M)),h.set(v,M)},"IsometricWorldToTileXY");o.exports=T},71558:(o,m,s)=>{/** + */var u=s(26099),T=v(function(A,c,d,h,f,S,R){h||(h=new u);var L=S.baseTileWidth,p=S.baseTileHeight,N=S.tilemapLayer;N&&(f||(f=N.scene.cameras.main),c=c-(N.y+f.scrollY*(1-N.scrollFactorY)),p*=N.scaleY,A=A-(N.x+f.scrollX*(1-N.scrollFactorX)),L*=N.scaleX);var g=L/2,C=p/2;A=A-g,R||(c=c-p);var P=.5*(A/g+c/C),M=.5*(-A/g+c/C);return d&&(P=Math.floor(P),M=Math.floor(M)),h.set(P,M)},"IsometricWorldToTileXY");o.exports=T},71558:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(23029),T=s(62991),d=s(72023),c=s(20576),A=P(function(h,f,S,O,L){if(O===void 0&&(O=!0),!T(f,S,L))return null;var p,N=L.data[S][f],g=N&&N.collides;h instanceof u?(L.data[S][f]===null&&(L.data[S][f]=new u(L,h.index,f,S,L.tileWidth,L.tileHeight)),L.data[S][f].copy(h)):(p=h,L.data[S][f]===null?L.data[S][f]=new u(L,p,f,S,L.tileWidth,L.tileHeight):L.data[S][f].index=p);var C=L.data[S][f],v=L.collideIndexes.indexOf(C.index)!==-1;if(p=h instanceof u?h.index:h,p===-1)C.width=L.tileWidth,C.height=L.tileHeight;else{var M=L.tilemapLayer.tilemap,D=M.tiles,G=D[p][2],H=M.tilesets[G];C.width=H.tileWidth,C.height=H.tileHeight}return c(C,v),O&&g!==C.collides&&d(f,S,L),C},"PutTileAt");o.exports=A},26303:(o,m,s)=>{/** + */var u=s(23029),T=s(62991),A=s(72023),c=s(20576),d=v(function(h,f,S,R,L){if(R===void 0&&(R=!0),!T(f,S,L))return null;var p,N=L.data[S][f],g=N&&N.collides;h instanceof u?(L.data[S][f]===null&&(L.data[S][f]=new u(L,h.index,f,S,L.tileWidth,L.tileHeight)),L.data[S][f].copy(h)):(p=h,L.data[S][f]===null?L.data[S][f]=new u(L,p,f,S,L.tileWidth,L.tileHeight):L.data[S][f].index=p);var C=L.data[S][f],P=L.collideIndexes.indexOf(C.index)!==-1;if(p=h instanceof u?h.index:h,p===-1)C.width=L.tileWidth,C.height=L.tileHeight;else{var M=L.tilemapLayer.tilemap,D=M.tiles,G=D[p][2],H=M.tilesets[G];C.width=H.tileWidth,C.height=H.tileHeight}return c(C,P),R&&g!==C.collides&&A(f,S,L),C},"PutTileAt");o.exports=d},26303:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(71558),T=s(26099),d=new T,c=P(function(A,h,f,S,O,L){return L.tilemapLayer.worldToTileXY(h,f,!0,d,O,L),u(A,d.x,d.y,S,L)},"PutTileAtWorldXY");o.exports=c},14051:(o,m,s)=>{/** + */var u=s(71558),T=s(26099),A=new T,c=v(function(d,h,f,S,R,L){return L.tilemapLayer.worldToTileXY(h,f,!0,A,R,L),u(d,A.x,A.y,S,L)},"PutTileAtWorldXY");o.exports=c},14051:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(42573),T=s(71558),d=P(function(c,A,h,f,S){if(f===void 0&&(f=!0),!Array.isArray(c))return null;Array.isArray(c[0])||(c=[c]);for(var O=c.length,L=c[0].length,p=0;p{/** + */var u=s(42573),T=s(71558),A=v(function(c,d,h,f,S){if(f===void 0&&(f=!0),!Array.isArray(c))return null;Array.isArray(c[0])||(c=[c]);for(var R=c.length,L=c[0].length,p=0;p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(7386),T=s(26546),d=P(function(c,A,h,f,S,O){var L,p=u(c,A,h,f,{},O);if(!S)for(S=[],L=0;L{/** + */var u=s(7386),T=s(26546),A=v(function(c,d,h,f,S,R){var L,p=u(c,d,h,f,{},R);if(!S)for(S=[],L=0;L{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(23029),T=s(62991),d=s(72023),c=P(function(A,h,f,S,O){if(f===void 0&&(f=!0),S===void 0&&(S=!0),!T(A,h,O))return null;var L=O.data[h][A];if(L)O.data[h][A]=f?null:new u(O,-1,A,h,O.tileWidth,O.tileHeight);else return null;return S&&L&&L.collides&&d(A,h,O),L},"RemoveTileAt");o.exports=c},94178:(o,m,s)=>{/** + */var u=s(23029),T=s(62991),A=s(72023),c=v(function(d,h,f,S,R){if(f===void 0&&(f=!0),S===void 0&&(S=!0),!T(d,h,R))return null;var L=R.data[h][d];if(L)R.data[h][d]=f?null:new u(R,-1,d,h,R.tileWidth,R.tileHeight);else return null;return S&&L&&L.collides&&A(d,h,R),L},"RemoveTileAt");o.exports=c},94178:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(63557),T=s(26099),d=new T,c=P(function(A,h,f,S,O,L){return L.tilemapLayer.worldToTileXY(A,h,!0,d,O,L),u(d.x,d.y,f,S,L)},"RemoveTileAtWorldXY");o.exports=c},15533:(o,m,s)=>{/** + */var u=s(63557),T=s(26099),A=new T,c=v(function(d,h,f,S,R,L){return L.tilemapLayer.worldToTileXY(d,h,!0,A,R,L),u(A.x,A.y,f,S,L)},"RemoveTileAtWorldXY");o.exports=c},15533:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(7386),T=s(3956),d=new T(105,210,231,150),c=new T(243,134,48,200),A=new T(40,39,37,150),h=P(function(f,S,O){S===void 0&&(S={});var L=S.tileColor!==void 0?S.tileColor:d,p=S.collidingTileColor!==void 0?S.collidingTileColor:c,N=S.faceColor!==void 0?S.faceColor:A,g=u(0,0,O.width,O.height,null,O);f.translateCanvas(O.tilemapLayer.x,O.tilemapLayer.y),f.scaleCanvas(O.tilemapLayer.scaleX,O.tilemapLayer.scaleY);for(var C=0;C{/** + */var u=s(7386),T=s(3956),A=new T(105,210,231,150),c=new T(243,134,48,200),d=new T(40,39,37,150),h=v(function(f,S,R){S===void 0&&(S={});var L=S.tileColor!==void 0?S.tileColor:A,p=S.collidingTileColor!==void 0?S.collidingTileColor:c,N=S.faceColor!==void 0?S.faceColor:d,g=u(0,0,R.width,R.height,null,R);f.translateCanvas(R.tilemapLayer.x,R.tilemapLayer.y),f.scaleCanvas(R.tilemapLayer.scaleX,R.tilemapLayer.scaleY);for(var C=0;C{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(7386),T=P(function(d,c,A,h,f,S,O){for(var L=u(A,h,f,S,null,O),p=0;p{/** + */var u=s(7386),T=v(function(A,c,d,h,f,S,R){for(var L=u(d,h,f,S,null,R),p=0;p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){var c=s.data,A=s.width,h=s.height,f=s.tilemapLayer,S=Math.max(0,u.left),O=Math.min(A,u.right),L=Math.max(0,u.top),p=Math.min(h,u.bottom),N,g,C;if(T===0)for(g=L;g=S;N--)C=c[g][N],!(!C||C.index===-1||!C.visible||C.alpha===0)&&d.push(C);else if(T===2)for(g=p;g>=L;g--)for(N=S;c[g]&&N=L;g--)for(N=O;c[g]&&N>=S;N--)C=c[g][N],!(!C||C.index===-1||!C.visible||C.alpha===0)&&d.push(C);return f.tilesDrawn=d.length,f.tilesTotal=A*h,d},"RunCull");o.exports=m},57068:(o,m,s)=>{/** + */var O=v(function(s,u,T,A){var c=s.data,d=s.width,h=s.height,f=s.tilemapLayer,S=Math.max(0,u.left),R=Math.min(d,u.right),L=Math.max(0,u.top),p=Math.min(h,u.bottom),N,g,C;if(T===0)for(g=L;g=S;N--)C=c[g][N],!(!C||C.index===-1||!C.visible||C.alpha===0)&&A.push(C);else if(T===2)for(g=p;g>=L;g--)for(N=S;c[g]&&N=L;g--)for(N=R;c[g]&&N>=S;N--)C=c[g][N],!(!C||C.index===-1||!C.visible||C.alpha===0)&&A.push(C);return f.tilesDrawn=A.length,f.tilesTotal=d*h,A},"RunCull");o.exports=O},57068:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(20576),T=s(42573),d=s(9589),c=P(function(A,h,f,S,O){h===void 0&&(h=!0),f===void 0&&(f=!0),O===void 0&&(O=!0),Array.isArray(A)||(A=[A]);for(var L=0;L{/** + */var u=s(20576),T=s(42573),A=s(9589),c=v(function(d,h,f,S,R){h===void 0&&(h=!0),f===void 0&&(f=!0),R===void 0&&(R=!0),Array.isArray(d)||(d=[d]);for(var L=0;L{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(20576),T=s(42573),d=s(9589),c=P(function(A,h,f,S,O,L){if(f===void 0&&(f=!0),S===void 0&&(S=!0),L===void 0&&(L=!0),!(A>h)){for(var p=A;p<=h;p++)d(p,f,O);if(L)for(var N=0;N=A&&C.index<=h&&u(C,f)}S&&T(0,0,O.width,O.height,O)}},"SetCollisionBetween");o.exports=c},75661:(o,m,s)=>{/** + */var u=s(20576),T=s(42573),A=s(9589),c=v(function(d,h,f,S,R,L){if(f===void 0&&(f=!0),S===void 0&&(S=!0),L===void 0&&(L=!0),!(d>h)){for(var p=d;p<=h;p++)A(p,f,R);if(L)for(var N=0;N=d&&C.index<=h&&u(C,f)}S&&T(0,0,R.width,R.height,R)}},"SetCollisionBetween");o.exports=c},75661:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(20576),T=s(42573),d=s(9589),c=P(function(A,h,f,S){h===void 0&&(h=!0),f===void 0&&(f=!0),Array.isArray(A)||(A=[A]);for(var O=0;O{/** + */var u=s(20576),T=s(42573),A=s(9589),c=v(function(d,h,f,S){h===void 0&&(h=!0),f===void 0&&(f=!0),Array.isArray(d)||(d=[d]);for(var R=0;R{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(20576),T=s(42573),d=s(97022),c=P(function(A,h,f,S){h===void 0&&(h=!0),f===void 0&&(f=!0);for(var O=0;O{/** + */var u=s(20576),T=s(42573),A=s(97022),c=v(function(d,h,f,S){h===void 0&&(h=!0),f===void 0&&(f=!0);for(var R=0;R{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(20576),T=s(42573),d=P(function(c,A,h){c===void 0&&(c=!0),A===void 0&&(A=!0);for(var f=0;f0&&u(O,c)}}A&&T(0,0,h.width,h.height,h)},"SetCollisionFromCollisionGroup");o.exports=d},9589:o=>{/** + */var u=s(20576),T=s(42573),A=v(function(c,d,h){c===void 0&&(c=!0),d===void 0&&(d=!0);for(var f=0;f0&&u(R,c)}}d&&T(0,0,h.width,h.height,h)},"SetCollisionFromCollisionGroup");o.exports=A},9589:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){var d=T.collideIndexes.indexOf(s);u&&d===-1?T.collideIndexes.push(s):!u&&d!==-1&&T.collideIndexes.splice(d,1)},"SetLayerCollisionIndex");o.exports=m},20576:o=>{/** + */var O=v(function(s,u,T){var A=T.collideIndexes.indexOf(s);u&&A===-1?T.collideIndexes.push(s):!u&&A!==-1&&T.collideIndexes.splice(A,1)},"SetLayerCollisionIndex");o.exports=O},20576:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){u?s.setCollision(!0,!0,!0,!0,!1):s.resetCollision(!1)},"SetTileCollision");o.exports=m},79583:o=>{/** + */var O=v(function(s,u){u?s.setCollision(!0,!0,!0,!0,!1):s.resetCollision(!1)},"SetTileCollision");o.exports=O},79583:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){if(typeof s=="number")d.callbacks[s]=u!==null?{callback:u,callbackContext:T}:void 0;else for(var c=0,A=s.length;c{/** + */var O=v(function(s,u,T,A){if(typeof s=="number")A.callbacks[s]=u!==null?{callback:u,callbackContext:T}:void 0;else for(var c=0,d=s.length;c{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(7386),T=P(function(d,c,A,h,f,S,O){for(var L=u(d,c,A,h,null,O),p=0;p{/** + */var u=s(7386),T=v(function(A,c,d,h,f,S,R){for(var L=u(A,c,d,h,null,R),p=0;p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(7386),T=s(33680),d=P(function(c,A,h,f,S){var O=u(c,A,h,f,null,S),L=O.map(function(N){return N.index});T(L);for(var p=0;p{/** + */var u=s(7386),T=s(33680),A=v(function(c,d,h,f,S){var R=u(c,d,h,f,null,S),L=R.map(function(N){return N.index});T(L);for(var p=0;p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(63448),T=s(56583),d=P(function(c,A){var h=c.tilemapLayer.tilemap,f=c.tilemapLayer,S=Math.floor(h.tileWidth*f.scaleX),O=Math.floor(h.tileHeight*f.scaleY),L=T(A.worldView.x-f.x,S,0,!0)-f.cullPaddingX,p=u(A.worldView.right-f.x,S,0,!0)+f.cullPaddingX,N=T(A.worldView.y-f.y,O/2,0,!0)-f.cullPaddingY,g=u(A.worldView.bottom-f.y,O/2,0,!0)+f.cullPaddingY;return{left:L,right:p,top:N,bottom:g}},"StaggeredCullBounds");o.exports=d},54503:(o,m,s)=>{/** + */var u=s(63448),T=s(56583),A=v(function(c,d){var h=c.tilemapLayer.tilemap,f=c.tilemapLayer,S=Math.floor(h.tileWidth*f.scaleX),R=Math.floor(h.tileHeight*f.scaleY),L=T(d.worldView.x-f.x,S,0,!0)-f.cullPaddingX,p=u(d.worldView.right-f.x,S,0,!0)+f.cullPaddingX,N=T(d.worldView.y-f.y,R/2,0,!0)-f.cullPaddingY,g=u(d.worldView.bottom-f.y,R/2,0,!0)+f.cullPaddingY;return{left:L,right:p,top:N,bottom:g}},"StaggeredCullBounds");o.exports=A},54503:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(61325),T=s(32483),d=P(function(c,A,h,f){h===void 0&&(h=[]),f===void 0&&(f=0),h.length=0;var S=c.tilemapLayer,O=u(c,A);return S.skipCull&&S.scrollFactorX===1&&S.scrollFactorY===1&&(O.left=0,O.right=c.width,O.top=0,O.bottom=c.height),T(c,O,f,h),h},"StaggeredCullTiles");o.exports=d},97202:(o,m,s)=>{/** + */var u=s(61325),T=s(32483),A=v(function(c,d,h,f){h===void 0&&(h=[]),f===void 0&&(f=0),h.length=0;var S=c.tilemapLayer,R=u(c,d);return S.skipCull&&S.scrollFactorX===1&&S.scrollFactorY===1&&(R.left=0,R.right=c.width,R.top=0,R.bottom=c.height),T(c,R,f,h),h},"StaggeredCullTiles");o.exports=A},97202:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(26099),T=P(function(d,c,A,h,f){A||(A=new u);var S=f.baseTileWidth,O=f.baseTileHeight,L=f.tilemapLayer,p=0,N=0;L&&(h||(h=L.scene.cameras.main),p=L.x+h.scrollX*(1-L.scrollFactorX),S*=L.scaleX,N=L.y+h.scrollY*(1-L.scrollFactorY),O*=L.scaleY);var g=p+d*S+c%2*(S/2),C=N+c*(O/2);return A.set(g,C)},"StaggeredTileToWorldXY");o.exports=T},28054:o=>{/** + */var u=s(26099),T=v(function(A,c,d,h,f){d||(d=new u);var S=f.baseTileWidth,R=f.baseTileHeight,L=f.tilemapLayer,p=0,N=0;L&&(h||(h=L.scene.cameras.main),p=L.x+h.scrollX*(1-L.scrollFactorX),S*=L.scaleX,N=L.y+h.scrollY*(1-L.scrollFactorY),R*=L.scaleY);var g=p+A*S+c%2*(S/2),C=N+c*(R/2);return d.set(g,C)},"StaggeredTileToWorldXY");o.exports=T},28054:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){var d=T.baseTileHeight,c=T.tilemapLayer,A=0;return c&&(u===void 0&&(u=c.scene.cameras.main),A=c.y+u.scrollY*(1-c.scrollFactorY),d*=c.scaleY),A+s*(d/2)+d},"StaggeredTileToWorldY");o.exports=m},15108:(o,m,s)=>{/** + */var O=v(function(s,u,T){var A=T.baseTileHeight,c=T.tilemapLayer,d=0;return c&&(u===void 0&&(u=c.scene.cameras.main),d=c.y+u.scrollY*(1-c.scrollFactorY),A*=c.scaleY),d+s*(A/2)+A},"StaggeredTileToWorldY");o.exports=O},15108:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(26099),T=P(function(d,c,A,h,f,S){h||(h=new u);var O=S.baseTileWidth,L=S.baseTileHeight,p=S.tilemapLayer;p&&(f||(f=p.scene.cameras.main),c=c-(p.y+f.scrollY*(1-p.scrollFactorY)),L*=p.scaleY,d=d-(p.x+f.scrollX*(1-p.scrollFactorX)),O*=p.scaleX);var N=A?Math.floor(c/(L/2)):c/(L/2),g=A?Math.floor((d+N%2*.5*O)/O):(d+N%2*.5*O)/O;return h.set(g,N)},"StaggeredWorldToTileXY");o.exports=T},51900:o=>{/** + */var u=s(26099),T=v(function(A,c,d,h,f,S){h||(h=new u);var R=S.baseTileWidth,L=S.baseTileHeight,p=S.tilemapLayer;p&&(f||(f=p.scene.cameras.main),c=c-(p.y+f.scrollY*(1-p.scrollFactorY)),L*=p.scaleY,A=A-(p.x+f.scrollX*(1-p.scrollFactorX)),R*=p.scaleX);var N=d?Math.floor(c/(L/2)):c/(L/2),g=d?Math.floor((A+N%2*.5*R)/R):(A+N%2*.5*R)/R;return h.set(g,N)},"StaggeredWorldToTileXY");o.exports=T},51900:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){var c=d.baseTileHeight,A=d.tilemapLayer;return A&&(T||(T=A.scene.cameras.main),s=s-(A.y+T.scrollY*(1-A.scrollFactorY)),c*=A.scaleY),u?Math.floor(s/(c/2)):s/(c/2)},"StaggeredWorldToTileY");o.exports=m},86560:(o,m,s)=>{/** + */var O=v(function(s,u,T,A){var c=A.baseTileHeight,d=A.tilemapLayer;return d&&(T||(T=d.scene.cameras.main),s=s-(d.y+T.scrollY*(1-d.scrollFactorY)),c*=d.scaleY),u?Math.floor(s/(c/2)):s/(c/2)},"StaggeredWorldToTileY");o.exports=O},86560:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(7386),T=P(function(d,c,A,h,f,S,O){for(var L=u(A,h,f,S,null,O),p=0;p{/** + */var u=s(7386),T=v(function(A,c,d,h,f,S,R){for(var L=u(d,h,f,S,null,R),p=0;p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){var d=T.baseTileWidth,c=T.tilemapLayer,A=0;return c&&(u||(u=c.scene.cameras.main),A=c.x+u.scrollX*(1-c.scrollFactorX),d*=c.scaleX),A+s*d},"TileToWorldX");o.exports=m},70326:(o,m,s)=>{/** + */var O=v(function(s,u,T){var A=T.baseTileWidth,c=T.tilemapLayer,d=0;return c&&(u||(u=c.scene.cameras.main),d=c.x+u.scrollX*(1-c.scrollFactorX),A*=c.scaleX),d+s*A},"TileToWorldX");o.exports=O},70326:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(97281),T=s(29650),d=s(26099),c=P(function(A,h,f,S,O){return f||(f=new d(0,0)),f.x=u(A,S,O),f.y=T(h,S,O),f},"TileToWorldXY");o.exports=c},29650:o=>{/** + */var u=s(97281),T=s(29650),A=s(26099),c=v(function(d,h,f,S,R){return f||(f=new A(0,0)),f.x=u(d,S,R),f.y=T(h,S,R),f},"TileToWorldXY");o.exports=c},29650:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){var d=T.baseTileHeight,c=T.tilemapLayer,A=0;return c&&(u||(u=c.scene.cameras.main),A=c.y+u.scrollY*(1-c.scrollFactorY),d*=c.scaleY),A+s*d},"TileToWorldY");o.exports=m},77366:(o,m,s)=>{/** + */var O=v(function(s,u,T){var A=T.baseTileHeight,c=T.tilemapLayer,d=0;return c&&(u||(u=c.scene.cameras.main),d=c.y+u.scrollY*(1-c.scrollFactorY),A*=c.scaleY),d+s*A},"TileToWorldY");o.exports=O},77366:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(7386),T=s(75508),d=P(function(c,A,h,f,S,O){if(S){var L,p=u(c,A,h,f,null,O),N=0;for(L=0;L{/** + */var u=s(7386),T=s(75508),A=v(function(c,d,h,f,S,R){if(S){var L,p=u(c,d,h,f,null,R),N=0;for(L=0;L{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(85896),T=s(26099),d=new T,c=P(function(A,h,f,S){return u(A,0,h,d,f,S),d.x},"WorldToTileX");o.exports=c},85896:(o,m,s)=>{/** + */var u=s(85896),T=s(26099),A=new T,c=v(function(d,h,f,S){return u(d,0,h,A,f,S),A.x},"WorldToTileX");o.exports=c},85896:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(26099),T=P(function(d,c,A,h,f,S){A===void 0&&(A=!0),h||(h=new u);var O=S.baseTileWidth,L=S.baseTileHeight,p=S.tilemapLayer;p&&(f||(f=p.scene.cameras.main),d=d-(p.x+f.scrollX*(1-p.scrollFactorX)),c=c-(p.y+f.scrollY*(1-p.scrollFactorY)),O*=p.scaleX,L*=p.scaleY);var N=d/O,g=c/L;return A&&(N=Math.floor(N),g=Math.floor(g)),h.set(N,g)},"WorldToTileXY");o.exports=T},63288:(o,m,s)=>{/** + */var u=s(26099),T=v(function(A,c,d,h,f,S){d===void 0&&(d=!0),h||(h=new u);var R=S.baseTileWidth,L=S.baseTileHeight,p=S.tilemapLayer;p&&(f||(f=p.scene.cameras.main),A=A-(p.x+f.scrollX*(1-p.scrollFactorX)),c=c-(p.y+f.scrollY*(1-p.scrollFactorY)),R*=p.scaleX,L*=p.scaleY);var N=A/R,g=c/L;return d&&(N=Math.floor(N),g=Math.floor(g)),h.set(N,g)},"WorldToTileXY");o.exports=T},63288:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(85896),T=s(26099),d=new T,c=P(function(A,h,f,S){return u(0,A,h,d,f,S),d.y},"WorldToTileY");o.exports=c},81086:(o,m,s)=>{/** + */var u=s(85896),T=s(26099),A=new T,c=v(function(d,h,f,S){return u(0,d,h,A,f,S),A.y},"WorldToTileY");o.exports=c},81086:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -5760,188 +5760,188 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={ORTHOGONAL:0,ISOMETRIC:1,STAGGERED:2,HEXAGONAL:3}},21829:(o,m,s)=>{/** + */o.exports={ORTHOGONAL:0,ISOMETRIC:1,STAGGERED:2,HEXAGONAL:3}},21829:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u={ORIENTATION:s(91907)};o.exports=u},62501:(o,m,s)=>{/** + */var u={ORIENTATION:s(91907)};o.exports=u},62501:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(79291),T=s(21829),d={Components:s(81086),Parsers:s(57442),Formats:s(80341),ImageCollection:s(16536),ParseToTilemap:s(31989),Tile:s(23029),Tilemap:s(49075),TilemapCreator:s(45939),TilemapFactory:s(46029),Tileset:s(33629),TilemapLayer:s(20442),Orientation:s(91907),LayerData:s(14977),MapData:s(87010),ObjectLayer:s(48700)};d=u(!1,d,T.ORIENTATION),o.exports=d},14977:(o,m,s)=>{/** + */var u=s(79291),T=s(21829),A={Components:s(81086),Parsers:s(57442),Formats:s(80341),ImageCollection:s(16536),ParseToTilemap:s(31989),Tile:s(23029),Tilemap:s(49075),TilemapCreator:s(45939),TilemapFactory:s(46029),Tileset:s(33629),TilemapLayer:s(20442),Orientation:s(91907),LayerData:s(14977),MapData:s(87010),ObjectLayer:s(48700)};A=u(!1,A,T.ORIENTATION),o.exports=A},14977:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(91907),d=s(95540),c=new u({initialize:P(function(h){h===void 0&&(h={}),this.name=d(h,"name","layer"),this.id=d(h,"id",0),this.x=d(h,"x",0),this.y=d(h,"y",0),this.width=d(h,"width",0),this.height=d(h,"height",0),this.tileWidth=d(h,"tileWidth",0),this.tileHeight=d(h,"tileHeight",0),this.baseTileWidth=d(h,"baseTileWidth",this.tileWidth),this.baseTileHeight=d(h,"baseTileHeight",this.tileHeight),this.orientation=d(h,"orientation",T.ORTHOGONAL),this.widthInPixels=d(h,"widthInPixels",this.width*this.baseTileWidth),this.heightInPixels=d(h,"heightInPixels",this.height*this.baseTileHeight),this.alpha=d(h,"alpha",1),this.visible=d(h,"visible",!0),this.properties=d(h,"properties",[]),this.indexes=d(h,"indexes",[]),this.collideIndexes=d(h,"collideIndexes",[]),this.callbacks=d(h,"callbacks",[]),this.bodies=d(h,"bodies",[]),this.data=d(h,"data",[]),this.tilemapLayer=d(h,"tilemapLayer",null),this.hexSideLength=d(h,"hexSideLength",0),this.staggerAxis=d(h,"staggerAxis","y"),this.staggerIndex=d(h,"staggerIndex","odd")},"LayerData")});o.exports=c},87010:(o,m,s)=>{/** + */var u=s(83419),T=s(91907),A=s(95540),c=new u({initialize:v(function(h){h===void 0&&(h={}),this.name=A(h,"name","layer"),this.id=A(h,"id",0),this.x=A(h,"x",0),this.y=A(h,"y",0),this.width=A(h,"width",0),this.height=A(h,"height",0),this.tileWidth=A(h,"tileWidth",0),this.tileHeight=A(h,"tileHeight",0),this.baseTileWidth=A(h,"baseTileWidth",this.tileWidth),this.baseTileHeight=A(h,"baseTileHeight",this.tileHeight),this.orientation=A(h,"orientation",T.ORTHOGONAL),this.widthInPixels=A(h,"widthInPixels",this.width*this.baseTileWidth),this.heightInPixels=A(h,"heightInPixels",this.height*this.baseTileHeight),this.alpha=A(h,"alpha",1),this.visible=A(h,"visible",!0),this.properties=A(h,"properties",[]),this.indexes=A(h,"indexes",[]),this.collideIndexes=A(h,"collideIndexes",[]),this.callbacks=A(h,"callbacks",[]),this.bodies=A(h,"bodies",[]),this.data=A(h,"data",[]),this.tilemapLayer=A(h,"tilemapLayer",null),this.hexSideLength=A(h,"hexSideLength",0),this.staggerAxis=A(h,"staggerAxis","y"),this.staggerIndex=A(h,"staggerIndex","odd")},"LayerData")});o.exports=c},87010:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(91907),d=s(95540),c=new u({initialize:P(function(h){h===void 0&&(h={}),this.name=d(h,"name","map"),this.width=d(h,"width",0),this.height=d(h,"height",0),this.infinite=d(h,"infinite",!1),this.tileWidth=d(h,"tileWidth",0),this.tileHeight=d(h,"tileHeight",0),this.widthInPixels=d(h,"widthInPixels",this.width*this.tileWidth),this.heightInPixels=d(h,"heightInPixels",this.height*this.tileHeight),this.format=d(h,"format",null),this.orientation=d(h,"orientation",T.ORTHOGONAL),this.renderOrder=d(h,"renderOrder","right-down"),this.version=d(h,"version","1"),this.properties=d(h,"properties",{}),this.layers=d(h,"layers",[]),this.images=d(h,"images",[]),this.objects=d(h,"objects",[]),Array.isArray(this.objects)||(this.objects=[]),this.collision=d(h,"collision",{}),this.tilesets=d(h,"tilesets",[]),this.imageCollections=d(h,"imageCollections",[]),this.tiles=d(h,"tiles",[]),this.hexSideLength=d(h,"hexSideLength",0),this.staggerAxis=d(h,"staggerAxis","y"),this.staggerIndex=d(h,"staggerIndex","odd")},"MapData")});o.exports=c},48700:(o,m,s)=>{/** + */var u=s(83419),T=s(91907),A=s(95540),c=new u({initialize:v(function(h){h===void 0&&(h={}),this.name=A(h,"name","map"),this.width=A(h,"width",0),this.height=A(h,"height",0),this.infinite=A(h,"infinite",!1),this.tileWidth=A(h,"tileWidth",0),this.tileHeight=A(h,"tileHeight",0),this.widthInPixels=A(h,"widthInPixels",this.width*this.tileWidth),this.heightInPixels=A(h,"heightInPixels",this.height*this.tileHeight),this.format=A(h,"format",null),this.orientation=A(h,"orientation",T.ORTHOGONAL),this.renderOrder=A(h,"renderOrder","right-down"),this.version=A(h,"version","1"),this.properties=A(h,"properties",{}),this.layers=A(h,"layers",[]),this.images=A(h,"images",[]),this.objects=A(h,"objects",[]),Array.isArray(this.objects)||(this.objects=[]),this.collision=A(h,"collision",{}),this.tilesets=A(h,"tilesets",[]),this.imageCollections=A(h,"imageCollections",[]),this.tiles=A(h,"tiles",[]),this.hexSideLength=A(h,"hexSideLength",0),this.staggerAxis=A(h,"staggerAxis","y"),this.staggerIndex=A(h,"staggerIndex","odd")},"MapData")});o.exports=c},48700:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(95540),d=new u({initialize:P(function(A){A===void 0&&(A={}),this.name=T(A,"name","object layer"),this.id=T(A,"id",0),this.opacity=T(A,"opacity",1),this.properties=T(A,"properties",{}),this.propertyTypes=T(A,"propertytypes",{}),this.type=T(A,"type","objectgroup"),this.visible=T(A,"visible",!0),this.objects=T(A,"objects",[]),Array.isArray(this.objects)||(this.objects=[])},"ObjectLayer")});o.exports=d},6641:(o,m,s)=>{/** + */var u=s(83419),T=s(95540),A=new u({initialize:v(function(d){d===void 0&&(d={}),this.name=T(d,"name","object layer"),this.id=T(d,"id",0),this.opacity=T(d,"opacity",1),this.properties=T(d,"properties",{}),this.propertyTypes=T(d,"propertytypes",{}),this.type=T(d,"type","objectgroup"),this.visible=T(d,"visible",!0),this.objects=T(d,"objects",[]),Array.isArray(this.objects)||(this.objects=[])},"ObjectLayer")});o.exports=A},6641:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(91907),T=P(function(d){return d=d.toLowerCase(),d==="isometric"?u.ISOMETRIC:d==="staggered"?u.STAGGERED:d==="hexagonal"?u.HEXAGONAL:u.ORTHOGONAL},"FromOrientationString");o.exports=T},46177:(o,m,s)=>{/** + */var u=s(91907),T=v(function(A){return A=A.toLowerCase(),A==="isometric"?u.ISOMETRIC:A==="staggered"?u.STAGGERED:A==="hexagonal"?u.HEXAGONAL:u.ORTHOGONAL},"FromOrientationString");o.exports=T},46177:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(80341),T=s(2342),d=s(82593),c=s(46594),A=s(87021),h=P(function(f,S,O,L,p,N){var g;switch(S){case u.ARRAY_2D:g=T(f,O,L,p,N);break;case u.CSV:g=d(f,O,L,p,N);break;case u.TILED_JSON:g=c(f,O,N);break;case u.WELTMEISTER:g=A(f,O,N);break;default:console.warn("Unrecognized tilemap data format: "+S),g=null}return g},"Parse");o.exports=h},2342:(o,m,s)=>{/** + */var u=s(80341),T=s(2342),A=s(82593),c=s(46594),d=s(87021),h=v(function(f,S,R,L,p,N){var g;switch(S){case u.ARRAY_2D:g=T(f,R,L,p,N);break;case u.CSV:g=A(f,R,L,p,N);break;case u.TILED_JSON:g=c(f,R,N);break;case u.WELTMEISTER:g=d(f,R,N);break;default:console.warn("Unrecognized tilemap data format: "+S),g=null}return g},"Parse");o.exports=h},2342:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(80341),T=s(14977),d=s(87010),c=s(23029),A=P(function(h,f,S,O,L){for(var p=new T({tileWidth:S,tileHeight:O}),N=new d({name:h,tileWidth:S,tileHeight:O,format:u.ARRAY_2D,layers:[p]}),g=[],C=f.length,v=0,M=0;M{/** + */var u=s(80341),T=s(14977),A=s(87010),c=s(23029),d=v(function(h,f,S,R,L){for(var p=new T({tileWidth:S,tileHeight:R}),N=new A({name:h,tileWidth:S,tileHeight:R,format:u.ARRAY_2D,layers:[p]}),g=[],C=f.length,P=0,M=0;M{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(80341),T=s(2342),d=P(function(c,A,h,f,S){var O=A.trim().split(` -`).map(function(p){return p.split(",")}),L=T(c,O,h,f,S);return L.format=u.CSV,L},"ParseCSV");o.exports=d},6656:(o,m,s)=>{/** + */var u=s(80341),T=s(2342),A=v(function(c,d,h,f,S){var R=d.trim().split(` +`).map(function(p){return p.split(",")}),L=T(c,R,h,f,S);return L.format=u.CSV,L},"ParseCSV");o.exports=A},6656:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(14977),T=s(23029),d=P(function(c,A){for(var h=[],f=0;f-1?v=new T(O,C,g,N,S.tilesize,S.tilesize):v=A?null:new T(O,-1,g,N,S.tilesize,S.tilesize),L.push(v)}p.push(L),L=[]}O.data=p,h.push(O)}return h},"ParseTileLayers");o.exports=d},96483:(o,m,s)=>{/** + */var u=s(14977),T=s(23029),A=v(function(c,d){for(var h=[],f=0;f-1?P=new T(R,C,g,N,S.tilesize,S.tilesize):P=d?null:new T(R,-1,g,N,S.tilesize,S.tilesize),L.push(P)}p.push(L),L=[]}R.data=p,h.push(R)}return h},"ParseTileLayers");o.exports=A},96483:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(33629),T=P(function(d){for(var c=[],A=[],h=0;h{/** + */var u=s(33629),T=v(function(A){for(var c=[],d=[],h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(80341),T=s(87010),d=s(6656),c=s(96483),A=P(function(h,f,S){if(f.layer.length===0)return console.warn("No layers found in the Weltmeister map: "+h),null;for(var O=0,L=0,p=0;pO&&(O=f.layer[p].width),f.layer[p].height>L&&(L=f.layer[p].height);var N=new T({width:O,height:L,name:h,tileWidth:f.layer[0].tilesize,tileHeight:f.layer[0].tilesize,format:u.WELTMEISTER});return N.layers=d(f,S),N.tilesets=c(f),N},"ParseWeltmeister");o.exports=A},52833:(o,m,s)=>{/** + */var u=s(80341),T=s(87010),A=s(6656),c=s(96483),d=v(function(h,f,S){if(f.layer.length===0)return console.warn("No layers found in the Weltmeister map: "+h),null;for(var R=0,L=0,p=0;pR&&(R=f.layer[p].width),f.layer[p].height>L&&(L=f.layer[p].height);var N=new T({width:R,height:L,name:h,tileWidth:f.layer[0].tilesize,tileHeight:f.layer[0].tilesize,format:u.WELTMEISTER});return N.layers=A(f,S),N.tilesets=c(f),N},"ParseWeltmeister");o.exports=d},52833:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={ParseTileLayers:s(6656),ParseTilesets:s(96483),ParseWeltmeister:s(87021)}},57442:(o,m,s)=>{/** + */o.exports={ParseTileLayers:s(6656),ParseTilesets:s(96483),ParseWeltmeister:s(87021)}},57442:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={FromOrientationString:s(6641),Parse:s(46177),Parse2DArray:s(2342),ParseCSV:s(82593),Impact:s(52833),Tiled:s(96761)}},51233:(o,m,s)=>{/** + */o.exports={FromOrientationString:s(6641),Parse:s(46177),Parse2DArray:s(2342),ParseCSV:s(82593),Impact:s(52833),Tiled:s(96761)}},51233:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(79291),T=P(function(d){for(var c,A,h,f,S,O=0;O{/** + */var u=s(79291),T=v(function(A){for(var c,d,h,f,S,R=0;R{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){for(var u=window.atob(s),T=u.length,d=new Array(T/4),c=0;c>>0;return d},"Base64Decode");o.exports=m},84101:(o,m,s)=>{/** + */var O=v(function(s){for(var u=window.atob(s),T=u.length,A=new Array(T/4),c=0;c>>0;return A},"Base64Decode");o.exports=O},84101:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(33629),T=P(function(d){var c,A,h=[];for(c=0;c{/** + */var u=s(33629),T=v(function(A){var c,d,h=[];for(c=0;c{/** * @author Seth Berrier * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(95540),T=P(function(d,c,A){if(!c)return{i:0,layers:d.layers,name:"",opacity:1,visible:!0,x:0,y:0};var h=c.x+u(c,"startx",0)*d.tilewidth+u(c,"offsetx",0),f=c.y+u(c,"starty",0)*d.tileheight+u(c,"offsety",0);return{i:0,layers:c.layers,name:A.name+c.name+"/",opacity:A.opacity*c.opacity,visible:A.visible&&c.visible,x:A.x+h,y:A.y+f}},"CreateGroupLayer");o.exports=T},29920:o=>{/** + */var u=s(95540),T=v(function(A,c,d){if(!c)return{i:0,layers:A.layers,name:"",opacity:1,visible:!0,x:0,y:0};var h=c.x+u(c,"startx",0)*A.tilewidth+u(c,"offsetx",0),f=c.y+u(c,"starty",0)*A.tileheight+u(c,"offsety",0);return{i:0,layers:c.layers,name:d.name+c.name+"/",opacity:d.opacity*c.opacity,visible:d.visible&&c.visible,x:d.x+h,y:d.y+f}},"CreateGroupLayer");o.exports=T},29920:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=2147483648,s=1073741824,u=536870912,T=P(function(d){var c=!!(d&m),A=!!(d&s),h=!!(d&u);d=d&~(m|s|u);var f=0,S=!1;return c&&A&&h?(f=Math.PI/2,S=!0):c&&A&&!h?(f=Math.PI,S=!1):c&&!A&&h?(f=Math.PI/2,S=!1):c&&!A&&!h?(f=0,S=!0):!c&&A&&h?(f=3*Math.PI/2,S=!1):!c&&A&&!h?(f=Math.PI,S=!0):!c&&!A&&h?(f=3*Math.PI/2,S=!0):!c&&!A&&!h&&(f=0,S=!1),{gid:d,flippedHorizontal:c,flippedVertical:A,flippedAntiDiagonal:h,rotation:f,flipped:S}},"ParseGID");o.exports=T},12635:(o,m,s)=>{/** + */var O=2147483648,s=1073741824,u=536870912,T=v(function(A){var c=!!(A&O),d=!!(A&s),h=!!(A&u);A=A&~(O|s|u);var f=0,S=!1;return c&&d&&h?(f=Math.PI/2,S=!0):c&&d&&!h?(f=Math.PI,S=!1):c&&!d&&h?(f=Math.PI/2,S=!1):c&&!d&&!h?(f=0,S=!0):!c&&d&&h?(f=3*Math.PI/2,S=!1):!c&&d&&!h?(f=Math.PI,S=!0):!c&&!d&&h?(f=3*Math.PI/2,S=!0):!c&&!d&&!h&&(f=0,S=!1),{gid:A,flippedHorizontal:c,flippedVertical:d,flippedAntiDiagonal:h,rotation:f,flipped:S}},"ParseGID");o.exports=T},12635:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(95540),T=s(79677),d=P(function(c){for(var A=[],h=[],f=T(c);f.i0;){if(f.i>=f.layers.length){if(h.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}f=h.pop();continue}var S=f.layers[f.i];if(f.i++,S.type!=="imagelayer"){if(S.type==="group"){var O=T(c,S,f);h.push(f),f=O}continue}var L=u(S,"offsetx",0)+u(S,"startx",0),p=u(S,"offsety",0)+u(S,"starty",0);A.push({name:f.name+S.name,image:S.image,x:f.x+L+S.x,y:f.y+p+S.y,alpha:f.opacity*S.opacity,visible:f.visible&&S.visible,properties:u(S,"properties",{})})}return A},"ParseImageLayers");o.exports=d},46594:(o,m,s)=>{/** + */var u=s(95540),T=s(79677),A=v(function(c){for(var d=[],h=[],f=T(c);f.i0;){if(f.i>=f.layers.length){if(h.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}f=h.pop();continue}var S=f.layers[f.i];if(f.i++,S.type!=="imagelayer"){if(S.type==="group"){var R=T(c,S,f);h.push(f),f=R}continue}var L=u(S,"offsetx",0)+u(S,"startx",0),p=u(S,"offsety",0)+u(S,"starty",0);d.push({name:f.name+S.name,image:S.image,x:f.x+L+S.x,y:f.y+p+S.y,alpha:f.opacity*S.opacity,visible:f.visible&&S.visible,properties:u(S,"properties",{})})}return d},"ParseImageLayers");o.exports=A},46594:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(51233),T=s(84101),d=s(91907),c=s(62644),A=s(80341),h=s(6641),f=s(87010),S=s(12635),O=s(22611),L=s(28200),p=s(24619),N=P(function(g,C,v){var M=c(C),D=new f({width:M.width,height:M.height,name:g,tileWidth:M.tilewidth,tileHeight:M.tileheight,orientation:h(M.orientation),format:A.TILED_JSON,version:M.version,properties:M.properties,renderOrder:M.renderorder,infinite:M.infinite});D.orientation===d.HEXAGONAL&&(D.hexSideLength=M.hexsidelength,D.staggerAxis=M.staggeraxis,D.staggerIndex=M.staggerindex),D.layers=L(M,v),D.images=S(M);var G=p(M);return D.tilesets=G.tilesets,D.imageCollections=G.imageCollections,D.objects=O(M),D.tiles=T(D),u(D),D},"ParseJSONTiled");o.exports=N},52205:(o,m,s)=>{/** + */var u=s(51233),T=s(84101),A=s(91907),c=s(62644),d=s(80341),h=s(6641),f=s(87010),S=s(12635),R=s(22611),L=s(28200),p=s(24619),N=v(function(g,C,P){var M=c(C),D=new f({width:M.width,height:M.height,name:g,tileWidth:M.tilewidth,tileHeight:M.tileheight,orientation:h(M.orientation),format:d.TILED_JSON,version:M.version,properties:M.properties,renderOrder:M.renderorder,infinite:M.infinite});D.orientation===A.HEXAGONAL&&(D.hexSideLength=M.hexsidelength,D.staggerAxis=M.staggeraxis,D.staggerIndex=M.staggerindex),D.layers=L(M,P),D.images=S(M);var G=p(M);return D.tilesets=G.tilesets,D.imageCollections=G.imageCollections,D.objects=R(M),D.tiles=T(D),u(D),D},"ParseJSONTiled");o.exports=N},52205:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(18254),T=s(29920),d=P(function(h){return{x:h.x,y:h.y}},"copyPoints"),c=["id","name","type","rotation","properties","visible","x","y","width","height"],A=P(function(h,f,S){f===void 0&&(f=0),S===void 0&&(S=0);var O=u(h,c);if(O.x+=f,O.y+=S,h.gid){var L=T(h.gid);O.gid=L.gid,O.flippedHorizontal=L.flippedHorizontal,O.flippedVertical=L.flippedVertical,O.flippedAntiDiagonal=L.flippedAntiDiagonal}else h.polyline?O.polyline=h.polyline.map(d):h.polygon?O.polygon=h.polygon.map(d):h.ellipse?O.ellipse=h.ellipse:h.text?O.text=h.text:h.point?O.point=!0:O.rectangle=!0;return O},"ParseObject");o.exports=A},22611:(o,m,s)=>{/** + */var u=s(18254),T=s(29920),A=v(function(h){return{x:h.x,y:h.y}},"copyPoints"),c=["id","name","type","rotation","properties","visible","x","y","width","height"],d=v(function(h,f,S){f===void 0&&(f=0),S===void 0&&(S=0);var R=u(h,c);if(R.x+=f,R.y+=S,h.gid){var L=T(h.gid);R.gid=L.gid,R.flippedHorizontal=L.flippedHorizontal,R.flippedVertical=L.flippedVertical,R.flippedAntiDiagonal=L.flippedAntiDiagonal}else h.polyline?R.polyline=h.polyline.map(A):h.polygon?R.polygon=h.polygon.map(A):h.ellipse?R.ellipse=h.ellipse:h.text?R.text=h.text:h.point?R.point=!0:R.rectangle=!0;return R},"ParseObject");o.exports=d},22611:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(95540),T=s(52205),d=s(48700),c=s(79677),A=P(function(h){for(var f=[],S=[],O=c(h);O.i0;){if(O.i>=O.layers.length){if(S.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}O=S.pop();continue}var L=O.layers[O.i];if(O.i++,L.opacity*=O.opacity,L.visible=O.visible&&L.visible,L.type!=="objectgroup"){if(L.type==="group"){var p=c(h,L,O);S.push(O),O=p}continue}L.name=O.name+L.name;for(var N=O.x+u(L,"startx",0)+u(L,"offsetx",0),g=O.y+u(L,"starty",0)+u(L,"offsety",0),C=[],v=0;v{/** + */var u=s(95540),T=s(52205),A=s(48700),c=s(79677),d=v(function(h){for(var f=[],S=[],R=c(h);R.i0;){if(R.i>=R.layers.length){if(S.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}R=S.pop();continue}var L=R.layers[R.i];if(R.i++,L.opacity*=R.opacity,L.visible=R.visible&&L.visible,L.type!=="objectgroup"){if(L.type==="group"){var p=c(h,L,R);S.push(R),R=p}continue}L.name=R.name+L.name;for(var N=R.x+u(L,"startx",0)+u(L,"offsetx",0),g=R.y+u(L,"starty",0)+u(L,"offsety",0),C=[],P=0;P{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(41868),T=s(91907),d=s(79677),c=s(6641),A=s(95540),h=s(14977),f=s(29920),S=s(23029),O=P(function(L,p){for(var N=A(L,"infinite",!1),g=[],C=[],v=d(L);v.i0;){if(v.i>=v.layers.length){if(C.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}v=C.pop();continue}var M=v.layers[v.i];if(v.i++,M.type!=="tilelayer"){if(M.type==="group"){var D=d(L,M,v);C.push(v),v=D}continue}if(M.compression){console.warn("TilemapParser.parseTiledJSON - Layer compression is unsupported, skipping layer '"+M.name+"'");continue}else if(M.encoding&&M.encoding==="base64"){if(M.chunks)for(var G=0;G0?(_=new S(H,B.gid,q,J,L.tilewidth,L.tileheight),_.rotation=B.rotation,_.flipX=B.flipped,b[J][q]=_):(w=p?null:new S(H,-1,q,J,L.tilewidth,L.tileheight),b[J][q]=w),F++,F===Q.width&&(j++,F=0)}}else{H=new h({name:v.name+M.name,id:M.id,x:v.x+A(M,"offsetx",0)+M.x,y:v.y+A(M,"offsety",0)+M.y,width:M.width,height:M.height,tileWidth:L.tilewidth,tileHeight:L.tileheight,alpha:v.opacity*M.opacity,visible:v.visible&&M.visible,properties:A(M,"properties",[]),orientation:c(L.orientation)}),H.orientation===T.HEXAGONAL&&(H.hexSideLength=L.hexsidelength,H.staggerAxis=L.staggeraxis,H.staggerIndex=L.staggerindex);for(var ae=[],re=0,oe=M.data.length;re0?(_=new S(H,B.gid,F,b.length,L.tilewidth,L.tileheight),_.rotation=B.rotation,_.flipX=B.flipped,ae.push(_)):(w=p?null:new S(H,-1,F,b.length,L.tilewidth,L.tileheight),ae.push(w)),F++,F===M.width&&(b.push(ae),F=0,ae=[])}H.data=b,g.push(H)}return g},"ParseTileLayers");o.exports=O},24619:(o,m,s)=>{/** + */var u=s(41868),T=s(91907),A=s(79677),c=s(6641),d=s(95540),h=s(14977),f=s(29920),S=s(23029),R=v(function(L,p){for(var N=d(L,"infinite",!1),g=[],C=[],P=A(L);P.i0;){if(P.i>=P.layers.length){if(C.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}P=C.pop();continue}var M=P.layers[P.i];if(P.i++,M.type!=="tilelayer"){if(M.type==="group"){var D=A(L,M,P);C.push(P),P=D}continue}if(M.compression){console.warn("TilemapParser.parseTiledJSON - Layer compression is unsupported, skipping layer '"+M.name+"'");continue}else if(M.encoding&&M.encoding==="base64"){if(M.chunks)for(var G=0;G0?(b=new S(H,B.gid,q,J,L.tilewidth,L.tileheight),b.rotation=B.rotation,b.flipX=B.flipped,_[J][q]=b):(w=p?null:new S(H,-1,q,J,L.tilewidth,L.tileheight),_[J][q]=w),F++,F===Q.width&&(j++,F=0)}}else{H=new h({name:P.name+M.name,id:M.id,x:P.x+d(M,"offsetx",0)+M.x,y:P.y+d(M,"offsety",0)+M.y,width:M.width,height:M.height,tileWidth:L.tilewidth,tileHeight:L.tileheight,alpha:P.opacity*M.opacity,visible:P.visible&&M.visible,properties:d(M,"properties",[]),orientation:c(L.orientation)}),H.orientation===T.HEXAGONAL&&(H.hexSideLength=L.hexsidelength,H.staggerAxis=L.staggeraxis,H.staggerIndex=L.staggerindex);for(var ne=[],re=0,oe=M.data.length;re0?(b=new S(H,B.gid,F,_.length,L.tilewidth,L.tileheight),b.rotation=B.rotation,b.flipX=B.flipped,ne.push(b)):(w=p?null:new S(H,-1,F,_.length,L.tilewidth,L.tileheight),ne.push(w)),F++,F===M.width&&(_.push(ne),F=0,ne=[])}H.data=_,g.push(H)}return g},"ParseTileLayers");o.exports=R},24619:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(33629),T=s(16536),d=s(52205),c=s(57880),A=P(function(h){for(var f=[],S=[],O=null,L,p=0;p1){var C=void 0,v=void 0;if(Array.isArray(N.tiles)){C=C||{},v=v||{};for(var M=0;M{/** + */var u=s(33629),T=s(16536),A=s(52205),c=s(57880),d=v(function(h){for(var f=[],S=[],R=null,L,p=0;p1){var C=void 0,P=void 0;if(Array.isArray(N.tiles)){C=C||{},P=P||{};for(var M=0;M{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){for(var T=0;T0){var A={},h={},f,S,O;if(Array.isArray(d.edgecolors))for(f=0;f{/** + */var O=v(function(s,u){for(var T=0;T0){var d={},h={},f,S,R;if(Array.isArray(A.edgecolors))for(f=0;f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={AssignTileProperties:s(51233),Base64Decode:s(41868),BuildTilesetIndex:s(84101),CreateGroupLayer:s(79677),ParseGID:s(29920),ParseImageLayers:s(12635),ParseJSONTiled:s(46594),ParseObject:s(52205),ParseObjectLayers:s(22611),ParseTileLayers:s(28200),ParseTilesets:s(24619)}},33385:(o,m,s)=>{/** + */o.exports={AssignTileProperties:s(51233),Base64Decode:s(41868),BuildTilesetIndex:s(84101),CreateGroupLayer:s(79677),ParseGID:s(29920),ParseImageLayers:s(12635),ParseJSONTiled:s(46594),ParseObject:s(52205),ParseObjectLayers:s(22611),ParseTileLayers:s(28200),ParseTilesets:s(24619)}},33385:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(37277),d=s(44594),c=s(94880),A=s(72905),h=new u({initialize:P(function(S){this.scene=S,this.systems=S.sys,this.now=0,this.startTime=0,this.timeScale=1,this.paused=!1,this._active=[],this._pendingInsertion=[],this._pendingRemoval=[],S.sys.events.once(d.BOOT,this.boot,this),S.sys.events.on(d.START,this.start,this)},"Clock"),boot:function(){this.now=this.systems.game.loop.time,this.systems.events.once(d.DESTROY,this.destroy,this)},start:function(){this.startTime=this.systems.game.loop.time;var f=this.systems.events;f.on(d.PRE_UPDATE,this.preUpdate,this),f.on(d.UPDATE,this.update,this),f.once(d.SHUTDOWN,this.shutdown,this)},addEvent:function(f){var S;return f instanceof c?(S=f,this.removeEvent(S),S.elapsed=S.startAt,S.hasDispatched=!1,S.repeatCount=S.repeat===-1||S.loop?999999999999:S.repeat):S=new c(f),this._pendingInsertion.push(S),S},delayedCall:function(f,S,O,L){return this.addEvent({delay:f,callback:S,args:O,callbackScope:L})},clearPendingEvents:function(){return this._pendingInsertion=[],this},removeEvent:function(f){Array.isArray(f)||(f=[f]);for(var S=0;S-1&&this._active.splice(p,1),L.destroy()}for(O=0;O=L.delay)){var p=L.elapsed-L.delay;if(L.elapsed=L.delay,!L.hasDispatched&&L.callback&&(L.hasDispatched=!0,L.callback.apply(L.callbackScope,L.args)),L.repeatCount>0){if(L.repeatCount--,p>=L.delay)for(;p>=L.delay&&L.repeatCount>0;)L.callback&&L.callback.apply(L.callbackScope,L.args),p-=L.delay,L.repeatCount--;L.elapsed=p,L.hasDispatched=!1}else L.hasDispatched&&this._pendingRemoval.push(L)}}}},shutdown:function(){var f;for(f=0;f{/** + */var u=s(83419),T=s(37277),A=s(44594),c=s(94880),d=s(72905),h=new u({initialize:v(function(S){this.scene=S,this.systems=S.sys,this.now=0,this.startTime=0,this.timeScale=1,this.paused=!1,this._active=[],this._pendingInsertion=[],this._pendingRemoval=[],S.sys.events.once(A.BOOT,this.boot,this),S.sys.events.on(A.START,this.start,this)},"Clock"),boot:function(){this.now=this.systems.game.loop.time,this.systems.events.once(A.DESTROY,this.destroy,this)},start:function(){this.startTime=this.systems.game.loop.time;var f=this.systems.events;f.on(A.PRE_UPDATE,this.preUpdate,this),f.on(A.UPDATE,this.update,this),f.once(A.SHUTDOWN,this.shutdown,this)},addEvent:function(f){var S;return f instanceof c?(S=f,this.removeEvent(S),S.elapsed=S.startAt,S.hasDispatched=!1,S.repeatCount=S.repeat===-1||S.loop?999999999999:S.repeat):S=new c(f),this._pendingInsertion.push(S),S},delayedCall:function(f,S,R,L){return this.addEvent({delay:f,callback:S,args:R,callbackScope:L})},clearPendingEvents:function(){return this._pendingInsertion=[],this},removeEvent:function(f){Array.isArray(f)||(f=[f]);for(var S=0;S-1&&this._active.splice(p,1),L.destroy()}for(R=0;R=L.delay)){var p=L.elapsed-L.delay;if(L.elapsed=L.delay,!L.hasDispatched&&L.callback&&(L.hasDispatched=!0,L.callback.apply(L.callbackScope,L.args)),L.repeatCount>0){if(L.repeatCount--,p>=L.delay)for(;p>=L.delay&&L.repeatCount>0;)L.callback&&L.callback.apply(L.callbackScope,L.args),p-=L.delay,L.repeatCount--;L.elapsed=p,L.hasDispatched=!1}else L.hasDispatched&&this._pendingRemoval.push(L)}}}},shutdown:function(){var f;for(f=0;f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(50792),d=s(39429),c=s(95540),A=s(44594),h=s(89809),f=new u({Extends:T,initialize:P(function(O,L){T.call(this),this.scene=O,this.systems=O.sys,this.elapsed=0,this.paused=!0,this.complete=!1,this.totalComplete=0,this.loop=0,this.iteration=0,this.events=[];var p=this.systems.events;p.on(A.PRE_UPDATE,this.preUpdate,this),p.on(A.UPDATE,this.update,this),p.once(A.SHUTDOWN,this.destroy,this),L&&this.add(L)},"Timeline"),preUpdate:function(S,O){this.paused||(this.elapsed+=O)},update:function(){if(!(this.paused||this.complete)){var S,O=this.events,L=!1,p=this.systems,N;for(S=0;S=O.length&&(this.loop!==0&&(this.loop===-1||this.loop>this.iteration)?(this.iteration++,this.reset(!0)):this.complete=!0),this.complete&&this.emit(h.COMPLETE,this)}},play:function(S){return S===void 0&&(S=!0),this.paused=!1,this.complete=!1,this.totalComplete=0,S&&this.reset(),this},pause:function(){return this.paused=!0,this},repeat:function(S){return(S===void 0||S===!0)&&(S=-1),S===!1&&(S=0),this.loop=S,this},resume:function(){return this.paused=!1,this},stop:function(){return this.paused=!0,this.complete=!0,this},reset:function(S){S===void 0&&(S=!1),this.elapsed=0,S||(this.iteration=0);for(var O=0;O0&&(L=O[O.length-1].time);for(var p=0;p{/** + */var u=s(83419),T=s(50792),A=s(39429),c=s(95540),d=s(44594),h=s(89809),f=new u({Extends:T,initialize:v(function(R,L){T.call(this),this.scene=R,this.systems=R.sys,this.elapsed=0,this.paused=!0,this.complete=!1,this.totalComplete=0,this.loop=0,this.iteration=0,this.events=[];var p=this.systems.events;p.on(d.PRE_UPDATE,this.preUpdate,this),p.on(d.UPDATE,this.update,this),p.once(d.SHUTDOWN,this.destroy,this),L&&this.add(L)},"Timeline"),preUpdate:function(S,R){this.paused||(this.elapsed+=R)},update:function(){if(!(this.paused||this.complete)){var S,R=this.events,L=!1,p=this.systems,N;for(S=0;S=R.length&&(this.loop!==0&&(this.loop===-1||this.loop>this.iteration)?(this.iteration++,this.reset(!0)):this.complete=!0),this.complete&&this.emit(h.COMPLETE,this)}},play:function(S){return S===void 0&&(S=!0),this.paused=!1,this.complete=!1,this.totalComplete=0,S&&this.reset(),this},pause:function(){return this.paused=!0,this},repeat:function(S){return(S===void 0||S===!0)&&(S=-1),S===!1&&(S=0),this.loop=S,this},resume:function(){return this.paused=!1,this},stop:function(){return this.paused=!0,this.complete=!0,this},reset:function(S){S===void 0&&(S=!1),this.elapsed=0,S||(this.iteration=0);for(var R=0;R0&&(L=R[R.length-1].time);for(var p=0;p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(95540),d=new u({initialize:P(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)},"TimerEvent"),reset:function(c){if(this.delay=T(c,"delay",0),this.repeat=T(c,"repeat",0),this.loop=T(c,"loop",!1),this.callback=T(c,"callback",void 0),this.callbackScope=T(c,"callbackScope",this),this.args=T(c,"args",[]),this.timeScale=T(c,"timeScale",1),this.startAt=T(c,"startAt",0),this.paused=T(c,"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 c=this.delay+this.delay*this.repeat,A=this.elapsed+this.delay*(this.repeat-this.repeatCount);return A/c}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(c){c===void 0&&(c=!1),this.elapsed=this.delay,this.hasDispatched=!c,this.repeatCount=0},destroy:function(){this.callback=void 0,this.callbackScope=void 0,this.args=[]}});o.exports=d},35945:o=>{/** + */var u=s(83419),T=s(95540),A=new u({initialize:v(function(d){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(d)},"TimerEvent"),reset:function(c){if(this.delay=T(c,"delay",0),this.repeat=T(c,"repeat",0),this.loop=T(c,"loop",!1),this.callback=T(c,"callback",void 0),this.callbackScope=T(c,"callbackScope",this),this.args=T(c,"args",[]),this.timeScale=T(c,"timeScale",1),this.startAt=T(c,"startAt",0),this.paused=T(c,"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 c=this.delay+this.delay*this.repeat,d=this.elapsed+this.delay*(this.repeat-this.repeatCount);return d/c}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(c){c===void 0&&(c=!1),this.elapsed=this.delay,this.hasDispatched=!c,this.repeatCount=0},destroy:function(){this.callback=void 0,this.callbackScope=void 0,this.args=[]}});o.exports=A},35945:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports="complete"},89809:(o,m,s)=>{/** + */o.exports="complete"},89809:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={COMPLETE:s(35945)}},90291:(o,m,s)=>{/** + */o.exports={COMPLETE:s(35945)}},90291:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={Clock:s(33385),Events:s(89809),Timeline:s(96120),TimerEvent:s(94880)}},40382:(o,m,s)=>{/** + */o.exports={Clock:s(33385),Events:s(89809),Timeline:s(96120),TimerEvent:s(94880)}},40382:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(72905),T=s(83419),d=s(43491),c=s(88032),A=s(37277),h=s(44594),f=s(93109),S=s(86081),O=s(8357),L=s(43960),p=s(26012),N=new T({initialize:P(function(C){this.scene=C,this.events=C.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(h.BOOT,this.boot,this),this.events.on(h.START,this.start,this)},"TweenManager"),boot:function(){this.events.once(h.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(h.UPDATE,this.update,this),this.events.once(h.SHUTDOWN,this.shutdown,this)},create:function(g){Array.isArray(g)||(g=[g]);for(var C=[],v=0;v-1},existing:function(g){return this.has(g)||this.tweens.push(g.reset()),this},addCounter:function(g){var C=c(this,g);return this.tweens.push(C.reset()),C},stagger:function(g,C){return f(g,C)},setLagSmooth:function(g,C){return g===void 0&&(g=1/1e-8),C===void 0&&(C=0),this.maxLag=g,this.lagSkip=Math.min(C,this.maxLag),this},setFps:function(g){return g===void 0&&(g=240),this.gap=1e3/g,this.nextTime=this.time*1e3+this.gap,this},getDelta:function(g){var C=Date.now()-this.prevTime;C>this.maxLag&&(this.startTime+=C-this.lagSkip),this.prevTime+=C;var v=this.prevTime-this.startTime,M=v-this.nextTime,D=v-this.time*1e3;return M>0||g?(v/=1e3,this.time=v,this.nextTime+=M+(M>=this.gap?4:this.gap-M)):D=0,D},tick:function(){return this.step(!0),this},update:function(){this.paused||this.step(!1)},step:function(g){g===void 0&&(g=!1);var C=this.getDelta(g);if(!(C<=0)){this.processing=!0;var v,M,D=[],G=this.tweens;for(v=0;v0){for(v=0;v-1&&(M.isPendingRemove()||M.isDestroyed())&&(G.splice(B,1),M.destroy())}D.length=0}this.processing=!1}},remove:function(g){return this.processing?g.setPendingRemoveState():(u(this.tweens,g),g.setRemovedState()),this},reset:function(g){return this.existing(g),g.seek(),g.setActiveState(),this},makeActive:function(g){return this.existing(g),g.setActiveState(),this},each:function(g,C){var v,M=[null];for(v=1;v{/** + */var u=s(72905),T=s(83419),A=s(43491),c=s(88032),d=s(37277),h=s(44594),f=s(93109),S=s(86081),R=s(8357),L=s(43960),p=s(26012),N=new T({initialize:v(function(C){this.scene=C,this.events=C.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(h.BOOT,this.boot,this),this.events.on(h.START,this.start,this)},"TweenManager"),boot:function(){this.events.once(h.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(h.UPDATE,this.update,this),this.events.once(h.SHUTDOWN,this.shutdown,this)},create:function(g){Array.isArray(g)||(g=[g]);for(var C=[],P=0;P-1},existing:function(g){return this.has(g)||this.tweens.push(g.reset()),this},addCounter:function(g){var C=c(this,g);return this.tweens.push(C.reset()),C},stagger:function(g,C){return f(g,C)},setLagSmooth:function(g,C){return g===void 0&&(g=1/1e-8),C===void 0&&(C=0),this.maxLag=g,this.lagSkip=Math.min(C,this.maxLag),this},setFps:function(g){return g===void 0&&(g=240),this.gap=1e3/g,this.nextTime=this.time*1e3+this.gap,this},getDelta:function(g){var C=Date.now()-this.prevTime;C>this.maxLag&&(this.startTime+=C-this.lagSkip),this.prevTime+=C;var P=this.prevTime-this.startTime,M=P-this.nextTime,D=P-this.time*1e3;return M>0||g?(P/=1e3,this.time=P,this.nextTime+=M+(M>=this.gap?4:this.gap-M)):D=0,D},tick:function(){return this.step(!0),this},update:function(){this.paused||this.step(!1)},step:function(g){g===void 0&&(g=!1);var C=this.getDelta(g);if(!(C<=0)){this.processing=!0;var P,M,D=[],G=this.tweens;for(P=0;P0){for(P=0;P-1&&(M.isPendingRemove()||M.isDestroyed())&&(G.splice(B,1),M.destroy())}D.length=0}this.processing=!1}},remove:function(g){return this.processing?g.setPendingRemoveState():(u(this.tweens,g),g.setRemovedState()),this},reset:function(g){return this.existing(g),g.seek(),g.setActiveState(),this},makeActive:function(g){return this.existing(g),g.setActiveState(),this},each:function(g,C){var P,M=[null];for(P=1;P{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){return s&&s.hasOwnProperty(u)?s[u]:T},"GetBoolean");o.exports=m},6113:(o,m,s)=>{/** + */var O=v(function(s,u,T){return s&&s.hasOwnProperty(u)?s[u]:T},"GetBoolean");o.exports=O},6113:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(62640),T=s(35355),d=P(function(c,A){var h=u.Power0;if(typeof c=="string")if(u.hasOwnProperty(c))h=u[c];else{var f="";if(c.indexOf(".")){f=c.substring(c.indexOf(".")+1);var S=f.toLowerCase();S==="in"?f="easeIn":S==="out"?f="easeOut":S==="inout"&&(f="easeInOut")}c=T(c.substring(0,c.indexOf(".")+1)+f),u.hasOwnProperty(c)&&(h=u[c])}else typeof c=="function"&&(h=c);if(!A)return h;var O=A.slice(0);return O.unshift(0),function(L){return O[0]=L,h.apply(this,O)}},"GetEaseFunction");o.exports=d},91389:(o,m,s)=>{/** + */var u=s(62640),T=s(35355),A=v(function(c,d){var h=u.Power0;if(typeof c=="string")if(u.hasOwnProperty(c))h=u[c];else{var f="";if(c.indexOf(".")){f=c.substring(c.indexOf(".")+1);var S=f.toLowerCase();S==="in"?f="easeIn":S==="out"?f="easeOut":S==="inout"&&(f="easeInOut")}c=T(c.substring(0,c.indexOf(".")+1)+f),u.hasOwnProperty(c)&&(h=u[c])}else typeof c=="function"&&(h=c);if(!d)return h;var R=d.slice(0);return R.unshift(0),function(L){return R[0]=L,h.apply(this,R)}},"GetEaseFunction");o.exports=A},91389:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(89318),T=s(77259),d=s(28392),c={bezier:u,catmull:T,catmullrom:T,linear:d},A=P(function(h){if(h===null)return null;var f=c.linear;return typeof h=="string"?c.hasOwnProperty(h)&&(f=c[h]):typeof h=="function"&&(f=h),f},"GetInterpolationFunction");o.exports=A},55292:o=>{/** + */var u=s(89318),T=s(77259),A=s(28392),c={bezier:u,catmull:T,catmullrom:T,linear:A},d=v(function(h){if(h===null)return null;var f=c.linear;return typeof h=="string"?c.hasOwnProperty(h)&&(f=c[h]):typeof h=="function"&&(f=h),f},"GetInterpolationFunction");o.exports=d},55292:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){var d;if(s.hasOwnProperty(u)){var c=typeof s[u];c==="function"?d=P(function(A,h,f,S,O,L){return s[u](A,h,f,S,O,L)},"valueCallback"):d=P(function(){return s[u]},"valueCallback")}else typeof T=="function"?d=T:d=P(function(){return T},"valueCallback");return d},"GetNewValue");o.exports=m},82985:(o,m,s)=>{/** + */var O=v(function(s,u,T){var A;if(s.hasOwnProperty(u)){var c=typeof s[u];c==="function"?A=v(function(d,h,f,S,R,L){return s[u](d,h,f,S,R,L)},"valueCallback"):A=v(function(){return s[u]},"valueCallback")}else typeof T=="function"?A=T:A=v(function(){return T},"valueCallback");return A},"GetNewValue");o.exports=O},82985:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(81076),T=P(function(d){var c,A=[];if(d.hasOwnProperty("props"))for(c in d.props)c.substring(0,1)!=="_"&&A.push({key:c,value:d.props[c]});else for(c in d)u.indexOf(c)===-1&&c.substring(0,1)!=="_"&&A.push({key:c,value:d[c]});return A},"GetProps");o.exports=T},62329:(o,m,s)=>{/** + */var u=s(81076),T=v(function(A){var c,d=[];if(A.hasOwnProperty("props"))for(c in A.props)c.substring(0,1)!=="_"&&d.push({key:c,value:A.props[c]});else for(c in A)u.indexOf(c)===-1&&c.substring(0,1)!=="_"&&d.push({key:c,value:A[c]});return d},"GetProps");o.exports=T},62329:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(35154),T=P(function(d){var c=u(d,"targets",null);return c===null||(typeof c=="function"&&(c=c.call()),Array.isArray(c)||(c=[c])),c},"GetTargets");o.exports=T},17777:(o,m,s)=>{/** + */var u=s(35154),T=v(function(A){var c=u(A,"targets",null);return c===null||(typeof c=="function"&&(c=c.call()),Array.isArray(c)||(c=[c])),c},"GetTargets");o.exports=T},17777:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(30976),T=s(99472);function d(S){return!!S.getActive&&typeof S.getActive=="function"}P(d,"hasGetActive");function c(S){return!!S.getStart&&typeof S.getStart=="function"}P(c,"hasGetStart");function A(S){return!!S.getEnd&&typeof S.getEnd=="function"}P(A,"hasGetEnd");function h(S){return c(S)||A(S)||d(S)}P(h,"hasGetters");var f=P(function(S,O){var L,p=P(function(Q,te,z){return z},"getEnd"),N=P(function(Q,te,z){return z},"getStart"),g=null,C=typeof O;if(C==="number")p=P(function(){return O},"getEnd");else if(Array.isArray(O))N=P(function(){return O[0]},"getStart"),p=P(function(){return O[O.length-1]},"getEnd");else if(C==="string"){var v=O.toLowerCase(),M=v.substring(0,6)==="random",D=v.substring(0,3)==="int";if(M||D){var G=v.indexOf("("),H=v.indexOf(")"),B=v.indexOf(",");if(G&&H&&B){var _=parseFloat(v.substring(G+1,B)),w=parseFloat(v.substring(B+1,H));M?p=P(function(){return T(_,w)},"getEnd"):p=P(function(){return u(_,w)},"getEnd")}else throw new Error("invalid random() format")}else{v=v[0];var b=parseFloat(O.substr(2));switch(v){case"+":p=P(function(Q,te,z){return z+b},"getEnd");break;case"-":p=P(function(Q,te,z){return z-b},"getEnd");break;case"*":p=P(function(Q,te,z){return z*b},"getEnd");break;case"/":p=P(function(Q,te,z){return z/b},"getEnd");break;default:p=P(function(){return parseFloat(O)},"getEnd")}}}else if(C==="function")p=O;else if(C==="object")if(h(O))d(O)&&(g=O.getActive),A(O)&&(p=O.getEnd),c(O)&&(N=O.getStart);else if(O.hasOwnProperty("value"))L=f(S,O.value);else{var F=O.hasOwnProperty("to"),k=O.hasOwnProperty("from"),V=O.hasOwnProperty("start");if(F&&(k||V)){if(L=f(S,O.to),V){var Z=f(S,O.start);L.getActive=Z.getEnd}if(k){var $=f(S,O.from);L.getStart=$.getEnd}}}return L||(L={getActive:g,getEnd:p,getStart:N}),L},"GetValueOp");o.exports=f},88032:(o,m,s)=>{/** + */var u=s(30976),T=s(99472);function A(S){return!!S.getActive&&typeof S.getActive=="function"}v(A,"hasGetActive");function c(S){return!!S.getStart&&typeof S.getStart=="function"}v(c,"hasGetStart");function d(S){return!!S.getEnd&&typeof S.getEnd=="function"}v(d,"hasGetEnd");function h(S){return c(S)||d(S)||A(S)}v(h,"hasGetters");var f=v(function(S,R){var L,p=v(function(Q,te,z){return z},"getEnd"),N=v(function(Q,te,z){return z},"getStart"),g=null,C=typeof R;if(C==="number")p=v(function(){return R},"getEnd");else if(Array.isArray(R))N=v(function(){return R[0]},"getStart"),p=v(function(){return R[R.length-1]},"getEnd");else if(C==="string"){var P=R.toLowerCase(),M=P.substring(0,6)==="random",D=P.substring(0,3)==="int";if(M||D){var G=P.indexOf("("),H=P.indexOf(")"),B=P.indexOf(",");if(G&&H&&B){var b=parseFloat(P.substring(G+1,B)),w=parseFloat(P.substring(B+1,H));M?p=v(function(){return T(b,w)},"getEnd"):p=v(function(){return u(b,w)},"getEnd")}else throw new Error("invalid random() format")}else{P=P[0];var _=parseFloat(R.substr(2));switch(P){case"+":p=v(function(Q,te,z){return z+_},"getEnd");break;case"-":p=v(function(Q,te,z){return z-_},"getEnd");break;case"*":p=v(function(Q,te,z){return z*_},"getEnd");break;case"/":p=v(function(Q,te,z){return z/_},"getEnd");break;default:p=v(function(){return parseFloat(R)},"getEnd")}}}else if(C==="function")p=R;else if(C==="object")if(h(R))A(R)&&(g=R.getActive),d(R)&&(p=R.getEnd),c(R)&&(N=R.getStart);else if(R.hasOwnProperty("value"))L=f(S,R.value);else{var F=R.hasOwnProperty("to"),x=R.hasOwnProperty("from"),V=R.hasOwnProperty("start");if(F&&(x||V)){if(L=f(S,R.to),V){var Z=f(S,R.start);L.getActive=Z.getEnd}if(x){var $=f(S,R.from);L.getStart=$.getEnd}}}return L||(L={getActive:g,getEnd:p,getStart:N}),L},"GetValueOp");o.exports=f},88032:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(70402),T=s(69902),d=s(23568),c=s(57355),A=s(6113),h=s(55292),f=s(35154),S=s(17777),O=s(269),L=s(86081),p=P(function(N,g,C){if(g instanceof L)return g.parent=N,g;C===void 0?C=T:C=O(T,C);var v=f(g,"from",0),M=f(g,"to",1),D=[{value:v}],G=f(g,"delay",C.delay),H=f(g,"easeParams",C.easeParams),B=f(g,"ease",C.ease),_=S("value",M),w=new L(N,D),b=w.add(0,"value",_.getEnd,_.getStart,_.getActive,A(f(g,"ease",B),f(g,"easeParams",H)),h(g,"delay",G),f(g,"duration",C.duration),c(g,"yoyo",C.yoyo),f(g,"hold",C.hold),f(g,"repeat",C.repeat),f(g,"repeatDelay",C.repeatDelay),!1,!1);b.start=v,b.current=v,w.completeDelay=d(g,"completeDelay",0),w.loop=Math.round(d(g,"loop",0)),w.loopDelay=Math.round(d(g,"loopDelay",0)),w.paused=c(g,"paused",!1),w.persist=c(g,"persist",!1),w.callbackScope=f(g,"callbackScope",w);for(var F=u.TYPES,k=0;k{/** + */var u=s(70402),T=s(69902),A=s(23568),c=s(57355),d=s(6113),h=s(55292),f=s(35154),S=s(17777),R=s(269),L=s(86081),p=v(function(N,g,C){if(g instanceof L)return g.parent=N,g;C===void 0?C=T:C=R(T,C);var P=f(g,"from",0),M=f(g,"to",1),D=[{value:P}],G=f(g,"delay",C.delay),H=f(g,"easeParams",C.easeParams),B=f(g,"ease",C.ease),b=S("value",M),w=new L(N,D),_=w.add(0,"value",b.getEnd,b.getStart,b.getActive,d(f(g,"ease",B),f(g,"easeParams",H)),h(g,"delay",G),f(g,"duration",C.duration),c(g,"yoyo",C.yoyo),f(g,"hold",C.hold),f(g,"repeat",C.repeat),f(g,"repeatDelay",C.repeatDelay),!1,!1);_.start=P,_.current=P,w.completeDelay=A(g,"completeDelay",0),w.loop=Math.round(A(g,"loop",0)),w.loopDelay=Math.round(A(g,"loopDelay",0)),w.paused=c(g,"paused",!1),w.persist=c(g,"persist",!1),w.callbackScope=f(g,"callbackScope",w);for(var F=u.TYPES,x=0;x{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(6113),T=s(35154),d=s(36383),c=P(function(A,h){h===void 0&&(h={});var f,S=T(h,"start",0),O=T(h,"ease",null),L=T(h,"grid",null),p=T(h,"from",0),N=p==="first",g=p==="center",C=p==="last",v=typeof p=="number",M=Array.isArray(A),D=parseFloat(M?A[0]:A),G=M?parseFloat(A[1]):0,H=Math.max(D,G);if(M&&(S+=D),L){var B=L[0],_=L[1],w=0,b=0,F=0,k=0,V=[];C?(w=B-1,b=_-1):v?(w=p%B,b=Math.floor(p/B)):g&&(w=(B-1)/2,b=(_-1)/2);for(var Z=d.MIN_SAFE_INTEGER,$=0;$<_;$++){V[$]=[];for(var Q=0;QZ&&(Z=te),V[$][Q]=te}}}var z=O?u(O):null;return L?f=P(function(j,x,X,q){var J=0,ae=q%B,re=Math.floor(q/B);ae>=0&&ae=0&&re<_&&(J=V[re][ae]);var oe;if(M){var Ee=G-D;z?oe=J/Z*Ee*z(J/Z):oe=J/Z*Ee}else z?oe=J*D*z(J/Z):oe=J*D;return oe+S},"result"):f=P(function(j,x,X,q,J){J--;var ae;N?ae=q:g?ae=Math.abs(J/2-q):C?ae=J-q:v&&(ae=Math.abs(p-q));var re;if(M){var oe;g?oe=(G-D)/J*(ae*2):oe=(G-D)/J*ae,z?re=oe*z(ae/J):re=oe}else z?re=J*H*z(ae/J):re=ae*D;return re+S},"result"),f},"StaggerBuilder");o.exports=c},8357:(o,m,s)=>{/** + */var u=s(6113),T=s(35154),A=s(36383),c=v(function(d,h){h===void 0&&(h={});var f,S=T(h,"start",0),R=T(h,"ease",null),L=T(h,"grid",null),p=T(h,"from",0),N=p==="first",g=p==="center",C=p==="last",P=typeof p=="number",M=Array.isArray(d),D=parseFloat(M?d[0]:d),G=M?parseFloat(d[1]):0,H=Math.max(D,G);if(M&&(S+=D),L){var B=L[0],b=L[1],w=0,_=0,F=0,x=0,V=[];C?(w=B-1,_=b-1):P?(w=p%B,_=Math.floor(p/B)):g&&(w=(B-1)/2,_=(b-1)/2);for(var Z=A.MIN_SAFE_INTEGER,$=0;$Z&&(Z=te),V[$][Q]=te}}}var z=R?u(R):null;return L?f=v(function(j,k,X,q){var J=0,ne=q%B,re=Math.floor(q/B);ne>=0&&ne=0&&re{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(70402),T=s(69902),d=s(23568),c=s(57355),A=s(6113),h=s(91389),f=s(55292),S=s(82985),O=s(62329),L=s(35154),p=s(17777),N=s(269),g=s(86081),C=P(function(v,M,D){if(M instanceof g)return M.parent=v,M;D===void 0?D=T:D=N(T,D);var G=O(M);!G&&D.targets&&(G=D.targets);for(var H=S(M),B=L(M,"delay",D.delay),_=L(M,"duration",D.duration),w=L(M,"easeParams",D.easeParams),b=L(M,"ease",D.ease),F=L(M,"hold",D.hold),k=L(M,"repeat",D.repeat),V=L(M,"repeatDelay",D.repeatDelay),Z=c(M,"yoyo",D.yoyo),$=c(M,"flipX",D.flipX),Q=c(M,"flipY",D.flipY),te=L(M,"interpolation",D.interpolation),z=P(function(Le,ve,ye,De){if(ye==="texture"){var ke=De,it=void 0;Array.isArray(De)?(ke=De[0],it=De[1]):De.hasOwnProperty("value")?(ke=De.value,Array.isArray(De.value)?(ke=De.value[0],it=De.value[1]):typeof De.value=="string"&&(ke=De.value)):typeof De=="string"&&(ke=De),Le.addFrame(ve,ke,it,f(De,"delay",B),L(De,"duration",_),L(De,"hold",F),L(De,"repeat",k),L(De,"repeatDelay",V),c(De,"flipX",$),c(De,"flipY",Q))}else{var lt=p(ye,De),at=h(L(De,"interpolation",te));Le.add(ve,ye,lt.getEnd,lt.getStart,lt.getActive,A(L(De,"ease",b),L(De,"easeParams",w)),f(De,"delay",B),L(De,"duration",_),c(De,"yoyo",Z),L(De,"hold",F),L(De,"repeat",k),L(De,"repeatDelay",V),c(De,"flipX",$),c(De,"flipY",Q),at,at?De:null)}},"addTarget"),j=new g(v,G),x=0;x{/** + */var u=s(70402),T=s(69902),A=s(23568),c=s(57355),d=s(6113),h=s(91389),f=s(55292),S=s(82985),R=s(62329),L=s(35154),p=s(17777),N=s(269),g=s(86081),C=v(function(P,M,D){if(M instanceof g)return M.parent=P,M;D===void 0?D=T:D=N(T,D);var G=R(M);!G&&D.targets&&(G=D.targets);for(var H=S(M),B=L(M,"delay",D.delay),b=L(M,"duration",D.duration),w=L(M,"easeParams",D.easeParams),_=L(M,"ease",D.ease),F=L(M,"hold",D.hold),x=L(M,"repeat",D.repeat),V=L(M,"repeatDelay",D.repeatDelay),Z=c(M,"yoyo",D.yoyo),$=c(M,"flipX",D.flipX),Q=c(M,"flipY",D.flipY),te=L(M,"interpolation",D.interpolation),z=v(function(Le,Pe,ye,De){if(ye==="texture"){var xe=De,it=void 0;Array.isArray(De)?(xe=De[0],it=De[1]):De.hasOwnProperty("value")?(xe=De.value,Array.isArray(De.value)?(xe=De.value[0],it=De.value[1]):typeof De.value=="string"&&(xe=De.value)):typeof De=="string"&&(xe=De),Le.addFrame(Pe,xe,it,f(De,"delay",B),L(De,"duration",b),L(De,"hold",F),L(De,"repeat",x),L(De,"repeatDelay",V),c(De,"flipX",$),c(De,"flipY",Q))}else{var lt=p(ye,De),at=h(L(De,"interpolation",te));Le.add(Pe,ye,lt.getEnd,lt.getStart,lt.getActive,d(L(De,"ease",_),L(De,"easeParams",w)),f(De,"delay",B),L(De,"duration",b),c(De,"yoyo",Z),L(De,"hold",F),L(De,"repeat",x),L(De,"repeatDelay",V),c(De,"flipX",$),c(De,"flipY",Q),at,at?De:null)}},"addTarget"),j=new g(P,G),k=0;k{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(70402),T=s(23568),d=s(57355),c=s(62329),A=s(35154),h=s(8357),f=s(43960),S=P(function(O,L){if(L instanceof f)return L.parent=O,L;var p=new f(O);p.startDelay=A(L,"delay",0),p.completeDelay=T(L,"completeDelay",0),p.loop=Math.round(T(L,"loop",A(L,"repeat",0))),p.loopDelay=Math.round(T(L,"loopDelay",A(L,"repeatDelay",0))),p.paused=d(L,"paused",!1),p.persist=d(L,"persist",!1),p.callbackScope=A(L,"callbackScope",p);var N,g=u.TYPES;for(N=0;N{/** + */var u=s(70402),T=s(23568),A=s(57355),c=s(62329),d=s(35154),h=s(8357),f=s(43960),S=v(function(R,L){if(L instanceof f)return L.parent=R,L;var p=new f(R);p.startDelay=d(L,"delay",0),p.completeDelay=T(L,"completeDelay",0),p.loop=Math.round(T(L,"loop",d(L,"repeat",0))),p.loopDelay=Math.round(T(L,"loopDelay",d(L,"repeatDelay",0))),p.paused=A(L,"paused",!1),p.persist=A(L,"persist",!1),p.callbackScope=d(L,"callbackScope",p);var N,g=u.TYPES;for(N=0;N{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -5985,204 +5985,204 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports="yoyo"},842:(o,m,s)=>{/** + */o.exports="yoyo"},842:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={TWEEN_ACTIVE:s(73685),TWEEN_COMPLETE:s(98540),TWEEN_LOOP:s(67233),TWEEN_PAUSE:s(2859),TWEEN_RESUME:s(25764),TWEEN_REPEAT:s(98336),TWEEN_START:s(32193),TWEEN_STOP:s(84371),TWEEN_UPDATE:s(70766),TWEEN_YOYO:s(55659)}},43066:(o,m,s)=>{/** + */o.exports={TWEEN_ACTIVE:s(73685),TWEEN_COMPLETE:s(98540),TWEEN_LOOP:s(67233),TWEEN_PAUSE:s(2859),TWEEN_RESUME:s(25764),TWEEN_REPEAT:s(98336),TWEEN_START:s(32193),TWEEN_STOP:s(84371),TWEEN_UPDATE:s(70766),TWEEN_YOYO:s(55659)}},43066:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u={States:s(86353),Builders:s(30231),Events:s(842),TweenManager:s(40382),Tween:s(86081),TweenData:s(48177),TweenFrameData:s(42220),BaseTween:s(70402),TweenChain:s(43960)};o.exports=u},70402:(o,m,s)=>{/** + */var u={States:s(86353),Builders:s(30231),Events:s(842),TweenManager:s(40382),Tween:s(86081),TweenData:s(48177),TweenFrameData:s(42220),BaseTween:s(70402),TweenChain:s(43960)};o.exports=u},70402:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(50792),d=s(842),c=s(86353),A=new u({Extends:T,initialize:P(function(f){T.call(this),this.parent=f,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=c.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},"BaseTween"),setTimeScale:function(h){return this.timeScale=h,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(d.TWEEN_PAUSE,"onPause")),this},resume:function(){return this.paused&&(this.paused=!1,this.dispatchEvent(d.TWEEN_RESUME,"onResume")),this},makeActive:function(){this.parent.makeActive(this),this.dispatchEvent(d.TWEEN_ACTIVE,"onActive")},onCompleteHandler:function(){this.setPendingRemoveState(),this.dispatchEvent(d.TWEEN_COMPLETE,"onComplete")},complete:function(h){return h===void 0&&(h=0),h?(this.setCompleteDelayState(),this.countdown=h):this.onCompleteHandler(),this},completeAfterLoop:function(h){return h===void 0&&(h=0),this.loopCounter>h&&(this.loopCounter=h),this},remove:function(){return this.parent&&this.parent.remove(this),this},stop:function(){return this.parent&&!this.isRemoved()&&!this.isPendingRemove()&&!this.isDestroyed()&&(this.dispatchEvent(d.TWEEN_STOP,"onStop"),this.setPendingRemoveState()),this},updateLoopCountdown:function(h){this.countdown-=h,this.countdown<=0&&(this.setActiveState(),this.dispatchEvent(d.TWEEN_LOOP,"onLoop"))},updateStartCountdown:function(h){return this.countdown-=h,this.countdown<=0&&(this.hasStarted=!0,this.setActiveState(),this.dispatchEvent(d.TWEEN_START,"onStart"),h=0),h},updateCompleteDelay:function(h){this.countdown-=h,this.countdown<=0&&this.onCompleteHandler()},setCallback:function(h,f,S){return S===void 0&&(S=[]),this.callbacks.hasOwnProperty(h)&&(this.callbacks[h]={func:f,params:S}),this},setPendingState:function(){this.state=c.PENDING},setActiveState:function(){this.state=c.ACTIVE},setLoopDelayState:function(){this.state=c.LOOP_DELAY},setCompleteDelayState:function(){this.state=c.COMPLETE_DELAY},setStartDelayState:function(){this.state=c.START_DELAY,this.countdown=this.startDelay,this.hasStarted=!1},setPendingRemoveState:function(){this.state=c.PENDING_REMOVE},setRemovedState:function(){this.state=c.REMOVED},setFinishedState:function(){this.state=c.FINISHED},setDestroyedState:function(){this.state=c.DESTROYED},isPending:function(){return this.state===c.PENDING},isActive:function(){return this.state===c.ACTIVE},isLoopDelayed:function(){return this.state===c.LOOP_DELAY},isCompleteDelayed:function(){return this.state===c.COMPLETE_DELAY},isStartDelayed:function(){return this.state===c.START_DELAY},isPendingRemove:function(){return this.state===c.PENDING_REMOVE},isRemoved:function(){return this.state===c.REMOVED},isFinished:function(){return this.state===c.FINISHED},isDestroyed:function(){return this.state===c.DESTROYED},destroy:function(){this.data&&this.data.forEach(function(h){h.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"],o.exports=A},95042:(o,m,s)=>{/** + */var u=s(83419),T=s(50792),A=s(842),c=s(86353),d=new u({Extends:T,initialize:v(function(f){T.call(this),this.parent=f,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=c.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},"BaseTween"),setTimeScale:function(h){return this.timeScale=h,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(A.TWEEN_PAUSE,"onPause")),this},resume:function(){return this.paused&&(this.paused=!1,this.dispatchEvent(A.TWEEN_RESUME,"onResume")),this},makeActive:function(){this.parent.makeActive(this),this.dispatchEvent(A.TWEEN_ACTIVE,"onActive")},onCompleteHandler:function(){this.setPendingRemoveState(),this.dispatchEvent(A.TWEEN_COMPLETE,"onComplete")},complete:function(h){return h===void 0&&(h=0),h?(this.setCompleteDelayState(),this.countdown=h):this.onCompleteHandler(),this},completeAfterLoop:function(h){return h===void 0&&(h=0),this.loopCounter>h&&(this.loopCounter=h),this},remove:function(){return this.parent&&this.parent.remove(this),this},stop:function(){return this.parent&&!this.isRemoved()&&!this.isPendingRemove()&&!this.isDestroyed()&&(this.dispatchEvent(A.TWEEN_STOP,"onStop"),this.setPendingRemoveState()),this},updateLoopCountdown:function(h){this.countdown-=h,this.countdown<=0&&(this.setActiveState(),this.dispatchEvent(A.TWEEN_LOOP,"onLoop"))},updateStartCountdown:function(h){return this.countdown-=h,this.countdown<=0&&(this.hasStarted=!0,this.setActiveState(),this.dispatchEvent(A.TWEEN_START,"onStart"),h=0),h},updateCompleteDelay:function(h){this.countdown-=h,this.countdown<=0&&this.onCompleteHandler()},setCallback:function(h,f,S){return S===void 0&&(S=[]),this.callbacks.hasOwnProperty(h)&&(this.callbacks[h]={func:f,params:S}),this},setPendingState:function(){this.state=c.PENDING},setActiveState:function(){this.state=c.ACTIVE},setLoopDelayState:function(){this.state=c.LOOP_DELAY},setCompleteDelayState:function(){this.state=c.COMPLETE_DELAY},setStartDelayState:function(){this.state=c.START_DELAY,this.countdown=this.startDelay,this.hasStarted=!1},setPendingRemoveState:function(){this.state=c.PENDING_REMOVE},setRemovedState:function(){this.state=c.REMOVED},setFinishedState:function(){this.state=c.FINISHED},setDestroyedState:function(){this.state=c.DESTROYED},isPending:function(){return this.state===c.PENDING},isActive:function(){return this.state===c.ACTIVE},isLoopDelayed:function(){return this.state===c.LOOP_DELAY},isCompleteDelayed:function(){return this.state===c.COMPLETE_DELAY},isStartDelayed:function(){return this.state===c.START_DELAY},isPendingRemove:function(){return this.state===c.PENDING_REMOVE},isRemoved:function(){return this.state===c.REMOVED},isFinished:function(){return this.state===c.FINISHED},isDestroyed:function(){return this.state===c.DESTROYED},destroy:function(){this.data&&this.data.forEach(function(h){h.destroy()}),this.removeAllListeners(),this.callbacks=null,this.data=null,this.parent=null,this.setDestroyedState()}});d.TYPES=["onActive","onComplete","onLoop","onPause","onRepeat","onResume","onStart","onStop","onUpdate","onYoyo"],o.exports=d},95042:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(83419),T=s(842),d=s(86353),c=new u({initialize:P(function(h,f,S,O,L,p,N,g,C,v){this.tween=h,this.targetIndex=f,this.duration=O,this.totalDuration=0,this.delay=0,this.getDelay=S,this.yoyo=L,this.hold=p,this.repeat=N,this.repeatDelay=g,this.repeatCounter=0,this.flipX=C,this.flipY=v,this.progress=0,this.elapsed=0,this.state=0,this.isCountdown=!1},"BaseTweenData"),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=d.CREATED,this.isCountdown=!1},setDelayState:function(){this.state=d.DELAY,this.isCountdown=!0},setPendingRenderState:function(){this.state=d.PENDING_RENDER,this.isCountdown=!1},setPlayingForwardState:function(){this.state=d.PLAYING_FORWARD,this.isCountdown=!1},setPlayingBackwardState:function(){this.state=d.PLAYING_BACKWARD,this.isCountdown=!1},setHoldState:function(){this.state=d.HOLD_DELAY,this.isCountdown=!0},setRepeatState:function(){this.state=d.REPEAT_DELAY,this.isCountdown=!0},setCompleteState:function(){this.state=d.COMPLETE,this.isCountdown=!1},isCreated:function(){return this.state===d.CREATED},isDelayed:function(){return this.state===d.DELAY},isPendingRender:function(){return this.state===d.PENDING_RENDER},isPlayingForward:function(){return this.state===d.PLAYING_FORWARD},isPlayingBackward:function(){return this.state===d.PLAYING_BACKWARD},isHolding:function(){return this.state===d.HOLD_DELAY},isRepeating:function(){return this.state===d.REPEAT_DELAY},isComplete:function(){return this.state===d.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,h=A.totalTargets,f=this.targetIndex,S=A.targets[f],O=this.key;this.progress=0,this.elapsed=0,this.delay=this.getDelay(S,O,0,f,h,A),this.repeatCounter=this.repeat===-1?d.MAX:this.repeat,this.setPendingRenderState();var L=this.duration+this.hold;this.yoyo&&(L+=this.duration);var p=L+this.repeatDelay;this.totalDuration=this.delay+L,this.repeat===-1?(this.totalDuration+=p*d.MAX,A.isInfinite=!0):this.repeat>0&&(this.totalDuration+=p*this.repeat),this.totalDuration>A.duration&&(A.duration=this.totalDuration),this.delay0&&(this.elapsed=this.delay,this.setDelayState())},onRepeat:function(A,h,f){var S=this.tween,O=S.totalTargets,L=this.targetIndex,p=S.targets[L],N=this.key,g=N!=="texture";if(this.elapsed=A,this.progress=A/this.duration,this.flipX&&p.toggleFlipX(),this.flipY&&p.toggleFlipY(),g&&(h||f)&&(this.start=this.getStartValue(p,N,this.start,L,O,S)),f){this.setPlayingBackwardState(),this.dispatchEvent(T.TWEEN_YOYO,"onYoyo");return}this.repeatCounter--,g&&(this.end=this.getEndValue(p,N,this.start,L,O,S)),this.repeatDelay>0?(this.elapsed=this.repeatDelay-A,g&&(this.current=this.start,p[N]=this.current),this.setRepeatState()):(this.setPlayingForwardState(),this.dispatchEvent(T.TWEEN_REPEAT,"onRepeat"))},destroy:function(){this.tween=null,this.getDelay=null,this.setCompleteState()}});o.exports=c},69902:o=>{/** + */var u=s(83419),T=s(842),A=s(86353),c=new u({initialize:v(function(h,f,S,R,L,p,N,g,C,P){this.tween=h,this.targetIndex=f,this.duration=R,this.totalDuration=0,this.delay=0,this.getDelay=S,this.yoyo=L,this.hold=p,this.repeat=N,this.repeatDelay=g,this.repeatCounter=0,this.flipX=C,this.flipY=P,this.progress=0,this.elapsed=0,this.state=0,this.isCountdown=!1},"BaseTweenData"),getTarget:function(){return this.tween.targets[this.targetIndex]},setTargetValue:function(d){d===void 0&&(d=this.current),this.tween.targets[this.targetIndex][this.key]=d},setCreatedState:function(){this.state=A.CREATED,this.isCountdown=!1},setDelayState:function(){this.state=A.DELAY,this.isCountdown=!0},setPendingRenderState:function(){this.state=A.PENDING_RENDER,this.isCountdown=!1},setPlayingForwardState:function(){this.state=A.PLAYING_FORWARD,this.isCountdown=!1},setPlayingBackwardState:function(){this.state=A.PLAYING_BACKWARD,this.isCountdown=!1},setHoldState:function(){this.state=A.HOLD_DELAY,this.isCountdown=!0},setRepeatState:function(){this.state=A.REPEAT_DELAY,this.isCountdown=!0},setCompleteState:function(){this.state=A.COMPLETE,this.isCountdown=!1},isCreated:function(){return this.state===A.CREATED},isDelayed:function(){return this.state===A.DELAY},isPendingRender:function(){return this.state===A.PENDING_RENDER},isPlayingForward:function(){return this.state===A.PLAYING_FORWARD},isPlayingBackward:function(){return this.state===A.PLAYING_BACKWARD},isHolding:function(){return this.state===A.HOLD_DELAY},isRepeating:function(){return this.state===A.REPEAT_DELAY},isComplete:function(){return this.state===A.COMPLETE},setStateFromEnd:function(d){this.yoyo?this.onRepeat(d,!0,!0):this.repeatCounter>0?this.onRepeat(d,!0,!1):this.setCompleteState()},setStateFromStart:function(d){this.repeatCounter>0?this.onRepeat(d,!1):this.setCompleteState()},reset:function(){var d=this.tween,h=d.totalTargets,f=this.targetIndex,S=d.targets[f],R=this.key;this.progress=0,this.elapsed=0,this.delay=this.getDelay(S,R,0,f,h,d),this.repeatCounter=this.repeat===-1?A.MAX:this.repeat,this.setPendingRenderState();var L=this.duration+this.hold;this.yoyo&&(L+=this.duration);var p=L+this.repeatDelay;this.totalDuration=this.delay+L,this.repeat===-1?(this.totalDuration+=p*A.MAX,d.isInfinite=!0):this.repeat>0&&(this.totalDuration+=p*this.repeat),this.totalDuration>d.duration&&(d.duration=this.totalDuration),this.delay0&&(this.elapsed=this.delay,this.setDelayState())},onRepeat:function(d,h,f){var S=this.tween,R=S.totalTargets,L=this.targetIndex,p=S.targets[L],N=this.key,g=N!=="texture";if(this.elapsed=d,this.progress=d/this.duration,this.flipX&&p.toggleFlipX(),this.flipY&&p.toggleFlipY(),g&&(h||f)&&(this.start=this.getStartValue(p,N,this.start,L,R,S)),f){this.setPlayingBackwardState(),this.dispatchEvent(T.TWEEN_YOYO,"onYoyo");return}this.repeatCounter--,g&&(this.end=this.getEndValue(p,N,this.start,L,R,S)),this.repeatDelay>0?(this.elapsed=this.repeatDelay-d,g&&(this.current=this.start,p[N]=this.current),this.setRepeatState()):(this.setPlayingForwardState(),this.dispatchEvent(T.TWEEN_REPEAT,"onRepeat"))},destroy:function(){this.tween=null,this.getDelay=null,this.setCompleteState()}});o.exports=c},69902:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={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};o.exports=m},81076:o=>{/** + */var O={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};o.exports=O},81076:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.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"]},86081:(o,m,s)=>{/** + */o.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"]},86081:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(70402),T=s(83419),d=s(842),c=s(44603),A=s(39429),h=s(36383),f=s(86353),S=s(48177),O=s(42220),L=new T({Extends:u,initialize:P(function(N,g){u.call(this,N),this.targets=g,this.totalTargets=g.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},"Tween"),add:function(p,N,g,C,v,M,D,G,H,B,_,w,b,F,k,V){var Z=new S(this,p,N,g,C,v,M,D,G,H,B,_,w,b,F,k,V);return this.totalData=this.data.push(Z),Z},addFrame:function(p,N,g,C,v,M,D,G,H,B){var _=new O(this,p,N,g,C,v,M,D,G,H,B);return this.totalData=this.data.push(_),_},getValue:function(p){p===void 0&&(p=0);var N=null;return this.data&&(N=this.data[p].current),N},hasTarget:function(p){return this.targets&&this.targets.indexOf(p)!==-1},updateTo:function(p,N,g){if(g===void 0&&(g=!1),p!=="texture")for(var C=0;C0)this.elapsed=0,this.progress=0,this.loopCounter--,this.initTweenData(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.setLoopDelayState()):(this.setActiveState(),this.dispatchEvent(d.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,u.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(p,N,g){if(p===void 0&&(p=0),N===void 0&&(N=16.6),g===void 0&&(g=!1),this.isDestroyed())return console.warn("Cannot seek destroyed Tween",this),this;g||(this.isSeeking=!0),this.reset(!0),this.initTweenData(!0),this.setActiveState(),this.dispatchEvent(d.TWEEN_ACTIVE,"onActive");var C=this.paused;if(this.paused=!1,p>0){for(var v=Math.floor(p/N),M=p-v*N,D=0;D0&&this.update(M)}return this.paused=C,this.isSeeking=!1,this},initTweenData:function(p){p===void 0&&(p=!1),this.duration=0,this.startDelay=h.MAX_SAFE_INTEGER;for(var N=this.data,g=0;g0?this.totalDuration=C+v+(C+D)*M:this.totalDuration=C+v},reset:function(p){return p===void 0&&(p=!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=f.MAX),p||(this.initTweenData(),this.setActiveState(),this.dispatchEvent(d.TWEEN_ACTIVE,"onActive")),this},update:function(p){if(this.isPendingRemove()||this.isDestroyed())return!0;if(this.paused||this.isFinished())return!1;if(p*=this.timeScale*this.parent.timeScale,this.isLoopDelayed())return this.updateLoopCountdown(p),!1;if(this.isCompleteDelayed())return this.updateCompleteDelay(p),!1;this.hasStarted||(this.startDelay-=p,this.startDelay<=0&&(this.hasStarted=!0,this.dispatchEvent(d.TWEEN_START,"onStart"),p=0));var N=!1;if(this.isActive())for(var g=this.data,C=0;C{/** + */var u=s(70402),T=s(83419),A=s(842),c=s(44603),d=s(39429),h=s(36383),f=s(86353),S=s(48177),R=s(42220),L=new T({Extends:u,initialize:v(function(N,g){u.call(this,N),this.targets=g,this.totalTargets=g.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},"Tween"),add:function(p,N,g,C,P,M,D,G,H,B,b,w,_,F,x,V){var Z=new S(this,p,N,g,C,P,M,D,G,H,B,b,w,_,F,x,V);return this.totalData=this.data.push(Z),Z},addFrame:function(p,N,g,C,P,M,D,G,H,B){var b=new R(this,p,N,g,C,P,M,D,G,H,B);return this.totalData=this.data.push(b),b},getValue:function(p){p===void 0&&(p=0);var N=null;return this.data&&(N=this.data[p].current),N},hasTarget:function(p){return this.targets&&this.targets.indexOf(p)!==-1},updateTo:function(p,N,g){if(g===void 0&&(g=!1),p!=="texture")for(var C=0;C0)this.elapsed=0,this.progress=0,this.loopCounter--,this.initTweenData(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.setLoopDelayState()):(this.setActiveState(),this.dispatchEvent(A.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,u.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(p,N,g){if(p===void 0&&(p=0),N===void 0&&(N=16.6),g===void 0&&(g=!1),this.isDestroyed())return console.warn("Cannot seek destroyed Tween",this),this;g||(this.isSeeking=!0),this.reset(!0),this.initTweenData(!0),this.setActiveState(),this.dispatchEvent(A.TWEEN_ACTIVE,"onActive");var C=this.paused;if(this.paused=!1,p>0){for(var P=Math.floor(p/N),M=p-P*N,D=0;D0&&this.update(M)}return this.paused=C,this.isSeeking=!1,this},initTweenData:function(p){p===void 0&&(p=!1),this.duration=0,this.startDelay=h.MAX_SAFE_INTEGER;for(var N=this.data,g=0;g0?this.totalDuration=C+P+(C+D)*M:this.totalDuration=C+P},reset:function(p){return p===void 0&&(p=!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=f.MAX),p||(this.initTweenData(),this.setActiveState(),this.dispatchEvent(A.TWEEN_ACTIVE,"onActive")),this},update:function(p){if(this.isPendingRemove()||this.isDestroyed())return!0;if(this.paused||this.isFinished())return!1;if(p*=this.timeScale*this.parent.timeScale,this.isLoopDelayed())return this.updateLoopCountdown(p),!1;if(this.isCompleteDelayed())return this.updateCompleteDelay(p),!1;this.hasStarted||(this.startDelay-=p,this.startDelay<=0&&(this.hasStarted=!0,this.dispatchEvent(A.TWEEN_START,"onStart"),p=0));var N=!1;if(this.isActive())for(var g=this.data,C=0;C{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(72905),T=s(70402),d=s(83419),c=s(842),A=s(44603),h=s(39429),f=s(86353),S=new d({Extends:T,initialize:P(function(L){T.call(this,L),this.currentTween=null,this.currentIndex=0},"TweenChain"),init:function(){return this.loopCounter=this.loop===-1?f.MAX:this.loop,this.setCurrentTween(0),this.startDelay>0&&!this.isStartDelayed()?this.setStartDelayState():this.setActiveState(),this.dispatchEvent(c.TWEEN_ACTIVE,"onActive"),this},add:function(O){var L=this.parent.create(O);Array.isArray(L)||(L=[L]);for(var p=this.data,N=0;N0)this.loopCounter--,this.resetTweens(),this.loopDelay>0?(this.countdown=this.loopDelay,this.setLoopDelayState()):(this.setActiveState(),this.dispatchEvent(c.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 O=this.data,L=this.totalData,p=0;p{/** + */var u=s(72905),T=s(70402),A=s(83419),c=s(842),d=s(44603),h=s(39429),f=s(86353),S=new A({Extends:T,initialize:v(function(L){T.call(this,L),this.currentTween=null,this.currentIndex=0},"TweenChain"),init:function(){return this.loopCounter=this.loop===-1?f.MAX:this.loop,this.setCurrentTween(0),this.startDelay>0&&!this.isStartDelayed()?this.setStartDelayState():this.setActiveState(),this.dispatchEvent(c.TWEEN_ACTIVE,"onActive"),this},add:function(R){var L=this.parent.create(R);Array.isArray(L)||(L=[L]);for(var p=this.data,N=0;N0)this.loopCounter--,this.resetTweens(),this.loopDelay>0?(this.countdown=this.loopDelay,this.setLoopDelayState()):(this.setActiveState(),this.dispatchEvent(c.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 R=this.data,L=this.totalData,p=0;p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(95042),T=s(45319),d=s(83419),c=s(842),A=new d({Extends:u,initialize:P(function(f,S,O,L,p,N,g,C,v,M,D,G,H,B,_,w,b){u.call(this,f,S,C,v,M,D,G,H,B,_),this.key=O,this.getActiveValue=N,this.getEndValue=L,this.getStartValue=p,this.ease=g,this.start=0,this.previous=0,this.current=0,this.end=0,this.interpolation=w,this.interpolationData=b},"TweenData"),reset:function(h){u.prototype.reset.call(this);var f=this.tween.targets[this.targetIndex],S=this.key;h&&(f[S]=this.start),this.start=0,this.previous=0,this.current=0,this.end=0,this.getActiveValue&&(f[S]=this.getActiveValue(f,S,0))},update:function(h){var f=this.tween,S=f.totalTargets,O=this.targetIndex,L=f.targets[O],p=this.key;if(!L)return this.setCompleteState(),!1;if(this.isCountdown&&(this.elapsed-=h,this.elapsed<=0&&(this.elapsed=0,h=0,this.isDelayed()?this.setPendingRenderState():this.isRepeating()?(this.setPlayingForwardState(),this.dispatchEvent(c.TWEEN_REPEAT,"onRepeat")):this.isHolding()&&this.setStateFromEnd(0))),this.isPendingRender())return this.start=this.getStartValue(L,p,L[p],O,S,f),this.end=this.getEndValue(L,p,this.start,O,S,f),this.current=this.start,L[p]=this.start,this.setPlayingForwardState(),!0;var N=this.isPlayingForward(),g=this.isPlayingBackward();if(N||g){var C=this.elapsed,v=this.duration,M=0,D=!1;C+=h,C>=v?(M=C-v,C=v,D=!0):C<0&&(C=0);var G=T(C/v,0,1);if(this.elapsed=C,this.progress=G,this.previous=this.current,D)N?(this.current=this.end,L[p]=this.end,this.hold>0?(this.elapsed=this.hold,this.setHoldState()):this.setStateFromEnd(M)):(this.current=this.start,L[p]=this.start,this.setStateFromStart(M));else{N||(G=1-G);var H=this.ease(G);this.interpolation?this.current=this.interpolation(this.interpolationData,H):this.current=this.start+(this.end-this.start)*H,L[p]=this.current}this.dispatchEvent(c.TWEEN_UPDATE,"onUpdate")}return!this.isComplete()},dispatchEvent:function(h,f){var S=this.tween;if(!S.isSeeking){var O=S.targets[this.targetIndex],L=this.key,p=this.current,N=this.previous;S.emit(h,S,L,O,p,N);var g=S.callbacks[f];g&&g.func.apply(S.callbackScope,[S,O,L,p,N].concat(g.params))}},destroy:function(){u.prototype.destroy.call(this),this.getActiveValue=null,this.getEndValue=null,this.getStartValue=null,this.ease=null}});o.exports=A},42220:(o,m,s)=>{/** + */var u=s(95042),T=s(45319),A=s(83419),c=s(842),d=new A({Extends:u,initialize:v(function(f,S,R,L,p,N,g,C,P,M,D,G,H,B,b,w,_){u.call(this,f,S,C,P,M,D,G,H,B,b),this.key=R,this.getActiveValue=N,this.getEndValue=L,this.getStartValue=p,this.ease=g,this.start=0,this.previous=0,this.current=0,this.end=0,this.interpolation=w,this.interpolationData=_},"TweenData"),reset:function(h){u.prototype.reset.call(this);var f=this.tween.targets[this.targetIndex],S=this.key;h&&(f[S]=this.start),this.start=0,this.previous=0,this.current=0,this.end=0,this.getActiveValue&&(f[S]=this.getActiveValue(f,S,0))},update:function(h){var f=this.tween,S=f.totalTargets,R=this.targetIndex,L=f.targets[R],p=this.key;if(!L)return this.setCompleteState(),!1;if(this.isCountdown&&(this.elapsed-=h,this.elapsed<=0&&(this.elapsed=0,h=0,this.isDelayed()?this.setPendingRenderState():this.isRepeating()?(this.setPlayingForwardState(),this.dispatchEvent(c.TWEEN_REPEAT,"onRepeat")):this.isHolding()&&this.setStateFromEnd(0))),this.isPendingRender())return this.start=this.getStartValue(L,p,L[p],R,S,f),this.end=this.getEndValue(L,p,this.start,R,S,f),this.current=this.start,L[p]=this.start,this.setPlayingForwardState(),!0;var N=this.isPlayingForward(),g=this.isPlayingBackward();if(N||g){var C=this.elapsed,P=this.duration,M=0,D=!1;C+=h,C>=P?(M=C-P,C=P,D=!0):C<0&&(C=0);var G=T(C/P,0,1);if(this.elapsed=C,this.progress=G,this.previous=this.current,D)N?(this.current=this.end,L[p]=this.end,this.hold>0?(this.elapsed=this.hold,this.setHoldState()):this.setStateFromEnd(M)):(this.current=this.start,L[p]=this.start,this.setStateFromStart(M));else{N||(G=1-G);var H=this.ease(G);this.interpolation?this.current=this.interpolation(this.interpolationData,H):this.current=this.start+(this.end-this.start)*H,L[p]=this.current}this.dispatchEvent(c.TWEEN_UPDATE,"onUpdate")}return!this.isComplete()},dispatchEvent:function(h,f){var S=this.tween;if(!S.isSeeking){var R=S.targets[this.targetIndex],L=this.key,p=this.current,N=this.previous;S.emit(h,S,L,R,p,N);var g=S.callbacks[f];g&&g.func.apply(S.callbackScope,[S,R,L,p,N].concat(g.params))}},destroy:function(){u.prototype.destroy.call(this),this.getActiveValue=null,this.getEndValue=null,this.getStartValue=null,this.ease=null}});o.exports=d},42220:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(95042),T=s(45319),d=s(83419),c=s(842),A=new d({Extends:u,initialize:P(function(f,S,O,L,p,N,g,C,v,M,D){u.call(this,f,S,p,N,!1,g,C,v,M,D),this.key="texture",this.startTexture=null,this.endTexture=O,this.startFrame=null,this.endFrame=L,this.yoyo=C!==0},"TweenFrameData"),reset:function(h){u.prototype.reset.call(this);var f=this.tween.targets[this.targetIndex];this.startTexture||(this.startTexture=f.texture.key,this.startFrame=f.frame.name),h&&f.setTexture(this.startTexture,this.startFrame)},update:function(h){var f=this.tween,S=this.targetIndex,O=f.targets[S];if(!O)return this.setCompleteState(),!1;if(this.isCountdown&&(this.elapsed-=h,this.elapsed<=0&&(this.elapsed=0,h=0,this.isDelayed()?this.setPendingRenderState():this.isRepeating()?(this.setPlayingForwardState(),this.dispatchEvent(c.TWEEN_REPEAT,"onRepeat")):this.isHolding()&&this.setStateFromEnd(0))),this.isPendingRender())return this.startTexture&&O.setTexture(this.startTexture,this.startFrame),this.setPlayingForwardState(),!0;var L=this.isPlayingForward(),p=this.isPlayingBackward();if(L||p){var N=this.elapsed,g=this.duration,C=0,v=!1;N+=h,N>=g?(C=N-g,N=g,v=!0):N<0&&(N=0);var M=T(N/g,0,1);this.elapsed=N,this.progress=M,v&&(L?(O.setTexture(this.endTexture,this.endFrame),this.hold>0?(this.elapsed=this.hold,this.setHoldState()):this.setStateFromEnd(C)):(O.setTexture(this.startTexture,this.startFrame),this.setStateFromStart(C))),this.dispatchEvent(c.TWEEN_UPDATE,"onUpdate")}return!this.isComplete()},dispatchEvent:function(h,f){var S=this.tween;if(!S.isSeeking){var O=S.targets[this.targetIndex],L=this.key;S.emit(h,S,L,O);var p=S.callbacks[f];p&&p.func.apply(S.callbackScope,[S,O,L].concat(p.params))}},destroy:function(){u.prototype.destroy.call(this),this.startTexture=null,this.endTexture=null,this.startFrame=null,this.endFrame=null}});o.exports=A},86353:o=>{/** + */var u=s(95042),T=s(45319),A=s(83419),c=s(842),d=new A({Extends:u,initialize:v(function(f,S,R,L,p,N,g,C,P,M,D){u.call(this,f,S,p,N,!1,g,C,P,M,D),this.key="texture",this.startTexture=null,this.endTexture=R,this.startFrame=null,this.endFrame=L,this.yoyo=C!==0},"TweenFrameData"),reset:function(h){u.prototype.reset.call(this);var f=this.tween.targets[this.targetIndex];this.startTexture||(this.startTexture=f.texture.key,this.startFrame=f.frame.name),h&&f.setTexture(this.startTexture,this.startFrame)},update:function(h){var f=this.tween,S=this.targetIndex,R=f.targets[S];if(!R)return this.setCompleteState(),!1;if(this.isCountdown&&(this.elapsed-=h,this.elapsed<=0&&(this.elapsed=0,h=0,this.isDelayed()?this.setPendingRenderState():this.isRepeating()?(this.setPlayingForwardState(),this.dispatchEvent(c.TWEEN_REPEAT,"onRepeat")):this.isHolding()&&this.setStateFromEnd(0))),this.isPendingRender())return this.startTexture&&R.setTexture(this.startTexture,this.startFrame),this.setPlayingForwardState(),!0;var L=this.isPlayingForward(),p=this.isPlayingBackward();if(L||p){var N=this.elapsed,g=this.duration,C=0,P=!1;N+=h,N>=g?(C=N-g,N=g,P=!0):N<0&&(N=0);var M=T(N/g,0,1);this.elapsed=N,this.progress=M,P&&(L?(R.setTexture(this.endTexture,this.endFrame),this.hold>0?(this.elapsed=this.hold,this.setHoldState()):this.setStateFromEnd(C)):(R.setTexture(this.startTexture,this.startFrame),this.setStateFromStart(C))),this.dispatchEvent(c.TWEEN_UPDATE,"onUpdate")}return!this.isComplete()},dispatchEvent:function(h,f){var S=this.tween;if(!S.isSeeking){var R=S.targets[this.targetIndex],L=this.key;S.emit(h,S,L,R);var p=S.callbacks[f];p&&p.func.apply(S.callbackScope,[S,R,L].concat(p.params))}},destroy:function(){u.prototype.destroy.call(this),this.startTexture=null,this.endTexture=null,this.startFrame=null,this.endFrame=null}});o.exports=d},86353:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m={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};o.exports=m},83419:o=>{/** + */var O={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};o.exports=O},83419:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */function m(A){return!!A.get&&typeof A.get=="function"||!!A.set&&typeof A.set=="function"}P(m,"hasGetterOrSetter");function s(A,h,f){var S=f?A[h]:Object.getOwnPropertyDescriptor(A,h);return!f&&S.value&&typeof S.value=="object"&&(S=S.value),S&&m(S)?(typeof S.enumerable>"u"&&(S.enumerable=!0),typeof S.configurable>"u"&&(S.configurable=!0),S):!1}P(s,"getProperty");function u(A,h){var f=Object.getOwnPropertyDescriptor(A,h);return f?(f.value&&typeof f.value=="object"&&(f=f.value),f.configurable===!1):!1}P(u,"hasNonConfigurable");function T(A,h,f,S){for(var O in h)if(h.hasOwnProperty(O)){var L=s(h,O,f);if(L!==!1){var p=S||A;if(u(p.prototype,O)){if(c.ignoreFinals)continue;throw new Error("cannot override final property '"+O+"', set Class.ignoreFinals = true to skip")}Object.defineProperty(A.prototype,O,L)}else A.prototype[O]=h[O]}}P(T,"extend");function d(A,h){if(h){Array.isArray(h)||(h=[h]);for(var f=0;f{/** + */function O(d){return!!d.get&&typeof d.get=="function"||!!d.set&&typeof d.set=="function"}v(O,"hasGetterOrSetter");function s(d,h,f){var S=f?d[h]:Object.getOwnPropertyDescriptor(d,h);return!f&&S.value&&typeof S.value=="object"&&(S=S.value),S&&O(S)?(typeof S.enumerable>"u"&&(S.enumerable=!0),typeof S.configurable>"u"&&(S.configurable=!0),S):!1}v(s,"getProperty");function u(d,h){var f=Object.getOwnPropertyDescriptor(d,h);return f?(f.value&&typeof f.value=="object"&&(f=f.value),f.configurable===!1):!1}v(u,"hasNonConfigurable");function T(d,h,f,S){for(var R in h)if(h.hasOwnProperty(R)){var L=s(h,R,f);if(L!==!1){var p=S||d;if(u(p.prototype,R)){if(c.ignoreFinals)continue;throw new Error("cannot override final property '"+R+"', set Class.ignoreFinals = true to skip")}Object.defineProperty(d.prototype,R,L)}else d.prototype[R]=h[R]}}v(T,"extend");function A(d,h){if(h){Array.isArray(h)||(h=[h]);for(var f=0;f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(){},"NOOP");o.exports=m},20242:o=>{/** + */var O=v(function(){},"NOOP");o.exports=O},20242:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(){return null},"NULL");o.exports=m},71146:o=>{/** + */var O=v(function(){return null},"NULL");o.exports=O},71146:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d,c){if(c===void 0&&(c=s),T>0){var A=T-s.length;if(A<=0)return null}if(!Array.isArray(u))return s.indexOf(u)===-1?(s.push(u),d&&d.call(c,u),u):null;for(var h=u.length-1;h>=0;)s.indexOf(u[h])!==-1&&u.splice(h,1),h--;if(h=u.length,h===0)return null;T>0&&h>A&&(u.splice(A),h=A);for(var f=0;f{/** + */var O=v(function(s,u,T,A,c){if(c===void 0&&(c=s),T>0){var d=T-s.length;if(d<=0)return null}if(!Array.isArray(u))return s.indexOf(u)===-1?(s.push(u),A&&A.call(c,u),u):null;for(var h=u.length-1;h>=0;)s.indexOf(u[h])!==-1&&u.splice(h,1),h--;if(h=u.length,h===0)return null;T>0&&h>d&&(u.splice(d),h=d);for(var f=0;f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d,c,A){if(T===void 0&&(T=0),A===void 0&&(A=s),d>0){var h=d-s.length;if(h<=0)return null}if(!Array.isArray(u))return s.indexOf(u)===-1?(s.splice(T,0,u),c&&c.call(A,u),u):null;for(var f=u.length-1;f>=0;)s.indexOf(u[f])!==-1&&u.pop(),f--;if(f=u.length,f===0)return null;d>0&&f>h&&(u.splice(h),f=h);for(var S=f-1;S>=0;S--){var O=u[S];s.splice(T,0,O),c&&c.call(A,O)}return u},"AddAt");o.exports=m},66905:o=>{/** + */var O=v(function(s,u,T,A,c,d){if(T===void 0&&(T=0),d===void 0&&(d=s),A>0){var h=A-s.length;if(h<=0)return null}if(!Array.isArray(u))return s.indexOf(u)===-1?(s.splice(T,0,u),c&&c.call(d,u),u):null;for(var f=u.length-1;f>=0;)s.indexOf(u[f])!==-1&&u.pop(),f--;if(f=u.length,f===0)return null;A>0&&f>h&&(u.splice(h),f=h);for(var S=f-1;S>=0;S--){var R=u[S];s.splice(T,0,R),c&&c.call(d,R)}return u},"AddAt");o.exports=O},66905:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){var T=s.indexOf(u);return T!==-1&&T{/** + */var O=v(function(s,u){var T=s.indexOf(u);return T!==-1&&T{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(82011),T=P(function(d,c,A,h,f){h===void 0&&(h=0),f===void 0&&(f=d.length);var S=0;if(u(d,h,f))for(var O=h;O{/** + */var u=s(82011),T=v(function(A,c,d,h,f){h===void 0&&(h=0),f===void 0&&(f=A.length);var S=0;if(u(A,h,f))for(var R=h;R{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){var d,c=[null];for(d=3;d{/** + */var O=v(function(s,u,T){var A,c=[null];for(A=3;A{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(82011),T=P(function(d,c,A,h,f){if(h===void 0&&(h=0),f===void 0&&(f=d.length),u(d,h,f)){var S,O=[null];for(S=5;S{/** + */var u=s(82011),T=v(function(A,c,d,h,f){if(h===void 0&&(h=0),f===void 0&&(f=A.length),u(A,h,f)){var S,R=[null];for(S=5;S{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){if(u.length){if(u.length===1)return u[0]}else return NaN;var d=1,c,A;if(T){if(su.length&&(d=u.length),T?(c=u[d-1][T],A=u[d][T],A-s<=s-c?u[d]:u[d-1]):(c=u[d-1],A=u[d],A-s<=s-c?A:c)},"FindClosestInSorted");o.exports=m},43491:o=>{/** + */var O=v(function(s,u,T){if(u.length){if(u.length===1)return u[0]}else return NaN;var A=1,c,d;if(T){if(su.length&&(A=u.length),T?(c=u[A-1][T],d=u[A][T],d-s<=s-c?u[A]:u[A-1]):(c=u[A-1],d=u[A],d-s<=s-c?d:c)},"FindClosestInSorted");o.exports=O},43491:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){u===void 0&&(u=[]);for(var T=0;T{/** + */var O=v(function(s,u){u===void 0&&(u=[]);for(var T=0;T{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(82011),T=P(function(d,c,A,h,f){h===void 0&&(h=0),f===void 0&&(f=d.length);var S=[];if(u(d,h,f))for(var O=h;O{/** + */var u=s(82011),T=v(function(A,c,d,h,f){h===void 0&&(h=0),f===void 0&&(f=A.length);var S=[];if(u(A,h,f))for(var R=h;R{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(82011),T=P(function(d,c,A,h,f){if(h===void 0&&(h=0),f===void 0&&(f=d.length),u(d,h,f))for(var S=h;S{/** + */var u=s(82011),T=v(function(A,c,d,h,f){if(h===void 0&&(h=0),f===void 0&&(f=A.length),u(A,h,f))for(var S=h;S{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){u===void 0&&(u=0),T===void 0&&(T=s.length);var d=u+Math.floor(Math.random()*T);return s[d]===void 0?null:s[d]},"GetRandom");o.exports=m},85835:o=>{/** + */var O=v(function(s,u,T){u===void 0&&(u=0),T===void 0&&(T=s.length);var A=u+Math.floor(Math.random()*T);return s[A]===void 0?null:s[A]},"GetRandom");o.exports=O},85835:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){if(u===T)return s;var d=s.indexOf(u),c=s.indexOf(T);if(d<0||c<0)throw new Error("Supplied items must be elements of the same array");return d>c||(s.splice(d,1),c===s.length-1?s.push(u):s.splice(c,0,u)),s},"MoveAbove");o.exports=m},83371:o=>{/** + */var O=v(function(s,u,T){if(u===T)return s;var A=s.indexOf(u),c=s.indexOf(T);if(A<0||c<0)throw new Error("Supplied items must be elements of the same array");return A>c||(s.splice(A,1),c===s.length-1?s.push(u):s.splice(c,0,u)),s},"MoveAbove");o.exports=O},83371:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){if(u===T)return s;var d=s.indexOf(u),c=s.indexOf(T);if(d<0||c<0)throw new Error("Supplied items must be elements of the same array");return d{/** + */var O=v(function(s,u,T){if(u===T)return s;var A=s.indexOf(u),c=s.indexOf(T);if(A<0||c<0)throw new Error("Supplied items must be elements of the same array");return A{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){var T=s.indexOf(u);if(T>0){var d=s[T-1],c=s.indexOf(d);s[T]=d,s[c]=u}return s},"MoveDown");o.exports=m},69693:o=>{/** + */var O=v(function(s,u){var T=s.indexOf(u);if(T>0){var A=s[T-1],c=s.indexOf(A);s[T]=A,s[c]=u}return s},"MoveDown");o.exports=O},69693:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){var d=s.indexOf(u);if(d===-1||T<0||T>=s.length)throw new Error("Supplied index out of bounds");return d!==T&&(s.splice(d,1),s.splice(T,0,u)),u},"MoveTo");o.exports=m},40853:o=>{/** + */var O=v(function(s,u,T){var A=s.indexOf(u);if(A===-1||T<0||T>=s.length)throw new Error("Supplied index out of bounds");return A!==T&&(s.splice(A,1),s.splice(T,0,u)),u},"MoveTo");o.exports=O},40853:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){var T=s.indexOf(u);if(T!==-1&&T{/** + */var O=v(function(s,u){var T=s.indexOf(u);if(T!==-1&&T{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){var c=[],A,h=!1;if((T||d)&&(h=!0,T||(T=""),d||(d="")),u=u;A--)h?c.push(T+A.toString()+d):c.push(A);else for(A=s;A<=u;A++)h?c.push(T+A.toString()+d):c.push(A);return c},"NumberArray");o.exports=m},593:(o,m,s)=>{/** + */var O=v(function(s,u,T,A){var c=[],d,h=!1;if((T||A)&&(h=!0,T||(T=""),A||(A="")),u=u;d--)h?c.push(T+d.toString()+A):c.push(d);else for(d=s;d<=u;d++)h?c.push(T+d.toString()+A):c.push(d);return c},"NumberArray");o.exports=O},593:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(2284),T=P(function(d,c,A){d===void 0&&(d=0),c===void 0&&(c=null),A===void 0&&(A=1),c===null&&(c=d,d=0);for(var h=[],f=Math.max(u((c-d)/(A||1)),0),S=0;S{/** + */var u=s(2284),T=v(function(A,c,d){A===void 0&&(A=0),c===void 0&&(c=null),d===void 0&&(d=1),c===null&&(c=A,A=0);for(var h=[],f=Math.max(u((c-A)/(d||1)),0),S=0;S{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */function m(T,d,c){var A=T[d];T[d]=T[c],T[c]=A}P(m,"swap");function s(T,d){return Td?1:0}P(s,"defaultCompare");var u=P(function(T,d,c,A,h){for(c===void 0&&(c=0),A===void 0&&(A=T.length-1),h===void 0&&(h=s);A>c;){if(A-c>600){var f=A-c+1,S=d-c+1,O=Math.log(f),L=.5*Math.exp(2*O/3),p=.5*Math.sqrt(O*L*(f-L)/f)*(S-f/2<0?-1:1),N=Math.max(c,Math.floor(d-S*L/f+p)),g=Math.min(A,Math.floor(d+(f-S)*L/f+p));u(T,d,N,g,h)}var C=T[d],v=c,M=A;for(m(T,c,d),h(T[A],C)>0&&m(T,c,A);v0;)M--}h(T[c],C)===0?m(T,c,M):(M++,m(T,M,A)),M<=d&&(c=M+1),d<=M&&(A=M-1)}},"QuickSelect");o.exports=u},88492:(o,m,s)=>{/** + */function O(T,A,c){var d=T[A];T[A]=T[c],T[c]=d}v(O,"swap");function s(T,A){return TA?1:0}v(s,"defaultCompare");var u=v(function(T,A,c,d,h){for(c===void 0&&(c=0),d===void 0&&(d=T.length-1),h===void 0&&(h=s);d>c;){if(d-c>600){var f=d-c+1,S=A-c+1,R=Math.log(f),L=.5*Math.exp(2*R/3),p=.5*Math.sqrt(R*L*(f-L)/f)*(S-f/2<0?-1:1),N=Math.max(c,Math.floor(A-S*L/f+p)),g=Math.min(d,Math.floor(A+(f-S)*L/f+p));u(T,A,N,g,h)}var C=T[A],P=c,M=d;for(O(T,c,A),h(T[d],C)>0&&O(T,c,d);P0;)M--}h(T[c],C)===0?O(T,c,M):(M++,O(T,M,d)),M<=A&&(c=M+1),A<=M&&(d=M-1)}},"QuickSelect");o.exports=u},88492:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(35154),T=s(33680),d=P(function(A,h,f){for(var S=[],O=0;O{/** + */var u=s(35154),T=s(33680),A=v(function(d,h,f){for(var S=[],R=0;R{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(19133),T=P(function(d,c,A,h){h===void 0&&(h=d);var f;if(!Array.isArray(c))return f=d.indexOf(c),f!==-1?(u(d,f),A&&A.call(h,c),c):null;for(var S=c.length-1,O=[];S>=0;){var L=c[S];f=d.indexOf(L),f!==-1&&(u(d,f),O.push(L),A&&A.call(h,L)),S--}return O},"Remove");o.exports=T},60248:(o,m,s)=>{/** + */var u=s(19133),T=v(function(A,c,d,h){h===void 0&&(h=A);var f;if(!Array.isArray(c))return f=A.indexOf(c),f!==-1?(u(A,f),d&&d.call(h,c),c):null;for(var S=c.length-1,R=[];S>=0;){var L=c[S];f=A.indexOf(L),f!==-1&&(u(A,f),R.push(L),d&&d.call(h,L)),S--}return R},"Remove");o.exports=T},60248:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(19133),T=P(function(d,c,A,h){if(h===void 0&&(h=d),c<0||c>d.length-1)throw new Error("Index out of bounds");var f=u(d,c);return A&&A.call(h,f),f},"RemoveAt");o.exports=T},81409:(o,m,s)=>{/** + */var u=s(19133),T=v(function(A,c,d,h){if(h===void 0&&(h=A),c<0||c>A.length-1)throw new Error("Index out of bounds");var f=u(A,c);return d&&d.call(h,f),f},"RemoveAt");o.exports=T},81409:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(82011),T=P(function(d,c,A,h,f){if(c===void 0&&(c=0),A===void 0&&(A=d.length),f===void 0&&(f=d),u(d,c,A)){var S=A-c,O=d.splice(c,S);if(h)for(var L=0;L{/** + */var u=s(82011),T=v(function(A,c,d,h,f){if(c===void 0&&(c=0),d===void 0&&(d=A.length),f===void 0&&(f=A),u(A,c,d)){var S=d-c,R=A.splice(c,S);if(h)for(var L=0;L{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(19133),T=P(function(d,c,A){c===void 0&&(c=0),A===void 0&&(A=d.length);var h=c+Math.floor(Math.random()*A);return u(d,h)},"RemoveRandomElement");o.exports=T},42169:o=>{/** + */var u=s(19133),T=v(function(A,c,d){c===void 0&&(c=0),d===void 0&&(d=A.length);var h=c+Math.floor(Math.random()*d);return u(A,h)},"RemoveRandomElement");o.exports=T},42169:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){var d=s.indexOf(u),c=s.indexOf(T);return d!==-1&&c===-1?(s[d]=T,!0):!1},"Replace");o.exports=m},86003:o=>{/** + */var O=v(function(s,u,T){var A=s.indexOf(u),c=s.indexOf(T);return A!==-1&&c===-1?(s[A]=T,!0):!1},"Replace");o.exports=O},86003:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){u===void 0&&(u=1);for(var T=null,d=0;d{/** + */var O=v(function(s,u){u===void 0&&(u=1);for(var T=null,A=0;A{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){u===void 0&&(u=1);for(var T=null,d=0;d{/** + */var O=v(function(s,u){u===void 0&&(u=1);for(var T=null,A=0;A{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){var c=s.length;if(u<0||u>c||u>=T||T>c){if(d)throw new Error("Range Error: Values outside acceptable range");return!1}else return!0},"SafeRange");o.exports=m},89545:o=>{/** + */var O=v(function(s,u,T,A){var c=s.length;if(u<0||u>c||u>=T||T>c){if(A)throw new Error("Range Error: Values outside acceptable range");return!1}else return!0},"SafeRange");o.exports=O},89545:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){var T=s.indexOf(u);return T!==-1&&T>0&&(s.splice(T,1),s.unshift(u)),u},"SendToBack");o.exports=m},17810:(o,m,s)=>{/** + */var O=v(function(s,u){var T=s.indexOf(u);return T!==-1&&T>0&&(s.splice(T,1),s.unshift(u)),u},"SendToBack");o.exports=O},17810:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(82011),T=P(function(d,c,A,h,f){if(h===void 0&&(h=0),f===void 0&&(f=d.length),u(d,h,f))for(var S=h;S{/** + */var u=s(82011),T=v(function(A,c,d,h,f){if(h===void 0&&(h=0),f===void 0&&(f=A.length),u(A,h,f))for(var S=h;S{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){for(var u=s.length-1;u>0;u--){var T=Math.floor(Math.random()*(u+1)),d=s[u];s[u]=s[T],s[T]=d}return s},"Shuffle");o.exports=m},90126:o=>{/** + */var O=v(function(s){for(var u=s.length-1;u>0;u--){var T=Math.floor(Math.random()*(u+1)),A=s[u];s[u]=s[T],s[T]=A}return s},"Shuffle");o.exports=O},90126:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){var u=/\D/g;return s.sort(function(T,d){return parseInt(T.replace(u,""),10)-parseInt(d.replace(u,""),10)}),s},"SortByDigits");o.exports=m},19133:o=>{/** + */var O=v(function(s){var u=/\D/g;return s.sort(function(T,A){return parseInt(T.replace(u,""),10)-parseInt(A.replace(u,""),10)}),s},"SortByDigits");o.exports=O},19133:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){if(!(u>=s.length)){for(var T=s.length-1,d=s[u],c=u;c{/** + */var O=v(function(s,u){if(!(u>=s.length)){for(var T=s.length-1,A=s[u],c=u;c{/** * @author Richard Davey * @author Angry Bytes (and contributors) * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(82264);function T(h,f){return String(h).localeCompare(f)}P(T,"Compare");function d(h,f){var S=h.length;if(S<=1)return h;for(var O=new Array(S),L=1;LL&&(C=L),v>L&&(v=L),M=g,D=C;;)if(M{/** + */var u=s(82264);function T(h,f){return String(h).localeCompare(f)}v(T,"Compare");function A(h,f){var S=h.length;if(S<=1)return h;for(var R=new Array(S),L=1;LL&&(C=L),P>L&&(P=L),M=g,D=C;;)if(M{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){if(u===T)return s;var d=s.indexOf(u),c=s.indexOf(T);if(d<0||c<0)throw new Error("Supplied items must be elements of the same array");return s[d]=T,s[c]=u,s},"Swap");o.exports=m},37105:(o,m,s)=>{/** + */var O=v(function(s,u,T){if(u===T)return s;var A=s.indexOf(u),c=s.indexOf(T);if(A<0||c<0)throw new Error("Supplied items must be elements of the same array");return s[A]=T,s[c]=u,s},"Swap");o.exports=O},37105:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -6190,45 +6190,45 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){if(!Array.isArray(s)||!Array.isArray(s[0]))return!1;for(var u=s[0].length,T=1;T{/** + */var O=v(function(s){if(!Array.isArray(s)||!Array.isArray(s[0]))return!1;for(var u=s[0].length,T=1;T{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(41836),T=s(86922),d=P(function(c){var A="";if(!T(c))return A;for(var h=0;h{/** + */var u=s(41836),T=s(86922),A=v(function(c){var d="";if(!T(c))return d;for(var h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s.reverse()},"ReverseColumns");o.exports=m},21224:o=>{/** + */var O=v(function(s){return s.reverse()},"ReverseColumns");o.exports=O},21224:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){for(var u=0;u{/** + */var O=v(function(s){for(var u=0;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(37829),T=P(function(d){return u(d,180)},"Rotate180");o.exports=T},44657:(o,m,s)=>{/** + */var u=s(37829),T=v(function(A){return u(A,180)},"Rotate180");o.exports=T},44657:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(37829),T=P(function(d,c){c===void 0&&(c=1);for(var A=0;A{/** + */var u=s(37829),T=v(function(A,c){c===void 0&&(c=1);for(var d=0;d{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(86922),T=s(2429),d=P(function(c,A){if(A===void 0&&(A=90),!u(c))return null;if(typeof A!="string"&&(A=(A%360+360)%360),A===90||A===-270||A==="rotateLeft")c=T(c),c.reverse();else if(A===-90||A===270||A==="rotateRight")c.reverse(),c=T(c);else if(Math.abs(A)===180||A==="rotate180"){for(var h=0;h{/** + */var u=s(86922),T=s(2429),A=v(function(c,d){if(d===void 0&&(d=90),!u(c))return null;if(typeof d!="string"&&(d=(d%360+360)%360),d===90||d===-270||d==="rotateLeft")c=T(c),c.reverse();else if(d===-90||d===270||d==="rotateRight")c.reverse(),c=T(c);else if(Math.abs(d)===180||d==="rotate180"){for(var h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(37829),T=P(function(d,c){c===void 0&&(c=1);for(var A=0;A{/** + */var u=s(37829),T=v(function(A,c){c===void 0&&(c=1);for(var d=0;d{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(86003),T=s(49498),d=P(function(c,A,h){if(A===void 0&&(A=0),h===void 0&&(h=0),h!==0&&(h<0?u(c,Math.abs(h)):T(c,h)),A!==0)for(var f=0;f{/** + */var u=s(86003),T=s(49498),A=v(function(c,d,h){if(d===void 0&&(d=0),h===void 0&&(h=0),h!==0&&(h<0?u(c,Math.abs(h)):T(c,h)),d!==0)for(var f=0;f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){for(var u=s.length,T=s[0].length,d=new Array(T),c=0;c-1;A--)d[c][A]=s[A][c]}return d},"TransposeMatrix");o.exports=m},54915:(o,m,s)=>{/** + */var O=v(function(s){for(var u=s.length,T=s[0].length,A=new Array(T),c=0;c-1;d--)A[c][d]=s[d][c]}return A},"TransposeMatrix");o.exports=O},54915:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -6237,16 +6237,16 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=P(function(u,T){for(var d=new Uint8Array(u),c=d.length,A=T?"data:"+T+";base64,":"",h=0;h>2],A+=m[(d[h]&3)<<4|d[h+1]>>4],A+=m[(d[h+1]&15)<<2|d[h+2]>>6],A+=m[d[h+2]&63];return c%3===2?A=A.substring(0,A.length-1)+"=":c%3===1&&(A=A.substring(0,A.length-2)+"=="),A},"ArrayBufferToBase64");o.exports=s},53134:o=>{/** + */var O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=v(function(u,T){for(var A=new Uint8Array(u),c=A.length,d=T?"data:"+T+";base64,":"",h=0;h>2],d+=O[(A[h]&3)<<4|A[h+1]>>4],d+=O[(A[h+1]&15)<<2|A[h+2]>>6],d+=O[A[h+2]&63];return c%3===2?d=d.substring(0,d.length-1)+"=":c%3===1&&(d=d.substring(0,d.length-2)+"=="),d},"ArrayBufferToBase64");o.exports=s},53134:o=>{/** * @author Niklas von Hertzen (https://github.com/niklasvh/base64-arraybuffer) * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */for(var m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=new Uint8Array(256),u=0;u>4,N[h++]=(S&15)<<4|O>>2,N[h++]=(O&3)<<6|L&63;return p},"Base64ToArrayBuffer");o.exports=T},65839:(o,m,s)=>{/** + */for(var O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=new Uint8Array(256),u=0;u>4,N[h++]=(S&15)<<4|R>>2,N[h++]=(R&3)<<6|L&63;return p},"Base64ToArrayBuffer");o.exports=T},65839:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={ArrayBufferToBase64:s(71334),Base64ToArrayBuffer:s(53134)}},91799:(o,m,s)=>{/** + */o.exports={ArrayBufferToBase64:s(71334),Base64ToArrayBuffer:s(53134)}},91799:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -6254,63 +6254,63 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){var u={};for(var T in s)Array.isArray(s[T])?u[T]=s[T].slice(0):u[T]=s[T];return u},"Clone");o.exports=m},62644:o=>{/** + */var O=v(function(s){var u={};for(var T in s)Array.isArray(s[T])?u[T]=s[T].slice(0):u[T]=s[T];return u},"Clone");o.exports=O},62644:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){var u,T,d;if(typeof s!="object"||s===null)return s;u=Array.isArray(s)?[]:{};for(d in s)T=s[d],u[d]=m(T);return u},"DeepCopy");o.exports=m},79291:(o,m,s)=>{/** + */var O=v(function(s){var u,T,A;if(typeof s!="object"||s===null)return s;u=Array.isArray(s)?[]:{};for(A in s)T=s[A],u[A]=O(T);return u},"DeepCopy");o.exports=O},79291:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(41212),T=P(function(){var d,c,A,h,f,S,O=arguments[0]||{},L=1,p=arguments.length,N=!1;for(typeof O=="boolean"&&(N=O,O=arguments[1]||{},L=2),p===L&&(O=this,--L);L{/** + */var u=s(41212),T=v(function(){var A,c,d,h,f,S,R=arguments[0]||{},L=1,p=arguments.length,N=!1;for(typeof R=="boolean"&&(N=R,R=arguments[1]||{},L=2),p===L&&(R=this,--L);L{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(75508),T=s(35154),d=P(function(c,A,h){var f=T(c,A,null);if(f===null)return h;if(Array.isArray(f))return u.RND.pick(f);if(typeof f=="object"){if(f.hasOwnProperty("randInt"))return u.RND.integerInRange(f.randInt[0],f.randInt[1]);if(f.hasOwnProperty("randFloat"))return u.RND.realInRange(f.randFloat[0],f.randFloat[1])}else if(typeof f=="function")return f(A);return f},"GetAdvancedValue");o.exports=d},95540:o=>{/** + */var u=s(75508),T=s(35154),A=v(function(c,d,h){var f=T(c,d,null);if(f===null)return h;if(Array.isArray(f))return u.RND.pick(f);if(typeof f=="object"){if(f.hasOwnProperty("randInt"))return u.RND.integerInRange(f.randInt[0],f.randInt[1]);if(f.hasOwnProperty("randFloat"))return u.RND.realInRange(f.randFloat[0],f.randFloat[1])}else if(typeof f=="function")return f(d);return f},"GetAdvancedValue");o.exports=A},95540:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){var d=typeof s;return!s||d==="number"||d==="string"?T:s.hasOwnProperty(u)&&s[u]!==void 0?s[u]:T},"GetFastValue");o.exports=m},82840:(o,m,s)=>{/** + */var O=v(function(s,u,T){var A=typeof s;return!s||A==="number"||A==="string"?T:s.hasOwnProperty(u)&&s[u]!==void 0?s[u]:T},"GetFastValue");o.exports=O},82840:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(35154),T=s(45319),d=P(function(c,A,h,f,S){S===void 0&&(S=h);var O=u(c,A,S);return T(O,h,f)},"GetMinMaxValue");o.exports=d},35154:o=>{/** + */var u=s(35154),T=s(45319),A=v(function(c,d,h,f,S){S===void 0&&(S=h);var R=u(c,d,S);return T(R,h,f)},"GetMinMaxValue");o.exports=A},35154:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){if(!s&&!d||typeof s=="number")return T;if(s&&s.hasOwnProperty(u))return s[u];if(d&&d.hasOwnProperty(u))return d[u];if(u.indexOf(".")!==-1){for(var c=u.split("."),A=s,h=d,f=T,S=T,O=!0,L=!0,p=0;p{/** + */var O=v(function(s,u,T,A){if(!s&&!A||typeof s=="number")return T;if(s&&s.hasOwnProperty(u))return s[u];if(A&&A.hasOwnProperty(u))return A[u];if(u.indexOf(".")!==-1){for(var c=u.split("."),d=s,h=A,f=T,S=T,R=!0,L=!0,p=0;p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){for(var T=0;T{/** + */var O=v(function(s,u){for(var T=0;T{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){for(var T=0;T{/** + */var O=v(function(s,u){for(var T=0;T{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return s.hasOwnProperty(u)},"HasValue");o.exports=m},41212:o=>{/** + */var O=v(function(s,u){return s.hasOwnProperty(u)},"HasValue");o.exports=O},41212:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){if(!s||typeof s!="object"||s.nodeType||s===s.window)return!1;try{if(s.constructor&&!{}.hasOwnProperty.call(s.constructor.prototype,"isPrototypeOf"))return!1}catch{return!1}return!0},"IsPlainObject");o.exports=m},46975:(o,m,s)=>{/** + */var O=v(function(s){if(!s||typeof s!="object"||s.nodeType||s===s.window)return!1;try{if(s.constructor&&!{}.hasOwnProperty.call(s.constructor.prototype,"isPrototypeOf"))return!1}catch{return!1}return!0},"IsPlainObject");o.exports=O},46975:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(41786),T=P(function(d,c){var A=u(d);for(var h in c)A.hasOwnProperty(h)||(A[h]=c[h]);return A},"Merge");o.exports=T},269:(o,m,s)=>{/** + */var u=s(41786),T=v(function(A,c){var d=u(A);for(var h in c)d.hasOwnProperty(h)||(d[h]=c[h]);return d},"Merge");o.exports=T},269:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(41786),T=P(function(d,c){var A=u(d);for(var h in c)A.hasOwnProperty(h)&&(A[h]=c[h]);return A},"MergeRight");o.exports=T},18254:(o,m,s)=>{/** + */var u=s(41786),T=v(function(A,c){var d=u(A);for(var h in c)d.hasOwnProperty(h)&&(d[h]=c[h]);return d},"MergeRight");o.exports=T},18254:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var u=s(97022),T=P(function(d,c){for(var A={},h=0;h{/** + */var u=s(97022),T=v(function(A,c){for(var d={},h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T){if(!s||typeof s=="number")return!1;if(s.hasOwnProperty(u))return s[u]=T,!0;if(u.indexOf(".")!==-1){for(var d=u.split("."),c=s,A=s,h=0;h{/** + */var O=v(function(s,u,T){if(!s||typeof s=="number")return!1;if(s.hasOwnProperty(u))return s[u]=T,!0;if(u.indexOf(".")!==-1){for(var A=u.split("."),c=s,d=s,h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -6318,53 +6318,53 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return s.replace(/%([0-9]+)/g,function(T,d){return u[Number(d)-1]})},"Format");o.exports=m},41836:o=>{/** + */var O=v(function(s,u){return s.replace(/%([0-9]+)/g,function(T,A){return u[Number(A)-1]})},"Format");o.exports=O},41836:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u,T,d){u===void 0&&(u=0),T===void 0&&(T=" "),d===void 0&&(d=3),s=s.toString();var c=0;if(u+1>=s.length)switch(d){case 1:s=new Array(u+1-s.length).join(T)+s;break;case 3:var A=Math.ceil((c=u-s.length)/2),h=c-A;s=new Array(h+1).join(T)+s+new Array(A+1).join(T);break;default:s=s+new Array(u+1-s.length).join(T);break}return s},"Pad");o.exports=m},33628:o=>{/** + */var O=v(function(s,u,T,A){u===void 0&&(u=0),T===void 0&&(T=" "),A===void 0&&(A=3),s=s.toString();var c=0;if(u+1>=s.length)switch(A){case 1:s=new Array(u+1-s.length).join(T)+s;break;case 3:var d=Math.ceil((c=u-s.length)/2),h=c-d;s=new Array(h+1).join(T)+s+new Array(d+1).join(T);break;default:s=s+new Array(u+1-s.length).join(T);break}return s},"Pad");o.exports=O},33628:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s,u){return u===0?s.slice(1):s.slice(0,u-1)+s.slice(u)},"RemoveAt");o.exports=m},27671:o=>{/** + */var O=v(function(s,u){return u===0?s.slice(1):s.slice(0,u-1)+s.slice(u)},"RemoveAt");o.exports=O},27671:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s.split("").reverse().join("")},"Reverse");o.exports=m},45650:o=>{/** + */var O=v(function(s){return s.split("").reverse().join("")},"Reverse");o.exports=O},45650:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(s){var u=Math.random()*16|0,T=s==="x"?u:u&3|8;return T.toString(16)})},"UUID");o.exports=m},35355:o=>{/** + */var O=v(function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(s){var u=Math.random()*16|0,T=s==="x"?u:u&3|8;return T.toString(16)})},"UUID");o.exports=O},35355:o=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var m=P(function(s){return s&&s[0].toUpperCase()+s.slice(1)},"UppercaseFirst");o.exports=m},31749:(o,m,s)=>{/** + */var O=v(function(s){return s&&s[0].toUpperCase()+s.slice(1)},"UppercaseFirst");o.exports=O},31749:(o,O,s)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */o.exports={Format:s(27902),Pad:s(41836),RemoveAt:s(33628),Reverse:s(27671),UppercaseFirst:s(35355),UUID:s(45650)}}},r={};function l(o){var m=r[o];if(m!==void 0)return m.exports;var s=r[o]={exports:{}};return i[o](s,s.exports,l),s.exports}P(l,"__webpack_require__"),l.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}();var E=l(85454);return E})())})(RQ);var fne=RQ.exports;const nn=RB(fne);/** + */o.exports={Format:s(27902),Pad:s(41836),RemoveAt:s(33628),Reverse:s(27671),UppercaseFirst:s(35355),UUID:s(45650)}}},r={};function l(o){var O=r[o];if(O!==void 0)return O.exports;var s=r[o]={exports:{}};return i[o](s,s.exports,l),s.exports}v(l,"__webpack_require__"),l.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}();var E=l(85454);return E})())})(gQ);var pne=gQ.exports;const sn=LB(pne);/** * @author Richard Davey * @copyright 2019 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} - */var Rne=Phaser.Renderer.WebGL.Utils,One=P(function(n,t,i,r){if(!(t.width===0||t.height===0)){i.addToRenderList(t);var l=t.frame,E=l.width,o=l.height,m=Rne.getTintAppendFloatAlpha,s=n.pipelines.set(t.pipeline,t),u=s.setTexture2D(l.glTexture,t);n.pipelines.preBatch(t),s.batchTexture(t,l.glTexture,E,o,t.x,t.y,E/t.style.resolution,o/t.style.resolution,t.scaleX,t.scaleY,t.rotation,t.flipX,t.flipY,t.scrollFactorX,t.scrollFactorY,t.displayOriginX,t.displayOriginY,0,0,E,o,m(t.tintTopLeft,i.alpha*t._alphaTL),m(t.tintTopRight,i.alpha*t._alphaTR),m(t.tintBottomLeft,i.alpha*t._alphaBL),m(t.tintBottomRight,i.alpha*t._alphaBR),t.tintFill,0,0,i,r,!1,u),n.pipelines.postBatch(t)}},"WebGLRenderer$3");/** + */var Nne=Phaser.Renderer.WebGL.Utils,gne=v(function(n,t,i,r){if(!(t.width===0||t.height===0)){i.addToRenderList(t);var l=t.frame,E=l.width,o=l.height,O=Nne.getTintAppendFloatAlpha,s=n.pipelines.set(t.pipeline,t),u=s.setTexture2D(l.glTexture,t);n.pipelines.preBatch(t),s.batchTexture(t,l.glTexture,E,o,t.x,t.y,E/t.style.resolution,o/t.style.resolution,t.scaleX,t.scaleY,t.rotation,t.flipX,t.flipY,t.scrollFactorX,t.scrollFactorY,t.displayOriginX,t.displayOriginY,0,0,E,o,O(t.tintTopLeft,i.alpha*t._alphaTL),O(t.tintTopRight,i.alpha*t._alphaTR),O(t.tintBottomLeft,i.alpha*t._alphaBL),O(t.tintBottomRight,i.alpha*t._alphaBR),t.tintFill,0,0,i,r,!1,u),n.pipelines.postBatch(t)}},"WebGLRenderer$3");/** * @author Richard Davey * @copyright 2019 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} - */var mne=P(function(n,t,i,r){t.width===0||t.height===0||(i.addToRenderList(t),n.batchSprite(t,t.frame,i,r))},"CanvasRenderer$3");const Ine={renderWebGL:One,renderCanvas:mne},R0=Phaser.Display.Canvas.CanvasPool;var Sne=P(function(n,t,i){i===void 0&&(i={});var r=R0.create(this),l=r.getContext("2d",{willReadFrequently:!0});n.syncFont(r,l);var E=l.measureText(t),o=Math.ceil(E.width*n.baselineX),m=o,s=2*m;if(m=m*n.baselineY|0,r.width=o,r.height=s,l.fillStyle="#f00",l.fillRect(0,0,o,s),l.font=n._font,l.textBaseline="alphabetic",l.fillStyle="#000",l.fillText(n.testString,0,m),i.left=0,o===0||s===0||!l.getImageData(0,0,o,s))return R0.remove(r),i;for(var u=l.getImageData(0,0,o,s).data,T=!1,d=0;d * @copyright 2018 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} - */const sS=Phaser.Display.Canvas.CanvasPool;var Bz=P(function(n){var t=sS.create(this),i=t.getContext("2d",{willReadFrequently:!0});n.syncFont(t,i);var r=i.measureText(n.testString);if("actualBoundingBoxAscent"in r){var l=r.actualBoundingBoxAscent,E=r.actualBoundingBoxDescent,u={ascent:l,descent:E,fontSize:l+E};return sS.remove(t),u}var o=Math.ceil(r.width*n.baselineX),m=o,s=2*m;m=m*n.baselineY|0,t.width=o,t.height=s,i.fillStyle="#f00",i.fillRect(0,0,o,s),i.font=n._font,i.textBaseline="alphabetic",i.fillStyle="#000",i.fillText(n.testString,0,m);var u={ascent:0,descent:0,fontSize:0};if(!i.getImageData(0,0,o,s))return u.ascent=m,u.descent=m+6,u.fontSize=u.ascent+u.descent,sS.remove(t),u;var T=i.getImageData(0,0,o,s).data,d=T.length,c=o*4,A,h,f=0,S=!1;for(A=0;Am;A--){for(h=0;h0&&this.wrapMode!==Mn.NO_WRAP&&this.wrapWidth===0}setStyle(t,i,r){if(i===void 0&&(i=!0),r===void 0&&(r=!1),t&&t.hasOwnProperty("wordWrap")){var l=t.wordWrap;l.hasOwnProperty("width")&&(t.wrap={mode:"word",width:l.width})}if(t&&t.hasOwnProperty("wrap")){var E=t.wrap;if(E.hasOwnProperty("mode")){var o=E.mode;typeof o=="string"&&(E.mode=_z[o])}else E.hasOwnProperty("width")&&(E.mode=1)}t&&t.rtl&&r&&!t.hasOwnProperty("halign")&&(t.halign="right"),t&&t.hasOwnProperty("fontSize")&&typeof t.fontSize=="number"&&(t.fontSize=t.fontSize.toString()+"px");var m=this.propertyMap;for(var s in m){var u=m[s],T=u[0],d=r?u[1]:this[s],c=u[2];if(s==="wrapCallback"||s==="wrapCallbackScope")this[s]=ls(t,T,d);else{var A=gne(t,T,d);c&&(A=c(A)),this[s]=A}}var h=ls(t,"font",null);h===null?this._font=this.fontStyle+" "+this.fontSize+" "+this.fontFamily:this._font=h;var f=ls(t,"fill",null);f!==null&&(this.color=yt(f));var S=ls(t,"metrics",!1);return S?this.metrics={ascent:ls(S,"ascent",0),descent:ls(S,"descent",0),fontSize:ls(S,"fontSize",0)}:(i||!this.metrics)&&(this.metrics=Bz(this)),i?this.parent.updateText():this.parent}syncFont(t,i){i.font=this._font}syncStyle(t,i){i.textBaseline="alphabetic",i.fillStyle=this.color,i.strokeStyle=this.stroke,i.lineWidth=this.strokeThickness,i.lineCap="round",i.lineJoin="round"}syncShadow(t,i){i?(t.shadowOffsetX=this.shadowOffsetX,t.shadowOffsetY=this.shadowOffsetY,t.shadowColor=this.shadowColor,t.shadowBlur=this.shadowBlur):(t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowColor=0,t.shadowBlur=0)}update(t){return t&&(this._font=`${this.fontStyle} ${this.fontSize} ${this.fontFamily}`.trim(),this.metrics=Bz(this)),this.parent.updateText(t)}buildFont(){var t=`${this.fontStyle} ${this.fontSize} ${this.fontFamily}`.trim();return t!==this._font&&(this._font=t),this}setFont(t){return typeof t=="string"?(this.fontFamily=t,this.fontSize="",this.fontStyle=""):(this.fontFamily=ls(t,"fontFamily","Courier"),this.fontSize=ls(t,"fontSize","16px"),this.fontStyle=ls(t,"fontStyle","")),this.update(!0)}setFontFamily(t){return this.fontFamily=t,this.update(!0)}setFontStyle(t){return this.fontStyle=t,this.update(!0)}setFontSize(t){return typeof t=="number"&&(t=t.toString()+"px"),this.fontSize=t,this.update(!0)}setTestString(t){return this.testString=t,this.update(!0)}setFixedSize(t,i){return this.fixedWidth=t,this.fixedHeight=i,t&&(this.parent.width=t),i&&(this.parent.height=i),this.update(this.isWrapFitMode)}setResolution(t){return this.resolution=t,this.update(!1)}setXOffset(t){return this.xOffset=t,this.update(!1)}setBackgroundColor(t,i,r){return r===void 0&&(r=!0),this.backgroundColor=yt(t,this.parent.canvas,this.parent.context),this.backgroundColor2=yt(i,this.parent.canvas,this.parent.context),this.backgroundHorizontalGradient=r,this.update(!1)}setBackgroundStrokeColor(t,i){return this.backgroundStrokeColor=yt(t,this.parent.canvas,this.parent.context),this.backgroundStrokeLineWidth=i,this.update(!1)}setBackgroundCornerRadius(t,i){return this.backgroundCornerRadius=t,this.backgroundCornerIteration=i,this.update(!1)}setFill(t){return this.color=yt(t,this.parent.canvas,this.parent.context),this.update(!1)}setColor(t){return this.color=yt(t,this.parent.canvas,this.parent.context),this.update(!1)}setStroke(t,i){return t===void 0?this.strokeThickness=0:(i===void 0&&(i=this.strokeThickness),this.stroke=yt(t,this.parent.canvas,this.parent.context),this.strokeThickness=i),this.update(!0)}setShadow(t,i,r,l,E,o){return t===void 0&&(t=0),i===void 0&&(i=0),r===void 0&&(r="#000"),l===void 0&&(l=0),E===void 0&&(E=!1),o===void 0&&(o=!0),this.shadowOffsetX=t,this.shadowOffsetY=i,this.shadowColor=yt(r,this.parent.canvas,this.parent.context),this.shadowBlur=l,this.shadowStroke=E,this.shadowFill=o,this.update(!1)}setShadowOffset(t,i){return t===void 0&&(t=0),i===void 0&&(i=t),this.shadowOffsetX=t,this.shadowOffsetY=i,this.update(!1)}setShadowColor(t){return t===void 0&&(t="#000"),this.shadowColor=yt(t,this.parent.canvas,this.parent.context),this.update(!1)}setShadowBlur(t){return t===void 0&&(t=0),this.shadowBlur=t,this.update(!1)}setShadowStroke(t){return this.shadowStroke=t,this.update(!1)}setShadowFill(t){return this.shadowFill=t,this.update(!1)}setUnderline(t,i,r){return t===void 0&&(t="#000"),i===void 0&&(i=0),r===void 0&&(r=0),this.underlineColor=yt(t,this.parent.canvas,this.parent.context),this.underlineThickness=i,this.underlineOffset=r,this.update(!1)}setUnderlineColor(t){return t===void 0&&(t="#000"),this.underlineColor=yt(t,this.parent.canvas,this.parent.context),this.update(!1)}setUnderlineThickness(t){return t===void 0&&(t=0),this.underlineThickness=t,this.update(!1)}setUnderlineOffset(t){return t===void 0&&(t=0),this.underlineOffset=t,this.update(!1)}setStrikethrough(t,i,r){return t===void 0&&(t="#000"),i===void 0&&(i=0),r===void 0&&(r=0),this.strikethroughColor=yt(t,this.parent.canvas,this.parent.context),this.strikethroughThickness=i,this.strikethroughOffset=r,this.update(!1)}setStrikethroughColor(t){return t===void 0&&(t="#000"),this.strikethroughColor=yt(t,this.parent.canvas,this.parent.context),this.update(!1)}setStrikethroughThickness(t){return t===void 0&&(t=0),this.strikethroughThickness=t,this.update(!1)}setStrikethroughOffset(t){return t===void 0&&(t=0),this.strikethroughOffset=t,this.update(!1)}setWrapMode(t){return typeof t=="string"&&(t=_z[t.toLowerCase()]||0),this.wrapMode=t,this.update(!0)}setWrapWidth(t){return this.wrapWidth=t,this.update(!1)}setAlign(t,i){return t===void 0&&(t="left"),i===void 0&&(i="top"),this.halign=t,this.valign=i,this.update(!1)}setHAlign(t){return t===void 0&&(t="left"),this.halign=t,this.update(!1)}setVAlign(t){return t===void 0&&(t="top"),this.valign=t,this.update(!1)}setMaxLines(t){return t===void 0&&(t=0),this.maxLines=t,this.update(!1)}getTextMetrics(){var t=this.metrics;return{ascent:t.ascent,descent:t.descent,fontSize:t.fontSize}}setTextMetrics(t,i){return this.metrics.ascent=t.ascent,this.metrics.descent=t.descent,this.metrics.fontSize=t.fontSize,i&&(typeof i=="string"?(this.fontFamily=i,this.fontSize="",this.fontStyle=""):(this.fontFamily=ls(i,"fontFamily",this.fontFamily),this.fontSize=ls(i,"fontSize",this.fontSize),this.fontStyle=ls(i,"fontStyle",this.fontStyle))),this.parent.updateText(!0)}get lineHeight(){return this.metrics.fontSize+this.strokeThickness+this.parent.lineSpacing}toJSON(){var t={},i=this.propertyMap;for(var r in i)t[r]=this[r];return t.metrics=this.getTextMetrics(),t}destroy(){this.parent=void 0}},P(qm,"TextStyle"),qm);const _z={none:Mn.NO_WRAP,word:Mn.WORD_WRAP,char:Mn.CHAR_WRAP,character:Mn.CHAR_WRAP,mix:Mn.MIX_WRAP},Pl=Phaser.Utils.Objects.GetValue;var jm;let OQ=(jm=class{constructor(t,i,r,l,E){t===void 0&&(t=0),i===void 0&&(i=t),r===void 0&&(r=0),l===void 0&&(l=0),E===void 0&&(E=0),this.cornerRadius={},this._width=0,this._height=0,this.setTo(t,i,r,l,E)}setTo(t,i,r,l,E){return this.setPosition(t,i),this.setRadius(E),this.setSize(r,l),this}setPosition(t,i){return this.x=t,this.y=i,this}setRadius(t){return t===void 0&&(t=0),this.radius=t,this}setSize(t,i){return this.width=t,this.height=i,this}get minWidth(){var t=this.cornerRadius;return Math.max(t.tl.x+t.tr.x,t.bl.x+t.br.x)}get minHeight(){var t=this.cornerRadius;return Math.max(t.tl.y+t.bl.y,t.tr.y+t.br.y)}get width(){return this._width}set width(t){t==null&&(t=0),this._width=Math.max(t,this.minWidth)}get height(){return this._height}set height(t){t==null&&(t=0),this._height=Math.max(t,this.minHeight)}get radius(){var t=this.cornerRadius;return Math.max(t.tl.x,t.tl.y,t.tr.x,t.tr.y,t.bl.x,t.bl.y,t.br.x,t.br.y)}set radius(t){var i,r;typeof t=="number"?(i=t,r=t):(i=Pl(t,"x",0),r=Pl(t,"y",0));var l=this.cornerRadius;l.tl=rS(Pl(t,"tl",void 0),i,r),l.tr=rS(Pl(t,"tr",void 0),i,r),l.bl=rS(Pl(t,"bl",void 0),i,r),l.br=rS(Pl(t,"br",void 0),i,r)}get radiusTL(){var t=this.cornerRadius.tl;return Math.max(t.x,t.y)}set radiusTL(t){oS(this.cornerRadius.tl,t)}get radiusTR(){var t=this.cornerRadius.tr;return Math.max(t.x,t.y)}set radiusTR(t){oS(this.cornerRadius.tr,t)}get radiusBL(){var t=this.cornerRadius.bl;return Math.max(t.x,t.y)}set radiusBL(t){oS(this.cornerRadius.bl,t)}get radiusBR(){var t=this.cornerRadius.br;return Math.max(t.x,t.y)}set radiusBR(t){oS(this.cornerRadius.br,t)}},P(jm,"RoundRectangle"),jm);var rS=P(function(n,t,i){return n===void 0?n={x:t,y:i}:typeof n=="number"&&(n={x:n,y:n}),mQ(n),n},"GetRadius"),oS=P(function(n,t){typeof t=="number"?(n.x=t,n.y=t):(n.x=Pl(t,"x",0),n.y=Pl(t,"y",0)),mQ(n)},"SetRadius"),mQ=P(function(n){n.convex=n.x>=0||n.y>=0,n.x=Math.abs(n.x),n.y=Math.abs(n.y)},"SetConvex");const bz=Phaser.Math.DegToRad;var IQ=P(function(n,t,i,r,l,E,o){var m=new OQ(t,i,r,l,E),s=m.minWidth,u=m.minHeight,T=r>=s?1:r/s,d=l>=u?1:l/u,c=m.cornerRadius,A,h,f,S,O,L,p;n.save(),n.beginPath(),n.translate(t,i),A=c.tl,uS(A)?(h=A.x*T,f=A.y*d,lS(A)?(S=h,O=f,Al(n,S,O,h,f,180,270,!1,o)):(S=0,O=0,Al(n,S,O,h,f,90,0,!0,o)),L=0,p=f):(n.lineTo(0,0),L=0,p=0),A=c.tr,uS(A)?(h=A.x*T,f=A.y*d,lS(A)?(S=r-h,O=f,Al(n,S,O,h,f,270,360,!1,o)):(S=r,O=0,Al(n,S,O,h,f,180,90,!0,o))):n.lineTo(r,0),A=c.br,uS(A)?(h=A.x*T,f=A.y*d,lS(A)?(S=r-h,O=l-f,Al(n,S,O,h,f,0,90,!1,o)):(S=r,O=l,Al(n,S,O,h,f,270,180,!0,o))):n.lineTo(r,l),A=c.bl,uS(A)?(h=A.x*T,f=A.y*d,lS(A)?(S=h,O=l-f,Al(n,S,O,h,f,90,180,!1,o)):(S=0,O=l,Al(n,S,O,h,f,360,270,!0,o))):n.lineTo(0,l),n.lineTo(L,p),n.closePath(),n.restore()},"AddRoundRectanglePath"),lS=P(function(n){return!n.hasOwnProperty("convex")||n.convex},"IsConvexArc"),uS=P(function(n){return n.x>0&&n.y>0},"IsArcCorner$1"),Al=P(function(n,t,i,r,l,E,o,m,s){if(m&&o>E?o-=360:!m&&o0&&(t.strokeStyle=s,t.lineWidth=u,t.stroke())},"DrawRoundRectangle"),mB=P(function(n,t,i,r,l,E,o,m){if(!(t==null&&i==null)){var s=n.canvas.width,u=n.canvas.height;i==null&&(r=0);var T=r/2;s=Math.max(1,s-r),u=Math.max(1,u-r),Cne(n.canvas,n.context,T,T,s,u,l,t,i,r,E,o,m)}},"DrawRoundRectangleBackground");const Pne={draw(n,t,i,r){var l=this.penManager;this.hitAreaManager.clear();var E=this.context;E.save();var o=this.defaultStyle;this.clear(),mB(this,o.backgroundColor,o.backgroundStrokeColor,o.backgroundStrokeLineWidth,o.backgroundCornerRadius,o.backgroundColor2,o.backgroundHorizontalGradient,o.backgroundCornerIteration),n+=this.startXOffset,t+=this.startYOffset;var m=o.halign,s=o.valign,u,T=o.lineHeight,d=l.lines,c=d.length,A=o.maxLines,h,f,S;A>0&&c>A?(h=A,s==="center"?f=Math.floor((c-h)/2):s==="bottom"?f=c-h:f=0):(h=c,f=0),S=f+h;var O,L,p=this.rtl,N=p?this.parent.width:void 0;s==="center"?L=Math.max((r-h*T)/2,0):s==="bottom"?L=Math.max(r-h*T-2,0):L=0,L+=t;for(var g=f;g0&&n.width>0){var m=i+o.underlineOffset-o.underlineThickness/2;this.drawLine(t,m,n.width,o.underlineThickness,o.underlineColor,o)}if(n.isTextPen&&this.drawText(t,i,n.text,o),n.isImagePen&&this.drawImage(t,i,n.prop.img,n.prop.color,o),o.strikethroughThickness>0&&n.width>0){var m=i+o.strikethroughOffset-o.strikethroughThickness/2;this.drawLine(t,m,n.width,o.strikethroughThickness,o.strikethroughColor,o)}if(E.restore(),n.hasAreaMarker&&n.width>0){var s,u=n.prop.area;if(u)s={key:u};else{var T=n.prop.url;s={key:`url:${T}`,url:T}}this.hitAreaManager.add(t,i-this.startYOffset,n.width,this.defaultStyle.lineHeight,s)}},clear(){var n=this.canvas;this.context.clearRect(0,0,n.width,n.height)},drawLine(n,t,i,r,l,E){this.autoRound&&(n=Math.round(n),t=Math.round(t));var o=this.context;E.syncShadow(o,E.shadowStroke);var m=o.lineCap;o.lineCap="butt",o.strokeStyle=l,o.lineWidth=r,o.beginPath(),o.moveTo(n,t),o.lineTo(n+i,t),o.stroke(),o.lineCap=m},drawText(n,t,i,r){this.autoRound&&(n=Math.round(n),t=Math.round(t));var l=this.context;r.stroke&&r.stroke!=="none"&&r.strokeThickness>0&&(r.syncShadow(l,r.shadowStroke),l.strokeText(i,n,t)),r.color&&r.color!=="none"&&(r.syncShadow(l,r.shadowFill),l.fillText(i,n,t))},drawImage(n,t,i,r,l){t-=this.startYOffset,this.parent.imageManager.draw(i,this.context,n,t,r,this.autoRound)}},Du=Phaser.Utils.Objects.GetValue,vne=Mn.NO_NEWLINE,wz=Mn.RAW_NEWLINE,Y_=class Y_{constructor(t){this.prop={},this.resetFromJSON(t)}resetFromJSON(t){this.text=Du(t,"text",""),this.x=Du(t,"x",0),this.y=Du(t,"y",0),this.width=Du(t,"width",0);var i=Du(t,"prop",null);i===null&&(i={}),this.prop=i,this.newLineMode=Du(t,"newLineMode",0),this.startIndex=Du(t,"startIndex",0)}get plainText(){var t=this.text;return this.newLineMode===wz&&(t+=` -`),t}get wrapText(){var t=this.text;return this.newLineMode!==vne&&(t+=` -`),t}get rawTextLength(){var t=this.text.length;return this.newLineMode===wz&&(t+=1),t}get endIndex(){return this.startIndex+this.rawTextLength}get lastX(){return this.x+this.width}get isTextPen(){return this.text!==""}get isImagePen(){return!!this.prop.img}get hasAreaMarker(){return!!this.prop.area||!!this.prop.url}};P(Y_,"Pen");let Vv=Y_;var Yo=P(function(n){if(typeof n!="object"||n===null)return n;if(Array.isArray(n))n.length=0;else for(var t in n)delete n[t];return n},"Clear$1"),mo=P(function(n,t){var i=Array.isArray(n);if(t===void 0?t=i?[]:{}:Yo(t),i){t.length=n.length;for(var r=0,l=n.length;r=this.lines.length)return this.getLineEndIndex(t);var i=this.lines[t];return i&&i[0]?i[0].startIndex:0}getLineEndIndex(t){t>=this.lines.length&&(t=this.lines.length-1);var i,r=!1,l;for(i=t;i>=0&&(l=this.lines[i],r=l!=null&&l.length>0,!r);i--);if(!r)return 0;var E=l[l.length-1];return E.endIndex}getLineWidth(t){var i=this.lines[t];if(!i)return 0;var r=i[i.length-1];if(r==null)return 0;var l=r.lastX;return l}getMaxLineWidth(){if(this.maxLinesWidth!==void 0)return this.maxLinesWidth;for(var t,i=0,r=0,l=this.lines.length;ri&&(i=t);return this.maxLinesWidth=i,i}getLineWidths(){for(var t=[],i=0,r=this.lines.length;i=t&&T<=i,d||(s=s.substring(t-u,i-u)),this.tagToTextScope?o+=this.tagToText.call(this.tagToTextScope,s,c,A):o+=this.tagToText(s,c,A),A=c,T>=i)));h++);return o}get length(){return this.lines.length}set length(t){this.clear()}};P(oC,"PenManager");let zv=oC;var Mu={};const V_=class V_{constructor(){this.items=[]}destroy(){this.clear(),this.items=void 0}pop(){return this.items.length>0?this.items.pop():null}push(t){return this.items.push(t),this}pushMultiple(t){return this.items.push.apply(this.items,t),t.length=0,this}clear(){return this.items.length=0,this}};P(V_,"Stack");let $s=V_;const Mne=Phaser.Geom.Rectangle;var kz=new $s;const z_=class z_{constructor(){this.hitAreas=[]}destroy(){this.clear()}clear(){for(var t=0,i=this.hitAreas.length;tr&&Fne(S)){L!==""?o.push(E.getLine(L,p,m0)):g===0&&l>0&&o.push(E.getLine("",0,m0)),o.push(...TQ(S,t,SQ,r,0,E));var v=o.pop();L=v.text,p=v.width,E.freeLine(v),L===" "&&(L="",p=0);continue}N=p+O,N>T?(o.push(E.getLine(L,p,m0)),L=S,p=O,T=r):(L+=S,p=N),g===C-1&&o.push(E.getLine(L,p,d))}}return o},"WrapText"),wne=P(function(n,t){var i=[];switch(t){case _ne:n=n.split(" ");for(var r=0,l=n.length;r0&&i!==xne&&r0&&t>i&&(t=i),t}get linesWidth(){return Math.ceil(this.penManager.getMaxLineWidth())}get linesHeight(){var t=this.desplayLinesCount,i=this.defaultStyle.lineHeight*t;return t>0&&(i-=this.defaultStyle.lineSpacing),i}get imageManager(){return this.parent.imageManager}get rtl(){return this.parent.style.rtl}newPenManager(){return new zv({pensPool:this.pensPool,linesPool:this.linesPool,tagToText:this.parser.propToTagText,tagToTextScope:this.parser})}get tmpPenManager(){return this._tmpPenManager===null&&(this._tmpPenManager=this.newPenManager()),this._tmpPenManager}getPlainText(t,i,r){var l;if(t==null)l=this.penManager.plainText;else{var E=this.parser.splitText(t,1);l="";for(var o=0,m=E.length;oO;d--){for(h=0;h0&&this.wrapMode!==Mn.NO_WRAP&&this.wrapWidth===0}setStyle(t,i,r){if(i===void 0&&(i=!0),r===void 0&&(r=!1),t&&t.hasOwnProperty("wordWrap")){var l=t.wordWrap;l.hasOwnProperty("width")&&(t.wrap={mode:"word",width:l.width})}if(t&&t.hasOwnProperty("wrap")){var E=t.wrap;if(E.hasOwnProperty("mode")){var o=E.mode;typeof o=="string"&&(E.mode=Vz[o])}else E.hasOwnProperty("width")&&(E.mode=1)}t&&t.rtl&&r&&!t.hasOwnProperty("halign")&&(t.halign="right"),t&&t.hasOwnProperty("fontSize")&&typeof t.fontSize=="number"&&(t.fontSize=t.fontSize.toString()+"px");var O=this.propertyMap;for(var s in O){var u=O[s],T=u[0],A=r?u[1]:this[s],c=u[2];if(s==="wrapCallback"||s==="wrapCallbackScope")this[s]=ls(t,T,A);else{var d=yne(t,T,A);c&&(d=c(d)),this[s]=d}}var h=ls(t,"font",null);h===null?this._font=this.fontStyle+" "+this.fontSize+" "+this.fontFamily:this._font=h;var f=ls(t,"fill",null);f!==null&&(this.color=yt(f));var S=ls(t,"metrics",!1);return S?this.metrics={ascent:ls(S,"ascent",0),descent:ls(S,"descent",0),fontSize:ls(S,"fontSize",0)}:(i||!this.metrics)&&(this.metrics=Yz(this)),i?this.parent.updateText():this.parent}syncFont(t,i){i.font=this._font}syncStyle(t,i){i.textBaseline="alphabetic",i.fillStyle=this.color,i.strokeStyle=this.stroke,i.lineWidth=this.strokeThickness,i.lineCap="round",i.lineJoin="round"}syncShadow(t,i){i?(t.shadowOffsetX=this.shadowOffsetX,t.shadowOffsetY=this.shadowOffsetY,t.shadowColor=this.shadowColor,t.shadowBlur=this.shadowBlur):(t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowColor=0,t.shadowBlur=0)}update(t){return t&&(this._font=`${this.fontStyle} ${this.fontSize} ${this.fontFamily}`.trim(),this.metrics=Yz(this)),this.parent.updateText(t)}buildFont(){var t=`${this.fontStyle} ${this.fontSize} ${this.fontFamily}`.trim();return t!==this._font&&(this._font=t),this}setFont(t){return typeof t=="string"?(this.fontFamily=t,this.fontSize="",this.fontStyle=""):(this.fontFamily=ls(t,"fontFamily","Courier"),this.fontSize=ls(t,"fontSize","16px"),this.fontStyle=ls(t,"fontStyle","")),this.update(!0)}setFontFamily(t){return this.fontFamily=t,this.update(!0)}setFontStyle(t){return this.fontStyle=t,this.update(!0)}setFontSize(t){return typeof t=="number"&&(t=t.toString()+"px"),this.fontSize=t,this.update(!0)}setTestString(t){return this.testString=t,this.update(!0)}setFixedSize(t,i){return this.fixedWidth=t,this.fixedHeight=i,t&&(this.parent.width=t),i&&(this.parent.height=i),this.update(this.isWrapFitMode)}setResolution(t){return this.resolution=t,this.update(!1)}setXOffset(t){return this.xOffset=t,this.update(!1)}setBackgroundColor(t,i,r){return r===void 0&&(r=!0),this.backgroundColor=yt(t,this.parent.canvas,this.parent.context),this.backgroundColor2=yt(i,this.parent.canvas,this.parent.context),this.backgroundHorizontalGradient=r,this.update(!1)}setBackgroundStrokeColor(t,i){return this.backgroundStrokeColor=yt(t,this.parent.canvas,this.parent.context),this.backgroundStrokeLineWidth=i,this.update(!1)}setBackgroundCornerRadius(t,i){return this.backgroundCornerRadius=t,this.backgroundCornerIteration=i,this.update(!1)}setFill(t){return this.color=yt(t,this.parent.canvas,this.parent.context),this.update(!1)}setColor(t){return this.color=yt(t,this.parent.canvas,this.parent.context),this.update(!1)}setStroke(t,i){return t===void 0?this.strokeThickness=0:(i===void 0&&(i=this.strokeThickness),this.stroke=yt(t,this.parent.canvas,this.parent.context),this.strokeThickness=i),this.update(!0)}setShadow(t,i,r,l,E,o){return t===void 0&&(t=0),i===void 0&&(i=0),r===void 0&&(r="#000"),l===void 0&&(l=0),E===void 0&&(E=!1),o===void 0&&(o=!0),this.shadowOffsetX=t,this.shadowOffsetY=i,this.shadowColor=yt(r,this.parent.canvas,this.parent.context),this.shadowBlur=l,this.shadowStroke=E,this.shadowFill=o,this.update(!1)}setShadowOffset(t,i){return t===void 0&&(t=0),i===void 0&&(i=t),this.shadowOffsetX=t,this.shadowOffsetY=i,this.update(!1)}setShadowColor(t){return t===void 0&&(t="#000"),this.shadowColor=yt(t,this.parent.canvas,this.parent.context),this.update(!1)}setShadowBlur(t){return t===void 0&&(t=0),this.shadowBlur=t,this.update(!1)}setShadowStroke(t){return this.shadowStroke=t,this.update(!1)}setShadowFill(t){return this.shadowFill=t,this.update(!1)}setUnderline(t,i,r){return t===void 0&&(t="#000"),i===void 0&&(i=0),r===void 0&&(r=0),this.underlineColor=yt(t,this.parent.canvas,this.parent.context),this.underlineThickness=i,this.underlineOffset=r,this.update(!1)}setUnderlineColor(t){return t===void 0&&(t="#000"),this.underlineColor=yt(t,this.parent.canvas,this.parent.context),this.update(!1)}setUnderlineThickness(t){return t===void 0&&(t=0),this.underlineThickness=t,this.update(!1)}setUnderlineOffset(t){return t===void 0&&(t=0),this.underlineOffset=t,this.update(!1)}setStrikethrough(t,i,r){return t===void 0&&(t="#000"),i===void 0&&(i=0),r===void 0&&(r=0),this.strikethroughColor=yt(t,this.parent.canvas,this.parent.context),this.strikethroughThickness=i,this.strikethroughOffset=r,this.update(!1)}setStrikethroughColor(t){return t===void 0&&(t="#000"),this.strikethroughColor=yt(t,this.parent.canvas,this.parent.context),this.update(!1)}setStrikethroughThickness(t){return t===void 0&&(t=0),this.strikethroughThickness=t,this.update(!1)}setStrikethroughOffset(t){return t===void 0&&(t=0),this.strikethroughOffset=t,this.update(!1)}setWrapMode(t){return typeof t=="string"&&(t=Vz[t.toLowerCase()]||0),this.wrapMode=t,this.update(!0)}setWrapWidth(t){return this.wrapWidth=t,this.update(!1)}setAlign(t,i){return t===void 0&&(t="left"),i===void 0&&(i="top"),this.halign=t,this.valign=i,this.update(!1)}setHAlign(t){return t===void 0&&(t="left"),this.halign=t,this.update(!1)}setVAlign(t){return t===void 0&&(t="top"),this.valign=t,this.update(!1)}setMaxLines(t){return t===void 0&&(t=0),this.maxLines=t,this.update(!1)}getTextMetrics(){var t=this.metrics;return{ascent:t.ascent,descent:t.descent,fontSize:t.fontSize}}setTextMetrics(t,i){return this.metrics.ascent=t.ascent,this.metrics.descent=t.descent,this.metrics.fontSize=t.fontSize,i&&(typeof i=="string"?(this.fontFamily=i,this.fontSize="",this.fontStyle=""):(this.fontFamily=ls(i,"fontFamily",this.fontFamily),this.fontSize=ls(i,"fontSize",this.fontSize),this.fontStyle=ls(i,"fontStyle",this.fontStyle))),this.parent.updateText(!0)}get lineHeight(){return this.metrics.fontSize+this.strokeThickness+this.parent.lineSpacing}toJSON(){var t={},i=this.propertyMap;for(var r in i)t[r]=this[r];return t.metrics=this.getTextMetrics(),t}destroy(){this.parent=void 0}},v(QO,"TextStyle"),QO);const Vz={none:Mn.NO_WRAP,word:Mn.WORD_WRAP,char:Mn.CHAR_WRAP,character:Mn.CHAR_WRAP,mix:Mn.MIX_WRAP},Pl=Phaser.Utils.Objects.GetValue;var JO;let CQ=(JO=class{constructor(t,i,r,l,E){t===void 0&&(t=0),i===void 0&&(i=t),r===void 0&&(r=0),l===void 0&&(l=0),E===void 0&&(E=0),this.cornerRadius={},this._width=0,this._height=0,this.setTo(t,i,r,l,E)}setTo(t,i,r,l,E){return this.setPosition(t,i),this.setRadius(E),this.setSize(r,l),this}setPosition(t,i){return this.x=t,this.y=i,this}setRadius(t){return t===void 0&&(t=0),this.radius=t,this}setSize(t,i){return this.width=t,this.height=i,this}get minWidth(){var t=this.cornerRadius;return Math.max(t.tl.x+t.tr.x,t.bl.x+t.br.x)}get minHeight(){var t=this.cornerRadius;return Math.max(t.tl.y+t.bl.y,t.tr.y+t.br.y)}get width(){return this._width}set width(t){t==null&&(t=0),this._width=Math.max(t,this.minWidth)}get height(){return this._height}set height(t){t==null&&(t=0),this._height=Math.max(t,this.minHeight)}get radius(){var t=this.cornerRadius;return Math.max(t.tl.x,t.tl.y,t.tr.x,t.tr.y,t.bl.x,t.bl.y,t.br.x,t.br.y)}set radius(t){var i,r;typeof t=="number"?(i=t,r=t):(i=Pl(t,"x",0),r=Pl(t,"y",0));var l=this.cornerRadius;l.tl=uS(Pl(t,"tl",void 0),i,r),l.tr=uS(Pl(t,"tr",void 0),i,r),l.bl=uS(Pl(t,"bl",void 0),i,r),l.br=uS(Pl(t,"br",void 0),i,r)}get radiusTL(){var t=this.cornerRadius.tl;return Math.max(t.x,t.y)}set radiusTL(t){hS(this.cornerRadius.tl,t)}get radiusTR(){var t=this.cornerRadius.tr;return Math.max(t.x,t.y)}set radiusTR(t){hS(this.cornerRadius.tr,t)}get radiusBL(){var t=this.cornerRadius.bl;return Math.max(t.x,t.y)}set radiusBL(t){hS(this.cornerRadius.bl,t)}get radiusBR(){var t=this.cornerRadius.br;return Math.max(t.x,t.y)}set radiusBR(t){hS(this.cornerRadius.br,t)}},v(JO,"RoundRectangle"),JO);var uS=v(function(n,t,i){return n===void 0?n={x:t,y:i}:typeof n=="number"&&(n={x:n,y:n}),vQ(n),n},"GetRadius"),hS=v(function(n,t){typeof t=="number"?(n.x=t,n.y=t):(n.x=Pl(t,"x",0),n.y=Pl(t,"y",0)),vQ(n)},"SetRadius"),vQ=v(function(n){n.convex=n.x>=0||n.y>=0,n.x=Math.abs(n.x),n.y=Math.abs(n.y)},"SetConvex");const zz=Phaser.Math.DegToRad;var PQ=v(function(n,t,i,r,l,E,o){var O=new CQ(t,i,r,l,E),s=O.minWidth,u=O.minHeight,T=r>=s?1:r/s,A=l>=u?1:l/u,c=O.cornerRadius,d,h,f,S,R,L,p;n.save(),n.beginPath(),n.translate(t,i),d=c.tl,dS(d)?(h=d.x*T,f=d.y*A,cS(d)?(S=h,R=f,Al(n,S,R,h,f,180,270,!1,o)):(S=0,R=0,Al(n,S,R,h,f,90,0,!0,o)),L=0,p=f):(n.lineTo(0,0),L=0,p=0),d=c.tr,dS(d)?(h=d.x*T,f=d.y*A,cS(d)?(S=r-h,R=f,Al(n,S,R,h,f,270,360,!1,o)):(S=r,R=0,Al(n,S,R,h,f,180,90,!0,o))):n.lineTo(r,0),d=c.br,dS(d)?(h=d.x*T,f=d.y*A,cS(d)?(S=r-h,R=l-f,Al(n,S,R,h,f,0,90,!1,o)):(S=r,R=l,Al(n,S,R,h,f,270,180,!0,o))):n.lineTo(r,l),d=c.bl,dS(d)?(h=d.x*T,f=d.y*A,cS(d)?(S=h,R=l-f,Al(n,S,R,h,f,90,180,!1,o)):(S=0,R=l,Al(n,S,R,h,f,360,270,!0,o))):n.lineTo(0,l),n.lineTo(L,p),n.closePath(),n.restore()},"AddRoundRectanglePath"),cS=v(function(n){return!n.hasOwnProperty("convex")||n.convex},"IsConvexArc"),dS=v(function(n){return n.x>0&&n.y>0},"IsArcCorner$1"),Al=v(function(n,t,i,r,l,E,o,O,s){if(O&&o>E?o-=360:!O&&o0&&(t.strokeStyle=s,t.lineWidth=u,t.stroke())},"DrawRoundRectangle"),NB=v(function(n,t,i,r,l,E,o,O){if(!(t==null&&i==null)){var s=n.canvas.width,u=n.canvas.height;i==null&&(r=0);var T=r/2;s=Math.max(1,s-r),u=Math.max(1,u-r),Hne(n.canvas,n.context,T,T,s,u,l,t,i,r,E,o,O)}},"DrawRoundRectangleBackground");const Bne={draw(n,t,i,r){var l=this.penManager;this.hitAreaManager.clear();var E=this.context;E.save();var o=this.defaultStyle;this.clear(),NB(this,o.backgroundColor,o.backgroundStrokeColor,o.backgroundStrokeLineWidth,o.backgroundCornerRadius,o.backgroundColor2,o.backgroundHorizontalGradient,o.backgroundCornerIteration),n+=this.startXOffset,t+=this.startYOffset;var O=o.halign,s=o.valign,u,T=o.lineHeight,A=l.lines,c=A.length,d=o.maxLines,h,f,S;d>0&&c>d?(h=d,s==="center"?f=Math.floor((c-h)/2):s==="bottom"?f=c-h:f=0):(h=c,f=0),S=f+h;var R,L,p=this.rtl,N=p?this.parent.width:void 0;s==="center"?L=Math.max((r-h*T)/2,0):s==="bottom"?L=Math.max(r-h*T-2,0):L=0,L+=t;for(var g=f;g0&&n.width>0){var O=i+o.underlineOffset-o.underlineThickness/2;this.drawLine(t,O,n.width,o.underlineThickness,o.underlineColor,o)}if(n.isTextPen&&this.drawText(t,i,n.text,o),n.isImagePen&&this.drawImage(t,i,n.prop.img,n.prop.color,o),o.strikethroughThickness>0&&n.width>0){var O=i+o.strikethroughOffset-o.strikethroughThickness/2;this.drawLine(t,O,n.width,o.strikethroughThickness,o.strikethroughColor,o)}if(E.restore(),n.hasAreaMarker&&n.width>0){var s,u=n.prop.area;if(u)s={key:u};else{var T=n.prop.url;s={key:`url:${T}`,url:T}}this.hitAreaManager.add(t,i-this.startYOffset,n.width,this.defaultStyle.lineHeight,s)}},clear(){var n=this.canvas;this.context.clearRect(0,0,n.width,n.height)},drawLine(n,t,i,r,l,E){this.autoRound&&(n=Math.round(n),t=Math.round(t));var o=this.context;E.syncShadow(o,E.shadowStroke);var O=o.lineCap;o.lineCap="butt",o.strokeStyle=l,o.lineWidth=r,o.beginPath(),o.moveTo(n,t),o.lineTo(n+i,t),o.stroke(),o.lineCap=O},drawText(n,t,i,r){this.autoRound&&(n=Math.round(n),t=Math.round(t));var l=this.context;r.stroke&&r.stroke!=="none"&&r.strokeThickness>0&&(r.syncShadow(l,r.shadowStroke),l.strokeText(i,n,t)),r.color&&r.color!=="none"&&(r.syncShadow(l,r.shadowFill),l.fillText(i,n,t))},drawImage(n,t,i,r,l){t-=this.startYOffset,this.parent.imageManager.draw(i,this.context,n,t,r,this.autoRound)}},Pu=Phaser.Utils.Objects.GetValue,bne=Mn.NO_NEWLINE,Zz=Mn.RAW_NEWLINE,$b=class $b{constructor(t){this.prop={},this.resetFromJSON(t)}resetFromJSON(t){this.text=Pu(t,"text",""),this.x=Pu(t,"x",0),this.y=Pu(t,"y",0),this.width=Pu(t,"width",0);var i=Pu(t,"prop",null);i===null&&(i={}),this.prop=i,this.newLineMode=Pu(t,"newLineMode",0),this.startIndex=Pu(t,"startIndex",0)}get plainText(){var t=this.text;return this.newLineMode===Zz&&(t+=` +`),t}get wrapText(){var t=this.text;return this.newLineMode!==bne&&(t+=` +`),t}get rawTextLength(){var t=this.text.length;return this.newLineMode===Zz&&(t+=1),t}get endIndex(){return this.startIndex+this.rawTextLength}get lastX(){return this.x+this.width}get isTextPen(){return this.text!==""}get isImagePen(){return!!this.prop.img}get hasAreaMarker(){return!!this.prop.area||!!this.prop.url}};v($b,"Pen");let jP=$b;var Yo=v(function(n){if(typeof n!="object"||n===null)return n;if(Array.isArray(n))n.length=0;else for(var t in n)delete n[t];return n},"Clear$1"),Io=v(function(n,t){var i=Array.isArray(n);if(t===void 0?t=i?[]:{}:Yo(t),i){t.length=n.length;for(var r=0,l=n.length;r=this.lines.length)return this.getLineEndIndex(t);var i=this.lines[t];return i&&i[0]?i[0].startIndex:0}getLineEndIndex(t){t>=this.lines.length&&(t=this.lines.length-1);var i,r=!1,l;for(i=t;i>=0&&(l=this.lines[i],r=l!=null&&l.length>0,!r);i--);if(!r)return 0;var E=l[l.length-1];return E.endIndex}getLineWidth(t){var i=this.lines[t];if(!i)return 0;var r=i[i.length-1];if(r==null)return 0;var l=r.lastX;return l}getMaxLineWidth(){if(this.maxLinesWidth!==void 0)return this.maxLinesWidth;for(var t,i=0,r=0,l=this.lines.length;ri&&(i=t);return this.maxLinesWidth=i,i}getLineWidths(){for(var t=[],i=0,r=this.lines.length;i=t&&T<=i,A||(s=s.substring(t-u,i-u)),this.tagToTextScope?o+=this.tagToText.call(this.tagToTextScope,s,c,d):o+=this.tagToText(s,c,d),d=c,T>=i)));h++);return o}get length(){return this.lines.length}set length(t){this.clear()}};v(dC,"PenManager");let QP=dC;var Du={};const qb=class qb{constructor(){this.items=[]}destroy(){this.clear(),this.items=void 0}pop(){return this.items.length>0?this.items.pop():null}push(t){return this.items.push(t),this}pushMultiple(t){return this.items.push.apply(this.items,t),t.length=0,this}clear(){return this.items.length=0,this}};v(qb,"Stack");let qs=qb;const wne=Phaser.Geom.Rectangle;var qz=new qs;const jb=class jb{constructor(){this.hitAreas=[]}destroy(){this.clear()}clear(){for(var t=0,i=this.hitAreas.length;tr&&Zne(S)){L!==""?o.push(E.getLine(L,p,p0)):g===0&&l>0&&o.push(E.getLine("",0,p0)),o.push(...MQ(S,t,DQ,r,0,E));var P=o.pop();L=P.text,p=P.width,E.freeLine(P),L===" "&&(L="",p=0);continue}N=p+R,N>T?(o.push(E.getLine(L,p,p0)),L=S,p=R,T=r):(L+=S,p=N),g===C-1&&o.push(E.getLine(L,p,A))}}return o},"WrapText"),zne=v(function(n,t){var i=[];switch(t){case Yne:n=n.split(" ");for(var r=0,l=n.length;r0&&i!==Xne&&r0&&t>i&&(t=i),t}get linesWidth(){return Math.ceil(this.penManager.getMaxLineWidth())}get linesHeight(){var t=this.desplayLinesCount,i=this.defaultStyle.lineHeight*t;return t>0&&(i-=this.defaultStyle.lineSpacing),i}get imageManager(){return this.parent.imageManager}get rtl(){return this.parent.style.rtl}newPenManager(){return new QP({pensPool:this.pensPool,linesPool:this.linesPool,tagToText:this.parser.propToTagText,tagToTextScope:this.parser})}get tmpPenManager(){return this._tmpPenManager===null&&(this._tmpPenManager=this.newPenManager()),this._tmpPenManager}getPlainText(t,i,r){var l;if(t==null)l=this.penManager.plainText;else{var E=this.parser.splitText(t,1);l="";for(var o=0,O=E.length;o(n[n.COMMON=0]="COMMON",n[n.GREAT=1]="GREAT",n[n.ULTRA=2]="ULTRA",n[n.ROGUE=3]="ROGUE",n[n.MASTER=4]="MASTER",n[n.LUXURY=5]="LUXURY",n))(le||{}),Gt=(n=>(n[n.COMMON=0]="COMMON",n[n.GREAT=1]="GREAT",n[n.ULTRA=2]="ULTRA",n[n.MASTER=3]="MASTER",n))(Gt||{}),su=(n=>(n[n.DEFAULT=0]="DEFAULT",n[n.LEGACY=1]="LEGACY",n))(su||{}),Ae=(n=>(n[n.MESSAGE=0]="MESSAGE",n[n.WINDOW=1]="WINDOW",n[n.WINDOW_ALT=2]="WINDOW_ALT",n[n.BATTLE_INFO=3]="BATTLE_INFO",n[n.PARTY=4]="PARTY",n[n.PARTY_RED=5]="PARTY_RED",n[n.SUMMARY=6]="SUMMARY",n[n.SUMMARY_ALT=7]="SUMMARY_ALT",n[n.SUMMARY_RED=8]="SUMMARY_RED",n[n.SUMMARY_BLUE=9]="SUMMARY_BLUE",n[n.SUMMARY_PINK=10]="SUMMARY_PINK",n[n.SUMMARY_GOLD=11]="SUMMARY_GOLD",n[n.SUMMARY_GRAY=12]="SUMMARY_GRAY",n[n.SUMMARY_GREEN=13]="SUMMARY_GREEN",n[n.MONEY=14]="MONEY",n[n.STATS_LABEL=15]="STATS_LABEL",n[n.STATS_VALUE=16]="STATS_VALUE",n[n.SETTINGS_LABEL=17]="SETTINGS_LABEL",n[n.SETTINGS_SELECTED=18]="SETTINGS_SELECTED",n[n.SETTINGS_LOCKED=19]="SETTINGS_LOCKED",n[n.TOOLTIP_TITLE=20]="TOOLTIP_TITLE",n[n.TOOLTIP_CONTENT=21]="TOOLTIP_CONTENT",n[n.MOVE_INFO_CONTENT=22]="MOVE_INFO_CONTENT",n[n.MOVE_PP_FULL=23]="MOVE_PP_FULL",n[n.MOVE_PP_HALF_FULL=24]="MOVE_PP_HALF_FULL",n[n.MOVE_PP_NEAR_EMPTY=25]="MOVE_PP_NEAR_EMPTY",n[n.MOVE_PP_EMPTY=26]="MOVE_PP_EMPTY",n))(Ae||{});function me(n,t,i,r,l,E){const[o,m,s,u,T]=HC(l,n.uiTheme,E),d=n.add.text(t,i,r,m);return d.setScale(o),d.setShadow(u,T,s),m.lineSpacing||d.setLineSpacing(5),d}P(me,"addTextObject");function Rie(n,t,i,r){const[l,E,o,m,s]=HC(i,t.uiTheme,r);n.setScale(l),n.setShadow(m,s,o),E.lineSpacing||n.setLineSpacing(5)}P(Rie,"setTextStyle");function FI(n,t,i,r,l,E){const[o,m,s,u,T]=HC(l,n.uiTheme,E),d=new $o(n,t,i,r,m);return n.add.existing(d),d.setScale(o),d.setShadow(u,T,s),m.lineSpacing||d.setLineSpacing(10),d}P(FI,"addBBCodeTextObject");function Oie(n,t,i,r,l,E,o){const[m,s]=HC(E,n.uiTheme,o),u=new Io(n,t,i,r,l,s);return n.add.existing(u),u.setScale(m),u}P(Oie,"addTextInputObject");function HC(n,t,i){let r=4,l=5;const E=.1666666667,o=96;let m={fontFamily:"emerald, unifont",fontSize:96,color:Na(n,!1,t),padding:{bottom:6}};switch(n){case 6:case 7:case 9:case 8:case 10:case 11:case 12:case 13:case 1:case 2:case 16:r=3,l=3;break;case 15:case 0:case 17:case 19:case 18:break;case 3:case 14:case 20:m.fontSize=o-24,r=3.5,l=3.5;break;case 4:case 5:m.fontSize=o-30,m.fontFamily="pkmnems";break;case 21:m.fontSize=o-32,r=3,l=3;break;case 22:m.fontSize=o-40,r=3,l=3;break}const s=Na(n,!0,t);if(i){if(i.fontSize){const u=parseInt(i.fontSize.toString().slice(0,-2))/parseInt(m.fontSize.toString().slice(0,-2));r*=u}m=Object.assign(m,i)}return[E,m,s,r,l]}P(HC,"getTextStyleOptions");function gl(n,t,i=su.DEFAULT){return`[color=${Na(t,!1,i)}][shadow=${Na(t,!0,i)}]${n}`}P(gl,"getBBCodeFrag");function Na(n,t,i=su.DEFAULT){switch(n){case 0:return t?"#6b5a73":"#f8f8f8";case 1:case 22:case 23:case 21:return i?t?"#d0d0c8":"#484848":t?"#6b5a73":"#f8f8f8";case 24:return i?t?"#ebd773":"#a68e17":t?"#6e672c":"#ccbe00";case 25:return i?t?"#f7b18b":"#d64b00":t?"#69402a":"#d64b00";case 26:return i?t?"#fca2a2":"#e13d3d":t?"#632929":"#e13d3d";case 2:return t?"#d0d0c8":"#484848";case 3:return i?t?"#ded6b5":"#404040":t?"#6b5a73":"#f8f8f8";case 4:return t?"#707070":"#f8f8f8";case 5:return t?"#984038":"#f89890";case 6:return t?"#636363":"#ffffff";case 7:return i?t?"#636363":"#ffffff":t?"#d0d0c8":"#484848";case 8:case 20:return t?"#ffbd73":"#e70808";case 9:return t?"#006090":"#40c8f8";case 10:return t?"#984038":"#f89890";case 11:case 14:return t?"#a0a060":"#e8e8a8";case 19:case 12:return t?"#636363":"#a0a0a0";case 15:return t?"#c07800":"#f8b050";case 16:return t?"#6b5a73":"#f8f8f8";case 13:return t?"#306850":"#78c850";case 17:return t?"#c07800":"#f8b050";case 18:return t?"#f83018":"#f88880"}}P(Na,"getTextColor");function Xc(n){switch(n){case le.COMMON:return 16777215;case le.GREAT:return 3707128;case le.ULTRA:return 16306232;case le.ROGUE:return 13969705;case le.MASTER:return 14688448;case le.LUXURY:return 15092248}}P(Xc,"getModifierTierTextTint");function mie(n){switch(n){case Gt.COMMON:return Xc(le.COMMON);case Gt.GREAT:return Xc(le.GREAT);case Gt.ULTRA:return Xc(le.ULTRA);case Gt.MASTER:return Xc(le.MASTER)}}P(mie,"getEggTierTextTint");const Iie={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,t){console&&console[n]&&console[n].apply(console,t)}},sf=class sf{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,i)}init(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=i.prefix||"i18next:",this.logger=t||Iie,this.options=i,this.debug=i.debug}log(){for(var t=arguments.length,i=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const l=this.observers[r].get(i)||0;this.observers[r].set(i,l+1)}),this}off(t,i){if(this.observers[t]){if(!i){delete this.observers[t];return}this.observers[t].delete(i)}}emit(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),l=1;l{let[m,s]=o;for(let u=0;u{let[m,s]=o;for(let u=0;u{n=r,t=l});return i.resolve=n,i.reject=t,i}P(Fd,"defer");function eZ(n){return n==null?"":""+n}P(eZ,"makeString");function Sie(n,t,i){n.forEach(r=>{t[r]&&(i[r]=t[r])})}P(Sie,"copy");const Tie=/###/g;function CE(n,t,i){function r(m){return m&&m.indexOf("###")>-1?m.replace(Tie,"."):m}P(r,"cleanKey");function l(){return!n||typeof n=="string"}P(l,"canNotTraverseDeeper");const E=typeof t!="string"?t:t.split(".");let o=0;for(;o":">",'"':""","'":"'","/":"/"};function gie(n){return typeof n=="string"?n.replace(/[&<>"'\/]/g,t=>Nie[t]):n}P(gie,"escape$1");const J_=class J_{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const i=this.regExpMap.get(t);if(i!==void 0)return i;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}};P(J_,"RegExpCache");let $v=J_;const Cie=[" ",",","?","!",";"],Pie=new $v(20);function vie(n,t,i){t=t||"",i=i||"";const r=Cie.filter(o=>t.indexOf(o)<0&&i.indexOf(o)<0);if(r.length===0)return!0;const l=Pie.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let E=!l.test(n);if(!E){const o=n.indexOf(i);o>0&&!l.test(n.substring(0,o))&&(E=!0)}return E}P(vie,"looksLikeObjectPath");function qv(n,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!n)return;if(n[t])return n[t];const r=t.split(i);let l=n;for(let E=0;E-1&&s0?n.replace("_","-"):n}P(qT,"getCleanedCode");const eb=class eb extends BC{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const i=this.options.ns.indexOf(t);i>-1&&this.options.ns.splice(i,1)}getResource(t,i,r){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const E=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,o=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure;let m;t.indexOf(".")>-1?m=t.split("."):(m=[t,i],r&&(Array.isArray(r)?m.push(...r):typeof r=="string"&&E?m.push(...r.split(E)):m.push(r)));const s=$T(this.data,m);return!s&&!i&&!r&&t.indexOf(".")>-1&&(t=m[0],i=m[1],r=m.slice(2).join(".")),s||!o||typeof r!="string"?s:qv(this.data&&this.data[t]&&this.data[t][i],r,E)}addResource(t,i,r,l){let E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=E.keySeparator!==void 0?E.keySeparator:this.options.keySeparator;let m=[t,i];r&&(m=m.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(m=t.split("."),l=i,i=m[1]),this.addNamespaces(i),tZ(this.data,m,l),E.silent||this.emit("added",t,i,r,l)}addResources(t,i,r){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const E in r)(typeof r[E]=="string"||Object.prototype.toString.apply(r[E])==="[object Array]")&&this.addResource(t,i,E,r[E],{silent:!0});l.silent||this.emit("added",t,i,r)}addResourceBundle(t,i,r,l,E){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},m=[t,i];t.indexOf(".")>-1&&(m=t.split("."),l=r,r=i,i=m[1]),this.addNamespaces(i);let s=$T(this.data,m)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),l?DQ(s,r,E):s={...s,...r},tZ(this.data,m,s),o.silent||this.emit("added",t,i,r)}removeResourceBundle(t,i){this.hasResourceBundle(t,i)&&delete this.data[t][i],this.removeNamespaces(i),this.emit("removed",t,i)}hasResourceBundle(t,i){return this.getResource(t,i)!==void 0}getResourceBundle(t,i){return i||(i=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,i)}:this.getResource(t,i)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const i=this.getDataByLanguage(t);return!!(i&&Object.keys(i)||[]).find(l=>i[l]&&Object.keys(i[l]).length>0)}toJSON(){return this.data}};P(eb,"ResourceStore");let jT=eb;var MQ={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,t,i,r,l){return n.forEach(E=>{this.processors[E]&&(t=this.processors[E].process(t,i,r,l))}),t}};const aZ={},lC=class lC extends BC{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Sie(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=oo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,i);return r&&r.res!==void 0}extractFromKey(t,i){let r=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const l=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let E=i.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,m=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!vie(t,r,l);if(o&&!m){const s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:E};const u=t.split(r);(r!==l||r===l&&this.options.ns.indexOf(u[0])>-1)&&(E=u.shift()),t=u.join(l)}return typeof E=="string"&&(E=[E]),{key:t,namespaces:E}}translate(t,i,r){if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const l=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,E=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:o,namespaces:m}=this.extractFromKey(t[t.length-1],i),s=m[m.length-1],u=i.lng||this.language,T=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(T){const N=i.nsSeparator||this.options.nsSeparator;return l?{res:`${s}${N}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(i)}:`${s}${N}${o}`}return l?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(i)}:o}const d=this.resolve(t,i);let c=d&&d.res;const A=d&&d.usedKey||o,h=d&&d.exactUsedKey||o,f=Object.prototype.toString.apply(c),S=["[object Number]","[object Function]","[object RegExp]"],O=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,L=!this.i18nFormat||this.i18nFormat.handleAsObject;if(L&&c&&(typeof c!="string"&&typeof c!="boolean"&&typeof c!="number")&&S.indexOf(f)<0&&!(typeof O=="string"&&f==="[object Array]")){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const N=this.options.returnedObjectHandler?this.options.returnedObjectHandler(A,c,{...i,ns:m}):`key '${o} (${this.language})' returned an object instead of string.`;return l?(d.res=N,d.usedParams=this.getUsedParamsDetails(i),d):N}if(E){const N=f==="[object Array]",g=N?[]:{},C=N?h:A;for(const v in c)if(Object.prototype.hasOwnProperty.call(c,v)){const M=`${C}${E}${v}`;g[v]=this.translate(M,{...i,joinArrays:!1,ns:m}),g[v]===M&&(g[v]=c[v])}c=g}}else if(L&&typeof O=="string"&&f==="[object Array]")c=c.join(O),c&&(c=this.extendTranslation(c,t,i,r));else{let N=!1,g=!1;const C=i.count!==void 0&&typeof i.count!="string",v=lC.hasDefaultValue(i),M=C?this.pluralResolver.getSuffix(u,i.count,i):"",D=i.ordinal&&C?this.pluralResolver.getSuffix(u,i.count,{ordinal:!1}):"",G=C&&!i.ordinal&&i.count===0&&this.pluralResolver.shouldUseIntlApi(),H=G&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${M}`]||i[`defaultValue${D}`]||i.defaultValue;!this.isValidLookup(c)&&v&&(N=!0,c=H),this.isValidLookup(c)||(g=!0,c=o);const _=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&g?void 0:c,w=v&&H!==c&&this.options.updateMissing;if(g||N||w){if(this.logger.log(w?"updateKey":"missingKey",u,s,o,w?H:c),E){const V=this.resolve(o,{...i,keySeparator:!1});V&&V.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let b=[];const F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&F&&F[0])for(let V=0;V{const Q=v&&$!==c?$:_;this.options.missingKeyHandler?this.options.missingKeyHandler(V,s,Z,Q,w,i):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(V,s,Z,Q,w,i),this.emit("missingKey",V,s,Z,c)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&C?b.forEach(V=>{const Z=this.pluralResolver.getSuffixes(V,i);G&&i[`defaultValue${this.options.pluralSeparator}zero`]&&Z.indexOf(`${this.options.pluralSeparator}zero`)<0&&Z.push(`${this.options.pluralSeparator}zero`),Z.forEach($=>{k([V],o+$,i[`defaultValue${$}`]||H)})}):k(b,o,H))}c=this.extendTranslation(c,t,i,d,r),g&&c===o&&this.options.appendNamespaceToMissingKey&&(c=`${s}:${o}`),(g||N)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${o}`:o,N?c:void 0):c=this.options.parseMissingKeyHandler(c))}return l?(d.res=c,d.usedParams=this.getUsedParamsDetails(i),d):c}extendTranslation(t,i,r,l,E){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let T;if(u){const c=t.match(this.interpolator.nestingRegexp);T=c&&c.length}let d=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,r.lng||this.language,r),u){const c=t.match(this.interpolator.nestingRegexp),A=c&&c.length;T1&&arguments[1]!==void 0?arguments[1]:{},r,l,E,o,m;return typeof t=="string"&&(t=[t]),t.forEach(s=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(s,i),T=u.key;l=T;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const c=i.count!==void 0&&typeof i.count!="string",A=c&&!i.ordinal&&i.count===0&&this.pluralResolver.shouldUseIntlApi(),h=i.context!==void 0&&(typeof i.context=="string"||typeof i.context=="number")&&i.context!=="",f=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);d.forEach(S=>{this.isValidLookup(r)||(m=S,!aZ[`${f[0]}-${S}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(m)&&(aZ[`${f[0]}-${S}`]=!0,this.logger.warn(`key "${l}" for languages "${f.join(", ")}" won't get resolved as namespace "${m}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(O=>{if(this.isValidLookup(r))return;o=O;const L=[T];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(L,T,O,S,i);else{let N;c&&(N=this.pluralResolver.getSuffix(O,i.count,i));const g=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(L.push(T+N),i.ordinal&&N.indexOf(C)===0&&L.push(T+N.replace(C,this.options.pluralSeparator)),A&&L.push(T+g)),h){const v=`${T}${this.options.contextSeparator}${i.context}`;L.push(v),c&&(L.push(v+N),i.ordinal&&N.indexOf(C)===0&&L.push(v+N.replace(C,this.options.pluralSeparator)),A&&L.push(v+g))}}let p;for(;p=L.pop();)this.isValidLookup(r)||(E=p,r=this.getResource(O,S,p,i))}))})}),{res:r,usedKey:l,exactUsedKey:E,usedLng:o,usedNS:m}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,i,r){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,i,r,l):this.resourceStore.getResource(t,i,r,l)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let l=r?t.replace:t;if(r&&typeof t.count<"u"&&(l.count=t.count),this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),!r){l={...l};for(const E of i)delete l[E]}return l}static hasDefaultValue(t){const i="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&i===r.substring(0,i.length)&&t[r]!==void 0)return!0;return!1}};P(lC,"Translator");let QT=lC;function N0(n){return n.charAt(0).toUpperCase()+n.slice(1)}P(N0,"capitalize");const tb=class tb{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=oo.create("languageUtils")}getScriptPartFromCode(t){if(t=qT(t),!t||t.indexOf("-")<0)return null;const i=t.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(t){if(t=qT(t),!t||t.indexOf("-")<0)return t;const i=t.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const i=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(l=>l.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),i.indexOf(r[1].toLowerCase())>-1&&(r[1]=N0(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),i.indexOf(r[1].toLowerCase())>-1&&(r[1]=N0(r[1].toLowerCase())),i.indexOf(r[2].toLowerCase())>-1&&(r[2]=N0(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let i;return t.forEach(r=>{if(i)return;const l=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(l))&&(i=l)}),!i&&this.options.supportedLngs&&t.forEach(r=>{if(i)return;const l=this.getLanguagePartFromCode(r);if(this.isSupportedCode(l))return i=l;i=this.options.supportedLngs.find(E=>{if(E===l)return E;if(!(E.indexOf("-")<0&&l.indexOf("-")<0)&&(E.indexOf("-")>0&&l.indexOf("-")<0&&E.substring(0,E.indexOf("-"))===l||E.indexOf(l)===0&&l.length>1))return E})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(t,i){if(!t)return[];if(typeof t=="function"&&(t=t(i)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!i)return t.default||[];let r=t[i];return r||(r=t[this.getScriptPartFromCode(i)]),r||(r=t[this.formatLanguageCode(i)]),r||(r=t[this.getLanguagePartFromCode(i)]),r||(r=t.default),r||[]}toResolveHierarchy(t,i){const r=this.getFallbackCodes(i||this.options.fallbackLng||[],t),l=[],E=P(o=>{o&&(this.isSupportedCode(o)?l.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))},"addCode");return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&E(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&E(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&E(this.getLanguagePartFromCode(t))):typeof t=="string"&&E(this.formatLanguageCode(t)),r.forEach(o=>{l.indexOf(o)<0&&E(this.formatLanguageCode(o))}),l}};P(tb,"LanguageUtil");let JT=tb,Die=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Mie={1:function(n){return+(n>1)},2:function(n){return+(n!=1)},3:function(n){return 0},4:function(n){return n%10==1&&n%100!=11?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2},5:function(n){return n==0?0:n==1?1:n==2?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5},6:function(n){return n==1?0:n>=2&&n<=4?1:2},7:function(n){return n==1?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2},8:function(n){return n==1?0:n==2?1:n!=8&&n!=11?2:3},9:function(n){return+(n>=2)},10:function(n){return n==1?0:n==2?1:n<7?2:n<11?3:4},11:function(n){return n==1||n==11?0:n==2||n==12?1:n>2&&n<20?2:3},12:function(n){return+(n%10!=1||n%100==11)},13:function(n){return+(n!==0)},14:function(n){return n==1?0:n==2?1:n==3?2:3},15:function(n){return n%10==1&&n%100!=11?0:n%10>=2&&(n%100<10||n%100>=20)?1:2},16:function(n){return n%10==1&&n%100!=11?0:n!==0?1:2},17:function(n){return n==1||n%10==1&&n%100!=11?0:1},18:function(n){return n==0?0:n==1?1:2},19:function(n){return n==1?0:n==0||n%100>1&&n%100<11?1:n%100>10&&n%100<20?2:3},20:function(n){return n==1?0:n==0||n%100>0&&n%100<20?1:2},21:function(n){return n%100==1?1:n%100==2?2:n%100==3||n%100==4?3:0},22:function(n){return n==1?0:n==2?1:(n<0||n>10)&&n%10==0?2:3}};const Uie=["v1","v2","v3"],Gie=["v4"],nZ={zero:0,one:1,two:2,few:3,many:4,other:5};function yie(){const n={};return Die.forEach(t=>{t.lngs.forEach(i=>{n[i]={numbers:t.nr,plurals:Mie[t.fc]}})}),n}P(yie,"createRules");const ab=class ab{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=i,this.logger=oo.create("pluralResolver"),(!this.options.compatibilityJSON||Gie.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=yie()}addRule(t,i){this.rules[t]=i}getRule(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(qT(t==="dev"?"en":t),{type:i.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,i);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,i){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(l=>`${i}${l}`)}getSuffixes(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,i);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((l,E)=>nZ[l]-nZ[E]).map(l=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${l}`):r.numbers.map(l=>this.getSuffix(t,l,i)):[]}getSuffix(t,i){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const l=this.getRule(t,r);return l?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${l.select(i)}`:this.getSuffixRetroCompatible(l,i):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,i){const r=t.noAbs?t.plurals(i):t.plurals(Math.abs(i));let l=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(l===2?l="plural":l===1&&(l=""));const E=P(()=>this.options.prepend&&l.toString()?this.options.prepend+l.toString():l.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?l===1?"":typeof l=="number"?`_plural_${l.toString()}`:E():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?E():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!Uie.includes(this.options.compatibilityJSON)}};P(ab,"PluralResolver");let jv=ab;function iZ(n,t,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,E=pie(n,t,i);return!E&&l&&typeof i=="string"&&(E=qv(n,i,r),E===void 0&&(E=qv(t,i,r))),E}P(iZ,"deepFindWithDefaults");const nb=class nb{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=oo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(i=>i),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const i=t.interpolation;this.escape=i.escape!==void 0?i.escape:gie,this.escapeValue=i.escapeValue!==void 0?i.escapeValue:!0,this.useRawValueToEscape=i.useRawValueToEscape!==void 0?i.useRawValueToEscape:!1,this.prefix=i.prefix?fc(i.prefix):i.prefixEscaped||"{{",this.suffix=i.suffix?fc(i.suffix):i.suffixEscaped||"}}",this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||",",this.unescapePrefix=i.unescapeSuffix?"":i.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":i.unescapeSuffix||"",this.nestingPrefix=i.nestingPrefix?fc(i.nestingPrefix):i.nestingPrefixEscaped||fc("$t("),this.nestingSuffix=i.nestingSuffix?fc(i.nestingSuffix):i.nestingSuffixEscaped||fc(")"),this.nestingOptionsSeparator=i.nestingOptionsSeparator?i.nestingOptionsSeparator:i.nestingOptionsSeparator||",",this.maxReplaces=i.maxReplaces?i.maxReplaces:1e3,this.alwaysFormat=i.alwaysFormat!==void 0?i.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=P((i,r)=>i&&i.source===r?(i.lastIndex=0,i):new RegExp(r,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,i,r,l){let E,o,m;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(h){return h.replace(/\$/g,"$$$$")}P(u,"regexSafe");const T=P(h=>{if(h.indexOf(this.formatSeparator)<0){const L=iZ(i,s,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(L,void 0,r,{...l,...i,interpolationkey:h}):L}const f=h.split(this.formatSeparator),S=f.shift().trim(),O=f.join(this.formatSeparator).trim();return this.format(iZ(i,s,S,this.options.keySeparator,this.options.ignoreJSONStructure),O,r,{...l,...i,interpolationkey:S})},"handleFormat");this.resetRegExp();const d=l&&l.missingInterpolationHandler||this.options.missingInterpolationHandler,c=l&&l.interpolation&&l.interpolation.skipOnVariables!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>u(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?u(this.escape(h)):u(h)}].forEach(h=>{for(m=0;E=h.regex.exec(t);){const f=E[1].trim();if(o=T(f),o===void 0)if(typeof d=="function"){const O=d(t,E,l);o=typeof O=="string"?O:""}else if(l&&Object.prototype.hasOwnProperty.call(l,f))o="";else if(c){o=E[0];continue}else this.logger.warn(`missed to pass in variable ${f} for interpolating ${t}`),o="";else typeof o!="string"&&!this.useRawValueToEscape&&(o=eZ(o));const S=h.safeValue(o);if(t=t.replace(E[0],S),c?(h.regex.lastIndex+=o.length,h.regex.lastIndex-=E[0].length):h.regex.lastIndex=0,m++,m>=this.maxReplaces)break}}),t}nest(t,i){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l,E,o;function m(s,u){const T=this.nestingOptionsSeparator;if(s.indexOf(T)<0)return s;const d=s.split(new RegExp(`${T}[ ]*{`));let c=`{${d[1]}`;s=d[0],c=this.interpolate(c,o);const A=c.match(/'/g),h=c.match(/"/g);(A&&A.length%2===0&&!h||h.length%2!==0)&&(c=c.replace(/'/g,'"'));try{o=JSON.parse(c),u&&(o={...u,...o})}catch(f){return this.logger.warn(`failed parsing options string in nesting for key ${s}`,f),`${s}${T}${c}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,s}for(P(m,"handleHasOptions");l=this.nestingRegexp.exec(t);){let s=[];o={...r},o=o.replace&&typeof o.replace!="string"?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(l[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(l[1])){const T=l[1].split(this.formatSeparator).map(d=>d.trim());l[1]=T.shift(),s=T,u=!0}if(E=i(m.call(this,l[1].trim(),o),o),E&&l[0]===t&&typeof E!="string")return E;typeof E!="string"&&(E=eZ(E)),E||(this.logger.warn(`missed to resolve ${l[1]} for nesting ${t}`),E=""),u&&(E=s.reduce((T,d)=>this.format(T,d,r.lng,{...r,interpolationkey:l[1].trim()}),E.trim())),t=t.replace(l[0],E),this.regexp.lastIndex=0}return t}};P(nb,"Interpolator");let Qv=nb;function Hie(n){let t=n.toLowerCase().trim();const i={};if(n.indexOf("(")>-1){const r=n.split("(");t=r[0].toLowerCase().trim();const l=r[1].substring(0,r[1].length-1);t==="currency"&&l.indexOf(":")<0?i.currency||(i.currency=l.trim()):t==="relativetime"&&l.indexOf(":")<0?i.range||(i.range=l.trim()):l.split(";").forEach(o=>{if(!o)return;const[m,...s]=o.split(":"),u=s.join(":").trim().replace(/^'+|'+$/g,"");i[m.trim()]||(i[m.trim()]=u),u==="false"&&(i[m.trim()]=!1),u==="true"&&(i[m.trim()]=!0),isNaN(u)||(i[m.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:i}}P(Hie,"parseFormatStr");function Rc(n){const t={};return P(function(r,l,E){const o=l+JSON.stringify(E);let m=t[o];return m||(m=n(qT(l),E),t[o]=m),m(r)},"invokeFormatter")}P(Rc,"createCachedFormatter");const ib=class ib{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=oo.create("formatter"),this.options=t,this.formats={number:Rc((i,r)=>{const l=new Intl.NumberFormat(i,{...r});return E=>l.format(E)}),currency:Rc((i,r)=>{const l=new Intl.NumberFormat(i,{...r,style:"currency"});return E=>l.format(E)}),datetime:Rc((i,r)=>{const l=new Intl.DateTimeFormat(i,{...r});return E=>l.format(E)}),relativetime:Rc((i,r)=>{const l=new Intl.RelativeTimeFormat(i,{...r});return E=>l.format(E,r.range||"day")}),list:Rc((i,r)=>{const l=new Intl.ListFormat(i,{...r});return E=>l.format(E)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,i){this.formats[t.toLowerCase().trim()]=i}addCached(t,i){this.formats[t.toLowerCase().trim()]=Rc(i)}format(t,i,r){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return i.split(this.formatSeparator).reduce((m,s)=>{const{formatName:u,formatOptions:T}=Hie(s);if(this.formats[u]){let d=m;try{const c=l&&l.formatParams&&l.formatParams[l.interpolationkey]||{},A=c.locale||c.lng||l.locale||l.lng||r;d=this.formats[u](m,A,{...T,...l,...c})}catch(c){this.logger.warn(c)}return d}else this.logger.warn(`there was no format function for ${u}`);return m},t)}};P(ib,"Formatter");let Jv=ib;function Bie(n,t){n.pending[t]!==void 0&&(delete n.pending[t],n.pendingCount--)}P(Bie,"removePending");const sb=class sb extends BC{constructor(t,i,r){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=i,this.services=r,this.languageUtils=r.languageUtils,this.options=l,this.logger=oo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=l.maxParallelReads||10,this.readingCalls=0,this.maxRetries=l.maxRetries>=0?l.maxRetries:5,this.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,l.backend,l)}queueLoad(t,i,r,l){const E={},o={},m={},s={};return t.forEach(u=>{let T=!0;i.forEach(d=>{const c=`${u}|${d}`;!r.reload&&this.store.hasResourceBundle(u,d)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?o[c]===void 0&&(o[c]=!0):(this.state[c]=1,T=!1,o[c]===void 0&&(o[c]=!0),E[c]===void 0&&(E[c]=!0),s[d]===void 0&&(s[d]=!0)))}),T||(m[u]=!0)}),(Object.keys(E).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(E),pending:Object.keys(o),toLoadLanguages:Object.keys(m),toLoadNamespaces:Object.keys(s)}}loaded(t,i,r){const l=t.split("|"),E=l[0],o=l[1];i&&this.emit("failedLoading",E,o,i),r&&this.store.addResourceBundle(E,o,r,void 0,void 0,{skipCopy:!0}),this.state[t]=i?-1:2;const m={};this.queue.forEach(s=>{Lie(s.loaded,[E],o),Bie(s,t),i&&s.errors.push(i),s.pendingCount===0&&!s.done&&(Object.keys(s.loaded).forEach(u=>{m[u]||(m[u]={});const T=s.loaded[u];T.length&&T.forEach(d=>{m[u][d]===void 0&&(m[u][d]=!0)})}),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())}),this.emit("loaded",m),this.queue=this.queue.filter(s=>!s.done)}read(t,i,r){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:i,fcName:r,tried:l,wait:E,callback:o});return}this.readingCalls++;const m=P((u,T)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&T&&l{this.read.call(this,t,i,r,l+1,E*2,o)},E);return}o(u,T)},"resolver"),s=this.backend[r].bind(this.backend);if(s.length===2){try{const u=s(t,i);u&&typeof u.then=="function"?u.then(T=>m(null,T)).catch(m):m(null,u)}catch(u){m(u)}return}return s(t,i,m)}prepareLoading(t,i){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof i=="string"&&(i=[i]);const E=this.queueLoad(t,i,r,l);if(!E.toLoad.length)return E.pending.length||l(),null;E.toLoad.forEach(o=>{this.loadOne(o)})}load(t,i,r){this.prepareLoading(t,i,{},r)}reload(t,i,r){this.prepareLoading(t,i,{reload:!0},r)}loadOne(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),l=r[0],E=r[1];this.read(l,E,"read",void 0,void 0,(o,m)=>{o&&this.logger.warn(`${i}loading namespace ${E} for language ${l} failed`,o),!o&&m&&this.logger.log(`${i}loaded namespace ${E} for language ${l}`,m),this.loaded(t,o,m)})}saveMissing(t,i,r,l,E){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},m=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(i)){this.logger.warn(`did not save key "${r}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const s={...o,isUpdate:E},u=this.backend.create.bind(this.backend);if(u.length<6)try{let T;u.length===5?T=u(t,i,r,l,s):T=u(t,i,r,l),T&&typeof T.then=="function"?T.then(d=>m(null,d)).catch(m):m(null,T)}catch(T){m(T)}else u(t,i,r,l,m,s)}!t||!t[0]||this.store.addResource(t[0],i,r,l)}}};P(sb,"Connector");let eD=sb;function sZ(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:P(function(t){let i={};if(typeof t[1]=="object"&&(i=t[1]),typeof t[1]=="string"&&(i.defaultValue=t[1]),typeof t[2]=="string"&&(i.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(l=>{i[l]=r[l]})}return i},"handle"),interpolation:{escapeValue:!0,format:n=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}P(sZ,"get");function rZ(n){return typeof n.ns=="string"&&(n.ns=[n.ns]),typeof n.fallbackLng=="string"&&(n.fallbackLng=[n.fallbackLng]),typeof n.fallbackNS=="string"&&(n.fallbackNS=[n.fallbackNS]),n.supportedLngs&&n.supportedLngs.indexOf("cimode")<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),n}P(rZ,"transformOptions");function hS(){}P(hS,"noop");function _ie(n){Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(i=>{typeof n[i]=="function"&&(n[i]=n[i].bind(n))})}P(_ie,"bindMemberFunctions");const rf=class rf extends BC{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(super(),this.options=rZ(t),this.services={},this.logger=oo,this.modules={external:[]},_ie(this),i&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,i),this;setTimeout(()=>{this.init(t,i)},0)}}init(){var t=this;let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof i=="function"&&(r=i,i={}),!i.defaultNS&&i.defaultNS!==!1&&i.ns&&(typeof i.ns=="string"?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const l=sZ();this.options={...l,...this.options,...rZ(i)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...l.interpolation,...this.options.interpolation}),i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);function E(T){return T?typeof T=="function"?new T:T:null}if(P(E,"createClassOnDemand"),!this.options.isClone){this.modules.logger?oo.init(E(this.modules.logger),this.options):oo.init(null,this.options);let T;this.modules.formatter?T=this.modules.formatter:typeof Intl<"u"&&(T=Jv);const d=new JT(this.options);this.store=new jT(this.options.resources,this.options);const c=this.services;c.logger=oo,c.resourceStore=this.store,c.languageUtils=d,c.pluralResolver=new jv(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),T&&(!this.options.interpolation.format||this.options.interpolation.format===l.interpolation.format)&&(c.formatter=E(T),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new Qv(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new eD(E(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(A){for(var h=arguments.length,f=new Array(h>1?h-1:0),S=1;S1?h-1:0),S=1;S{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,r||(r=hS),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const T=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);T.length>0&&T[0]!=="dev"&&(this.options.lng=T[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(T=>{this[T]=function(){return t.store[T](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(T=>{this[T]=function(){return t.store[T](...arguments),t}});const s=Fd(),u=P(()=>{const T=P((d,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(c),r(d,c)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return T(null,this.t.bind(this));this.changeLanguage(this.options.lng,T)},"load");return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),s}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hS;const l=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const E=[],o=P(m=>{if(!m||m==="cimode")return;this.services.languageUtils.toResolveHierarchy(m).forEach(u=>{u!=="cimode"&&E.indexOf(u)<0&&E.push(u)})},"append");l?o(l):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(s=>o(s)),this.options.preload&&this.options.preload.forEach(m=>o(m)),this.services.backendConnector.load(E,this.options.ns,m=>{!m&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(m)})}else r(null)}reloadResources(t,i,r){const l=Fd();return t||(t=this.languages),i||(i=this.options.ns),r||(r=hS),this.services.backendConnector.reload(t,i,E=>{l.resolve(),r(E)}),l}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&MQ.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let i=0;i-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,i){var r=this;this.isLanguageChangingTo=t;const l=Fd();this.emit("languageChanging",t);const E=P(s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},"setLngProps"),o=P((s,u)=>{u?(E(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,l.resolve(function(){return r.t(...arguments)}),i&&i(s,function(){return r.t(...arguments)})},"done"),m=P(s=>{!t&&!s&&this.services.languageDetector&&(s=[]);const u=typeof s=="string"?s:this.services.languageUtils.getBestMatchFromCodes(s);u&&(this.language||E(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,T=>{o(T,u)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?m(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(m):this.services.languageDetector.detect(m):m(t),l}getFixedT(t,i,r){var l=this;const E=P(function(o,m){let s;if(typeof m!="object"){for(var u=arguments.length,T=new Array(u>2?u-2:0),d=2;d`${s.keyPrefix}${c}${h}`):A=s.keyPrefix?`${s.keyPrefix}${c}${o}`:o,l.t(A,s)},"fixedT");return typeof t=="string"?E.lng=t:E.lngs=t,E.ns=i,E.keyPrefix=r,E}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=i.lng||this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,E=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=P((m,s)=>{const u=this.services.backendConnector.state[`${m}|${s}`];return u===-1||u===2},"loadNotPending");if(i.precheck){const m=i.precheck(this,o);if(m!==void 0)return m}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!l||o(E,t)))}loadNamespaces(t,i){const r=Fd();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(l=>{this.options.ns.indexOf(l)<0&&this.options.ns.push(l)}),this.loadResources(l=>{r.resolve(),i&&i(l)}),r):(i&&i(),Promise.resolve())}loadLanguages(t,i){const r=Fd();typeof t=="string"&&(t=[t]);const l=this.options.preload||[],E=t.filter(o=>l.indexOf(o)<0);return E.length?(this.options.preload=l.concat(E),this.loadResources(o=>{r.resolve(),i&&i(o)}),r):(i&&i(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new JT(sZ());return i.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;return new rf(t,i)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hS;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const l={...this.options,...t,isClone:!0},E=new rf(l);return(t.debug!==void 0||t.prefix!==void 0)&&(E.logger=E.logger.clone(t)),["store","services","language"].forEach(m=>{E[m]=this[m]}),E.services={...this.services},E.services.utils={hasLoadedNamespace:E.hasLoadedNamespace.bind(E)},r&&(E.store=new jT(this.store.data,l),E.services.resourceStore=E.store),E.translator=new QT(E.services,l),E.translator.on("*",function(m){for(var s=arguments.length,u=new Array(s>1?s-1:0),T=1;T(n[n.NORMAL=0]="NORMAL",n[n.ABBREVIATED=1]="ABBREVIATED",n))(iR||{});const bie="__MISSING";function rs(n){return n.replace(/\_/g," ").split(" ").map(t=>`${t.slice(0,1)}${t.slice(1).toLowerCase()}`).join(" ")}P(rs,"toReadableString");function SB(n,t=!1){const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let r="";for(let l=0;l0;i--){const r=Phaser.Math.RND.integerInRange(0,i);[t[i],t[r]]=[t[r],t[i]]}return t}P(Wie,"randSeedShuffle");function ii(n){return Math.floor(1/60*1e3*n)}P(ii,"getFrameMs");function Kie(){const n=new Date;return((n.getHours()*60+n.getMinutes())/1440+.675)%1}P(Kie,"getCurrentTime");const cS=3600;function GQ(n){const t=`${Math.floor(n/(cS*24))}`,i=`${Math.floor(n%(cS*24)/cS)}`,r=`${Math.floor(n%cS/60)}`,l=`${Math.floor(n%60)}`;return`${t.padStart(2,"0")}:${i.padStart(2,"0")}:${r.padStart(2,"0")}:${l.padStart(2,"0")}`}P(GQ,"getPlayTimeString");function vl(n){const t=[],i=[];let r=0;for(let l=0;l0;)t=i%2?`1${t}`:`0${t}`,i=Math.floor(i*.5);return t}P(Dl,"decToBin");function TB(n){return[vl(Dl(n).substring(0,5)),vl(Dl(n).substring(5,10)),vl(Dl(n).substring(10,15)),vl(Dl(n).substring(15,20)),vl(Dl(n).substring(20,25)),vl(Dl(n).substring(25,30))]}P(TB,"getIvsFromId");function yQ(n,t){if(nisNaN(parseInt(t.toString()))).map(t=>t.toString())}P(Pr,"getEnumKeys");function da(n){return Object.values(n).filter(t=>!isNaN(parseInt(t.toString()))).map(t=>parseInt(t.toString()))}P(da,"getEnumValues");function Jl(n,t){return n?t():new Promise(i=>i(null))}P(Jl,"executeIf");const Pd="pokerogue_sessionId",vr=(window.location.hostname==="localhost"||/^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$/.test(window.location.hostname))&&window.location.port!==""||window.location.hostname==="",Yie="http://localhost:8001",Vie=vr?Yie:"",BQ=vr?Vie:"https://api.pokerogue.net";let tL=!0;function LB(n,t){const i=new Date;i.setTime(new Date().getTime()+36e5*24*30*3),document.cookie=`${n}=${t};Secure;SameSite=Strict;Path=/;Expires=${i.toUTCString()}`}P(LB,"setCookie");function pB(n){const t=`${n}=`,i=document.cookie.split(";");for(let r=0;rtL=!0,n=>tL=!1)}P(zie,"localPing");function Ch(n,t=!1){return vr&&tL||!vr?new Promise((i,r)=>{const l={};if(t){const E=pB(Pd);E&&(l.headers={Authorization:E})}fetch(`${BQ}/${n}`,l).then(E=>i(E)).catch(E=>r(E))}):new Promise(()=>{})}P(Ch,"apiFetch");function nD(n,t,i="application/json",r=!1){return vr&&tL||!vr?new Promise((l,E)=>{const o={Accept:i,"Content-Type":i};if(r){const m=pB(Pd);m&&(o.Authorization=m)}fetch(`${BQ}/${n}`,{method:"POST",headers:o,body:t}).then(m=>l(m)).catch(m=>E(m))}):new Promise(()=>{})}P(nD,"apiPost");const rb=class rb{constructor(t){this.value=t}};P(rb,"BooleanHolder");let Rt=rb;const ob=class ob{constructor(t){this.value=t}};P(ob,"NumberHolder");let Zt=ob;const lb=class lb extends Zt{constructor(t){super(t)}};P(lb,"IntegerHolder");let Mt=lb;const ub=class ub extends Mt{constructor(t){super(t)}};P(ub,"FixedInt");let aL=ub;function et(n){return new aL(n)}P(et,"fixedInt");function Zie(n,t,i){const r=Math.max(n,t,i),l=r-Math.min(n,t,i),E=l&&(r===n?(t-i)/l:r===t?2+(i-n)/l:4+(n-t)/l);return[60*(E<0?E+6:E),r&&l/r,r]}P(Zie,"rgbToHsv");function Xie(n,t){const[i,r,l]=n,[E,o,m]=t,s=Math.pow(i-E,2),u=Math.pow(r-o,2),T=Math.pow(l-m,2),d=(i+E)/2;return Math.ceil(Math.sqrt(2*s+4*u+3*T+d*(s-T)/256))}P(Xie,"deltaRgb");function Ti(n){const t=n.match(/^([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);return{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16),a:255}}P(Ti,"rgbHexToRgba");function AS(n){return(n[0]<<24)+(n[1]<<16)+(n[2]<<8)+n[3]}P(AS,"rgbaToInt");function Eo(n){switch(n||(n=ne.resolvedLanguage),n){case"es":case"fr":case"de":case"it":case"zh_CN":case"zh_TW":case"pt_BR":case"ko":return!0;default:return!1}}P(Eo,"verifyLang");function NB(n,t=10){return n.length>t?n.slice(0,t-3)+"...":n}P(NB,"truncateString");function lZ(n){return JSON.parse(JSON.stringify(n))}P(lZ,"deepCopy");function $ie(n){return n.split(" ").map(r=>r.charAt(0).toUpperCase()+r.slice(1).toLowerCase()).join("_")}P($ie,"reverseValueToKeySetting");const hb=class hb{constructor(t,i){this.cursor=0,this.active=!1,this.scene=t,this.mode=i}show(t){return this.active=!0,!0}getUi(){return this.scene.ui}getTextColor(t,i=!1){return Na(t,i,this.scene.uiTheme)}getCursor(){return this.cursor}setCursor(t){const i=this.cursor!==t;return i&&(this.cursor=t),i}clear(){this.active=!1}};P(hb,"UiHandler");let pi=hb;var he=(n=>(n[n.UP=0]="UP",n[n.DOWN=1]="DOWN",n[n.LEFT=2]="LEFT",n[n.RIGHT=3]="RIGHT",n[n.SUBMIT=4]="SUBMIT",n[n.ACTION=5]="ACTION",n[n.CANCEL=6]="CANCEL",n[n.MENU=7]="MENU",n[n.STATS=8]="STATS",n[n.CYCLE_SHINY=9]="CYCLE_SHINY",n[n.CYCLE_FORM=10]="CYCLE_FORM",n[n.CYCLE_GENDER=11]="CYCLE_GENDER",n[n.CYCLE_ABILITY=12]="CYCLE_ABILITY",n[n.CYCLE_NATURE=13]="CYCLE_NATURE",n[n.V=14]="V",n[n.SPEED_UP=15]="SPEED_UP",n[n.SLOW_DOWN=16]="SLOW_DOWN",n))(he||{});const cb=class cb extends pi{constructor(t,i){super(t,i),this.tutorialActive=!1}processTutorialInput(t){if((t===he.ACTION||t===he.CANCEL)&&this.onActionInput){this.getUi().playSelect();const i=this.onActionInput;return this.onActionInput=null,i(),this.awaitingActionInput=!1,!0}return!1}};P(cb,"AwaitableUiHandler");let Ph=cb;const Ab=class Ab extends Ph{constructor(t,i){super(t,i),this.pendingPrompt=!1}showText(t,i,r,l,E,o){this.showTextInternal(t,i,r,l,E,o)}showDialogue(t,i,r,l,E,o,m){this.showTextInternal(t,r,l,E,o,m)}showTextInternal(t,i,r,l,E,o){i==null&&(i=20);const m=new Map,s=new Map,u=new Map,T=/@(c|d|s)\{(.*?)\}/;let d;for(;d=T.exec(t);){switch(d[1]){case"c":m.set(d.index,d[2]);break;case"d":s.set(d.index,parseInt(d[2]));break;case"s":u.set(d.index,d[2]);break}t=t.slice(0,d.index)+t.slice(d.index+d[2].length+4)}if(t){const c=t.split(" ");let A=1,h="";for(let f=0;fA?(A=O,h=`${h} -${c[f]}`):h=S}}t=h}if(this.textTimer&&(this.textTimer.remove(),this.textCallbackTimer&&this.textCallbackTimer.callback()),E){const c=r;r=P(()=>{const A=P(()=>this.showPrompt(c,l),"showPrompt");o?this.scene.time.delayedCall(o,A):A()},"callback")}i?(this.clearText(),E&&(this.pendingPrompt=!0),this.textTimer=this.scene.time.addEvent({delay:i,callback:()=>{const c=t.length-this.textTimer.repeatCount,A=m.get(c),h=u.get(c),f=s.get(c);this.message.setText(t.slice(0,c));const S=P(()=>{A&&this.scene.charSprite.setVariant(A),h&&this.scene.playSound(h),r&&!this.textTimer.repeatCount&&(l&&!E?this.textCallbackTimer=this.scene.time.delayedCall(l,()=>{this.textCallbackTimer&&(this.textCallbackTimer.destroy(),this.textCallbackTimer=null),r()}):r())},"advance");f?(this.textTimer.paused=!0,this.scene.tweens.addCounter({duration:ii(f),onComplete:()=>{this.textTimer.paused=!1,S()}})):S()},repeat:t.length})):(this.message.setText(t),E&&(this.pendingPrompt=!0),r&&r())}showPrompt(t,i){const r=this.message.runWordWrap(this.message.text).split(/\n/g),l=r.length,E=r[r.length-1],o=this.scene.add.text(0,0,E,{font:"96px emerald"});o.setScale(this.message.scale);const m=o.displayWidth;o.destroy(),this.prompt&&(this.prompt.setPosition(m+2,(l-1)*18+2),this.prompt.play("prompt")),this.pendingPrompt=!1,this.awaitingActionInput=!0,this.onActionInput=()=>{this.prompt&&(this.prompt.anims.stop(),this.prompt.setVisible(!1)),t&&(i?this.textCallbackTimer=this.scene.time.delayedCall(i,()=>{this.textCallbackTimer&&(this.textCallbackTimer.destroy(),this.textCallbackTimer=null),t()}):t())}}clearText(){this.message.setText(""),this.pendingPrompt=!1}clear(){super.clear()}};P(Ab,"MessageUiHandler");let _i=Ab;function qie(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}P(qie,"_classCallCheck");function sR(n){"@babel/helpers - typeof";return sR=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sR(n)}P(sR,"_typeof");function jie(n,t){if(sR(n)!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var r=i.call(n,t||"default");if(sR(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}P(jie,"toPrimitive");function Qie(n){var t=jie(n,"string");return sR(t)=="symbol"?t:t+""}P(Qie,"toPropertyKey");function uZ(n,t){for(var i=0;i0){var m=l.maxAge-0;if(Number.isNaN(m))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(m))}if(l.domain){if(!hZ.test(l.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(l.domain)}if(l.path){if(!hZ.test(l.path))throw new TypeError("option path is invalid");o+="; Path=".concat(l.path)}if(l.expires){if(typeof l.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+="; Expires=".concat(l.expires.toUTCString())}if(l.httpOnly&&(o+="; HttpOnly"),l.secure&&(o+="; Secure"),l.sameSite){var s=typeof l.sameSite=="string"?l.sameSite.toLowerCase():l.sameSite;switch(s){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o},"serializeCookie"),cZ={create:P(function(t,i,r,l){var E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(E.expires=new Date,E.expires.setTime(E.expires.getTime()+r*60*1e3)),l&&(E.domain=l),document.cookie=nse(t,encodeURIComponent(i),E)},"create"),read:P(function(t){for(var i="".concat(t,"="),r=document.cookie.split(";"),l=0;l-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var l=r.substring(1),E=l.split("&"),o=0;o0){var s=E[o].substring(0,m);s===t.lookupQuerystring&&(i=E[o].substring(m+1))}}}return i},"lookup")},xd=null,AZ=P(function(){if(xd!==null)return xd;try{xd=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{xd=!1}return xd},"localStorageAvailable"),rse={name:"localStorage",lookup:P(function(t){var i;if(t.lookupLocalStorage&&AZ()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(i=r)}return i},"lookup"),cacheUserLanguage:P(function(t,i){i.lookupLocalStorage&&AZ()&&window.localStorage.setItem(i.lookupLocalStorage,t)},"cacheUserLanguage")},kd=null,dZ=P(function(){if(kd!==null)return kd;try{kd=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{kd=!1}return kd},"sessionStorageAvailable"),ose={name:"sessionStorage",lookup:P(function(t){var i;if(t.lookupSessionStorage&&dZ()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(i=r)}return i},"lookup"),cacheUserLanguage:P(function(t,i){i.lookupSessionStorage&&dZ()&&window.sessionStorage.setItem(i.lookupSessionStorage,t)},"cacheUserLanguage")},lse={name:"navigator",lookup:P(function(t){var i=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r0?i:void 0},"lookup")},use={name:"htmlTag",lookup:P(function(t){var i,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(i=r.getAttribute("lang")),i},"lookup")},hse={name:"path",lookup:P(function(t){var i;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;i=r[t.lookupFromPathIndex].replace("/","")}else i=r[0].replace("/","")}return i},"lookup")},cse={name:"subdomain",lookup:P(function(t){var i=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[i]},"lookup")};function Ase(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:P(function(t){return t},"convertDetectedLanguage")}}P(Ase,"getDefaults");var bQ=function(){function n(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};qie(this,n),this.type="languageDetector",this.detectors={},this.init(t,i)}return P(n,"Browser"),Jie(n,[{key:"init",value:P(function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=i||{languageUtils:{}},this.options=ase(r,this.options||{},Ase()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(E){return E.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=l,this.addDetector(ise),this.addDetector(sse),this.addDetector(rse),this.addDetector(ose),this.addDetector(lse),this.addDetector(use),this.addDetector(hse),this.addDetector(cse)},"init")},{key:"addDetector",value:P(function(i){return this.detectors[i.name]=i,this},"addDetector")},{key:"detect",value:P(function(i){var r=this;i||(i=this.options.order);var l=[];return i.forEach(function(E){if(r.detectors[E]){var o=r.detectors[E].lookup(r.options);o&&typeof o=="string"&&(o=[o]),o&&(l=l.concat(o))}}),l=l.map(function(E){return r.options.convertDetectedLanguage(E)}),this.services.languageUtils.getBestMatchFromCodes?l:l.length>0?l[0]:null},"detect")},{key:"cacheUserLanguage",value:P(function(i,r){var l=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(i)>-1||r.forEach(function(E){l.detectors[E]&&l.detectors[E].cacheUserLanguage(i,l.options)}))},"cacheUserLanguage")}]),n}();bQ.type="languageDetector";var gB={},bC={};Object.defineProperty(bC,"__esModule",{value:!0});bC.PostPositionMap=void 0;var dse=[["을","를"],["이","가"],["은","는"],["으로","로"],["과","와"],["이랑","랑"]],iD={};bC.PostPositionMap=iD;for(var g0=0,EZ=dse;g0=44032&&t<=55203){var i=(t-44032)%28;return i!==0}}P(Ese,"TestHangul");CB.default=Ese;var PB={};Object.defineProperty(PB,"__esModule",{value:!0});function fse(n){switch(n[n.length-1]){case"1":case"3":case"6":case"7":case"8":return!0;case"2":case"4":case"5":case"9":return!1;case"0":break;default:return}return Rse(n)}P(fse,"TestNumber");PB.default=fse;function Rse(n){for(var t=n.length-1,i=!0,r=0;t>0;t--){var l=n[t];if(l===".")return!0;if(i)if(l==="0")r++;else{if(l===",")continue;i=!1}}return Ose(r)}P(Rse,"TestNumberEndsWithZero");function Ose(n){var t=[12,20,24,32,44];return!(t.indexOf(n)!==-1||n>=52)}P(Ose,"TestLargeNumberPostfix");var vB={};Object.defineProperty(vB,"__esModule",{value:!0});var mse=[12387,12435,12483,12531,110877,110878,65437],Ise=[[12353,12438],[12448,12538],[110592,110876],[12784,12799],[65382,65436],[12441,12447]];function Sse(n){var t=n.charCodeAt(n.length-1);if(t===65438||t===65439)return null;if(mse.indexOf(t)!==-1)return!0;for(var i=0,r=Ise;i=l[0]&&t<=l[1])return!1}}P(Sse,"TestKana");vB.default=Sse;var DB={};Object.defineProperty(DB,"__esModule",{value:!0});function Tse(n){for(var t=[],i=n.length-1;i>0;i--){var r=n[i];if(r===")")t.push(i);else if(r==="(")t.pop();else if(t.length===0)return n.substring(0,i+1)}return n.substr(0,t[t.length-1])}P(Tse,"ParenthesisModifier");DB.default=Tse;(function(n){var t=_t&&_t.__spreadArrays||function(){for(var T=0,d=0,c=arguments.length;d(n[n.COMMON=0]="COMMON",n[n.GREAT=1]="GREAT",n[n.ULTRA=2]="ULTRA",n[n.ROGUE=3]="ROGUE",n[n.MASTER=4]="MASTER",n[n.LUXURY=5]="LUXURY",n))(le||{}),Gt=(n=>(n[n.COMMON=0]="COMMON",n[n.GREAT=1]="GREAT",n[n.ULTRA=2]="ULTRA",n[n.MASTER=3]="MASTER",n))(Gt||{}),su=(n=>(n[n.DEFAULT=0]="DEFAULT",n[n.LEGACY=1]="LEGACY",n))(su||{}),de=(n=>(n[n.MESSAGE=0]="MESSAGE",n[n.WINDOW=1]="WINDOW",n[n.WINDOW_ALT=2]="WINDOW_ALT",n[n.BATTLE_INFO=3]="BATTLE_INFO",n[n.PARTY=4]="PARTY",n[n.PARTY_RED=5]="PARTY_RED",n[n.SUMMARY=6]="SUMMARY",n[n.SUMMARY_ALT=7]="SUMMARY_ALT",n[n.SUMMARY_RED=8]="SUMMARY_RED",n[n.SUMMARY_BLUE=9]="SUMMARY_BLUE",n[n.SUMMARY_PINK=10]="SUMMARY_PINK",n[n.SUMMARY_GOLD=11]="SUMMARY_GOLD",n[n.SUMMARY_GRAY=12]="SUMMARY_GRAY",n[n.SUMMARY_GREEN=13]="SUMMARY_GREEN",n[n.MONEY=14]="MONEY",n[n.STATS_LABEL=15]="STATS_LABEL",n[n.STATS_VALUE=16]="STATS_VALUE",n[n.SETTINGS_LABEL=17]="SETTINGS_LABEL",n[n.SETTINGS_SELECTED=18]="SETTINGS_SELECTED",n[n.SETTINGS_LOCKED=19]="SETTINGS_LOCKED",n[n.TOOLTIP_TITLE=20]="TOOLTIP_TITLE",n[n.TOOLTIP_CONTENT=21]="TOOLTIP_CONTENT",n[n.MOVE_INFO_CONTENT=22]="MOVE_INFO_CONTENT",n[n.MOVE_PP_FULL=23]="MOVE_PP_FULL",n[n.MOVE_PP_HALF_FULL=24]="MOVE_PP_HALF_FULL",n[n.MOVE_PP_NEAR_EMPTY=25]="MOVE_PP_NEAR_EMPTY",n[n.MOVE_PP_EMPTY=26]="MOVE_PP_EMPTY",n))(de||{});function Oe(n,t,i,r,l,E){const[o,O,s,u,T]=FC(l,n.uiTheme,E),A=n.add.text(t,i,r,O);return A.setScale(o),A.setShadow(u,T,s),O.lineSpacing||A.setLineSpacing(5),A}v(Oe,"addTextObject");function Nie(n,t,i,r){const[l,E,o,O,s]=FC(i,t.uiTheme,r);n.setScale(l),n.setShadow(O,s,o),E.lineSpacing||n.setLineSpacing(5)}v(Nie,"setTextStyle");function xI(n,t,i,r,l,E){const[o,O,s,u,T]=FC(l,n.uiTheme,E),A=new $o(n,t,i,r,O);return n.add.existing(A),A.setScale(o),A.setShadow(u,T,s),O.lineSpacing||A.setLineSpacing(10),A}v(xI,"addBBCodeTextObject");function gie(n,t,i,r,l,E,o){const[O,s]=FC(E,n.uiTheme,o),u=new So(n,t,i,r,l,s);return n.add.existing(u),u.setScale(O),u}v(gie,"addTextInputObject");function FC(n,t,i){let r=4,l=5;const E=.1666666667,o=96;let O={fontFamily:"emerald, unifont",fontSize:96,color:ga(n,!1,t),padding:{bottom:6}};switch(n){case 6:case 7:case 9:case 8:case 10:case 11:case 12:case 13:case 1:case 2:case 16:r=3,l=3;break;case 15:case 0:case 17:case 19:case 18:break;case 3:case 14:case 20:O.fontSize=o-24,r=3.5,l=3.5;break;case 4:case 5:O.fontSize=o-30,O.fontFamily="pkmnems";break;case 21:O.fontSize=o-32,r=3,l=3;break;case 22:O.fontSize=o-40,r=3,l=3;break}const s=ga(n,!0,t);if(i){if(i.fontSize){const u=parseInt(i.fontSize.toString().slice(0,-2))/parseInt(O.fontSize.toString().slice(0,-2));r*=u}O=Object.assign(O,i)}return[E,O,s,r,l]}v(FC,"getTextStyleOptions");function Cl(n,t,i=su.DEFAULT){return`[color=${ga(t,!1,i)}][shadow=${ga(t,!0,i)}]${n}`}v(Cl,"getBBCodeFrag");function ga(n,t,i=su.DEFAULT){switch(n){case 0:return t?"#6b5a73":"#f8f8f8";case 1:case 22:case 23:case 21:return i?t?"#d0d0c8":"#484848":t?"#6b5a73":"#f8f8f8";case 24:return i?t?"#ebd773":"#a68e17":t?"#6e672c":"#ccbe00";case 25:return i?t?"#f7b18b":"#d64b00":t?"#69402a":"#d64b00";case 26:return i?t?"#fca2a2":"#e13d3d":t?"#632929":"#e13d3d";case 2:return t?"#d0d0c8":"#484848";case 3:return i?t?"#ded6b5":"#404040":t?"#6b5a73":"#f8f8f8";case 4:return t?"#707070":"#f8f8f8";case 5:return t?"#984038":"#f89890";case 6:return t?"#636363":"#ffffff";case 7:return i?t?"#636363":"#ffffff":t?"#d0d0c8":"#484848";case 8:case 20:return t?"#ffbd73":"#e70808";case 9:return t?"#006090":"#40c8f8";case 10:return t?"#984038":"#f89890";case 11:case 14:return t?"#a0a060":"#e8e8a8";case 19:case 12:return t?"#636363":"#a0a0a0";case 15:return t?"#c07800":"#f8b050";case 16:return t?"#6b5a73":"#f8f8f8";case 13:return t?"#306850":"#78c850";case 17:return t?"#c07800":"#f8b050";case 18:return t?"#f83018":"#f88880"}}v(ga,"getTextColor");function $c(n){switch(n){case le.COMMON:return 16777215;case le.GREAT:return 3707128;case le.ULTRA:return 16306232;case le.ROGUE:return 13969705;case le.MASTER:return 14688448;case le.LUXURY:return 15092248}}v($c,"getModifierTierTextTint");function Cie(n){switch(n){case Gt.COMMON:return $c(le.COMMON);case Gt.GREAT:return $c(le.GREAT);case Gt.ULTRA:return $c(le.ULTRA);case Gt.MASTER:return $c(le.MASTER)}}v(Cie,"getEggTierTextTint");const vie={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,t){console&&console[n]&&console[n].apply(console,t)}},of=class of{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,i)}init(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=i.prefix||"i18next:",this.logger=t||vie,this.options=i,this.debug=i.debug}log(){for(var t=arguments.length,i=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const l=this.observers[r].get(i)||0;this.observers[r].set(i,l+1)}),this}off(t,i){if(this.observers[t]){if(!i){delete this.observers[t];return}this.observers[t].delete(i)}}emit(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),l=1;l{let[O,s]=o;for(let u=0;u{let[O,s]=o;for(let u=0;u{n=r,t=l});return i.resolve=n,i.reject=t,i}v(kA,"defer");function uZ(n){return n==null?"":""+n}v(uZ,"makeString");function Pie(n,t,i){n.forEach(r=>{t[r]&&(i[r]=t[r])})}v(Pie,"copy");const Die=/###/g;function PE(n,t,i){function r(O){return O&&O.indexOf("###")>-1?O.replace(Die,"."):O}v(r,"cleanKey");function l(){return!n||typeof n=="string"}v(l,"canNotTraverseDeeper");const E=typeof t!="string"?t:t.split(".");let o=0;for(;o":">",'"':""","'":"'","/":"/"};function yie(n){return typeof n=="string"?n.replace(/[&<>"'\/]/g,t=>Gie[t]):n}v(yie,"escape$1");const i_=class i_{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const i=this.regExpMap.get(t);if(i!==void 0)return i;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}};v(i_,"RegExpCache");let tD=i_;const Hie=[" ",",","?","!",";"],Bie=new tD(20);function bie(n,t,i){t=t||"",i=i||"";const r=Hie.filter(o=>t.indexOf(o)<0&&i.indexOf(o)<0);if(r.length===0)return!0;const l=Bie.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let E=!l.test(n);if(!E){const o=n.indexOf(i);o>0&&!l.test(n.substring(0,o))&&(E=!0)}return E}v(bie,"looksLikeObjectPath");function aD(n,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!n)return;if(n[t])return n[t];const r=t.split(i);let l=n;for(let E=0;E-1&&s0?n.replace("_","-"):n}v(QT,"getCleanedCode");const s_=class s_ extends kC{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const i=this.options.ns.indexOf(t);i>-1&&this.options.ns.splice(i,1)}getResource(t,i,r){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const E=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,o=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure;let O;t.indexOf(".")>-1?O=t.split("."):(O=[t,i],r&&(Array.isArray(r)?O.push(...r):typeof r=="string"&&E?O.push(...r.split(E)):O.push(r)));const s=jT(this.data,O);return!s&&!i&&!r&&t.indexOf(".")>-1&&(t=O[0],i=O[1],r=O.slice(2).join(".")),s||!o||typeof r!="string"?s:aD(this.data&&this.data[t]&&this.data[t][i],r,E)}addResource(t,i,r,l){let E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=E.keySeparator!==void 0?E.keySeparator:this.options.keySeparator;let O=[t,i];r&&(O=O.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(O=t.split("."),l=i,i=O[1]),this.addNamespaces(i),hZ(this.data,O,l),E.silent||this.emit("added",t,i,r,l)}addResources(t,i,r){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const E in r)(typeof r[E]=="string"||Object.prototype.toString.apply(r[E])==="[object Array]")&&this.addResource(t,i,E,r[E],{silent:!0});l.silent||this.emit("added",t,i,r)}addResourceBundle(t,i,r,l,E){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},O=[t,i];t.indexOf(".")>-1&&(O=t.split("."),l=r,r=i,i=O[1]),this.addNamespaces(i);let s=jT(this.data,O)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),l?wQ(s,r,E):s={...s,...r},hZ(this.data,O,s),o.silent||this.emit("added",t,i,r)}removeResourceBundle(t,i){this.hasResourceBundle(t,i)&&delete this.data[t][i],this.removeNamespaces(i),this.emit("removed",t,i)}hasResourceBundle(t,i){return this.getResource(t,i)!==void 0}getResourceBundle(t,i){return i||(i=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,i)}:this.getResource(t,i)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const i=this.getDataByLanguage(t);return!!(i&&Object.keys(i)||[]).find(l=>i[l]&&Object.keys(i[l]).length>0)}toJSON(){return this.data}};v(s_,"ResourceStore");let JT=s_;var FQ={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,t,i,r,l){return n.forEach(E=>{this.processors[E]&&(t=this.processors[E].process(t,i,r,l))}),t}};const cZ={},AC=class AC extends kC{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Pie(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=oo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,i);return r&&r.res!==void 0}extractFromKey(t,i){let r=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const l=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let E=i.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,O=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!bie(t,r,l);if(o&&!O){const s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:E};const u=t.split(r);(r!==l||r===l&&this.options.ns.indexOf(u[0])>-1)&&(E=u.shift()),t=u.join(l)}return typeof E=="string"&&(E=[E]),{key:t,namespaces:E}}translate(t,i,r){if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const l=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,E=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:o,namespaces:O}=this.extractFromKey(t[t.length-1],i),s=O[O.length-1],u=i.lng||this.language,T=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(T){const N=i.nsSeparator||this.options.nsSeparator;return l?{res:`${s}${N}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(i)}:`${s}${N}${o}`}return l?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(i)}:o}const A=this.resolve(t,i);let c=A&&A.res;const d=A&&A.usedKey||o,h=A&&A.exactUsedKey||o,f=Object.prototype.toString.apply(c),S=["[object Number]","[object Function]","[object RegExp]"],R=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,L=!this.i18nFormat||this.i18nFormat.handleAsObject;if(L&&c&&(typeof c!="string"&&typeof c!="boolean"&&typeof c!="number")&&S.indexOf(f)<0&&!(typeof R=="string"&&f==="[object Array]")){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const N=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,c,{...i,ns:O}):`key '${o} (${this.language})' returned an object instead of string.`;return l?(A.res=N,A.usedParams=this.getUsedParamsDetails(i),A):N}if(E){const N=f==="[object Array]",g=N?[]:{},C=N?h:d;for(const P in c)if(Object.prototype.hasOwnProperty.call(c,P)){const M=`${C}${E}${P}`;g[P]=this.translate(M,{...i,joinArrays:!1,ns:O}),g[P]===M&&(g[P]=c[P])}c=g}}else if(L&&typeof R=="string"&&f==="[object Array]")c=c.join(R),c&&(c=this.extendTranslation(c,t,i,r));else{let N=!1,g=!1;const C=i.count!==void 0&&typeof i.count!="string",P=AC.hasDefaultValue(i),M=C?this.pluralResolver.getSuffix(u,i.count,i):"",D=i.ordinal&&C?this.pluralResolver.getSuffix(u,i.count,{ordinal:!1}):"",G=C&&!i.ordinal&&i.count===0&&this.pluralResolver.shouldUseIntlApi(),H=G&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${M}`]||i[`defaultValue${D}`]||i.defaultValue;!this.isValidLookup(c)&&P&&(N=!0,c=H),this.isValidLookup(c)||(g=!0,c=o);const b=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&g?void 0:c,w=P&&H!==c&&this.options.updateMissing;if(g||N||w){if(this.logger.log(w?"updateKey":"missingKey",u,s,o,w?H:c),E){const V=this.resolve(o,{...i,keySeparator:!1});V&&V.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let _=[];const F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&F&&F[0])for(let V=0;V{const Q=P&&$!==c?$:b;this.options.missingKeyHandler?this.options.missingKeyHandler(V,s,Z,Q,w,i):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(V,s,Z,Q,w,i),this.emit("missingKey",V,s,Z,c)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&C?_.forEach(V=>{const Z=this.pluralResolver.getSuffixes(V,i);G&&i[`defaultValue${this.options.pluralSeparator}zero`]&&Z.indexOf(`${this.options.pluralSeparator}zero`)<0&&Z.push(`${this.options.pluralSeparator}zero`),Z.forEach($=>{x([V],o+$,i[`defaultValue${$}`]||H)})}):x(_,o,H))}c=this.extendTranslation(c,t,i,A,r),g&&c===o&&this.options.appendNamespaceToMissingKey&&(c=`${s}:${o}`),(g||N)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${o}`:o,N?c:void 0):c=this.options.parseMissingKeyHandler(c))}return l?(A.res=c,A.usedParams=this.getUsedParamsDetails(i),A):c}extendTranslation(t,i,r,l,E){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let T;if(u){const c=t.match(this.interpolator.nestingRegexp);T=c&&c.length}let A=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(A={...this.options.interpolation.defaultVariables,...A}),t=this.interpolator.interpolate(t,A,r.lng||this.language,r),u){const c=t.match(this.interpolator.nestingRegexp),d=c&&c.length;T1&&arguments[1]!==void 0?arguments[1]:{},r,l,E,o,O;return typeof t=="string"&&(t=[t]),t.forEach(s=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(s,i),T=u.key;l=T;let A=u.namespaces;this.options.fallbackNS&&(A=A.concat(this.options.fallbackNS));const c=i.count!==void 0&&typeof i.count!="string",d=c&&!i.ordinal&&i.count===0&&this.pluralResolver.shouldUseIntlApi(),h=i.context!==void 0&&(typeof i.context=="string"||typeof i.context=="number")&&i.context!=="",f=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);A.forEach(S=>{this.isValidLookup(r)||(O=S,!cZ[`${f[0]}-${S}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(O)&&(cZ[`${f[0]}-${S}`]=!0,this.logger.warn(`key "${l}" for languages "${f.join(", ")}" won't get resolved as namespace "${O}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(R=>{if(this.isValidLookup(r))return;o=R;const L=[T];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(L,T,R,S,i);else{let N;c&&(N=this.pluralResolver.getSuffix(R,i.count,i));const g=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(L.push(T+N),i.ordinal&&N.indexOf(C)===0&&L.push(T+N.replace(C,this.options.pluralSeparator)),d&&L.push(T+g)),h){const P=`${T}${this.options.contextSeparator}${i.context}`;L.push(P),c&&(L.push(P+N),i.ordinal&&N.indexOf(C)===0&&L.push(P+N.replace(C,this.options.pluralSeparator)),d&&L.push(P+g))}}let p;for(;p=L.pop();)this.isValidLookup(r)||(E=p,r=this.getResource(R,S,p,i))}))})}),{res:r,usedKey:l,exactUsedKey:E,usedLng:o,usedNS:O}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,i,r){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,i,r,l):this.resourceStore.getResource(t,i,r,l)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let l=r?t.replace:t;if(r&&typeof t.count<"u"&&(l.count=t.count),this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),!r){l={...l};for(const E of i)delete l[E]}return l}static hasDefaultValue(t){const i="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&i===r.substring(0,i.length)&&t[r]!==void 0)return!0;return!1}};v(AC,"Translator");let eL=AC;function D0(n){return n.charAt(0).toUpperCase()+n.slice(1)}v(D0,"capitalize");const r_=class r_{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=oo.create("languageUtils")}getScriptPartFromCode(t){if(t=QT(t),!t||t.indexOf("-")<0)return null;const i=t.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(t){if(t=QT(t),!t||t.indexOf("-")<0)return t;const i=t.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const i=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(l=>l.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),i.indexOf(r[1].toLowerCase())>-1&&(r[1]=D0(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),i.indexOf(r[1].toLowerCase())>-1&&(r[1]=D0(r[1].toLowerCase())),i.indexOf(r[2].toLowerCase())>-1&&(r[2]=D0(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let i;return t.forEach(r=>{if(i)return;const l=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(l))&&(i=l)}),!i&&this.options.supportedLngs&&t.forEach(r=>{if(i)return;const l=this.getLanguagePartFromCode(r);if(this.isSupportedCode(l))return i=l;i=this.options.supportedLngs.find(E=>{if(E===l)return E;if(!(E.indexOf("-")<0&&l.indexOf("-")<0)&&(E.indexOf("-")>0&&l.indexOf("-")<0&&E.substring(0,E.indexOf("-"))===l||E.indexOf(l)===0&&l.length>1))return E})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(t,i){if(!t)return[];if(typeof t=="function"&&(t=t(i)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!i)return t.default||[];let r=t[i];return r||(r=t[this.getScriptPartFromCode(i)]),r||(r=t[this.formatLanguageCode(i)]),r||(r=t[this.getLanguagePartFromCode(i)]),r||(r=t.default),r||[]}toResolveHierarchy(t,i){const r=this.getFallbackCodes(i||this.options.fallbackLng||[],t),l=[],E=v(o=>{o&&(this.isSupportedCode(o)?l.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))},"addCode");return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&E(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&E(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&E(this.getLanguagePartFromCode(t))):typeof t=="string"&&E(this.formatLanguageCode(t)),r.forEach(o=>{l.indexOf(o)<0&&E(this.formatLanguageCode(o))}),l}};v(r_,"LanguageUtil");let tL=r_,_ie=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],wie={1:function(n){return+(n>1)},2:function(n){return+(n!=1)},3:function(n){return 0},4:function(n){return n%10==1&&n%100!=11?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2},5:function(n){return n==0?0:n==1?1:n==2?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5},6:function(n){return n==1?0:n>=2&&n<=4?1:2},7:function(n){return n==1?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2},8:function(n){return n==1?0:n==2?1:n!=8&&n!=11?2:3},9:function(n){return+(n>=2)},10:function(n){return n==1?0:n==2?1:n<7?2:n<11?3:4},11:function(n){return n==1||n==11?0:n==2||n==12?1:n>2&&n<20?2:3},12:function(n){return+(n%10!=1||n%100==11)},13:function(n){return+(n!==0)},14:function(n){return n==1?0:n==2?1:n==3?2:3},15:function(n){return n%10==1&&n%100!=11?0:n%10>=2&&(n%100<10||n%100>=20)?1:2},16:function(n){return n%10==1&&n%100!=11?0:n!==0?1:2},17:function(n){return n==1||n%10==1&&n%100!=11?0:1},18:function(n){return n==0?0:n==1?1:2},19:function(n){return n==1?0:n==0||n%100>1&&n%100<11?1:n%100>10&&n%100<20?2:3},20:function(n){return n==1?0:n==0||n%100>0&&n%100<20?1:2},21:function(n){return n%100==1?1:n%100==2?2:n%100==3||n%100==4?3:0},22:function(n){return n==1?0:n==2?1:(n<0||n>10)&&n%10==0?2:3}};const Fie=["v1","v2","v3"],kie=["v4"],dZ={zero:0,one:1,two:2,few:3,many:4,other:5};function xie(){const n={};return _ie.forEach(t=>{t.lngs.forEach(i=>{n[i]={numbers:t.nr,plurals:wie[t.fc]}})}),n}v(xie,"createRules");const o_=class o_{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=i,this.logger=oo.create("pluralResolver"),(!this.options.compatibilityJSON||kie.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=xie()}addRule(t,i){this.rules[t]=i}getRule(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(QT(t==="dev"?"en":t),{type:i.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,i);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,i){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(l=>`${i}${l}`)}getSuffixes(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,i);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((l,E)=>dZ[l]-dZ[E]).map(l=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${l}`):r.numbers.map(l=>this.getSuffix(t,l,i)):[]}getSuffix(t,i){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const l=this.getRule(t,r);return l?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${l.select(i)}`:this.getSuffixRetroCompatible(l,i):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,i){const r=t.noAbs?t.plurals(i):t.plurals(Math.abs(i));let l=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(l===2?l="plural":l===1&&(l=""));const E=v(()=>this.options.prepend&&l.toString()?this.options.prepend+l.toString():l.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?l===1?"":typeof l=="number"?`_plural_${l.toString()}`:E():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?E():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!Fie.includes(this.options.compatibilityJSON)}};v(o_,"PluralResolver");let nD=o_;function AZ(n,t,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,E=Uie(n,t,i);return!E&&l&&typeof i=="string"&&(E=aD(n,i,r),E===void 0&&(E=aD(t,i,r))),E}v(AZ,"deepFindWithDefaults");const l_=class l_{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=oo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(i=>i),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const i=t.interpolation;this.escape=i.escape!==void 0?i.escape:yie,this.escapeValue=i.escapeValue!==void 0?i.escapeValue:!0,this.useRawValueToEscape=i.useRawValueToEscape!==void 0?i.useRawValueToEscape:!1,this.prefix=i.prefix?mc(i.prefix):i.prefixEscaped||"{{",this.suffix=i.suffix?mc(i.suffix):i.suffixEscaped||"}}",this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||",",this.unescapePrefix=i.unescapeSuffix?"":i.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":i.unescapeSuffix||"",this.nestingPrefix=i.nestingPrefix?mc(i.nestingPrefix):i.nestingPrefixEscaped||mc("$t("),this.nestingSuffix=i.nestingSuffix?mc(i.nestingSuffix):i.nestingSuffixEscaped||mc(")"),this.nestingOptionsSeparator=i.nestingOptionsSeparator?i.nestingOptionsSeparator:i.nestingOptionsSeparator||",",this.maxReplaces=i.maxReplaces?i.maxReplaces:1e3,this.alwaysFormat=i.alwaysFormat!==void 0?i.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=v((i,r)=>i&&i.source===r?(i.lastIndex=0,i):new RegExp(r,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,i,r,l){let E,o,O;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(h){return h.replace(/\$/g,"$$$$")}v(u,"regexSafe");const T=v(h=>{if(h.indexOf(this.formatSeparator)<0){const L=AZ(i,s,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(L,void 0,r,{...l,...i,interpolationkey:h}):L}const f=h.split(this.formatSeparator),S=f.shift().trim(),R=f.join(this.formatSeparator).trim();return this.format(AZ(i,s,S,this.options.keySeparator,this.options.ignoreJSONStructure),R,r,{...l,...i,interpolationkey:S})},"handleFormat");this.resetRegExp();const A=l&&l.missingInterpolationHandler||this.options.missingInterpolationHandler,c=l&&l.interpolation&&l.interpolation.skipOnVariables!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>u(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?u(this.escape(h)):u(h)}].forEach(h=>{for(O=0;E=h.regex.exec(t);){const f=E[1].trim();if(o=T(f),o===void 0)if(typeof A=="function"){const R=A(t,E,l);o=typeof R=="string"?R:""}else if(l&&Object.prototype.hasOwnProperty.call(l,f))o="";else if(c){o=E[0];continue}else this.logger.warn(`missed to pass in variable ${f} for interpolating ${t}`),o="";else typeof o!="string"&&!this.useRawValueToEscape&&(o=uZ(o));const S=h.safeValue(o);if(t=t.replace(E[0],S),c?(h.regex.lastIndex+=o.length,h.regex.lastIndex-=E[0].length):h.regex.lastIndex=0,O++,O>=this.maxReplaces)break}}),t}nest(t,i){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l,E,o;function O(s,u){const T=this.nestingOptionsSeparator;if(s.indexOf(T)<0)return s;const A=s.split(new RegExp(`${T}[ ]*{`));let c=`{${A[1]}`;s=A[0],c=this.interpolate(c,o);const d=c.match(/'/g),h=c.match(/"/g);(d&&d.length%2===0&&!h||h.length%2!==0)&&(c=c.replace(/'/g,'"'));try{o=JSON.parse(c),u&&(o={...u,...o})}catch(f){return this.logger.warn(`failed parsing options string in nesting for key ${s}`,f),`${s}${T}${c}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,s}for(v(O,"handleHasOptions");l=this.nestingRegexp.exec(t);){let s=[];o={...r},o=o.replace&&typeof o.replace!="string"?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(l[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(l[1])){const T=l[1].split(this.formatSeparator).map(A=>A.trim());l[1]=T.shift(),s=T,u=!0}if(E=i(O.call(this,l[1].trim(),o),o),E&&l[0]===t&&typeof E!="string")return E;typeof E!="string"&&(E=uZ(E)),E||(this.logger.warn(`missed to resolve ${l[1]} for nesting ${t}`),E=""),u&&(E=s.reduce((T,A)=>this.format(T,A,r.lng,{...r,interpolationkey:l[1].trim()}),E.trim())),t=t.replace(l[0],E),this.regexp.lastIndex=0}return t}};v(l_,"Interpolator");let iD=l_;function Wie(n){let t=n.toLowerCase().trim();const i={};if(n.indexOf("(")>-1){const r=n.split("(");t=r[0].toLowerCase().trim();const l=r[1].substring(0,r[1].length-1);t==="currency"&&l.indexOf(":")<0?i.currency||(i.currency=l.trim()):t==="relativetime"&&l.indexOf(":")<0?i.range||(i.range=l.trim()):l.split(";").forEach(o=>{if(!o)return;const[O,...s]=o.split(":"),u=s.join(":").trim().replace(/^'+|'+$/g,"");i[O.trim()]||(i[O.trim()]=u),u==="false"&&(i[O.trim()]=!1),u==="true"&&(i[O.trim()]=!0),isNaN(u)||(i[O.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:i}}v(Wie,"parseFormatStr");function Rc(n){const t={};return v(function(r,l,E){const o=l+JSON.stringify(E);let O=t[o];return O||(O=n(QT(l),E),t[o]=O),O(r)},"invokeFormatter")}v(Rc,"createCachedFormatter");const u_=class u_{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=oo.create("formatter"),this.options=t,this.formats={number:Rc((i,r)=>{const l=new Intl.NumberFormat(i,{...r});return E=>l.format(E)}),currency:Rc((i,r)=>{const l=new Intl.NumberFormat(i,{...r,style:"currency"});return E=>l.format(E)}),datetime:Rc((i,r)=>{const l=new Intl.DateTimeFormat(i,{...r});return E=>l.format(E)}),relativetime:Rc((i,r)=>{const l=new Intl.RelativeTimeFormat(i,{...r});return E=>l.format(E,r.range||"day")}),list:Rc((i,r)=>{const l=new Intl.ListFormat(i,{...r});return E=>l.format(E)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,i){this.formats[t.toLowerCase().trim()]=i}addCached(t,i){this.formats[t.toLowerCase().trim()]=Rc(i)}format(t,i,r){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return i.split(this.formatSeparator).reduce((O,s)=>{const{formatName:u,formatOptions:T}=Wie(s);if(this.formats[u]){let A=O;try{const c=l&&l.formatParams&&l.formatParams[l.interpolationkey]||{},d=c.locale||c.lng||l.locale||l.lng||r;A=this.formats[u](O,d,{...T,...l,...c})}catch(c){this.logger.warn(c)}return A}else this.logger.warn(`there was no format function for ${u}`);return O},t)}};v(u_,"Formatter");let sD=u_;function Kie(n,t){n.pending[t]!==void 0&&(delete n.pending[t],n.pendingCount--)}v(Kie,"removePending");const h_=class h_ extends kC{constructor(t,i,r){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=i,this.services=r,this.languageUtils=r.languageUtils,this.options=l,this.logger=oo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=l.maxParallelReads||10,this.readingCalls=0,this.maxRetries=l.maxRetries>=0?l.maxRetries:5,this.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,l.backend,l)}queueLoad(t,i,r,l){const E={},o={},O={},s={};return t.forEach(u=>{let T=!0;i.forEach(A=>{const c=`${u}|${A}`;!r.reload&&this.store.hasResourceBundle(u,A)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?o[c]===void 0&&(o[c]=!0):(this.state[c]=1,T=!1,o[c]===void 0&&(o[c]=!0),E[c]===void 0&&(E[c]=!0),s[A]===void 0&&(s[A]=!0)))}),T||(O[u]=!0)}),(Object.keys(E).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(E),pending:Object.keys(o),toLoadLanguages:Object.keys(O),toLoadNamespaces:Object.keys(s)}}loaded(t,i,r){const l=t.split("|"),E=l[0],o=l[1];i&&this.emit("failedLoading",E,o,i),r&&this.store.addResourceBundle(E,o,r,void 0,void 0,{skipCopy:!0}),this.state[t]=i?-1:2;const O={};this.queue.forEach(s=>{Mie(s.loaded,[E],o),Kie(s,t),i&&s.errors.push(i),s.pendingCount===0&&!s.done&&(Object.keys(s.loaded).forEach(u=>{O[u]||(O[u]={});const T=s.loaded[u];T.length&&T.forEach(A=>{O[u][A]===void 0&&(O[u][A]=!0)})}),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())}),this.emit("loaded",O),this.queue=this.queue.filter(s=>!s.done)}read(t,i,r){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:i,fcName:r,tried:l,wait:E,callback:o});return}this.readingCalls++;const O=v((u,T)=>{if(this.readingCalls--,this.waitingReads.length>0){const A=this.waitingReads.shift();this.read(A.lng,A.ns,A.fcName,A.tried,A.wait,A.callback)}if(u&&T&&l{this.read.call(this,t,i,r,l+1,E*2,o)},E);return}o(u,T)},"resolver"),s=this.backend[r].bind(this.backend);if(s.length===2){try{const u=s(t,i);u&&typeof u.then=="function"?u.then(T=>O(null,T)).catch(O):O(null,u)}catch(u){O(u)}return}return s(t,i,O)}prepareLoading(t,i){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof i=="string"&&(i=[i]);const E=this.queueLoad(t,i,r,l);if(!E.toLoad.length)return E.pending.length||l(),null;E.toLoad.forEach(o=>{this.loadOne(o)})}load(t,i,r){this.prepareLoading(t,i,{},r)}reload(t,i,r){this.prepareLoading(t,i,{reload:!0},r)}loadOne(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),l=r[0],E=r[1];this.read(l,E,"read",void 0,void 0,(o,O)=>{o&&this.logger.warn(`${i}loading namespace ${E} for language ${l} failed`,o),!o&&O&&this.logger.log(`${i}loaded namespace ${E} for language ${l}`,O),this.loaded(t,o,O)})}saveMissing(t,i,r,l,E){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},O=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(i)){this.logger.warn(`did not save key "${r}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const s={...o,isUpdate:E},u=this.backend.create.bind(this.backend);if(u.length<6)try{let T;u.length===5?T=u(t,i,r,l,s):T=u(t,i,r,l),T&&typeof T.then=="function"?T.then(A=>O(null,A)).catch(O):O(null,T)}catch(T){O(T)}else u(t,i,r,l,O,s)}!t||!t[0]||this.store.addResource(t[0],i,r,l)}}};v(h_,"Connector");let rD=h_;function EZ(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:v(function(t){let i={};if(typeof t[1]=="object"&&(i=t[1]),typeof t[1]=="string"&&(i.defaultValue=t[1]),typeof t[2]=="string"&&(i.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(l=>{i[l]=r[l]})}return i},"handle"),interpolation:{escapeValue:!0,format:n=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}v(EZ,"get");function fZ(n){return typeof n.ns=="string"&&(n.ns=[n.ns]),typeof n.fallbackLng=="string"&&(n.fallbackLng=[n.fallbackLng]),typeof n.fallbackNS=="string"&&(n.fallbackNS=[n.fallbackNS]),n.supportedLngs&&n.supportedLngs.indexOf("cimode")<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),n}v(fZ,"transformOptions");function AS(){}v(AS,"noop");function Yie(n){Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(i=>{typeof n[i]=="function"&&(n[i]=n[i].bind(n))})}v(Yie,"bindMemberFunctions");const lf=class lf extends kC{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(super(),this.options=fZ(t),this.services={},this.logger=oo,this.modules={external:[]},Yie(this),i&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,i),this;setTimeout(()=>{this.init(t,i)},0)}}init(){var t=this;let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof i=="function"&&(r=i,i={}),!i.defaultNS&&i.defaultNS!==!1&&i.ns&&(typeof i.ns=="string"?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const l=EZ();this.options={...l,...this.options,...fZ(i)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...l.interpolation,...this.options.interpolation}),i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);function E(T){return T?typeof T=="function"?new T:T:null}if(v(E,"createClassOnDemand"),!this.options.isClone){this.modules.logger?oo.init(E(this.modules.logger),this.options):oo.init(null,this.options);let T;this.modules.formatter?T=this.modules.formatter:typeof Intl<"u"&&(T=sD);const A=new tL(this.options);this.store=new JT(this.options.resources,this.options);const c=this.services;c.logger=oo,c.resourceStore=this.store,c.languageUtils=A,c.pluralResolver=new nD(A,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),T&&(!this.options.interpolation.format||this.options.interpolation.format===l.interpolation.format)&&(c.formatter=E(T),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new iD(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new rD(E(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(d){for(var h=arguments.length,f=new Array(h>1?h-1:0),S=1;S1?h-1:0),S=1;S{d.init&&d.init(this)})}if(this.format=this.options.interpolation.format,r||(r=AS),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const T=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);T.length>0&&T[0]!=="dev"&&(this.options.lng=T[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(T=>{this[T]=function(){return t.store[T](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(T=>{this[T]=function(){return t.store[T](...arguments),t}});const s=kA(),u=v(()=>{const T=v((A,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(c),r(A,c)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return T(null,this.t.bind(this));this.changeLanguage(this.options.lng,T)},"load");return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),s}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:AS;const l=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const E=[],o=v(O=>{if(!O||O==="cimode")return;this.services.languageUtils.toResolveHierarchy(O).forEach(u=>{u!=="cimode"&&E.indexOf(u)<0&&E.push(u)})},"append");l?o(l):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(s=>o(s)),this.options.preload&&this.options.preload.forEach(O=>o(O)),this.services.backendConnector.load(E,this.options.ns,O=>{!O&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(O)})}else r(null)}reloadResources(t,i,r){const l=kA();return t||(t=this.languages),i||(i=this.options.ns),r||(r=AS),this.services.backendConnector.reload(t,i,E=>{l.resolve(),r(E)}),l}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&FQ.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let i=0;i-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,i){var r=this;this.isLanguageChangingTo=t;const l=kA();this.emit("languageChanging",t);const E=v(s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},"setLngProps"),o=v((s,u)=>{u?(E(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,l.resolve(function(){return r.t(...arguments)}),i&&i(s,function(){return r.t(...arguments)})},"done"),O=v(s=>{!t&&!s&&this.services.languageDetector&&(s=[]);const u=typeof s=="string"?s:this.services.languageUtils.getBestMatchFromCodes(s);u&&(this.language||E(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,T=>{o(T,u)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?O(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(O):this.services.languageDetector.detect(O):O(t),l}getFixedT(t,i,r){var l=this;const E=v(function(o,O){let s;if(typeof O!="object"){for(var u=arguments.length,T=new Array(u>2?u-2:0),A=2;A`${s.keyPrefix}${c}${h}`):d=s.keyPrefix?`${s.keyPrefix}${c}${o}`:o,l.t(d,s)},"fixedT");return typeof t=="string"?E.lng=t:E.lngs=t,E.ns=i,E.keyPrefix=r,E}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=i.lng||this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,E=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=v((O,s)=>{const u=this.services.backendConnector.state[`${O}|${s}`];return u===-1||u===2},"loadNotPending");if(i.precheck){const O=i.precheck(this,o);if(O!==void 0)return O}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!l||o(E,t)))}loadNamespaces(t,i){const r=kA();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(l=>{this.options.ns.indexOf(l)<0&&this.options.ns.push(l)}),this.loadResources(l=>{r.resolve(),i&&i(l)}),r):(i&&i(),Promise.resolve())}loadLanguages(t,i){const r=kA();typeof t=="string"&&(t=[t]);const l=this.options.preload||[],E=t.filter(o=>l.indexOf(o)<0);return E.length?(this.options.preload=l.concat(E),this.loadResources(o=>{r.resolve(),i&&i(o)}),r):(i&&i(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new tL(EZ());return i.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;return new lf(t,i)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:AS;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const l={...this.options,...t,isClone:!0},E=new lf(l);return(t.debug!==void 0||t.prefix!==void 0)&&(E.logger=E.logger.clone(t)),["store","services","language"].forEach(O=>{E[O]=this[O]}),E.services={...this.services},E.services.utils={hasLoadedNamespace:E.hasLoadedNamespace.bind(E)},r&&(E.store=new JT(this.store.data,l),E.services.resourceStore=E.store),E.translator=new eL(E.services,l),E.translator.on("*",function(O){for(var s=arguments.length,u=new Array(s>1?s-1:0),T=1;T(n[n.NORMAL=0]="NORMAL",n[n.ABBREVIATED=1]="ABBREVIATED",n))(rm||{});const Vie="__MISSING";function rs(n){return n.replace(/\_/g," ").split(" ").map(t=>`${t.slice(0,1)}${t.slice(1).toLowerCase()}`).join(" ")}v(rs,"toReadableString");function CB(n,t=!1){const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let r="";for(let l=0;l0;i--){const r=Phaser.Math.RND.integerInRange(0,i);[t[i],t[r]]=[t[r],t[i]]}return t}v(qie,"randSeedShuffle");function ii(n){return Math.floor(1/60*1e3*n)}v(ii,"getFrameMs");function jie(){const n=new Date;return((n.getHours()*60+n.getMinutes())/1440+.675)%1}v(jie,"getCurrentTime");const ES=3600;function xQ(n){const t=`${Math.floor(n/(ES*24))}`,i=`${Math.floor(n%(ES*24)/ES)}`,r=`${Math.floor(n%ES/60)}`,l=`${Math.floor(n%60)}`;return`${t.padStart(2,"0")}:${i.padStart(2,"0")}:${r.padStart(2,"0")}:${l.padStart(2,"0")}`}v(xQ,"getPlayTimeString");function Dl(n){const t=[],i=[];let r=0;for(let l=0;l0;)t=i%2?`1${t}`:`0${t}`,i=Math.floor(i*.5);return t}v(Ml,"decToBin");function vB(n){return[Dl(Ml(n).substring(0,5)),Dl(Ml(n).substring(5,10)),Dl(Ml(n).substring(10,15)),Dl(Ml(n).substring(15,20)),Dl(Ml(n).substring(20,25)),Dl(Ml(n).substring(25,30))]}v(vB,"getIvsFromId");function WQ(n,t){if(nisNaN(parseInt(t.toString()))).map(t=>t.toString())}v(qo,"getEnumKeys");function Ea(n){return Object.values(n).filter(t=>!isNaN(parseInt(t.toString()))).map(t=>parseInt(t.toString()))}v(Ea,"getEnumValues");function dh(n,t){return n?t():new Promise(i=>i(null))}v(dh,"executeIf");const lo="pokerogue_sessionId",Pr=(window.location.hostname==="localhost"||/^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$/.test(window.location.hostname))&&window.location.port!==""||window.location.hostname==="",Qie="http://localhost:8001",Jie=Pr?Qie:"",YQ=Pr?Jie:"https://api.pokerogue.net";let nL=!0;function Ah(n,t){const i=new Date;i.setTime(new Date().getTime()+36e5*24*30*3),document.cookie=`${n}=${t};Secure;SameSite=Strict;Path=/;Expires=${i.toUTCString()}`}v(Ah,"setCookie");function PB(n){const t=`${n}=`,i=document.cookie.split(";");for(let r=0;rnL=!0,n=>nL=!1)}v(ese,"localPing");function WI(n,t=!1){return Pr&&nL||!Pr?new Promise((i,r)=>{const l={};if(t){const E=PB(lo);E&&(l.headers={Authorization:E})}fetch(`${YQ}/${n}`,l).then(E=>i(E)).catch(E=>r(E))}):new Promise(()=>{})}v(WI,"apiFetch");function uD(n,t,i="application/json",r=!1){return Pr&&nL||!Pr?new Promise((l,E)=>{const o={Accept:i,"Content-Type":i};if(r){const O=PB(lo);O&&(o.Authorization=O)}fetch(`${YQ}/${n}`,{method:"POST",headers:o,body:t}).then(O=>l(O)).catch(O=>E(O))}):new Promise(()=>{})}v(uD,"apiPost");const c_=class c_{constructor(t){this.value=t}};v(c_,"BooleanHolder");let Et=c_;const d_=class d_{constructor(t){this.value=t}};v(d_,"NumberHolder");let Zt=d_;const A_=class A_ extends Zt{constructor(t){super(t)}};v(A_,"IntegerHolder");let Mt=A_;const E_=class E_ extends Mt{constructor(t){super(t)}};v(E_,"FixedInt");let iL=E_;function et(n){return new iL(n)}v(et,"fixedInt");function tse(n,t,i){const r=Math.max(n,t,i),l=r-Math.min(n,t,i),E=l&&(r===n?(t-i)/l:r===t?2+(i-n)/l:4+(n-t)/l);return[60*(E<0?E+6:E),r&&l/r,r]}v(tse,"rgbToHsv");function ase(n,t){const[i,r,l]=n,[E,o,O]=t,s=Math.pow(i-E,2),u=Math.pow(r-o,2),T=Math.pow(l-O,2),A=(i+E)/2;return Math.ceil(Math.sqrt(2*s+4*u+3*T+A*(s-T)/256))}v(ase,"deltaRgb");function Ti(n){const t=n.match(/^([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);return{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16),a:255}}v(Ti,"rgbHexToRgba");function fS(n){return(n[0]<<24)+(n[1]<<16)+(n[2]<<8)+n[3]}v(fS,"rgbaToInt");function fo(n){switch(n||(n=ae.resolvedLanguage),n){case"es":case"fr":case"de":case"it":case"zh_CN":case"zh_TW":case"pt_BR":case"ko":return!0;default:return!1}}v(fo,"verifyLang");function DB(n,t=10){return n.length>t?n.slice(0,t-3)+"...":n}v(DB,"truncateString");function RZ(n){return JSON.parse(JSON.stringify(n))}v(RZ,"deepCopy");function nse(n){return n.split(" ").map(r=>r.charAt(0).toUpperCase()+r.slice(1).toLowerCase()).join("_")}v(nse,"reverseValueToKeySetting");const f_=class f_{constructor(t,i){this.cursor=0,this.active=!1,this.scene=t,this.mode=i}show(t){return this.active=!0,!0}getUi(){return this.scene.ui}getTextColor(t,i=!1){return ga(t,i,this.scene.uiTheme)}getCursor(){return this.cursor}setCursor(t){const i=this.cursor!==t;return i&&(this.cursor=t),i}clear(){this.active=!1}};v(f_,"UiHandler");let pi=f_;var he=(n=>(n[n.UP=0]="UP",n[n.DOWN=1]="DOWN",n[n.LEFT=2]="LEFT",n[n.RIGHT=3]="RIGHT",n[n.SUBMIT=4]="SUBMIT",n[n.ACTION=5]="ACTION",n[n.CANCEL=6]="CANCEL",n[n.MENU=7]="MENU",n[n.STATS=8]="STATS",n[n.CYCLE_SHINY=9]="CYCLE_SHINY",n[n.CYCLE_FORM=10]="CYCLE_FORM",n[n.CYCLE_GENDER=11]="CYCLE_GENDER",n[n.CYCLE_ABILITY=12]="CYCLE_ABILITY",n[n.CYCLE_NATURE=13]="CYCLE_NATURE",n[n.V=14]="V",n[n.SPEED_UP=15]="SPEED_UP",n[n.SLOW_DOWN=16]="SLOW_DOWN",n))(he||{});const m_=class m_ extends pi{constructor(t,i){super(t,i),this.tutorialActive=!1}processTutorialInput(t){if((t===he.ACTION||t===he.CANCEL)&&this.onActionInput){this.getUi().playSelect();const i=this.onActionInput;return this.onActionInput=null,i(),this.awaitingActionInput=!1,!0}return!1}};v(m_,"AwaitableUiHandler");let vh=m_;const R_=class R_ extends vh{constructor(t,i){super(t,i),this.pendingPrompt=!1}showText(t,i,r,l,E,o){this.showTextInternal(t,i,r,l,E,o)}showDialogue(t,i,r,l,E,o,O){this.showTextInternal(t,r,l,E,o,O)}showTextInternal(t,i,r,l,E,o){i==null&&(i=20);const O=new Map,s=new Map,u=new Map,T=/@(c|d|s)\{(.*?)\}/;let A;for(;A=T.exec(t);){switch(A[1]){case"c":O.set(A.index,A[2]);break;case"d":s.set(A.index,parseInt(A[2]));break;case"s":u.set(A.index,A[2]);break}t=t.slice(0,A.index)+t.slice(A.index+A[2].length+4)}if(t){const c=t.split(" ");let d=1,h="";for(let f=0;fd?(d=R,h=`${h} +${c[f]}`):h=S}}t=h}if(this.textTimer&&(this.textTimer.remove(),this.textCallbackTimer&&this.textCallbackTimer.callback()),E){const c=r;r=v(()=>{const d=v(()=>this.showPrompt(c,l),"showPrompt");o?this.scene.time.delayedCall(o,d):d()},"callback")}i?(this.clearText(),E&&(this.pendingPrompt=!0),this.textTimer=this.scene.time.addEvent({delay:i,callback:()=>{const c=t.length-this.textTimer.repeatCount,d=O.get(c),h=u.get(c),f=s.get(c);this.message.setText(t.slice(0,c));const S=v(()=>{d&&this.scene.charSprite.setVariant(d),h&&this.scene.playSound(h),r&&!this.textTimer.repeatCount&&(l&&!E?this.textCallbackTimer=this.scene.time.delayedCall(l,()=>{this.textCallbackTimer&&(this.textCallbackTimer.destroy(),this.textCallbackTimer=null),r()}):r())},"advance");f?(this.textTimer.paused=!0,this.scene.tweens.addCounter({duration:ii(f),onComplete:()=>{this.textTimer.paused=!1,S()}})):S()},repeat:t.length})):(this.message.setText(t),E&&(this.pendingPrompt=!0),r&&r())}showPrompt(t,i){const r=this.message.runWordWrap(this.message.text).split(/\n/g),l=r.length,E=r[r.length-1],o=this.scene.add.text(0,0,E,{font:"96px emerald"});o.setScale(this.message.scale);const O=o.displayWidth;o.destroy(),this.prompt&&(this.prompt.setPosition(O+2,(l-1)*18+2),this.prompt.play("prompt")),this.pendingPrompt=!1,this.awaitingActionInput=!0,this.onActionInput=()=>{this.prompt&&(this.prompt.anims.stop(),this.prompt.setVisible(!1)),t&&(i?this.textCallbackTimer=this.scene.time.delayedCall(i,()=>{this.textCallbackTimer&&(this.textCallbackTimer.destroy(),this.textCallbackTimer=null),t()}):t())}}clearText(){this.message.setText(""),this.pendingPrompt=!1}clear(){super.clear()}};v(R_,"MessageUiHandler");let bi=R_;function ise(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}v(ise,"_classCallCheck");function om(n){"@babel/helpers - typeof";return om=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},om(n)}v(om,"_typeof");function sse(n,t){if(om(n)!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var r=i.call(n,t||"default");if(om(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}v(sse,"toPrimitive");function rse(n){var t=sse(n,"string");return om(t)=="symbol"?t:t+""}v(rse,"toPropertyKey");function OZ(n,t){for(var i=0;i0){var O=l.maxAge-0;if(Number.isNaN(O))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(O))}if(l.domain){if(!IZ.test(l.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(l.domain)}if(l.path){if(!IZ.test(l.path))throw new TypeError("option path is invalid");o+="; Path=".concat(l.path)}if(l.expires){if(typeof l.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+="; Expires=".concat(l.expires.toUTCString())}if(l.httpOnly&&(o+="; HttpOnly"),l.secure&&(o+="; Secure"),l.sameSite){var s=typeof l.sameSite=="string"?l.sameSite.toLowerCase():l.sameSite;switch(s){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o},"serializeCookie"),SZ={create:v(function(t,i,r,l){var E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(E.expires=new Date,E.expires.setTime(E.expires.getTime()+r*60*1e3)),l&&(E.domain=l),document.cookie=cse(t,encodeURIComponent(i),E)},"create"),read:v(function(t){for(var i="".concat(t,"="),r=document.cookie.split(";"),l=0;l-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var l=r.substring(1),E=l.split("&"),o=0;o0){var s=E[o].substring(0,O);s===t.lookupQuerystring&&(i=E[o].substring(O+1))}}}return i},"lookup")},xA=null,TZ=v(function(){if(xA!==null)return xA;try{xA=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{xA=!1}return xA},"localStorageAvailable"),Ese={name:"localStorage",lookup:v(function(t){var i;if(t.lookupLocalStorage&&TZ()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(i=r)}return i},"lookup"),cacheUserLanguage:v(function(t,i){i.lookupLocalStorage&&TZ()&&window.localStorage.setItem(i.lookupLocalStorage,t)},"cacheUserLanguage")},WA=null,LZ=v(function(){if(WA!==null)return WA;try{WA=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{WA=!1}return WA},"sessionStorageAvailable"),fse={name:"sessionStorage",lookup:v(function(t){var i;if(t.lookupSessionStorage&&LZ()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(i=r)}return i},"lookup"),cacheUserLanguage:v(function(t,i){i.lookupSessionStorage&&LZ()&&window.sessionStorage.setItem(i.lookupSessionStorage,t)},"cacheUserLanguage")},mse={name:"navigator",lookup:v(function(t){var i=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r0?i:void 0},"lookup")},Rse={name:"htmlTag",lookup:v(function(t){var i,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(i=r.getAttribute("lang")),i},"lookup")},Ose={name:"path",lookup:v(function(t){var i;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;i=r[t.lookupFromPathIndex].replace("/","")}else i=r[0].replace("/","")}return i},"lookup")},Ise={name:"subdomain",lookup:v(function(t){var i=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[i]},"lookup")};function Sse(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:v(function(t){return t},"convertDetectedLanguage")}}v(Sse,"getDefaults");var zQ=function(){function n(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ise(this,n),this.type="languageDetector",this.detectors={},this.init(t,i)}return v(n,"Browser"),ose(n,[{key:"init",value:v(function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=i||{languageUtils:{}},this.options=hse(r,this.options||{},Sse()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(E){return E.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=l,this.addDetector(dse),this.addDetector(Ase),this.addDetector(Ese),this.addDetector(fse),this.addDetector(mse),this.addDetector(Rse),this.addDetector(Ose),this.addDetector(Ise)},"init")},{key:"addDetector",value:v(function(i){return this.detectors[i.name]=i,this},"addDetector")},{key:"detect",value:v(function(i){var r=this;i||(i=this.options.order);var l=[];return i.forEach(function(E){if(r.detectors[E]){var o=r.detectors[E].lookup(r.options);o&&typeof o=="string"&&(o=[o]),o&&(l=l.concat(o))}}),l=l.map(function(E){return r.options.convertDetectedLanguage(E)}),this.services.languageUtils.getBestMatchFromCodes?l:l.length>0?l[0]:null},"detect")},{key:"cacheUserLanguage",value:v(function(i,r){var l=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(i)>-1||r.forEach(function(E){l.detectors[E]&&l.detectors[E].cacheUserLanguage(i,l.options)}))},"cacheUserLanguage")}]),n}();zQ.type="languageDetector";var MB={},WC={};Object.defineProperty(WC,"__esModule",{value:!0});WC.PostPositionMap=void 0;var Tse=[["을","를"],["이","가"],["은","는"],["으로","로"],["과","와"],["이랑","랑"]],hD={};WC.PostPositionMap=hD;for(var M0=0,pZ=Tse;M0=44032&&t<=55203){var i=(t-44032)%28;return i!==0}}v(Lse,"TestHangul");UB.default=Lse;var GB={};Object.defineProperty(GB,"__esModule",{value:!0});function pse(n){switch(n[n.length-1]){case"1":case"3":case"6":case"7":case"8":return!0;case"2":case"4":case"5":case"9":return!1;case"0":break;default:return}return Nse(n)}v(pse,"TestNumber");GB.default=pse;function Nse(n){for(var t=n.length-1,i=!0,r=0;t>0;t--){var l=n[t];if(l===".")return!0;if(i)if(l==="0")r++;else{if(l===",")continue;i=!1}}return gse(r)}v(Nse,"TestNumberEndsWithZero");function gse(n){var t=[12,20,24,32,44];return!(t.indexOf(n)!==-1||n>=52)}v(gse,"TestLargeNumberPostfix");var yB={};Object.defineProperty(yB,"__esModule",{value:!0});var Cse=[12387,12435,12483,12531,110877,110878,65437],vse=[[12353,12438],[12448,12538],[110592,110876],[12784,12799],[65382,65436],[12441,12447]];function Pse(n){var t=n.charCodeAt(n.length-1);if(t===65438||t===65439)return null;if(Cse.indexOf(t)!==-1)return!0;for(var i=0,r=vse;i=l[0]&&t<=l[1])return!1}}v(Pse,"TestKana");yB.default=Pse;var HB={};Object.defineProperty(HB,"__esModule",{value:!0});function Dse(n){for(var t=[],i=n.length-1;i>0;i--){var r=n[i];if(r===")")t.push(i);else if(r==="(")t.pop();else if(t.length===0)return n.substring(0,i+1)}return n.substr(0,t[t.length-1])}v(Dse,"ParenthesisModifier");HB.default=Dse;(function(n){var t=bt&&bt.__spreadArrays||function(){for(var T=0,A=0,c=arguments.length;A