"),o.push(""),o.push("");var l=[o.join(`
`)],f=this;try{var u=new window.Blob(l,{type:"image/svg+xml;charset=utf-8"})}catch{f.state=c.FILE_ERRORED,f.onProcessComplete();return}this.data=new Image,this.data.crossOrigin=this.crossOrigin,this.data.onload=function(){h.revokeObjectURL(f.data),f.onProcessComplete()},this.data.onerror=function(){h.revokeObjectURL(f.data),f.onProcessError()},h.createObjectURL(this.data,u,"image/svg+xml")},addToCache:function(){this.cache.addImage(this.key,this.data)}});r.register("htmlTexture",function(a,i,o,l,f){if(Array.isArray(a))for(var u=0;u{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(23906),h=t(41299),r=t(74099),n=t(95540),e=t(41212),s=t(98356),a=new d({Extends:h,initialize:function i(o,l,f,u,v){var m="png",x;if(e(l)){var g=l;l=n(g,"key"),f=n(g,"url"),x=n(g,"normalMap"),u=n(g,"xhrSettings"),m=n(g,"extension",m),v=n(g,"frameConfig")}Array.isArray(f)&&(x=f[1],f=f[0]);var y={type:"image",cache:o.textureManager,extension:m,responseType:"blob",key:l,url:f,xhrSettings:u,config:v};if(h.call(this,o,y),x){var T=new i(o,this.key,x,u,v);T.type="normalMap",this.setLink(T),o.addFile(T)}this.useImageElementLoad=o.imageLoadType==="HTMLImageElement"||this.base64,this.useImageElementLoad&&(this.load=this.loadImage,this.onProcess=this.onProcessImage)},onProcess:function(){this.state=c.FILE_PROCESSING,this.data=new Image,this.data.crossOrigin=this.crossOrigin;var i=this;this.data.onload=function(){h.revokeObjectURL(i.data),i.onProcessComplete()},this.data.onerror=function(){h.revokeObjectURL(i.data),i.onProcessError()},h.createObjectURL(this.data,this.xhrLoader.response,"image/png")},onProcessImage:function(){var i=this.state;this.state=c.FILE_PROCESSING,i===c.FILE_LOADED?this.onProcessComplete():this.onProcessError()},loadImage:function(){this.state=c.FILE_LOADING,this.src=s(this,this.loader.baseURL),this.data=new Image,this.data.crossOrigin=this.crossOrigin;var i=this;this.data.onload=function(){i.state=c.FILE_LOADED,i.loader.nextFile(i,!0)},this.data.onerror=function(){i.loader.nextFile(i,!1)},this.data.src=this.src},addToCache:function(){var i=this.linkFile;i?i.state>=c.FILE_COMPLETE&&(i.type==="spritesheet"?i.addToCache():this.type==="normalMap"?this.cache.addImage(this.key,i.data,this.data):this.cache.addImage(this.key,this.data,i.data)):this.cache.addImage(this.key,this.data)}});r.register("image",function(i,o,l){if(Array.isArray(i))for(var f=0;f{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(23906),h=t(41299),r=t(74099),n=t(95540),e=t(35154),s=t(41212),a=new d({Extends:h,initialize:function(o,l,f,u,v){var m="json";if(s(l)){var x=l;l=n(x,"key"),f=n(x,"url"),u=n(x,"xhrSettings"),m=n(x,"extension",m),v=n(x,"dataKey",v)}var g={type:"json",cache:o.cacheManager.json,extension:m,responseType:"text",key:l,url:f,xhrSettings:u,config:v};h.call(this,o,g),s(f)&&(v?this.data=e(f,v):this.data=f,this.state=c.FILE_POPULATED)},onProcess:function(){if(this.state!==c.FILE_POPULATED){this.state=c.FILE_PROCESSING;try{var i=JSON.parse(this.xhrLoader.responseText)}catch(l){throw this.onProcessError(),l}var o=this.config;typeof o=="string"?this.data=e(i,o,i):this.data=i}this.onProcessComplete()}});r.register("json",function(i,o,l,f){if(Array.isArray(i))for(var u=0;u{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(74099),h=t(95540),r=t(19550),n=t(41212),e=t(518),s=t(26430),a=new d({Extends:s,initialize:function(o,l,f,u,v,m,x){if(n(l)){var g=l;l=h(g,"key"),h(g,"url",!1)?f=h(g,"url"):f=h(g,"atlasURL"),m=h(g,"xhrSettings"),u=h(g,"path"),v=h(g,"baseURL"),x=h(g,"textureXhrSettings")}var y=new e(o,l,f,m);s.call(this,o,"multiatlas",l,[y]),this.config.path=u,this.config.baseURL=v,this.config.textureXhrSettings=x},onFileComplete:function(i){var o=this.files.indexOf(i);if(o!==-1&&(this.pending--,i.type==="json"&&i.data.hasOwnProperty("textures"))){var l=i.data.textures,f=this.config,u=this.loader,v=u.baseURL,m=u.path,x=u.prefix,g=h(f,"baseURL",this.baseURL),y=h(f,"path",this.path),T=h(f,"prefix",this.prefix),C=h(f,"textureXhrSettings");u.setBaseURL(g),u.setPath(y),u.setPrefix(T);for(var E=0;E{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(74099),h=t(95540),r=t(41212),n=t(26430),e=t(34328),s=new d({Extends:n,initialize:function(i,o,l,f){var u="js",v=[];if(r(o)){var m=o;o=h(m,"key"),l=h(m,"url"),f=h(m,"xhrSettings"),u=h(m,"extension",u)}Array.isArray(l)||(l=[l]);for(var x=0;x{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(74099),h=t(95540),r=t(41212),n=t(26430),e=t(85048),s=t(61485),a=t(78776),i=new d({Extends:n,initialize:function(l,f,u,v,m,x){var g,y,T=l.cacheManager.obj;if(r(f)){var C=f;f=h(C,"key"),g=new a(l,{key:f,type:"obj",cache:T,url:h(C,"url"),extension:h(C,"extension","obj"),xhrSettings:h(C,"xhrSettings"),config:{flipUV:h(C,"flipUV",m)}}),v=h(C,"matURL"),v&&(y=new a(l,{key:f,type:"mat",cache:T,url:v,extension:h(C,"matExtension","mat"),xhrSettings:h(C,"xhrSettings")}))}else g=new a(l,{key:f,url:u,type:"obj",cache:T,extension:"obj",xhrSettings:x,config:{flipUV:m}}),v&&(y=new a(l,{key:f,url:v,type:"mat",cache:T,extension:"mat",xhrSettings:x}));n.call(this,l,"obj",f,[g,y])},addToCache:function(){if(this.isReadyToProcess()){var o=this.files[0],l=this.files[1],f=e(o.data,o.config.flipUV);l&&(f.materials=s(l.data)),o.cache.add(o.key,f),this.complete=!0}}});c.register("obj",function(o,l,f,u,v){var m;if(Array.isArray(o))for(var x=0;x{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(23906),h=t(74099),r=t(518),n=new d({Extends:r,initialize:function(s,a,i,o,l){r.call(this,s,a,i,o,l),this.type="packfile"},onProcess:function(){if(this.state!==c.FILE_POPULATED&&(this.state=c.FILE_PROCESSING,this.data=JSON.parse(this.xhrLoader.responseText)),this.data.hasOwnProperty("files")&&this.config){var e={};e[this.config]=this.data,this.data=e}this.loader.addPack(this.data,this.config),this.onProcessComplete()}});h.register("pack",function(e,s,a,i){if(Array.isArray(e))for(var o=0;o{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(23906),h=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:h,initialize:function(i,o,l,f,u,v){var m="js";if(e(o)){var x=o;o=n(x,"key"),l=n(x,"url"),v=n(x,"xhrSettings"),m=n(x,"extension",m),f=n(x,"start"),u=n(x,"mapping")}var g={type:"plugin",cache:!1,extension:m,responseType:"text",key:o,url:l,xhrSettings:v,config:{start:f,mapping:u}};h.call(this,i,g),typeof l=="function"&&(this.data=l,this.state=c.FILE_POPULATED)},onProcess:function(){var a=this.loader.systems.plugins,i=this.config,o=n(i,"start",!1),l=n(i,"mapping",null);if(this.state===c.FILE_POPULATED)a.install(this.key,this.data,o,l);else{this.state=c.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 f=a.install(this.key,window[this.key],o,l);(o||l)&&(this.loader.systems[l]=f,this.loader.scene[l]=f)}this.onProcessComplete()}});r.register("plugin",function(a,i,o,l,f){if(Array.isArray(a))for(var u=0;u{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(23906),h=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:h,initialize:function(i,o,l,f,u){var v="svg";if(e(o)){var m=o;o=n(m,"key"),l=n(m,"url"),f=n(m,"svgConfig",{}),u=n(m,"xhrSettings"),v=n(m,"extension",v)}var x={type:"svg",cache:i.textureManager,extension:v,responseType:"text",key:o,url:l,xhrSettings:u,config:{width:n(f,"width"),height:n(f,"height"),scale:n(f,"scale")}};h.call(this,i,x)},onProcess:function(){this.state=c.FILE_PROCESSING;var a=this.xhrLoader.responseText,i=[a],o=this.config.width,l=this.config.height,f=this.config.scale;t:if(o&&l||f){var u=null,v=new DOMParser;u=v.parseFromString(a,"text/xml");var m=u.getElementsByTagName("svg")[0],x=m.hasAttribute("viewBox"),g=parseFloat(m.getAttribute("width")),y=parseFloat(m.getAttribute("height"));if(!x&&g&&y)m.setAttribute("viewBox","0 0 "+g+" "+y);else if(x&&!g&&!y){var T=m.getAttribute("viewBox").split(/\s+|,/);g=T[2],y=T[3]}if(f)if(g&&y)o=g*f,l=y*f;else break t;m.setAttribute("width",o.toString()+"px"),m.setAttribute("height",l.toString()+"px"),i=[new XMLSerializer().serializeToString(m)]}try{var C=new window.Blob(i,{type:"image/svg+xml;charset=utf-8"})}catch{this.onProcessError();return}this.data=new Image,this.data.crossOrigin=this.crossOrigin;var E=this,M=!1;this.data.onload=function(){M||h.revokeObjectURL(E.data),E.onProcessComplete()},this.data.onerror=function(){M?E.onProcessError():(M=!0,h.revokeObjectURL(E.data),E.data.src="data:image/svg+xml,"+encodeURIComponent(i.join("")))},h.createObjectURL(this.data,C,"image/svg+xml")},addToCache:function(){this.cache.addImage(this.key,this.data)}});r.register("svg",function(a,i,o,l){if(Array.isArray(a))for(var f=0;f{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(23906),h=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:h,initialize:function(i,o,l,f){var u="js";if(e(o)){var v=o;o=n(v,"key"),l=n(v,"url"),f=n(v,"xhrSettings"),u=n(v,"extension",u)}var m={type:"text",extension:u,responseType:"text",key:o,url:l,xhrSettings:f};h.call(this,i,m)},onProcess:function(){this.state=c.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var a=this.data.concat(`(function(){
return new `+this.key+`();
}).call(this);`),i=eval;this.loader.sceneManager.add(this.key,i(a)),this.complete=!0}});r.register("sceneFile",function(a,i,o){if(Array.isArray(a))for(var l=0;l{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(23906),h=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:h,initialize:function(i,o,l,f,u,v){var m="js";if(e(o)){var x=o;o=n(x,"key"),l=n(x,"url"),v=n(x,"xhrSettings"),m=n(x,"extension",m),f=n(x,"systemKey"),u=n(x,"sceneKey")}var g={type:"scenePlugin",cache:!1,extension:m,responseType:"text",key:o,url:l,xhrSettings:v,config:{systemKey:f,sceneKey:u}};h.call(this,i,g),typeof l=="function"&&(this.data=l,this.state=c.FILE_POPULATED)},onProcess:function(){var a=this.loader.systems.plugins,i=this.config,o=this.key,l=n(i,"systemKey",o),f=n(i,"sceneKey",o);this.state===c.FILE_POPULATED?a.installScenePlugin(l,this.data,f,this.loader.scene,!0):(this.state=c.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),a.installScenePlugin(l,window[this.key],f,this.loader.scene,!0)),this.onProcessComplete()}});r.register("scenePlugin",function(a,i,o,l,f){if(Array.isArray(a))for(var u=0;u{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(23906),h=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:h,initialize:function(i,o,l,f,u){var v="js";if(e(o)){var m=o;o=n(m,"key"),l=n(m,"url"),f=n(m,"type","script"),u=n(m,"xhrSettings"),v=n(m,"extension",v)}else f===void 0&&(f="script");var x={type:f,cache:!1,extension:v,responseType:"text",key:o,url:l,xhrSettings:u};h.call(this,i,x)},onProcess:function(){this.state=c.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()}});r.register("script",function(a,i,o,l){if(Array.isArray(a))for(var f=0;f{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(23906),h=t(74099),r=t(19550),n=new d({Extends:r,initialize:function(s,a,i,o,l){r.call(this,s,a,i,l,o),this.type="spritesheet"},addToCache:function(){var e=this.linkFile;e?e.state>=c.FILE_COMPLETE&&(this.type==="normalMap"?this.cache.addSpriteSheet(this.key,e.data,this.config,this.data):this.cache.addSpriteSheet(this.key,this.data,this.config,e.data)):this.cache.addSpriteSheet(this.key,this.data,this.config)}});h.register("spritesheet",function(e,s,a,i){if(Array.isArray(e))for(var o=0;o{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(23906),h=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:h,initialize:function(i,o,l,f){var u="text",v="txt",m=i.cacheManager.text;if(e(o)){var x=o;o=n(x,"key"),l=n(x,"url"),f=n(x,"xhrSettings"),v=n(x,"extension",v),u=n(x,"type",u),m=n(x,"cache",m)}var g={type:u,cache:m,extension:v,responseType:"text",key:o,url:l,xhrSettings:f};h.call(this,i,g)},onProcess:function(){this.state=c.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()}});r.register("text",function(a,i,o){if(Array.isArray(a))for(var l=0;l{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(23906),h=t(41299),r=t(74099),n=t(95540),e=t(41212),s=t(80341),a=new d({Extends:h,initialize:function(o,l,f,u){var v="csv";if(e(l)){var m=l;l=n(m,"key"),f=n(m,"url"),u=n(m,"xhrSettings"),v=n(m,"extension",v)}var x={type:"tilemapCSV",cache:o.cacheManager.tilemap,extension:v,responseType:"text",key:l,url:f,xhrSettings:u};h.call(this,o,x),this.tilemapFormat=s.CSV},onProcess:function(){this.state=c.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var i={format:this.tilemapFormat,data:this.data};this.cache.add(this.key,i)}});r.register("tilemapCSV",function(i,o,l){if(Array.isArray(i))for(var f=0;f{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(74099),h=t(518),r=t(80341),n=new d({Extends:h,initialize:function(s,a,i,o){h.call(this,s,a,i,o),this.type="tilemapJSON",this.cache=s.cacheManager.tilemap},addToCache:function(){var e={format:r.WELTMEISTER,data:this.data};this.cache.add(this.key,e)}});c.register("tilemapImpact",function(e,s,a){if(Array.isArray(e))for(var i=0;i{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(74099),h=t(518),r=t(80341),n=new d({Extends:h,initialize:function(s,a,i,o){h.call(this,s,a,i,o),this.type="tilemapJSON",this.cache=s.cacheManager.tilemap},addToCache:function(){var e={format:r.TILED_JSON,data:this.data};this.cache.add(this.key,e)}});c.register("tilemapTiledJSON",function(e,s,a){if(Array.isArray(e))for(var i=0;i{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(74099),h=t(95540),r=t(19550),n=t(41212),e=t(26430),s=t(78776),a=new d({Extends:e,initialize:function(o,l,f,u,v,m){var x,g;if(n(l)){var y=l;l=h(y,"key"),x=new r(o,{key:l,url:h(y,"textureURL"),extension:h(y,"textureExtension","png"),normalMap:h(y,"normalMap"),xhrSettings:h(y,"textureXhrSettings")}),g=new s(o,{key:l,url:h(y,"atlasURL"),extension:h(y,"atlasExtension","txt"),xhrSettings:h(y,"atlasXhrSettings")})}else x=new r(o,l,f,v),g=new s(o,l,u,m);x.linkFile?e.call(this,o,"unityatlas",l,[x,g,x.linkFile]):e.call(this,o,"unityatlas",l,[x,g])},addToCache:function(){if(this.isReadyToProcess()){var i=this.files[0],o=this.files[1],l=this.files[2]?this.files[2].data:null;this.loader.textureManager.addUnityAtlas(i.key,i.data,o.data,l),this.complete=!0}}});c.register("unityAtlas",function(i,o,l,f,u){var v;if(Array.isArray(i))for(var m=0;m{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(23906),h=t(41299),r=t(74099),n=t(98356),e=t(95540),s=t(41212),a=new d({Extends:h,initialize:function(o,l,f,u){if(u===void 0&&(u=!1),s(l)){var v=l;l=e(v,"key"),f=e(v,"url",[]),u=e(v,"noAudio",!1)}var m=o.systems.game.device.video.getVideoURL(f);m||console.warn("VideoFile: No supported format for "+l);var x={type:"video",cache:o.cacheManager.video,extension:m.type,key:l,url:m.url,config:{noAudio:u}};h.call(this,o,x)},onProcess:function(){this.data={url:this.src,noAudio:this.config.noAudio,crossOrigin:this.crossOrigin},this.onProcessComplete()},load:function(){this.src=n(this,this.loader.baseURL),this.state=c.FILE_LOADED,this.loader.nextFile(this,!0)}});r.register("video",function(i,o,l){if(Array.isArray(i))for(var f=0;f{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(23906),h=t(41299),r=t(74099),n=t(95540),e=t(41212),s=t(56836),a=new d({Extends:h,initialize:function(o,l,f,u){var v="xml";if(e(l)){var m=l;l=n(m,"key"),f=n(m,"url"),u=n(m,"xhrSettings"),v=n(m,"extension",v)}var x={type:"xml",cache:o.cacheManager.xml,extension:v,responseType:"text",key:l,url:f,xhrSettings:u};h.call(this,o,x)},onProcess:function(){this.state=c.FILE_PROCESSING,this.data=s(this.xhrLoader.responseText),this.data?this.onProcessComplete():this.onProcessError()}});r.register("xml",function(i,o,l){if(Array.isArray(i))for(var f=0;f{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports={AnimationJSONFile:t(14135),AsepriteFile:t(76272),AtlasJSONFile:t(38734),AtlasXMLFile:t(74599),AudioFile:t(21097),AudioSpriteFile:t(89524),BinaryFile:t(85722),BitmapFontFile:t(97025),CompressedTextureFile:t(69559),CSSFile:t(16024),FontFile:t(87674),GLSLFile:t(47931),HTML5AudioFile:t(89749),HTMLFile:t(88470),HTMLTextureFile:t(14643),ImageFile:t(19550),JSONFile:t(518),MultiAtlasFile:t(59327),MultiScriptFile:t(99297),OBJFile:t(41846),PackFile:t(58610),PluginFile:t(48988),SceneFile:t(88423),ScenePluginFile:t(56812),ScriptFile:t(34328),SpriteSheetFile:t(85035),SVGFile:t(67397),TextFile:t(78776),TilemapCSVFile:t(49477),TilemapImpactFile:t(40807),TilemapJSONFile:t(56775),UnityAtlasFile:t(25771),VideoFile:t(33720),XMLFile:t(57318)}},57777:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(23906),c=t(79291),h={Events:t(54899),FileTypes:t(64589),File:t(41299),FileTypesManager:t(74099),GetURL:t(98356),LoaderPlugin:t(74261),MergeXHRSettings:t(3374),MultiFile:t(26430),XHRLoader:t(84376),XHRSettings:t(92638)};h=c(!1,h,d),p.exports=h},53307:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){for(var d=0,c=0;c{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(6411),c=function(h,r){return d(h)/d(r)/d(h-r)};p.exports=c},30976:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d){return Math.floor(Math.random()*(d-t+1)+t)};p.exports=S},87842:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c,h,r){var n=(h-d)*.5,e=(r-c)*.5,s=t*t,a=t*s;return(2*c-2*h+n+e)*a+(-3*c+3*h-2*n-e)*s+n*t+c};p.exports=S},26302:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c){d===void 0&&(d=0),c===void 0&&(c=10);var h=Math.pow(c,-d);return Math.ceil(t*h)/h};p.exports=S},45319:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c){return Math.max(d,Math.min(c,t))};p.exports=S},39506:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(36383),c=function(h){return h*d.DEG_TO_RAD};p.exports=c},61241:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d){return Math.abs(t-d)};p.exports=S},38857:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(45319),c=t(83419),h=t(37867),r=t(29747),n=new h,e=new c({initialize:function s(a,i,o,l){a===void 0&&(a=0),i===void 0&&(i=0),o===void 0&&(o=0),l===void 0&&(l=s.DefaultOrder),this._x=a,this._y=i,this._z=o,this._order=l,this.onChangeCallback=r},x:{get:function(){return this._x},set:function(s){this._x=s,this.onChangeCallback(this)}},y:{get:function(){return this._y},set:function(s){this._y=s,this.onChangeCallback(this)}},z:{get:function(){return this._z},set:function(s){this._z=s,this.onChangeCallback(this)}},order:{get:function(){return this._order},set:function(s){this._order=s,this.onChangeCallback(this)}},set:function(s,a,i,o){return o===void 0&&(o=this._order),this._x=s,this._y=a,this._z=i,this._order=o,this.onChangeCallback(this),this},copy:function(s){return this.set(s.x,s.y,s.z,s.order)},setFromQuaternion:function(s,a,i){return a===void 0&&(a=this._order),i===void 0&&(i=!1),n.fromQuat(s),this.setFromRotationMatrix(n,a,i)},setFromRotationMatrix:function(s,a,i){a===void 0&&(a=this._order),i===void 0&&(i=!1);var o=s.val,l=o[0],f=o[4],u=o[8],v=o[1],m=o[5],x=o[9],g=o[2],y=o[6],T=o[10],C=0,E=0,M=0,P=.99999;switch(a){case"XYZ":{E=Math.asin(d(u,-1,1)),Math.abs(u){/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){if(t===0)return 1;for(var d=t;--t;)d*=t;return d};p.exports=S},99472:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d){return Math.random()*(d-t)+t};p.exports=S},77623:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c){d===void 0&&(d=0),c===void 0&&(c=10);var h=Math.pow(c,-d);return Math.floor(t*h)/h};p.exports=S},62945:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(45319),c=function(h,r,n){return h=d(h,0,1),(n-r)*h+r};p.exports=c},38265:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d){return t/d/1e3};p.exports=S},78702:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return t==parseFloat(t)?!(t%2):void 0};p.exports=S},94883:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return t===parseFloat(t)?!(t%2):void 0};p.exports=S},28915:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c){return(d-t)*c+t};p.exports=S},94908:p=>{/**
* @author Greg McLean
* @copyright 2021 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c){return c===void 0&&(c=0),t.clone().lerp(d,c)};p.exports=S},94434:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=new d({initialize:function(r){this.val=new Float32Array(9),r?this.copy(r):this.identity()},clone:function(){return new c(this)},set:function(h){return this.copy(h)},copy:function(h){var r=this.val,n=h.val;return r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=n[3],r[4]=n[4],r[5]=n[5],r[6]=n[6],r[7]=n[7],r[8]=n[8],this},fromMat4:function(h){var r=h.val,n=this.val;return n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[4],n[4]=r[5],n[5]=r[6],n[6]=r[8],n[7]=r[9],n[8]=r[10],this},fromArray:function(h){var r=this.val;return r[0]=h[0],r[1]=h[1],r[2]=h[2],r[3]=h[3],r[4]=h[4],r[5]=h[5],r[6]=h[6],r[7]=h[7],r[8]=h[8],this},identity:function(){var h=this.val;return h[0]=1,h[1]=0,h[2]=0,h[3]=0,h[4]=1,h[5]=0,h[6]=0,h[7]=0,h[8]=1,this},transpose:function(){var h=this.val,r=h[1],n=h[2],e=h[5];return h[1]=h[3],h[2]=h[6],h[3]=r,h[5]=h[7],h[6]=n,h[7]=e,this},invert:function(){var h=this.val,r=h[0],n=h[1],e=h[2],s=h[3],a=h[4],i=h[5],o=h[6],l=h[7],f=h[8],u=f*a-i*l,v=-f*s+i*o,m=l*s-a*o,x=r*u+n*v+e*m;return x?(x=1/x,h[0]=u*x,h[1]=(-f*n+e*l)*x,h[2]=(i*n-e*a)*x,h[3]=v*x,h[4]=(f*r-e*o)*x,h[5]=(-i*r+e*s)*x,h[6]=m*x,h[7]=(-l*r+n*o)*x,h[8]=(a*r-n*s)*x,this):null},adjoint:function(){var h=this.val,r=h[0],n=h[1],e=h[2],s=h[3],a=h[4],i=h[5],o=h[6],l=h[7],f=h[8];return h[0]=a*f-i*l,h[1]=e*l-n*f,h[2]=n*i-e*a,h[3]=i*o-s*f,h[4]=r*f-e*o,h[5]=e*s-r*i,h[6]=s*l-a*o,h[7]=n*o-r*l,h[8]=r*a-n*s,this},determinant:function(){var h=this.val,r=h[0],n=h[1],e=h[2],s=h[3],a=h[4],i=h[5],o=h[6],l=h[7],f=h[8];return r*(f*a-i*l)+n*(-f*s+i*o)+e*(l*s-a*o)},multiply:function(h){var r=this.val,n=r[0],e=r[1],s=r[2],a=r[3],i=r[4],o=r[5],l=r[6],f=r[7],u=r[8],v=h.val,m=v[0],x=v[1],g=v[2],y=v[3],T=v[4],C=v[5],E=v[6],M=v[7],P=v[8];return r[0]=m*n+x*a+g*l,r[1]=m*e+x*i+g*f,r[2]=m*s+x*o+g*u,r[3]=y*n+T*a+C*l,r[4]=y*e+T*i+C*f,r[5]=y*s+T*o+C*u,r[6]=E*n+M*a+P*l,r[7]=E*e+M*i+P*f,r[8]=E*s+M*o+P*u,this},translate:function(h){var r=this.val,n=h.x,e=h.y;return r[6]=n*r[0]+e*r[3]+r[6],r[7]=n*r[1]+e*r[4]+r[7],r[8]=n*r[2]+e*r[5]+r[8],this},rotate:function(h){var r=this.val,n=r[0],e=r[1],s=r[2],a=r[3],i=r[4],o=r[5],l=Math.sin(h),f=Math.cos(h);return r[0]=f*n+l*a,r[1]=f*e+l*i,r[2]=f*s+l*o,r[3]=f*a-l*n,r[4]=f*i-l*e,r[5]=f*o-l*s,this},scale:function(h){var r=this.val,n=h.x,e=h.y;return r[0]=n*r[0],r[1]=n*r[1],r[2]=n*r[2],r[3]=e*r[3],r[4]=e*r[4],r[5]=e*r[5],this},fromQuat:function(h){var r=h.x,n=h.y,e=h.z,s=h.w,a=r+r,i=n+n,o=e+e,l=r*a,f=r*i,u=r*o,v=n*i,m=n*o,x=e*o,g=s*a,y=s*i,T=s*o,C=this.val;return C[0]=1-(v+x),C[3]=f+T,C[6]=u-y,C[1]=f-T,C[4]=1-(l+x),C[7]=m+g,C[2]=u+y,C[5]=m-g,C[8]=1-(l+v),this},normalFromMat4:function(h){var r=h.val,n=this.val,e=r[0],s=r[1],a=r[2],i=r[3],o=r[4],l=r[5],f=r[6],u=r[7],v=r[8],m=r[9],x=r[10],g=r[11],y=r[12],T=r[13],C=r[14],E=r[15],M=e*l-s*o,P=e*f-a*o,A=e*u-i*o,F=s*f-a*l,L=s*u-i*l,B=a*u-i*f,N=v*T-m*y,U=v*C-x*y,z=v*E-g*y,I=m*C-x*T,G=m*E-g*T,O=x*E-g*C,b=M*O-P*G+A*I+F*z-L*U+B*N;return b?(b=1/b,n[0]=(l*O-f*G+u*I)*b,n[1]=(f*z-o*O-u*U)*b,n[2]=(o*G-l*z+u*N)*b,n[3]=(a*G-s*O-i*I)*b,n[4]=(e*O-a*z+i*U)*b,n[5]=(s*z-e*G-i*N)*b,n[6]=(T*B-C*L+E*F)*b,n[7]=(C*A-y*B-E*P)*b,n[8]=(y*L-T*A+E*M)*b,this):null}});p.exports=c},37867:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(25836),h=1e-6,r=new d({initialize:function(l){this.val=new Float32Array(16),l?this.copy(l):this.identity()},clone:function(){return new r(this)},set:function(o){return this.copy(o)},setValues:function(o,l,f,u,v,m,x,g,y,T,C,E,M,P,A,F){var L=this.val;return L[0]=o,L[1]=l,L[2]=f,L[3]=u,L[4]=v,L[5]=m,L[6]=x,L[7]=g,L[8]=y,L[9]=T,L[10]=C,L[11]=E,L[12]=M,L[13]=P,L[14]=A,L[15]=F,this},copy:function(o){var l=o.val;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])},fromArray:function(o){return this.setValues(o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7],o[8],o[9],o[10],o[11],o[12],o[13],o[14],o[15])},zero:function(){return this.setValues(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)},transform:function(o,l,f){var u=n.fromQuat(f),v=u.val,m=l.x,x=l.y,g=l.z;return this.setValues(v[0]*m,v[1]*m,v[2]*m,0,v[4]*x,v[5]*x,v[6]*x,0,v[8]*g,v[9]*g,v[10]*g,0,o.x,o.y,o.z,1)},xyz:function(o,l,f){this.identity();var u=this.val;return u[12]=o,u[13]=l,u[14]=f,this},scaling:function(o,l,f){this.zero();var u=this.val;return u[0]=o,u[5]=l,u[10]=f,u[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 o=this.val,l=o[1],f=o[2],u=o[3],v=o[6],m=o[7],x=o[11];return o[1]=o[4],o[2]=o[8],o[3]=o[12],o[4]=l,o[6]=o[9],o[7]=o[13],o[8]=f,o[9]=v,o[11]=o[14],o[12]=u,o[13]=m,o[14]=x,this},getInverse:function(o){return this.copy(o),this.invert()},invert:function(){var o=this.val,l=o[0],f=o[1],u=o[2],v=o[3],m=o[4],x=o[5],g=o[6],y=o[7],T=o[8],C=o[9],E=o[10],M=o[11],P=o[12],A=o[13],F=o[14],L=o[15],B=l*x-f*m,N=l*g-u*m,U=l*y-v*m,z=f*g-u*x,I=f*y-v*x,G=u*y-v*g,O=T*A-C*P,b=T*F-E*P,D=T*L-M*P,X=C*F-E*A,V=C*L-M*A,W=E*L-M*F,K=B*W-N*V+U*X+z*D-I*b+G*O;return K?(K=1/K,this.setValues((x*W-g*V+y*X)*K,(u*V-f*W-v*X)*K,(A*G-F*I+L*z)*K,(E*I-C*G-M*z)*K,(g*D-m*W-y*b)*K,(l*W-u*D+v*b)*K,(F*U-P*G-L*N)*K,(T*G-E*U+M*N)*K,(m*V-x*D+y*O)*K,(f*D-l*V-v*O)*K,(P*I-A*U+L*B)*K,(C*U-T*I-M*B)*K,(x*b-m*X-g*O)*K,(l*X-f*b+u*O)*K,(A*N-P*z-F*B)*K,(T*z-C*N+E*B)*K)):this},adjoint:function(){var o=this.val,l=o[0],f=o[1],u=o[2],v=o[3],m=o[4],x=o[5],g=o[6],y=o[7],T=o[8],C=o[9],E=o[10],M=o[11],P=o[12],A=o[13],F=o[14],L=o[15];return this.setValues(x*(E*L-M*F)-C*(g*L-y*F)+A*(g*M-y*E),-(f*(E*L-M*F)-C*(u*L-v*F)+A*(u*M-v*E)),f*(g*L-y*F)-x*(u*L-v*F)+A*(u*y-v*g),-(f*(g*M-y*E)-x*(u*M-v*E)+C*(u*y-v*g)),-(m*(E*L-M*F)-T*(g*L-y*F)+P*(g*M-y*E)),l*(E*L-M*F)-T*(u*L-v*F)+P*(u*M-v*E),-(l*(g*L-y*F)-m*(u*L-v*F)+P*(u*y-v*g)),l*(g*M-y*E)-m*(u*M-v*E)+T*(u*y-v*g),m*(C*L-M*A)-T*(x*L-y*A)+P*(x*M-y*C),-(l*(C*L-M*A)-T*(f*L-v*A)+P*(f*M-v*C)),l*(x*L-y*A)-m*(f*L-v*A)+P*(f*y-v*x),-(l*(x*M-y*C)-m*(f*M-v*C)+T*(f*y-v*x)),-(m*(C*F-E*A)-T*(x*F-g*A)+P*(x*E-g*C)),l*(C*F-E*A)-T*(f*F-u*A)+P*(f*E-u*C),-(l*(x*F-g*A)-m*(f*F-u*A)+P*(f*g-u*x)),l*(x*E-g*C)-m*(f*E-u*C)+T*(f*g-u*x))},determinant:function(){var o=this.val,l=o[0],f=o[1],u=o[2],v=o[3],m=o[4],x=o[5],g=o[6],y=o[7],T=o[8],C=o[9],E=o[10],M=o[11],P=o[12],A=o[13],F=o[14],L=o[15],B=l*x-f*m,N=l*g-u*m,U=l*y-v*m,z=f*g-u*x,I=f*y-v*x,G=u*y-v*g,O=T*A-C*P,b=T*F-E*P,D=T*L-M*P,X=C*F-E*A,V=C*L-M*A,W=E*L-M*F;return B*W-N*V+U*X+z*D-I*b+G*O},multiply:function(o){var l=this.val,f=l[0],u=l[1],v=l[2],m=l[3],x=l[4],g=l[5],y=l[6],T=l[7],C=l[8],E=l[9],M=l[10],P=l[11],A=l[12],F=l[13],L=l[14],B=l[15],N=o.val,U=N[0],z=N[1],I=N[2],G=N[3];return l[0]=U*f+z*x+I*C+G*A,l[1]=U*u+z*g+I*E+G*F,l[2]=U*v+z*y+I*M+G*L,l[3]=U*m+z*T+I*P+G*B,U=N[4],z=N[5],I=N[6],G=N[7],l[4]=U*f+z*x+I*C+G*A,l[5]=U*u+z*g+I*E+G*F,l[6]=U*v+z*y+I*M+G*L,l[7]=U*m+z*T+I*P+G*B,U=N[8],z=N[9],I=N[10],G=N[11],l[8]=U*f+z*x+I*C+G*A,l[9]=U*u+z*g+I*E+G*F,l[10]=U*v+z*y+I*M+G*L,l[11]=U*m+z*T+I*P+G*B,U=N[12],z=N[13],I=N[14],G=N[15],l[12]=U*f+z*x+I*C+G*A,l[13]=U*u+z*g+I*E+G*F,l[14]=U*v+z*y+I*M+G*L,l[15]=U*m+z*T+I*P+G*B,this},multiplyLocal:function(o){var l=this.val,f=o.val;return this.setValues(l[0]*f[0]+l[1]*f[4]+l[2]*f[8]+l[3]*f[12],l[0]*f[1]+l[1]*f[5]+l[2]*f[9]+l[3]*f[13],l[0]*f[2]+l[1]*f[6]+l[2]*f[10]+l[3]*f[14],l[0]*f[3]+l[1]*f[7]+l[2]*f[11]+l[3]*f[15],l[4]*f[0]+l[5]*f[4]+l[6]*f[8]+l[7]*f[12],l[4]*f[1]+l[5]*f[5]+l[6]*f[9]+l[7]*f[13],l[4]*f[2]+l[5]*f[6]+l[6]*f[10]+l[7]*f[14],l[4]*f[3]+l[5]*f[7]+l[6]*f[11]+l[7]*f[15],l[8]*f[0]+l[9]*f[4]+l[10]*f[8]+l[11]*f[12],l[8]*f[1]+l[9]*f[5]+l[10]*f[9]+l[11]*f[13],l[8]*f[2]+l[9]*f[6]+l[10]*f[10]+l[11]*f[14],l[8]*f[3]+l[9]*f[7]+l[10]*f[11]+l[11]*f[15],l[12]*f[0]+l[13]*f[4]+l[14]*f[8]+l[15]*f[12],l[12]*f[1]+l[13]*f[5]+l[14]*f[9]+l[15]*f[13],l[12]*f[2]+l[13]*f[6]+l[14]*f[10]+l[15]*f[14],l[12]*f[3]+l[13]*f[7]+l[14]*f[11]+l[15]*f[15])},premultiply:function(o){return this.multiplyMatrices(o,this)},multiplyMatrices:function(o,l){var f=o.val,u=l.val,v=f[0],m=f[4],x=f[8],g=f[12],y=f[1],T=f[5],C=f[9],E=f[13],M=f[2],P=f[6],A=f[10],F=f[14],L=f[3],B=f[7],N=f[11],U=f[15],z=u[0],I=u[4],G=u[8],O=u[12],b=u[1],D=u[5],X=u[9],V=u[13],W=u[2],K=u[6],Z=u[10],Q=u[14],j=u[3],$=u[7],_=u[11],et=u[15];return this.setValues(v*z+m*b+x*W+g*j,y*z+T*b+C*W+E*j,M*z+P*b+A*W+F*j,L*z+B*b+N*W+U*j,v*I+m*D+x*K+g*$,y*I+T*D+C*K+E*$,M*I+P*D+A*K+F*$,L*I+B*D+N*K+U*$,v*G+m*X+x*Z+g*_,y*G+T*X+C*Z+E*_,M*G+P*X+A*Z+F*_,L*G+B*X+N*Z+U*_,v*O+m*V+x*Q+g*et,y*O+T*V+C*Q+E*et,M*O+P*V+A*Q+F*et,L*O+B*V+N*Q+U*et)},translate:function(o){return this.translateXYZ(o.x,o.y,o.z)},translateXYZ:function(o,l,f){var u=this.val;return u[12]=u[0]*o+u[4]*l+u[8]*f+u[12],u[13]=u[1]*o+u[5]*l+u[9]*f+u[13],u[14]=u[2]*o+u[6]*l+u[10]*f+u[14],u[15]=u[3]*o+u[7]*l+u[11]*f+u[15],this},scale:function(o){return this.scaleXYZ(o.x,o.y,o.z)},scaleXYZ:function(o,l,f){var u=this.val;return u[0]=u[0]*o,u[1]=u[1]*o,u[2]=u[2]*o,u[3]=u[3]*o,u[4]=u[4]*l,u[5]=u[5]*l,u[6]=u[6]*l,u[7]=u[7]*l,u[8]=u[8]*f,u[9]=u[9]*f,u[10]=u[10]*f,u[11]=u[11]*f,this},makeRotationAxis:function(o,l){var f=Math.cos(l),u=Math.sin(l),v=1-f,m=o.x,x=o.y,g=o.z,y=v*m,T=v*x;return this.setValues(y*m+f,y*x-u*g,y*g+u*x,0,y*x+u*g,T*x+f,T*g-u*m,0,y*g-u*x,T*g+u*m,v*g*g+f,0,0,0,0,1)},rotate:function(o,l){var f=this.val,u=l.x,v=l.y,m=l.z,x=Math.sqrt(u*u+v*v+m*m);if(Math.abs(x){/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c){return Math.min(t+d,c)};p.exports=S},50040:p=>{/**
* @author Vladislav Forsh
* @copyright 2021 RoboWhale
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){var d=t.length;if(d===0)return 0;t.sort(function(h,r){return h-r});var c=Math.floor(d/2);return d%2===0?(t[c]+t[c-1])/2:t[c]};p.exports=S},37204:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c){return Math.max(t-d,c)};p.exports=S},65201:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c,h){c===void 0&&(c=d+1);var r=(t-d)/(c-d);return r>1?h!==void 0?(r=(h-t)/(h-c),r<0&&(r=0)):r=1:r<0&&(r=0),r};p.exports=S},15746:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(94434),h=t(29747),r=t(25836),n=1e-6,e=new Int8Array([1,2,0]),s=new Float32Array([0,0,0]),a=new r(1,0,0),i=new r(0,1,0),o=new r,l=new c,f=new d({initialize:function(v,m,x,g){this.onChangeCallback=h,this.set(v,m,x,g)},x:{get:function(){return this._x},set:function(u){this._x=u,this.onChangeCallback(this)}},y:{get:function(){return this._y},set:function(u){this._y=u,this.onChangeCallback(this)}},z:{get:function(){return this._z},set:function(u){this._z=u,this.onChangeCallback(this)}},w:{get:function(){return this._w},set:function(u){this._w=u,this.onChangeCallback(this)}},copy:function(u){return this.set(u)},set:function(u,v,m,x,g){return g===void 0&&(g=!0),typeof u=="object"?(this._x=u.x||0,this._y=u.y||0,this._z=u.z||0,this._w=u.w||0):(this._x=u||0,this._y=v||0,this._z=m||0,this._w=x||0),g&&this.onChangeCallback(this),this},add:function(u){return this._x+=u.x,this._y+=u.y,this._z+=u.z,this._w+=u.w,this.onChangeCallback(this),this},subtract:function(u){return this._x-=u.x,this._y-=u.y,this._z-=u.z,this._w-=u.w,this.onChangeCallback(this),this},scale:function(u){return this._x*=u,this._y*=u,this._z*=u,this._w*=u,this.onChangeCallback(this),this},length:function(){var u=this.x,v=this.y,m=this.z,x=this.w;return Math.sqrt(u*u+v*v+m*m+x*x)},lengthSq:function(){var u=this.x,v=this.y,m=this.z,x=this.w;return u*u+v*v+m*m+x*x},normalize:function(){var u=this.x,v=this.y,m=this.z,x=this.w,g=u*u+v*v+m*m+x*x;return g>0&&(g=1/Math.sqrt(g),this._x=u*g,this._y=v*g,this._z=m*g,this._w=x*g),this.onChangeCallback(this),this},dot:function(u){return this.x*u.x+this.y*u.y+this.z*u.z+this.w*u.w},lerp:function(u,v){v===void 0&&(v=0);var m=this.x,x=this.y,g=this.z,y=this.w;return this.set(m+v*(u.x-m),x+v*(u.y-x),g+v*(u.z-g),y+v*(u.w-y))},rotationTo:function(u,v){var m=u.x*v.x+u.y*v.y+u.z*v.z;return m<-.999999?(o.copy(a).cross(u).length().999999?this.set(0,0,0,1):(o.copy(u).cross(v),this._x=o.x,this._y=o.y,this._z=o.z,this._w=1+m,this.normalize())},setAxes:function(u,v,m){var x=l.val;return x[0]=v.x,x[3]=v.y,x[6]=v.z,x[1]=m.x,x[4]=m.y,x[7]=m.z,x[2]=-u.x,x[5]=-u.y,x[8]=-u.z,this.fromMat3(l).normalize()},identity:function(){return this.set(0,0,0,1)},setAxisAngle:function(u,v){v=v*.5;var m=Math.sin(v);return this.set(m*u.x,m*u.y,m*u.z,Math.cos(v))},multiply:function(u){var v=this.x,m=this.y,x=this.z,g=this.w,y=u.x,T=u.y,C=u.z,E=u.w;return this.set(v*E+g*y+m*C-x*T,m*E+g*T+x*y-v*C,x*E+g*C+v*T-m*y,g*E-v*y-m*T-x*C)},slerp:function(u,v){var m=this.x,x=this.y,g=this.z,y=this.w,T=u.x,C=u.y,E=u.z,M=u.w,P=m*T+x*C+g*E+y*M;P<0&&(P=-P,T=-T,C=-C,E=-E,M=-M);var A=1-v,F=v;if(1-P>n){var L=Math.acos(P),B=Math.sin(L);A=Math.sin((1-v)*L)/B,F=Math.sin(v*L)/B}return this.set(A*m+F*T,A*x+F*C,A*g+F*E,A*y+F*M)},invert:function(){var u=this.x,v=this.y,m=this.z,x=this.w,g=u*u+v*v+m*m+x*x,y=g?1/g:0;return this.set(-u*y,-v*y,-m*y,x*y)},conjugate:function(){return this._x=-this.x,this._y=-this.y,this._z=-this.z,this.onChangeCallback(this),this},rotateX:function(u){u*=.5;var v=this.x,m=this.y,x=this.z,g=this.w,y=Math.sin(u),T=Math.cos(u);return this.set(v*T+g*y,m*T+x*y,x*T-m*y,g*T-v*y)},rotateY:function(u){u*=.5;var v=this.x,m=this.y,x=this.z,g=this.w,y=Math.sin(u),T=Math.cos(u);return this.set(v*T-x*y,m*T+g*y,x*T+v*y,g*T-m*y)},rotateZ:function(u){u*=.5;var v=this.x,m=this.y,x=this.z,g=this.w,y=Math.sin(u),T=Math.cos(u);return this.set(v*T+m*y,m*T-v*y,x*T+g*y,g*T-x*y)},calculateW:function(){var u=this.x,v=this.y,m=this.z;return this.w=-Math.sqrt(1-u*u-v*v-m*m),this},setFromEuler:function(u,v){var m=u.x/2,x=u.y/2,g=u.z/2,y=Math.cos(m),T=Math.cos(x),C=Math.cos(g),E=Math.sin(m),M=Math.sin(x),P=Math.sin(g);switch(u.order){case"XYZ":{this.set(E*T*C+y*M*P,y*M*C-E*T*P,y*T*P+E*M*C,y*T*C-E*M*P,v);break}case"YXZ":{this.set(E*T*C+y*M*P,y*M*C-E*T*P,y*T*P-E*M*C,y*T*C+E*M*P,v);break}case"ZXY":{this.set(E*T*C-y*M*P,y*M*C+E*T*P,y*T*P+E*M*C,y*T*C-E*M*P,v);break}case"ZYX":{this.set(E*T*C-y*M*P,y*M*C+E*T*P,y*T*P-E*M*C,y*T*C+E*M*P,v);break}case"YZX":{this.set(E*T*C+y*M*P,y*M*C+E*T*P,y*T*P-E*M*C,y*T*C-E*M*P,v);break}case"XZY":{this.set(E*T*C-y*M*P,y*M*C-E*T*P,y*T*P+E*M*C,y*T*C+E*M*P,v);break}}return this},setFromRotationMatrix:function(u){var v=u.val,m=v[0],x=v[4],g=v[8],y=v[1],T=v[5],C=v[9],E=v[2],M=v[6],P=v[10],A=m+T+P,F;return A>0?(F=.5/Math.sqrt(A+1),this.set((M-C)*F,(g-E)*F,(y-x)*F,.25/F)):m>T&&m>P?(F=2*Math.sqrt(1+m-T-P),this.set(.25*F,(x+y)/F,(g+E)/F,(M-C)/F)):T>P?(F=2*Math.sqrt(1+T-m-P),this.set((x+y)/F,.25*F,(C+M)/F,(g-E)/F)):(F=2*Math.sqrt(1+P-m-T),this.set((g+E)/F,(C+M)/F,.25*F,(y-x)/F)),this},fromMat3:function(u){var v=u.val,m=v[0]+v[4]+v[8],x;if(m>0)x=Math.sqrt(m+1),this.w=.5*x,x=.5/x,this._x=(v[7]-v[5])*x,this._y=(v[2]-v[6])*x,this._z=(v[3]-v[1])*x;else{var g=0;v[4]>v[0]&&(g=1),v[8]>v[g*3+g]&&(g=2);var y=e[g],T=e[y];x=Math.sqrt(v[g*3+g]-v[y*3+y]-v[T*3+T]+1),s[g]=.5*x,x=.5/x,s[y]=(v[y*3+g]+v[g*3+y])*x,s[T]=(v[T*3+g]+v[g*3+T])*x,this._x=s[0],this._y=s[1],this._z=s[2],this._w=(v[T*3+y]-v[y*3+T])*x}return this.onChangeCallback(this),this}});p.exports=f},43396:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(36383),c=function(h){return h*d.RAD_TO_DEG};p.exports=c},74362:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d){d===void 0&&(d=1);var c=Math.random()*2*Math.PI;return t.x=Math.cos(c)*d,t.y=Math.sin(c)*d,t};p.exports=S},60706:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d){d===void 0&&(d=1);var c=Math.random()*2*Math.PI,h=Math.random()*2-1,r=Math.sqrt(1-h*h)*d;return t.x=Math.cos(c)*r,t.y=Math.sin(c)*r,t.z=h*d,t};p.exports=S},67421:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d){return d===void 0&&(d=1),t.x=(Math.random()*2-1)*d,t.y=(Math.random()*2-1)*d,t.z=(Math.random()*2-1)*d,t.w=(Math.random()*2-1)*d,t};p.exports=S},36305:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d){var c=t.x,h=t.y;return t.x=c*Math.cos(d)-h*Math.sin(d),t.y=c*Math.sin(d)+h*Math.cos(d),t};p.exports=S},11520:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c,h){var r=Math.cos(h),n=Math.sin(h),e=t.x-d,s=t.y-c;return t.x=e*r-s*n+d,t.y=e*n+s*r+c,t};p.exports=S},1163:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c,h,r){var n=h+Math.atan2(t.y-c,t.x-d);return t.x=d+r*Math.cos(n),t.y=c+r*Math.sin(n),t};p.exports=S},70336:p=>{/**
* @author samme
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c,h,r){return t.x=d+r*Math.cos(h),t.y=c+r*Math.sin(h),t};p.exports=S},72678:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(25836),c=t(37867),h=t(15746),r=new c,n=new h,e=new d,s=function(a,i,o){return n.setAxisAngle(i,o),r.fromRotationTranslation(n,e.set(0,0,0)),a.transformMat4(r)};p.exports=s},2284:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return t>0?Math.ceil(t):Math.floor(t)};p.exports=S},41013:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c){d===void 0&&(d=0),c===void 0&&(c=10);var h=Math.pow(c,-d);return Math.round(t*h)/h};p.exports=S},16922:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c,h){d===void 0&&(d=1),c===void 0&&(c=1),h===void 0&&(h=1),h*=Math.PI/t;for(var r=[],n=[],e=0;e{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c){return t<=d?0:t>=c?1:(t=(t-d)/(c-d),t*t*(3-2*t))};p.exports=S},54261:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c){return t=Math.max(0,Math.min(1,(t-d)/(c-d))),t*t*t*(t*(t*6-15)+10)};p.exports=S},44408:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(26099),c=function(h,r,n,e){e===void 0&&(e=new d);var s=0,a=0,i=r*n;return h>0&&h<=i&&(h>r-1?(a=Math.floor(h/r),s=h-a*r):s=h),e.set(s,a)};p.exports=c},85955:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(26099),c=function(h,r,n,e,s,a,i,o){o===void 0&&(o=new d);var l=Math.sin(s),f=Math.cos(s),u=f*a,v=l*a,m=-l*i,x=f*i,g=1/(u*x+m*-v);return o.x=x*g*h+-m*g*r+(e*m-n*x)*g,o.y=u*g*r+-v*g*h+(-e*u+n*v)*g,o};p.exports=c},26099:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(43855),h=new d({initialize:function(n,e){this.x=0,this.y=0,typeof n=="object"?(this.x=n.x||0,this.y=n.y||0):(e===void 0&&(e=n),this.x=n||0,this.y=e||0)},clone:function(){return new h(this.x,this.y)},copy:function(r){return this.x=r.x||0,this.y=r.y||0,this},setFromObject:function(r){return this.x=r.x||0,this.y=r.y||0,this},set:function(r,n){return n===void 0&&(n=r),this.x=r,this.y=n,this},setTo:function(r,n){return this.set(r,n)},setToPolar:function(r,n){return n==null&&(n=1),this.x=Math.cos(r)*n,this.y=Math.sin(r)*n,this},equals:function(r){return this.x===r.x&&this.y===r.y},fuzzyEquals:function(r,n){return c(this.x,r.x,n)&&c(this.y,r.y,n)},angle:function(){var r=Math.atan2(this.y,this.x);return r<0&&(r+=2*Math.PI),r},setAngle:function(r){return this.setToPolar(r,this.length())},add:function(r){return this.x+=r.x,this.y+=r.y,this},subtract:function(r){return this.x-=r.x,this.y-=r.y,this},multiply:function(r){return this.x*=r.x,this.y*=r.y,this},scale:function(r){return isFinite(r)?(this.x*=r,this.y*=r):(this.x=0,this.y=0),this},divide:function(r){return this.x/=r.x,this.y/=r.y,this},negate:function(){return this.x=-this.x,this.y=-this.y,this},distance:function(r){var n=r.x-this.x,e=r.y-this.y;return Math.sqrt(n*n+e*e)},distanceSq:function(r){var n=r.x-this.x,e=r.y-this.y;return n*n+e*e},length:function(){var r=this.x,n=this.y;return Math.sqrt(r*r+n*n)},setLength:function(r){return this.normalize().scale(r)},lengthSq:function(){var r=this.x,n=this.y;return r*r+n*n},normalize:function(){var r=this.x,n=this.y,e=r*r+n*n;return e>0&&(e=1/Math.sqrt(e),this.x=r*e,this.y=n*e),this},normalizeRightHand:function(){var r=this.x;return this.x=this.y*-1,this.y=r,this},normalizeLeftHand:function(){var r=this.x;return this.x=this.y,this.y=r*-1,this},dot:function(r){return this.x*r.x+this.y*r.y},cross:function(r){return this.x*r.y-this.y*r.x},lerp:function(r,n){n===void 0&&(n=0);var e=this.x,s=this.y;return this.x=e+n*(r.x-e),this.y=s+n*(r.y-s),this},transformMat3:function(r){var n=this.x,e=this.y,s=r.val;return this.x=s[0]*n+s[3]*e+s[6],this.y=s[1]*n+s[4]*e+s[7],this},transformMat4:function(r){var n=this.x,e=this.y,s=r.val;return this.x=s[0]*n+s[4]*e+s[12],this.y=s[1]*n+s[5]*e+s[13],this},reset:function(){return this.x=0,this.y=0,this},limit:function(r){var n=this.length();return n&&n>r&&this.scale(r/n),this},reflect:function(r){return r=r.clone().normalize(),this.subtract(r.scale(2*this.dot(r)))},mirror:function(r){return this.reflect(r).negate()},rotate:function(r){var n=Math.cos(r),e=Math.sin(r);return this.set(n*this.x-e*this.y,e*this.x+n*this.y)},project:function(r){var n=this.dot(r)/r.dot(r);return this.copy(r).scale(n)}});h.ZERO=new h,h.RIGHT=new h(1,0),h.LEFT=new h(-1,0),h.UP=new h(0,-1),h.DOWN=new h(0,1),h.ONE=new h(1,1),p.exports=h},25836:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=new d({initialize:function(r,n,e){this.x=0,this.y=0,this.z=0,typeof r=="object"?(this.x=r.x||0,this.y=r.y||0,this.z=r.z||0):(this.x=r||0,this.y=n||0,this.z=e||0)},up:function(){return this.x=0,this.y=1,this.z=0,this},min:function(h){return this.x=Math.min(this.x,h.x),this.y=Math.min(this.y,h.y),this.z=Math.min(this.z,h.z),this},max:function(h){return this.x=Math.max(this.x,h.x),this.y=Math.max(this.y,h.y),this.z=Math.max(this.z,h.z),this},clone:function(){return new c(this.x,this.y,this.z)},addVectors:function(h,r){return this.x=h.x+r.x,this.y=h.y+r.y,this.z=h.z+r.z,this},subVectors:function(h,r){return this.x=h.x-r.x,this.y=h.y-r.y,this.z=h.z-r.z,this},crossVectors:function(h,r){var n=h.x,e=h.y,s=h.z,a=r.x,i=r.y,o=r.z;return this.x=e*o-s*i,this.y=s*a-n*o,this.z=n*i-e*a,this},equals:function(h){return this.x===h.x&&this.y===h.y&&this.z===h.z},copy:function(h){return this.x=h.x,this.y=h.y,this.z=h.z||0,this},set:function(h,r,n){return typeof h=="object"?(this.x=h.x||0,this.y=h.y||0,this.z=h.z||0):(this.x=h||0,this.y=r||0,this.z=n||0),this},setFromMatrixPosition:function(h){return this.fromArray(h.val,12)},setFromMatrixColumn:function(h,r){return this.fromArray(h.val,r*4)},fromArray:function(h,r){return r===void 0&&(r=0),this.x=h[r],this.y=h[r+1],this.z=h[r+2],this},add:function(h){return this.x+=h.x,this.y+=h.y,this.z+=h.z||0,this},addScalar:function(h){return this.x+=h,this.y+=h,this.z+=h,this},addScale:function(h,r){return this.x+=h.x*r,this.y+=h.y*r,this.z+=h.z*r||0,this},subtract:function(h){return this.x-=h.x,this.y-=h.y,this.z-=h.z||0,this},multiply:function(h){return this.x*=h.x,this.y*=h.y,this.z*=h.z||1,this},scale:function(h){return isFinite(h)?(this.x*=h,this.y*=h,this.z*=h):(this.x=0,this.y=0,this.z=0),this},divide:function(h){return this.x/=h.x,this.y/=h.y,this.z/=h.z||1,this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},distance:function(h){var r=h.x-this.x,n=h.y-this.y,e=h.z-this.z||0;return Math.sqrt(r*r+n*n+e*e)},distanceSq:function(h){var r=h.x-this.x,n=h.y-this.y,e=h.z-this.z||0;return r*r+n*n+e*e},length:function(){var h=this.x,r=this.y,n=this.z;return Math.sqrt(h*h+r*r+n*n)},lengthSq:function(){var h=this.x,r=this.y,n=this.z;return h*h+r*r+n*n},normalize:function(){var h=this.x,r=this.y,n=this.z,e=h*h+r*r+n*n;return e>0&&(e=1/Math.sqrt(e),this.x=h*e,this.y=r*e,this.z=n*e),this},dot:function(h){return this.x*h.x+this.y*h.y+this.z*h.z},cross:function(h){var r=this.x,n=this.y,e=this.z,s=h.x,a=h.y,i=h.z;return this.x=n*i-e*a,this.y=e*s-r*i,this.z=r*a-n*s,this},lerp:function(h,r){r===void 0&&(r=0);var n=this.x,e=this.y,s=this.z;return this.x=n+r*(h.x-n),this.y=e+r*(h.y-e),this.z=s+r*(h.z-s),this},applyMatrix3:function(h){var r=this.x,n=this.y,e=this.z,s=h.val;return this.x=s[0]*r+s[3]*n+s[6]*e,this.y=s[1]*r+s[4]*n+s[7]*e,this.z=s[2]*r+s[5]*n+s[8]*e,this},applyMatrix4:function(h){var r=this.x,n=this.y,e=this.z,s=h.val,a=1/(s[3]*r+s[7]*n+s[11]*e+s[15]);return this.x=(s[0]*r+s[4]*n+s[8]*e+s[12])*a,this.y=(s[1]*r+s[5]*n+s[9]*e+s[13])*a,this.z=(s[2]*r+s[6]*n+s[10]*e+s[14])*a,this},transformMat3:function(h){var r=this.x,n=this.y,e=this.z,s=h.val;return this.x=r*s[0]+n*s[3]+e*s[6],this.y=r*s[1]+n*s[4]+e*s[7],this.z=r*s[2]+n*s[5]+e*s[8],this},transformMat4:function(h){var r=this.x,n=this.y,e=this.z,s=h.val;return this.x=s[0]*r+s[4]*n+s[8]*e+s[12],this.y=s[1]*r+s[5]*n+s[9]*e+s[13],this.z=s[2]*r+s[6]*n+s[10]*e+s[14],this},transformCoordinates:function(h){var r=this.x,n=this.y,e=this.z,s=h.val,a=r*s[0]+n*s[4]+e*s[8]+s[12],i=r*s[1]+n*s[5]+e*s[9]+s[13],o=r*s[2]+n*s[6]+e*s[10]+s[14],l=r*s[3]+n*s[7]+e*s[11]+s[15];return this.x=a/l,this.y=i/l,this.z=o/l,this},transformQuat:function(h){var r=this.x,n=this.y,e=this.z,s=h.x,a=h.y,i=h.z,o=h.w,l=o*r+a*e-i*n,f=o*n+i*r-s*e,u=o*e+s*n-a*r,v=-s*r-a*n-i*e;return this.x=l*o+v*-s+f*-i-u*-a,this.y=f*o+v*-a+u*-s-l*-i,this.z=u*o+v*-i+l*-a-f*-s,this},project:function(h){var r=this.x,n=this.y,e=this.z,s=h.val,a=s[0],i=s[1],o=s[2],l=s[3],f=s[4],u=s[5],v=s[6],m=s[7],x=s[8],g=s[9],y=s[10],T=s[11],C=s[12],E=s[13],M=s[14],P=s[15],A=1/(r*l+n*m+e*T+P);return this.x=(r*a+n*f+e*x+C)*A,this.y=(r*i+n*u+e*g+E)*A,this.z=(r*o+n*v+e*y+M)*A,this},projectViewMatrix:function(h,r){return this.applyMatrix4(h).applyMatrix4(r)},unprojectViewMatrix:function(h,r){return this.applyMatrix4(h).applyMatrix4(r)},unproject:function(h,r){var n=h.x,e=h.y,s=h.z,a=h.w,i=this.x-n,o=a-this.y-1-e,l=this.z;return this.x=2*i/s-1,this.y=2*o/a-1,this.z=2*l-1,this.project(r)},reset:function(){return this.x=0,this.y=0,this.z=0,this}});c.ZERO=new c,c.RIGHT=new c(1,0,0),c.LEFT=new c(-1,0,0),c.UP=new c(0,-1,0),c.DOWN=new c(0,1,0),c.FORWARD=new c(0,0,1),c.BACK=new c(0,0,-1),c.ONE=new c(1,1,1),p.exports=c},61369:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=new d({initialize:function(r,n,e,s){this.x=0,this.y=0,this.z=0,this.w=0,typeof r=="object"?(this.x=r.x||0,this.y=r.y||0,this.z=r.z||0,this.w=r.w||0):(this.x=r||0,this.y=n||0,this.z=e||0,this.w=s||0)},clone:function(){return new c(this.x,this.y,this.z,this.w)},copy:function(h){return this.x=h.x,this.y=h.y,this.z=h.z||0,this.w=h.w||0,this},equals:function(h){return this.x===h.x&&this.y===h.y&&this.z===h.z&&this.w===h.w},set:function(h,r,n,e){return typeof h=="object"?(this.x=h.x||0,this.y=h.y||0,this.z=h.z||0,this.w=h.w||0):(this.x=h||0,this.y=r||0,this.z=n||0,this.w=e||0),this},add:function(h){return this.x+=h.x,this.y+=h.y,this.z+=h.z||0,this.w+=h.w||0,this},subtract:function(h){return this.x-=h.x,this.y-=h.y,this.z-=h.z||0,this.w-=h.w||0,this},scale:function(h){return this.x*=h,this.y*=h,this.z*=h,this.w*=h,this},length:function(){var h=this.x,r=this.y,n=this.z,e=this.w;return Math.sqrt(h*h+r*r+n*n+e*e)},lengthSq:function(){var h=this.x,r=this.y,n=this.z,e=this.w;return h*h+r*r+n*n+e*e},normalize:function(){var h=this.x,r=this.y,n=this.z,e=this.w,s=h*h+r*r+n*n+e*e;return s>0&&(s=1/Math.sqrt(s),this.x=h*s,this.y=r*s,this.z=n*s,this.w=e*s),this},dot:function(h){return this.x*h.x+this.y*h.y+this.z*h.z+this.w*h.w},lerp:function(h,r){r===void 0&&(r=0);var n=this.x,e=this.y,s=this.z,a=this.w;return this.x=n+r*(h.x-n),this.y=e+r*(h.y-e),this.z=s+r*(h.z-s),this.w=a+r*(h.w-a),this},multiply:function(h){return this.x*=h.x,this.y*=h.y,this.z*=h.z||1,this.w*=h.w||1,this},divide:function(h){return this.x/=h.x,this.y/=h.y,this.z/=h.z||1,this.w/=h.w||1,this},distance:function(h){var r=h.x-this.x,n=h.y-this.y,e=h.z-this.z||0,s=h.w-this.w||0;return Math.sqrt(r*r+n*n+e*e+s*s)},distanceSq:function(h){var r=h.x-this.x,n=h.y-this.y,e=h.z-this.z||0,s=h.w-this.w||0;return r*r+n*n+e*e+s*s},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},transformMat4:function(h){var r=this.x,n=this.y,e=this.z,s=this.w,a=h.val;return this.x=a[0]*r+a[4]*n+a[8]*e+a[12]*s,this.y=a[1]*r+a[5]*n+a[9]*e+a[13]*s,this.z=a[2]*r+a[6]*n+a[10]*e+a[14]*s,this.w=a[3]*r+a[7]*n+a[11]*e+a[15]*s,this},transformQuat:function(h){var r=this.x,n=this.y,e=this.z,s=h.x,a=h.y,i=h.z,o=h.w,l=o*r+a*e-i*n,f=o*n+i*r-s*e,u=o*e+s*n-a*r,v=-s*r-a*n-i*e;return this.x=l*o+v*-s+f*-i-u*-a,this.y=f*o+v*-a+u*-s-l*-i,this.z=u*o+v*-i+l*-a-f*-s,this},reset:function(){return this.x=0,this.y=0,this.z=0,this.w=0,this}});c.prototype.sub=c.prototype.subtract,c.prototype.mul=c.prototype.multiply,c.prototype.div=c.prototype.divide,c.prototype.dist=c.prototype.distance,c.prototype.distSq=c.prototype.distanceSq,c.prototype.len=c.prototype.length,c.prototype.lenSq=c.prototype.lengthSq,p.exports=c},60417:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c){return Math.abs(t-d)<=c};p.exports=S},15994:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c){var h=c-d;return d+((t-d)%h+h)%h};p.exports=S},31040:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c,h){return Math.atan2(h-d,c-t)};p.exports=S},55495:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d){return Math.atan2(d.y-t.y,d.x-t.x)};p.exports=S},128:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d){return Math.atan2(d.x-t.x,d.y-t.y)};p.exports=S},41273:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c,h){return Math.atan2(c-t,h-d)};p.exports=S},1432:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(36383),c=function(h){return h>Math.PI&&(h-=d.PI2),Math.abs(((h+d.TAU)%d.PI2-d.PI2)%d.PI2)};p.exports=c},49127:(p,S,t)=>{/**
* @author samme
* @copyright 2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(12407),c=function(h,r){return d(r-h)};p.exports=c},52285:(p,S,t)=>{/**
* @author samme
* @copyright 2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(12407),c=2*Math.PI,h=function(r,n){var e=d(n-r);return e>0&&(e-=c),e};p.exports=h},67317:(p,S,t)=>{/**
* @author samme
* @copyright 2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(86554),c=function(h,r){return d(r-h)};p.exports=c},12407:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return t=t%(2*Math.PI),t>=0?t:t+2*Math.PI};p.exports=S},53993:(p,S,t)=>{/**
* @author Richard Davey
* @author @samme
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(99472),c=function(){return d(-Math.PI,Math.PI)};p.exports=c},86564:(p,S,t)=>{/**
* @author Richard Davey
* @author @samme
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(99472),c=function(){return d(-180,180)};p.exports=c},90154:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(12407),c=function(h){return d(h+Math.PI)};p.exports=c},48736:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(36383),c=function(h,r,n){return n===void 0&&(n=.05),h===r||(Math.abs(r-h)<=n||Math.abs(r-h)>=d.PI2-n?h=r:(Math.abs(r-h)>Math.PI&&(rh?h+=n:r{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d){var c=d-t;if(c===0)return 0;var h=Math.floor((c- -180)/360);return c-h*360};p.exports=S},86554:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(15994),c=function(h){return d(h,-Math.PI,Math.PI)};p.exports=c},30954:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(15994),c=function(h){return d(h,-180,180)};p.exports=c},25588:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports={Between:t(31040),BetweenPoints:t(55495),BetweenPointsY:t(128),BetweenY:t(41273),CounterClockwise:t(1432),GetClockwiseDistance:t(49127),GetCounterClockwiseDistance:t(52285),GetShortestDistance:t(67317),Normalize:t(12407),Random:t(53993),RandomDegrees:t(86564),Reverse:t(90154),RotateTo:t(48736),ShortestBetween:t(61430),Wrap:t(86554),WrapDegrees:t(30954)}},36383:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S={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};p.exports=S},20339:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c,h){var r=t-c,n=d-h;return Math.sqrt(r*r+n*n)};p.exports=S},52816:p=>{/**
* @author samme
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d){var c=t.x-d.x,h=t.y-d.y;return Math.sqrt(c*c+h*h)};p.exports=S},64559:p=>{/**
* @author samme
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d){var c=t.x-d.x,h=t.y-d.y;return c*c+h*h};p.exports=S},82340:p=>{/**
* @author samme
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c,h){return Math.max(Math.abs(t-c),Math.abs(d-h))};p.exports=S},14390:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c,h,r){return r===void 0&&(r=2),Math.sqrt(Math.pow(c-t,r)+Math.pow(h-d,r))};p.exports=S},2243:p=>{/**
* @author samme
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c,h){return Math.abs(t-c)+Math.abs(d-h)};p.exports=S},89774:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c,h){var r=t-c,n=d-h;return r*r+n*n};p.exports=S},50994:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports={Between:t(20339),BetweenPoints:t(52816),BetweenPointsSquared:t(64559),Chebyshev:t(82340),Power:t(14390),Snake:t(2243),Squared:t(89774)}},62640:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(54178),c=t(41521),h=t(79980),r=t(85433),n=t(99140),e=t(48857),s=t(81596),a=t(59133),i=t(98516),o=t(35248),l=t(82500),f=t(49752);p.exports={Power0:s,Power1:a.Out,Power2:r.Out,Power3:i.Out,Power4:o.Out,Linear:s,Quad:a.Out,Cubic:r.Out,Quart:i.Out,Quint:o.Out,Sine:l.Out,Expo:e.Out,Circ:h.Out,Elastic:n.Out,Back:d.Out,Bounce:c.Out,Stepped:f,"Quad.easeIn":a.In,"Cubic.easeIn":r.In,"Quart.easeIn":i.In,"Quint.easeIn":o.In,"Sine.easeIn":l.In,"Expo.easeIn":e.In,"Circ.easeIn":h.In,"Elastic.easeIn":n.In,"Back.easeIn":d.In,"Bounce.easeIn":c.In,"Quad.easeOut":a.Out,"Cubic.easeOut":r.Out,"Quart.easeOut":i.Out,"Quint.easeOut":o.Out,"Sine.easeOut":l.Out,"Expo.easeOut":e.Out,"Circ.easeOut":h.Out,"Elastic.easeOut":n.Out,"Back.easeOut":d.Out,"Bounce.easeOut":c.Out,"Quad.easeInOut":a.InOut,"Cubic.easeInOut":r.InOut,"Quart.easeInOut":i.InOut,"Quint.easeInOut":o.InOut,"Sine.easeInOut":l.InOut,"Expo.easeInOut":e.InOut,"Circ.easeInOut":h.InOut,"Elastic.easeInOut":n.InOut,"Back.easeInOut":d.InOut,"Bounce.easeInOut":c.InOut}},1639:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d){return d===void 0&&(d=1.70158),t*t*((d+1)*t-d)};p.exports=S},50099:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d){d===void 0&&(d=1.70158);var c=d*1.525;return(t*=2)<1?.5*(t*t*((c+1)*t-c)):.5*((t-=2)*t*((c+1)*t+c)+2)};p.exports=S},41286:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d){return d===void 0&&(d=1.70158),--t*t*((d+1)*t+d)+1};p.exports=S},54178:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports={In:t(1639),Out:t(41286),InOut:t(50099)}},59590:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return t=1-t,t<.36363636363636365?1-7.5625*t*t:t<.7272727272727273?1-(7.5625*(t-=.5454545454545454)*t+.75):t<.9090909090909091?1-(7.5625*(t-=.8181818181818182)*t+.9375):1-(7.5625*(t-=.9545454545454546)*t+.984375)};p.exports=S},41788:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){var d=!1;return t<.5?(t=1-t*2,d=!0):t=t*2-1,t<.36363636363636365?t=7.5625*t*t:t<.7272727272727273?t=7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?t=7.5625*(t-=.8181818181818182)*t+.9375:t=7.5625*(t-=.9545454545454546)*t+.984375,d?(1-t)*.5:t*.5+.5};p.exports=S},69905:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375};p.exports=S},41521:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports={In:t(59590),Out:t(69905),InOut:t(41788)}},91861:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return 1-Math.sqrt(1-t*t)};p.exports=S},4177:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)};p.exports=S},57512:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return Math.sqrt(1- --t*t)};p.exports=S},79980:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports={In:t(91861),Out:t(57512),InOut:t(4177)}},51150:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return t*t*t};p.exports=S},82820:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)};p.exports=S},35033:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return--t*t*t+1};p.exports=S},85433:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports={In:t(51150),Out:t(35033),InOut:t(82820)}},69965:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c){if(d===void 0&&(d=.1),c===void 0&&(c=.1),t===0)return 0;if(t===1)return 1;var h=c/4;return d<1?d=1:h=c*Math.asin(1/d)/(2*Math.PI),-(d*Math.pow(2,10*(t-=1))*Math.sin((t-h)*(2*Math.PI)/c))};p.exports=S},50665:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c){if(d===void 0&&(d=.1),c===void 0&&(c=.1),t===0)return 0;if(t===1)return 1;var h=c/4;return d<1?d=1:h=c*Math.asin(1/d)/(2*Math.PI),(t*=2)<1?-.5*(d*Math.pow(2,10*(t-=1))*Math.sin((t-h)*(2*Math.PI)/c)):d*Math.pow(2,-10*(t-=1))*Math.sin((t-h)*(2*Math.PI)/c)*.5+1};p.exports=S},7744:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c){if(d===void 0&&(d=.1),c===void 0&&(c=.1),t===0)return 0;if(t===1)return 1;var h=c/4;return d<1?d=1:h=c*Math.asin(1/d)/(2*Math.PI),d*Math.pow(2,-10*t)*Math.sin((t-h)*(2*Math.PI)/c)+1};p.exports=S},99140:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports={In:t(69965),Out:t(7744),InOut:t(50665)}},24590:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return Math.pow(2,10*(t-1))-.001};p.exports=S},87844:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))};p.exports=S},89433:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return 1-Math.pow(2,-10*t)};p.exports=S},48857:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports={In:t(24590),Out:t(89433),InOut:t(87844)}},48820:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports={Back:t(54178),Bounce:t(41521),Circular:t(79980),Cubic:t(85433),Elastic:t(99140),Expo:t(48857),Linear:t(81596),Quadratic:t(59133),Quartic:t(98516),Quintic:t(35248),Sine:t(82500),Stepped:t(49752)}},7147:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return t};p.exports=S},81596:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports=t(7147)},34826:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return t*t};p.exports=S},20544:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)};p.exports=S},92029:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return t*(2-t)};p.exports=S},59133:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports={In:t(34826),Out:t(92029),InOut:t(20544)}},64413:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return t*t*t*t};p.exports=S},78137:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)};p.exports=S},45840:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return 1- --t*t*t*t};p.exports=S},98516:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports={In:t(64413),Out:t(45840),InOut:t(78137)}},87745:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return t*t*t*t*t};p.exports=S},16509:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)};p.exports=S},17868:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return--t*t*t*t*t+1};p.exports=S},35248:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports={In:t(87745),Out:t(17868),InOut:t(16509)}},80461:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return t===0?0:t===1?1:1-Math.cos(t*Math.PI/2)};p.exports=S},34025:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return t===0?0:t===1?1:.5*(1-Math.cos(Math.PI*t))};p.exports=S},52768:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return t===0?0:t===1?1:Math.sin(t*Math.PI/2)};p.exports=S},82500:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports={In:t(80461),Out:t(52768),InOut:t(34025)}},72251:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d){return d===void 0&&(d=1),t<=0?0:t>=1?1:((d*t|0)+1)*(1/d)};p.exports=S},49752:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports=t(72251)},75698:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d){return d===void 0&&(d=1e-4),Math.ceil(t-d)};p.exports=S},43855:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c){return c===void 0&&(c=1e-4),Math.abs(t-d){/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d){return d===void 0&&(d=1e-4),Math.floor(t+d)};p.exports=S},5470:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c){return c===void 0&&(c=1e-4),t>d-c};p.exports=S},94977:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c){return c===void 0&&(c=1e-4),t{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports={Ceil:t(75698),Equal:t(43855),Floor:t(25777),GreaterThan:t(5470),LessThan:t(94977)}},75508:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(36383),c=t(79291),h={Angle:t(25588),Distance:t(50994),Easing:t(48820),Fuzzy:t(48379),Interpolation:t(38289),Pow2:t(49001),Snap:t(73697),RandomDataGenerator:t(28453),Average:t(53307),Bernstein:t(85710),Between:t(30976),CatmullRom:t(87842),CeilTo:t(26302),Clamp:t(45319),DegToRad:t(39506),Difference:t(61241),Euler:t(38857),Factorial:t(6411),FloatBetween:t(99472),FloorTo:t(77623),FromPercent:t(62945),GetSpeed:t(38265),IsEven:t(78702),IsEvenStrict:t(94883),Linear:t(28915),LinearXY:t(94908),MaxAdd:t(86883),Median:t(50040),MinSub:t(37204),Percent:t(65201),RadToDeg:t(43396),RandomXY:t(74362),RandomXYZ:t(60706),RandomXYZW:t(67421),Rotate:t(36305),RotateAround:t(11520),RotateAroundDistance:t(1163),RotateTo:t(70336),RoundAwayFromZero:t(2284),RoundTo:t(41013),SinCosTableGenerator:t(16922),SmootherStep:t(54261),SmoothStep:t(7602),ToXY:t(44408),TransformXY:t(85955),Within:t(60417),Wrap:t(15994),Vector2:t(26099),Vector3:t(25836),Vector4:t(61369),Matrix3:t(94434),Matrix4:t(37867),Quaternion:t(15746),RotateVec3:t(72678)};h=c(!1,h,d),p.exports=h},89318:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(85710),c=function(h,r){for(var n=0,e=h.length-1,s=0;s<=e;s++)n+=Math.pow(1-r,e-s)*Math.pow(r,s)*h[s]*d(e,s);return n};p.exports=c},77259:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(87842),c=function(h,r){var n=h.length-1,e=n*r,s=Math.floor(e);return h[0]===h[n]?(r<0&&(s=Math.floor(e=n*(1+r))),d(e-s,h[(s-1+n)%n],h[s],h[(s+1)%n],h[(s+2)%n])):r<0?h[0]-(d(-e,h[0],h[0],h[1],h[1])-h[0]):r>1?h[n]-(d(e-n,h[n],h[n],h[n-1],h[n-1])-h[n]):d(e-s,h[s?s-1:0],h[s],h[n{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/function S(r,n){var e=1-r;return e*e*e*n}function t(r,n){var e=1-r;return 3*e*e*r*n}function d(r,n){return 3*(1-r)*r*r*n}function c(r,n){return r*r*r*n}var h=function(r,n,e,s,a){return S(r,n)+t(r,e)+d(r,s)+c(r,a)};p.exports=h},28392:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(28915),c=function(h,r){var n=h.length-1,e=n*r,s=Math.floor(e);return r<0?d(h[0],h[1],e):r>1?d(h[n],h[n-1],n-e):d(h[s],h[s+1>n?n:s+1],e-s)};p.exports=c},32112:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/function S(h,r){var n=1-h;return n*n*r}function t(h,r){return 2*(1-h)*h*r}function d(h,r){return h*h*r}var c=function(h,r,n,e){return S(h,r)+t(h,n)+d(h,e)};p.exports=c},47235:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(7602),c=function(h,r,n){return r+(n-r)*d(h,0,1)};p.exports=c},50178:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(54261),c=function(h,r,n){return r+(n-r)*d(h,0,1)};p.exports=c},38289:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports={Bezier:t(89318),CatmullRom:t(77259),CubicBezier:t(36316),Linear:t(28392),QuadraticBezier:t(32112),SmoothStep:t(47235),SmootherStep:t(50178)}},98439:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){var d=Math.log(t)/.6931471805599453;return 1<{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d){return t>0&&(t&t-1)===0&&d>0&&(d&d-1)===0};p.exports=S},81230:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){return t>0&&(t&t-1)===0};p.exports=S},49001:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports={GetNext:t(98439),IsSize:t(50030),IsValue:t(81230)}},28453:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=new d({initialize:function(r){r===void 0&&(r=[(Date.now()*Math.random()).toString()]),this.c=1,this.s0=0,this.s1=0,this.s2=0,this.n=0,this.signs=[-1,1],r&&this.init(r)},rnd:function(){var h=2091639*this.s0+this.c*23283064365386963e-26;return this.c=h|0,this.s0=this.s1,this.s1=this.s2,this.s2=h-this.c,this.s2},hash:function(h){var r,n=this.n;h=h.toString();for(var e=0;e>>0,r-=n,r*=n,n=r>>>0,r-=n,n+=r*4294967296;return this.n=n,(n>>>0)*23283064365386963e-26},init:function(h){typeof h=="string"?this.state(h):this.sow(h)},sow:function(h){if(this.n=4022871197,this.s0=this.hash(" "),this.s1=this.hash(" "),this.s2=this.hash(" "),this.c=1,!!h)for(var r=0;r0;n--){var e=Math.floor(this.frac()*(n+1)),s=h[e];h[e]=h[n],h[n]=s}return h}});p.exports=c},63448:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c,h){return c===void 0&&(c=0),d===0?t:(t-=c,t=d*Math.ceil(t/d),h?(c+t)/d:c+t)};p.exports=S},56583:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c,h){return c===void 0&&(c=0),d===0?t:(t-=c,t=d*Math.floor(t/d),h?(c+t)/d:c+t)};p.exports=S},77720:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d,c,h){return c===void 0&&(c=0),d===0?t:(t-=c,t=d*Math.round(t/d),h?(c+t)/d:c+t)};p.exports=S},73697:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports={Ceil:t(63448),Floor:t(56583),To:t(77720)}},85454:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/t(63595);var d=t(8054),c=t(79291),h={Actions:t(61061),Animations:t(60421),BlendModes:t(10312),Cache:t(83388),Cameras:t(26638),Core:t(42857),Class:t(83419),Create:t(15822),Curves:t(25410),Data:t(44965),Display:t(27460),DOM:t(84902),Events:t(93055),FX:t(66064),Game:t(50127),GameObjects:t(77856),Geom:t(55738),Input:t(14350),Loader:t(57777),Math:t(75508),Physics:t(44563),Plugins:t(18922),Renderer:t(36909),Scale:t(93364),ScaleModes:t(29795),Scene:t(97482),Scenes:t(62194),Structs:t(41392),Textures:t(27458),Tilemaps:t(62501),Time:t(90291),Tweens:t(43066),Utils:t(91799)};h.Sound=t(23717),h=c(!1,h,d),p.exports=h,t.g.Phaser=h},71289:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(92209),h=t(88571),r=new d({Extends:h,Mixins:[c.Acceleration,c.Angular,c.Bounce,c.Collision,c.Debug,c.Drag,c.Enable,c.Friction,c.Gravity,c.Immovable,c.Mass,c.Pushable,c.Size,c.Velocity],initialize:function(e,s,a,i,o){h.call(this,e,s,a,i,o),this.body=null}});p.exports=r},86689:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(39506),h=t(20339),r=t(89774),n=t(66022),e=t(95540),s=t(46975),a=t(72441),i=t(47956),o=t(37277),l=t(44594),f=t(26099),u=t(82248),v=new d({initialize:function(x){this.scene=x,this.systems=x.sys,this.config=this.getConfig(),this.world,this.add,this._category=1,x.sys.events.once(l.BOOT,this.boot,this),x.sys.events.on(l.START,this.start,this)},boot:function(){this.world=new u(this.scene,this.config),this.add=new n(this.world),this.systems.events.once(l.DESTROY,this.destroy,this)},start:function(){this.world||(this.world=new u(this.scene,this.config),this.add=new n(this.world));var m=this.systems.events;e(this.config,"customUpdate",!1)||m.on(l.UPDATE,this.world.update,this.world),m.on(l.POST_UPDATE,this.world.postUpdate,this.world),m.once(l.SHUTDOWN,this.shutdown,this)},enableUpdate:function(){this.systems.events.on(l.UPDATE,this.world.update,this.world)},disableUpdate:function(){this.systems.events.off(l.UPDATE,this.world.update,this.world)},getConfig:function(){var m=this.systems.game.config.physics,x=this.systems.settings.physics,g=s(e(x,"arcade",{}),e(m,"arcade",{}));return g},nextCategory:function(){return this._category=this._category<<1,this._category},overlap:function(m,x,g,y,T){return g===void 0&&(g=null),y===void 0&&(y=null),T===void 0&&(T=g),this.world.collideObjects(m,x,g,y,T,!0)},collide:function(m,x,g,y,T){return g===void 0&&(g=null),y===void 0&&(y=null),T===void 0&&(T=g),this.world.collideObjects(m,x,g,y,T,!1)},collideTiles:function(m,x,g,y,T){return this.world.collideTiles(m,x,g,y,T)},overlapTiles:function(m,x,g,y,T){return this.world.overlapTiles(m,x,g,y,T)},pause:function(){return this.world.pause()},resume:function(){return this.world.resume()},accelerateTo:function(m,x,g,y,T,C){y===void 0&&(y=60);var E=Math.atan2(g-m.y,x-m.x);return m.body.acceleration.setToPolar(E,y),T!==void 0&&C!==void 0&&m.body.maxVelocity.set(T,C),E},accelerateToObject:function(m,x,g,y,T){return this.accelerateTo(m,x.x,x.y,g,y,T)},closest:function(m,x){x||(x=this.world.bodies.entries);for(var g=Number.MAX_VALUE,y=null,T=m.x,C=m.y,E=x.length,M=0;Mg&&(y=P,g=F)}}return y},moveTo:function(m,x,g,y,T){y===void 0&&(y=60),T===void 0&&(T=0);var C=Math.atan2(g-m.y,x-m.x);return T>0&&(y=h(m.x,m.y,x,g)/(T/1e3)),m.body.velocity.setToPolar(C,y),C},moveToObject:function(m,x,g,y){return this.moveTo(m,x.x,x.y,g,y)},velocityFromAngle:function(m,x,g){return x===void 0&&(x=60),g===void 0&&(g=new f),g.setToPolar(c(m),x)},velocityFromRotation:function(m,x,g){return x===void 0&&(x=60),g===void 0&&(g=new f),g.setToPolar(m,x)},overlapRect:function(m,x,g,y,T,C){return i(this.world,m,x,g,y,T,C)},overlapCirc:function(m,x,g,y,T){return a(this.world,m,x,g,y,T)},shutdown:function(){if(this.world){var m=this.systems.events;m.off(l.UPDATE,this.world.update,this.world),m.off(l.POST_UPDATE,this.world.postUpdate,this.world),m.off(l.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(l.START,this.start,this),this.scene=null,this.systems=null}});o.register("ArcadePhysics",v,"arcadePhysics"),p.exports=v},13759:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(92209),h=t(68287),r=new d({Extends:h,Mixins:[c.Acceleration,c.Angular,c.Bounce,c.Collision,c.Debug,c.Drag,c.Enable,c.Friction,c.Gravity,c.Immovable,c.Mass,c.Pushable,c.Size,c.Velocity],initialize:function(e,s,a,i,o){h.call(this,e,s,a,i,o),this.body=null}});p.exports=r},37742:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=t(78389),h=t(37747),r=t(63012),n=t(43396),e=t(87841),s=t(37303),a=t(95829),i=t(26099),o=new d({Mixins:[c],initialize:function(f,u){var v=64,m=64,x={x:0,y:0,angle:0,rotation:0,scaleX:1,scaleY:1,displayOriginX:0,displayOriginY:0},g=u!==void 0;g&&u.displayWidth&&(v=u.displayWidth,m=u.displayHeight),g||(u=x),this.world=f,this.gameObject=g?u:void 0,this.isBody=!0,this.transform={x:u.x,y:u.y,rotation:u.angle,scaleX:u.scaleX,scaleY:u.scaleY,displayOriginX:u.displayOriginX,displayOriginY:u.displayOriginY},this.debugShowBody=f.defaults.debugShowBody,this.debugShowVelocity=f.defaults.debugShowVelocity,this.debugBodyColor=f.defaults.bodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new i,this.position=new i(u.x-u.scaleX*u.displayOriginX,u.y-u.scaleY*u.displayOriginY),this.prev=this.position.clone(),this.prevFrame=this.position.clone(),this.allowRotation=!0,this.rotation=u.angle,this.preRotation=u.angle,this.width=v,this.height=m,this.sourceWidth=v,this.sourceHeight=m,u.frame&&(this.sourceWidth=u.frame.realWidth,this.sourceHeight=u.frame.realHeight),this.halfWidth=Math.abs(v/2),this.halfHeight=Math.abs(m/2),this.center=new i(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=new i,this.newVelocity=new i,this.deltaMax=new i,this.acceleration=new i,this.allowDrag=!0,this.drag=new i,this.allowGravity=!0,this.gravity=new i,this.bounce=new i,this.worldBounce=null,this.customBoundsRectangle=f.bounds,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.maxVelocity=new i(1e4,1e4),this.maxSpeed=-1,this.friction=new i(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=h.FACING_NONE,this.immovable=!1,this.pushable=!0,this.slideFactor=new i(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=a(!1),this.touching=a(!0),this.wasTouching=a(!0),this.blocked=a(!0),this.syncBounds=!1,this.physicsType=h.DYNAMIC_BODY,this.collisionCategory=1,this.collisionMask=1,this._sx=u.scaleX,this._sy=u.scaleY,this._dx=0,this._dy=0,this._tx=0,this._ty=0,this._bounds=new e,this.directControl=!1,this.autoFrame=this.position.clone()},updateBounds:function(){var l=this.gameObject,f=this.transform;if(l.parentContainer){var u=l.getWorldTransformMatrix(this.world._tempMatrix,this.world._tempMatrix2);f.x=u.tx,f.y=u.ty,f.rotation=n(u.rotation),f.scaleX=u.scaleX,f.scaleY=u.scaleY,f.displayOriginX=l.displayOriginX,f.displayOriginY=l.displayOriginY}else f.x=l.x,f.y=l.y,f.rotation=l.angle,f.scaleX=l.scaleX,f.scaleY=l.scaleY,f.displayOriginX=l.displayOriginX,f.displayOriginY=l.displayOriginY;var v=!1;if(this.syncBounds){var m=l.getBounds(this._bounds);this.width=m.width,this.height=m.height,v=!0}else{var x=Math.abs(f.scaleX),g=Math.abs(f.scaleY);(this._sx!==x||this._sy!==g)&&(this.width=this.sourceWidth*x,this.height=this.sourceHeight*g,this._sx=x,this._sy=g,v=!0)}v&&(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 l=this.transform;this.position.x=l.x+l.scaleX*(this.offset.x-l.displayOriginX),this.position.y=l.y+l.scaleY*(this.offset.y-l.displayOriginY),this.updateCenter()},resetFlags:function(l){l===void 0&&(l=!1);var f=this.wasTouching,u=this.touching,v=this.blocked;l?a(!0,f):(f.none=u.none,f.up=u.up,f.down=u.down,f.left=u.left,f.right=u.right),a(!0,u),a(!0,v),this.overlapR=0,this.overlapX=0,this.overlapY=0,this.embedded=!1},preUpdate:function(l,f){if(l&&this.resetFlags(),this.gameObject&&this.updateFromGameObject(),this.rotation=this.transform.rotation,this.preRotation=this.rotation,this.moves){var u=this.position;this.prev.x=u.x,this.prev.y=u.y,this.prevFrame.x=u.x,this.prevFrame.y=u.y}l&&this.update(f)},update:function(l){var f=this.prev,u=this.position,v=this.velocity;if(f.set(u.x,u.y),!this.moves){this._dx=u.x-f.x,this._dy=u.y-f.y;return}if(this.directControl){var m=this.autoFrame;v.set((u.x-m.x)/l,(u.y-m.y)/l),this.world.updateMotion(this,l),this._dx=u.x-m.x,this._dy=u.y-m.y}else this.world.updateMotion(this,l),this.newVelocity.set(v.x*l,v.y*l),u.add(this.newVelocity),this._dx=u.x-f.x,this._dy=u.y-f.y;var x=v.x,g=v.y;if(this.updateCenter(),this.angle=Math.atan2(g,x),this.speed=Math.sqrt(x*x+g*g),this.collideWorldBounds&&this.checkWorldBounds()&&this.onWorldBounds){var y=this.blocked;this.world.emit(r.WORLD_BOUNDS,this,y.up,y.down,y.left,y.right)}},postUpdate:function(){var l=this.position,f=l.x-this.prevFrame.x,u=l.y-this.prevFrame.y,v=this.gameObject;if(this.moves){var m=this.deltaMax.x,x=this.deltaMax.y;m!==0&&f!==0&&(f<0&&f<-m?f=-m:f>0&&f>m&&(f=m)),x!==0&&u!==0&&(u<0&&u<-x?u=-x:u>0&&u>x&&(u=x)),v&&(v.x+=f,v.y+=u)}f<0?this.facing=h.FACING_LEFT:f>0&&(this.facing=h.FACING_RIGHT),u<0?this.facing=h.FACING_UP:u>0&&(this.facing=h.FACING_DOWN),this.allowRotation&&v&&(v.angle+=this.deltaZ()),this._tx=f,this._ty=u,this.autoFrame.set(l.x,l.y)},setBoundsRectangle:function(l){return this.customBoundsRectangle=l||this.world.bounds,this},checkWorldBounds:function(){var l=this.position,f=this.velocity,u=this.blocked,v=this.customBoundsRectangle,m=this.world.checkCollision,x=this.worldBounce?-this.worldBounce.x:-this.bounce.x,g=this.worldBounce?-this.worldBounce.y:-this.bounce.y,y=!1;return l.xv.right&&m.right&&(l.x=v.right-this.width,f.x*=x,u.right=!0,y=!0),l.yv.bottom&&m.down&&(l.y=v.bottom-this.height,f.y*=g,u.down=!0,y=!0),y&&(this.blocked.none=!1,this.updateCenter()),y},setOffset:function(l,f){return f===void 0&&(f=l),this.offset.set(l,f),this},setGameObject:function(l,f){if(f===void 0&&(f=!0),!l||!l.hasTransformComponent)return this;var u=this.world;return this.gameObject&&this.gameObject.body&&(u.disable(this.gameObject),this.gameObject.body=null),l.body&&u.disable(l),this.gameObject=l,l.body=this,this.setSize(),this.enable=f,this},setSize:function(l,f,u){u===void 0&&(u=!0);var v=this.gameObject;if(v&&(!l&&v.frame&&(l=v.frame.realWidth),!f&&v.frame&&(f=v.frame.realHeight)),this.sourceWidth=l,this.sourceHeight=f,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(),u&&v&&v.getCenter){var m=(v.width-l)/2,x=(v.height-f)/2;this.offset.set(m,x)}return this.isCircle=!1,this.radius=0,this},setCircle:function(l,f,u){return f===void 0&&(f=this.offset.x),u===void 0&&(u=this.offset.y),l>0?(this.isCircle=!0,this.radius=l,this.sourceWidth=l*2,this.sourceHeight=l*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(f,u),this.updateCenter()):this.isCircle=!1,this},reset:function(l,f){this.stop();var u=this.gameObject;u&&(u.setPosition(l,f),this.rotation=u.angle,this.preRotation=u.angle);var v=this.position;u&&u.getTopLeft?u.getTopLeft(v):v.set(l,f),this.prev.copy(v),this.prevFrame.copy(v),this.autoFrame.copy(v),u&&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(l){return l.x=this.x,l.y=this.y,l.right=this.right,l.bottom=this.bottom,l},hitTest:function(l,f){if(!this.isCircle)return s(this,l,f);if(this.radius>0&&l>=this.left&&l<=this.right&&f>=this.top&&f<=this.bottom){var u=(this.center.x-l)*(this.center.x-l),v=(this.center.y-f)*(this.center.y-f);return u+v<=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(l){var f=this.position,u=f.x+this.halfWidth,v=f.y+this.halfHeight;this.debugShowBody&&(l.lineStyle(l.defaultStrokeWidth,this.debugBodyColor),this.isCircle?l.strokeCircle(u,v,this.width/2):(this.checkCollision.up&&l.lineBetween(f.x,f.y,f.x+this.width,f.y),this.checkCollision.right&&l.lineBetween(f.x+this.width,f.y,f.x+this.width,f.y+this.height),this.checkCollision.down&&l.lineBetween(f.x,f.y+this.height,f.x+this.width,f.y+this.height),this.checkCollision.left&&l.lineBetween(f.x,f.y,f.x,f.y+this.height))),this.debugShowVelocity&&(l.lineStyle(l.defaultStrokeWidth,this.world.defaults.velocityDebugColor,1),l.lineBetween(u,v,u+this.velocity.x/2,v+this.velocity.y/2))},willDrawDebug:function(){return this.debugShowBody||this.debugShowVelocity},setDirectControl:function(l){return l===void 0&&(l=!0),this.directControl=l,this},setCollideWorldBounds:function(l,f,u,v){l===void 0&&(l=!0),this.collideWorldBounds=l;var m=f!==void 0,x=u!==void 0;return(m||x)&&(this.worldBounce||(this.worldBounce=new i),m&&(this.worldBounce.x=f),x&&(this.worldBounce.y=u)),v!==void 0&&(this.onWorldBounds=v),this},setVelocity:function(l,f){return this.velocity.set(l,f),l=this.velocity.x,f=this.velocity.y,this.speed=Math.sqrt(l*l+f*f),this},setVelocityX:function(l){return this.setVelocity(l,this.velocity.y)},setVelocityY:function(l){return this.setVelocity(this.velocity.x,l)},setMaxVelocity:function(l,f){return this.maxVelocity.set(l,f),this},setMaxVelocityX:function(l){return this.maxVelocity.x=l,this},setMaxVelocityY:function(l){return this.maxVelocity.y=l,this},setMaxSpeed:function(l){return this.maxSpeed=l,this},setSlideFactor:function(l,f){return this.slideFactor.set(l,f),this},setBounce:function(l,f){return this.bounce.set(l,f),this},setBounceX:function(l){return this.bounce.x=l,this},setBounceY:function(l){return this.bounce.y=l,this},setAcceleration:function(l,f){return this.acceleration.set(l,f),this},setAccelerationX:function(l){return this.acceleration.x=l,this},setAccelerationY:function(l){return this.acceleration.y=l,this},setAllowDrag:function(l){return l===void 0&&(l=!0),this.allowDrag=l,this},setAllowGravity:function(l){return l===void 0&&(l=!0),this.allowGravity=l,this},setAllowRotation:function(l){return l===void 0&&(l=!0),this.allowRotation=l,this},setDrag:function(l,f){return this.drag.set(l,f),this},setDamping:function(l){return this.useDamping=l,this},setDragX:function(l){return this.drag.x=l,this},setDragY:function(l){return this.drag.y=l,this},setGravity:function(l,f){return this.gravity.set(l,f),this},setGravityX:function(l){return this.gravity.x=l,this},setGravityY:function(l){return this.gravity.y=l,this},setFriction:function(l,f){return this.friction.set(l,f),this},setFrictionX:function(l){return this.friction.x=l,this},setFrictionY:function(l){return this.friction.y=l,this},setAngularVelocity:function(l){return this.angularVelocity=l,this},setAngularAcceleration:function(l){return this.angularAcceleration=l,this},setAngularDrag:function(l){return this.angularDrag=l,this},setMass:function(l){return this.mass=l,this},setImmovable:function(l){return l===void 0&&(l=!0),this.immovable=l,this},setEnable:function(l){return l===void 0&&(l=!0),this.enable=l,this},processX:function(l,f,u,v){this.x+=l,this.updateCenter(),f!==null&&(this.velocity.x=f*this.slideFactor.x);var m=this.blocked;u&&(m.left=!0,m.none=!1),v&&(m.right=!0,m.none=!1)},processY:function(l,f,u,v){this.y+=l,this.updateCenter(),f!==null&&(this.velocity.y=f*this.slideFactor.y);var m=this.blocked;u&&(m.up=!0,m.none=!1),v&&(m.down=!0,m.none=!1)},x:{get:function(){return this.position.x},set:function(l){this.position.x=l}},y:{get:function(){return this.position.y},set:function(l){this.position.y=l}},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}}});p.exports=o},79342:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(83419),c=new d({initialize:function(r,n,e,s,a,i,o){this.world=r,this.name="",this.active=!0,this.overlapOnly=n,this.object1=e,this.object2=s,this.collideCallback=a,this.processCallback=i,this.callbackContext=o},setName:function(h){return this.name=h,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}});p.exports=c},66022:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(71289),c=t(13759),h=t(37742),r=t(83419),n=t(37747),e=t(60758),s=t(72624),a=t(71464),i=new r({initialize:function(l){this.world=l,this.scene=l.scene,this.sys=l.scene.sys},collider:function(o,l,f,u,v){return this.world.addCollider(o,l,f,u,v)},overlap:function(o,l,f,u,v){return this.world.addOverlap(o,l,f,u,v)},existing:function(o,l){var f=l?n.STATIC_BODY:n.DYNAMIC_BODY;return this.world.enableBody(o,f),o},staticImage:function(o,l,f,u){var v=new d(this.scene,o,l,f,u);return this.sys.displayList.add(v),this.world.enableBody(v,n.STATIC_BODY),v},image:function(o,l,f,u){var v=new d(this.scene,o,l,f,u);return this.sys.displayList.add(v),this.world.enableBody(v,n.DYNAMIC_BODY),v},staticSprite:function(o,l,f,u){var v=new c(this.scene,o,l,f,u);return this.sys.displayList.add(v),this.sys.updateList.add(v),this.world.enableBody(v,n.STATIC_BODY),v},sprite:function(o,l,f,u){var v=new c(this.scene,o,l,f,u);return this.sys.displayList.add(v),this.sys.updateList.add(v),this.world.enableBody(v,n.DYNAMIC_BODY),v},staticGroup:function(o,l){return this.sys.updateList.add(new a(this.world,this.world.scene,o,l))},group:function(o,l){return this.sys.updateList.add(new e(this.world,this.world.scene,o,l))},body:function(o,l,f,u){var v=new h(this.world);return v.position.set(o,l),f&&u&&v.setSize(f,u),this.world.add(v,n.DYNAMIC_BODY),v},staticBody:function(o,l,f,u){var v=new s(this.world);return v.position.set(o,l),f&&u&&v.setSize(f,u),this.world.add(v,n.STATIC_BODY),v},destroy:function(){this.world=null,this.scene=null,this.sys=null}});p.exports=i},79599:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t){var d=0;if(!Array.isArray(t))d=t;else for(var c=0;c{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(37747),c=function(h,r,n,e){var s=0,a=h.deltaAbsX()+r.deltaAbsX()+e;return h._dx===0&&r._dx===0?(h.embedded=!0,r.embedded=!0):h._dx>r._dx?(s=h.right-r.x,s>a&&!n||h.checkCollision.right===!1||r.checkCollision.left===!1?s=0:(h.touching.none=!1,h.touching.right=!0,r.touching.none=!1,r.touching.left=!0,r.physicsType===d.STATIC_BODY&&!n&&(h.blocked.none=!1,h.blocked.right=!0),h.physicsType===d.STATIC_BODY&&!n&&(r.blocked.none=!1,r.blocked.left=!0))):h._dxa&&!n||h.checkCollision.left===!1||r.checkCollision.right===!1?s=0:(h.touching.none=!1,h.touching.left=!0,r.touching.none=!1,r.touching.right=!0,r.physicsType===d.STATIC_BODY&&!n&&(h.blocked.none=!1,h.blocked.left=!0),h.physicsType===d.STATIC_BODY&&!n&&(r.blocked.none=!1,r.blocked.right=!0))),h.overlapX=s,r.overlapX=s,s};p.exports=c},45170:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(37747),c=function(h,r,n,e){var s=0,a=h.deltaAbsY()+r.deltaAbsY()+e;return h._dy===0&&r._dy===0?(h.embedded=!0,r.embedded=!0):h._dy>r._dy?(s=h.bottom-r.y,s>a&&!n||h.checkCollision.down===!1||r.checkCollision.up===!1?s=0:(h.touching.none=!1,h.touching.down=!0,r.touching.none=!1,r.touching.up=!0,r.physicsType===d.STATIC_BODY&&!n&&(h.blocked.none=!1,h.blocked.down=!0),h.physicsType===d.STATIC_BODY&&!n&&(r.blocked.none=!1,r.blocked.up=!0))):h._dya&&!n||h.checkCollision.up===!1||r.checkCollision.down===!1?s=0:(h.touching.none=!1,h.touching.up=!0,r.touching.none=!1,r.touching.down=!0,r.physicsType===d.STATIC_BODY&&!n&&(h.blocked.none=!1,h.blocked.up=!0),h.physicsType===d.STATIC_BODY&&!n&&(r.blocked.none=!1,r.blocked.down=!0))),h.overlapY=s,r.overlapY=s,s};p.exports=c},60758:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(13759),c=t(83419),h=t(78389),r=t(37747),n=t(95540),e=t(26479),s=t(41212),a=new c({Extends:e,Mixins:[h],initialize:function(o,l,f,u){if(!f&&!u)u={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler};else if(s(f))u=f,f=null,u.internalCreateCallback=this.createCallbackHandler,u.internalRemoveCallback=this.removeCallbackHandler;else if(Array.isArray(f)&&s(f[0])){var v=this;f.forEach(function(m){m.internalCreateCallback=v.createCallbackHandler,m.internalRemoveCallback=v.removeCallbackHandler,m.classType=n(m,"classType",d)}),u=null}else u={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler};this.world=o,u&&(u.classType=n(u,"classType",d)),this.physicsType=r.DYNAMIC_BODY,this.collisionCategory=1,this.collisionMask=2147483647,this.defaults={setCollideWorldBounds:n(u,"collideWorldBounds",!1),setBoundsRectangle:n(u,"customBoundsRectangle",null),setAccelerationX:n(u,"accelerationX",0),setAccelerationY:n(u,"accelerationY",0),setAllowDrag:n(u,"allowDrag",!0),setAllowGravity:n(u,"allowGravity",!0),setAllowRotation:n(u,"allowRotation",!0),setDamping:n(u,"useDamping",!1),setBounceX:n(u,"bounceX",0),setBounceY:n(u,"bounceY",0),setDragX:n(u,"dragX",0),setDragY:n(u,"dragY",0),setEnable:n(u,"enable",!0),setGravityX:n(u,"gravityX",0),setGravityY:n(u,"gravityY",0),setFrictionX:n(u,"frictionX",0),setFrictionY:n(u,"frictionY",0),setMaxSpeed:n(u,"maxSpeed",-1),setMaxVelocityX:n(u,"maxVelocityX",1e4),setMaxVelocityY:n(u,"maxVelocityY",1e4),setVelocityX:n(u,"velocityX",0),setVelocityY:n(u,"velocityY",0),setAngularVelocity:n(u,"angularVelocity",0),setAngularAcceleration:n(u,"angularAcceleration",0),setAngularDrag:n(u,"angularDrag",0),setMass:n(u,"mass",1),setImmovable:n(u,"immovable",!1)},e.call(this,l,f,u),this.type="PhysicsGroup"},createCallbackHandler:function(i){i.body||this.world.enableBody(i,r.DYNAMIC_BODY);var o=i.body;for(var l in this.defaults)o[l](this.defaults[l])},removeCallbackHandler:function(i){i.body&&this.world.disableBody(i)},setVelocity:function(i,o,l){l===void 0&&(l=0);for(var f=this.getChildren(),u=0;u{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S,t,d,c,h,r,n,e,s,a,i,o,l,f,u,v,m,x=function(M,P,A){S=M,t=P;var F=S.velocity.x,L=t.velocity.x;return d=S.pushable,s=S._dx<0,a=S._dx>0,i=S._dx===0,u=Math.abs(S.right-t.x)<=Math.abs(t.right-S.x),n=L-F*S.bounce.x,c=t.pushable,o=t._dx<0,l=t._dx>0,f=t._dx===0,v=!u,e=F-L*t.bounce.x,m=Math.abs(A),g()},g=function(){return a&&u&&t.blocked.right?(S.processX(-m,n,!1,!0),1):s&&v&&t.blocked.left?(S.processX(m,n,!0),1):l&&v&&S.blocked.right?(t.processX(-m,e,!1,!0),2):o&&u&&S.blocked.left?(t.processX(m,e,!0),2):0},y=function(){var M=S.velocity.x,P=t.velocity.x,A=Math.sqrt(P*P*t.mass/S.mass)*(P>0?1:-1),F=Math.sqrt(M*M*S.mass/t.mass)*(M>0?1:-1),L=(A+F)*.5;return A-=L,F-=L,h=L+A*S.bounce.x,r=L+F*t.bounce.x,s&&v?T(0):o&&u?T(1):a&&u?T(2):l&&v?T(3):!1},T=function(M){if(d&&c)m*=.5,M===0||M===3?(S.processX(m,h),t.processX(-m,r)):(S.processX(-m,h),t.processX(m,r));else if(d&&!c)M===0||M===3?S.processX(m,n,!0):S.processX(-m,n,!1,!0);else if(!d&&c)M===0||M===3?t.processX(-m,e,!1,!0):t.processX(m,e,!0);else{var P=m*.5;M===0?f?(S.processX(m,0,!0),t.processX(0,null,!1,!0)):l?(S.processX(P,0,!0),t.processX(-P,0,!1,!0)):(S.processX(P,t.velocity.x,!0),t.processX(-P,null,!1,!0)):M===1?i?(S.processX(0,null,!1,!0),t.processX(m,0,!0)):a?(S.processX(-P,0,!1,!0),t.processX(P,0,!0)):(S.processX(-P,null,!1,!0),t.processX(P,S.velocity.x,!0)):M===2?f?(S.processX(-m,0,!1,!0),t.processX(0,null,!0)):o?(S.processX(-P,0,!1,!0),t.processX(P,0,!0)):(S.processX(-P,t.velocity.x,!1,!0),t.processX(P,null,!0)):M===3&&(i?(S.processX(0,null,!0),t.processX(-m,0,!1,!0)):s?(S.processX(P,0,!0),t.processX(-P,0,!1,!0)):(S.processX(P,t.velocity.y,!0),t.processX(-P,null,!1,!0)))}return!0},C=function(M){if(M===1?t.velocity.x=0:u?t.processX(m,e,!0):t.processX(-m,e,!1,!0),S.moves){var P=S.directControl?S.y-S.autoFrame.y:S.y-S.prev.y;t.y+=P*S.friction.y,t._dy=t.y-t.prev.y}},E=function(M){if(M===2?S.velocity.x=0:v?S.processX(m,n,!0):S.processX(-m,n,!1,!0),t.moves){var P=t.directControl?t.y-t.autoFrame.y:t.y-t.prev.y;S.y+=P*t.friction.y,S._dy=S.y-S.prev.y}};p.exports={BlockCheck:g,Check:y,Set:x,Run:T,RunImmovableBody1:C,RunImmovableBody2:E}},47962:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S,t,d,c,h,r,n,e,s,a,i,o,l,f,u,v,m,x=function(M,P,A){S=M,t=P;var F=S.velocity.y,L=t.velocity.y;return d=S.pushable,s=S._dy<0,a=S._dy>0,i=S._dy===0,u=Math.abs(S.bottom-t.y)<=Math.abs(t.bottom-S.y),n=L-F*S.bounce.y,c=t.pushable,o=t._dy<0,l=t._dy>0,f=t._dy===0,v=!u,e=F-L*t.bounce.y,m=Math.abs(A),g()},g=function(){return a&&u&&t.blocked.down?(S.processY(-m,n,!1,!0),1):s&&v&&t.blocked.up?(S.processY(m,n,!0),1):l&&v&&S.blocked.down?(t.processY(-m,e,!1,!0),2):o&&u&&S.blocked.up?(t.processY(m,e,!0),2):0},y=function(){var M=S.velocity.y,P=t.velocity.y,A=Math.sqrt(P*P*t.mass/S.mass)*(P>0?1:-1),F=Math.sqrt(M*M*S.mass/t.mass)*(M>0?1:-1),L=(A+F)*.5;return A-=L,F-=L,h=L+A*S.bounce.y,r=L+F*t.bounce.y,s&&v?T(0):o&&u?T(1):a&&u?T(2):l&&v?T(3):!1},T=function(M){if(d&&c)m*=.5,M===0||M===3?(S.processY(m,h),t.processY(-m,r)):(S.processY(-m,h),t.processY(m,r));else if(d&&!c)M===0||M===3?S.processY(m,n,!0):S.processY(-m,n,!1,!0);else if(!d&&c)M===0||M===3?t.processY(-m,e,!1,!0):t.processY(m,e,!0);else{var P=m*.5;M===0?f?(S.processY(m,0,!0),t.processY(0,null,!1,!0)):l?(S.processY(P,0,!0),t.processY(-P,0,!1,!0)):(S.processY(P,t.velocity.y,!0),t.processY(-P,null,!1,!0)):M===1?i?(S.processY(0,null,!1,!0),t.processY(m,0,!0)):a?(S.processY(-P,0,!1,!0),t.processY(P,0,!0)):(S.processY(-P,null,!1,!0),t.processY(P,S.velocity.y,!0)):M===2?f?(S.processY(-m,0,!1,!0),t.processY(0,null,!0)):o?(S.processY(-P,0,!1,!0),t.processY(P,0,!0)):(S.processY(-P,t.velocity.y,!1,!0),t.processY(P,null,!0)):M===3&&(i?(S.processY(0,null,!0),t.processY(-m,0,!1,!0)):s?(S.processY(P,0,!0),t.processY(-P,0,!1,!0)):(S.processY(P,t.velocity.y,!0),t.processY(-P,null,!1,!0)))}return!0},C=function(M){if(M===1?t.velocity.y=0:u?t.processY(m,e,!0):t.processY(-m,e,!1,!0),S.moves){var P=S.directControl?S.x-S.autoFrame.x:S.x-S.prev.x;t.x+=P*S.friction.x,t._dx=t.x-t.prev.x}},E=function(M){if(M===2?S.velocity.y=0:v?S.processY(m,n,!0):S.processY(-m,n,!1,!0),t.moves){var P=t.directControl?t.x-t.autoFrame.x:t.x-t.prev.x;S.x+=P*t.friction.x,S._dx=S.x-S.prev.x}};p.exports={BlockCheck:g,Check:y,Set:x,Run:T,RunImmovableBody1:C,RunImmovableBody2:E}},14087:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(64897),c=t(3017),h=function(r,n,e,s,a){a===void 0&&(a=d(r,n,e,s));var i=r.immovable,o=n.immovable;if(e||a===0||i&&o||r.customSeparateX||n.customSeparateX)return a!==0||r.embedded&&n.embedded;var l=c.Set(r,n,a);return!i&&!o?l>0?!0:c.Check():(i?c.RunImmovableBody1(l):o&&c.RunImmovableBody2(l),!0)};p.exports=h},89936:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(45170),c=t(47962),h=function(r,n,e,s,a){a===void 0&&(a=d(r,n,e,s));var i=r.immovable,o=n.immovable;if(e||a===0||i&&o||r.customSeparateY||n.customSeparateY)return a!==0||r.embedded&&n.embedded;var l=c.Set(r,n,a);return!i&&!o?l>0?!0:c.Check():(i?c.RunImmovableBody1(l):o&&c.RunImmovableBody2(l),!0)};p.exports=h},95829:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d){return d===void 0&&(d={}),d.none=t,d.up=!1,d.down=!1,d.left=!1,d.right=!1,t||(d.up=!0,d.down=!0,d.left=!0,d.right=!0),d};p.exports=S},72624:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(87902),c=t(83419),h=t(78389),r=t(37747),n=t(37303),e=t(95829),s=t(26099),a=new c({Mixins:[h],initialize:function(o,l){var f=64,u=64,v={x:0,y:0,angle:0,rotation:0,scaleX:1,scaleY:1,displayOriginX:0,displayOriginY:0},m=l!==void 0;m&&l.displayWidth&&(f=l.displayWidth,u=l.displayHeight),m||(l=v),this.world=o,this.gameObject=m?l:void 0,this.isBody=!0,this.debugShowBody=o.defaults.debugShowStaticBody,this.debugBodyColor=o.defaults.staticBodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new s,this.position=new s(l.x-f*l.originX,l.y-u*l.originY),this.width=f,this.height=u,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center=new s(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=s.ZERO,this.allowGravity=!1,this.gravity=s.ZERO,this.bounce=s.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=e(!1),this.touching=e(!0),this.wasTouching=e(!0),this.blocked=e(!0),this.physicsType=r.STATIC_BODY,this.collisionCategory=1,this.collisionMask=1,this._dx=0,this._dy=0},setGameObject:function(i,o,l){if(o===void 0&&(o=!0),l===void 0&&(l=!0),!i||!i.hasTransformComponent)return this;var f=this.world;return this.gameObject&&this.gameObject.body&&(f.disable(this.gameObject),this.gameObject.body=null),i.body&&f.disable(i),this.gameObject=i,i.body=this,this.setSize(),o&&this.updateFromGameObject(),this.enable=l,this},updateFromGameObject:function(){this.world.staticTree.remove(this);var i=this.gameObject;return i.getTopLeft(this.position),this.width=i.displayWidth,this.height=i.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(i,o){return o===void 0&&(o=i),this.world.staticTree.remove(this),this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(i,o),this.position.x+=this.offset.x,this.position.y+=this.offset.y,this.updateCenter(),this.world.staticTree.insert(this),this},setSize:function(i,o,l){l===void 0&&(l=!0);var f=this.gameObject;if(f&&f.frame&&(i||(i=f.frame.realWidth),o||(o=f.frame.realHeight)),this.world.staticTree.remove(this),this.width=i,this.height=o,this.halfWidth=Math.floor(i/2),this.halfHeight=Math.floor(o/2),l&&f&&f.getCenter){var u=f.displayWidth/2,v=f.displayHeight/2;this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(u-this.halfWidth,v-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(i,o,l){return o===void 0&&(o=this.offset.x),l===void 0&&(l=this.offset.y),i>0?(this.world.staticTree.remove(this),this.isCircle=!0,this.radius=i,this.width=i*2,this.height=i*2,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(o,l),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(i,o){var l=this.gameObject;i===void 0&&(i=l.x),o===void 0&&(o=l.y),this.world.staticTree.remove(this),l.setPosition(i,o),l.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(i){return i.x=this.x,i.y=this.y,i.right=this.right,i.bottom=this.bottom,i},hitTest:function(i,o){return this.isCircle?d(this,i,o):n(this,i,o)},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(i){var o=this.position,l=o.x+this.halfWidth,f=o.y+this.halfHeight;this.debugShowBody&&(i.lineStyle(i.defaultStrokeWidth,this.debugBodyColor,1),this.isCircle?i.strokeCircle(l,f,this.width/2):i.strokeRect(o.x,o.y,this.width,this.height))},willDrawDebug:function(){return this.debugShowBody},setMass:function(i){return i<=0&&(i=.1),this.mass=i,this},x:{get:function(){return this.position.x},set:function(i){this.world.staticTree.remove(this),this.position.x=i,this.world.staticTree.insert(this)}},y:{get:function(){return this.position.y},set:function(i){this.world.staticTree.remove(this),this.position.y=i,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}}});p.exports=a},71464:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(13759),c=t(83419),h=t(78389),r=t(37747),n=t(95540),e=t(26479),s=t(41212),a=new c({Extends:e,Mixins:[h],initialize:function(o,l,f,u){!f&&!u?u={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler,createMultipleCallback:this.createMultipleCallbackHandler,classType:d}:s(f)?(u=f,f=null,u.internalCreateCallback=this.createCallbackHandler,u.internalRemoveCallback=this.removeCallbackHandler,u.createMultipleCallback=this.createMultipleCallbackHandler,u.classType=n(u,"classType",d)):Array.isArray(f)&&s(f[0])?(u=f,f=null,u.forEach(function(v){v.internalCreateCallback=this.createCallbackHandler,v.internalRemoveCallback=this.removeCallbackHandler,v.createMultipleCallback=this.createMultipleCallbackHandler,v.classType=n(v,"classType",d)})):u={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler},this.world=o,this.physicsType=r.STATIC_BODY,this.collisionCategory=1,this.collisionMask=1,e.call(this,l,f,u),this.type="StaticPhysicsGroup"},createCallbackHandler:function(i){i.body||this.world.enableBody(i,r.STATIC_BODY)},removeCallbackHandler:function(i){i.body&&this.world.disableBody(i)},createMultipleCallbackHandler:function(){this.refresh()},refresh:function(){for(var i=this.children.entries,o=0;o{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(55495),c=t(37742),h=t(45319),r=t(83419),n=t(79342),e=t(37747),s=t(20339),a=t(52816),i=t(50792),o=t(63012),l=t(43855),f=t(5470),u=t(94977),v=t(64897),m=t(45170),x=t(96523),g=t(35154),y=t(36383),T=t(25774),C=t(96602),E=t(87841),M=t(59542),P=t(40012),A=t(14087),F=t(89936),L=t(35072),B=t(72624),N=t(2483),U=t(61340),z=t(26099),I=t(15994),G=new r({Extends:i,initialize:function(b,D){i.call(this),this.scene=b,this.bodies=new L,this.staticBodies=new L,this.pendingDestroy=new L,this.colliders=new T,this.gravity=new z(g(D,"gravity.x",0),g(D,"gravity.y",0)),this.bounds=new E(g(D,"x",0),g(D,"y",0),g(D,"width",b.sys.scale.width),g(D,"height",b.sys.scale.height)),this.checkCollision={up:g(D,"checkCollision.up",!0),down:g(D,"checkCollision.down",!0),left:g(D,"checkCollision.left",!0),right:g(D,"checkCollision.right",!0)},this.fps=g(D,"fps",60),this.fixedStep=g(D,"fixedStep",!0),this._elapsed=0,this._frameTime=1/this.fps,this._frameTimeMS=1e3*this._frameTime,this.stepsLastFrame=0,this.timeScale=g(D,"timeScale",1),this.OVERLAP_BIAS=g(D,"overlapBias",4),this.TILE_BIAS=g(D,"tileBias",16),this.forceX=g(D,"forceX",!1),this.isPaused=g(D,"isPaused",!1),this._total=0,this.drawDebug=g(D,"debug",!1),this.debugGraphic,this.defaults={debugShowBody:g(D,"debugShowBody",!0),debugShowStaticBody:g(D,"debugShowStaticBody",!0),debugShowVelocity:g(D,"debugShowVelocity",!0),bodyDebugColor:g(D,"debugBodyColor",16711935),staticBodyDebugColor:g(D,"debugStaticBodyColor",255),velocityDebugColor:g(D,"debugVelocityColor",65280)},this.maxEntries=g(D,"maxEntries",16),this.useTree=g(D,"useTree",!0),this.tree=new M(this.maxEntries),this.staticTree=new M(this.maxEntries),this.treeMinMax={minX:0,minY:0,maxX:0,maxY:0},this._tempMatrix=new U,this._tempMatrix2=new U,this.tileFilterOptions={isColliding:!0,isNotEmpty:!0,hasInterestingFace:!0},this.drawDebug&&this.createDebugGraphic()},enable:function(O,b){b===void 0&&(b=e.DYNAMIC_BODY),Array.isArray(O)||(O=[O]);for(var D=0;D=V;for(this.fixedStep||(X=b*.001,Z=!0,this._elapsed=0),D=0;D=V;)this._elapsed-=V,this.step(X)}},step:function(O){var b,D,X=this.bodies.entries,V=X.length;for(b=0;b0){var Q=this.tree,j=this.staticTree;for(D=Z.entries,X=D.length,O=0;O-1&&O.velocity.length()>_&&(O.velocity.normalize().scale(_),$=_),O.speed=$},separate:function(O,b,D,X,V){var W,K,Z=!1,Q=!0;if(!O.enable||!b.enable||O.checkCollision.none||b.checkCollision.none||!this.intersects(O,b)||!(O.collisionMask&b.collisionCategory)||!(b.collisionMask&O.collisionCategory)||D&&D.call(X,O.gameObject||O,b.gameObject||b)===!1)return Z;if(O.isCircle||b.isCircle){var j=this.separateCircle(O,b,V);j.result?(Z=!0,Q=!1):(W=j.x,K=j.y,Q=!0)}if(Q){var $=!1,_=!1,et=this.OVERLAP_BIAS;V?($=A(O,b,V,et,W),_=F(O,b,V,et,K)):this.forceX||Math.abs(this.gravity.y+O.gravity.y)st&&(_=s(q,rt,st,tt)-ot):rt>nt&&(qst&&(_=s(q,rt,st,nt)-ot)),_*=-1}else _=O.halfWidth+b.halfWidth-a(W,K);O.overlapR=_,b.overlapR=_;var ut=d(W,K),pt=(_+y.EPSILON)*Math.cos(ut),xt=(_+y.EPSILON)*Math.sin(ut),dt={overlap:_,result:!1,x:pt,y:xt};if(D&&(!et||et&&_!==0))return dt.result=!0,dt;if(!et&&_===0||Z&&Q||O.customSeparateX||b.customSeparateX)return dt.x=void 0,dt.y=void 0,dt;var vt=!O.pushable&&!b.pushable;if(et){var yt=W.x-K.x,Pt=W.y-K.y,mt=Math.sqrt(Math.pow(yt,2)+Math.pow(Pt,2)),Tt=(K.x-W.x)/mt||0,Ct=(K.y-W.y)/mt||0,Rt=2*(j.x*Tt+j.y*Ct-$.x*Tt-$.y*Ct)/(O.mass+b.mass);(Z||Q||!O.pushable||!b.pushable)&&(Rt*=2),!Z&&O.pushable&&(j.x=j.x-Rt/O.mass*Tt,j.y=j.y-Rt/O.mass*Ct,j.multiply(O.bounce)),!Q&&b.pushable&&($.x=$.x+Rt/b.mass*Tt,$.y=$.y+Rt/b.mass*Ct,$.multiply(b.bounce)),!Z&&!Q&&(pt*=.5,xt*=.5),(!Z||O.pushable||vt)&&(O.x-=pt,O.y-=xt,O.updateCenter()),(!Q||b.pushable||vt)&&(b.x+=pt,b.y+=xt,b.updateCenter()),dt.result=!0}else!Z&&(O.pushable||vt)&&(O.x-=pt,O.y-=xt,O.updateCenter()),!Q&&(b.pushable||vt)&&(b.x+=pt,b.y+=xt,b.updateCenter()),dt.x=void 0,dt.y=void 0;return dt},intersects:function(O,b){return O===b?!1:!O.isCircle&&!b.isCircle?!(O.right<=b.left||O.bottom<=b.top||O.left>=b.right||O.top>=b.bottom):O.isCircle?b.isCircle?a(O.center,b.center)<=O.halfWidth+b.halfWidth:this.circleBodyIntersects(O,b):this.circleBodyIntersects(b,O)},circleBodyIntersects:function(O,b){var D=h(O.center.x,b.left,b.right),X=h(O.center.y,b.top,b.bottom),V=(O.center.x-D)*(O.center.x-D),W=(O.center.y-X)*(O.center.y-X);return V+W<=O.halfWidth*O.halfWidth},overlap:function(O,b,D,X,V){return D===void 0&&(D=null),X===void 0&&(X=null),V===void 0&&(V=D),this.collideObjects(O,b,D,X,V,!0)},collide:function(O,b,D,X,V){return D===void 0&&(D=null),X===void 0&&(X=null),V===void 0&&(V=D),this.collideObjects(O,b,D,X,V,!1)},collideObjects:function(O,b,D,X,V,W){var K,Z;O.isParent&&(O.physicsType===void 0||b===void 0||O===b)&&(O=O.children.entries),b&&b.isParent&&b.physicsType===void 0&&(b=b.children.entries);var Q=Array.isArray(O),j=Array.isArray(b);if(this._total=0,!Q&&!j)this.collideHandler(O,b,D,X,V,W);else if(!Q&&j)for(K=0;K0},collideHandler:function(O,b,D,X,V,W){if(b===void 0&&O.isParent)return this.collideGroupVsGroup(O,O,D,X,V,W);if(!O||!b)return!1;if(O.body||O.isBody){if(b.body||b.isBody)return this.collideSpriteVsSprite(O,b,D,X,V,W);if(b.isParent)return this.collideSpriteVsGroup(O,b,D,X,V,W);if(b.isTilemap)return this.collideSpriteVsTilemapLayer(O,b,D,X,V,W)}else if(O.isParent){if(b.body||b.isBody)return this.collideSpriteVsGroup(b,O,D,X,V,W);if(b.isParent)return this.collideGroupVsGroup(O,b,D,X,V,W);if(b.isTilemap)return this.collideGroupVsTilemapLayer(O,b,D,X,V,W)}else if(O.isTilemap){if(b.body||b.isBody)return this.collideSpriteVsTilemapLayer(b,O,D,X,V,W);if(b.isParent)return this.collideGroupVsTilemapLayer(b,O,D,X,V,W)}},canCollide:function(O,b){return O&&b&&(O.collisionMask&b.collisionCategory)!==0&&(b.collisionMask&O.collisionCategory)!==0},collideSpriteVsSprite:function(O,b,D,X,V,W){var K=O.isBody?O:O.body,Z=b.isBody?b:b.body;return this.canCollide(K,Z)?(this.separate(K,Z,X,V,W)&&(D&&D.call(V,O,b),this._total++),!0):!1},collideSpriteVsGroup:function(O,b,D,X,V,W){var K=O.isBody?O:O.body;if(!(b.getLength()===0||!K||!K.enable||K.checkCollision.none||!this.canCollide(K,b))){var Z,Q,j;if(this.useTree||b.physicsType===e.STATIC_BODY){var $=this.treeMinMax;$.minX=K.left,$.minY=K.top,$.maxX=K.right,$.maxY=K.bottom;var _=b.physicsType===e.DYNAMIC_BODY?this.tree.search($):this.staticTree.search($);for(Q=_.length,Z=0;Z{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S={setAcceleration:function(t,d){return this.body.acceleration.set(t,d),this},setAccelerationX:function(t){return this.body.acceleration.x=t,this},setAccelerationY:function(t){return this.body.acceleration.y=t,this}};p.exports=S},59023:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S={setAngularVelocity:function(t){return this.body.angularVelocity=t,this},setAngularAcceleration:function(t){return this.body.angularAcceleration=t,this},setAngularDrag:function(t){return this.body.angularDrag=t,this}};p.exports=S},62069:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S={setBounce:function(t,d){return this.body.bounce.set(t,d),this},setBounceX:function(t){return this.body.bounce.x=t,this},setBounceY:function(t){return this.body.bounce.y=t,this},setCollideWorldBounds:function(t,d,c,h){return this.body.setCollideWorldBounds(t,d,c,h),this}};p.exports=S},78389:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(79599),c={setCollisionCategory:function(h){var r=this.body?this.body:this;return r.collisionCategory=h,this},willCollideWith:function(h){var r=this.body?this.body:this;return(r.collisionMask&h)!==0},addCollidesWith:function(h){var r=this.body?this.body:this;return r.collisionMask=r.collisionMask|h,this},removeCollidesWith:function(h){var r=this.body?this.body:this;return r.collisionMask=r.collisionMask&~h,this},setCollidesWith:function(h){var r=this.body?this.body:this;return r.collisionMask=d(h),this},resetCollisionCategory:function(){var h=this.body?this.body:this;return h.collisionCategory=1,h.collisionMask=2147483647,this}};p.exports=c},87118:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S={setDebug:function(t,d,c){return this.debugShowBody=t,this.debugShowVelocity=d,this.debugBodyColor=c,this},setDebugBodyColor:function(t){return this.body.debugBodyColor=t,this},debugShowBody:{get:function(){return this.body.debugShowBody},set:function(t){this.body.debugShowBody=t}},debugShowVelocity:{get:function(){return this.body.debugShowVelocity},set:function(t){this.body.debugShowVelocity=t}},debugBodyColor:{get:function(){return this.body.debugBodyColor},set:function(t){this.body.debugBodyColor=t}}};p.exports=S},52819:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S={setDrag:function(t,d){return this.body.drag.set(t,d),this},setDragX:function(t){return this.body.drag.x=t,this},setDragY:function(t){return this.body.drag.y=t,this},setDamping:function(t){return this.body.useDamping=t,this}};p.exports=S},4074:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S={setDirectControl:function(t){return this.body.setDirectControl(t),this},enableBody:function(t,d,c,h,r){return t&&this.body.reset(d,c),h&&(this.body.gameObject.active=!0),r&&(this.body.gameObject.visible=!0),this.body.enable=!0,this},disableBody:function(t,d){return t===void 0&&(t=!1),d===void 0&&(d=!1),this.body.stop(),this.body.enable=!1,t&&(this.body.gameObject.active=!1),d&&(this.body.gameObject.visible=!1),this},refreshBody:function(){return this.body.updateFromGameObject(),this}};p.exports=S},40831:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S={setFriction:function(t,d){return this.body.friction.set(t,d),this},setFrictionX:function(t){return this.body.friction.x=t,this},setFrictionY:function(t){return this.body.friction.y=t,this}};p.exports=S},26775:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S={setGravity:function(t,d){return this.body.gravity.set(t,d),this},setGravityX:function(t){return this.body.gravity.x=t,this},setGravityY:function(t){return this.body.gravity.y=t,this}};p.exports=S},9437:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S={setImmovable:function(t){return t===void 0&&(t=!0),this.body.immovable=t,this}};p.exports=S},30621:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S={setMass:function(t){return this.body.mass=t,this}};p.exports=S},72441:(p,S,t)=>{var d=t(47956),c=t(96503),h=t(2044),r=t(81491),n=function(e,s,a,i,o,l){var f=d(e,s-i,a-i,2*i,2*i,o,l);if(f.length===0)return f;for(var u=new c(s,a,i),v=new c,m=[],x=0;x{var S=function(t,d,c,h,r,n,e){n===void 0&&(n=!0),e===void 0&&(e=!1);var s=[],a=[],i=t.treeMinMax;if(i.minX=d,i.minY=c,i.maxX=d+h,i.maxY=c+r,e&&(a=t.staticTree.search(i)),n&&t.useTree)s=t.tree.search(i);else if(n){var o=t.bodies,l={position:{x:d,y:c},left:d,top:c,right:d+h,bottom:c+r,isCircle:!1},f=t.intersects;o.iterate(function(u){f(u,l)&&s.push(u)})}return a.concat(s)};p.exports=S},62121:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S={setPushable:function(t){return t===void 0&&(t=!0),this.body.pushable=t,this}};p.exports=S},29384:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S={setOffset:function(t,d){return this.body.setOffset(t,d),this},setSize:function(t,d,c){return this.body.setSize(t,d,c),this},setBodySize:function(t,d,c){return this.body.setSize(t,d,c),this},setCircle:function(t,d,c){return this.body.setCircle(t,d,c),this}};p.exports=S},15098:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S={setVelocity:function(t,d){return this.body.setVelocity(t,d),this},setVelocityX:function(t){return this.body.setVelocityX(t),this},setVelocityY:function(t){return this.body.setVelocityY(t),this},setMaxVelocity:function(t,d){return this.body.maxVelocity.set(t,d),this}};p.exports=S},92209:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports={Acceleration:t(1093),Angular:t(59023),Bounce:t(62069),Collision:t(78389),Debug:t(87118),Drag:t(52819),Enable:t(4074),Friction:t(40831),Gravity:t(26775),Immovable:t(9437),Mass:t(30621),OverlapCirc:t(72441),OverlapRect:t(47956),Pushable:t(62121),Size:t(29384),Velocity:t(15098)}},37747:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S={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};p.exports=S},20009:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports="collide"},36768:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports="overlap"},60473:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports="pause"},89954:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports="resume"},61804:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports="tilecollide"},7161:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports="tileoverlap"},34689:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports="worldbounds"},16006:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports="worldstep"},63012:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/p.exports={COLLIDE:t(20009),OVERLAP:t(36768),PAUSE:t(60473),RESUME:t(89954),TILE_COLLIDE:t(61804),TILE_OVERLAP:t(7161),WORLD_BOUNDS:t(34689),WORLD_STEP:t(16006)}},27064:(p,S,t)=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var d=t(37747),c=t(79291),h={ArcadePhysics:t(86689),Body:t(37742),Collider:t(79342),Components:t(92209),Events:t(63012),Factory:t(66022),GetCollidesWith:t(79599),GetOverlapX:t(64897),GetOverlapY:t(45170),SeparateX:t(14087),SeparateY:t(89936),Group:t(60758),Image:t(71289),Sprite:t(13759),StaticBody:t(72624),StaticGroup:t(71464),Tilemap:t(55173),World:t(82248)};h=c(!1,h,d),p.exports=h},96602:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d){return t.collisionCallback?!t.collisionCallback.call(t.collisionCallbackContext,d,t):t.layer.callbacks[t.index]?!t.layer.callbacks[t.index].callback.call(t.layer.callbacks[t.index].callbackContext,d,t):!0};p.exports=S},36294:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d){d<0?(t.blocked.none=!1,t.blocked.left=!0):d>0&&(t.blocked.none=!1,t.blocked.right=!0),t.position.x-=d,t.updateCenter(),t.bounce.x===0?t.velocity.x=0:t.velocity.x=-t.velocity.x*t.bounce.x};p.exports=S},67013:p=>{/**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/var S=function(t,d){d<0?(t.blocked.none=!1,t.blocked.up=!0):d>0&&(t.blocked.none=!1,t.blocked.down=!0),t.position.y-=d,t.updateCenter(),t.bounce.y===0?t.velocity.y=0:t.velocity.y=-t.velocity.y*t.bounce.y};p.exports=S},40012:(p,S,t)=>{/**
* @author Richard Davey