diff --git a/assets/index-v9Cq0U2T.js b/assets/index-afU21VDX.js similarity index 55% rename from assets/index-v9Cq0U2T.js rename to assets/index-afU21VDX.js index 1f862e9..4f28058 100644 --- a/assets/index-v9Cq0U2T.js +++ b/assets/index-afU21VDX.js @@ -1,208 +1,208 @@ -(function(){const q=document.createElement("link").relList;if(q&&q.supports&&q.supports("modulepreload"))return;for(const $ of document.querySelectorAll('link[rel="modulepreload"]'))tt($);new MutationObserver($=>{for(const k of $)if(k.type==="childList")for(const c of k.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&tt(c)}).observe(document,{childList:!0,subtree:!0});function nt($){const k={};return $.integrity&&(k.integrity=$.integrity),$.referrerPolicy&&(k.referrerPolicy=$.referrerPolicy),$.crossOrigin==="use-credentials"?k.credentials="include":$.crossOrigin==="anonymous"?k.credentials="omit":k.credentials="same-origin",k}function tt($){if($.ep)return;$.ep=!0;const k=nt($);fetch($.href,k)}})();var ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function re(J){return J&&J.__esModule&&Object.prototype.hasOwnProperty.call(J,"default")?J.default:J}var Jt={exports:{}};(function(J,q){(function(tt,$){J.exports=$()})(ht,()=>(()=>{var nt={50792:c=>{var T=Object.prototype.hasOwnProperty,t="~";function d(){}Object.create&&(d.prototype=Object.create(null),new d().__proto__||(t=!1));function p(e,s,l){this.fn=e,this.context=s,this.once=l||!1}function a(e,s,l,i,o){if(typeof l!="function")throw new TypeError("The listener must be a function");var u=new p(l,i||e,o),h=t?t+s:s;return e._events[h]?e._events[h].fn?e._events[h]=[e._events[h],u]:e._events[h].push(u):(e._events[h]=u,e._eventsCount++),e}function r(e,s){--e._eventsCount===0?e._events=new d:delete e._events[s]}function n(){this._events=new d,this._eventsCount=0}n.prototype.eventNames=function(){var s=[],l,i;if(this._eventsCount===0)return s;for(i in l=this._events)T.call(l,i)&&s.push(t?i.slice(1):i);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(l)):s},n.prototype.listeners=function(s){var l=t?t+s:s,i=this._events[l];if(!i)return[];if(i.fn)return[i.fn];for(var o=0,u=i.length,h=new Array(u);o{/** +(function(){const q=document.createElement("link").relList;if(q&&q.supports&&q.supports("modulepreload"))return;for(const $ of document.querySelectorAll('link[rel="modulepreload"]'))tt($);new MutationObserver($=>{for(const k of $)if(k.type==="childList")for(const c of k.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&tt(c)}).observe(document,{childList:!0,subtree:!0});function nt($){const k={};return $.integrity&&(k.integrity=$.integrity),$.referrerPolicy&&(k.referrerPolicy=$.referrerPolicy),$.crossOrigin==="use-credentials"?k.credentials="include":$.crossOrigin==="anonymous"?k.credentials="omit":k.credentials="same-origin",k}function tt($){if($.ep)return;$.ep=!0;const k=nt($);fetch($.href,k)}})();var ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ue(J){return J&&J.__esModule&&Object.prototype.hasOwnProperty.call(J,"default")?J.default:J}var kt={exports:{}};(function(J,q){(function(tt,$){J.exports=$()})(ht,()=>(()=>{var nt={50792:c=>{var T=Object.prototype.hasOwnProperty,t="~";function d(){}Object.create&&(d.prototype=Object.create(null),new d().__proto__||(t=!1));function p(e,s,o){this.fn=e,this.context=s,this.once=o||!1}function l(e,s,o,i,a){if(typeof o!="function")throw new TypeError("The listener must be a function");var u=new p(o,i||e,a),h=t?t+s:s;return e._events[h]?e._events[h].fn?e._events[h]=[e._events[h],u]:e._events[h].push(u):(e._events[h]=u,e._eventsCount++),e}function r(e,s){--e._eventsCount===0?e._events=new d:delete e._events[s]}function n(){this._events=new d,this._eventsCount=0}n.prototype.eventNames=function(){var s=[],o,i;if(this._eventsCount===0)return s;for(i in o=this._events)T.call(o,i)&&s.push(t?i.slice(1):i);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(o)):s},n.prototype.listeners=function(s){var o=t?t+s:s,i=this._events[o];if(!i)return[];if(i.fn)return[i.fn];for(var a=0,u=i.length,h=new Array(u);a{/** * @author samme * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(38829),p=function(a,r,n,e){for(var s=a[0],l=1;l{/** + */var d=t(38829),p=function(l,r,n,e){for(var s=l[0],o=1;o{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(66979),p=function(a,r,n,e,s){return d(a,"angle",r,n,e,s)};c.exports=p},60757:c=>{/** + */var d=t(66979),p=function(l,r,n,e,s){return d(l,"angle",r,n,e,s)};c.exports=p},60757:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){for(var a=0;a{/** + */var T=function(t,d,p){for(var l=0;l{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){p===void 0&&(p=0);for(var a=p;a{/** + */var T=function(t,d,p){p===void 0&&(p=0);for(var l=p;l{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){p===void 0&&(p=0);for(var a=t.length-1;a>=p;a--){var r=t[a],n=!0;for(var e in d)r[e]!==d[e]&&(n=!1);if(n)return r}return null};c.exports=T},94420:(c,T,t)=>{/** + */var T=function(t,d,p){p===void 0&&(p=0);for(var l=t.length-1;l>=p;l--){var r=t[l],n=!0;for(var e in d)r[e]!==d[e]&&(n=!1);if(n)return r}return null};c.exports=T},94420:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(11879),p=t(60461),a=t(95540),r=t(29747),n=t(41481),e=new n({sys:{queueDepthSort:r,events:{once:r}}},0,0,1,1).setOrigin(0,0),s=function(l,i){i===void 0&&(i={});var o=i.hasOwnProperty("width"),u=i.hasOwnProperty("height"),h=a(i,"width",-1),f=a(i,"height",-1),v=a(i,"cellWidth",1),m=a(i,"cellHeight",v),x=a(i,"position",p.TOP_LEFT),g=a(i,"x",0),y=a(i,"y",0),S=0,C=0,E=h*v,A=f*m;e.setPosition(g,y),e.setSize(v,m);for(var P=0;P{/** + */var d=t(11879),p=t(60461),l=t(95540),r=t(29747),n=t(41481),e=new n({sys:{queueDepthSort:r,events:{once:r}}},0,0,1,1).setOrigin(0,0),s=function(o,i){i===void 0&&(i={});var a=i.hasOwnProperty("width"),u=i.hasOwnProperty("height"),h=l(i,"width",-1),f=l(i,"height",-1),v=l(i,"cellWidth",1),m=l(i,"cellHeight",v),g=l(i,"position",p.TOP_LEFT),x=l(i,"x",0),y=l(i,"y",0),S=0,C=0,E=h*v,M=f*m;e.setPosition(x,y),e.setSize(v,m);for(var P=0;P{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(66979),p=function(a,r,n,e,s){return d(a,"alpha",r,n,e,s)};c.exports=p},67285:(c,T,t)=>{/** + */var d=t(66979),p=function(l,r,n,e,s){return d(l,"alpha",r,n,e,s)};c.exports=p},67285:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(66979),p=function(a,r,n,e,s){return d(a,"x",r,n,e,s)};c.exports=p},9074:(c,T,t)=>{/** + */var d=t(66979),p=function(l,r,n,e,s){return d(l,"x",r,n,e,s)};c.exports=p},9074:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(66979),p=function(a,r,n,e,s,l,i){return n==null&&(n=r),d(a,"x",r,e,l,i),d(a,"y",n,s,l,i)};c.exports=p},75222:(c,T,t)=>{/** + */var d=t(66979),p=function(l,r,n,e,s,o,i){return n==null&&(n=r),d(l,"x",r,e,o,i),d(l,"y",n,s,o,i)};c.exports=p},75222:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(66979),p=function(a,r,n,e,s){return d(a,"y",r,n,e,s)};c.exports=p},22983:c=>{/** + */var d=t(66979),p=function(l,r,n,e,s){return d(l,"y",r,n,e,s)};c.exports=p},22983:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){p===void 0&&(p=0),a===void 0&&(a=6.28);for(var r=p,n=(a-p)/t.length,e=d.x,s=d.y,l=d.radius,i=0;i{/** + */var T=function(t,d,p,l){p===void 0&&(p=0),l===void 0&&(l=6.28);for(var r=p,n=(l-p)/t.length,e=d.x,s=d.y,o=d.radius,i=0;i{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){p===void 0&&(p=0),a===void 0&&(a=6.28);for(var r=p,n=(a-p)/t.length,e=d.width/2,s=d.height/2,l=0;l{/** + */var T=function(t,d,p,l){p===void 0&&(p=0),l===void 0&&(l=6.28);for(var r=p,n=(l-p)/t.length,e=d.width/2,s=d.height/2,o=0;o{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(15258),p=t(26708),a=function(r,n,e){var s;e?s=p(n,e,r.length):s=d(n,r.length);for(var l=0;l{/** + */var d=t(15258),p=t(26708),l=function(r,n,e){var s;e?s=p(n,e,r.length):s=d(n,r.length);for(var o=0;o{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(14649),p=t(86003),a=t(49498),r=function(n,e,s){s===void 0&&(s=0);var l=d(e,!1,n.length);s>0?p(l,s):s<0&&a(l,Math.abs(s));for(var i=0;i{/** + */var d=t(14649),p=t(86003),l=t(49498),r=function(n,e,s){s===void 0&&(s=0);var o=d(e,!1,n.length);s>0?p(o,s):s<0&&l(o,Math.abs(s));for(var i=0;i{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(84993),p=function(a,r,n){var e=d({x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2},n),s=d({x1:r.x2,y1:r.y2,x2:r.x3,y2:r.y3},n),l=d({x1:r.x3,y1:r.y3,x2:r.x1,y2:r.y1},n);e.pop(),s.pop(),l.pop(),e=e.concat(s,l);for(var i=e.length/a.length,o=0,u=0;u{/** + */var d=t(84993),p=function(l,r,n){var e=d({x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2},n),s=d({x1:r.x2,y1:r.y2,x2:r.x3,y2:r.y3},n),o=d({x1:r.x3,y1:r.y3,x2:r.x1,y2:r.y1},n);e.pop(),s.pop(),o.pop(),e=e.concat(s,o);for(var i=e.length/l.length,a=0,u=0;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){for(var a=0;a{/** + */var T=function(t,d,p){for(var l=0;l{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a,r,n){a===void 0&&(a=0),r===void 0&&(r=0),n===void 0&&(n=1);var e,s=0,l=t.length;if(n===1)for(e=r;e=0;e--)t[e][d]+=p+s*a,s++;return t};c.exports=T},43967:c=>{/** + */var T=function(t,d,p,l,r,n){l===void 0&&(l=0),r===void 0&&(r=0),n===void 0&&(n=1);var e,s=0,o=t.length;if(n===1)for(e=r;e=0;e--)t[e][d]+=p+s*l,s++;return t};c.exports=T},43967:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a,r,n){a===void 0&&(a=0),r===void 0&&(r=0),n===void 0&&(n=1);var e,s=0,l=t.length;if(n===1)for(e=r;e=0;e--)t[e][d]=p+s*a,s++;return t};c.exports=T},88926:(c,T,t)=>{/** + */var T=function(t,d,p,l,r,n){l===void 0&&(l=0),r===void 0&&(r=0),n===void 0&&(n=1);var e,s=0,o=t.length;if(n===1)for(e=r;e=0;e--)t[e][d]=p+s*l,s++;return t};c.exports=T},88926:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(28176),p=function(a,r){for(var n=0;n{/** + */var d=t(28176),p=function(l,r){for(var n=0;n{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(24820),p=function(a,r){for(var n=0;n{/** + */var d=t(24820),p=function(l,r){for(var n=0;n{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(65822),p=function(a,r){for(var n=0;n{/** + */var d=t(65822),p=function(l,r){for(var n=0;n{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(26597),p=function(a,r){for(var n=0;n{/** + */var d=t(26597),p=function(l,r){for(var n=0;n{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(90260),p=function(a,r){for(var n=0;n{/** + */var d=t(90260),p=function(l,r){for(var n=0;n{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(66979),p=function(a,r,n,e,s){return d(a,"rotation",r,n,e,s)};c.exports=p},91051:(c,T,t)=>{/** + */var d=t(66979),p=function(l,r,n,e,s){return d(l,"rotation",r,n,e,s)};c.exports=p},91051:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(1163),p=t(20339),a=function(r,n,e){for(var s=n.x,l=n.y,i=0;i{/** + */var d=t(1163),p=t(20339),l=function(r,n,e){for(var s=n.x,o=n.y,i=0;i{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(1163),p=function(a,r,n,e){var s=r.x,l=r.y;if(e===0)return a;for(var i=0;i{/** + */var d=t(1163),p=function(l,r,n,e){var s=r.x,o=r.y;if(e===0)return l;for(var i=0;i{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(66979),p=function(a,r,n,e,s){return d(a,"scaleX",r,n,e,s)};c.exports=p},94868:(c,T,t)=>{/** + */var d=t(66979),p=function(l,r,n,e,s){return d(l,"scaleX",r,n,e,s)};c.exports=p},94868:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(66979),p=function(a,r,n,e,s,l,i){return n==null&&(n=r),d(a,"scaleX",r,e,l,i),d(a,"scaleY",n,s,l,i)};c.exports=p},95532:(c,T,t)=>{/** + */var d=t(66979),p=function(l,r,n,e,s,o,i){return n==null&&(n=r),d(l,"scaleX",r,e,o,i),d(l,"scaleY",n,s,o,i)};c.exports=p},95532:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(66979),p=function(a,r,n,e,s){return d(a,"scaleY",r,n,e,s)};c.exports=p},8689:(c,T,t)=>{/** + */var d=t(66979),p=function(l,r,n,e,s){return d(l,"scaleY",r,n,e,s)};c.exports=p},8689:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(43967),p=function(a,r,n,e,s){return d(a,"alpha",r,n,e,s)};c.exports=p},2645:(c,T,t)=>{/** + */var d=t(43967),p=function(l,r,n,e,s){return d(l,"alpha",r,n,e,s)};c.exports=p},2645:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(43967),p=function(a,r,n,e){return d(a,"blendMode",r,0,n,e)};c.exports=p},32372:(c,T,t)=>{/** + */var d=t(43967),p=function(l,r,n,e){return d(l,"blendMode",r,0,n,e)};c.exports=p},32372:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(43967),p=function(a,r,n,e,s){return d(a,"depth",r,n,e,s)};c.exports=p},85373:c=>{/** + */var d=t(43967),p=function(l,r,n,e,s){return d(l,"depth",r,n,e,s)};c.exports=p},85373:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){for(var a=0;a{/** + */var T=function(t,d,p){for(var l=0;l{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(43967),p=function(a,r,n,e,s,l,i){return n==null&&(n=r),d(a,"originX",r,e,l,i),d(a,"originY",n,s,l,i),a.forEach(function(o){o.updateDisplayOrigin()}),a};c.exports=p},79939:(c,T,t)=>{/** + */var d=t(43967),p=function(l,r,n,e,s,o,i){return n==null&&(n=r),d(l,"originX",r,e,o,i),d(l,"originY",n,s,o,i),l.forEach(function(a){a.updateDisplayOrigin()}),l};c.exports=p},79939:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(43967),p=function(a,r,n,e,s){return d(a,"rotation",r,n,e,s)};c.exports=p},2699:(c,T,t)=>{/** + */var d=t(43967),p=function(l,r,n,e,s){return d(l,"rotation",r,n,e,s)};c.exports=p},2699:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(43967),p=function(a,r,n,e,s,l,i){return n==null&&(n=r),d(a,"scaleX",r,e,l,i),d(a,"scaleY",n,s,l,i)};c.exports=p},98739:(c,T,t)=>{/** + */var d=t(43967),p=function(l,r,n,e,s,o,i){return n==null&&(n=r),d(l,"scaleX",r,e,o,i),d(l,"scaleY",n,s,o,i)};c.exports=p},98739:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(43967),p=function(a,r,n,e,s){return d(a,"scaleX",r,n,e,s)};c.exports=p},98476:(c,T,t)=>{/** + */var d=t(43967),p=function(l,r,n,e,s){return d(l,"scaleX",r,n,e,s)};c.exports=p},98476:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(43967),p=function(a,r,n,e,s){return d(a,"scaleY",r,n,e,s)};c.exports=p},6207:(c,T,t)=>{/** + */var d=t(43967),p=function(l,r,n,e,s){return d(l,"scaleY",r,n,e,s)};c.exports=p},6207:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(43967),p=function(a,r,n,e,s,l,i){return n==null&&(n=r),d(a,"scrollFactorX",r,e,l,i),d(a,"scrollFactorY",n,s,l,i)};c.exports=p},6607:(c,T,t)=>{/** + */var d=t(43967),p=function(l,r,n,e,s,o,i){return n==null&&(n=r),d(l,"scrollFactorX",r,e,o,i),d(l,"scrollFactorY",n,s,o,i)};c.exports=p},6607:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(43967),p=function(a,r,n,e,s){return d(a,"scrollFactorX",r,n,e,s)};c.exports=p},72248:(c,T,t)=>{/** + */var d=t(43967),p=function(l,r,n,e,s){return d(l,"scrollFactorX",r,n,e,s)};c.exports=p},72248:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(43967),p=function(a,r,n,e,s){return d(a,"scrollFactorY",r,n,e,s)};c.exports=p},14036:c=>{/** + */var d=t(43967),p=function(l,r,n,e,s){return d(l,"scrollFactorY",r,n,e,s)};c.exports=p},14036:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a,r){for(var n=0;n{/** + */var T=function(t,d,p,l,r){for(var n=0;n{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(43967),p=function(a,r,n,e){return d(a,"visible",r,0,n,e)};c.exports=p},77597:(c,T,t)=>{/** + */var d=t(43967),p=function(l,r,n,e){return d(l,"visible",r,0,n,e)};c.exports=p},77597:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(43967),p=function(a,r,n,e,s){return d(a,"x",r,n,e,s)};c.exports=p},83194:(c,T,t)=>{/** + */var d=t(43967),p=function(l,r,n,e,s){return d(l,"x",r,n,e,s)};c.exports=p},83194:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(43967),p=function(a,r,n,e,s,l,i){return n==null&&(n=r),d(a,"x",r,e,l,i),d(a,"y",n,s,l,i)};c.exports=p},67678:(c,T,t)=>{/** + */var d=t(43967),p=function(l,r,n,e,s,o,i){return n==null&&(n=r),d(l,"x",r,e,o,i),d(l,"y",n,s,o,i)};c.exports=p},67678:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(43967),p=function(a,r,n,e,s){return d(a,"y",r,n,e,s)};c.exports=p},35850:(c,T,t)=>{/** + */var d=t(43967),p=function(l,r,n,e,s){return d(l,"y",r,n,e,s)};c.exports=p},35850:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(26099),p=function(a,r,n,e,s){e===void 0&&(e=0),s===void 0&&(s=new d);var l,i,o=a.length;if(o===1)l=a[0].x,i=a[0].y,a[0].x=r,a[0].y=n;else{var u=1,h=0;e===0&&(h=o-1,u=o-2),l=a[h].x,i=a[h].y,a[h].x=r,a[h].y=n;for(var f=0;f=o||u===-1)){var v=a[u],m=v.x,x=v.y;v.x=l,v.y=i,l=m,i=x,e===0?u--:u++}}return s.x=l,s.y=i,s};c.exports=p},8628:(c,T,t)=>{/** + */var d=t(26099),p=function(l,r,n,e,s){e===void 0&&(e=0),s===void 0&&(s=new d);var o,i,a=l.length;if(a===1)o=l[0].x,i=l[0].y,l[0].x=r,l[0].y=n;else{var u=1,h=0;e===0&&(h=a-1,u=a-2),o=l[h].x,i=l[h].y,l[h].x=r,l[h].y=n;for(var f=0;f=a||u===-1)){var v=l[u],m=v.x,g=v.y;v.x=o,v.y=i,o=m,i=g,e===0?u--:u++}}return s.x=o,s.y=i,s};c.exports=p},8628:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(33680),p=function(a){return d(a)};c.exports=p},21837:(c,T,t)=>{/** + */var d=t(33680),p=function(l){return d(l)};c.exports=p},21837:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(7602),p=function(a,r,n,e,s){s===void 0&&(s=!1);var l=Math.abs(e-n)/a.length,i;if(s)for(i=0;i{/** + */var d=t(7602),p=function(l,r,n,e,s){s===void 0&&(s=!1);var o=Math.abs(e-n)/l.length,i;if(s)for(i=0;i{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(54261),p=function(a,r,n,e,s){s===void 0&&(s=!1);var l=Math.abs(e-n)/a.length,i;if(s)for(i=0;i{/** + */var d=t(54261),p=function(l,r,n,e,s){s===void 0&&(s=!1);var o=Math.abs(e-n)/l.length,i;if(s)for(i=0;i{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a,r){if(r===void 0&&(r=!1),t.length===0)return t;if(t.length===1)return r?t[0][d]+=(a+p)/2:t[0][d]=(a+p)/2,t;var n=Math.abs(a-p)/(t.length-1),e;if(r)for(e=0;e{/** + */var T=function(t,d,p,l,r){if(r===void 0&&(r=!1),t.length===0)return t;if(t.length===1)return r?t[0][d]+=(l+p)/2:t[0][d]=(l+p)/2,t;var n=Math.abs(l-p)/(t.length-1),e;if(r)for(e=0;e{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -211,7 +211,7 @@ * @author samme * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(15994),p=function(a,r,n){n===void 0&&(n=0);for(var e=0;e{/** + */var d=t(15994),p=function(l,r,n){n===void 0&&(n=0);for(var e=0;e{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -219,19 +219,19 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(45319),p=t(83419),a=t(74943),r=t(81957),n=t(41138),e=t(35154),s=t(90126),l=new p({initialize:function(o,u,h){this.manager=o,this.key=u,this.type="frame",this.frames=this.getFrames(o.textureManager,e(h,"frames",[]),e(h,"defaultTextureKey",null),e(h,"sortFrames",!0)),this.frameRate=e(h,"frameRate",null),this.duration=e(h,"duration",null),this.msPerFrame,this.skipMissedFrames=e(h,"skipMissedFrames",!0),this.delay=e(h,"delay",0),this.repeat=e(h,"repeat",0),this.repeatDelay=e(h,"repeatDelay",0),this.yoyo=e(h,"yoyo",!1),this.showBeforeDelay=e(h,"showBeforeDelay",!1),this.showOnStart=e(h,"showOnStart",!1),this.hideOnComplete=e(h,"hideOnComplete",!1),this.randomFrame=e(h,"randomFrame",!1),this.paused=!1,this.calculateDuration(this,this.getTotalFrames(),this.duration,this.frameRate),this.manager.on&&(this.manager.on(a.PAUSE_ALL,this.pause,this),this.manager.on(a.RESUME_ALL,this.resume,this))},getTotalFrames:function(){return this.frames.length},calculateDuration:function(i,o,u,h){u===null&&h===null?(i.frameRate=24,i.duration=24/o*1e3):u&&h===null?(i.duration=u,i.frameRate=o/(u/1e3)):(i.frameRate=h,i.duration=o/h*1e3),i.msPerFrame=1e3/i.frameRate},addFrame:function(i){return this.addFrameAt(this.frames.length,i)},addFrameAt:function(i,o){var u=this.getFrames(this.manager.textureManager,o);if(u.length>0){if(i===0)this.frames=u.concat(this.frames);else if(i===this.frames.length)this.frames=this.frames.concat(u);else{var h=this.frames.slice(0,i),f=this.frames.slice(i);this.frames=h.concat(u,f)}this.updateFrameSequence()}return this},checkFrame:function(i){return i>=0&&i0){m.isLast=!0,m.nextFrame=f[0],f[0].prevFrame=m;var F=1/(f.length-1);for(g=0;g0?i.inReverse&&i.forward?i.forward=!1:this.repeatAnimation(i):i.complete():this.updateAndGetNextTick(i,o.nextFrame)},handleYoyoFrame:function(i,o){if(o||(o=!1),i.inReverse===!o&&i.repeatCounter>0){(i.repeatDelay===0||i.pendingRepeat)&&(i.forward=o),this.repeatAnimation(i);return}if(i.inReverse!==o&&i.repeatCounter===0){i.complete();return}i.forward=o;var u=o?i.currentFrame.nextFrame:i.currentFrame.prevFrame;this.updateAndGetNextTick(i,u)},getLastFrame:function(){return this.frames[this.frames.length-1]},previousFrame:function(i){var o=i.currentFrame;o.isFirst?i.yoyo?this.handleYoyoFrame(i,!0):i.repeatCounter>0?i.inReverse&&!i.forward?this.repeatAnimation(i):(i.forward=!0,this.repeatAnimation(i)):i.complete():this.updateAndGetNextTick(i,o.prevFrame)},updateAndGetNextTick:function(i,o){i.setCurrentFrame(o),this.getNextTick(i)},removeFrame:function(i){var o=this.frames.indexOf(i);return o!==-1&&this.removeFrameAt(o),this},removeFrameAt:function(i){return this.frames.splice(i,1),this.updateFrameSequence(),this},repeatAnimation:function(i){if(i._pendingStop===2){if(i._pendingStopValue===0)return i.stop();i._pendingStopValue--}i.repeatDelay>0&&!i.pendingRepeat?(i.pendingRepeat=!0,i.accumulator-=i.nextTick,i.nextTick+=i.repeatDelay):(i.repeatCounter--,i.forward?i.setCurrentFrame(i.currentFrame.nextFrame):i.setCurrentFrame(i.currentFrame.prevFrame),i.isPlaying&&(this.getNextTick(i),i.handleRepeat()))},toJSON:function(){var i={key:this.key,type:this.type,frames:[],frameRate:this.frameRate,duration:this.duration,skipMissedFrames:this.skipMissedFrames,delay:this.delay,repeat:this.repeat,repeatDelay:this.repeatDelay,yoyo:this.yoyo,showBeforeDelay:this.showBeforeDelay,showOnStart:this.showOnStart,randomFrame:this.randomFrame,hideOnComplete:this.hideOnComplete};return this.frames.forEach(function(o){i.frames.push(o.toJSON())}),i},updateFrameSequence:function(){for(var i=this.frames.length,o=1/(i-1),u,h=0;h1?(u.isLast=!0,u.prevFrame=this.frames[i-2],u.nextFrame=this.frames[0]):i>1&&(u.prevFrame=this.frames[h-1],u.nextFrame=this.frames[h+1]);return this},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this},destroy:function(){this.manager.off&&(this.manager.off(a.PAUSE_ALL,this.pause,this),this.manager.off(a.RESUME_ALL,this.resume,this)),this.manager.remove(this.key);for(var i=0;i{/** + */var d=t(45319),p=t(83419),l=t(74943),r=t(81957),n=t(41138),e=t(35154),s=t(90126),o=new p({initialize:function(a,u,h){this.manager=a,this.key=u,this.type="frame",this.frames=this.getFrames(a.textureManager,e(h,"frames",[]),e(h,"defaultTextureKey",null),e(h,"sortFrames",!0)),this.frameRate=e(h,"frameRate",null),this.duration=e(h,"duration",null),this.msPerFrame,this.skipMissedFrames=e(h,"skipMissedFrames",!0),this.delay=e(h,"delay",0),this.repeat=e(h,"repeat",0),this.repeatDelay=e(h,"repeatDelay",0),this.yoyo=e(h,"yoyo",!1),this.showBeforeDelay=e(h,"showBeforeDelay",!1),this.showOnStart=e(h,"showOnStart",!1),this.hideOnComplete=e(h,"hideOnComplete",!1),this.randomFrame=e(h,"randomFrame",!1),this.paused=!1,this.calculateDuration(this,this.getTotalFrames(),this.duration,this.frameRate),this.manager.on&&(this.manager.on(l.PAUSE_ALL,this.pause,this),this.manager.on(l.RESUME_ALL,this.resume,this))},getTotalFrames:function(){return this.frames.length},calculateDuration:function(i,a,u,h){u===null&&h===null?(i.frameRate=24,i.duration=24/a*1e3):u&&h===null?(i.duration=u,i.frameRate=a/(u/1e3)):(i.frameRate=h,i.duration=a/h*1e3),i.msPerFrame=1e3/i.frameRate},addFrame:function(i){return this.addFrameAt(this.frames.length,i)},addFrameAt:function(i,a){var u=this.getFrames(this.manager.textureManager,a);if(u.length>0){if(i===0)this.frames=u.concat(this.frames);else if(i===this.frames.length)this.frames=this.frames.concat(u);else{var h=this.frames.slice(0,i),f=this.frames.slice(i);this.frames=h.concat(u,f)}this.updateFrameSequence()}return this},checkFrame:function(i){return i>=0&&i0){m.isLast=!0,m.nextFrame=f[0],f[0].prevFrame=m;var R=1/(f.length-1);for(x=0;x0?i.inReverse&&i.forward?i.forward=!1:this.repeatAnimation(i):i.complete():this.updateAndGetNextTick(i,a.nextFrame)},handleYoyoFrame:function(i,a){if(a||(a=!1),i.inReverse===!a&&i.repeatCounter>0){(i.repeatDelay===0||i.pendingRepeat)&&(i.forward=a),this.repeatAnimation(i);return}if(i.inReverse!==a&&i.repeatCounter===0){i.complete();return}i.forward=a;var u=a?i.currentFrame.nextFrame:i.currentFrame.prevFrame;this.updateAndGetNextTick(i,u)},getLastFrame:function(){return this.frames[this.frames.length-1]},previousFrame:function(i){var a=i.currentFrame;a.isFirst?i.yoyo?this.handleYoyoFrame(i,!0):i.repeatCounter>0?i.inReverse&&!i.forward?this.repeatAnimation(i):(i.forward=!0,this.repeatAnimation(i)):i.complete():this.updateAndGetNextTick(i,a.prevFrame)},updateAndGetNextTick:function(i,a){i.setCurrentFrame(a),this.getNextTick(i)},removeFrame:function(i){var a=this.frames.indexOf(i);return a!==-1&&this.removeFrameAt(a),this},removeFrameAt:function(i){return this.frames.splice(i,1),this.updateFrameSequence(),this},repeatAnimation:function(i){if(i._pendingStop===2){if(i._pendingStopValue===0)return i.stop();i._pendingStopValue--}i.repeatDelay>0&&!i.pendingRepeat?(i.pendingRepeat=!0,i.accumulator-=i.nextTick,i.nextTick+=i.repeatDelay):(i.repeatCounter--,i.forward?i.setCurrentFrame(i.currentFrame.nextFrame):i.setCurrentFrame(i.currentFrame.prevFrame),i.isPlaying&&(this.getNextTick(i),i.handleRepeat()))},toJSON:function(){var i={key:this.key,type:this.type,frames:[],frameRate:this.frameRate,duration:this.duration,skipMissedFrames:this.skipMissedFrames,delay:this.delay,repeat:this.repeat,repeatDelay:this.repeatDelay,yoyo:this.yoyo,showBeforeDelay:this.showBeforeDelay,showOnStart:this.showOnStart,randomFrame:this.randomFrame,hideOnComplete:this.hideOnComplete};return this.frames.forEach(function(a){i.frames.push(a.toJSON())}),i},updateFrameSequence:function(){for(var i=this.frames.length,a=1/(i-1),u,h=0;h1?(u.isLast=!0,u.prevFrame=this.frames[i-2],u.nextFrame=this.frames[0]):i>1&&(u.prevFrame=this.frames[h-1],u.nextFrame=this.frames[h+1]);return this},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this},destroy:function(){this.manager.off&&(this.manager.off(l.PAUSE_ALL,this.pause,this),this.manager.off(l.RESUME_ALL,this.resume,this)),this.manager.remove(this.key);for(var i=0;i{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=new d({initialize:function(r,n,e,s,l){l===void 0&&(l=!1),this.textureKey=r,this.textureFrame=n,this.index=e,this.frame=s,this.isFirst=!1,this.isLast=!1,this.prevFrame=null,this.nextFrame=null,this.duration=0,this.progress=0,this.isKeyFrame=l},toJSON:function(){return{key:this.textureKey,frame:this.textureFrame,duration:this.duration,keyframe:this.isKeyFrame}},destroy:function(){this.frame=void 0}});c.exports=p},60848:(c,T,t)=>{/** + */var d=t(83419),p=new d({initialize:function(r,n,e,s,o){o===void 0&&(o=!1),this.textureKey=r,this.textureFrame=n,this.index=e,this.frame=s,this.isFirst=!1,this.isLast=!1,this.prevFrame=null,this.nextFrame=null,this.duration=0,this.progress=0,this.isKeyFrame=o},toJSON:function(){return{key:this.textureKey,frame:this.textureFrame,duration:this.duration,keyframe:this.isKeyFrame}},destroy:function(){this.frame=void 0}});c.exports=p},60848:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(42099),p=t(83419),a=t(90330),r=t(50792),n=t(74943),e=t(8443),s=t(95540),l=t(35154),i=t(36383),o=t(20283),u=t(41836),h=new p({Extends:r,initialize:function(v){r.call(this),this.game=v,this.textureManager=null,this.globalTimeScale=1,this.anims=new a,this.mixes=new a,this.paused=!1,this.name="AnimationManager",v.events.once(e.BOOT,this.boot,this)},boot:function(){this.textureManager=this.game.textures,this.game.events.once(e.DESTROY,this.destroy,this)},addMix:function(f,v,m){var x=this.anims,g=this.mixes,y=typeof f=="string"?f:f.key,S=typeof v=="string"?v:v.key;if(x.has(y)&&x.has(S)){var C=g.get(y);C||(C={}),C[S]=m,g.set(y,C)}return this},removeMix:function(f,v){var m=this.mixes,x=typeof f=="string"?f:f.key,g=m.get(x);if(g)if(v){var y=typeof v=="string"?v:v.key;g.hasOwnProperty(y)&&delete g[y]}else v||m.delete(x);return this},getMix:function(f,v){var m=this.mixes,x=typeof f=="string"?f:f.key,g=typeof v=="string"?v:v.key,y=m.get(x);return y&&y.hasOwnProperty(g)?y[g]:0},add:function(f,v){return this.anims.has(f)?(console.warn("Animation key exists: "+f),this):(v.key=f,this.anims.set(f,v),this.emit(n.ADD_ANIMATION,f,v),this)},exists:function(f){return this.anims.has(f)},createFromAseprite:function(f,v,m){var x=[],g=this.game.cache.json.get(f);if(!g)return console.warn("No Aseprite data found for: "+f),x;var y=this,S=l(g,"meta",null),C=l(g,"frames",null);if(S&&C){var E=l(S,"frameTags",[]);E.forEach(function(A){var P=[],M=s(A,"name",null),F=s(A,"from",0),L=s(A,"to",0),b=s(A,"direction","forward");if(M&&(!v||v&&v.indexOf(M)>-1)){for(var B=0,N=F;N<=L;N++){var X=N.toString(),D=C[X];if(D){var I=s(D,"duration",i.MAX_SAFE_INTEGER);P.push({key:f,frame:X,duration:I}),B+=I}}b==="reverse"&&(P=P.reverse());var R={key:M,frames:P,duration:B,yoyo:b==="pingpong"},O;m?m.anims&&(O=m.anims.create(R)):O=y.create(R),O&&x.push(O)}})}return x},create:function(f){var v=f.key,m=!1;return v&&(m=this.get(v),m?console.warn("AnimationManager key already exists: "+v):(m=new d(this,v,f),this.anims.set(v,m),this.emit(n.ADD_ANIMATION,v,m))),m},fromJSON:function(f,v){v===void 0&&(v=!1),v&&this.anims.clear(),typeof f=="string"&&(f=JSON.parse(f));var m=[];if(f.hasOwnProperty("anims")&&Array.isArray(f.anims)){for(var x=0;x{/** + */var d=t(42099),p=t(83419),l=t(90330),r=t(50792),n=t(74943),e=t(8443),s=t(95540),o=t(35154),i=t(36383),a=t(20283),u=t(41836),h=new p({Extends:r,initialize:function(v){r.call(this),this.game=v,this.textureManager=null,this.globalTimeScale=1,this.anims=new l,this.mixes=new l,this.paused=!1,this.name="AnimationManager",v.events.once(e.BOOT,this.boot,this)},boot:function(){this.textureManager=this.game.textures,this.game.events.once(e.DESTROY,this.destroy,this)},addMix:function(f,v,m){var g=this.anims,x=this.mixes,y=typeof f=="string"?f:f.key,S=typeof v=="string"?v:v.key;if(g.has(y)&&g.has(S)){var C=x.get(y);C||(C={}),C[S]=m,x.set(y,C)}return this},removeMix:function(f,v){var m=this.mixes,g=typeof f=="string"?f:f.key,x=m.get(g);if(x)if(v){var y=typeof v=="string"?v:v.key;x.hasOwnProperty(y)&&delete x[y]}else v||m.delete(g);return this},getMix:function(f,v){var m=this.mixes,g=typeof f=="string"?f:f.key,x=typeof v=="string"?v:v.key,y=m.get(g);return y&&y.hasOwnProperty(x)?y[x]:0},add:function(f,v){return this.anims.has(f)?(console.warn("Animation key exists: "+f),this):(v.key=f,this.anims.set(f,v),this.emit(n.ADD_ANIMATION,f,v),this)},exists:function(f){return this.anims.has(f)},createFromAseprite:function(f,v,m){var g=[],x=this.game.cache.json.get(f);if(!x)return console.warn("No Aseprite data found for: "+f),g;var y=this,S=o(x,"meta",null),C=o(x,"frames",null);if(S&&C){var E=o(S,"frameTags",[]);E.forEach(function(M){var P=[],A=s(M,"name",null),R=s(M,"from",0),F=s(M,"to",0),D=s(M,"direction","forward");if(A&&(!v||v&&v.indexOf(A)>-1)){for(var w=0,G=R;G<=F;G++){var N=G.toString(),b=C[N];if(b){var B=s(b,"duration",i.MAX_SAFE_INTEGER);P.push({key:f,frame:N,duration:B}),w+=B}}D==="reverse"&&(P=P.reverse());var O={key:A,frames:P,duration:w,yoyo:D==="pingpong"},L;m?m.anims&&(L=m.anims.create(O)):L=y.create(O),L&&g.push(L)}})}return g},create:function(f){var v=f.key,m=!1;return v&&(m=this.get(v),m?console.warn("AnimationManager key already exists: "+v):(m=new d(this,v,f),this.anims.set(v,m),this.emit(n.ADD_ANIMATION,v,m))),m},fromJSON:function(f,v){v===void 0&&(v=!1),v&&this.anims.clear(),typeof f=="string"&&(f=JSON.parse(f));var m=[];if(f.hasOwnProperty("anims")&&Array.isArray(f.anims)){for(var g=0;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(42099),p=t(30976),a=t(83419),r=t(90330),n=t(74943),e=t(95540),s=new a({initialize:function(i){this.parent=i,this.animationManager=i.scene.sys.anims,this.animationManager.on(n.REMOVE_ANIMATION,this.globalRemove,this),this.textureManager=this.animationManager.textureManager,this.anims=null,this.isPlaying=!1,this.hasStarted=!1,this.currentAnim=null,this.currentFrame=null,this.nextAnim=null,this.nextAnimsQueue=[],this.timeScale=1,this.frameRate=0,this.duration=0,this.msPerFrame=0,this.skipMissedFrames=!0,this.randomFrame=!1,this.delay=0,this.repeat=0,this.repeatDelay=0,this.yoyo=!1,this.showBeforeDelay=!1,this.showOnStart=!1,this.hideOnComplete=!1,this.forward=!0,this.inReverse=!1,this.accumulator=0,this.nextTick=0,this.delayCounter=0,this.repeatCounter=0,this.pendingRepeat=!1,this._paused=!1,this._wasPlaying=!1,this._pendingStop=0,this._pendingStopValue},chain:function(l){var i=this.parent;if(l===void 0)return this.nextAnimsQueue.length=0,this.nextAnim=null,i;Array.isArray(l)||(l=[l]);for(var o=0;oh&&(m=0),this.randomFrame&&(m=p(0,h-1));var x=u.frames[m];m===0&&!this.forward&&(x=u.getLastFrame()),this.currentFrame=x}return this.parent},pause:function(l){return this._paused||(this._paused=!0,this._wasPlaying=this.isPlaying,this.isPlaying=!1),l!==void 0&&this.setCurrentFrame(l),this.parent},resume:function(l){return this._paused&&(this._paused=!1,this.isPlaying=this._wasPlaying),l!==void 0&&this.setCurrentFrame(l),this.parent},playAfterDelay:function(l,i){if(!this.isPlaying)this.delayCounter=i,this.play(l,!0);else{var o=this.nextAnim,u=this.nextAnimsQueue;o&&u.unshift(o),this.nextAnim=l,this._pendingStop=1,this._pendingStopValue=i}return this.parent},playAfterRepeat:function(l,i){if(i===void 0&&(i=1),!this.isPlaying)this.play(l);else{var o=this.nextAnim,u=this.nextAnimsQueue;o&&u.unshift(o),this.repeatCounter!==-1&&i>this.repeatCounter&&(i=this.repeatCounter),this.nextAnim=l,this._pendingStop=2,this._pendingStopValue=i}return this.parent},play:function(l,i){i===void 0&&(i=!1);var o=this.currentAnim,u=this.parent,h=typeof l=="string"?l:l.key;if(i&&this.isPlaying&&o.key===h)return u;if(o&&this.isPlaying){var f=this.animationManager.getMix(o.key,l);if(f>0)return this.playAfterDelay(l,f)}return this.forward=!0,this.inReverse=!1,this._paused=!1,this._wasPlaying=!0,this.startAnimation(l)},playReverse:function(l,i){i===void 0&&(i=!1);var o=typeof l=="string"?l:l.key;return i&&this.isPlaying&&this.currentAnim.key===o?this.parent:(this.forward=!1,this.inReverse=!0,this._paused=!1,this._wasPlaying=!0,this.startAnimation(l))},startAnimation:function(l){this.load(l);var i=this.currentAnim,o=this.parent;return i&&(this.repeatCounter=this.repeat===-1?Number.MAX_VALUE:this.repeat,i.getFirstTick(this),this.isPlaying=!0,this.pendingRepeat=!1,this.hasStarted=!1,this._pendingStop=0,this._pendingStopValue=0,this._paused=!1,this.delayCounter+=this.delay,this.delayCounter===0?this.handleStart():this.showBeforeDelay&&this.setCurrentFrame(this.currentFrame)),o},handleStart:function(){this.showOnStart&&this.parent.setVisible(!0),this.setCurrentFrame(this.currentFrame),this.hasStarted=!0,this.emitEvents(n.ANIMATION_START)},handleRepeat:function(){this.pendingRepeat=!1,this.emitEvents(n.ANIMATION_REPEAT)},handleStop:function(){this._pendingStop=0,this.isPlaying=!1,this.emitEvents(n.ANIMATION_STOP)},handleComplete:function(){this._pendingStop=0,this.isPlaying=!1,this.hideOnComplete&&this.parent.setVisible(!1),this.emitEvents(n.ANIMATION_COMPLETE,n.ANIMATION_COMPLETE_KEY)},emitEvents:function(l,i){var o=this.currentAnim;if(o){var u=this.currentFrame,h=this.parent,f=u.textureFrame;h.emit(l,o,u,h,f),i&&h.emit(i+o.key,o,u,h,f)}},reverse:function(){return this.isPlaying&&(this.inReverse=!this.inReverse,this.forward=!this.forward),this.parent},getProgress:function(){var l=this.currentFrame;if(!l)return 0;var i=l.progress;return this.inReverse&&(i*=-1),i},setProgress:function(l){return this.forward||(l=1-l),this.setCurrentFrame(this.currentAnim.getFrameByProgress(l)),this.parent},setRepeat:function(l){return this.repeatCounter=l===-1?Number.MAX_VALUE:l,this.parent},globalRemove:function(l,i){i===void 0&&(i=this.currentAnim),this.isPlaying&&i.key===this.currentAnim.key&&(this.stop(),this.setCurrentFrame(this.currentAnim.frames[0]))},restart:function(l,i){l===void 0&&(l=!1),i===void 0&&(i=!1);var o=this.currentAnim,u=this.parent;return o?(i&&(this.repeatCounter=this.repeat===-1?Number.MAX_VALUE:this.repeat),o.getFirstTick(this),this.emitEvents(n.ANIMATION_RESTART),this.isPlaying=!0,this.pendingRepeat=!1,this.hasStarted=!l,this._pendingStop=0,this._pendingStopValue=0,this._paused=!1,this.setCurrentFrame(o.frames[0]),this.parent):u},complete:function(){if(this._pendingStop=0,this.isPlaying=!1,this.currentAnim&&this.handleComplete(),this.nextAnim){var l=this.nextAnim;this.nextAnim=this.nextAnimsQueue.length>0?this.nextAnimsQueue.shift():null,this.play(l)}return this.parent},stop:function(){if(this._pendingStop=0,this.isPlaying=!1,this.delayCounter=0,this.currentAnim&&this.handleStop(),this.nextAnim){var l=this.nextAnim;this.nextAnim=this.nextAnimsQueue.shift(),this.play(l)}return this.parent},stopAfterDelay:function(l){return this._pendingStop=1,this._pendingStopValue=l,this.parent},stopAfterRepeat:function(l){return l===void 0&&(l=1),this.repeatCounter!==-1&&l>this.repeatCounter&&(l=this.repeatCounter),this._pendingStop=2,this._pendingStopValue=l,this.parent},stopOnFrame:function(l){return this._pendingStop=3,this._pendingStopValue=l,this.parent},getTotalFrames:function(){return this.currentAnim?this.currentAnim.getTotalFrames():0},update:function(l,i){var o=this.currentAnim;if(!(!this.isPlaying||!o||o.paused)){if(this.accumulator+=i*this.timeScale*this.animationManager.globalTimeScale,this._pendingStop===1&&(this._pendingStopValue-=i,this._pendingStopValue<=0))return this.stop();if(!this.hasStarted)this.accumulator>=this.delayCounter&&(this.accumulator-=this.delayCounter,this.handleStart());else if(this.accumulator>=this.nextTick&&(this.forward?o.nextFrame(this):o.previousFrame(this),this.isPlaying&&this._pendingStop===0&&this.skipMissedFrames&&this.accumulator>this.nextTick)){var u=0;do this.forward?o.nextFrame(this):o.previousFrame(this),u++;while(this.isPlaying&&this.accumulator>this.nextTick&&u<60)}}},setCurrentFrame:function(l){var i=this.parent;return this.currentFrame=l,i.texture=l.frame.texture,i.frame=l.frame,i.isCropped&&i.frame.updateCropUVs(i._crop,i.flipX,i.flipY),l.setAlpha&&(i.alpha=l.alpha),i.setSizeToFrame(),i._originComponent&&(l.frame.customPivot?i.setOrigin(l.frame.pivotX,l.frame.pivotY):i.updateDisplayOrigin()),this.isPlaying&&this.hasStarted&&(this.emitEvents(n.ANIMATION_UPDATE),this._pendingStop===3&&this._pendingStopValue===l&&this.stop()),i},nextFrame:function(){return this.currentAnim&&this.currentAnim.nextFrame(this),this.parent},previousFrame:function(){return this.currentAnim&&this.currentAnim.previousFrame(this),this.parent},get:function(l){return this.anims?this.anims.get(l):null},exists:function(l){return this.anims?this.anims.has(l):!1},create:function(l){var i=l.key,o=!1;return i&&(o=this.get(i),o?console.warn("Animation key already exists: "+i):(o=new d(this,i,l),this.anims||(this.anims=new r),this.anims.set(i,o))),o},createFromAseprite:function(l,i){return this.animationManager.createFromAseprite(l,i,this.parent)},generateFrameNames:function(l,i){return this.animationManager.generateFrameNames(l,i)},generateFrameNumbers:function(l,i){return this.animationManager.generateFrameNumbers(l,i)},remove:function(l){var i=this.get(l);return i&&(this.currentAnim===i&&this.stop(),this.anims.delete(l)),i},destroy:function(){this.animationManager.off(n.REMOVE_ANIMATION,this.globalRemove,this),this.anims&&this.anims.clear(),this.animationManager=null,this.parent=null,this.nextAnim=null,this.nextAnimsQueue.length=0,this.currentAnim=null,this.currentFrame=null},isPaused:{get:function(){return this._paused}}});c.exports=s},57090:c=>{/** + */var d=t(42099),p=t(30976),l=t(83419),r=t(90330),n=t(74943),e=t(95540),s=new l({initialize:function(i){this.parent=i,this.animationManager=i.scene.sys.anims,this.animationManager.on(n.REMOVE_ANIMATION,this.globalRemove,this),this.textureManager=this.animationManager.textureManager,this.anims=null,this.isPlaying=!1,this.hasStarted=!1,this.currentAnim=null,this.currentFrame=null,this.nextAnim=null,this.nextAnimsQueue=[],this.timeScale=1,this.frameRate=0,this.duration=0,this.msPerFrame=0,this.skipMissedFrames=!0,this.randomFrame=!1,this.delay=0,this.repeat=0,this.repeatDelay=0,this.yoyo=!1,this.showBeforeDelay=!1,this.showOnStart=!1,this.hideOnComplete=!1,this.forward=!0,this.inReverse=!1,this.accumulator=0,this.nextTick=0,this.delayCounter=0,this.repeatCounter=0,this.pendingRepeat=!1,this._paused=!1,this._wasPlaying=!1,this._pendingStop=0,this._pendingStopValue},chain:function(o){var i=this.parent;if(o===void 0)return this.nextAnimsQueue.length=0,this.nextAnim=null,i;Array.isArray(o)||(o=[o]);for(var a=0;ah&&(m=0),this.randomFrame&&(m=p(0,h-1));var g=u.frames[m];m===0&&!this.forward&&(g=u.getLastFrame()),this.currentFrame=g}return this.parent},pause:function(o){return this._paused||(this._paused=!0,this._wasPlaying=this.isPlaying,this.isPlaying=!1),o!==void 0&&this.setCurrentFrame(o),this.parent},resume:function(o){return this._paused&&(this._paused=!1,this.isPlaying=this._wasPlaying),o!==void 0&&this.setCurrentFrame(o),this.parent},playAfterDelay:function(o,i){if(!this.isPlaying)this.delayCounter=i,this.play(o,!0);else{var a=this.nextAnim,u=this.nextAnimsQueue;a&&u.unshift(a),this.nextAnim=o,this._pendingStop=1,this._pendingStopValue=i}return this.parent},playAfterRepeat:function(o,i){if(i===void 0&&(i=1),!this.isPlaying)this.play(o);else{var a=this.nextAnim,u=this.nextAnimsQueue;a&&u.unshift(a),this.repeatCounter!==-1&&i>this.repeatCounter&&(i=this.repeatCounter),this.nextAnim=o,this._pendingStop=2,this._pendingStopValue=i}return this.parent},play:function(o,i){i===void 0&&(i=!1);var a=this.currentAnim,u=this.parent,h=typeof o=="string"?o:o.key;if(i&&this.isPlaying&&a.key===h)return u;if(a&&this.isPlaying){var f=this.animationManager.getMix(a.key,o);if(f>0)return this.playAfterDelay(o,f)}return this.forward=!0,this.inReverse=!1,this._paused=!1,this._wasPlaying=!0,this.startAnimation(o)},playReverse:function(o,i){i===void 0&&(i=!1);var a=typeof o=="string"?o:o.key;return i&&this.isPlaying&&this.currentAnim.key===a?this.parent:(this.forward=!1,this.inReverse=!0,this._paused=!1,this._wasPlaying=!0,this.startAnimation(o))},startAnimation:function(o){this.load(o);var i=this.currentAnim,a=this.parent;return i&&(this.repeatCounter=this.repeat===-1?Number.MAX_VALUE:this.repeat,i.getFirstTick(this),this.isPlaying=!0,this.pendingRepeat=!1,this.hasStarted=!1,this._pendingStop=0,this._pendingStopValue=0,this._paused=!1,this.delayCounter+=this.delay,this.delayCounter===0?this.handleStart():this.showBeforeDelay&&this.setCurrentFrame(this.currentFrame)),a},handleStart:function(){this.showOnStart&&this.parent.setVisible(!0),this.setCurrentFrame(this.currentFrame),this.hasStarted=!0,this.emitEvents(n.ANIMATION_START)},handleRepeat:function(){this.pendingRepeat=!1,this.emitEvents(n.ANIMATION_REPEAT)},handleStop:function(){this._pendingStop=0,this.isPlaying=!1,this.emitEvents(n.ANIMATION_STOP)},handleComplete:function(){this._pendingStop=0,this.isPlaying=!1,this.hideOnComplete&&this.parent.setVisible(!1),this.emitEvents(n.ANIMATION_COMPLETE,n.ANIMATION_COMPLETE_KEY)},emitEvents:function(o,i){var a=this.currentAnim;if(a){var u=this.currentFrame,h=this.parent,f=u.textureFrame;h.emit(o,a,u,h,f),i&&h.emit(i+a.key,a,u,h,f)}},reverse:function(){return this.isPlaying&&(this.inReverse=!this.inReverse,this.forward=!this.forward),this.parent},getProgress:function(){var o=this.currentFrame;if(!o)return 0;var i=o.progress;return this.inReverse&&(i*=-1),i},setProgress:function(o){return this.forward||(o=1-o),this.setCurrentFrame(this.currentAnim.getFrameByProgress(o)),this.parent},setRepeat:function(o){return this.repeatCounter=o===-1?Number.MAX_VALUE:o,this.parent},globalRemove:function(o,i){i===void 0&&(i=this.currentAnim),this.isPlaying&&i.key===this.currentAnim.key&&(this.stop(),this.setCurrentFrame(this.currentAnim.frames[0]))},restart:function(o,i){o===void 0&&(o=!1),i===void 0&&(i=!1);var a=this.currentAnim,u=this.parent;return a?(i&&(this.repeatCounter=this.repeat===-1?Number.MAX_VALUE:this.repeat),a.getFirstTick(this),this.emitEvents(n.ANIMATION_RESTART),this.isPlaying=!0,this.pendingRepeat=!1,this.hasStarted=!o,this._pendingStop=0,this._pendingStopValue=0,this._paused=!1,this.setCurrentFrame(a.frames[0]),this.parent):u},complete:function(){if(this._pendingStop=0,this.isPlaying=!1,this.currentAnim&&this.handleComplete(),this.nextAnim){var o=this.nextAnim;this.nextAnim=this.nextAnimsQueue.length>0?this.nextAnimsQueue.shift():null,this.play(o)}return this.parent},stop:function(){if(this._pendingStop=0,this.isPlaying=!1,this.delayCounter=0,this.currentAnim&&this.handleStop(),this.nextAnim){var o=this.nextAnim;this.nextAnim=this.nextAnimsQueue.shift(),this.play(o)}return this.parent},stopAfterDelay:function(o){return this._pendingStop=1,this._pendingStopValue=o,this.parent},stopAfterRepeat:function(o){return o===void 0&&(o=1),this.repeatCounter!==-1&&o>this.repeatCounter&&(o=this.repeatCounter),this._pendingStop=2,this._pendingStopValue=o,this.parent},stopOnFrame:function(o){return this._pendingStop=3,this._pendingStopValue=o,this.parent},getTotalFrames:function(){return this.currentAnim?this.currentAnim.getTotalFrames():0},update:function(o,i){var a=this.currentAnim;if(!(!this.isPlaying||!a||a.paused)){if(this.accumulator+=i*this.timeScale*this.animationManager.globalTimeScale,this._pendingStop===1&&(this._pendingStopValue-=i,this._pendingStopValue<=0))return this.stop();if(!this.hasStarted)this.accumulator>=this.delayCounter&&(this.accumulator-=this.delayCounter,this.handleStart());else if(this.accumulator>=this.nextTick&&(this.forward?a.nextFrame(this):a.previousFrame(this),this.isPlaying&&this._pendingStop===0&&this.skipMissedFrames&&this.accumulator>this.nextTick)){var u=0;do this.forward?a.nextFrame(this):a.previousFrame(this),u++;while(this.isPlaying&&this.accumulator>this.nextTick&&u<60)}}},setCurrentFrame:function(o){var i=this.parent;return this.currentFrame=o,i.texture=o.frame.texture,i.frame=o.frame,i.isCropped&&i.frame.updateCropUVs(i._crop,i.flipX,i.flipY),o.setAlpha&&(i.alpha=o.alpha),i.setSizeToFrame(),i._originComponent&&(o.frame.customPivot?i.setOrigin(o.frame.pivotX,o.frame.pivotY):i.updateDisplayOrigin()),this.isPlaying&&this.hasStarted&&(this.emitEvents(n.ANIMATION_UPDATE),this._pendingStop===3&&this._pendingStopValue===o&&this.stop()),i},nextFrame:function(){return this.currentAnim&&this.currentAnim.nextFrame(this),this.parent},previousFrame:function(){return this.currentAnim&&this.currentAnim.previousFrame(this),this.parent},get:function(o){return this.anims?this.anims.get(o):null},exists:function(o){return this.anims?this.anims.has(o):!1},create:function(o){var i=o.key,a=!1;return i&&(a=this.get(i),a?console.warn("Animation key already exists: "+i):(a=new d(this,i,o),this.anims||(this.anims=new r),this.anims.set(i,a))),a},createFromAseprite:function(o,i){return this.animationManager.createFromAseprite(o,i,this.parent)},generateFrameNames:function(o,i){return this.animationManager.generateFrameNames(o,i)},generateFrameNumbers:function(o,i){return this.animationManager.generateFrameNumbers(o,i)},remove:function(o){var i=this.get(o);return i&&(this.currentAnim===i&&this.stop(),this.anims.delete(o)),i},destroy:function(){this.animationManager.off(n.REMOVE_ANIMATION,this.globalRemove,this),this.anims&&this.anims.clear(),this.animationManager=null,this.parent=null,this.nextAnim=null,this.nextAnimsQueue.length=0,this.currentAnim=null,this.currentFrame=null},isPaused:{get:function(){return this._paused}}});c.exports=s},57090:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -287,11 +287,11 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(90330),a=t(50792),r=t(24736),n=new d({initialize:function(){this.entries=new p,this.events=new a},add:function(e,s){return this.entries.set(e,s),this.events.emit(r.ADD,this,e,s),this},has:function(e){return this.entries.has(e)},exists:function(e){return this.entries.has(e)},get:function(e){return this.entries.get(e)},remove:function(e){var s=this.get(e);return s&&(this.entries.delete(e),this.events.emit(r.REMOVE,this,e,s.data)),this},getKeys:function(){return this.entries.keys()},destroy:function(){this.entries.clear(),this.events.removeAllListeners(),this.entries=null,this.events=null}});c.exports=n},24047:(c,T,t)=>{/** + */var d=t(83419),p=t(90330),l=t(50792),r=t(24736),n=new d({initialize:function(){this.entries=new p,this.events=new l},add:function(e,s){return this.entries.set(e,s),this.events.emit(r.ADD,this,e,s),this},has:function(e){return this.entries.has(e)},exists:function(e){return this.entries.has(e)},get:function(e){return this.entries.get(e)},remove:function(e){var s=this.get(e);return s&&(this.entries.delete(e),this.events.emit(r.REMOVE,this,e,s.data)),this},getKeys:function(){return this.entries.keys()},destroy:function(){this.entries.clear(),this.events.removeAllListeners(),this.entries=null,this.events=null}});c.exports=n},24047:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2161),p=t(83419),a=t(8443),r=new p({initialize:function(e){this.game=e,this.binary=new d,this.bitmapFont=new d,this.json=new d,this.physics=new d,this.shader=new d,this.audio=new d,this.video=new d,this.text=new d,this.html=new d,this.obj=new d,this.tilemap=new d,this.xml=new d,this.custom={},this.game.events.once(a.DESTROY,this.destroy,this)},addCustom:function(n){return this.custom.hasOwnProperty(n)||(this.custom[n]=new d),this.custom[n]},destroy:function(){for(var n=["binary","bitmapFont","json","physics","shader","audio","video","text","html","obj","tilemap","xml"],e=0;e{/** + */var d=t(2161),p=t(83419),l=t(8443),r=new p({initialize:function(e){this.game=e,this.binary=new d,this.bitmapFont=new d,this.json=new d,this.physics=new d,this.shader=new d,this.audio=new d,this.video=new d,this.text=new d,this.html=new d,this.obj=new d,this.tilemap=new d,this.xml=new d,this.custom={},this.game.events.once(l.DESTROY,this.destroy,this)},addCustom:function(n){return this.custom.hasOwnProperty(n)||(this.custom[n]=new d),this.custom[n]},destroy:function(){for(var n=["binary","bitmapFont","json","physics","shader","audio","video","text","html","obj","tilemap","xml"],e=0;e{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -311,39 +311,39 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(31401),a=t(39506),r=t(50792),n=t(19715),e=t(87841),s=t(61340),l=t(80333),i=t(26099),o=new d({Extends:r,Mixins:[p.AlphaSingle,p.Visible],initialize:function(h,f,v,m){h===void 0&&(h=0),f===void 0&&(f=0),v===void 0&&(v=0),m===void 0&&(m=0),r.call(this),this.scene,this.sceneManager,this.scaleManager,this.cameraManager,this.id=0,this.name="",this.roundPixels=!1,this.useBounds=!1,this.worldView=new e,this.dirty=!0,this._x=h,this._y=f,this._width=v,this._height=m,this._bounds=new e,this._scrollX=0,this._scrollY=0,this._zoomX=1,this._zoomY=1,this._rotation=0,this.matrix=new s,this.transparent=!0,this.backgroundColor=l("rgba(0,0,0,0)"),this.disableCull=!1,this.culledObjects=[],this.midPoint=new i(v/2,m/2),this.originX=.5,this.originY=.5,this._customViewport=!1,this.mask=null,this._maskCamera=null,this.renderList=[],this.isSceneCamera=!0},addToRenderList:function(u){this.renderList.push(u)},setOrigin:function(u,h){return u===void 0&&(u=.5),h===void 0&&(h=u),this.originX=u,this.originY=h,this},getScroll:function(u,h,f){f===void 0&&(f=new i);var v=this.width*.5,m=this.height*.5;return f.x=u-v,f.y=h-m,this.useBounds&&(f.x=this.clampX(f.x),f.y=this.clampY(f.y)),f},centerOnX:function(u){var h=this.width*.5;return this.midPoint.x=u,this.scrollX=u-h,this.useBounds&&(this.scrollX=this.clampX(this.scrollX)),this},centerOnY:function(u){var h=this.height*.5;return this.midPoint.y=u,this.scrollY=u-h,this.useBounds&&(this.scrollY=this.clampY(this.scrollY)),this},centerOn:function(u,h){return this.centerOnX(u),this.centerOnY(h),this},centerToBounds:function(){if(this.useBounds){var u=this._bounds,h=this.width*.5,f=this.height*.5;this.midPoint.set(u.centerX,u.centerY),this.scrollX=u.centerX-h,this.scrollY=u.centerY-f}return this},centerToSize:function(){return this.scrollX=this.width*.5,this.scrollY=this.height*.5,this},cull:function(u){if(this.disableCull)return u;var h=this.matrix.matrix,f=h[0],v=h[1],m=h[2],x=h[3],g=f*x-v*m;if(!g)return u;var y=h[4],S=h[5],C=this.scrollX,E=this.scrollY,A=this.width,P=this.height,M=this.y,F=M+P,L=this.x,b=L+A,B=this.culledObjects,N=u.length;g=1/g,B.length=0;for(var X=0;XL&&GM&&Um&&(u=m),u},clampY:function(u){var h=this._bounds,f=this.displayHeight,v=h.y+(f-this.height)/2,m=Math.max(v,v+h.height-f);return um&&(u=m),u},removeBounds:function(){return this.useBounds=!1,this.dirty=!0,this._bounds.setEmpty(),this},setAngle:function(u){return u===void 0&&(u=0),this.rotation=a(u),this},setBackgroundColor:function(u){return u===void 0&&(u="rgba(0,0,0,0)"),this.backgroundColor=l(u),this.transparent=this.backgroundColor.alpha===0,this},setBounds:function(u,h,f,v,m){return m===void 0&&(m=!1),this._bounds.setTo(u,h,f,v),this.dirty=!0,this.useBounds=!0,m?this.centerToBounds():(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},getBounds:function(u){u===void 0&&(u=new e);var h=this._bounds;return u.setTo(h.x,h.y,h.width,h.height),u},setName:function(u){return u===void 0&&(u=""),this.name=u,this},setPosition:function(u,h){return h===void 0&&(h=u),this.x=u,this.y=h,this},setRotation:function(u){return u===void 0&&(u=0),this.rotation=u,this},setRoundPixels:function(u){return this.roundPixels=u,this},setScene:function(u,h){h===void 0&&(h=!0),this.scene&&this._customViewport&&this.sceneManager.customViewports--,this.scene=u,this.isSceneCamera=h;var f=u.sys;return this.sceneManager=f.game.scene,this.scaleManager=f.scale,this.cameraManager=f.cameras,this.updateSystem(),this},setScroll:function(u,h){return h===void 0&&(h=u),this.scrollX=u,this.scrollY=h,this},setSize:function(u,h){return h===void 0&&(h=u),this.width=u,this.height=h,this},setViewport:function(u,h,f,v){return this.x=u,this.y=h,this.width=f,this.height=v,this},setZoom:function(u,h){return u===void 0&&(u=1),h===void 0&&(h=u),u===0&&(u=.001),h===0&&(h=.001),this.zoomX=u,this.zoomY=h,this},setMask:function(u,h){return h===void 0&&(h=!0),this.mask=u,this._maskCamera=h?this.cameraManager.default:this,this},clearMask:function(u){return u===void 0&&(u=!1),u&&this.mask&&this.mask.destroy(),this.mask=null,this},toJSON:function(){var u={name:this.name,x:this.x,y:this.y,width:this.width,height:this.height,zoom:this.zoom,rotation:this.rotation,roundPixels:this.roundPixels,scrollX:this.scrollX,scrollY:this.scrollY,backgroundColor:this.backgroundColor.rgba};return this.useBounds&&(u.bounds={x:this._bounds.x,y:this._bounds.y,width:this._bounds.width,height:this._bounds.height}),u},update:function(){},setIsSceneCamera:function(u){return this.isSceneCamera=u,this},updateSystem:function(){if(!(!this.scaleManager||!this.isSceneCamera)){var u=this._x!==0||this._y!==0||this.scaleManager.width!==this._width||this.scaleManager.height!==this._height,h=this.sceneManager;u&&!this._customViewport?h.customViewports++:!u&&this._customViewport&&h.customViewports--,this.dirty=!0,this._customViewport=u}},destroy:function(){this.emit(n.DESTROY,this),this.removeAllListeners(),this.matrix.destroy(),this.culledObjects=[],this._customViewport&&this.sceneManager.customViewports--,this.renderList=[],this._bounds=null,this.scene=null,this.scaleManager=null,this.sceneManager=null,this.cameraManager=null},x:{get:function(){return this._x},set:function(u){this._x=u,this.updateSystem()}},y:{get:function(){return this._y},set:function(u){this._y=u,this.updateSystem()}},width:{get:function(){return this._width},set:function(u){this._width=u,this.updateSystem()}},height:{get:function(){return this._height},set:function(u){this._height=u,this.updateSystem()}},scrollX:{get:function(){return this._scrollX},set:function(u){u!==this._scrollX&&(this._scrollX=u,this.dirty=!0)}},scrollY:{get:function(){return this._scrollY},set:function(u){u!==this._scrollY&&(this._scrollY=u,this.dirty=!0)}},zoom:{get:function(){return(this._zoomX+this._zoomY)/2},set:function(u){this._zoomX=u,this._zoomY=u,this.dirty=!0}},zoomX:{get:function(){return this._zoomX},set:function(u){this._zoomX=u,this.dirty=!0}},zoomY:{get:function(){return this._zoomY},set:function(u){this._zoomY=u,this.dirty=!0}},rotation:{get:function(){return this._rotation},set:function(u){this._rotation=u,this.dirty=!0}},centerX:{get:function(){return this.x+.5*this.width}},centerY:{get:function(){return this.y+.5*this.height}},displayWidth:{get:function(){return this.width/this.zoomX}},displayHeight:{get:function(){return this.height/this.zoomY}}});c.exports=o},38058:(c,T,t)=>{/** + */var d=t(83419),p=t(31401),l=t(39506),r=t(50792),n=t(19715),e=t(87841),s=t(61340),o=t(80333),i=t(26099),a=new d({Extends:r,Mixins:[p.AlphaSingle,p.Visible],initialize:function(h,f,v,m){h===void 0&&(h=0),f===void 0&&(f=0),v===void 0&&(v=0),m===void 0&&(m=0),r.call(this),this.scene,this.sceneManager,this.scaleManager,this.cameraManager,this.id=0,this.name="",this.roundPixels=!1,this.useBounds=!1,this.worldView=new e,this.dirty=!0,this._x=h,this._y=f,this._width=v,this._height=m,this._bounds=new e,this._scrollX=0,this._scrollY=0,this._zoomX=1,this._zoomY=1,this._rotation=0,this.matrix=new s,this.transparent=!0,this.backgroundColor=o("rgba(0,0,0,0)"),this.disableCull=!1,this.culledObjects=[],this.midPoint=new i(v/2,m/2),this.originX=.5,this.originY=.5,this._customViewport=!1,this.mask=null,this._maskCamera=null,this.renderList=[],this.isSceneCamera=!0},addToRenderList:function(u){this.renderList.push(u)},setOrigin:function(u,h){return u===void 0&&(u=.5),h===void 0&&(h=u),this.originX=u,this.originY=h,this},getScroll:function(u,h,f){f===void 0&&(f=new i);var v=this.width*.5,m=this.height*.5;return f.x=u-v,f.y=h-m,this.useBounds&&(f.x=this.clampX(f.x),f.y=this.clampY(f.y)),f},centerOnX:function(u){var h=this.width*.5;return this.midPoint.x=u,this.scrollX=u-h,this.useBounds&&(this.scrollX=this.clampX(this.scrollX)),this},centerOnY:function(u){var h=this.height*.5;return this.midPoint.y=u,this.scrollY=u-h,this.useBounds&&(this.scrollY=this.clampY(this.scrollY)),this},centerOn:function(u,h){return this.centerOnX(u),this.centerOnY(h),this},centerToBounds:function(){if(this.useBounds){var u=this._bounds,h=this.width*.5,f=this.height*.5;this.midPoint.set(u.centerX,u.centerY),this.scrollX=u.centerX-h,this.scrollY=u.centerY-f}return this},centerToSize:function(){return this.scrollX=this.width*.5,this.scrollY=this.height*.5,this},cull:function(u){if(this.disableCull)return u;var h=this.matrix.matrix,f=h[0],v=h[1],m=h[2],g=h[3],x=f*g-v*m;if(!x)return u;var y=h[4],S=h[5],C=this.scrollX,E=this.scrollY,M=this.width,P=this.height,A=this.y,R=A+P,F=this.x,D=F+M,w=this.culledObjects,G=u.length;x=1/x,w.length=0;for(var N=0;NF&&UA&&Xm&&(u=m),u},clampY:function(u){var h=this._bounds,f=this.displayHeight,v=h.y+(f-this.height)/2,m=Math.max(v,v+h.height-f);return um&&(u=m),u},removeBounds:function(){return this.useBounds=!1,this.dirty=!0,this._bounds.setEmpty(),this},setAngle:function(u){return u===void 0&&(u=0),this.rotation=l(u),this},setBackgroundColor:function(u){return u===void 0&&(u="rgba(0,0,0,0)"),this.backgroundColor=o(u),this.transparent=this.backgroundColor.alpha===0,this},setBounds:function(u,h,f,v,m){return m===void 0&&(m=!1),this._bounds.setTo(u,h,f,v),this.dirty=!0,this.useBounds=!0,m?this.centerToBounds():(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},getBounds:function(u){u===void 0&&(u=new e);var h=this._bounds;return u.setTo(h.x,h.y,h.width,h.height),u},setName:function(u){return u===void 0&&(u=""),this.name=u,this},setPosition:function(u,h){return h===void 0&&(h=u),this.x=u,this.y=h,this},setRotation:function(u){return u===void 0&&(u=0),this.rotation=u,this},setRoundPixels:function(u){return this.roundPixels=u,this},setScene:function(u,h){h===void 0&&(h=!0),this.scene&&this._customViewport&&this.sceneManager.customViewports--,this.scene=u,this.isSceneCamera=h;var f=u.sys;return this.sceneManager=f.game.scene,this.scaleManager=f.scale,this.cameraManager=f.cameras,this.updateSystem(),this},setScroll:function(u,h){return h===void 0&&(h=u),this.scrollX=u,this.scrollY=h,this},setSize:function(u,h){return h===void 0&&(h=u),this.width=u,this.height=h,this},setViewport:function(u,h,f,v){return this.x=u,this.y=h,this.width=f,this.height=v,this},setZoom:function(u,h){return u===void 0&&(u=1),h===void 0&&(h=u),u===0&&(u=.001),h===0&&(h=.001),this.zoomX=u,this.zoomY=h,this},setMask:function(u,h){return h===void 0&&(h=!0),this.mask=u,this._maskCamera=h?this.cameraManager.default:this,this},clearMask:function(u){return u===void 0&&(u=!1),u&&this.mask&&this.mask.destroy(),this.mask=null,this},toJSON:function(){var u={name:this.name,x:this.x,y:this.y,width:this.width,height:this.height,zoom:this.zoom,rotation:this.rotation,roundPixels:this.roundPixels,scrollX:this.scrollX,scrollY:this.scrollY,backgroundColor:this.backgroundColor.rgba};return this.useBounds&&(u.bounds={x:this._bounds.x,y:this._bounds.y,width:this._bounds.width,height:this._bounds.height}),u},update:function(){},setIsSceneCamera:function(u){return this.isSceneCamera=u,this},updateSystem:function(){if(!(!this.scaleManager||!this.isSceneCamera)){var u=this._x!==0||this._y!==0||this.scaleManager.width!==this._width||this.scaleManager.height!==this._height,h=this.sceneManager;u&&!this._customViewport?h.customViewports++:!u&&this._customViewport&&h.customViewports--,this.dirty=!0,this._customViewport=u}},destroy:function(){this.emit(n.DESTROY,this),this.removeAllListeners(),this.matrix.destroy(),this.culledObjects=[],this._customViewport&&this.sceneManager.customViewports--,this.renderList=[],this._bounds=null,this.scene=null,this.scaleManager=null,this.sceneManager=null,this.cameraManager=null},x:{get:function(){return this._x},set:function(u){this._x=u,this.updateSystem()}},y:{get:function(){return this._y},set:function(u){this._y=u,this.updateSystem()}},width:{get:function(){return this._width},set:function(u){this._width=u,this.updateSystem()}},height:{get:function(){return this._height},set:function(u){this._height=u,this.updateSystem()}},scrollX:{get:function(){return this._scrollX},set:function(u){u!==this._scrollX&&(this._scrollX=u,this.dirty=!0)}},scrollY:{get:function(){return this._scrollY},set:function(u){u!==this._scrollY&&(this._scrollY=u,this.dirty=!0)}},zoom:{get:function(){return(this._zoomX+this._zoomY)/2},set:function(u){this._zoomX=u,this._zoomY=u,this.dirty=!0}},zoomX:{get:function(){return this._zoomX},set:function(u){this._zoomX=u,this.dirty=!0}},zoomY:{get:function(){return this._zoomY},set:function(u){this._zoomY=u,this.dirty=!0}},rotation:{get:function(){return this._rotation},set:function(u){this._rotation=u,this.dirty=!0}},centerX:{get:function(){return this.x+.5*this.width}},centerY:{get:function(){return this.y+.5*this.height}},displayWidth:{get:function(){return this.width/this.zoomX}},displayHeight:{get:function(){return this.height/this.zoomY}}});c.exports=a},38058:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(71911),p=t(67502),a=t(45319),r=t(83419),n=t(31401),e=t(20052),s=t(19715),l=t(28915),i=t(87841),o=t(26099),u=new r({Extends:d,Mixins:[n.PostPipeline],initialize:function(f,v,m,x){d.call(this,f,v,m,x),this.initPostPipeline(),this.inputEnabled=!0,this.fadeEffect=new e.Fade(this),this.flashEffect=new e.Flash(this),this.shakeEffect=new e.Shake(this),this.panEffect=new e.Pan(this),this.rotateToEffect=new e.RotateTo(this),this.zoomEffect=new e.Zoom(this),this.lerp=new o(1,1),this.followOffset=new o,this.deadzone=null,this._follow=null},setDeadzone:function(h,f){if(h===void 0)this.deadzone=null;else{if(this.deadzone?(this.deadzone.width=h,this.deadzone.height=f):this.deadzone=new i(0,0,h,f),this._follow){var v=this.width/2,m=this.height/2,x=this._follow.x-this.followOffset.x,g=this._follow.y-this.followOffset.y;this.midPoint.set(x,g),this.scrollX=x-v,this.scrollY=g-m}p(this.deadzone,this.midPoint.x,this.midPoint.y)}return this},fadeIn:function(h,f,v,m,x,g){return this.fadeEffect.start(!1,h,f,v,m,!0,x,g)},fadeOut:function(h,f,v,m,x,g){return this.fadeEffect.start(!0,h,f,v,m,!0,x,g)},fadeFrom:function(h,f,v,m,x,g,y){return this.fadeEffect.start(!1,h,f,v,m,x,g,y)},fade:function(h,f,v,m,x,g,y){return this.fadeEffect.start(!0,h,f,v,m,x,g,y)},flash:function(h,f,v,m,x,g,y){return this.flashEffect.start(h,f,v,m,x,g,y)},shake:function(h,f,v,m,x){return this.shakeEffect.start(h,f,v,m,x)},pan:function(h,f,v,m,x,g,y){return this.panEffect.start(h,f,v,m,x,g,y)},rotateTo:function(h,f,v,m,x,g,y){return this.rotateToEffect.start(h,f,v,m,x,g,y)},zoomTo:function(h,f,v,m,x,g){return this.zoomEffect.start(h,f,v,m,x,g)},preRender:function(){this.renderList.length=0;var h=this.width,f=this.height,v=h*.5,m=f*.5,x=this.zoom,g=this.matrix,y=h*this.originX,S=f*this.originY,C=this._follow,E=this.deadzone,A=this.scrollX,P=this.scrollY;E&&p(E,this.midPoint.x,this.midPoint.y);var M=!1;if(C&&!this.panEffect.isRunning){var F=this.lerp,L=C.x-this.followOffset.x,b=C.y-this.followOffset.y;E?(LE.right&&(A=l(A,A+(L-E.right),F.x)),bE.bottom&&(P=l(P,P+(b-E.bottom),F.y))):(A=l(A,L-y,F.x),P=l(P,b-S,F.y)),M=!0}this.useBounds&&(A=this.clampX(A),P=this.clampY(P)),this.scrollX=A,this.scrollY=P;var B=A+v,N=P+m;this.midPoint.set(B,N);var X=h/x,D=f/x,I=Math.floor(B-X/2),R=Math.floor(N-D/2);this.worldView.setTo(I,R,X,D),g.applyITRS(Math.floor(this.x+y),Math.floor(this.y+S),this.rotation,x,x),g.translate(-y,-S),this.shakeEffect.preRender(),M&&this.emit(s.FOLLOW_UPDATE,this,C)},setLerp:function(h,f){return h===void 0&&(h=1),f===void 0&&(f=h),this.lerp.set(h,f),this},setFollowOffset:function(h,f){return h===void 0&&(h=0),f===void 0&&(f=0),this.followOffset.set(h,f),this},startFollow:function(h,f,v,m,x,g){f===void 0&&(f=!1),v===void 0&&(v=1),m===void 0&&(m=v),x===void 0&&(x=0),g===void 0&&(g=x),this._follow=h,this.roundPixels=f,v=a(v,0,1),m=a(m,0,1),this.lerp.set(v,m),this.followOffset.set(x,g);var y=this.width/2,S=this.height/2,C=h.x-x,E=h.y-g;return this.midPoint.set(C,E),this.scrollX=C-y,this.scrollY=E-S,this.useBounds&&(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},stopFollow:function(){return this._follow=null,this},resetFX:function(){return this.rotateToEffect.reset(),this.panEffect.reset(),this.shakeEffect.reset(),this.flashEffect.reset(),this.fadeEffect.reset(),this},update:function(h,f){this.visible&&(this.rotateToEffect.update(h,f),this.panEffect.update(h,f),this.zoomEffect.update(h,f),this.shakeEffect.update(h,f),this.flashEffect.update(h,f),this.fadeEffect.update(h,f))},destroy:function(){this.resetFX(),d.prototype.destroy.call(this),this._follow=null,this.deadzone=null}});c.exports=u},32743:(c,T,t)=>{/** + */var d=t(71911),p=t(67502),l=t(45319),r=t(83419),n=t(31401),e=t(20052),s=t(19715),o=t(28915),i=t(87841),a=t(26099),u=new r({Extends:d,Mixins:[n.PostPipeline],initialize:function(f,v,m,g){d.call(this,f,v,m,g),this.initPostPipeline(),this.inputEnabled=!0,this.fadeEffect=new e.Fade(this),this.flashEffect=new e.Flash(this),this.shakeEffect=new e.Shake(this),this.panEffect=new e.Pan(this),this.rotateToEffect=new e.RotateTo(this),this.zoomEffect=new e.Zoom(this),this.lerp=new a(1,1),this.followOffset=new a,this.deadzone=null,this._follow=null},setDeadzone:function(h,f){if(h===void 0)this.deadzone=null;else{if(this.deadzone?(this.deadzone.width=h,this.deadzone.height=f):this.deadzone=new i(0,0,h,f),this._follow){var v=this.width/2,m=this.height/2,g=this._follow.x-this.followOffset.x,x=this._follow.y-this.followOffset.y;this.midPoint.set(g,x),this.scrollX=g-v,this.scrollY=x-m}p(this.deadzone,this.midPoint.x,this.midPoint.y)}return this},fadeIn:function(h,f,v,m,g,x){return this.fadeEffect.start(!1,h,f,v,m,!0,g,x)},fadeOut:function(h,f,v,m,g,x){return this.fadeEffect.start(!0,h,f,v,m,!0,g,x)},fadeFrom:function(h,f,v,m,g,x,y){return this.fadeEffect.start(!1,h,f,v,m,g,x,y)},fade:function(h,f,v,m,g,x,y){return this.fadeEffect.start(!0,h,f,v,m,g,x,y)},flash:function(h,f,v,m,g,x,y){return this.flashEffect.start(h,f,v,m,g,x,y)},shake:function(h,f,v,m,g){return this.shakeEffect.start(h,f,v,m,g)},pan:function(h,f,v,m,g,x,y){return this.panEffect.start(h,f,v,m,g,x,y)},rotateTo:function(h,f,v,m,g,x,y){return this.rotateToEffect.start(h,f,v,m,g,x,y)},zoomTo:function(h,f,v,m,g,x){return this.zoomEffect.start(h,f,v,m,g,x)},preRender:function(){this.renderList.length=0;var h=this.width,f=this.height,v=h*.5,m=f*.5,g=this.zoomX,x=this.zoomY,y=this.matrix,S=h*this.originX,C=f*this.originY,E=this._follow,M=this.deadzone,P=this.scrollX,A=this.scrollY;M&&p(M,this.midPoint.x,this.midPoint.y);var R=!1;if(E&&!this.panEffect.isRunning){var F=this.lerp,D=E.x-this.followOffset.x,w=E.y-this.followOffset.y;M?(DM.right&&(P=o(P,P+(D-M.right),F.x)),wM.bottom&&(A=o(A,A+(w-M.bottom),F.y))):(P=o(P,D-S,F.x),A=o(A,w-C,F.y)),R=!0}this.roundPixels&&(P=Math.floor(P),A=Math.floor(A)),this.useBounds&&(P=this.clampX(P),A=this.clampY(A)),this.scrollX=P,this.scrollY=A;var G=P+v,N=A+m;this.midPoint.set(G,N);var b=Math.floor(h/g+.5),B=Math.floor(f/x+.5),O=Math.floor(G-b/2+.5),L=Math.floor(N-B/2+.5);this.worldView.setTo(O,L,b,B),y.applyITRS(Math.floor(this.x+S+.5),Math.floor(this.y+C+.5),this.rotation,g,x),y.translate(-S,-C),this.shakeEffect.preRender(),R&&this.emit(s.FOLLOW_UPDATE,this,E)},setLerp:function(h,f){return h===void 0&&(h=1),f===void 0&&(f=h),this.lerp.set(h,f),this},setFollowOffset:function(h,f){return h===void 0&&(h=0),f===void 0&&(f=0),this.followOffset.set(h,f),this},startFollow:function(h,f,v,m,g,x){f===void 0&&(f=!1),v===void 0&&(v=1),m===void 0&&(m=v),g===void 0&&(g=0),x===void 0&&(x=g),this._follow=h,this.roundPixels=f,v=l(v,0,1),m=l(m,0,1),this.lerp.set(v,m),this.followOffset.set(g,x);var y=this.width/2,S=this.height/2,C=h.x-g,E=h.y-x;return this.midPoint.set(C,E),this.scrollX=C-y,this.scrollY=E-S,this.useBounds&&(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},stopFollow:function(){return this._follow=null,this},resetFX:function(){return this.rotateToEffect.reset(),this.panEffect.reset(),this.shakeEffect.reset(),this.flashEffect.reset(),this.fadeEffect.reset(),this},update:function(h,f){this.visible&&(this.rotateToEffect.update(h,f),this.panEffect.update(h,f),this.zoomEffect.update(h,f),this.shakeEffect.update(h,f),this.flashEffect.update(h,f),this.fadeEffect.update(h,f))},destroy:function(){this.resetFX(),d.prototype.destroy.call(this),this._follow=null,this.deadzone=null}});c.exports=u},32743:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(38058),p=t(83419),a=t(95540),r=t(37277),n=t(37303),e=t(97480),s=t(44594),l=new p({initialize:function(o){this.scene=o,this.systems=o.sys,this.roundPixels=o.sys.game.config.roundPixels,this.cameras=[],this.main,this.default,o.sys.events.once(s.BOOT,this.boot,this),o.sys.events.on(s.START,this.start,this)},boot:function(){var i=this.systems;i.settings.cameras?this.fromJSON(i.settings.cameras):this.add(),this.main=this.cameras[0],this.default=new d(0,0,i.scale.width,i.scale.height).setScene(this.scene),i.game.scale.on(e.RESIZE,this.onResize,this),this.systems.events.once(s.DESTROY,this.destroy,this)},start:function(){if(!this.main){var i=this.systems;i.settings.cameras?this.fromJSON(i.settings.cameras):this.add(),this.main=this.cameras[0]}var o=this.systems.events;o.on(s.UPDATE,this.update,this),o.once(s.SHUTDOWN,this.shutdown,this)},add:function(i,o,u,h,f,v){i===void 0&&(i=0),o===void 0&&(o=0),u===void 0&&(u=this.scene.sys.scale.width),h===void 0&&(h=this.scene.sys.scale.height),f===void 0&&(f=!1),v===void 0&&(v="");var m=new d(i,o,u,h);return m.setName(v),m.setScene(this.scene),m.setRoundPixels(this.roundPixels),m.id=this.getNextID(),this.cameras.push(m),f&&(this.main=m),m},addExisting:function(i,o){o===void 0&&(o=!1);var u=this.cameras.indexOf(i);return u===-1?(i.id=this.getNextID(),i.setRoundPixels(this.roundPixels),this.cameras.push(i),o&&(this.main=i),i):null},getNextID:function(){for(var i=this.cameras,o=1,u=0;u<32;u++){for(var h=!1,f=0;f0){v.preRender();var m=this.getVisibleChildren(o.getChildren(),v);i.render(u,m,v)}}},getVisibleChildren:function(i,o){return i.filter(function(u){return u.willRender(o)})},resetAll:function(){for(var i=0;i{/** + */var d=t(38058),p=t(83419),l=t(95540),r=t(37277),n=t(37303),e=t(97480),s=t(44594),o=new p({initialize:function(a){this.scene=a,this.systems=a.sys,this.roundPixels=a.sys.game.config.roundPixels,this.cameras=[],this.main,this.default,a.sys.events.once(s.BOOT,this.boot,this),a.sys.events.on(s.START,this.start,this)},boot:function(){var i=this.systems;i.settings.cameras?this.fromJSON(i.settings.cameras):this.add(),this.main=this.cameras[0],this.default=new d(0,0,i.scale.width,i.scale.height).setScene(this.scene),i.game.scale.on(e.RESIZE,this.onResize,this),this.systems.events.once(s.DESTROY,this.destroy,this)},start:function(){if(!this.main){var i=this.systems;i.settings.cameras?this.fromJSON(i.settings.cameras):this.add(),this.main=this.cameras[0]}var a=this.systems.events;a.on(s.UPDATE,this.update,this),a.once(s.SHUTDOWN,this.shutdown,this)},add:function(i,a,u,h,f,v){i===void 0&&(i=0),a===void 0&&(a=0),u===void 0&&(u=this.scene.sys.scale.width),h===void 0&&(h=this.scene.sys.scale.height),f===void 0&&(f=!1),v===void 0&&(v="");var m=new d(i,a,u,h);return m.setName(v),m.setScene(this.scene),m.setRoundPixels(this.roundPixels),m.id=this.getNextID(),this.cameras.push(m),f&&(this.main=m),m},addExisting:function(i,a){a===void 0&&(a=!1);var u=this.cameras.indexOf(i);return u===-1?(i.id=this.getNextID(),i.setRoundPixels(this.roundPixels),this.cameras.push(i),a&&(this.main=i),i):null},getNextID:function(){for(var i=this.cameras,a=1,u=0;u<32;u++){for(var h=!1,f=0;f0){v.preRender();var m=this.getVisibleChildren(a.getChildren(),v);i.render(u,m,v)}}},getVisibleChildren:function(i,a){return i.filter(function(u){return u.willRender(a)})},resetAll:function(){for(var i=0;i{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(45319),p=t(83419),a=t(19715),r=new p({initialize:function(e){this.camera=e,this.isRunning=!1,this.isComplete=!1,this.direction=!0,this.duration=0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(n,e,s,l,i,o,u,h){if(n===void 0&&(n=!0),e===void 0&&(e=1e3),s===void 0&&(s=0),l===void 0&&(l=0),i===void 0&&(i=0),o===void 0&&(o=!1),u===void 0&&(u=null),h===void 0&&(h=this.camera.scene),!o&&this.isRunning)return this.camera;this.isRunning=!0,this.isComplete=!1,this.duration=e,this.direction=n,this.progress=0,this.red=s,this.green=l,this.blue=i,this.alpha=n?Number.MIN_VALUE:1,this._elapsed=0,this._onUpdate=u,this._onUpdateScope=h;var f=n?a.FADE_OUT_START:a.FADE_IN_START;return this.camera.emit(f,this.camera,this,e,s,l,i),this.camera},update:function(n,e){this.isRunning&&(this._elapsed+=e,this.progress=d(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{/** + */var d=t(45319),p=t(83419),l=t(19715),r=new p({initialize:function(e){this.camera=e,this.isRunning=!1,this.isComplete=!1,this.direction=!0,this.duration=0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(n,e,s,o,i,a,u,h){if(n===void 0&&(n=!0),e===void 0&&(e=1e3),s===void 0&&(s=0),o===void 0&&(o=0),i===void 0&&(i=0),a===void 0&&(a=!1),u===void 0&&(u=null),h===void 0&&(h=this.camera.scene),!a&&this.isRunning)return this.camera;this.isRunning=!0,this.isComplete=!1,this.duration=e,this.direction=n,this.progress=0,this.red=s,this.green=o,this.blue=i,this.alpha=n?Number.MIN_VALUE:1,this._elapsed=0,this._onUpdate=u,this._onUpdateScope=h;var f=n?l.FADE_OUT_START:l.FADE_IN_START;return this.camera.emit(f,this.camera,this,e,s,o,i),this.camera},update:function(n,e){this.isRunning&&(this._elapsed+=e,this.progress=d(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(45319),p=t(83419),a=t(19715),r=new p({initialize:function(e){this.camera=e,this.isRunning=!1,this.duration=0,this.red=0,this.green=0,this.blue=0,this.alpha=1,this.progress=0,this._elapsed=0,this._alpha,this._onUpdate,this._onUpdateScope},start:function(n,e,s,l,i,o,u){return n===void 0&&(n=250),e===void 0&&(e=255),s===void 0&&(s=255),l===void 0&&(l=255),i===void 0&&(i=!1),o===void 0&&(o=null),u===void 0&&(u=this.camera.scene),!i&&this.isRunning?this.camera:(this.isRunning=!0,this.duration=n,this.progress=0,this.red=e,this.green=s,this.blue=l,this._alpha=this.alpha,this._elapsed=0,this._onUpdate=o,this._onUpdateScope=u,this.camera.emit(a.FLASH_START,this.camera,this,n,e,s,l),this.camera)},update:function(n,e){this.isRunning&&(this._elapsed+=e,this.progress=d(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{/** + */var d=t(45319),p=t(83419),l=t(19715),r=new p({initialize:function(e){this.camera=e,this.isRunning=!1,this.duration=0,this.red=0,this.green=0,this.blue=0,this.alpha=1,this.progress=0,this._elapsed=0,this._alpha,this._onUpdate,this._onUpdateScope},start:function(n,e,s,o,i,a,u){return n===void 0&&(n=250),e===void 0&&(e=255),s===void 0&&(s=255),o===void 0&&(o=255),i===void 0&&(i=!1),a===void 0&&(a=null),u===void 0&&(u=this.camera.scene),!i&&this.isRunning?this.camera:(this.isRunning=!0,this.duration=n,this.progress=0,this.red=e,this.green=s,this.blue=o,this._alpha=this.alpha,this._elapsed=0,this._onUpdate=a,this._onUpdateScope=u,this.camera.emit(l.FLASH_START,this.camera,this,n,e,s,o),this.camera)},update:function(n,e){this.isRunning&&(this._elapsed+=e,this.progress=d(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(45319),p=t(83419),a=t(62640),r=t(19715),n=t(26099),e=new p({initialize:function(l){this.camera=l,this.isRunning=!1,this.duration=0,this.source=new n,this.current=new n,this.destination=new n,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(s,l,i,o,u,h,f){i===void 0&&(i=1e3),o===void 0&&(o=a.Linear),u===void 0&&(u=!1),h===void 0&&(h=null),f===void 0&&(f=this.camera.scene);var v=this.camera;return!u&&this.isRunning||(this.isRunning=!0,this.duration=i,this.progress=0,this.source.set(v.scrollX,v.scrollY),this.destination.set(s,l),v.getScroll(s,l,this.current),typeof o=="string"&&a.hasOwnProperty(o)?this.ease=a[o]:typeof o=="function"&&(this.ease=o),this._elapsed=0,this._onUpdate=h,this._onUpdateScope=f,this.camera.emit(r.PAN_START,this.camera,this,i,s,l)),v},update:function(s,l){if(this.isRunning){this._elapsed+=l;var i=d(this._elapsed/this.duration,0,1);this.progress=i;var o=this.camera;if(this._elapsed{/** + */var d=t(45319),p=t(83419),l=t(62640),r=t(19715),n=t(26099),e=new p({initialize:function(o){this.camera=o,this.isRunning=!1,this.duration=0,this.source=new n,this.current=new n,this.destination=new n,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(s,o,i,a,u,h,f){i===void 0&&(i=1e3),a===void 0&&(a=l.Linear),u===void 0&&(u=!1),h===void 0&&(h=null),f===void 0&&(f=this.camera.scene);var v=this.camera;return!u&&this.isRunning||(this.isRunning=!0,this.duration=i,this.progress=0,this.source.set(v.scrollX,v.scrollY),this.destination.set(s,o),v.getScroll(s,o,this.current),typeof a=="string"&&l.hasOwnProperty(a)?this.ease=l[a]:typeof a=="function"&&(this.ease=a),this._elapsed=0,this._onUpdate=h,this._onUpdateScope=f,this.camera.emit(r.PAN_START,this.camera,this,i,s,o)),v},update:function(s,o){if(this.isRunning){this._elapsed+=o;var i=d(this._elapsed/this.duration,0,1);this.progress=i;var a=this.camera;if(this._elapsed{/** * @author Jason Nicholls * @copyright 2018 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} - */var d=t(45319),p=t(83419),a=t(19715),r=t(62640),n=new p({initialize:function(s){this.camera=s,this.isRunning=!1,this.duration=0,this.source=0,this.current=0,this.destination=0,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope,this.clockwise=!0,this.shortestPath=!1},start:function(e,s,l,i,o,u,h){l===void 0&&(l=1e3),i===void 0&&(i=r.Linear),o===void 0&&(o=!1),u===void 0&&(u=null),h===void 0&&(h=this.camera.scene),s===void 0&&(s=!1),this.shortestPath=s;var f=e;e<0?(f=-1*e,this.clockwise=!1):this.clockwise=!0;var v=360*Math.PI/180;f=f-Math.floor(f/v)*v;var m=this.camera;if(!o&&this.isRunning)return m;if(this.isRunning=!0,this.duration=l,this.progress=0,this.source=m.rotation,this.destination=f,typeof i=="string"&&r.hasOwnProperty(i)?this.ease=r[i]:typeof i=="function"&&(this.ease=i),this._elapsed=0,this._onUpdate=u,this._onUpdateScope=h,this.shortestPath){var x=0,g=0;this.destination>this.source?x=Math.abs(this.destination-this.source):x=Math.abs(this.destination+v)-this.source,this.source>this.destination?g=Math.abs(this.source-this.destination):g=Math.abs(this.source+v)-this.destination,xg&&(this.clockwise=!1)}return this.camera.emit(a.ROTATE_START,this.camera,this,l,f),m},update:function(e,s){if(this.isRunning){this._elapsed+=s;var l=d(this._elapsed/this.duration,0,1);this.progress=l;var i=this.camera;if(this._elapsed=v?u=Math.abs(f-v):u=Math.abs(f+h)-v;var m=0;this.clockwise?m=i.rotation+u*o:m=i.rotation-u*o,i.rotation=m,this._onUpdate&&this._onUpdate.call(this._onUpdateScope,i,l,m)}else i.rotation=this.destination,this._onUpdate&&this._onUpdate.call(this._onUpdateScope,i,l,this.destination),this.effectComplete()}},effectComplete:function(){this._onUpdate=null,this._onUpdateScope=null,this.isRunning=!1,this.camera.emit(a.ROTATE_COMPLETE,this.camera,this)},reset:function(){this.isRunning=!1,this._onUpdate=null,this._onUpdateScope=null},destroy:function(){this.reset(),this.camera=null,this.source=null,this.destination=null}});c.exports=n},30330:(c,T,t)=>{/** + */var d=t(45319),p=t(83419),l=t(19715),r=t(62640),n=new p({initialize:function(s){this.camera=s,this.isRunning=!1,this.duration=0,this.source=0,this.current=0,this.destination=0,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope,this.clockwise=!0,this.shortestPath=!1},start:function(e,s,o,i,a,u,h){o===void 0&&(o=1e3),i===void 0&&(i=r.Linear),a===void 0&&(a=!1),u===void 0&&(u=null),h===void 0&&(h=this.camera.scene),s===void 0&&(s=!1),this.shortestPath=s;var f=e;e<0?(f=-1*e,this.clockwise=!1):this.clockwise=!0;var v=360*Math.PI/180;f=f-Math.floor(f/v)*v;var m=this.camera;if(!a&&this.isRunning)return m;if(this.isRunning=!0,this.duration=o,this.progress=0,this.source=m.rotation,this.destination=f,typeof i=="string"&&r.hasOwnProperty(i)?this.ease=r[i]:typeof i=="function"&&(this.ease=i),this._elapsed=0,this._onUpdate=u,this._onUpdateScope=h,this.shortestPath){var g=0,x=0;this.destination>this.source?g=Math.abs(this.destination-this.source):g=Math.abs(this.destination+v)-this.source,this.source>this.destination?x=Math.abs(this.source-this.destination):x=Math.abs(this.source+v)-this.destination,gx&&(this.clockwise=!1)}return this.camera.emit(l.ROTATE_START,this.camera,this,o,f),m},update:function(e,s){if(this.isRunning){this._elapsed+=s;var o=d(this._elapsed/this.duration,0,1);this.progress=o;var i=this.camera;if(this._elapsed=v?u=Math.abs(f-v):u=Math.abs(f+h)-v;var m=0;this.clockwise?m=i.rotation+u*a:m=i.rotation-u*a,i.rotation=m,this._onUpdate&&this._onUpdate.call(this._onUpdateScope,i,o,m)}else i.rotation=this.destination,this._onUpdate&&this._onUpdate.call(this._onUpdateScope,i,o,this.destination),this.effectComplete()}},effectComplete:function(){this._onUpdate=null,this._onUpdateScope=null,this.isRunning=!1,this.camera.emit(l.ROTATE_COMPLETE,this.camera,this)},reset:function(){this.isRunning=!1,this._onUpdate=null,this._onUpdateScope=null},destroy:function(){this.reset(),this.camera=null,this.source=null,this.destination=null}});c.exports=n},30330:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(45319),p=t(83419),a=t(19715),r=t(26099),n=new p({initialize:function(s){this.camera=s,this.isRunning=!1,this.duration=0,this.intensity=new r,this.progress=0,this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate,this._onUpdateScope},start:function(e,s,l,i,o){return e===void 0&&(e=100),s===void 0&&(s=.05),l===void 0&&(l=!1),i===void 0&&(i=null),o===void 0&&(o=this.camera.scene),!l&&this.isRunning?this.camera:(this.isRunning=!0,this.duration=e,this.progress=0,typeof s=="number"?this.intensity.set(s):this.intensity.set(s.x,s.y),this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate=i,this._onUpdateScope=o,this.camera.emit(a.SHAKE_START,this.camera,this,e,s),this.camera)},preRender:function(){this.isRunning&&this.camera.matrix.translate(this._offsetX,this._offsetY)},update:function(e,s){if(this.isRunning)if(this._elapsed+=s,this.progress=d(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{/** + */var d=t(45319),p=t(83419),l=t(19715),r=t(26099),n=new p({initialize:function(s){this.camera=s,this.isRunning=!1,this.duration=0,this.intensity=new r,this.progress=0,this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate,this._onUpdateScope},start:function(e,s,o,i,a){return e===void 0&&(e=100),s===void 0&&(s=.05),o===void 0&&(o=!1),i===void 0&&(i=null),a===void 0&&(a=this.camera.scene),!o&&this.isRunning?this.camera:(this.isRunning=!0,this.duration=e,this.progress=0,typeof s=="number"?this.intensity.set(s):this.intensity.set(s.x,s.y),this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate=i,this._onUpdateScope=a,this.camera.emit(l.SHAKE_START,this.camera,this,e,s),this.camera)},preRender:function(){this.isRunning&&this.camera.matrix.translate(this._offsetX,this._offsetY)},update:function(e,s){if(this.isRunning)if(this._elapsed+=s,this.progress=d(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(45319),p=t(83419),a=t(62640),r=t(19715),n=new p({initialize:function(s){this.camera=s,this.isRunning=!1,this.duration=0,this.source=1,this.destination=1,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(e,s,l,i,o,u){s===void 0&&(s=1e3),l===void 0&&(l=a.Linear),i===void 0&&(i=!1),o===void 0&&(o=null),u===void 0&&(u=this.camera.scene);var h=this.camera;return!i&&this.isRunning||(this.isRunning=!0,this.duration=s,this.progress=0,this.source=h.zoom,this.destination=e,typeof l=="string"&&a.hasOwnProperty(l)?this.ease=a[l]:typeof l=="function"&&(this.ease=l),this._elapsed=0,this._onUpdate=o,this._onUpdateScope=u,this.camera.emit(r.ZOOM_START,this.camera,this,s,e)),h},update:function(e,s){this.isRunning&&(this._elapsed+=s,this.progress=d(this._elapsed/this.duration,0,1),this._elapsed{/** + */var d=t(45319),p=t(83419),l=t(62640),r=t(19715),n=new p({initialize:function(s){this.camera=s,this.isRunning=!1,this.duration=0,this.source=1,this.destination=1,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(e,s,o,i,a,u){s===void 0&&(s=1e3),o===void 0&&(o=l.Linear),i===void 0&&(i=!1),a===void 0&&(a=null),u===void 0&&(u=this.camera.scene);var h=this.camera;return!i&&this.isRunning||(this.isRunning=!0,this.duration=s,this.progress=0,this.source=h.zoom,this.destination=e,typeof o=="string"&&l.hasOwnProperty(o)?this.ease=l[o]:typeof o=="function"&&(this.ease=o),this._elapsed=0,this._onUpdate=a,this._onUpdateScope=u,this.camera.emit(r.ZOOM_START,this.camera,this,s,e)),h},update:function(e,s){this.isRunning&&(this._elapsed+=s,this.progress=d(this._elapsed/this.duration,0,1),this._elapsed{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -431,11 +431,11 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(35154),a=new d({initialize:function(n){this.camera=p(n,"camera",null),this.left=p(n,"left",null),this.right=p(n,"right",null),this.up=p(n,"up",null),this.down=p(n,"down",null),this.zoomIn=p(n,"zoomIn",null),this.zoomOut=p(n,"zoomOut",null),this.zoomSpeed=p(n,"zoomSpeed",.01),this.minZoom=p(n,"minZoom",.001),this.maxZoom=p(n,"maxZoom",1e3),this.speedX=0,this.speedY=0;var e=p(n,"speed",null);typeof e=="number"?(this.speedX=e,this.speedY=e):(this.speedX=p(n,"speed.x",0),this.speedY=p(n,"speed.y",0)),this._zoom=0,this.active=this.camera!==null},start:function(){return this.active=this.camera!==null,this},stop:function(){return this.active=!1,this},setCamera:function(r){return this.camera=r,this},update:function(r){if(this.active){r===void 0&&(r=1);var n=this.camera;this.up&&this.up.isDown?n.scrollY-=this.speedY*r|0:this.down&&this.down.isDown&&(n.scrollY+=this.speedY*r|0),this.left&&this.left.isDown?n.scrollX-=this.speedX*r|0:this.right&&this.right.isDown&&(n.scrollX+=this.speedX*r|0),this.zoomIn&&this.zoomIn.isDown?(n.zoom-=this.zoomSpeed,n.zoomthis.maxZoom&&(n.zoom=this.maxZoom))}},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});c.exports=a},58818:(c,T,t)=>{/** + */var d=t(83419),p=t(35154),l=new d({initialize:function(n){this.camera=p(n,"camera",null),this.left=p(n,"left",null),this.right=p(n,"right",null),this.up=p(n,"up",null),this.down=p(n,"down",null),this.zoomIn=p(n,"zoomIn",null),this.zoomOut=p(n,"zoomOut",null),this.zoomSpeed=p(n,"zoomSpeed",.01),this.minZoom=p(n,"minZoom",.001),this.maxZoom=p(n,"maxZoom",1e3),this.speedX=0,this.speedY=0;var e=p(n,"speed",null);typeof e=="number"?(this.speedX=e,this.speedY=e):(this.speedX=p(n,"speed.x",0),this.speedY=p(n,"speed.y",0)),this._zoom=0,this.active=this.camera!==null},start:function(){return this.active=this.camera!==null,this},stop:function(){return this.active=!1,this},setCamera:function(r){return this.camera=r,this},update:function(r){if(this.active){r===void 0&&(r=1);var n=this.camera;this.up&&this.up.isDown?n.scrollY-=this.speedY*r|0:this.down&&this.down.isDown&&(n.scrollY+=this.speedY*r|0),this.left&&this.left.isDown?n.scrollX-=this.speedX*r|0:this.right&&this.right.isDown&&(n.scrollX+=this.speedX*r|0),this.zoomIn&&this.zoomIn.isDown?(n.zoom-=this.zoomSpeed,n.zoomthis.maxZoom&&(n.zoom=this.maxZoom))}},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});c.exports=l},58818:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(35154),a=new d({initialize:function(n){this.camera=p(n,"camera",null),this.left=p(n,"left",null),this.right=p(n,"right",null),this.up=p(n,"up",null),this.down=p(n,"down",null),this.zoomIn=p(n,"zoomIn",null),this.zoomOut=p(n,"zoomOut",null),this.zoomSpeed=p(n,"zoomSpeed",.01),this.minZoom=p(n,"minZoom",.001),this.maxZoom=p(n,"maxZoom",1e3),this.accelX=0,this.accelY=0;var e=p(n,"acceleration",null);typeof e=="number"?(this.accelX=e,this.accelY=e):(this.accelX=p(n,"acceleration.x",0),this.accelY=p(n,"acceleration.y",0)),this.dragX=0,this.dragY=0;var s=p(n,"drag",null);typeof s=="number"?(this.dragX=s,this.dragY=s):(this.dragX=p(n,"drag.x",0),this.dragY=p(n,"drag.y",0)),this.maxSpeedX=0,this.maxSpeedY=0;var l=p(n,"maxSpeed",null);typeof l=="number"?(this.maxSpeedX=l,this.maxSpeedY=l):(this.maxSpeedX=p(n,"maxSpeed.x",0),this.maxSpeedY=p(n,"maxSpeed.y",0)),this._speedX=0,this._speedY=0,this._zoom=0,this.active=this.camera!==null},start:function(){return this.active=this.camera!==null,this},stop:function(){return this.active=!1,this},setCamera:function(r){return this.camera=r,this},update:function(r){if(this.active){r===void 0&&(r=1);var n=this.camera;this._speedX>0?(this._speedX-=this.dragX*r,this._speedX<0&&(this._speedX=0)):this._speedX<0&&(this._speedX+=this.dragX*r,this._speedX>0&&(this._speedX=0)),this._speedY>0?(this._speedY-=this.dragY*r,this._speedY<0&&(this._speedY=0)):this._speedY<0&&(this._speedY+=this.dragY*r,this._speedY>0&&(this._speedY=0)),this.up&&this.up.isDown?(this._speedY+=this.accelY,this._speedY>this.maxSpeedY&&(this._speedY=this.maxSpeedY)):this.down&&this.down.isDown&&(this._speedY-=this.accelY,this._speedY<-this.maxSpeedY&&(this._speedY=-this.maxSpeedY)),this.left&&this.left.isDown?(this._speedX+=this.accelX,this._speedX>this.maxSpeedX&&(this._speedX=this.maxSpeedX)):this.right&&this.right.isDown&&(this._speedX-=this.accelX,this._speedX<-this.maxSpeedX&&(this._speedX=-this.maxSpeedX)),this.zoomIn&&this.zoomIn.isDown?this._zoom=-this.zoomSpeed:this.zoomOut&&this.zoomOut.isDown?this._zoom=this.zoomSpeed:this._zoom=0,this._speedX!==0&&(n.scrollX-=this._speedX*r|0),this._speedY!==0&&(n.scrollY-=this._speedY*r|0),this._zoom!==0&&(n.zoom+=this._zoom,n.zoomthis.maxZoom&&(n.zoom=this.maxZoom))}},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});c.exports=a},38865:(c,T,t)=>{/** + */var d=t(83419),p=t(35154),l=new d({initialize:function(n){this.camera=p(n,"camera",null),this.left=p(n,"left",null),this.right=p(n,"right",null),this.up=p(n,"up",null),this.down=p(n,"down",null),this.zoomIn=p(n,"zoomIn",null),this.zoomOut=p(n,"zoomOut",null),this.zoomSpeed=p(n,"zoomSpeed",.01),this.minZoom=p(n,"minZoom",.001),this.maxZoom=p(n,"maxZoom",1e3),this.accelX=0,this.accelY=0;var e=p(n,"acceleration",null);typeof e=="number"?(this.accelX=e,this.accelY=e):(this.accelX=p(n,"acceleration.x",0),this.accelY=p(n,"acceleration.y",0)),this.dragX=0,this.dragY=0;var s=p(n,"drag",null);typeof s=="number"?(this.dragX=s,this.dragY=s):(this.dragX=p(n,"drag.x",0),this.dragY=p(n,"drag.y",0)),this.maxSpeedX=0,this.maxSpeedY=0;var o=p(n,"maxSpeed",null);typeof o=="number"?(this.maxSpeedX=o,this.maxSpeedY=o):(this.maxSpeedX=p(n,"maxSpeed.x",0),this.maxSpeedY=p(n,"maxSpeed.y",0)),this._speedX=0,this._speedY=0,this._zoom=0,this.active=this.camera!==null},start:function(){return this.active=this.camera!==null,this},stop:function(){return this.active=!1,this},setCamera:function(r){return this.camera=r,this},update:function(r){if(this.active){r===void 0&&(r=1);var n=this.camera;this._speedX>0?(this._speedX-=this.dragX*r,this._speedX<0&&(this._speedX=0)):this._speedX<0&&(this._speedX+=this.dragX*r,this._speedX>0&&(this._speedX=0)),this._speedY>0?(this._speedY-=this.dragY*r,this._speedY<0&&(this._speedY=0)):this._speedY<0&&(this._speedY+=this.dragY*r,this._speedY>0&&(this._speedY=0)),this.up&&this.up.isDown?(this._speedY+=this.accelY,this._speedY>this.maxSpeedY&&(this._speedY=this.maxSpeedY)):this.down&&this.down.isDown&&(this._speedY-=this.accelY,this._speedY<-this.maxSpeedY&&(this._speedY=-this.maxSpeedY)),this.left&&this.left.isDown?(this._speedX+=this.accelX,this._speedX>this.maxSpeedX&&(this._speedX=this.maxSpeedX)):this.right&&this.right.isDown&&(this._speedX-=this.accelX,this._speedX<-this.maxSpeedX&&(this._speedX=-this.maxSpeedX)),this.zoomIn&&this.zoomIn.isDown?this._zoom=-this.zoomSpeed:this.zoomOut&&this.zoomOut.isDown?this._zoom=this.zoomSpeed:this._zoom=0,this._speedX!==0&&(n.scrollX-=this._speedX*r|0),this._speedY!==0&&(n.scrollY-=this._speedY*r|0),this._zoom!==0&&(n.zoom+=this._zoom,n.zoomthis.maxZoom&&(n.zoom=this.maxZoom))}},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});c.exports=l},38865:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -447,31 +447,31 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d={VERSION:"3.80.1",BlendModes:t(10312),ScaleModes:t(29795),AUTO:0,CANVAS:1,WEBGL:2,HEADLESS:3,FOREVER:-1,NONE:4,UP:5,DOWN:6,LEFT:7,RIGHT:8};c.exports=d},69547:(c,T,t)=>{/** + */var d={VERSION:"3.85.1",BlendModes:t(10312),ScaleModes:t(29795),AUTO:0,CANVAS:1,WEBGL:2,HEADLESS:3,FOREVER:-1,NONE:4,UP:5,DOWN:6,LEFT:7,RIGHT:8};c.exports=d},69547:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(8054),a=t(42363),r=t(82264),n=t(95540),e=t(35154),s=t(41212),l=t(29747),i=t(75508),o=t(36060),u=t(80333),h=new d({initialize:function(v){v===void 0&&(v={});var m=["#ff0000","#ffff00","#00ff00","#00ffff","#000000"],x="#ffffff",g=e(v,"scale",null);this.width=e(g,"width",1024,v),this.height=e(g,"height",768,v),this.zoom=e(g,"zoom",1,v),this.parent=e(g,"parent",void 0,v),this.scaleMode=e(g,g?"mode":"scaleMode",0,v),this.expandParent=e(g,"expandParent",!0,v),this.autoRound=e(g,"autoRound",!1,v),this.autoCenter=e(g,"autoCenter",0,v),this.resizeInterval=e(g,"resizeInterval",500,v),this.fullscreenTarget=e(g,"fullscreenTarget",null,v),this.minWidth=e(g,"min.width",0,v),this.maxWidth=e(g,"max.width",0,v),this.minHeight=e(g,"min.height",0,v),this.maxHeight=e(g,"max.height",0,v),this.snapWidth=e(g,"snap.width",0,v),this.snapHeight=e(g,"snap.height",0,v),this.renderType=e(v,"type",p.AUTO),this.canvas=e(v,"canvas",null),this.context=e(v,"context",null),this.canvasStyle=e(v,"canvasStyle",null),this.customEnvironment=e(v,"customEnvironment",!1),this.sceneConfig=e(v,"scene",null),this.seed=e(v,"seed",[(Date.now()*Math.random()).toString()]),i.RND=new i.RandomDataGenerator(this.seed),this.gameTitle=e(v,"title",""),this.gameURL=e(v,"url","https://phaser.io"),this.gameVersion=e(v,"version",""),this.autoFocus=e(v,"autoFocus",!0),this.stableSort=e(v,"stableSort",-1),this.stableSort===-1&&(this.stableSort=r.browser.es2019?1:0),r.features.stableSort=this.stableSort,this.domCreateContainer=e(v,"dom.createContainer",!1),this.domPointerEvents=e(v,"dom.pointerEvents","none"),this.inputKeyboard=e(v,"input.keyboard",!0),this.inputKeyboardEventTarget=e(v,"input.keyboard.target",window),this.inputKeyboardCapture=e(v,"input.keyboard.capture",[]),this.inputMouse=e(v,"input.mouse",!0),this.inputMouseEventTarget=e(v,"input.mouse.target",null),this.inputMousePreventDefaultDown=e(v,"input.mouse.preventDefaultDown",!0),this.inputMousePreventDefaultUp=e(v,"input.mouse.preventDefaultUp",!0),this.inputMousePreventDefaultMove=e(v,"input.mouse.preventDefaultMove",!0),this.inputMousePreventDefaultWheel=e(v,"input.mouse.preventDefaultWheel",!0),this.inputTouch=e(v,"input.touch",r.input.touch),this.inputTouchEventTarget=e(v,"input.touch.target",null),this.inputTouchCapture=e(v,"input.touch.capture",!0),this.inputActivePointers=e(v,"input.activePointers",1),this.inputSmoothFactor=e(v,"input.smoothFactor",0),this.inputWindowEvents=e(v,"input.windowEvents",!0),this.inputGamepad=e(v,"input.gamepad",!1),this.inputGamepadEventTarget=e(v,"input.gamepad.target",window),this.disableContextMenu=e(v,"disableContextMenu",!1),this.audio=e(v,"audio",{}),this.hideBanner=e(v,"banner",null)===!1,this.hidePhaser=e(v,"banner.hidePhaser",!1),this.bannerTextColor=e(v,"banner.text",x),this.bannerBackgroundColor=e(v,"banner.background",m),this.gameTitle===""&&this.hidePhaser&&(this.hideBanner=!0),this.fps=e(v,"fps",null),this.disablePreFX=e(v,"disablePreFX",!1),this.disablePostFX=e(v,"disablePostFX",!1);var y=e(v,"render",null);this.pipeline=e(y,"pipeline",null,v),this.autoMobilePipeline=e(y,"autoMobilePipeline",!0,v),this.defaultPipeline=e(y,"defaultPipeline",o.MULTI_PIPELINE,v),this.antialias=e(y,"antialias",!0,v),this.antialiasGL=e(y,"antialiasGL",!0,v),this.mipmapFilter=e(y,"mipmapFilter","",v),this.desynchronized=e(y,"desynchronized",!1,v),this.roundPixels=e(y,"roundPixels",!0,v),this.pixelArt=e(y,"pixelArt",this.zoom!==1,v),this.pixelArt&&(this.antialias=!1,this.antialiasGL=!1,this.roundPixels=!0),this.transparent=e(y,"transparent",!1,v),this.clearBeforeRender=e(y,"clearBeforeRender",!0,v),this.preserveDrawingBuffer=e(y,"preserveDrawingBuffer",!1,v),this.premultipliedAlpha=e(y,"premultipliedAlpha",!0,v),this.failIfMajorPerformanceCaveat=e(y,"failIfMajorPerformanceCaveat",!1,v),this.powerPreference=e(y,"powerPreference","default",v),this.batchSize=e(y,"batchSize",4096,v),this.maxTextures=e(y,"maxTextures",-1,v),this.maxLights=e(y,"maxLights",10,v);var S=e(v,"backgroundColor",0);this.backgroundColor=u(S),this.transparent&&(this.backgroundColor=u(0),this.backgroundColor.alpha=0),this.preBoot=e(v,"callbacks.preBoot",l),this.postBoot=e(v,"callbacks.postBoot",l),this.physics=e(v,"physics",{}),this.defaultPhysicsSystem=e(this.physics,"default",!1),this.loaderBaseURL=e(v,"loader.baseURL",""),this.loaderPath=e(v,"loader.path",""),this.loaderMaxParallelDownloads=e(v,"loader.maxParallelDownloads",r.os.android?6:32),this.loaderCrossOrigin=e(v,"loader.crossOrigin",void 0),this.loaderResponseType=e(v,"loader.responseType",""),this.loaderAsync=e(v,"loader.async",!0),this.loaderUser=e(v,"loader.user",""),this.loaderPassword=e(v,"loader.password",""),this.loaderTimeout=e(v,"loader.timeout",0),this.loaderWithCredentials=e(v,"loader.withCredentials",!1),this.loaderImageLoadType=e(v,"loader.imageLoadType","XHR"),this.loaderLocalScheme=e(v,"loader.localScheme",["file://","capacitor://"]),this.glowFXQuality=e(v,"fx.glow.quality",.1),this.glowFXDistance=e(v,"fx.glow.distance",10),this.installGlobalPlugins=[],this.installScenePlugins=[];var C=e(v,"plugins",null),E=a.DefaultScene;C&&(Array.isArray(C)?this.defaultPlugins=C:s(C)&&(this.installGlobalPlugins=n(C,"global",[]),this.installScenePlugins=n(C,"scene",[]),Array.isArray(C.default)?E=C.default:Array.isArray(C.defaultMerge)&&(E=E.concat(C.defaultMerge)))),this.defaultPlugins=E;var A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAg";this.defaultImage=e(v,"images.default",A+"AQMAAABJtOi3AAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAABVJREFUeF7NwIEAAAAAgKD9qdeocAMAoAABm3DkcAAAAABJRU5ErkJggg=="),this.missingImage=e(v,"images.missing",A+"CAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJ9JREFUeNq01ssOwyAMRFG46v//Mt1ESmgh+DFmE2GPOBARKb2NVjo+17PXLD8a1+pl5+A+wSgFygymWYHBb0FtsKhJDdZlncG2IzJ4ayoMDv20wTmSMzClEgbWYNTAkQ0Z+OJ+A/eWnAaR9+oxCF4Os0H8htsMUp+pwcgBBiMNnAwF8GqIgL2hAzaGFFgZauDPKABmowZ4GL369/0rwACp2yA/ttmvsQAAAABJRU5ErkJggg=="),this.whiteImage=e(v,"images.white","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABdJREFUeNpi/P//PwMMMDEgAdwcgAADAJZuAwXJYZOzAAAAAElFTkSuQmCC"),window&&(window.FORCE_WEBGL?this.renderType=p.WEBGL:window.FORCE_CANVAS&&(this.renderType=p.CANVAS))}});c.exports=h},86054:(c,T,t)=>{/** + */var d=t(83419),p=t(8054),l=t(42363),r=t(82264),n=t(95540),e=t(35154),s=t(41212),o=t(29747),i=t(75508),a=t(36060),u=t(80333),h=new d({initialize:function(v){v===void 0&&(v={});var m=["#ff0000","#ffff00","#00ff00","#00ffff","#000000"],g="#ffffff",x=e(v,"scale",null);this.width=e(x,"width",1024,v),this.height=e(x,"height",768,v),this.zoom=e(x,"zoom",1,v),this.parent=e(x,"parent",void 0,v),this.scaleMode=e(x,x?"mode":"scaleMode",0,v),this.expandParent=e(x,"expandParent",!0,v),this.autoRound=e(x,"autoRound",!1,v),this.autoCenter=e(x,"autoCenter",0,v),this.resizeInterval=e(x,"resizeInterval",500,v),this.fullscreenTarget=e(x,"fullscreenTarget",null,v),this.minWidth=e(x,"min.width",0,v),this.maxWidth=e(x,"max.width",0,v),this.minHeight=e(x,"min.height",0,v),this.maxHeight=e(x,"max.height",0,v),this.snapWidth=e(x,"snap.width",0,v),this.snapHeight=e(x,"snap.height",0,v),this.renderType=e(v,"type",p.AUTO),this.canvas=e(v,"canvas",null),this.context=e(v,"context",null),this.canvasStyle=e(v,"canvasStyle",null),this.customEnvironment=e(v,"customEnvironment",!1),this.sceneConfig=e(v,"scene",null),this.seed=e(v,"seed",[(Date.now()*Math.random()).toString()]),i.RND=new i.RandomDataGenerator(this.seed),this.gameTitle=e(v,"title",""),this.gameURL=e(v,"url","https://phaser.io/v385/"),this.gameVersion=e(v,"version",""),this.autoFocus=e(v,"autoFocus",!0),this.stableSort=e(v,"stableSort",-1),this.stableSort===-1&&(this.stableSort=r.browser.es2019?1:0),r.features.stableSort=this.stableSort,this.domCreateContainer=e(v,"dom.createContainer",!1),this.domPointerEvents=e(v,"dom.pointerEvents","none"),this.inputKeyboard=e(v,"input.keyboard",!0),this.inputKeyboardEventTarget=e(v,"input.keyboard.target",window),this.inputKeyboardCapture=e(v,"input.keyboard.capture",[]),this.inputMouse=e(v,"input.mouse",!0),this.inputMouseEventTarget=e(v,"input.mouse.target",null),this.inputMousePreventDefaultDown=e(v,"input.mouse.preventDefaultDown",!0),this.inputMousePreventDefaultUp=e(v,"input.mouse.preventDefaultUp",!0),this.inputMousePreventDefaultMove=e(v,"input.mouse.preventDefaultMove",!0),this.inputMousePreventDefaultWheel=e(v,"input.mouse.preventDefaultWheel",!0),this.inputTouch=e(v,"input.touch",r.input.touch),this.inputTouchEventTarget=e(v,"input.touch.target",null),this.inputTouchCapture=e(v,"input.touch.capture",!0),this.inputActivePointers=e(v,"input.activePointers",1),this.inputSmoothFactor=e(v,"input.smoothFactor",0),this.inputWindowEvents=e(v,"input.windowEvents",!0),this.inputGamepad=e(v,"input.gamepad",!1),this.inputGamepadEventTarget=e(v,"input.gamepad.target",window),this.disableContextMenu=e(v,"disableContextMenu",!1),this.audio=e(v,"audio",{}),this.hideBanner=e(v,"banner",null)===!1,this.hidePhaser=e(v,"banner.hidePhaser",!1),this.bannerTextColor=e(v,"banner.text",g),this.bannerBackgroundColor=e(v,"banner.background",m),this.gameTitle===""&&this.hidePhaser&&(this.hideBanner=!0),this.fps=e(v,"fps",null),this.disablePreFX=e(v,"disablePreFX",!1),this.disablePostFX=e(v,"disablePostFX",!1);var y=e(v,"render",null);this.pipeline=e(y,"pipeline",null,v),this.autoMobilePipeline=e(y,"autoMobilePipeline",!0,v),this.defaultPipeline=e(y,"defaultPipeline",a.MULTI_PIPELINE,v),this.antialias=e(y,"antialias",!0,v),this.antialiasGL=e(y,"antialiasGL",!0,v),this.mipmapFilter=e(y,"mipmapFilter","",v),this.desynchronized=e(y,"desynchronized",!1,v),this.roundPixels=e(y,"roundPixels",!1,v),this.pixelArt=e(y,"pixelArt",this.zoom!==1,v),this.pixelArt&&(this.antialias=!1,this.antialiasGL=!1,this.roundPixels=!0),this.transparent=e(y,"transparent",!1,v),this.clearBeforeRender=e(y,"clearBeforeRender",!0,v),this.preserveDrawingBuffer=e(y,"preserveDrawingBuffer",!1,v),this.premultipliedAlpha=e(y,"premultipliedAlpha",!0,v),this.failIfMajorPerformanceCaveat=e(y,"failIfMajorPerformanceCaveat",!1,v),this.powerPreference=e(y,"powerPreference","default",v),this.batchSize=e(y,"batchSize",4096,v),this.maxTextures=e(y,"maxTextures",-1,v),this.maxLights=e(y,"maxLights",10,v);var S=e(v,"backgroundColor",0);this.backgroundColor=u(S),this.transparent&&(this.backgroundColor=u(0),this.backgroundColor.alpha=0),this.preBoot=e(v,"callbacks.preBoot",o),this.postBoot=e(v,"callbacks.postBoot",o),this.physics=e(v,"physics",{}),this.defaultPhysicsSystem=e(this.physics,"default",!1),this.loaderBaseURL=e(v,"loader.baseURL",""),this.loaderPath=e(v,"loader.path",""),this.loaderMaxParallelDownloads=e(v,"loader.maxParallelDownloads",r.os.android?6:32),this.loaderCrossOrigin=e(v,"loader.crossOrigin",void 0),this.loaderResponseType=e(v,"loader.responseType",""),this.loaderAsync=e(v,"loader.async",!0),this.loaderUser=e(v,"loader.user",""),this.loaderPassword=e(v,"loader.password",""),this.loaderTimeout=e(v,"loader.timeout",0),this.loaderMaxRetries=e(v,"loader.maxRetries",2),this.loaderWithCredentials=e(v,"loader.withCredentials",!1),this.loaderImageLoadType=e(v,"loader.imageLoadType","XHR"),this.loaderLocalScheme=e(v,"loader.localScheme",["file://","capacitor://"]),this.glowFXQuality=e(v,"fx.glow.quality",.1),this.glowFXDistance=e(v,"fx.glow.distance",10),this.installGlobalPlugins=[],this.installScenePlugins=[];var C=e(v,"plugins",null),E=l.DefaultScene;C&&(Array.isArray(C)?this.defaultPlugins=C:s(C)&&(this.installGlobalPlugins=n(C,"global",[]),this.installScenePlugins=n(C,"scene",[]),Array.isArray(C.default)?E=C.default:Array.isArray(C.defaultMerge)&&(E=E.concat(C.defaultMerge)))),this.defaultPlugins=E;var M="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAg";this.defaultImage=e(v,"images.default",M+"AQMAAABJtOi3AAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAABVJREFUeF7NwIEAAAAAgKD9qdeocAMAoAABm3DkcAAAAABJRU5ErkJggg=="),this.missingImage=e(v,"images.missing",M+"CAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJ9JREFUeNq01ssOwyAMRFG46v//Mt1ESmgh+DFmE2GPOBARKb2NVjo+17PXLD8a1+pl5+A+wSgFygymWYHBb0FtsKhJDdZlncG2IzJ4ayoMDv20wTmSMzClEgbWYNTAkQ0Z+OJ+A/eWnAaR9+oxCF4Os0H8htsMUp+pwcgBBiMNnAwF8GqIgL2hAzaGFFgZauDPKABmowZ4GL369/0rwACp2yA/ttmvsQAAAABJRU5ErkJggg=="),this.whiteImage=e(v,"images.white","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABdJREFUeNpi/P//PwMMMDEgAdwcgAADAJZuAwXJYZOzAAAAAElFTkSuQmCC"),window&&(window.FORCE_WEBGL?this.renderType=p.WEBGL:window.FORCE_CANVAS&&(this.renderType=p.CANVAS))}});c.exports=h},86054:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(20623),p=t(27919),a=t(8054),r=t(89357),n=function(e){var s=e.config;if((s.customEnvironment||s.canvas)&&s.renderType===a.AUTO)throw new Error("Must set explicit renderType in custom environment");if(!s.customEnvironment&&!s.canvas&&s.renderType!==a.HEADLESS)if(s.renderType===a.AUTO&&(s.renderType=r.webGL?a.WEBGL:a.CANVAS),s.renderType===a.WEBGL){if(!r.webGL)throw new Error("Cannot create WebGL context, aborting.")}else if(s.renderType===a.CANVAS){if(!r.canvas)throw new Error("Cannot create Canvas context, aborting.")}else throw new Error("Unknown value for renderer type: "+s.renderType);s.antialias||p.disableSmoothing();var l=e.scale.baseSize,i=l.width,o=l.height;if(s.canvas?(e.canvas=s.canvas,e.canvas.width=i,e.canvas.height=o):e.canvas=p.create(e,i,o,s.renderType),s.canvasStyle&&(e.canvas.style=s.canvasStyle),s.antialias||d.setCrisp(e.canvas),s.renderType!==a.HEADLESS){var u,h;u=t(68627),h=t(74797),s.renderType===a.WEBGL?e.renderer=new h(e):(e.renderer=new u(e),e.context=e.renderer.gameContext)}};c.exports=n},96391:(c,T,t)=>{/** + */var d=t(20623),p=t(27919),l=t(8054),r=t(89357),n=function(e){var s=e.config;if((s.customEnvironment||s.canvas)&&s.renderType===l.AUTO)throw new Error("Must set explicit renderType in custom environment");if(!s.customEnvironment&&!s.canvas&&s.renderType!==l.HEADLESS)if(s.renderType===l.AUTO&&(s.renderType=r.webGL?l.WEBGL:l.CANVAS),s.renderType===l.WEBGL){if(!r.webGL)throw new Error("Cannot create WebGL context, aborting.")}else if(s.renderType===l.CANVAS){if(!r.canvas)throw new Error("Cannot create Canvas context, aborting.")}else throw new Error("Unknown value for renderer type: "+s.renderType);s.antialias||p.disableSmoothing();var o=e.scale.baseSize,i=o.width,a=o.height;if(s.canvas?(e.canvas=s.canvas,e.canvas.width=i,e.canvas.height=a):e.canvas=p.create(e,i,a,s.renderType),s.canvasStyle&&(e.canvas.style=s.canvasStyle),s.antialias||d.setCrisp(e.canvas),s.renderType!==l.HEADLESS){var u,h;u=t(68627),h=t(74797),s.renderType===l.WEBGL?e.renderer=new h(e):(e.renderer=new u(e),e.context=e.renderer.gameContext)}};c.exports=n},96391:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(8054),p=function(a){var r=a.config;if(!r.hideBanner){var n="WebGL";r.renderType===d.CANVAS?n="Canvas":r.renderType===d.HEADLESS&&(n="Headless");var e=r.audio,s=a.device.audio,l;if(s.webAudio&&!e.disableWebAudio?l="Web Audio":e.noAudio||!s.webAudio&&!s.audioData?l="No Audio":l="HTML5 Audio",a.device.browser.ie)window.console&&console.log("Phaser v"+d.VERSION+" / https://phaser.io");else{var i="",o=[i];if(Array.isArray(r.bannerBackgroundColor)){var u;r.bannerBackgroundColor.forEach(function(f){i=i.concat("%c "),o.push("background: "+f),u=f}),o[o.length-1]="color: "+r.bannerTextColor+"; background: "+u}else i=i.concat("%c "),o.push("color: "+r.bannerTextColor+"; background: "+r.bannerBackgroundColor);o.push("background: transparent"),r.gameTitle&&(i=i.concat(r.gameTitle),r.gameVersion&&(i=i.concat(" v"+r.gameVersion)),r.hidePhaser||(i=i.concat(" / ")));var h="";r.hidePhaser||(i=i.concat("Phaser v"+d.VERSION+h+" ("+n+" | "+l+")")),i=i.concat(" %c "+r.gameURL),o[0]=i,console.log.apply(console,o)}}};c.exports=p},50127:(c,T,t)=>{/** + */var d=t(8054),p=function(l){var r=l.config;if(!r.hideBanner){var n="WebGL";r.renderType===d.CANVAS?n="Canvas":r.renderType===d.HEADLESS&&(n="Headless");var e=r.audio,s=l.device.audio,o;if(s.webAudio&&!e.disableWebAudio?o="Web Audio":e.noAudio||!s.webAudio&&!s.audioData?o="No Audio":o="HTML5 Audio",l.device.browser.ie)window.console&&console.log("Phaser v"+d.VERSION+" / https://phaser.io");else{var i="",a=[i];if(Array.isArray(r.bannerBackgroundColor)){var u;r.bannerBackgroundColor.forEach(function(f){i=i.concat("%c "),a.push("background: "+f),u=f}),a[a.length-1]="color: "+r.bannerTextColor+"; background: "+u}else i=i.concat("%c "),a.push("color: "+r.bannerTextColor+"; background: "+r.bannerBackgroundColor);a.push("background: transparent"),r.gameTitle&&(i=i.concat(r.gameTitle),r.gameVersion&&(i=i.concat(" v"+r.gameVersion)),r.hidePhaser||(i=i.concat(" / ")));var h="";r.hidePhaser||(i=i.concat("Phaser v"+d.VERSION+h+" ("+n+" | "+o+")")),i=i.concat(" %c "+r.gameURL),a[0]=i,console.log.apply(console,a)}}};c.exports=p},50127:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(40366),p=t(60848),a=t(24047),r=t(27919),n=t(83419),e=t(69547),s=t(83719),l=t(86054),i=t(45893),o=t(96391),u=t(82264),h=t(57264),f=t(50792),v=t(8443),m=t(7003),x=t(37277),g=t(77332),y=t(76531),S=t(60903),C=t(69442),E=t(17130),A=t(65898),P=t(51085),M=t(14747),F=new n({initialize:function(b){this.config=new e(b),this.renderer=null,this.domContainer=null,this.canvas=null,this.context=null,this.isBooted=!1,this.isRunning=!1,this.events=new f,this.anims=new p(this),this.textures=new E(this),this.cache=new a(this),this.registry=new i(this,new f),this.input=new m(this,this.config),this.scene=new S(this,this.config.sceneConfig),this.device=u,this.scale=new y(this,this.config),this.sound=null,this.sound=M.create(this),this.loop=new A(this,this.config.fps),this.plugins=new g(this,this.config),this.pendingDestroy=!1,this.removeCanvas=!1,this.noReturn=!1,this.hasFocus=!1,this.isPaused=!1,h(this.boot.bind(this))},boot:function(){if(!x.hasCore("EventEmitter")){console.warn("Aborting. Core Plugins missing.");return}this.isBooted=!0,this.config.preBoot(this),this.scale.preBoot(),l(this),s(this),o(this),d(this.canvas,this.config.parent),this.textures.once(C.READY,this.texturesReady,this),this.events.emit(v.BOOT)},texturesReady:function(){this.events.emit(v.READY),this.start()},start:function(){this.isRunning=!0,this.config.postBoot(this),this.renderer?this.loop.start(this.step.bind(this)):this.loop.start(this.headlessStep.bind(this)),P(this);var L=this.events;L.on(v.HIDDEN,this.onHidden,this),L.on(v.VISIBLE,this.onVisible,this),L.on(v.BLUR,this.onBlur,this),L.on(v.FOCUS,this.onFocus,this)},step:function(L,b){if(this.pendingDestroy)return this.runDestroy();if(!this.isPaused){var B=this.events;B.emit(v.PRE_STEP,L,b),B.emit(v.STEP,L,b),this.scene.update(L,b),B.emit(v.POST_STEP,L,b);var N=this.renderer;N.preRender(),B.emit(v.PRE_RENDER,N,L,b),this.scene.render(N),N.postRender(),B.emit(v.POST_RENDER,N,L,b)}},headlessStep:function(L,b){if(this.pendingDestroy)return this.runDestroy();if(!this.isPaused){var B=this.events;B.emit(v.PRE_STEP,L,b),B.emit(v.STEP,L,b),this.scene.update(L,b),B.emit(v.POST_STEP,L,b),this.scene.isProcessing=!1,B.emit(v.PRE_RENDER,null,L,b),B.emit(v.POST_RENDER,null,L,b)}},onHidden:function(){this.loop.pause(),this.events.emit(v.PAUSE)},pause:function(){var L=this.isPaused;this.isPaused=!0,L||this.events.emit(v.PAUSE)},onVisible:function(){this.loop.resume(),this.events.emit(v.RESUME)},resume:function(){var L=this.isPaused;this.isPaused=!1,L&&this.events.emit(v.RESUME)},onBlur:function(){this.hasFocus=!1,this.loop.blur()},onFocus:function(){this.hasFocus=!0,this.loop.focus()},getFrame:function(){return this.loop.frame},getTime:function(){return this.loop.now},destroy:function(L,b){b===void 0&&(b=!1),this.pendingDestroy=!0,this.removeCanvas=L,this.noReturn=b},runDestroy:function(){this.scene.destroy(),this.events.emit(v.DESTROY),this.events.removeAllListeners(),this.renderer&&this.renderer.destroy(),this.removeCanvas&&this.canvas&&(r.remove(this.canvas),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)),this.domContainer&&this.domContainer.parentNode&&this.domContainer.parentNode.removeChild(this.domContainer),this.loop.destroy(),this.pendingDestroy=!1}});c.exports=F},65898:(c,T,t)=>{/** + */var d=t(40366),p=t(60848),l=t(24047),r=t(27919),n=t(83419),e=t(69547),s=t(83719),o=t(86054),i=t(45893),a=t(96391),u=t(82264),h=t(57264),f=t(50792),v=t(8443),m=t(7003),g=t(37277),x=t(77332),y=t(76531),S=t(60903),C=t(69442),E=t(17130),M=t(65898),P=t(51085),A=t(14747),R=new n({initialize:function(D){this.config=new e(D),this.renderer=null,this.domContainer=null,this.canvas=null,this.context=null,this.isBooted=!1,this.isRunning=!1,this.events=new f,this.anims=new p(this),this.textures=new E(this),this.cache=new l(this),this.registry=new i(this,new f),this.input=new m(this,this.config),this.scene=new S(this,this.config.sceneConfig),this.device=u,this.scale=new y(this,this.config),this.sound=null,this.sound=A.create(this),this.loop=new M(this,this.config.fps),this.plugins=new x(this,this.config),this.pendingDestroy=!1,this.removeCanvas=!1,this.noReturn=!1,this.hasFocus=!1,this.isPaused=!1,h(this.boot.bind(this))},boot:function(){if(!g.hasCore("EventEmitter")){console.warn("Aborting. Core Plugins missing.");return}this.isBooted=!0,this.config.preBoot(this),this.scale.preBoot(),o(this),s(this),a(this),d(this.canvas,this.config.parent),this.textures.once(C.READY,this.texturesReady,this),this.events.emit(v.BOOT)},texturesReady:function(){this.events.emit(v.READY),this.start()},start:function(){this.isRunning=!0,this.config.postBoot(this),this.renderer?this.loop.start(this.step.bind(this)):this.loop.start(this.headlessStep.bind(this)),P(this);var F=this.events;F.on(v.HIDDEN,this.onHidden,this),F.on(v.VISIBLE,this.onVisible,this),F.on(v.BLUR,this.onBlur,this),F.on(v.FOCUS,this.onFocus,this)},step:function(F,D){if(this.pendingDestroy)return this.runDestroy();if(!this.isPaused){var w=this.events;w.emit(v.PRE_STEP,F,D),w.emit(v.STEP,F,D),this.scene.update(F,D),w.emit(v.POST_STEP,F,D);var G=this.renderer;G.preRender(),w.emit(v.PRE_RENDER,G,F,D),this.scene.render(G),G.postRender(),w.emit(v.POST_RENDER,G,F,D)}},headlessStep:function(F,D){if(this.pendingDestroy)return this.runDestroy();if(!this.isPaused){var w=this.events;w.emit(v.PRE_STEP,F,D),w.emit(v.STEP,F,D),this.scene.update(F,D),w.emit(v.POST_STEP,F,D),this.scene.isProcessing=!1,w.emit(v.PRE_RENDER,null,F,D),w.emit(v.POST_RENDER,null,F,D)}},onHidden:function(){this.loop.pause(),this.events.emit(v.PAUSE)},pause:function(){var F=this.isPaused;this.isPaused=!0,F||this.events.emit(v.PAUSE)},onVisible:function(){this.loop.resume(),this.events.emit(v.RESUME,this.loop.pauseDuration)},resume:function(){var F=this.isPaused;this.isPaused=!1,F&&this.events.emit(v.RESUME,0)},onBlur:function(){this.hasFocus=!1,this.loop.blur()},onFocus:function(){this.hasFocus=!0,this.loop.focus()},getFrame:function(){return this.loop.frame},getTime:function(){return this.loop.now},destroy:function(F,D){D===void 0&&(D=!1),this.pendingDestroy=!0,this.removeCanvas=F,this.noReturn=D},runDestroy:function(){this.scene.destroy(),this.events.emit(v.DESTROY),this.events.removeAllListeners(),this.renderer&&this.renderer.destroy(),this.removeCanvas&&this.canvas&&(r.remove(this.canvas),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)),this.domContainer&&this.domContainer.parentNode&&this.domContainer.parentNode.removeChild(this.domContainer),this.loop.destroy(),this.pendingDestroy=!1}});c.exports=R},65898:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(35154),a=t(29747),r=t(43092),n=new d({initialize:function(s,l){this.game=s,this.raf=new r,this.started=!1,this.running=!1,this.minFps=p(l,"min",5),this.targetFps=p(l,"target",60),this.fpsLimit=p(l,"limit",0),this.hasFpsLimit=this.fpsLimit>0,this._limitRate=this.hasFpsLimit?1e3/this.fpsLimit:0,this._min=1e3/this.minFps,this._target=1e3/this.targetFps,this.actualFps=this.targetFps,this.nextFpsUpdate=0,this.framesThisSecond=0,this.callback=a,this.forceSetTimeOut=p(l,"forceSetTimeOut",!1),this.time=0,this.startTime=0,this.lastTime=0,this.frame=0,this.inFocus=!0,this._pauseTime=0,this._coolDown=0,this.delta=0,this.deltaIndex=0,this.deltaHistory=[],this.deltaSmoothingMax=p(l,"deltaHistory",10),this.panicMax=p(l,"panicMax",120),this.rawDelta=0,this.now=0,this.smoothStep=p(l,"smoothStep",!0)},blur:function(){this.inFocus=!1},focus:function(){this.inFocus=!0,this.resetDelta()},pause:function(){this._pauseTime=window.performance.now()},resume:function(){this.resetDelta(),this.startTime+=this.time-this._pauseTime},resetDelta:function(){var e=window.performance.now();this.time=e,this.lastTime=e,this.nextFpsUpdate=e+1e3,this.framesThisSecond=0;for(var s=0;s0||!this.inFocus)&&(this._coolDown--,e=Math.min(e,this._target)),e>this._min&&(e=l[s],e=Math.min(e,this._min)),l[s]=e,this.deltaIndex++,this.deltaIndex>=i&&(this.deltaIndex=0);for(var o=0,u=0;u=this.nextFpsUpdate&&this.updateFPS(e),this.framesThisSecond++,this.delta>=this._limitRate&&(this.callback(e,this.delta),this.delta=0),this.lastTime=e,this.frame++},step:function(e){this.now=e;var s=Math.max(0,e-this.lastTime);this.rawDelta=s,this.time+=this.rawDelta,this.smoothStep&&(s=this.smoothDelta(s)),this.delta=s,e>=this.nextFpsUpdate&&this.updateFPS(e),this.framesThisSecond++,this.callback(e,s),this.lastTime=e,this.frame++},tick:function(){var e=window.performance.now();this.hasFpsLimit?this.stepLimitFPS(e):this.step(e)},sleep:function(){this.running&&(this.raf.stop(),this.running=!1)},wake:function(e){e===void 0&&(e=!1);var s=window.performance.now();if(!this.running){e&&(this.startTime+=-this.lastTime+(this.lastTime+s));var l=this.hasFpsLimit?this.stepLimitFPS.bind(this):this.step.bind(this);this.raf.start(l,this.forceSetTimeOut,this._target),this.running=!0,this.nextFpsUpdate=s+1e3,this.framesThisSecond=0,this.fpsLimitTriggered=!1,this.tick()}},getDuration:function(){return Math.round(this.lastTime-this.startTime)/1e3},getDurationMS:function(){return Math.round(this.lastTime-this.startTime)},stop:function(){return this.running=!1,this.started=!1,this.raf.stop(),this},destroy:function(){this.stop(),this.raf.destroy(),this.raf=null,this.game=null,this.callback=null}});c.exports=n},51085:(c,T,t)=>{/** + */var d=t(83419),p=t(35154),l=t(29747),r=t(43092),n=new d({initialize:function(s,o){this.game=s,this.raf=new r,this.started=!1,this.running=!1,this.minFps=p(o,"min",5),this.targetFps=p(o,"target",60),this.fpsLimit=p(o,"limit",0),this.hasFpsLimit=this.fpsLimit>0,this._limitRate=this.hasFpsLimit?1e3/this.fpsLimit:0,this._min=1e3/this.minFps,this._target=1e3/this.targetFps,this.actualFps=this.targetFps,this.nextFpsUpdate=0,this.framesThisSecond=0,this.callback=l,this.forceSetTimeOut=p(o,"forceSetTimeOut",!1),this.time=0,this.startTime=0,this.lastTime=0,this.frame=0,this.inFocus=!0,this.pauseDuration=0,this._pauseTime=0,this._coolDown=0,this.delta=0,this.deltaIndex=0,this.deltaHistory=[],this.deltaSmoothingMax=p(o,"deltaHistory",10),this.panicMax=p(o,"panicMax",120),this.rawDelta=0,this.now=0,this.smoothStep=p(o,"smoothStep",!0)},blur:function(){this.inFocus=!1},focus:function(){this.inFocus=!0,this.resetDelta()},pause:function(){this._pauseTime=window.performance.now()},resume:function(){this.resetDelta(),this.pauseDuration=this.time-this._pauseTime,this.startTime+=this.pauseDuration},resetDelta:function(){var e=window.performance.now();this.time=e,this.lastTime=e,this.nextFpsUpdate=e+1e3,this.framesThisSecond=0;for(var s=0;s0||!this.inFocus)&&(this._coolDown--,e=Math.min(e,this._target)),e>this._min&&(e=o[s],e=Math.min(e,this._min)),o[s]=e,this.deltaIndex++,this.deltaIndex>=i&&(this.deltaIndex=0);for(var a=0,u=0;u=this.nextFpsUpdate&&this.updateFPS(e),this.framesThisSecond++,this.delta>=this._limitRate&&(this.callback(e,this.delta),this.delta=0),this.lastTime=e,this.frame++},step:function(e){this.now=e;var s=Math.max(0,e-this.lastTime);this.rawDelta=s,this.time+=this.rawDelta,this.smoothStep&&(s=this.smoothDelta(s)),this.delta=s,e>=this.nextFpsUpdate&&this.updateFPS(e),this.framesThisSecond++,this.callback(e,s),this.lastTime=e,this.frame++},tick:function(){var e=window.performance.now();this.hasFpsLimit?this.stepLimitFPS(e):this.step(e)},sleep:function(){this.running&&(this.raf.stop(),this.running=!1)},wake:function(e){e===void 0&&(e=!1);var s=window.performance.now();if(!this.running){e&&(this.startTime+=-this.lastTime+(this.lastTime+s));var o=this.hasFpsLimit?this.stepLimitFPS.bind(this):this.step.bind(this);this.raf.start(o,this.forceSetTimeOut,this._target),this.running=!0,this.nextFpsUpdate=s+1e3,this.framesThisSecond=0,this.fpsLimitTriggered=!1,this.tick()}},getDuration:function(){return Math.round(this.lastTime-this.startTime)/1e3},getDurationMS:function(){return Math.round(this.lastTime-this.startTime)},stop:function(){return this.running=!1,this.started=!1,this.raf.stop(),this},destroy:function(){this.stop(),this.raf.destroy(),this.raf=null,this.game=null,this.callback=null}});c.exports=n},51085:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(8443),p=function(a){var r,n=a.events;if(document.hidden!==void 0)r="visibilitychange";else{var e=["webkit","moz","ms"];e.forEach(function(l){document[l+"Hidden"]!==void 0&&(document.hidden=function(){return document[l+"Hidden"]},r=l+"visibilitychange")})}var s=function(l){document.hidden||l.type==="pause"?n.emit(d.HIDDEN):n.emit(d.VISIBLE)};r&&document.addEventListener(r,s,!1),window.onblur=function(){n.emit(d.BLUR)},window.onfocus=function(){n.emit(d.FOCUS)},window.focus&&a.config.autoFocus&&window.focus()};c.exports=p},97217:c=>{/** + */var d=t(8443),p=function(l){var r,n=l.events;if(document.hidden!==void 0)r="visibilitychange";else{var e=["webkit","moz","ms"];e.forEach(function(o){document[o+"Hidden"]!==void 0&&(document.hidden=function(){return document[o+"Hidden"]},r=o+"visibilitychange")})}var s=function(o){document.hidden||o.type==="pause"?n.emit(d.HIDDEN):n.emit(d.VISIBLE)};r&&document.addEventListener(r,s,!1),window.onblur=function(){n.emit(d.BLUR)},window.onfocus=function(){n.emit(d.FOCUS)},window.focus&&l.config.autoFocus&&window.focus()};c.exports=p},97217:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -547,7 +547,7 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(5290),p=t(27919),a=t(35154),r=function(n){var e=a(n,"data",[]),s=a(n,"canvas",null),l=a(n,"palette",d),i=a(n,"pixelWidth",1),o=a(n,"pixelHeight",i),u=a(n,"resizeCanvas",!0),h=a(n,"clearCanvas",!0),f=a(n,"preRender",null),v=a(n,"postRender",null),m=Math.floor(Math.abs(e[0].length*i)),x=Math.floor(Math.abs(e.length*o));s||(s=p.create2D(this,m,x),u=!1,h=!1),u&&(s.width=m,s.height=x);var g=s.getContext("2d",{willReadFrequently:!0});h&&g.clearRect(0,0,m,x),f&&f(s,g);for(var y=0;y{/** + */var d=t(5290),p=t(27919),l=t(35154),r=function(n){var e=l(n,"data",[]),s=l(n,"canvas",null),o=l(n,"palette",d),i=l(n,"pixelWidth",1),a=l(n,"pixelHeight",i),u=l(n,"resizeCanvas",!0),h=l(n,"clearCanvas",!0),f=l(n,"preRender",null),v=l(n,"postRender",null),m=Math.floor(Math.abs(e[0].length*i)),g=Math.floor(Math.abs(e.length*a));s||(s=p.create2D(this,m,g),u=!1,h=!1),u&&(s.width=m,s.height=g);var x=s.getContext("2d",{willReadFrequently:!0});h&&x.clearRect(0,0,m,g),f&&f(s,x);for(var y=0;y{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -579,27 +579,27 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(36316),a=t(80021),r=t(26099),n=new d({Extends:a,initialize:function(s,l,i,o){a.call(this,"CubicBezierCurve"),Array.isArray(s)&&(o=new r(s[6],s[7]),i=new r(s[4],s[5]),l=new r(s[2],s[3]),s=new r(s[0],s[1])),this.p0=s,this.p1=l,this.p2=i,this.p3=o},getStartPoint:function(e){return e===void 0&&(e=new r),e.copy(this.p0)},getResolution:function(e){return e},getPoint:function(e,s){s===void 0&&(s=new r);var l=this.p0,i=this.p1,o=this.p2,u=this.p3;return s.set(p(e,l.x,i.x,o.x,u.x),p(e,l.y,i.y,o.y,u.y))},draw:function(e,s){s===void 0&&(s=32);var l=this.getPoints(s);e.beginPath(),e.moveTo(this.p0.x,this.p0.y);for(var i=1;i{/** + */var d=t(83419),p=t(36316),l=t(80021),r=t(26099),n=new d({Extends:l,initialize:function(s,o,i,a){l.call(this,"CubicBezierCurve"),Array.isArray(s)&&(a=new r(s[6],s[7]),i=new r(s[4],s[5]),o=new r(s[2],s[3]),s=new r(s[0],s[1])),this.p0=s,this.p1=o,this.p2=i,this.p3=a},getStartPoint:function(e){return e===void 0&&(e=new r),e.copy(this.p0)},getResolution:function(e){return e},getPoint:function(e,s){s===void 0&&(s=new r);var o=this.p0,i=this.p1,a=this.p2,u=this.p3;return s.set(p(e,o.x,i.x,a.x,u.x),p(e,o.y,i.y,a.y,u.y))},draw:function(e,s){s===void 0&&(s=32);var o=this.getPoints(s);e.beginPath(),e.moveTo(this.p0.x,this.p0.y);for(var i=1;i{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(19217),a=t(87841),r=t(26099),n=new d({initialize:function(s){this.type=s,this.defaultDivisions=5,this.arcLengthDivisions=100,this.cacheArcLengths=[],this.needsUpdate=!0,this.active=!0,this._tmpVec2A=new r,this._tmpVec2B=new r},draw:function(e,s){return s===void 0&&(s=32),e.strokePoints(this.getPoints(s))},getBounds:function(e,s){e||(e=new a),s===void 0&&(s=16);var l=this.getLength();s>l&&(s=l/2);var i=Math.max(1,Math.round(l/s));return p(this.getSpacedPoints(i),e)},getDistancePoints:function(e){var s=this.getLength(),l=Math.max(1,s/e);return this.getSpacedPoints(l)},getEndPoint:function(e){return e===void 0&&(e=new r),this.getPointAt(1,e)},getLength:function(){var e=this.getLengths();return e[e.length-1]},getLengths:function(e){if(e===void 0&&(e=this.arcLengthDivisions),this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var s=[],l,i=this.getPoint(0,this._tmpVec2A),o=0;s.push(0);for(var u=1;u<=e;u++)l=this.getPoint(u/e,this._tmpVec2B),o+=l.distance(i),s.push(o),i.copy(l);return this.cacheArcLengths=s,s},getPointAt:function(e,s){var l=this.getUtoTmapping(e);return this.getPoint(l,s)},getPoints:function(e,s,l){l===void 0&&(l=[]),e||(s?e=this.getLength()/s:e=this.defaultDivisions);for(var i=0;i<=e;i++)l.push(this.getPoint(i/e));return l},getRandomPoint:function(e){return e===void 0&&(e=new r),this.getPoint(Math.random(),e)},getSpacedPoints:function(e,s,l){l===void 0&&(l=[]),e||(s?e=this.getLength()/s:e=this.defaultDivisions);for(var i=0;i<=e;i++){var o=this.getUtoTmapping(i/e,null,e);l.push(this.getPoint(o))}return l},getStartPoint:function(e){return e===void 0&&(e=new r),this.getPointAt(0,e)},getTangent:function(e,s){s===void 0&&(s=new r);var l=1e-4,i=e-l,o=e+l;return i<0&&(i=0),o>1&&(o=1),this.getPoint(i,this._tmpVec2A),this.getPoint(o,s),s.subtract(this._tmpVec2A).normalize()},getTangentAt:function(e,s){var l=this.getUtoTmapping(e);return this.getTangent(l,s)},getTFromDistance:function(e,s){return e<=0?0:this.getUtoTmapping(0,e,s)},getUtoTmapping:function(e,s,l){var i=this.getLengths(l),o=0,u=i.length,h;s?h=Math.min(s,i[u-1]):h=e*i[u-1];for(var f=0,v=u-1,m;f<=v;)if(o=Math.floor(f+(v-f)/2),m=i[o]-h,m<0)f=o+1;else if(m>0)v=o-1;else{v=o;break}if(o=v,i[o]===h)return o/(u-1);var x=i[o],g=i[o+1],y=g-x,S=(h-x)/y;return(o+S)/(u-1)},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()}});c.exports=n},73825:(c,T,t)=>{/** + */var d=t(83419),p=t(19217),l=t(87841),r=t(26099),n=new d({initialize:function(s){this.type=s,this.defaultDivisions=5,this.arcLengthDivisions=100,this.cacheArcLengths=[],this.needsUpdate=!0,this.active=!0,this._tmpVec2A=new r,this._tmpVec2B=new r},draw:function(e,s){return s===void 0&&(s=32),e.strokePoints(this.getPoints(s))},getBounds:function(e,s){e||(e=new l),s===void 0&&(s=16);var o=this.getLength();s>o&&(s=o/2);var i=Math.max(1,Math.round(o/s));return p(this.getSpacedPoints(i),e)},getDistancePoints:function(e){var s=this.getLength(),o=Math.max(1,s/e);return this.getSpacedPoints(o)},getEndPoint:function(e){return e===void 0&&(e=new r),this.getPointAt(1,e)},getLength:function(){var e=this.getLengths();return e[e.length-1]},getLengths:function(e){if(e===void 0&&(e=this.arcLengthDivisions),this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var s=[],o,i=this.getPoint(0,this._tmpVec2A),a=0;s.push(0);for(var u=1;u<=e;u++)o=this.getPoint(u/e,this._tmpVec2B),a+=o.distance(i),s.push(a),i.copy(o);return this.cacheArcLengths=s,s},getPointAt:function(e,s){var o=this.getUtoTmapping(e);return this.getPoint(o,s)},getPoints:function(e,s,o){o===void 0&&(o=[]),e||(s?e=this.getLength()/s:e=this.defaultDivisions);for(var i=0;i<=e;i++)o.push(this.getPoint(i/e));return o},getRandomPoint:function(e){return e===void 0&&(e=new r),this.getPoint(Math.random(),e)},getSpacedPoints:function(e,s,o){o===void 0&&(o=[]),e||(s?e=this.getLength()/s:e=this.defaultDivisions);for(var i=0;i<=e;i++){var a=this.getUtoTmapping(i/e,null,e);o.push(this.getPoint(a))}return o},getStartPoint:function(e){return e===void 0&&(e=new r),this.getPointAt(0,e)},getTangent:function(e,s){s===void 0&&(s=new r);var o=1e-4,i=e-o,a=e+o;return i<0&&(i=0),a>1&&(a=1),this.getPoint(i,this._tmpVec2A),this.getPoint(a,s),s.subtract(this._tmpVec2A).normalize()},getTangentAt:function(e,s){var o=this.getUtoTmapping(e);return this.getTangent(o,s)},getTFromDistance:function(e,s){return e<=0?0:this.getUtoTmapping(0,e,s)},getUtoTmapping:function(e,s,o){var i=this.getLengths(o),a=0,u=i.length,h;s?h=Math.min(s,i[u-1]):h=e*i[u-1];for(var f=0,v=u-1,m;f<=v;)if(a=Math.floor(f+(v-f)/2),m=i[a]-h,m<0)f=a+1;else if(m>0)v=a-1;else{v=a;break}if(a=v,i[a]===h)return a/(u-1);var g=i[a],x=i[a+1],y=x-g,S=(h-g)/y;return(a+S)/(u-1)},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()}});c.exports=n},73825:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(80021),a=t(39506),r=t(35154),n=t(43396),e=t(26099),s=new d({Extends:p,initialize:function(i,o,u,h,f,v,m,x){if(typeof i=="object"){var g=i;i=r(g,"x",0),o=r(g,"y",0),u=r(g,"xRadius",0),h=r(g,"yRadius",u),f=r(g,"startAngle",0),v=r(g,"endAngle",360),m=r(g,"clockwise",!1),x=r(g,"rotation",0)}else h===void 0&&(h=u),f===void 0&&(f=0),v===void 0&&(v=360),m===void 0&&(m=!1),x===void 0&&(x=0);p.call(this,"EllipseCurve"),this.p0=new e(i,o),this._xRadius=u,this._yRadius=h,this._startAngle=a(f),this._endAngle=a(v),this._clockwise=m,this._rotation=a(x)},getStartPoint:function(l){return l===void 0&&(l=new e),this.getPoint(0,l)},getResolution:function(l){return l*2},getPoint:function(l,i){i===void 0&&(i=new e);for(var o=Math.PI*2,u=this._endAngle-this._startAngle,h=Math.abs(u)o;)u-=o;u{/** + */var d=t(83419),p=t(80021),l=t(39506),r=t(35154),n=t(43396),e=t(26099),s=new d({Extends:p,initialize:function(i,a,u,h,f,v,m,g){if(typeof i=="object"){var x=i;i=r(x,"x",0),a=r(x,"y",0),u=r(x,"xRadius",0),h=r(x,"yRadius",u),f=r(x,"startAngle",0),v=r(x,"endAngle",360),m=r(x,"clockwise",!1),g=r(x,"rotation",0)}else h===void 0&&(h=u),f===void 0&&(f=0),v===void 0&&(v=360),m===void 0&&(m=!1),g===void 0&&(g=0);p.call(this,"EllipseCurve"),this.p0=new e(i,a),this._xRadius=u,this._yRadius=h,this._startAngle=l(f),this._endAngle=l(v),this._clockwise=m,this._rotation=l(g)},getStartPoint:function(o){return o===void 0&&(o=new e),this.getPoint(0,o)},getResolution:function(o){return o*2},getPoint:function(o,i){i===void 0&&(i=new e);for(var a=Math.PI*2,u=this._endAngle-this._startAngle,h=Math.abs(u)a;)u-=a;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(80021),a=t(19217),r=t(87841),n=t(26099),e=new d({Extends:p,initialize:function(l,i){p.call(this,"LineCurve"),Array.isArray(l)&&(i=new n(l[2],l[3]),l=new n(l[0],l[1])),this.p0=l,this.p1=i,this.arcLengthDivisions=1},getBounds:function(s){return s===void 0&&(s=new r),a([this.p0,this.p1],s)},getStartPoint:function(s){return s===void 0&&(s=new n),s.copy(this.p0)},getResolution:function(s){return s===void 0&&(s=1),s},getPoint:function(s,l){return l===void 0&&(l=new n),s===1?l.copy(this.p1):(l.copy(this.p1).subtract(this.p0).scale(s).add(this.p0),l)},getPointAt:function(s,l){return this.getPoint(s,l)},getTangent:function(s,l){return l===void 0&&(l=new n),l.copy(this.p1).subtract(this.p0).normalize(),l},getUtoTmapping:function(s,l,i){var o;if(l){var u=this.getLengths(i),h=u[u.length-1],f=Math.min(l,h);o=f/h}else o=s;return o},draw:function(s){return s.lineBetween(this.p0.x,this.p0.y,this.p1.x,this.p1.y),s},toJSON:function(){return{type:this.type,points:[this.p0.x,this.p0.y,this.p1.x,this.p1.y]}}});e.fromJSON=function(s){var l=s.points,i=new n(l[0],l[1]),o=new n(l[2],l[3]);return new e(i,o)},c.exports=e},14744:(c,T,t)=>{/** + */var d=t(83419),p=t(80021),l=t(19217),r=t(87841),n=t(26099),e=new d({Extends:p,initialize:function(o,i){p.call(this,"LineCurve"),Array.isArray(o)&&(i=new n(o[2],o[3]),o=new n(o[0],o[1])),this.p0=o,this.p1=i,this.arcLengthDivisions=1},getBounds:function(s){return s===void 0&&(s=new r),l([this.p0,this.p1],s)},getStartPoint:function(s){return s===void 0&&(s=new n),s.copy(this.p0)},getResolution:function(s){return s===void 0&&(s=1),s},getPoint:function(s,o){return o===void 0&&(o=new n),s===1?o.copy(this.p1):(o.copy(this.p1).subtract(this.p0).scale(s).add(this.p0),o)},getPointAt:function(s,o){return this.getPoint(s,o)},getTangent:function(s,o){return o===void 0&&(o=new n),o.copy(this.p1).subtract(this.p0).normalize(),o},getUtoTmapping:function(s,o,i){var a;if(o){var u=this.getLengths(i),h=u[u.length-1],f=Math.min(o,h);a=f/h}else a=s;return a},draw:function(s){return s.lineBetween(this.p0.x,this.p0.y,this.p1.x,this.p1.y),s},toJSON:function(){return{type:this.type,points:[this.p0.x,this.p0.y,this.p1.x,this.p1.y]}}});e.fromJSON=function(s){var o=s.points,i=new n(o[0],o[1]),a=new n(o[2],o[3]);return new e(i,a)},c.exports=e},14744:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(80021),a=t(32112),r=t(26099),n=new d({Extends:p,initialize:function(s,l,i){p.call(this,"QuadraticBezierCurve"),Array.isArray(s)&&(i=new r(s[4],s[5]),l=new r(s[2],s[3]),s=new r(s[0],s[1])),this.p0=s,this.p1=l,this.p2=i},getStartPoint:function(e){return e===void 0&&(e=new r),e.copy(this.p0)},getResolution:function(e){return e},getPoint:function(e,s){s===void 0&&(s=new r);var l=this.p0,i=this.p1,o=this.p2;return s.set(a(e,l.x,i.x,o.x),a(e,l.y,i.y,o.y))},draw:function(e,s){s===void 0&&(s=32);var l=this.getPoints(s);e.beginPath(),e.moveTo(this.p0.x,this.p0.y);for(var i=1;i{/** + */var d=t(83419),p=t(80021),l=t(32112),r=t(26099),n=new d({Extends:p,initialize:function(s,o,i){p.call(this,"QuadraticBezierCurve"),Array.isArray(s)&&(i=new r(s[4],s[5]),o=new r(s[2],s[3]),s=new r(s[0],s[1])),this.p0=s,this.p1=o,this.p2=i},getStartPoint:function(e){return e===void 0&&(e=new r),e.copy(this.p0)},getResolution:function(e){return e},getPoint:function(e,s){s===void 0&&(s=new r);var o=this.p0,i=this.p1,a=this.p2;return s.set(l(e,o.x,i.x,a.x),l(e,o.y,i.y,a.y))},draw:function(e,s){s===void 0&&(s=32);var o=this.getPoints(s);e.beginPath(),e.moveTo(this.p0.x,this.p0.y);for(var i=1;i{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(87842),p=t(83419),a=t(80021),r=t(26099),n=new p({Extends:a,initialize:function(s){s===void 0&&(s=[]),a.call(this,"SplineCurve"),this.points=[],this.addPoints(s)},addPoints:function(e){for(var s=0;sl.length-2?l.length-1:o+1],m=l[o>l.length-3?l.length-1:o+2];return s.set(d(u,h.x,f.x,v.x,m.x),d(u,h.y,f.y,v.y,m.y))},toJSON:function(){for(var e=[],s=0;s{/** + */var d=t(87842),p=t(83419),l=t(80021),r=t(26099),n=new p({Extends:l,initialize:function(s){s===void 0&&(s=[]),l.call(this,"SplineCurve"),this.points=[],this.addPoints(s)},addPoints:function(e){for(var s=0;so.length-2?o.length-1:a+1],m=o[a>o.length-3?o.length-1:a+2];return s.set(d(u,h.x,f.x,v.x,m.x),d(u,h.y,f.y,v.y,m.y))},toJSON:function(){for(var e=[],s=0;s{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -607,19 +607,19 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(26099),a=new d({initialize:function(n,e){this.active=!1,this.p0=new p(n,e)},getPoint:function(r,n){return n===void 0&&(n=new p),n.copy(this.p0)},getPointAt:function(r,n){return this.getPoint(r,n)},getResolution:function(){return 1},getLength:function(){return 0},toJSON:function(){return{type:"MoveTo",points:[this.p0.x,this.p0.y]}}});c.exports=a},46669:(c,T,t)=>{/** + */var d=t(83419),p=t(26099),l=new d({initialize:function(n,e){this.active=!1,this.p0=new p(n,e)},getPoint:function(r,n){return n===void 0&&(n=new p),n.copy(this.p0)},getPointAt:function(r,n){return this.getPoint(r,n)},getResolution:function(){return 1},getLength:function(){return 0},toJSON:function(){return{type:"MoveTo",points:[this.p0.x,this.p0.y]}}});c.exports=l},46669:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(46728),a=t(73825),r=t(39429),n=t(33951),e=t(68618),s=t(14744),l=t(87841),i=t(42534),o=t(26099),u=t(36383),h=new d({initialize:function(v,m){v===void 0&&(v=0),m===void 0&&(m=0),this.name="",this.defaultDivisions=12,this.curves=[],this.cacheLengths=[],this.autoClose=!1,this.startPoint=new o,this._tmpVec2A=new o,this._tmpVec2B=new o,typeof v=="object"?this.fromJSON(v):this.startPoint.set(v,m)},add:function(f){return this.curves.push(f),this},circleTo:function(f,v,m){return v===void 0&&(v=!1),this.ellipseTo(f,f,0,360,v,m)},closePath:function(){var f=this.curves[0].getPoint(0),v=this.curves[this.curves.length-1].getPoint(1);return f.equals(v)||this.curves.push(new n(v,f)),this},cubicBezierTo:function(f,v,m,x,g,y){var S=this.getEndPoint(),C,E,A;return f instanceof o?(C=f,E=v,A=m):(C=new o(m,x),E=new o(g,y),A=new o(f,v)),this.add(new p(S,C,E,A))},quadraticBezierTo:function(f,v,m,x){var g=this.getEndPoint(),y,S;return f instanceof o?(y=f,S=v):(y=new o(m,x),S=new o(f,v)),this.add(new s(g,y,S))},draw:function(f,v){for(var m=0;m=v)return this.curves[x];x++}return null},getEndPoint:function(f){return f===void 0&&(f=new o),this.curves.length>0?this.curves[this.curves.length-1].getPoint(1,f):f.copy(this.startPoint),f},getLength:function(){var f=this.getCurveLengths();return f[f.length-1]},getPoint:function(f,v){v===void 0&&(v=new o);for(var m=f*this.getLength(),x=this.getCurveLengths(),g=0;g=m){var y=x[g]-m,S=this.curves[g],C=S.getLength(),E=C===0?0:1-y/C;return S.getPointAt(E,v)}g++}return null},getPoints:function(f,v){!f&&!v&&(f=this.defaultDivisions);for(var m=[],x,g=0;g1&&!m[m.length-1].equals(m[0])&&m.push(m[0]),m},getRandomPoint:function(f){return f===void 0&&(f=new o),this.getPoint(Math.random(),f)},getSpacedPoints:function(f){f===void 0&&(f=40);for(var v=[],m=0;m<=f;m++)v.push(this.getPoint(m/f));return this.autoClose&&v.push(v[0]),v},getStartPoint:function(f){return f===void 0&&(f=new o),f.copy(this.startPoint)},getTangent:function(f,v){v===void 0&&(v=new o);for(var m=f*this.getLength(),x=this.getCurveLengths(),g=0;g=m){var y=x[g]-m,S=this.curves[g],C=S.getLength(),E=C===0?0:1-y/C;return S.getTangentAt(E,v)}g++}return null},lineTo:function(f,v){f instanceof o?this._tmpVec2B.copy(f):typeof f=="object"?this._tmpVec2B.setFromObject(f):this._tmpVec2B.set(f,v);var m=this.getEndPoint(this._tmpVec2A);return this.add(new n([m.x,m.y,this._tmpVec2B.x,this._tmpVec2B.y]))},splineTo:function(f){return f.unshift(this.getEndPoint()),this.add(new i(f))},moveTo:function(f,v){return f instanceof o?this.add(new e(f.x,f.y)):this.add(new e(f,v))},toJSON:function(){for(var f=[],v=0;v{/** + */var d=t(83419),p=t(46728),l=t(73825),r=t(39429),n=t(33951),e=t(68618),s=t(14744),o=t(87841),i=t(42534),a=t(26099),u=t(36383),h=new d({initialize:function(v,m){v===void 0&&(v=0),m===void 0&&(m=0),this.name="",this.defaultDivisions=12,this.curves=[],this.cacheLengths=[],this.autoClose=!1,this.startPoint=new a,this._tmpVec2A=new a,this._tmpVec2B=new a,typeof v=="object"?this.fromJSON(v):this.startPoint.set(v,m)},add:function(f){return this.curves.push(f),this},circleTo:function(f,v,m){return v===void 0&&(v=!1),this.ellipseTo(f,f,0,360,v,m)},closePath:function(){var f=this.curves[0].getPoint(0),v=this.curves[this.curves.length-1].getPoint(1);return f.equals(v)||this.curves.push(new n(v,f)),this},cubicBezierTo:function(f,v,m,g,x,y){var S=this.getEndPoint(),C,E,M;return f instanceof a?(C=f,E=v,M=m):(C=new a(m,g),E=new a(x,y),M=new a(f,v)),this.add(new p(S,C,E,M))},quadraticBezierTo:function(f,v,m,g){var x=this.getEndPoint(),y,S;return f instanceof a?(y=f,S=v):(y=new a(m,g),S=new a(f,v)),this.add(new s(x,y,S))},draw:function(f,v){for(var m=0;m=v)return this.curves[g];g++}return null},getEndPoint:function(f){return f===void 0&&(f=new a),this.curves.length>0?this.curves[this.curves.length-1].getPoint(1,f):f.copy(this.startPoint),f},getLength:function(){var f=this.getCurveLengths();return f[f.length-1]},getPoint:function(f,v){v===void 0&&(v=new a);for(var m=f*this.getLength(),g=this.getCurveLengths(),x=0;x=m){var y=g[x]-m,S=this.curves[x],C=S.getLength(),E=C===0?0:1-y/C;return S.getPointAt(E,v)}x++}return null},getPoints:function(f,v){!f&&!v&&(f=this.defaultDivisions);for(var m=[],g,x=0;x1&&!m[m.length-1].equals(m[0])&&m.push(m[0]),m},getRandomPoint:function(f){return f===void 0&&(f=new a),this.getPoint(Math.random(),f)},getSpacedPoints:function(f){f===void 0&&(f=40);for(var v=[],m=0;m<=f;m++)v.push(this.getPoint(m/f));return this.autoClose&&v.push(v[0]),v},getStartPoint:function(f){return f===void 0&&(f=new a),f.copy(this.startPoint)},getTangent:function(f,v){v===void 0&&(v=new a);for(var m=f*this.getLength(),g=this.getCurveLengths(),x=0;x=m){var y=g[x]-m,S=this.curves[x],C=S.getLength(),E=C===0?0:1-y/C;return S.getTangentAt(E,v)}x++}return null},lineTo:function(f,v){f instanceof a?this._tmpVec2B.copy(f):typeof f=="object"?this._tmpVec2B.setFromObject(f):this._tmpVec2B.set(f,v);var m=this.getEndPoint(this._tmpVec2A);return this.add(new n([m.x,m.y,this._tmpVec2B.x,this._tmpVec2B.y]))},splineTo:function(f){return f.unshift(this.getEndPoint()),this.add(new i(f))},moveTo:function(f,v){return f instanceof a?this.add(new e(f.x,f.y)):this.add(new e(f,v))},toJSON:function(){for(var f=[],v=0;v{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(24882),a=new d({initialize:function(n,e){this.parent=n,this.events=e,e||(this.events=n.events?n.events:n),this.list={},this.values={},this._frozen=!1,!n.hasOwnProperty("sys")&&this.events&&this.events.once(p.DESTROY,this.destroy,this)},get:function(r){var n=this.list;if(Array.isArray(r)){for(var e=[],s=0;s{/** + */var d=t(83419),p=t(24882),l=new d({initialize:function(n,e){this.parent=n,this.events=e,e||(this.events=n.events?n.events:n),this.list={},this.values={},this._frozen=!1,!n.hasOwnProperty("sys")&&this.events&&this.events.once(p.DESTROY,this.destroy,this)},get:function(r){var n=this.list;if(Array.isArray(r)){for(var e=[],s=0;s{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(45893),a=t(37277),r=t(44594),n=new d({Extends:p,initialize:function(s){p.call(this,s,s.sys.events),this.scene=s,this.systems=s.sys,s.sys.events.once(r.BOOT,this.boot,this),s.sys.events.on(r.START,this.start,this)},boot:function(){this.events=this.systems.events,this.events.once(r.DESTROY,this.destroy,this)},start:function(){this.events.once(r.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.systems.events.off(r.SHUTDOWN,this.shutdown,this)},destroy:function(){p.prototype.destroy.call(this),this.events.off(r.START,this.start,this),this.scene=null,this.systems=null}});a.register("DataManagerPlugin",n,"data"),c.exports=n},10700:c=>{/** + */var d=t(83419),p=t(45893),l=t(37277),r=t(44594),n=new d({Extends:p,initialize:function(s){p.call(this,s,s.sys.events),this.scene=s,this.systems=s.sys,s.sys.events.once(r.BOOT,this.boot,this),s.sys.events.on(r.START,this.start,this)},boot:function(){this.events=this.systems.events,this.events.once(r.DESTROY,this.destroy,this)},start:function(){this.events.once(r.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.systems.events.off(r.SHUTDOWN,this.shutdown,this)},destroy:function(){p.prototype.destroy.call(this),this.events.off(r.START,this.start,this),this.scene=null,this.systems=null}});l.register("DataManagerPlugin",n,"data"),c.exports=n},10700:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -651,27 +651,27 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(84148),p={flac:!1,aac:!1,audioData:!1,dolby:!1,m4a:!1,mp3:!1,ogg:!1,opus:!1,wav:!1,webAudio:!1,webm:!1};function a(){if(typeof importScripts=="function")return p;p.audioData=!!window.Audio,p.webAudio=!!(window.AudioContext||window.webkitAudioContext);var r=document.createElement("audio"),n=!!r.canPlayType;try{if(n){var e=function(i,o){var u=r.canPlayType("audio/"+i).replace(/^no$/,"");return o?!!(u||r.canPlayType("audio/"+o).replace(/^no$/,"")):!!u};if(p.ogg=e('ogg; codecs="vorbis"'),p.opus=e('ogg; codecs="opus"',"opus"),p.mp3=e("mpeg"),p.wav=e("wav"),p.m4a=e("x-m4a"),p.aac=e("aac"),p.flac=e("flac","x-flac"),p.webm=e('webm; codecs="vorbis"'),r.canPlayType('audio/mp4; codecs="ec-3"')!==""){if(d.edge)p.dolby=!0;else if(d.safari&&d.safariVersion>=9&&/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent)){var s=parseInt(RegExp.$1,10),l=parseInt(RegExp.$2,10);(s===10&&l>=11||s>10)&&(p.dolby=!0)}}}}catch{}return p}c.exports=a()},84148:(c,T,t)=>{/** + */var d=t(84148),p={flac:!1,aac:!1,audioData:!1,dolby:!1,m4a:!1,mp3:!1,ogg:!1,opus:!1,wav:!1,webAudio:!1,webm:!1};function l(){if(typeof importScripts=="function")return p;p.audioData=!!window.Audio,p.webAudio=!!(window.AudioContext||window.webkitAudioContext);var r=document.createElement("audio"),n=!!r.canPlayType;try{if(n){var e=function(i,a){var u=r.canPlayType("audio/"+i).replace(/^no$/,"");return a?!!(u||r.canPlayType("audio/"+a).replace(/^no$/,"")):!!u};if(p.ogg=e('ogg; codecs="vorbis"'),p.opus=e('ogg; codecs="opus"',"opus"),p.mp3=e("mpeg"),p.wav=e("wav"),p.m4a=e("x-m4a"),p.aac=e("aac"),p.flac=e("flac","x-flac"),p.webm=e('webm; codecs="vorbis"'),r.canPlayType('audio/mp4; codecs="ec-3"')!==""){if(d.edge)p.dolby=!0;else if(d.safari&&d.safariVersion>=9&&/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent)){var s=parseInt(RegExp.$1,10),o=parseInt(RegExp.$2,10);(s===10&&o>=11||s>10)&&(p.dolby=!0)}}}}catch{}return p}c.exports=l()},84148:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(25892),p={chrome:!1,chromeVersion:0,edge:!1,firefox:!1,firefoxVersion:0,ie:!1,ieVersion:0,mobileSafari:!1,opera:!1,safari:!1,safariVersion:0,silk:!1,trident:!1,tridentVersion:0,es2019:!1};function a(){var r=navigator.userAgent;return/Edg\/\d+/.test(r)?(p.edge=!0,p.es2019=!0):/OPR/.test(r)?(p.opera=!0,p.es2019=!0):/Chrome\/(\d+)/.test(r)&&!d.windowsPhone?(p.chrome=!0,p.chromeVersion=parseInt(RegExp.$1,10),p.es2019=p.chromeVersion>69):/Firefox\D+(\d+)/.test(r)?(p.firefox=!0,p.firefoxVersion=parseInt(RegExp.$1,10),p.es2019=p.firefoxVersion>10):/AppleWebKit\/(?!.*CriOS)/.test(r)&&d.iOS?(p.mobileSafari=!0,p.es2019=!0):/MSIE (\d+\.\d+);/.test(r)?(p.ie=!0,p.ieVersion=parseInt(RegExp.$1,10)):/Version\/(\d+\.\d+(\.\d+)?) Safari/.test(r)&&!d.windowsPhone?(p.safari=!0,p.safariVersion=parseInt(RegExp.$1,10),p.es2019=p.safariVersion>10):/Trident\/(\d+\.\d+)(.*)rv:(\d+\.\d+)/.test(r)&&(p.ie=!0,p.trident=!0,p.tridentVersion=parseInt(RegExp.$1,10),p.ieVersion=parseInt(RegExp.$3,10)),/Silk/.test(r)&&(p.silk=!0),p}c.exports=a()},89289:(c,T,t)=>{/** + */var d=t(25892),p={chrome:!1,chromeVersion:0,edge:!1,firefox:!1,firefoxVersion:0,ie:!1,ieVersion:0,mobileSafari:!1,opera:!1,safari:!1,safariVersion:0,silk:!1,trident:!1,tridentVersion:0,es2019:!1};function l(){var r=navigator.userAgent;return/Edg\/\d+/.test(r)?(p.edge=!0,p.es2019=!0):/OPR/.test(r)?(p.opera=!0,p.es2019=!0):/Chrome\/(\d+)/.test(r)&&!d.windowsPhone?(p.chrome=!0,p.chromeVersion=parseInt(RegExp.$1,10),p.es2019=p.chromeVersion>69):/Firefox\D+(\d+)/.test(r)?(p.firefox=!0,p.firefoxVersion=parseInt(RegExp.$1,10),p.es2019=p.firefoxVersion>10):/AppleWebKit\/(?!.*CriOS)/.test(r)&&d.iOS?(p.mobileSafari=!0,p.es2019=!0):/MSIE (\d+\.\d+);/.test(r)?(p.ie=!0,p.ieVersion=parseInt(RegExp.$1,10)):/Version\/(\d+\.\d+(\.\d+)?) Safari/.test(r)&&!d.windowsPhone?(p.safari=!0,p.safariVersion=parseInt(RegExp.$1,10),p.es2019=p.safariVersion>10):/Trident\/(\d+\.\d+)(.*)rv:(\d+\.\d+)/.test(r)&&(p.ie=!0,p.trident=!0,p.tridentVersion=parseInt(RegExp.$1,10),p.ieVersion=parseInt(RegExp.$3,10)),/Silk/.test(r)&&(p.silk=!0),p}c.exports=l()},89289:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(27919),p={supportInverseAlpha:!1,supportNewBlendModes:!1};function a(){var e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/",s="AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",l=new Image;return l.onload=function(){var i=new Image;i.onload=function(){var o=d.create2D(i,6),u=o.getContext("2d",{willReadFrequently:!0});if(u.globalCompositeOperation="multiply",u.drawImage(l,0,0),u.drawImage(i,2,0),!u.getImageData(2,0,1,1))return!1;var h=u.getImageData(2,0,1,1).data;d.remove(i),p.supportNewBlendModes=h[0]===255&&h[1]===0&&h[2]===0},i.src=e+"/wCKxvRF"+s},l.src=e+"AP804Oa6"+s,!1}function r(){var e=d.create2D(this,2),s=e.getContext("2d",{willReadFrequently:!0});s.fillStyle="rgba(10, 20, 30, 0.5)",s.fillRect(0,0,1,1);var l=s.getImageData(0,0,1,1);if(l===null)return!1;s.putImageData(l,1,0);var i=s.getImageData(1,0,1,1),o=i.data[0]===l.data[0]&&i.data[1]===l.data[1]&&i.data[2]===l.data[2]&&i.data[3]===l.data[3];return d.remove(this),o}function n(){return typeof importScripts!="function"&&document!==void 0&&(p.supportNewBlendModes=a(),p.supportInverseAlpha=r()),p}c.exports=n()},89357:(c,T,t)=>{/** + */var d=t(27919),p={supportInverseAlpha:!1,supportNewBlendModes:!1};function l(){var e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/",s="AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",o=new Image;return o.onload=function(){var i=new Image;i.onload=function(){var a=d.create2D(i,6),u=a.getContext("2d",{willReadFrequently:!0});if(u.globalCompositeOperation="multiply",u.drawImage(o,0,0),u.drawImage(i,2,0),!u.getImageData(2,0,1,1))return!1;var h=u.getImageData(2,0,1,1).data;d.remove(i),p.supportNewBlendModes=h[0]===255&&h[1]===0&&h[2]===0},i.src=e+"/wCKxvRF"+s},o.src=e+"AP804Oa6"+s,!1}function r(){var e=d.create2D(this,2),s=e.getContext("2d",{willReadFrequently:!0});s.fillStyle="rgba(10, 20, 30, 0.5)",s.fillRect(0,0,1,1);var o=s.getImageData(0,0,1,1);if(o===null)return!1;s.putImageData(o,1,0);var i=s.getImageData(1,0,1,1),a=i.data[0]===o.data[0]&&i.data[1]===o.data[1]&&i.data[2]===o.data[2]&&i.data[3]===o.data[3];return d.remove(this),a}function n(){return typeof importScripts!="function"&&document!==void 0&&(p.supportNewBlendModes=l(),p.supportInverseAlpha=r()),p}c.exports=n()},89357:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(25892),p=t(84148),a=t(27919),r={canvas:!1,canvasBitBltShift:null,file:!1,fileSystem:!1,getUserMedia:!0,littleEndian:!1,localStorage:!1,pointerLock:!1,stableSort:!1,support32bit:!1,vibration:!1,webGL:!1,worker:!1};function n(){var s=new ArrayBuffer(4),l=new Uint8Array(s),i=new Uint32Array(s);return l[0]=161,l[1]=178,l[2]=195,l[3]=212,i[0]===3569595041?!0:i[0]===2712847316?!1:null}function e(){if(typeof importScripts=="function")return r;r.canvas=!!window.CanvasRenderingContext2D;try{r.localStorage=!!localStorage.getItem}catch{r.localStorage=!1}r.file=!!window.File&&!!window.FileReader&&!!window.FileList&&!!window.Blob,r.fileSystem=!!window.requestFileSystem;var s=!1,l=function(){if(window.WebGLRenderingContext)try{var i=a.createWebGL(this),o=i.getContext("webgl")||i.getContext("experimental-webgl"),u=a.create2D(this),h=u.getContext("2d",{willReadFrequently:!0}),f=h.createImageData(1,1);return s=f.data instanceof Uint8ClampedArray,a.remove(i),a.remove(u),!!o}catch{return!1}return!1};return r.webGL=l(),r.worker=!!window.Worker,r.pointerLock="pointerLockElement"in document||"mozPointerLockElement"in document||"webkitPointerLockElement"in document,navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia||navigator.oGetUserMedia,window.URL=window.URL||window.webkitURL||window.mozURL||window.msURL,r.getUserMedia=r.getUserMedia&&!!navigator.getUserMedia&&!!window.URL,p.firefox&&p.firefoxVersion<21&&(r.getUserMedia=!1),!d.iOS&&(p.ie||p.firefox||p.chrome)&&(r.canvasBitBltShift=!0),(p.safari||p.mobileSafari)&&(r.canvasBitBltShift=!1),navigator.vibrate=navigator.vibrate||navigator.webkitVibrate||navigator.mozVibrate||navigator.msVibrate,navigator.vibrate&&(r.vibration=!0),typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint32Array<"u"&&(r.littleEndian=n()),r.support32bit=typeof ArrayBuffer<"u"&&typeof Uint8ClampedArray<"u"&&typeof Int32Array<"u"&&r.littleEndian!==null&&s,r}c.exports=e()},91639:c=>{/** + */var d=t(25892),p=t(84148),l=t(27919),r={canvas:!1,canvasBitBltShift:null,file:!1,fileSystem:!1,getUserMedia:!0,littleEndian:!1,localStorage:!1,pointerLock:!1,stableSort:!1,support32bit:!1,vibration:!1,webGL:!1,worker:!1};function n(){var s=new ArrayBuffer(4),o=new Uint8Array(s),i=new Uint32Array(s);return o[0]=161,o[1]=178,o[2]=195,o[3]=212,i[0]===3569595041?!0:i[0]===2712847316?!1:null}function e(){if(typeof importScripts=="function")return r;r.canvas=!!window.CanvasRenderingContext2D;try{r.localStorage=!!localStorage.getItem}catch{r.localStorage=!1}r.file=!!window.File&&!!window.FileReader&&!!window.FileList&&!!window.Blob,r.fileSystem=!!window.requestFileSystem;var s=!1,o=function(){if(window.WebGLRenderingContext)try{var i=l.createWebGL(this),a=i.getContext("webgl")||i.getContext("experimental-webgl"),u=l.create2D(this),h=u.getContext("2d",{willReadFrequently:!0}),f=h.createImageData(1,1);return s=f.data instanceof Uint8ClampedArray,l.remove(i),l.remove(u),!!a}catch{return!1}return!1};return r.webGL=o(),r.worker=!!window.Worker,r.pointerLock="pointerLockElement"in document||"mozPointerLockElement"in document||"webkitPointerLockElement"in document,navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia||navigator.oGetUserMedia,window.URL=window.URL||window.webkitURL||window.mozURL||window.msURL,r.getUserMedia=r.getUserMedia&&!!navigator.getUserMedia&&!!window.URL,p.firefox&&p.firefoxVersion<21&&(r.getUserMedia=!1),!d.iOS&&(p.ie||p.firefox||p.chrome)&&(r.canvasBitBltShift=!0),(p.safari||p.mobileSafari)&&(r.canvasBitBltShift=!1),navigator.vibrate=navigator.vibrate||navigator.webkitVibrate||navigator.mozVibrate||navigator.msVibrate,navigator.vibrate&&(r.vibration=!0),typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint32Array<"u"&&(r.littleEndian=n()),r.support32bit=typeof ArrayBuffer<"u"&&typeof Uint8ClampedArray<"u"&&typeof Int32Array<"u"&&r.littleEndian!==null&&s,r}c.exports=e()},91639:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T={available:!1,cancel:"",keyboard:!1,request:""};function t(){if(typeof importScripts=="function")return T;var d,p="Fullscreen",a="FullScreen",r=["request"+p,"request"+a,"webkitRequest"+p,"webkitRequest"+a,"msRequest"+p,"msRequest"+a,"mozRequest"+a,"mozRequest"+p];for(d=0;d{/** + */var T={available:!1,cancel:"",keyboard:!1,request:""};function t(){if(typeof importScripts=="function")return T;var d,p="Fullscreen",l="FullScreen",r=["request"+p,"request"+l,"webkitRequest"+p,"webkitRequest"+l,"msRequest"+p,"msRequest"+l,"mozRequest"+l,"mozRequest"+p];for(d=0;d{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(84148),p={gamepads:!1,mspointer:!1,touch:!1,wheelEvent:null};function a(){return typeof importScripts=="function"||(("ontouchstart"in document.documentElement||navigator.maxTouchPoints&&navigator.maxTouchPoints>=1)&&(p.touch=!0),(navigator.msPointerEnabled||navigator.pointerEnabled)&&(p.mspointer=!0),navigator.getGamepads&&(p.gamepads=!0),"onwheel"in window||d.ie&&"WheelEvent"in window?p.wheelEvent="wheel":"onmousewheel"in window?p.wheelEvent="mousewheel":d.firefox&&"MouseScrollEvent"in window&&(p.wheelEvent="DOMMouseScroll")),p}c.exports=a()},25892:c=>{/** + */var d=t(84148),p={gamepads:!1,mspointer:!1,touch:!1,wheelEvent:null};function l(){return typeof importScripts=="function"||(("ontouchstart"in document.documentElement||navigator.maxTouchPoints&&navigator.maxTouchPoints>=1)&&(p.touch=!0),(navigator.msPointerEnabled||navigator.pointerEnabled)&&(p.mspointer=!0),navigator.getGamepads&&(p.gamepads=!0),"onwheel"in window||d.ie&&"WheelEvent"in window?p.wheelEvent="wheel":"onmousewheel"in window?p.wheelEvent="mousewheel":d.firefox&&"MouseScrollEvent"in window&&(p.wheelEvent="DOMMouseScroll")),p}c.exports=l()},25892:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -679,7 +679,7 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(95540),p={h264:!1,hls:!1,mp4:!1,m4v:!1,ogg:!1,vp9:!1,webm:!1,hasRequestVideoFrame:!1};function a(){if(typeof importScripts=="function")return p;var r=document.createElement("video"),n=!!r.canPlayType,e=/^no$/;try{n&&(r.canPlayType('video/ogg; codecs="theora"').replace(e,"")&&(p.ogg=!0),r.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(e,"")&&(p.h264=!0,p.mp4=!0),r.canPlayType("video/x-m4v").replace(e,"")&&(p.m4v=!0),r.canPlayType('video/webm; codecs="vp8, vorbis"').replace(e,"")&&(p.webm=!0),r.canPlayType('video/webm; codecs="vp9"').replace(e,"")&&(p.vp9=!0),r.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(e,"")&&(p.hls=!0))}catch{}return r.parentNode&&r.parentNode.removeChild(r),p.getVideoURL=function(s){Array.isArray(s)||(s=[s]);for(var l=0;l{/** + */var d=t(95540),p={h264:!1,hls:!1,mp4:!1,m4v:!1,ogg:!1,vp9:!1,webm:!1,hasRequestVideoFrame:!1};function l(){if(typeof importScripts=="function")return p;var r=document.createElement("video"),n=!!r.canPlayType,e=/^no$/;try{n&&(r.canPlayType('video/ogg; codecs="theora"').replace(e,"")&&(p.ogg=!0),r.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(e,"")&&(p.h264=!0,p.mp4=!0),r.canPlayType("video/x-m4v").replace(e,"")&&(p.m4v=!0),r.canPlayType('video/webm; codecs="vp8, vorbis"').replace(e,"")&&(p.webm=!0),r.canPlayType('video/webm; codecs="vp9"').replace(e,"")&&(p.vp9=!0),r.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(e,"")&&(p.hls=!0))}catch{}return r.parentNode&&r.parentNode.removeChild(r),p.getVideoURL=function(s){Array.isArray(s)||(s=[s]);for(var o=0;o{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -687,11 +687,11 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=new Float32Array(20),a=new d({initialize:function(){this._matrix=new Float32Array(20),this.alpha=1,this._dirty=!0,this._data=new Float32Array(20),this.reset()},set:function(r){return this._matrix.set(r),this._dirty=!0,this},reset:function(){var r=this._matrix;return r.fill(0),r[0]=1,r[6]=1,r[12]=1,r[18]=1,this.alpha=1,this._dirty=!0,this},getData:function(){var r=this._data;return this._dirty&&(r.set(this._matrix),r[4]/=255,r[9]/=255,r[14]/=255,r[19]/=255,this._dirty=!1),r},brightness:function(r,n){r===void 0&&(r=0),n===void 0&&(n=!1);var e=r;return this.multiply([e,0,0,0,0,0,e,0,0,0,0,0,e,0,0,0,0,0,1,0],n)},saturate:function(r,n){r===void 0&&(r=0),n===void 0&&(n=!1);var e=r*2/3+1,s=(e-1)*-.5;return this.multiply([e,s,s,0,0,s,e,s,0,0,s,s,e,0,0,0,0,0,1,0],n)},desaturate:function(r){return r===void 0&&(r=!1),this.saturate(-1,r)},hue:function(r,n){r===void 0&&(r=0),n===void 0&&(n=!1),r=r/180*Math.PI;var e=Math.cos(r),s=Math.sin(r),l=.213,i=.715,o=.072;return this.multiply([l+e*(1-l)+s*-l,i+e*-i+s*-i,o+e*-o+s*(1-o),0,0,l+e*-l+s*.143,i+e*(1-i)+s*.14,o+e*-o+s*-.283,0,0,l+e*-l+s*-(1-l),i+e*-i+s*i,o+e*(1-o)+s*o,0,0,0,0,0,1,0],n)},grayscale:function(r,n){return r===void 0&&(r=1),n===void 0&&(n=!1),this.saturate(-r,n)},blackWhite:function(r){return r===void 0&&(r=!1),this.multiply(a.BLACK_WHITE,r)},contrast:function(r,n){r===void 0&&(r=0),n===void 0&&(n=!1);var e=r+1,s=-.5*(e-1);return this.multiply([e,0,0,0,s,0,e,0,0,s,0,0,e,0,s,0,0,0,1,0],n)},negative:function(r){return r===void 0&&(r=!1),this.multiply(a.NEGATIVE,r)},desaturateLuminance:function(r){return r===void 0&&(r=!1),this.multiply(a.DESATURATE_LUMINANCE,r)},sepia:function(r){return r===void 0&&(r=!1),this.multiply(a.SEPIA,r)},night:function(r,n){return r===void 0&&(r=.1),n===void 0&&(n=!1),this.multiply([r*-2,-r,0,0,0,-r,0,r,0,0,0,r,r*2,0,0,0,0,0,1,0],n)},lsd:function(r){return r===void 0&&(r=!1),this.multiply(a.LSD,r)},brown:function(r){return r===void 0&&(r=!1),this.multiply(a.BROWN,r)},vintagePinhole:function(r){return r===void 0&&(r=!1),this.multiply(a.VINTAGE,r)},kodachrome:function(r){return r===void 0&&(r=!1),this.multiply(a.KODACHROME,r)},technicolor:function(r){return r===void 0&&(r=!1),this.multiply(a.TECHNICOLOR,r)},polaroid:function(r){return r===void 0&&(r=!1),this.multiply(a.POLAROID,r)},shiftToBGR:function(r){return r===void 0&&(r=!1),this.multiply(a.SHIFT_BGR,r)},multiply:function(r,n){n===void 0&&(n=!1),n||this.reset();var e=this._matrix,s=p;return s.set(e),e.set([s[0]*r[0]+s[1]*r[5]+s[2]*r[10]+s[3]*r[15],s[0]*r[1]+s[1]*r[6]+s[2]*r[11]+s[3]*r[16],s[0]*r[2]+s[1]*r[7]+s[2]*r[12]+s[3]*r[17],s[0]*r[3]+s[1]*r[8]+s[2]*r[13]+s[3]*r[18],s[0]*r[4]+s[1]*r[9]+s[2]*r[14]+s[3]*r[19]+s[4],s[5]*r[0]+s[6]*r[5]+s[7]*r[10]+s[8]*r[15],s[5]*r[1]+s[6]*r[6]+s[7]*r[11]+s[8]*r[16],s[5]*r[2]+s[6]*r[7]+s[7]*r[12]+s[8]*r[17],s[5]*r[3]+s[6]*r[8]+s[7]*r[13]+s[8]*r[18],s[5]*r[4]+s[6]*r[9]+s[7]*r[14]+s[8]*r[19]+s[9],s[10]*r[0]+s[11]*r[5]+s[12]*r[10]+s[13]*r[15],s[10]*r[1]+s[11]*r[6]+s[12]*r[11]+s[13]*r[16],s[10]*r[2]+s[11]*r[7]+s[12]*r[12]+s[13]*r[17],s[10]*r[3]+s[11]*r[8]+s[12]*r[13]+s[13]*r[18],s[10]*r[4]+s[11]*r[9]+s[12]*r[14]+s[13]*r[19]+s[14],s[15]*r[0]+s[16]*r[5]+s[17]*r[10]+s[18]*r[15],s[15]*r[1]+s[16]*r[6]+s[17]*r[11]+s[18]*r[16],s[15]*r[2]+s[16]*r[7]+s[17]*r[12]+s[18]*r[17],s[15]*r[3]+s[16]*r[8]+s[17]*r[13]+s[18]*r[18],s[15]*r[4]+s[16]*r[9]+s[17]*r[14]+s[18]*r[19]+s[19]]),this._dirty=!0,this}});a.BLACK_WHITE=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0],a.NEGATIVE=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0],a.DESATURATE_LUMINANCE=[.2764723,.929708,.0938197,0,-37.1,.2764723,.929708,.0938197,0,-37.1,.2764723,.929708,.0938197,0,-37.1,0,0,0,1,0],a.SEPIA=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0],a.LSD=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],a.BROWN=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0],a.VINTAGE=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0],a.KODACHROME=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0],a.TECHNICOLOR=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0],a.POLAROID=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],a.SHIFT_BGR=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],c.exports=a},51767:(c,T,t)=>{/** + */var d=t(83419),p=new Float32Array(20),l=new d({initialize:function(){this._matrix=new Float32Array(20),this.alpha=1,this._dirty=!0,this._data=new Float32Array(20),this.reset()},set:function(r){return this._matrix.set(r),this._dirty=!0,this},reset:function(){var r=this._matrix;return r.fill(0),r[0]=1,r[6]=1,r[12]=1,r[18]=1,this.alpha=1,this._dirty=!0,this},getData:function(){var r=this._data;return this._dirty&&(r.set(this._matrix),r[4]/=255,r[9]/=255,r[14]/=255,r[19]/=255,this._dirty=!1),r},brightness:function(r,n){r===void 0&&(r=0),n===void 0&&(n=!1);var e=r;return this.multiply([e,0,0,0,0,0,e,0,0,0,0,0,e,0,0,0,0,0,1,0],n)},saturate:function(r,n){r===void 0&&(r=0),n===void 0&&(n=!1);var e=r*2/3+1,s=(e-1)*-.5;return this.multiply([e,s,s,0,0,s,e,s,0,0,s,s,e,0,0,0,0,0,1,0],n)},desaturate:function(r){return r===void 0&&(r=!1),this.saturate(-1,r)},hue:function(r,n){r===void 0&&(r=0),n===void 0&&(n=!1),r=r/180*Math.PI;var e=Math.cos(r),s=Math.sin(r),o=.213,i=.715,a=.072;return this.multiply([o+e*(1-o)+s*-o,i+e*-i+s*-i,a+e*-a+s*(1-a),0,0,o+e*-o+s*.143,i+e*(1-i)+s*.14,a+e*-a+s*-.283,0,0,o+e*-o+s*-(1-o),i+e*-i+s*i,a+e*(1-a)+s*a,0,0,0,0,0,1,0],n)},grayscale:function(r,n){return r===void 0&&(r=1),n===void 0&&(n=!1),this.saturate(-r,n)},blackWhite:function(r){return r===void 0&&(r=!1),this.multiply(l.BLACK_WHITE,r)},contrast:function(r,n){r===void 0&&(r=0),n===void 0&&(n=!1);var e=r+1,s=-.5*(e-1);return this.multiply([e,0,0,0,s,0,e,0,0,s,0,0,e,0,s,0,0,0,1,0],n)},negative:function(r){return r===void 0&&(r=!1),this.multiply(l.NEGATIVE,r)},desaturateLuminance:function(r){return r===void 0&&(r=!1),this.multiply(l.DESATURATE_LUMINANCE,r)},sepia:function(r){return r===void 0&&(r=!1),this.multiply(l.SEPIA,r)},night:function(r,n){return r===void 0&&(r=.1),n===void 0&&(n=!1),this.multiply([r*-2,-r,0,0,0,-r,0,r,0,0,0,r,r*2,0,0,0,0,0,1,0],n)},lsd:function(r){return r===void 0&&(r=!1),this.multiply(l.LSD,r)},brown:function(r){return r===void 0&&(r=!1),this.multiply(l.BROWN,r)},vintagePinhole:function(r){return r===void 0&&(r=!1),this.multiply(l.VINTAGE,r)},kodachrome:function(r){return r===void 0&&(r=!1),this.multiply(l.KODACHROME,r)},technicolor:function(r){return r===void 0&&(r=!1),this.multiply(l.TECHNICOLOR,r)},polaroid:function(r){return r===void 0&&(r=!1),this.multiply(l.POLAROID,r)},shiftToBGR:function(r){return r===void 0&&(r=!1),this.multiply(l.SHIFT_BGR,r)},multiply:function(r,n){n===void 0&&(n=!1),n||this.reset();var e=this._matrix,s=p;return s.set(e),e.set([s[0]*r[0]+s[1]*r[5]+s[2]*r[10]+s[3]*r[15],s[0]*r[1]+s[1]*r[6]+s[2]*r[11]+s[3]*r[16],s[0]*r[2]+s[1]*r[7]+s[2]*r[12]+s[3]*r[17],s[0]*r[3]+s[1]*r[8]+s[2]*r[13]+s[3]*r[18],s[0]*r[4]+s[1]*r[9]+s[2]*r[14]+s[3]*r[19]+s[4],s[5]*r[0]+s[6]*r[5]+s[7]*r[10]+s[8]*r[15],s[5]*r[1]+s[6]*r[6]+s[7]*r[11]+s[8]*r[16],s[5]*r[2]+s[6]*r[7]+s[7]*r[12]+s[8]*r[17],s[5]*r[3]+s[6]*r[8]+s[7]*r[13]+s[8]*r[18],s[5]*r[4]+s[6]*r[9]+s[7]*r[14]+s[8]*r[19]+s[9],s[10]*r[0]+s[11]*r[5]+s[12]*r[10]+s[13]*r[15],s[10]*r[1]+s[11]*r[6]+s[12]*r[11]+s[13]*r[16],s[10]*r[2]+s[11]*r[7]+s[12]*r[12]+s[13]*r[17],s[10]*r[3]+s[11]*r[8]+s[12]*r[13]+s[13]*r[18],s[10]*r[4]+s[11]*r[9]+s[12]*r[14]+s[13]*r[19]+s[14],s[15]*r[0]+s[16]*r[5]+s[17]*r[10]+s[18]*r[15],s[15]*r[1]+s[16]*r[6]+s[17]*r[11]+s[18]*r[16],s[15]*r[2]+s[16]*r[7]+s[17]*r[12]+s[18]*r[17],s[15]*r[3]+s[16]*r[8]+s[17]*r[13]+s[18]*r[18],s[15]*r[4]+s[16]*r[9]+s[17]*r[14]+s[18]*r[19]+s[19]]),this._dirty=!0,this}});l.BLACK_WHITE=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0],l.NEGATIVE=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0],l.DESATURATE_LUMINANCE=[.2764723,.929708,.0938197,0,-37.1,.2764723,.929708,.0938197,0,-37.1,.2764723,.929708,.0938197,0,-37.1,0,0,0,1,0],l.SEPIA=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0],l.LSD=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],l.BROWN=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0],l.VINTAGE=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0],l.KODACHROME=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0],l.TECHNICOLOR=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0],l.POLAROID=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],l.SHIFT_BGR=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],c.exports=l},51767:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(29747),a=new d({initialize:function(n,e,s){this._rgb=[0,0,0],this.onChangeCallback=p,this.dirty=!1,this.set(n,e,s)},set:function(r,n,e){return r===void 0&&(r=0),n===void 0&&(n=0),e===void 0&&(e=0),this._rgb=[r,n,e],this.onChange(),this},equals:function(r,n,e){var s=this._rgb;return s[0]===r&&s[1]===n&&s[2]===e},onChange:function(){this.dirty=!0;var r=this._rgb;this.onChangeCallback.call(this,r[0],r[1],r[2])},r:{get:function(){return this._rgb[0]},set:function(r){this._rgb[0]=r,this.onChange()}},g:{get:function(){return this._rgb[1]},set:function(r){this._rgb[1]=r,this.onChange()}},b:{get:function(){return this._rgb[2]},set:function(r){this._rgb[2]=r,this.onChange()}},destroy:function(){this.onChangeCallback=null}});c.exports=a},60461:c=>{/** + */var d=t(83419),p=t(29747),l=new d({initialize:function(n,e,s){this._rgb=[0,0,0],this.onChangeCallback=p,this.dirty=!1,this.set(n,e,s)},set:function(r,n,e){return r===void 0&&(r=0),n===void 0&&(n=0),e===void 0&&(e=0),this._rgb=[r,n,e],this.onChange(),this},equals:function(r,n,e){var s=this._rgb;return s[0]===r&&s[1]===n&&s[2]===e},onChange:function(){this.dirty=!0;var r=this._rgb;this.onChangeCallback.call(this,r[0],r[1],r[2])},r:{get:function(){return this._rgb[0]},set:function(r){this._rgb[0]=r,this.onChange()}},g:{get:function(){return this._rgb[1]},set:function(r){this._rgb[1]=r,this.onChange()}},b:{get:function(){return this._rgb[2]},set:function(r){this._rgb[2]=r,this.onChange()}},destroy:function(){this.onChangeCallback=null}});c.exports=l},60461:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -699,43 +699,43 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(62235),p=t(35893),a=t(86327),r=t(88417),n=function(e,s,l,i){return l===void 0&&(l=0),i===void 0&&(i=0),r(e,p(s)+l),a(e,d(s)+i),e};c.exports=n},46768:(c,T,t)=>{/** + */var d=t(62235),p=t(35893),l=t(86327),r=t(88417),n=function(e,s,o,i){return o===void 0&&(o=0),i===void 0&&(i=0),r(e,p(s)+o),l(e,d(s)+i),e};c.exports=n},46768:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(62235),p=t(26541),a=t(86327),r=t(385),n=function(e,s,l,i){return l===void 0&&(l=0),i===void 0&&(i=0),r(e,p(s)-l),a(e,d(s)+i),e};c.exports=n},35827:(c,T,t)=>{/** + */var d=t(62235),p=t(26541),l=t(86327),r=t(385),n=function(e,s,o,i){return o===void 0&&(o=0),i===void 0&&(i=0),r(e,p(s)-o),l(e,d(s)+i),e};c.exports=n},35827:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(62235),p=t(54380),a=t(86327),r=t(40136),n=function(e,s,l,i){return l===void 0&&(l=0),i===void 0&&(i=0),r(e,p(s)+l),a(e,d(s)+i),e};c.exports=n},46871:(c,T,t)=>{/** + */var d=t(62235),p=t(54380),l=t(86327),r=t(40136),n=function(e,s,o,i){return o===void 0&&(o=0),i===void 0&&(i=0),r(e,p(s)+o),l(e,d(s)+i),e};c.exports=n},46871:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(66786),p=t(35893),a=t(7702),r=function(n,e,s,l){return s===void 0&&(s=0),l===void 0&&(l=0),d(n,p(e)+s,a(e)+l),n};c.exports=r},5198:(c,T,t)=>{/** + */var d=t(66786),p=t(35893),l=t(7702),r=function(n,e,s,o){return s===void 0&&(s=0),o===void 0&&(o=0),d(n,p(e)+s,l(e)+o),n};c.exports=r},5198:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(7702),p=t(26541),a=t(20786),r=t(385),n=function(e,s,l,i){return l===void 0&&(l=0),i===void 0&&(i=0),r(e,p(s)-l),a(e,d(s)+i),e};c.exports=n},11879:(c,T,t)=>{/** + */var d=t(7702),p=t(26541),l=t(20786),r=t(385),n=function(e,s,o,i){return o===void 0&&(o=0),i===void 0&&(i=0),r(e,p(s)-o),l(e,d(s)+i),e};c.exports=n},11879:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(60461),p=[];p[d.BOTTOM_CENTER]=t(54312),p[d.BOTTOM_LEFT]=t(46768),p[d.BOTTOM_RIGHT]=t(35827),p[d.CENTER]=t(46871),p[d.LEFT_CENTER]=t(5198),p[d.RIGHT_CENTER]=t(80503),p[d.TOP_CENTER]=t(89698),p[d.TOP_LEFT]=t(922),p[d.TOP_RIGHT]=t(21373),p[d.LEFT_BOTTOM]=p[d.BOTTOM_LEFT],p[d.LEFT_TOP]=p[d.TOP_LEFT],p[d.RIGHT_BOTTOM]=p[d.BOTTOM_RIGHT],p[d.RIGHT_TOP]=p[d.TOP_RIGHT];var a=function(r,n,e,s,l){return p[e](r,n,s,l)};c.exports=a},80503:(c,T,t)=>{/** + */var d=t(60461),p=[];p[d.BOTTOM_CENTER]=t(54312),p[d.BOTTOM_LEFT]=t(46768),p[d.BOTTOM_RIGHT]=t(35827),p[d.CENTER]=t(46871),p[d.LEFT_CENTER]=t(5198),p[d.RIGHT_CENTER]=t(80503),p[d.TOP_CENTER]=t(89698),p[d.TOP_LEFT]=t(922),p[d.TOP_RIGHT]=t(21373),p[d.LEFT_BOTTOM]=p[d.BOTTOM_LEFT],p[d.LEFT_TOP]=p[d.TOP_LEFT],p[d.RIGHT_BOTTOM]=p[d.BOTTOM_RIGHT],p[d.RIGHT_TOP]=p[d.TOP_RIGHT];var l=function(r,n,e,s,o){return p[e](r,n,s,o)};c.exports=l},80503:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(7702),p=t(54380),a=t(20786),r=t(40136),n=function(e,s,l,i){return l===void 0&&(l=0),i===void 0&&(i=0),r(e,p(s)+l),a(e,d(s)+i),e};c.exports=n},89698:(c,T,t)=>{/** + */var d=t(7702),p=t(54380),l=t(20786),r=t(40136),n=function(e,s,o,i){return o===void 0&&(o=0),i===void 0&&(i=0),r(e,p(s)+o),l(e,d(s)+i),e};c.exports=n},89698:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(35893),p=t(17717),a=t(88417),r=t(66737),n=function(e,s,l,i){return l===void 0&&(l=0),i===void 0&&(i=0),a(e,d(s)+l),r(e,p(s)-i),e};c.exports=n},922:(c,T,t)=>{/** + */var d=t(35893),p=t(17717),l=t(88417),r=t(66737),n=function(e,s,o,i){return o===void 0&&(o=0),i===void 0&&(i=0),l(e,d(s)+o),r(e,p(s)-i),e};c.exports=n},922:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(26541),p=t(17717),a=t(385),r=t(66737),n=function(e,s,l,i){return l===void 0&&(l=0),i===void 0&&(i=0),a(e,d(s)-l),r(e,p(s)-i),e};c.exports=n},21373:(c,T,t)=>{/** + */var d=t(26541),p=t(17717),l=t(385),r=t(66737),n=function(e,s,o,i){return o===void 0&&(o=0),i===void 0&&(i=0),l(e,d(s)-o),r(e,p(s)-i),e};c.exports=n},21373:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(54380),p=t(17717),a=t(40136),r=t(66737),n=function(e,s,l,i){return l===void 0&&(l=0),i===void 0&&(i=0),a(e,d(s)+l),r(e,p(s)-i),e};c.exports=n},91660:(c,T,t)=>{/** + */var d=t(54380),p=t(17717),l=t(40136),r=t(66737),n=function(e,s,o,i){return o===void 0&&(o=0),i===void 0&&(i=0),l(e,d(s)+o),r(e,p(s)-i),e};c.exports=n},91660:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -743,59 +743,59 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(60461),p=t(79291),a={In:t(91660),To:t(16694)};a=p(!1,a,d),c.exports=a},21578:(c,T,t)=>{/** + */var d=t(60461),p=t(79291),l={In:t(91660),To:t(16694)};l=p(!1,l,d),c.exports=l},21578:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(62235),p=t(35893),a=t(88417),r=t(66737),n=function(e,s,l,i){return l===void 0&&(l=0),i===void 0&&(i=0),a(e,p(s)+l),r(e,d(s)+i),e};c.exports=n},10210:(c,T,t)=>{/** + */var d=t(62235),p=t(35893),l=t(88417),r=t(66737),n=function(e,s,o,i){return o===void 0&&(o=0),i===void 0&&(i=0),l(e,p(s)+o),r(e,d(s)+i),e};c.exports=n},10210:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(62235),p=t(26541),a=t(385),r=t(66737),n=function(e,s,l,i){return l===void 0&&(l=0),i===void 0&&(i=0),a(e,p(s)-l),r(e,d(s)+i),e};c.exports=n},82341:(c,T,t)=>{/** + */var d=t(62235),p=t(26541),l=t(385),r=t(66737),n=function(e,s,o,i){return o===void 0&&(o=0),i===void 0&&(i=0),l(e,p(s)-o),r(e,d(s)+i),e};c.exports=n},82341:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(62235),p=t(54380),a=t(40136),r=t(66737),n=function(e,s,l,i){return l===void 0&&(l=0),i===void 0&&(i=0),a(e,p(s)+l),r(e,d(s)+i),e};c.exports=n},87958:(c,T,t)=>{/** + */var d=t(62235),p=t(54380),l=t(40136),r=t(66737),n=function(e,s,o,i){return o===void 0&&(o=0),i===void 0&&(i=0),l(e,p(s)+o),r(e,d(s)+i),e};c.exports=n},87958:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(62235),p=t(26541),a=t(86327),r=t(40136),n=function(e,s,l,i){return l===void 0&&(l=0),i===void 0&&(i=0),r(e,p(s)-l),a(e,d(s)+i),e};c.exports=n},40080:(c,T,t)=>{/** + */var d=t(62235),p=t(26541),l=t(86327),r=t(40136),n=function(e,s,o,i){return o===void 0&&(o=0),i===void 0&&(i=0),r(e,p(s)-o),l(e,d(s)+i),e};c.exports=n},40080:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(7702),p=t(26541),a=t(20786),r=t(40136),n=function(e,s,l,i){return l===void 0&&(l=0),i===void 0&&(i=0),r(e,p(s)-l),a(e,d(s)+i),e};c.exports=n},88466:(c,T,t)=>{/** + */var d=t(7702),p=t(26541),l=t(20786),r=t(40136),n=function(e,s,o,i){return o===void 0&&(o=0),i===void 0&&(i=0),r(e,p(s)-o),l(e,d(s)+i),e};c.exports=n},88466:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(26541),p=t(17717),a=t(40136),r=t(66737),n=function(e,s,l,i){return l===void 0&&(l=0),i===void 0&&(i=0),a(e,d(s)-l),r(e,p(s)-i),e};c.exports=n},38829:(c,T,t)=>{/** + */var d=t(26541),p=t(17717),l=t(40136),r=t(66737),n=function(e,s,o,i){return o===void 0&&(o=0),i===void 0&&(i=0),l(e,d(s)-o),r(e,p(s)-i),e};c.exports=n},38829:(c,T,t)=>{/** * @author samme * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(60461),p=[];p[d.BOTTOM_CENTER]=t(21578),p[d.BOTTOM_LEFT]=t(10210),p[d.BOTTOM_RIGHT]=t(82341),p[d.LEFT_BOTTOM]=t(87958),p[d.LEFT_CENTER]=t(40080),p[d.LEFT_TOP]=t(88466),p[d.RIGHT_BOTTOM]=t(19211),p[d.RIGHT_CENTER]=t(34609),p[d.RIGHT_TOP]=t(48741),p[d.TOP_CENTER]=t(49440),p[d.TOP_LEFT]=t(81288),p[d.TOP_RIGHT]=t(61323);var a=function(r,n,e,s,l){return p[e](r,n,s,l)};c.exports=a},19211:(c,T,t)=>{/** + */var d=t(60461),p=[];p[d.BOTTOM_CENTER]=t(21578),p[d.BOTTOM_LEFT]=t(10210),p[d.BOTTOM_RIGHT]=t(82341),p[d.LEFT_BOTTOM]=t(87958),p[d.LEFT_CENTER]=t(40080),p[d.LEFT_TOP]=t(88466),p[d.RIGHT_BOTTOM]=t(19211),p[d.RIGHT_CENTER]=t(34609),p[d.RIGHT_TOP]=t(48741),p[d.TOP_CENTER]=t(49440),p[d.TOP_LEFT]=t(81288),p[d.TOP_RIGHT]=t(61323);var l=function(r,n,e,s,o){return p[e](r,n,s,o)};c.exports=l},19211:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(62235),p=t(54380),a=t(86327),r=t(385),n=function(e,s,l,i){return l===void 0&&(l=0),i===void 0&&(i=0),r(e,p(s)+l),a(e,d(s)+i),e};c.exports=n},34609:(c,T,t)=>{/** + */var d=t(62235),p=t(54380),l=t(86327),r=t(385),n=function(e,s,o,i){return o===void 0&&(o=0),i===void 0&&(i=0),r(e,p(s)+o),l(e,d(s)+i),e};c.exports=n},34609:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(7702),p=t(54380),a=t(20786),r=t(385),n=function(e,s,l,i){return l===void 0&&(l=0),i===void 0&&(i=0),r(e,p(s)+l),a(e,d(s)+i),e};c.exports=n},48741:(c,T,t)=>{/** + */var d=t(7702),p=t(54380),l=t(20786),r=t(385),n=function(e,s,o,i){return o===void 0&&(o=0),i===void 0&&(i=0),r(e,p(s)+o),l(e,d(s)+i),e};c.exports=n},48741:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(54380),p=t(17717),a=t(385),r=t(66737),n=function(e,s,l,i){return l===void 0&&(l=0),i===void 0&&(i=0),a(e,d(s)+l),r(e,p(s)-i),e};c.exports=n},49440:(c,T,t)=>{/** + */var d=t(54380),p=t(17717),l=t(385),r=t(66737),n=function(e,s,o,i){return o===void 0&&(o=0),i===void 0&&(i=0),l(e,d(s)+o),r(e,p(s)-i),e};c.exports=n},49440:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(35893),p=t(17717),a=t(86327),r=t(88417),n=function(e,s,l,i){return l===void 0&&(l=0),i===void 0&&(i=0),r(e,d(s)+l),a(e,p(s)-i),e};c.exports=n},81288:(c,T,t)=>{/** + */var d=t(35893),p=t(17717),l=t(86327),r=t(88417),n=function(e,s,o,i){return o===void 0&&(o=0),i===void 0&&(i=0),r(e,d(s)+o),l(e,p(s)-i),e};c.exports=n},81288:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(26541),p=t(17717),a=t(86327),r=t(385),n=function(e,s,l,i){return l===void 0&&(l=0),i===void 0&&(i=0),r(e,d(s)-l),a(e,p(s)-i),e};c.exports=n},61323:(c,T,t)=>{/** + */var d=t(26541),p=t(17717),l=t(86327),r=t(385),n=function(e,s,o,i){return o===void 0&&(o=0),i===void 0&&(i=0),r(e,d(s)-o),l(e,p(s)-i),e};c.exports=n},61323:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(54380),p=t(17717),a=t(86327),r=t(40136),n=function(e,s,l,i){return l===void 0&&(l=0),i===void 0&&(i=0),r(e,d(s)+l),a(e,p(s)-i),e};c.exports=n},16694:(c,T,t)=>{/** + */var d=t(54380),p=t(17717),l=t(86327),r=t(40136),n=function(e,s,o,i){return o===void 0&&(o=0),i===void 0&&(i=0),r(e,d(s)+o),l(e,p(s)-i),e};c.exports=n},16694:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -803,7 +803,7 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(88417),p=t(20786),a=function(r,n,e){return d(r,n),p(r,e)};c.exports=a},62235:c=>{/** + */var d=t(88417),p=t(20786),l=function(r,n,e){return d(r,n),p(r,e)};c.exports=l},62235:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -811,7 +811,7 @@ * @author samme * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(62235),p=t(26541),a=t(54380),r=t(17717),n=t(87841),e=function(s,l){l===void 0&&(l=new n);var i=p(s),o=r(s);return l.x=i,l.y=o,l.width=a(s)-i,l.height=d(s)-o,l};c.exports=e},35893:c=>{/** + */var d=t(62235),p=t(26541),l=t(54380),r=t(17717),n=t(87841),e=function(s,o){o===void 0&&(o=new n);var i=p(s),a=r(s);return o.x=i,o.y=a,o.width=l(s)-i,o.height=d(s)-a,o};c.exports=e},35893:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -875,11 +875,11 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(8054),p=t(68703),a=[],r=!1,n=function(){var e=function(m,x,g,y,S){x===void 0&&(x=1),g===void 0&&(g=1),y===void 0&&(y=d.CANVAS),S===void 0&&(S=!1);var C,E=i(y);return E===null?(E={parent:m,canvas:document.createElement("canvas"),type:y},y===d.CANVAS&&a.push(E),C=E.canvas):(E.parent=m,C=E.canvas),S&&(E.parent=C),C.width=x,C.height=g,r&&y===d.CANVAS&&p.disable(C.getContext("2d",{willReadFrequently:!1})),C},s=function(m,x,g){return e(m,x,g,d.CANVAS)},l=function(m,x,g){return e(m,x,g,d.WEBGL)},i=function(m){if(m===void 0&&(m=d.CANVAS),m===d.WEBGL)return null;for(var x=0;x{/** + */var d=t(8054),p=t(68703),l=[],r=!1,n=function(){var e=function(m,g,x,y,S){g===void 0&&(g=1),x===void 0&&(x=1),y===void 0&&(y=d.CANVAS),S===void 0&&(S=!1);var C,E=i(y);return E===null?(E={parent:m,canvas:document.createElement("canvas"),type:y},y===d.CANVAS&&l.push(E),C=E.canvas):(E.parent=m,C=E.canvas),S&&(E.parent=C),C.width=g,C.height=x,r&&y===d.CANVAS&&p.disable(C.getContext("2d",{willReadFrequently:!1})),C},s=function(m,g,x){return e(m,g,x,d.CANVAS)},o=function(m,g,x){return e(m,g,x,d.WEBGL)},i=function(m){if(m===void 0&&(m=d.CANVAS),m===d.WEBGL)return null;for(var g=0;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T="",t=function(){var d=function(n){for(var e=["i","webkitI","msI","mozI","oI"],s=0;s{/** + */var T="",t=function(){var d=function(n){for(var e=["i","webkitI","msI","mozI","oI"],s=0;s{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -887,7 +887,7 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d){d===void 0&&(d="none");var p=["-webkit-","-khtml-","-moz-","-ms-",""];return p.forEach(function(a){t.style[a+"user-select"]=d}),t.style["-webkit-touch-callout"]=d,t.style["-webkit-tap-highlight-color"]="rgba(0, 0, 0, 0)",t};c.exports=T},26253:(c,T,t)=>{/** + */var T=function(t,d){d===void 0&&(d="none");var p=["-webkit-","-khtml-","-moz-","-ms-",""];return p.forEach(function(l){t.style[l+"user-select"]=d}),t.style["-webkit-touch-callout"]=d,t.style["-webkit-tap-highlight-color"]="rgba(0, 0, 0, 0)",t};c.exports=T},26253:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -895,11 +895,11 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(37589),a=t(1e3),r=t(7537),n=t(87837),e=new d({initialize:function(l,i,o,u){l===void 0&&(l=0),i===void 0&&(i=0),o===void 0&&(o=0),u===void 0&&(u=255),this.r=0,this.g=0,this.b=0,this.a=255,this._h=0,this._s=0,this._v=0,this._locked=!1,this.gl=[0,0,0,1],this._color=0,this._color32=0,this._rgba="",this.setTo(l,i,o,u)},transparent:function(){return this._locked=!0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this._locked=!1,this.update(!0)},setTo:function(s,l,i,o,u){return o===void 0&&(o=255),u===void 0&&(u=!0),this._locked=!0,this.red=s,this.green=l,this.blue=i,this.alpha=o,this._locked=!1,this.update(u)},setGLTo:function(s,l,i,o){return o===void 0&&(o=1),this._locked=!0,this.redGL=s,this.greenGL=l,this.blueGL=i,this.alphaGL=o,this._locked=!1,this.update(!0)},setFromRGB:function(s){return this._locked=!0,this.red=s.r,this.green=s.g,this.blue=s.b,s.hasOwnProperty("a")&&(this.alpha=s.a),this._locked=!1,this.update(!0)},setFromHSV:function(s,l,i){return r(s,l,i,this)},update:function(s){if(s===void 0&&(s=!1),this._locked)return this;var l=this.r,i=this.g,o=this.b,u=this.a;return this._color=p(l,i,o),this._color32=a(l,i,o,u),this._rgba="rgba("+l+","+i+","+o+","+u/255+")",s&&n(l,i,o,this),this},updateHSV:function(){var s=this.r,l=this.g,i=this.b;return n(s,l,i,this),this},clone:function(){return new e(this.r,this.g,this.b,this.a)},gray:function(s){return this.setTo(s,s,s)},random:function(s,l){s===void 0&&(s=0),l===void 0&&(l=255);var i=Math.floor(s+Math.random()*(l-s)),o=Math.floor(s+Math.random()*(l-s)),u=Math.floor(s+Math.random()*(l-s));return this.setTo(i,o,u)},randomGray:function(s,l){s===void 0&&(s=0),l===void 0&&(l=255);var i=Math.floor(s+Math.random()*(l-s));return this.setTo(i,i,i)},saturate:function(s){return this.s+=s/100,this},desaturate:function(s){return this.s-=s/100,this},lighten:function(s){return this.v+=s/100,this},darken:function(s){return this.v-=s/100,this},brighten:function(s){var l=this.r,i=this.g,o=this.b;return l=Math.max(0,Math.min(255,l-Math.round(255*-(s/100)))),i=Math.max(0,Math.min(255,i-Math.round(255*-(s/100)))),o=Math.max(0,Math.min(255,o-Math.round(255*-(s/100)))),this.setTo(l,i,o)},color:{get:function(){return this._color}},color32:{get:function(){return this._color32}},rgba:{get:function(){return this._rgba}},redGL:{get:function(){return this.gl[0]},set:function(s){this.gl[0]=Math.min(Math.abs(s),1),this.r=Math.floor(this.gl[0]*255),this.update(!0)}},greenGL:{get:function(){return this.gl[1]},set:function(s){this.gl[1]=Math.min(Math.abs(s),1),this.g=Math.floor(this.gl[1]*255),this.update(!0)}},blueGL:{get:function(){return this.gl[2]},set:function(s){this.gl[2]=Math.min(Math.abs(s),1),this.b=Math.floor(this.gl[2]*255),this.update(!0)}},alphaGL:{get:function(){return this.gl[3]},set:function(s){this.gl[3]=Math.min(Math.abs(s),1),this.a=Math.floor(this.gl[3]*255),this.update()}},red:{get:function(){return this.r},set:function(s){s=Math.floor(Math.abs(s)),this.r=Math.min(s,255),this.gl[0]=s/255,this.update(!0)}},green:{get:function(){return this.g},set:function(s){s=Math.floor(Math.abs(s)),this.g=Math.min(s,255),this.gl[1]=s/255,this.update(!0)}},blue:{get:function(){return this.b},set:function(s){s=Math.floor(Math.abs(s)),this.b=Math.min(s,255),this.gl[2]=s/255,this.update(!0)}},alpha:{get:function(){return this.a},set:function(s){s=Math.floor(Math.abs(s)),this.a=Math.min(s,255),this.gl[3]=s/255,this.update()}},h:{get:function(){return this._h},set:function(s){this._h=s,r(s,this._s,this._v,this)}},s:{get:function(){return this._s},set:function(s){this._s=s,r(this._h,s,this._v,this)}},v:{get:function(){return this._v},set:function(s){this._v=s,r(this._h,this._s,s,this)}}});c.exports=e},92728:(c,T,t)=>{/** + */var d=t(83419),p=t(37589),l=t(1e3),r=t(7537),n=t(87837),e=new d({initialize:function(o,i,a,u){o===void 0&&(o=0),i===void 0&&(i=0),a===void 0&&(a=0),u===void 0&&(u=255),this.r=0,this.g=0,this.b=0,this.a=255,this._h=0,this._s=0,this._v=0,this._locked=!1,this.gl=[0,0,0,1],this._color=0,this._color32=0,this._rgba="",this.setTo(o,i,a,u)},transparent:function(){return this._locked=!0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this._locked=!1,this.update(!0)},setTo:function(s,o,i,a,u){return a===void 0&&(a=255),u===void 0&&(u=!0),this._locked=!0,this.red=s,this.green=o,this.blue=i,this.alpha=a,this._locked=!1,this.update(u)},setGLTo:function(s,o,i,a){return a===void 0&&(a=1),this._locked=!0,this.redGL=s,this.greenGL=o,this.blueGL=i,this.alphaGL=a,this._locked=!1,this.update(!0)},setFromRGB:function(s){return this._locked=!0,this.red=s.r,this.green=s.g,this.blue=s.b,s.hasOwnProperty("a")&&(this.alpha=s.a),this._locked=!1,this.update(!0)},setFromHSV:function(s,o,i){return r(s,o,i,this)},update:function(s){if(s===void 0&&(s=!1),this._locked)return this;var o=this.r,i=this.g,a=this.b,u=this.a;return this._color=p(o,i,a),this._color32=l(o,i,a,u),this._rgba="rgba("+o+","+i+","+a+","+u/255+")",s&&n(o,i,a,this),this},updateHSV:function(){var s=this.r,o=this.g,i=this.b;return n(s,o,i,this),this},clone:function(){return new e(this.r,this.g,this.b,this.a)},gray:function(s){return this.setTo(s,s,s)},random:function(s,o){s===void 0&&(s=0),o===void 0&&(o=255);var i=Math.floor(s+Math.random()*(o-s)),a=Math.floor(s+Math.random()*(o-s)),u=Math.floor(s+Math.random()*(o-s));return this.setTo(i,a,u)},randomGray:function(s,o){s===void 0&&(s=0),o===void 0&&(o=255);var i=Math.floor(s+Math.random()*(o-s));return this.setTo(i,i,i)},saturate:function(s){return this.s+=s/100,this},desaturate:function(s){return this.s-=s/100,this},lighten:function(s){return this.v+=s/100,this},darken:function(s){return this.v-=s/100,this},brighten:function(s){var o=this.r,i=this.g,a=this.b;return o=Math.max(0,Math.min(255,o-Math.round(255*-(s/100)))),i=Math.max(0,Math.min(255,i-Math.round(255*-(s/100)))),a=Math.max(0,Math.min(255,a-Math.round(255*-(s/100)))),this.setTo(o,i,a)},color:{get:function(){return this._color}},color32:{get:function(){return this._color32}},rgba:{get:function(){return this._rgba}},redGL:{get:function(){return this.gl[0]},set:function(s){this.gl[0]=Math.min(Math.abs(s),1),this.r=Math.floor(this.gl[0]*255),this.update(!0)}},greenGL:{get:function(){return this.gl[1]},set:function(s){this.gl[1]=Math.min(Math.abs(s),1),this.g=Math.floor(this.gl[1]*255),this.update(!0)}},blueGL:{get:function(){return this.gl[2]},set:function(s){this.gl[2]=Math.min(Math.abs(s),1),this.b=Math.floor(this.gl[2]*255),this.update(!0)}},alphaGL:{get:function(){return this.gl[3]},set:function(s){this.gl[3]=Math.min(Math.abs(s),1),this.a=Math.floor(this.gl[3]*255),this.update()}},red:{get:function(){return this.r},set:function(s){s=Math.floor(Math.abs(s)),this.r=Math.min(s,255),this.gl[0]=s/255,this.update(!0)}},green:{get:function(){return this.g},set:function(s){s=Math.floor(Math.abs(s)),this.g=Math.min(s,255),this.gl[1]=s/255,this.update(!0)}},blue:{get:function(){return this.b},set:function(s){s=Math.floor(Math.abs(s)),this.b=Math.min(s,255),this.gl[2]=s/255,this.update(!0)}},alpha:{get:function(){return this.a},set:function(s){s=Math.floor(Math.abs(s)),this.a=Math.min(s,255),this.gl[3]=s/255,this.update()}},h:{get:function(){return this._h},set:function(s){this._h=s,r(s,this._s,this._v,this)}},s:{get:function(){return this._s},set:function(s){this._s=s,r(this._h,s,this._v,this)}},v:{get:function(){return this._v},set:function(s){this._v=s,r(this._h,this._s,s,this)}}});c.exports=e},92728:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(37589),p=function(a){a===void 0&&(a=1024);var r=[],n=255,e,s=255,l=0,i=0;for(e=0;e<=n;e++)r.push({r:s,g:e,b:i,color:d(s,e,i)});for(l=255,e=n;e>=0;e--)r.push({r:e,g:l,b:i,color:d(e,l,i)});for(s=0,e=0;e<=n;e++,l--)r.push({r:s,g:l,b:e,color:d(s,l,e)});for(l=0,i=255,e=0;e<=n;e++,i--,s++)r.push({r:s,g:l,b:i,color:d(s,l,i)});if(a===1024)return r;var o=[],u=0,h=1024/a;for(e=0;e{/** + */var d=t(37589),p=function(l){l===void 0&&(l=1024);var r=[],n=255,e,s=255,o=0,i=0;for(e=0;e<=n;e++)r.push({r:s,g:e,b:i,color:d(s,e,i)});for(o=255,e=n;e>=0;e--)r.push({r:e,g:o,b:i,color:d(e,o,i)});for(s=0,e=0;e<=n;e++,o--)r.push({r:s,g:o,b:e,color:d(s,o,e)});for(o=0,i=255,e=0;e<=n;e++,i--,s++)r.push({r:s,g:o,b:i,color:d(s,o,i)});if(l===1024)return r;var a=[],u=0,h=1024/l;for(e=0;e{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -915,23 +915,23 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){return a<<24|t<<16|d<<8|p};c.exports=T},62183:(c,T,t)=>{/** + */var T=function(t,d,p,l){return l<<24|t<<16|d<<8|p};c.exports=T},62183:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(40987),p=t(89528),a=function(r,n,e){var s=e,l=e,i=e;if(n!==0){var o=e<.5?e*(1+n):e+n-e*n,u=2*e-o;s=p(u,o,r+1/3),l=p(u,o,r),i=p(u,o,r-1/3)}var h=new d;return h.setGLTo(s,l,i,1)};c.exports=a},27939:(c,T,t)=>{/** + */var d=t(40987),p=t(89528),l=function(r,n,e){var s=e,o=e,i=e;if(n!==0){var a=e<.5?e*(1+n):e+n-e*n,u=2*e-a;s=p(u,a,r+1/3),o=p(u,a,r),i=p(u,a,r-1/3)}var h=new d;return h.setGLTo(s,o,i,1)};c.exports=l},27939:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(7537),p=function(a,r){a===void 0&&(a=1),r===void 0&&(r=1);for(var n=[],e=0;e<=359;e++)n.push(d(e/359,a,r));return n};c.exports=p},7537:(c,T,t)=>{/** + */var d=t(7537),p=function(l,r){l===void 0&&(l=1),r===void 0&&(r=1);for(var n=[],e=0;e<=359;e++)n.push(d(e/359,l,r));return n};c.exports=p},7537:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(37589);function p(r,n,e,s){var l=(r+n*6)%6,i=Math.min(l,4-l,1);return Math.round(255*(s-s*e*Math.max(0,i)))}var a=function(r,n,e,s){n===void 0&&(n=1),e===void 0&&(e=1);var l=p(5,r,n,e),i=p(3,r,n,e),o=p(1,r,n,e);return s?s.setTo?s.setTo(l,i,o,s.alpha,!0):(s.r=l,s.g=i,s.b=o,s.color=d(l,i,o),s):{r:l,g:i,b:o,color:d(l,i,o)}};c.exports=a},70238:(c,T,t)=>{/** + */var d=t(37589);function p(r,n,e,s){var o=(r+n*6)%6,i=Math.min(o,4-o,1);return Math.round(255*(s-s*e*Math.max(0,i)))}var l=function(r,n,e,s){n===void 0&&(n=1),e===void 0&&(e=1);var o=p(5,r,n,e),i=p(3,r,n,e),a=p(1,r,n,e);return s?s.setTo?s.setTo(o,i,a,s.alpha,!0):(s.r=o,s.g=i,s.b=a,s.color=d(o,i,a),s):{r:o,g:i,b:a,color:d(o,i,a)}};c.exports=l},70238:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(40987),p=function(a){var r=new d;a=a.replace(/^(?:#|0x)?([a-f\d])([a-f\d])([a-f\d])$/i,function(i,o,u,h){return o+o+u+u+h+h});var n=/^(?:#|0x)?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);if(n){var e=parseInt(n[1],16),s=parseInt(n[2],16),l=parseInt(n[3],16);r.setTo(e,s,l)}return r};c.exports=p},89528:c=>{/** + */var d=t(40987),p=function(l){var r=new d;l=l.replace(/^(?:#|0x)?([a-f\d])([a-f\d])([a-f\d])$/i,function(i,a,u,h){return a+a+u+u+h+h});var n=/^(?:#|0x)?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(l);if(n){var e=parseInt(n[1],16),s=parseInt(n[2],16),o=parseInt(n[3],16);r.setTo(e,s,o)}return r};c.exports=p},89528:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -939,7 +939,7 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(40987),p=t(90664),a=function(r){var n=p(r);return new d(n.r,n.g,n.b,n.a)};c.exports=a},90664:c=>{/** + */var d=t(40987),p=t(90664),l=function(r){var n=p(r);return new d(n.r,n.g,n.b,n.a)};c.exports=l},90664:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -947,31 +947,31 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(28915),p=function(n,e,s,l,i,o,u,h){u===void 0&&(u=100),h===void 0&&(h=0);var f=h/u;return{r:d(n,l,f),g:d(e,i,f),b:d(s,o,f)}},a=function(n,e,s,l){return s===void 0&&(s=100),l===void 0&&(l=0),p(n.r,n.g,n.b,e.r,e.g,e.b,s,l)},r=function(n,e,s,l,i,o){return i===void 0&&(i=100),o===void 0&&(o=0),p(n.r,n.g,n.b,e,s,l,i,o)};c.exports={RGBWithRGB:p,ColorWithRGB:r,ColorWithColor:a}},68957:(c,T,t)=>{/** + */var d=t(28915),p=function(n,e,s,o,i,a,u,h){u===void 0&&(u=100),h===void 0&&(h=0);var f=h/u;return{r:d(n,o,f),g:d(e,i,f),b:d(s,a,f)}},l=function(n,e,s,o){return s===void 0&&(s=100),o===void 0&&(o=0),p(n.r,n.g,n.b,e.r,e.g,e.b,s,o)},r=function(n,e,s,o,i,a){return i===void 0&&(i=100),a===void 0&&(a=0),p(n.r,n.g,n.b,e,s,o,i,a)};c.exports={RGBWithRGB:p,ColorWithRGB:r,ColorWithColor:l}},68957:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(40987),p=function(a){return new d(a.r,a.g,a.b,a.a)};c.exports=p},87388:(c,T,t)=>{/** + */var d=t(40987),p=function(l){return new d(l.r,l.g,l.b,l.a)};c.exports=p},87388:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(40987),p=function(a){var r=new d,n=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+(?:\.\d+)?))?\s*\)$/.exec(a.toLowerCase());if(n){var e=parseInt(n[1],10),s=parseInt(n[2],10),l=parseInt(n[3],10),i=n[4]!==void 0?parseFloat(n[4]):1;r.setTo(e,s,l,i*255)}return r};c.exports=p},87837:c=>{/** + */var d=t(40987),p=function(l){var r=new d,n=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+(?:\.\d+)?))?\s*\)$/.exec(l.toLowerCase());if(n){var e=parseInt(n[1],10),s=parseInt(n[2],10),o=parseInt(n[3],10),i=n[4]!==void 0?parseFloat(n[4]):1;r.setTo(e,s,o,i*255)}return r};c.exports=p},87837:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){a===void 0&&(a={h:0,s:0,v:0}),t/=255,d/=255,p/=255;var r=Math.min(t,d,p),n=Math.max(t,d,p),e=n-r,s=0,l=n===0?0:e/n,i=n;return n!==r&&(n===t?s=(d-p)/e+(d{/** + */var T=function(t,d,p,l){l===void 0&&(l={h:0,s:0,v:0}),t/=255,d/=255,p/=255;var r=Math.min(t,d,p),n=Math.max(t,d,p),e=n-r,s=0,o=n===0?0:e/n,i=n;return n!==r&&(n===t?s=(d-p)/e+(d{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(62957),p=function(a,r,n,e,s){return e===void 0&&(e=255),s===void 0&&(s="#"),s==="#"?"#"+((1<<24)+(a<<16)+(r<<8)+n).toString(16).slice(1,7):"0x"+d(e)+d(a)+d(r)+d(n)};c.exports=p},85386:(c,T,t)=>{/** + */var d=t(62957),p=function(l,r,n,e,s){return e===void 0&&(e=255),s===void 0&&(s="#"),s==="#"?"#"+((1<<24)+(l<<16)+(r<<8)+n).toString(16).slice(1,7):"0x"+d(e)+d(l)+d(r)+d(n)};c.exports=p},85386:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(30976),p=t(40987),a=function(r,n){return r===void 0&&(r=0),n===void 0&&(n=255),new p(d(r,n),d(r,n),d(r,n))};c.exports=a},80333:(c,T,t)=>{/** + */var d=t(30976),p=t(40987),l=function(r,n){return r===void 0&&(r=0),n===void 0&&(n=255),new p(d(r,n),d(r,n),d(r,n))};c.exports=l},80333:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(70238),p=t(30100),a=t(68957),r=t(87388),n=function(e){var s=typeof e;switch(s){case"string":return e.substr(0,3).toLowerCase()==="rgb"?r(e):d(e);case"number":return p(e);case"object":return a(e)}};c.exports=n},3956:(c,T,t)=>{/** + */var d=t(70238),p=t(30100),l=t(68957),r=t(87388),n=function(e){var s=typeof e;switch(s){case"string":return e.substr(0,3).toLowerCase()==="rgb"?r(e):d(e);case"number":return p(e);case"object":return l(e)}};c.exports=n},3956:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -983,11 +983,11 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(39429),a=new d({initialize:function(n,e,s,l,i,o){e||(e=n.sys.make.image({x:s,y:l,key:i,frame:o,add:!1})),this.bitmapMask=e,this.invertAlpha=!1,this.isStencil=!1},setBitmap:function(r){this.bitmapMask=r},preRenderWebGL:function(r,n,e){r.pipelines.BITMAPMASK_PIPELINE.beginMask(this,n,e)},postRenderWebGL:function(r,n,e){r.pipelines.BITMAPMASK_PIPELINE.endMask(this,n,e)},preRenderCanvas:function(){},postRenderCanvas:function(){},destroy:function(){this.bitmapMask=null}});p.register("bitmapMask",function(r,n,e,s,l){return new a(this.scene,r,n,e,s,l)}),c.exports=a},80661:(c,T,t)=>{/** + */var d=t(83419),p=t(39429),l=new d({initialize:function(n,e,s,o,i,a){e||(e=n.sys.make.image({x:s,y:o,key:i,frame:a,add:!1})),this.bitmapMask=e,this.invertAlpha=!1,this.isStencil=!1},setBitmap:function(r){this.bitmapMask=r},preRenderWebGL:function(r,n,e){r.pipelines.BITMAPMASK_PIPELINE.beginMask(this,n,e)},postRenderWebGL:function(r,n,e){r.pipelines.BITMAPMASK_PIPELINE.endMask(this,n,e)},preRenderCanvas:function(){},postRenderCanvas:function(){},destroy:function(){this.bitmapMask=null}});p.register("bitmapMask",function(r,n,e,s,o){return new l(this.scene,r,n,e,s,o)}),c.exports=l},80661:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=new d({initialize:function(r,n){this.geometryMask=n,this.invertAlpha=!1,this.isStencil=!0,this.level=0},setShape:function(a){return this.geometryMask=a,this},setInvertAlpha:function(a){return a===void 0&&(a=!0),this.invertAlpha=a,this},preRenderWebGL:function(a,r,n){var e=a.gl;a.flush(),a.maskStack.length===0&&(e.enable(e.STENCIL_TEST),e.clear(e.STENCIL_BUFFER_BIT),a.maskCount=0),a.currentCameraMask.mask!==this&&(a.currentMask.mask=this),a.maskStack.push({mask:this,camera:n}),this.applyStencil(a,n,!0),a.maskCount++},applyStencil:function(a,r,n){var e=a.gl,s=this.geometryMask,l=a.maskCount,i=255;e.colorMask(!1,!1,!1,!1),n?(e.stencilFunc(e.EQUAL,l,i),e.stencilOp(e.KEEP,e.KEEP,e.INCR),l++):(e.stencilFunc(e.EQUAL,l+1,i),e.stencilOp(e.KEEP,e.KEEP,e.DECR)),this.level=l,s.renderWebGL(a,s,r),a.flush(),e.colorMask(!0,!0,!0,!0),e.stencilOp(e.KEEP,e.KEEP,e.KEEP),this.invertAlpha?e.stencilFunc(e.NOTEQUAL,l,i):e.stencilFunc(e.EQUAL,l,i)},postRenderWebGL:function(a){var r=a.gl;a.maskStack.pop(),a.maskCount--,a.flush();var n=a.currentMask;if(a.maskStack.length===0)n.mask=null,r.disable(r.STENCIL_TEST);else{var e=a.maskStack[a.maskStack.length-1];e.mask.applyStencil(a,e.camera,!1),a.currentCameraMask.mask!==e.mask?(n.mask=e.mask,n.camera=e.camera):n.mask=null}},preRenderCanvas:function(a,r,n){var e=this.geometryMask;a.currentContext.save(),e.renderCanvas(a,e,n,null,null,!0),a.currentContext.clip()},postRenderCanvas:function(a){a.currentContext.restore()},destroy:function(){this.geometryMask=null}});c.exports=p},69781:(c,T,t)=>{/** + */var d=t(83419),p=new d({initialize:function(r,n){this.geometryMask=n,this.invertAlpha=!1,this.isStencil=!0,this.level=0},setShape:function(l){return this.geometryMask=l,this},setInvertAlpha:function(l){return l===void 0&&(l=!0),this.invertAlpha=l,this},preRenderWebGL:function(l,r,n){var e=l.gl;l.flush(),l.maskStack.length===0&&(e.enable(e.STENCIL_TEST),e.clear(e.STENCIL_BUFFER_BIT),l.maskCount=0),l.currentCameraMask.mask!==this&&(l.currentMask.mask=this),l.maskStack.push({mask:this,camera:n}),this.applyStencil(l,n,!0),l.maskCount++},applyStencil:function(l,r,n){var e=l.gl,s=this.geometryMask,o=l.maskCount,i=255;e.colorMask(!1,!1,!1,!1),n?(e.stencilFunc(e.EQUAL,o,i),e.stencilOp(e.KEEP,e.KEEP,e.INCR),o++):(e.stencilFunc(e.EQUAL,o+1,i),e.stencilOp(e.KEEP,e.KEEP,e.DECR)),this.level=o,s.renderWebGL(l,s,r),l.flush(),e.colorMask(!0,!0,!0,!0),e.stencilOp(e.KEEP,e.KEEP,e.KEEP),this.invertAlpha?e.stencilFunc(e.NOTEQUAL,o,i):e.stencilFunc(e.EQUAL,o,i)},postRenderWebGL:function(l){var r=l.gl;l.maskStack.pop(),l.maskCount--,l.flush();var n=l.currentMask;if(l.maskStack.length===0)n.mask=null,r.disable(r.STENCIL_TEST);else{var e=l.maskStack[l.maskStack.length-1];e.mask.applyStencil(l,e.camera,!1),l.currentCameraMask.mask!==e.mask?(n.mask=e.mask,n.camera=e.camera):n.mask=null}},preRenderCanvas:function(l,r,n){var e=this.geometryMask;l.currentContext.save(),e.renderCanvas(l,e,n,null,null,!0),l.currentContext.clip()},postRenderCanvas:function(l){l.currentContext.restore()},destroy:function(){this.geometryMask=null}});c.exports=p},69781:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -1005,19 +1005,19 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(40366),p=function(a){var r=a.config;if(!(!r.parent||!r.domCreateContainer)){var n=document.createElement("div");n.style.cssText=["display: block;","width: "+a.scale.width+"px;","height: "+a.scale.height+"px;","padding: 0; margin: 0;","position: absolute;","overflow: hidden;","pointer-events: "+r.domPointerEvents+";","transform: scale(1);","transform-origin: left top;"].join(" "),a.domContainer=n,d(n,r.parent)}};c.exports=p},57264:(c,T,t)=>{/** + */var d=t(40366),p=function(l){var r=l.config;if(!(!r.parent||!r.domCreateContainer)){var n=document.createElement("div");n.style.cssText=["display: block;","width: "+l.scale.width+"px;","height: "+l.scale.height+"px;","padding: 0; margin: 0;","position: absolute;","overflow: hidden;","pointer-events: "+r.domPointerEvents+";","transform: scale(1);","transform-origin: left top;"].join(" "),l.domContainer=n,d(n,r.parent)}};c.exports=p},57264:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(25892),p=function(a){if(document.readyState==="complete"||document.readyState==="interactive"){a();return}var r=function(){document.removeEventListener("deviceready",r,!0),document.removeEventListener("DOMContentLoaded",r,!0),window.removeEventListener("load",r,!0),a()};document.body?d.cordova?document.addEventListener("deviceready",r,!1):(document.addEventListener("DOMContentLoaded",r,!0),window.addEventListener("load",r,!0)):window.setTimeout(r,20)};c.exports=p},57811:c=>{/** + */var d=t(25892),p=function(l){if(document.readyState==="complete"||document.readyState==="interactive"){l();return}var r=function(){document.removeEventListener("deviceready",r,!0),document.removeEventListener("DOMContentLoaded",r,!0),window.removeEventListener("load",r,!0),l()};document.body?d.cordova?document.addEventListener("deviceready",r,!1):(document.addEventListener("DOMContentLoaded",r,!0),window.addEventListener("load",r,!0)):window.setTimeout(r,20)};c.exports=p},57811:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t){if(!t)return window.innerHeight;var d=Math.abs(window.orientation),p={w:0,h:0},a=document.createElement("div");return a.setAttribute("style","position: fixed; height: 100vh; width: 0; top: 0"),document.documentElement.appendChild(a),p.w=d===90?a.offsetHeight:window.innerWidth,p.h=d===90?window.innerWidth:a.offsetHeight,document.documentElement.removeChild(a),a=null,Math.abs(window.orientation)!==90?p.h:p.w};c.exports=T},45818:(c,T,t)=>{/** + */var T=function(t){if(!t)return window.innerHeight;var d=Math.abs(window.orientation),p={w:0,h:0},l=document.createElement("div");return l.setAttribute("style","position: fixed; height: 100vh; width: 0; top: 0"),document.documentElement.appendChild(l),p.w=d===90?l.offsetHeight:window.innerWidth,p.h=d===90?window.innerWidth:l.offsetHeight,document.documentElement.removeChild(l),l=null,Math.abs(window.orientation)!==90?p.h:p.w};c.exports=T},45818:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(13560),p=function(a,r){var n=window.screen,e=n?n.orientation||n.mozOrientation||n.msOrientation:!1;if(e&&typeof e.type=="string")return e.type;if(typeof e=="string")return e;if(typeof window.orientation=="number")return window.orientation===0||window.orientation===180?d.ORIENTATION.PORTRAIT:d.ORIENTATION.LANDSCAPE;if(window.matchMedia){if(window.matchMedia("(orientation: portrait)").matches)return d.ORIENTATION.PORTRAIT;if(window.matchMedia("(orientation: landscape)").matches)return d.ORIENTATION.LANDSCAPE}else return r>a?d.ORIENTATION.PORTRAIT:d.ORIENTATION.LANDSCAPE};c.exports=p},74403:c=>{/** + */var d=t(13560),p=function(l,r){var n=window.screen,e=n?n.orientation||n.mozOrientation||n.msOrientation:!1;if(e&&typeof e.type=="string")return e.type;if(typeof e=="string")return e;if(typeof window.orientation=="number")return window.orientation===0||window.orientation===180?d.ORIENTATION.PORTRAIT:d.ORIENTATION.LANDSCAPE;if(window.matchMedia){if(window.matchMedia("(orientation: portrait)").matches)return d.ORIENTATION.PORTRAIT;if(window.matchMedia("(orientation: landscape)").matches)return d.ORIENTATION.LANDSCAPE}else return r>l?d.ORIENTATION.PORTRAIT:d.ORIENTATION.LANDSCAPE};c.exports=p},74403:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -1033,7 +1033,7 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(29747),a=new d({initialize:function(){this.isRunning=!1,this.callback=p,this.isSetTimeOut=!1,this.timeOutID=null,this.delay=0;var n=this;this.step=function e(s){n.callback(s),n.isRunning&&(n.timeOutID=window.requestAnimationFrame(e))},this.stepTimeout=function e(){n.isRunning&&(n.timeOutID=window.setTimeout(e,n.delay)),n.callback(window.performance.now())}},start:function(r,n,e){this.isRunning||(this.callback=r,this.isSetTimeOut=n,this.delay=e,this.isRunning=!0,this.timeOutID=n?window.setTimeout(this.stepTimeout,0):window.requestAnimationFrame(this.step))},stop:function(){this.isRunning=!1,this.isSetTimeOut?clearTimeout(this.timeOutID):window.cancelAnimationFrame(this.timeOutID)},destroy:function(){this.stop(),this.callback=p}});c.exports=a},84902:(c,T,t)=>{/** + */var d=t(83419),p=t(29747),l=new d({initialize:function(){this.isRunning=!1,this.callback=p,this.isSetTimeOut=!1,this.timeOutID=null,this.delay=0;var n=this;this.step=function e(s){n.callback(s),n.isRunning&&(n.timeOutID=window.requestAnimationFrame(e))},this.stepTimeout=function e(){n.isRunning&&(n.timeOutID=window.setTimeout(e,n.delay)),n.callback(window.performance.now())}},start:function(r,n,e){this.isRunning||(this.callback=r,this.isSetTimeOut=n,this.delay=e,this.isRunning=!0,this.timeOutID=n?window.setTimeout(this.stepTimeout,0):window.requestAnimationFrame(this.step))},stop:function(){this.isRunning=!1,this.isSetTimeOut?clearTimeout(this.timeOutID):window.cancelAnimationFrame(this.timeOutID)},destroy:function(){this.stop(),this.callback=p}});c.exports=l},84902:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -1041,7 +1041,7 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(50792),a=t(37277),r=new d({Extends:p,initialize:function(){p.call(this)},shutdown:function(){this.removeAllListeners()},destroy:function(){this.removeAllListeners()}});a.register("EventEmitter",r,"events"),c.exports=r},93055:(c,T,t)=>{/** + */var d=t(83419),p=t(50792),l=t(37277),r=new d({Extends:p,initialize:function(){p.call(this)},shutdown:function(){this.removeAllListeners()},destroy:function(){this.removeAllListeners()}});l.register("EventEmitter",r,"events"),c.exports=r},93055:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -1049,63 +1049,63 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(72898),a=t(14811),r=new d({Extends:p,initialize:function(e,s){s===void 0&&(s=1),p.call(this,a.BARREL,e),this.amount=s}});c.exports=r},32251:(c,T,t)=>{/** + */var d=t(83419),p=t(72898),l=t(14811),r=new d({Extends:p,initialize:function(e,s){s===void 0&&(s=1),p.call(this,l.BARREL,e),this.amount=s}});c.exports=r},32251:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(72898),a=t(14811),r=new d({Extends:p,initialize:function(e,s,l,i,o,u,h){l===void 0&&(l=1),i===void 0&&(i=1),o===void 0&&(o=1),u===void 0&&(u=1),h===void 0&&(h=4),p.call(this,a.BLOOM,e),this.steps=h,this.offsetX=l,this.offsetY=i,this.blurStrength=o,this.strength=u,this.glcolor=[1,1,1],s!=null&&(this.color=s)},color:{get:function(){var n=this.glcolor;return(n[0]*255<<16)+(n[1]*255<<8)+(n[2]*255|0)},set:function(n){var e=this.glcolor;e[0]=(n>>16&255)/255,e[1]=(n>>8&255)/255,e[2]=(n&255)/255}}});c.exports=r},9047:(c,T,t)=>{/** + */var d=t(83419),p=t(72898),l=t(14811),r=new d({Extends:p,initialize:function(e,s,o,i,a,u,h){o===void 0&&(o=1),i===void 0&&(i=1),a===void 0&&(a=1),u===void 0&&(u=1),h===void 0&&(h=4),p.call(this,l.BLOOM,e),this.steps=h,this.offsetX=o,this.offsetY=i,this.blurStrength=a,this.strength=u,this.glcolor=[1,1,1],s!=null&&(this.color=s)},color:{get:function(){var n=this.glcolor;return(n[0]*255<<16)+(n[1]*255<<8)+(n[2]*255|0)},set:function(n){var e=this.glcolor;e[0]=(n>>16&255)/255,e[1]=(n>>8&255)/255,e[2]=(n&255)/255}}});c.exports=r},9047:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(72898),a=t(14811),r=new d({Extends:p,initialize:function(e,s,l,i,o,u,h){s===void 0&&(s=0),l===void 0&&(l=2),i===void 0&&(i=2),o===void 0&&(o=1),h===void 0&&(h=4),p.call(this,a.BLUR,e),this.quality=s,this.x=l,this.y=i,this.steps=h,this.strength=o,this.glcolor=[1,1,1],u!=null&&(this.color=u)},color:{get:function(){var n=this.glcolor;return(n[0]*255<<16)+(n[1]*255<<8)+(n[2]*255|0)},set:function(n){var e=this.glcolor;e[0]=(n>>16&255)/255,e[1]=(n>>8&255)/255,e[2]=(n&255)/255}}});c.exports=r},27885:(c,T,t)=>{/** + */var d=t(83419),p=t(72898),l=t(14811),r=new d({Extends:p,initialize:function(e,s,o,i,a,u,h){s===void 0&&(s=0),o===void 0&&(o=2),i===void 0&&(i=2),a===void 0&&(a=1),h===void 0&&(h=4),p.call(this,l.BLUR,e),this.quality=s,this.x=o,this.y=i,this.steps=h,this.strength=a,this.glcolor=[1,1,1],u!=null&&(this.color=u)},color:{get:function(){var n=this.glcolor;return(n[0]*255<<16)+(n[1]*255<<8)+(n[2]*255|0)},set:function(n){var e=this.glcolor;e[0]=(n>>16&255)/255,e[1]=(n>>8&255)/255,e[2]=(n&255)/255}}});c.exports=r},27885:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(72898),a=t(14811),r=new d({Extends:p,initialize:function(e,s,l,i,o,u,h,f){s===void 0&&(s=.5),l===void 0&&(l=1),i===void 0&&(i=.2),o===void 0&&(o=!1),u===void 0&&(u=1),h===void 0&&(h=1),f===void 0&&(f=1),p.call(this,a.BOKEH,e),this.radius=s,this.amount=l,this.contrast=i,this.isTiltShift=o,this.strength=f,this.blurX=u,this.blurY=h}});c.exports=r},12578:(c,T,t)=>{/** + */var d=t(83419),p=t(72898),l=t(14811),r=new d({Extends:p,initialize:function(e,s,o,i,a,u,h,f){s===void 0&&(s=.5),o===void 0&&(o=1),i===void 0&&(i=.2),a===void 0&&(a=!1),u===void 0&&(u=1),h===void 0&&(h=1),f===void 0&&(f=1),p.call(this,l.BOKEH,e),this.radius=s,this.amount=o,this.contrast=i,this.isTiltShift=a,this.strength=f,this.blurX=u,this.blurY=h}});c.exports=r},12578:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(72898),a=t(14811),r=new d({Extends:p,initialize:function(e,s,l,i,o,u){s===void 0&&(s=8),o===void 0&&(o=1),u===void 0&&(u=.005),p.call(this,a.CIRCLE,e),this.scale=o,this.feather=u,this.thickness=s,this.glcolor=[1,.2,.7],this.glcolor2=[1,0,0,.4],l!=null&&(this.color=l),i!=null&&(this.backgroundColor=i)},color:{get:function(){var n=this.glcolor;return(n[0]*255<<16)+(n[1]*255<<8)+(n[2]*255|0)},set:function(n){var e=this.glcolor;e[0]=(n>>16&255)/255,e[1]=(n>>8&255)/255,e[2]=(n&255)/255}},backgroundColor:{get:function(){var n=this.glcolor2;return(n[0]*255<<16)+(n[1]*255<<8)+(n[2]*255|0)},set:function(n){var e=this.glcolor2;e[0]=(n>>16&255)/255,e[1]=(n>>8&255)/255,e[2]=(n&255)/255}},backgroundAlpha:{get:function(){return this.glcolor2[3]},set:function(n){this.glcolor2[3]=n}}});c.exports=r},15802:(c,T,t)=>{/** + */var d=t(83419),p=t(72898),l=t(14811),r=new d({Extends:p,initialize:function(e,s,o,i,a,u){s===void 0&&(s=8),a===void 0&&(a=1),u===void 0&&(u=.005),p.call(this,l.CIRCLE,e),this.scale=a,this.feather=u,this.thickness=s,this.glcolor=[1,.2,.7],this.glcolor2=[1,0,0,.4],o!=null&&(this.color=o),i!=null&&(this.backgroundColor=i)},color:{get:function(){var n=this.glcolor;return(n[0]*255<<16)+(n[1]*255<<8)+(n[2]*255|0)},set:function(n){var e=this.glcolor;e[0]=(n>>16&255)/255,e[1]=(n>>8&255)/255,e[2]=(n&255)/255}},backgroundColor:{get:function(){var n=this.glcolor2;return(n[0]*255<<16)+(n[1]*255<<8)+(n[2]*255|0)},set:function(n){var e=this.glcolor2;e[0]=(n>>16&255)/255,e[1]=(n>>8&255)/255,e[2]=(n&255)/255}},backgroundAlpha:{get:function(){return this.glcolor2[3]},set:function(n){this.glcolor2[3]=n}}});c.exports=r},15802:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(89422),a=t(14811),r=new d({Extends:p,initialize:function(e){p.call(this),this.type=a.COLOR_MATRIX,this.gameObject=e,this.active=!0},destroy:function(){this.gameObject=null,this._matrix=null,this._data=null}});c.exports=r},72898:(c,T,t)=>{/** + */var d=t(83419),p=t(89422),l=t(14811),r=new d({Extends:p,initialize:function(e){p.call(this),this.type=l.COLOR_MATRIX,this.gameObject=e,this.active=!0},destroy:function(){this.gameObject=null,this._matrix=null,this._data=null}});c.exports=r},72898:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=new d({initialize:function(r,n){this.type=r,this.gameObject=n,this.active=!0},setActive:function(a){return this.active=a,this},destroy:function(){this.gameObject=null,this.active=!1}});c.exports=p},44553:(c,T,t)=>{/** + */var d=t(83419),p=new d({initialize:function(r,n){this.type=r,this.gameObject=n,this.active=!0},setActive:function(l){return this.active=l,this},destroy:function(){this.gameObject=null,this.active=!1}});c.exports=p},44553:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(72898),a=t(14811),r=new d({Extends:p,initialize:function(e,s,l,i){s===void 0&&(s="__WHITE"),l===void 0&&(l=.005),i===void 0&&(i=.005),p.call(this,a.DISPLACEMENT,e),this.x=l,this.y=i,this.glTexture,this.setTexture(s)},setTexture:function(n){var e=this.gameObject.scene.sys.textures.getFrame(n);return e&&(this.glTexture=e.glTexture),this}});c.exports=r},68531:(c,T,t)=>{/** + */var d=t(83419),p=t(72898),l=t(14811),r=new d({Extends:p,initialize:function(e,s,o,i){s===void 0&&(s="__WHITE"),o===void 0&&(o=.005),i===void 0&&(i=.005),p.call(this,l.DISPLACEMENT,e),this.x=o,this.y=i,this.glTexture,this.setTexture(s)},setTexture:function(n){var e=this.gameObject.scene.sys.textures.getFrame(n);return e&&(this.glTexture=e.glTexture),this}});c.exports=r},68531:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(72898),a=t(14811),r=new d({Extends:p,initialize:function(e,s,l,i,o){l===void 0&&(l=4),i===void 0&&(i=0),o===void 0&&(o=!1),p.call(this,a.GLOW,e),this.outerStrength=l,this.innerStrength=i,this.knockout=o,this.glcolor=[1,1,1,1],s!==void 0&&(this.color=s)},color:{get:function(){var n=this.glcolor;return(n[0]*255<<16)+(n[1]*255<<8)+(n[2]*255|0)},set:function(n){var e=this.glcolor;e[0]=(n>>16&255)/255,e[1]=(n>>8&255)/255,e[2]=(n&255)/255}}});c.exports=r},37102:(c,T,t)=>{/** + */var d=t(83419),p=t(72898),l=t(14811),r=new d({Extends:p,initialize:function(e,s,o,i,a){o===void 0&&(o=4),i===void 0&&(i=0),a===void 0&&(a=!1),p.call(this,l.GLOW,e),this.outerStrength=o,this.innerStrength=i,this.knockout=a,this.glcolor=[1,1,1,1],s!==void 0&&(this.color=s)},color:{get:function(){var n=this.glcolor;return(n[0]*255<<16)+(n[1]*255<<8)+(n[2]*255|0)},set:function(n){var e=this.glcolor;e[0]=(n>>16&255)/255,e[1]=(n>>8&255)/255,e[2]=(n&255)/255}}});c.exports=r},37102:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(72898),a=t(14811),r=new d({Extends:p,initialize:function(e,s,l,i,o,u,h,f,v){i===void 0&&(i=.2),o===void 0&&(o=0),u===void 0&&(u=0),h===void 0&&(h=0),f===void 0&&(f=1),v===void 0&&(v=0),p.call(this,a.GRADIENT,e),this.alpha=i,this.size=v,this.fromX=o,this.fromY=u,this.toX=h,this.toY=f,this.glcolor1=[255,0,0],this.glcolor2=[0,255,0],s!=null&&(this.color1=s),l!=null&&(this.color2=l)},color1:{get:function(){var n=this.glcolor1;return(n[0]<<16)+(n[1]<<8)+(n[2]|0)},set:function(n){var e=this.glcolor1;e[0]=n>>16&255,e[1]=n>>8&255,e[2]=n&255}},color2:{get:function(){var n=this.glcolor2;return(n[0]<<16)+(n[1]<<8)+(n[2]|0)},set:function(n){var e=this.glcolor2;e[0]=n>>16&255,e[1]=n>>8&255,e[2]=n&255}}});c.exports=r},86886:(c,T,t)=>{/** + */var d=t(83419),p=t(72898),l=t(14811),r=new d({Extends:p,initialize:function(e,s,o,i,a,u,h,f,v){i===void 0&&(i=.2),a===void 0&&(a=0),u===void 0&&(u=0),h===void 0&&(h=0),f===void 0&&(f=1),v===void 0&&(v=0),p.call(this,l.GRADIENT,e),this.alpha=i,this.size=v,this.fromX=a,this.fromY=u,this.toX=h,this.toY=f,this.glcolor1=[255,0,0],this.glcolor2=[0,255,0],s!=null&&(this.color1=s),o!=null&&(this.color2=o)},color1:{get:function(){var n=this.glcolor1;return(n[0]<<16)+(n[1]<<8)+(n[2]|0)},set:function(n){var e=this.glcolor1;e[0]=n>>16&255,e[1]=n>>8&255,e[2]=n&255}},color2:{get:function(){var n=this.glcolor2;return(n[0]<<16)+(n[1]<<8)+(n[2]|0)},set:function(n){var e=this.glcolor2;e[0]=n>>16&255,e[1]=n>>8&255,e[2]=n&255}}});c.exports=r},86886:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(72898),a=t(14811),r=new d({Extends:p,initialize:function(e,s){s===void 0&&(s=1),p.call(this,a.PIXELATE,e),this.amount=s}});c.exports=r},92322:(c,T,t)=>{/** + */var d=t(83419),p=t(72898),l=t(14811),r=new d({Extends:p,initialize:function(e,s){s===void 0&&(s=1),p.call(this,l.PIXELATE,e),this.amount=s}});c.exports=r},92322:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(72898),a=t(14811),r=new d({Extends:p,initialize:function(e,s,l,i,o,u,h,f){s===void 0&&(s=0),l===void 0&&(l=0),i===void 0&&(i=.1),o===void 0&&(o=1),h===void 0&&(h=6),f===void 0&&(f=1),p.call(this,a.SHADOW,e),this.x=s,this.y=l,this.decay=i,this.power=o,this.glcolor=[0,0,0,1],this.samples=h,this.intensity=f,u!==void 0&&(this.color=u)},color:{get:function(){var n=this.glcolor;return(n[0]*255<<16)+(n[1]*255<<8)+(n[2]*255|0)},set:function(n){var e=this.glcolor;e[0]=(n>>16&255)/255,e[1]=(n>>8&255)/255,e[2]=(n&255)/255}}});c.exports=r},39563:(c,T,t)=>{/** + */var d=t(83419),p=t(72898),l=t(14811),r=new d({Extends:p,initialize:function(e,s,o,i,a,u,h,f){s===void 0&&(s=0),o===void 0&&(o=0),i===void 0&&(i=.1),a===void 0&&(a=1),h===void 0&&(h=6),f===void 0&&(f=1),p.call(this,l.SHADOW,e),this.x=s,this.y=o,this.decay=i,this.power=a,this.glcolor=[0,0,0,1],this.samples=h,this.intensity=f,u!==void 0&&(this.color=u)},color:{get:function(){var n=this.glcolor;return(n[0]*255<<16)+(n[1]*255<<8)+(n[2]*255|0)},set:function(n){var e=this.glcolor;e[0]=(n>>16&255)/255,e[1]=(n>>8&255)/255,e[2]=(n&255)/255}}});c.exports=r},39563:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(72898),a=t(14811),r=new d({Extends:p,initialize:function(e,s,l,i,o){s===void 0&&(s=.5),l===void 0&&(l=.5),i===void 0&&(i=3),o===void 0&&(o=!1),p.call(this,a.SHINE,e),this.speed=s,this.lineWidth=l,this.gradient=i,this.reveal=o}});c.exports=r},56448:(c,T,t)=>{/** + */var d=t(83419),p=t(72898),l=t(14811),r=new d({Extends:p,initialize:function(e,s,o,i,a){s===void 0&&(s=.5),o===void 0&&(o=.5),i===void 0&&(i=3),a===void 0&&(a=!1),p.call(this,l.SHINE,e),this.speed=s,this.lineWidth=o,this.gradient=i,this.reveal=a}});c.exports=r},56448:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(72898),a=t(14811),r=new d({Extends:p,initialize:function(e,s,l,i,o){s===void 0&&(s=.5),l===void 0&&(l=.5),i===void 0&&(i=.5),o===void 0&&(o=.5),p.call(this,a.VIGNETTE,e),this.x=s,this.y=l,this.radius=i,this.strength=o}});c.exports=r},38433:(c,T,t)=>{/** + */var d=t(83419),p=t(72898),l=t(14811),r=new d({Extends:p,initialize:function(e,s,o,i,a){s===void 0&&(s=.5),o===void 0&&(o=.5),i===void 0&&(i=.5),a===void 0&&(a=.5),p.call(this,l.VIGNETTE,e),this.x=s,this.y=o,this.radius=i,this.strength=a}});c.exports=r},38433:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(72898),a=t(14811),r=new d({Extends:p,initialize:function(e,s,l,i,o){s===void 0&&(s=.1),l===void 0&&(l=0),i===void 0&&(i=0),o===void 0&&(o=!1),p.call(this,a.WIPE,e),this.progress=0,this.wipeWidth=s,this.direction=l,this.axis=i,this.reveal=o}});c.exports=r},14811:c=>{/** + */var d=t(83419),p=t(72898),l=t(14811),r=new d({Extends:p,initialize:function(e,s,o,i,a){s===void 0&&(s=.1),o===void 0&&(o=0),i===void 0&&(i=0),a===void 0&&(a=!1),p.call(this,l.WIPE,e),this.progress=0,this.wipeWidth=s,this.direction=o,this.axis=i,this.reveal=a}});c.exports=r},14811:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -1113,64 +1113,68 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(79291),p=t(14811),a={Barrel:t(20122),Controller:t(72898),Bloom:t(32251),Blur:t(9047),Bokeh:t(27885),Circle:t(12578),ColorMatrix:t(15802),Displacement:t(44553),Glow:t(68531),Gradient:t(37102),Pixelate:t(86886),Shadow:t(92322),Shine:t(39563),Vignette:t(56448),Wipe:t(38433)};a=d(!1,a,p),c.exports=a},25305:(c,T,t)=>{/** + */var d=t(79291),p=t(14811),l={Barrel:t(20122),Controller:t(72898),Bloom:t(32251),Blur:t(9047),Bokeh:t(27885),Circle:t(12578),ColorMatrix:t(15802),Displacement:t(44553),Glow:t(68531),Gradient:t(37102),Pixelate:t(86886),Shadow:t(92322),Shine:t(39563),Vignette:t(56448),Wipe:t(38433)};l=d(!1,l,p),c.exports=l},25305:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(10312),p=t(23568),a=function(r,n,e){n.x=p(e,"x",0),n.y=p(e,"y",0),n.depth=p(e,"depth",0),n.flipX=p(e,"flipX",!1),n.flipY=p(e,"flipY",!1);var s=p(e,"scale",null);typeof s=="number"?n.setScale(s):s!==null&&(n.scaleX=p(s,"x",1),n.scaleY=p(s,"y",1));var l=p(e,"scrollFactor",null);typeof l=="number"?n.setScrollFactor(l):l!==null&&(n.scrollFactorX=p(l,"x",1),n.scrollFactorY=p(l,"y",1)),n.rotation=p(e,"rotation",0);var i=p(e,"angle",null);i!==null&&(n.angle=i),n.alpha=p(e,"alpha",1);var o=p(e,"origin",null);if(typeof o=="number")n.setOrigin(o);else if(o!==null){var u=p(o,"x",.5),h=p(o,"y",.5);n.setOrigin(u,h)}n.blendMode=p(e,"blendMode",d.NORMAL),n.visible=p(e,"visible",!0);var f=p(e,"add",!0);return f&&r.sys.displayList.add(n),n.preUpdate&&r.sys.updateList.add(n),n};c.exports=a},13059:(c,T,t)=>{/** + */var d=t(10312),p=t(23568),l=function(r,n,e){n.x=p(e,"x",0),n.y=p(e,"y",0),n.depth=p(e,"depth",0),n.flipX=p(e,"flipX",!1),n.flipY=p(e,"flipY",!1);var s=p(e,"scale",null);typeof s=="number"?n.setScale(s):s!==null&&(n.scaleX=p(s,"x",1),n.scaleY=p(s,"y",1));var o=p(e,"scrollFactor",null);typeof o=="number"?n.setScrollFactor(o):o!==null&&(n.scrollFactorX=p(o,"x",1),n.scrollFactorY=p(o,"y",1)),n.rotation=p(e,"rotation",0);var i=p(e,"angle",null);i!==null&&(n.angle=i),n.alpha=p(e,"alpha",1);var a=p(e,"origin",null);if(typeof a=="number")n.setOrigin(a);else if(a!==null){var u=p(a,"x",.5),h=p(a,"y",.5);n.setOrigin(u,h)}n.blendMode=p(e,"blendMode",d.NORMAL),n.visible=p(e,"visible",!0);var f=p(e,"add",!0);return f&&r.sys.displayList.add(n),n.preUpdate&&r.sys.updateList.add(n),n};c.exports=l},13059:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(23568),p=function(a,r){var n=d(r,"anims",null);if(n===null)return a;if(typeof n=="string")a.anims.play(n);else if(typeof n=="object"){var e=a.anims,s=d(n,"key",void 0);if(s){var l=d(n,"startFrame",void 0),i=d(n,"delay",0),o=d(n,"repeat",0),u=d(n,"repeatDelay",0),h=d(n,"yoyo",!1),f=d(n,"play",!1),v=d(n,"delayedPlay",0),m={key:s,delay:i,repeat:o,repeatDelay:u,yoyo:h,startFrame:l};f?e.play(m):v>0?e.playAfterDelay(m,v):e.load(m)}}return a};c.exports=p},8050:(c,T,t)=>{/** + */var d=t(23568),p=function(l,r){var n=d(r,"anims",null);if(n===null)return l;if(typeof n=="string")l.anims.play(n);else if(typeof n=="object"){var e=l.anims,s=d(n,"key",void 0);if(s){var o=d(n,"startFrame",void 0),i=d(n,"delay",0),a=d(n,"repeat",0),u=d(n,"repeatDelay",0),h=d(n,"yoyo",!1),f=d(n,"play",!1),v=d(n,"delayedPlay",0),m={key:s,delay:i,repeat:a,repeatDelay:u,yoyo:h,startFrame:o};f?e.play(m):v>0?e.playAfterDelay(m,v):e.load(m)}}return l};c.exports=p},8050:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(73162),a=t(37277),r=t(51708),n=t(44594),e=t(19186),s=new d({Extends:p,initialize:function(i){p.call(this,i),this.sortChildrenFlag=!1,this.scene=i,this.systems=i.sys,this.events=i.sys.events,this.addCallback=this.addChildCallback,this.removeCallback=this.removeChildCallback,this.events.once(n.BOOT,this.boot,this),this.events.on(n.START,this.start,this)},boot:function(){this.events.once(n.DESTROY,this.destroy,this)},addChildCallback:function(l){l.displayList&&l.displayList!==this&&l.removeFromDisplayList(),l.parentContainer&&l.parentContainer.remove(l),l.displayList||(this.queueDepthSort(),l.displayList=this,l.emit(r.ADDED_TO_SCENE,l,this.scene),this.events.emit(n.ADDED_TO_SCENE,l,this.scene))},removeChildCallback:function(l){this.queueDepthSort(),l.displayList=null,l.emit(r.REMOVED_FROM_SCENE,l,this.scene),this.events.emit(n.REMOVED_FROM_SCENE,l,this.scene)},start:function(){this.events.once(n.SHUTDOWN,this.shutdown,this)},queueDepthSort:function(){this.sortChildrenFlag=!0},depthSort:function(){this.sortChildrenFlag&&(e(this.list,this.sortByDepth),this.sortChildrenFlag=!1)},sortByDepth:function(l,i){return l._depth-i._depth},getChildren:function(){return this.list},shutdown:function(){for(var l=this.list;l.length;)l[0].destroy(!0);this.events.off(n.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(n.START,this.start,this),this.scene=null,this.systems=null,this.events=null}});a.register("DisplayList",s,"displayList"),c.exports=s},95643:(c,T,t)=>{/** + */var d=t(83419),p=t(73162),l=t(37277),r=t(51708),n=t(44594),e=t(19186),s=new d({Extends:p,initialize:function(i){p.call(this,i),this.sortChildrenFlag=!1,this.scene=i,this.systems=i.sys,this.events=i.sys.events,this.addCallback=this.addChildCallback,this.removeCallback=this.removeChildCallback,this.events.once(n.BOOT,this.boot,this),this.events.on(n.START,this.start,this)},boot:function(){this.events.once(n.DESTROY,this.destroy,this)},addChildCallback:function(o){o.displayList&&o.displayList!==this&&o.removeFromDisplayList(),o.parentContainer&&o.parentContainer.remove(o),o.displayList||(this.queueDepthSort(),o.displayList=this,o.emit(r.ADDED_TO_SCENE,o,this.scene),this.events.emit(n.ADDED_TO_SCENE,o,this.scene))},removeChildCallback:function(o){this.queueDepthSort(),o.displayList=null,o.emit(r.REMOVED_FROM_SCENE,o,this.scene),this.events.emit(n.REMOVED_FROM_SCENE,o,this.scene)},start:function(){this.events.once(n.SHUTDOWN,this.shutdown,this)},queueDepthSort:function(){this.sortChildrenFlag=!0},depthSort:function(){this.sortChildrenFlag&&(e(this.list,this.sortByDepth),this.sortChildrenFlag=!1)},sortByDepth:function(o,i){return o._depth-i._depth},getChildren:function(){return this.list},shutdown:function(){for(var o=this.list;o.length;)o[0].destroy(!0);this.events.off(n.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(n.START,this.start,this),this.scene=null,this.systems=null,this.events=null}});l.register("DisplayList",s,"displayList"),c.exports=s},95643:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(53774),a=t(45893),r=t(50792),n=t(51708),e=t(44594),s=new d({Extends:r,initialize:function(i,o){r.call(this),this.scene=i,this.displayList=null,this.type=o,this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,this.on(n.ADDED_TO_SCENE,this.addedToScene,this),this.on(n.REMOVED_FROM_SCENE,this.removedFromScene,this),i.sys.queueDepthSort()},setActive:function(l){return this.active=l,this},setName:function(l){return this.name=l,this},setState:function(l){return this.state=l,this},setDataEnabled:function(){return this.data||(this.data=new a(this)),this},setData:function(l,i){return this.data||(this.data=new a(this)),this.data.set(l,i),this},incData:function(l,i){return this.data||(this.data=new a(this)),this.data.inc(l,i),this},toggleData:function(l){return this.data||(this.data=new a(this)),this.data.toggle(l),this},getData:function(l){return this.data||(this.data=new a(this)),this.data.get(l)},setInteractive:function(l,i,o){return this.scene.sys.input.enable(this,l,i,o),this},disableInteractive:function(){return this.scene.sys.input.disable(this),this},removeInteractive:function(){return this.scene.sys.input.clear(this),this.input=void 0,this},addedToScene:function(){},removedFromScene:function(){},update:function(){},toJSON:function(){return p(this)},willRender:function(l){var i=this.displayList&&this.displayList.active?this.displayList.willRender(l):!0;return!(!i||s.RENDER_MASK!==this.renderFlags||this.cameraFilter!==0&&this.cameraFilter&l.id)},getIndexList:function(){for(var l=this,i=this.parentContainer,o=[];i&&(o.unshift(i.getIndex(l)),l=i,i.parentContainer);)i=i.parentContainer;return this.displayList?o.unshift(this.displayList.getIndex(l)):o.unshift(this.scene.sys.displayList.getIndex(l)),o},addToDisplayList:function(l){return l===void 0&&(l=this.scene.sys.displayList),this.displayList&&this.displayList!==l&&this.removeFromDisplayList(),l.exists(this)||(this.displayList=l,l.add(this,!0),l.queueDepthSort(),this.emit(n.ADDED_TO_SCENE,this,this.scene),l.events.emit(e.ADDED_TO_SCENE,this,this.scene)),this},addToUpdateList:function(){return this.scene&&this.preUpdate&&this.scene.sys.updateList.add(this),this},removeFromDisplayList:function(){var l=this.displayList||this.scene.sys.displayList;return l&&l.exists(this)&&(l.remove(this,!0),l.queueDepthSort(),this.displayList=null,this.emit(n.REMOVED_FROM_SCENE,this,this.scene),l.events.emit(e.REMOVED_FROM_SCENE,this,this.scene)),this},removeFromUpdateList:function(){return this.scene&&this.preUpdate&&this.scene.sys.updateList.remove(this),this},destroy:function(l){!this.scene||this.ignoreDestroy||(l===void 0&&(l=!1),this.preDestroy&&this.preDestroy.call(this),this.emit(n.DESTROY,this,l),this.removeAllListeners(),this.postPipelines&&this.resetPostPipeline(!0),this.removeFromDisplayList(),this.removeFromUpdateList(),this.input&&(this.scene.sys.input.clear(this),this.input=void 0),this.data&&(this.data.destroy(),this.data=void 0),this.body&&(this.body.destroy(),this.body=void 0),this.preFX&&(this.preFX.destroy(),this.preFX=void 0),this.postFX&&(this.postFX.destroy(),this.postFX=void 0),this.active=!1,this.visible=!1,this.scene=void 0,this.parentContainer=void 0)}});s.RENDER_MASK=15,c.exports=s},44603:(c,T,t)=>{/** + */var d=t(83419),p=t(53774),l=t(45893),r=t(50792),n=t(51708),e=t(44594),s=new d({Extends:r,initialize:function(i,a){r.call(this),this.scene=i,this.displayList=null,this.type=a,this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,this.on(n.ADDED_TO_SCENE,this.addedToScene,this),this.on(n.REMOVED_FROM_SCENE,this.removedFromScene,this),i.sys.queueDepthSort()},setActive:function(o){return this.active=o,this},setName:function(o){return this.name=o,this},setState:function(o){return this.state=o,this},setDataEnabled:function(){return this.data||(this.data=new l(this)),this},setData:function(o,i){return this.data||(this.data=new l(this)),this.data.set(o,i),this},incData:function(o,i){return this.data||(this.data=new l(this)),this.data.inc(o,i),this},toggleData:function(o){return this.data||(this.data=new l(this)),this.data.toggle(o),this},getData:function(o){return this.data||(this.data=new l(this)),this.data.get(o)},setInteractive:function(o,i,a){return this.scene.sys.input.enable(this,o,i,a),this},disableInteractive:function(o){return o===void 0&&(o=!1),this.scene.sys.input.disable(this,o),this},removeInteractive:function(o){return o===void 0&&(o=!1),this.scene.sys.input.clear(this),o&&this.scene.sys.input.resetCursor(),this.input=void 0,this},addedToScene:function(){},removedFromScene:function(){},update:function(){},toJSON:function(){return p(this)},willRender:function(o){var i=this.displayList&&this.displayList.active?this.displayList.willRender(o):!0;return!(!i||s.RENDER_MASK!==this.renderFlags||this.cameraFilter!==0&&this.cameraFilter&o.id)},getIndexList:function(){for(var o=this,i=this.parentContainer,a=[];i&&(a.unshift(i.getIndex(o)),o=i,i.parentContainer);)i=i.parentContainer;return this.displayList?a.unshift(this.displayList.getIndex(o)):a.unshift(this.scene.sys.displayList.getIndex(o)),a},addToDisplayList:function(o){return o===void 0&&(o=this.scene.sys.displayList),this.displayList&&this.displayList!==o&&this.removeFromDisplayList(),o.exists(this)||(this.displayList=o,o.add(this,!0),o.queueDepthSort(),this.emit(n.ADDED_TO_SCENE,this,this.scene),o.events.emit(e.ADDED_TO_SCENE,this,this.scene)),this},addToUpdateList:function(){return this.scene&&this.preUpdate&&this.scene.sys.updateList.add(this),this},removeFromDisplayList:function(){var o=this.displayList||this.scene.sys.displayList;return o&&o.exists(this)&&(o.remove(this,!0),o.queueDepthSort(),this.displayList=null,this.emit(n.REMOVED_FROM_SCENE,this,this.scene),o.events.emit(e.REMOVED_FROM_SCENE,this,this.scene)),this},removeFromUpdateList:function(){return this.scene&&this.preUpdate&&this.scene.sys.updateList.remove(this),this},getDisplayList:function(){var o=null;return this.parentContainer?o=this.parentContainer.list:this.displayList&&(o=this.displayList.list),o},destroy:function(o){!this.scene||this.ignoreDestroy||(o===void 0&&(o=!1),this.preDestroy&&this.preDestroy.call(this),this.emit(n.DESTROY,this,o),this.removeAllListeners(),this.postPipelines&&this.resetPostPipeline(!0),this.removeFromDisplayList(),this.removeFromUpdateList(),this.input&&(this.scene.sys.input.clear(this),this.input=void 0),this.data&&(this.data.destroy(),this.data=void 0),this.body&&(this.body.destroy(),this.body=void 0),this.preFX&&(this.preFX.destroy(),this.preFX=void 0),this.postFX&&(this.postFX.destroy(),this.postFX=void 0),this.active=!1,this.visible=!1,this.scene=void 0,this.parentContainer=void 0)}});s.RENDER_MASK=15,c.exports=s},44603:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(37277),a=t(44594),r=new d({initialize:function(e){this.scene=e,this.systems=e.sys,this.events=e.sys.events,this.displayList,this.updateList,this.events.once(a.BOOT,this.boot,this),this.events.on(a.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.events.once(a.DESTROY,this.destroy,this)},start:function(){this.events.once(a.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.events.off(a.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(a.START,this.start,this),this.scene=null,this.systems=null,this.events=null,this.displayList=null,this.updateList=null}});r.register=function(n,e){r.prototype.hasOwnProperty(n)||(r.prototype[n]=e)},r.remove=function(n){r.prototype.hasOwnProperty(n)&&delete r.prototype[n]},p.register("GameObjectCreator",r,"make"),c.exports=r},39429:(c,T,t)=>{/** + */var d=t(83419),p=t(37277),l=t(44594),r=new d({initialize:function(e){this.scene=e,this.systems=e.sys,this.events=e.sys.events,this.displayList,this.updateList,this.events.once(l.BOOT,this.boot,this),this.events.on(l.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.events.once(l.DESTROY,this.destroy,this)},start:function(){this.events.once(l.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.events.off(l.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(l.START,this.start,this),this.scene=null,this.systems=null,this.events=null,this.displayList=null,this.updateList=null}});r.register=function(n,e){r.prototype.hasOwnProperty(n)||(r.prototype[n]=e)},r.remove=function(n){r.prototype.hasOwnProperty(n)&&delete r.prototype[n]},p.register("GameObjectCreator",r,"make"),c.exports=r},39429:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(37277),a=t(44594),r=new d({initialize:function(e){this.scene=e,this.systems=e.sys,this.events=e.sys.events,this.displayList,this.updateList,this.events.once(a.BOOT,this.boot,this),this.events.on(a.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.events.once(a.DESTROY,this.destroy,this)},start:function(){this.events.once(a.SHUTDOWN,this.shutdown,this)},existing:function(n){return(n.renderCanvas||n.renderWebGL)&&this.displayList.add(n),n.preUpdate&&this.updateList.add(n),n},shutdown:function(){this.events.off(a.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(a.START,this.start,this),this.scene=null,this.systems=null,this.events=null,this.displayList=null,this.updateList=null}});r.register=function(n,e){r.prototype.hasOwnProperty(n)||(r.prototype[n]=e)},r.remove=function(n){r.prototype.hasOwnProperty(n)&&delete r.prototype[n]},p.register("GameObjectFactory",r,"add"),c.exports=r},91296:(c,T,t)=>{/** + */var d=t(83419),p=t(37277),l=t(44594),r=new d({initialize:function(e){this.scene=e,this.systems=e.sys,this.events=e.sys.events,this.displayList,this.updateList,this.events.once(l.BOOT,this.boot,this),this.events.on(l.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.events.once(l.DESTROY,this.destroy,this)},start:function(){this.events.once(l.SHUTDOWN,this.shutdown,this)},existing:function(n){return(n.renderCanvas||n.renderWebGL)&&this.displayList.add(n),n.preUpdate&&this.updateList.add(n),n},shutdown:function(){this.events.off(l.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(l.START,this.start,this),this.scene=null,this.systems=null,this.events=null,this.displayList=null,this.updateList=null}});r.register=function(n,e){r.prototype.hasOwnProperty(n)||(r.prototype[n]=e)},r.remove=function(n){r.prototype.hasOwnProperty(n)&&delete r.prototype[n]},p.register("GameObjectFactory",r,"add"),c.exports=r},91296:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(61340),p=new d,a=new d,r=new d,n={camera:p,sprite:a,calc:r},e=function(s,l,i){var o=p,u=a,h=r;return u.applyITRS(s.x,s.y,s.rotation,s.scaleX,s.scaleY),o.copyFrom(l.matrix),i?(o.multiplyWithOffset(i,-l.scrollX*s.scrollFactorX,-l.scrollY*s.scrollFactorY),u.e=s.x,u.f=s.y):(u.e-=l.scrollX*s.scrollFactorX,u.f-=l.scrollY*s.scrollFactorY),o.multiply(u,h),n};c.exports=e},45027:(c,T,t)=>{/** + */var d=t(61340),p=new d,l=new d,r=new d,n={camera:p,sprite:l,calc:r},e=function(s,o,i){var a=p,u=l,h=r;return u.applyITRS(s.x,s.y,s.rotation,s.scaleX,s.scaleY),a.copyFrom(o.matrix),i?(a.multiplyWithOffset(i,-o.scrollX*s.scrollFactorX,-o.scrollY*s.scrollFactorY),u.e=s.x,u.f=s.y):(u.e-=o.scrollX*s.scrollFactorX,u.f-=o.scrollY*s.scrollFactorY),a.multiply(u,h),n};c.exports=e},45027:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(25774),a=t(37277),r=t(44594),n=new d({Extends:p,initialize:function(s){p.call(this),this.checkQueue=!0,this.scene=s,this.systems=s.sys,s.sys.events.once(r.BOOT,this.boot,this),s.sys.events.on(r.START,this.start,this)},boot:function(){this.systems.events.once(r.DESTROY,this.destroy,this)},start:function(){var e=this.systems.events;e.on(r.PRE_UPDATE,this.update,this),e.on(r.UPDATE,this.sceneUpdate,this),e.once(r.SHUTDOWN,this.shutdown,this)},sceneUpdate:function(e,s){for(var l=this._active,i=l.length,o=0;o{/** + */var d=t(83419),p=t(25774),l=t(37277),r=t(44594),n=new d({Extends:p,initialize:function(s){p.call(this),this.checkQueue=!0,this.scene=s,this.systems=s.sys,s.sys.events.once(r.BOOT,this.boot,this),s.sys.events.on(r.START,this.start,this)},boot:function(){this.systems.events.once(r.DESTROY,this.destroy,this)},start:function(){var e=this.systems.events;e.on(r.PRE_UPDATE,this.update,this),e.on(r.UPDATE,this.sceneUpdate,this),e.once(r.SHUTDOWN,this.shutdown,this)},sceneUpdate:function(e,s){for(var o=this._active,i=o.length,a=0;a{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a,r,n,e,s,l,i,o,u,h,f,v){var m=p.x-d.displayOriginX+r,x=p.y-d.displayOriginY+n,g=m+p.w,y=x+p.h,S=e.getXRound(m,x,s),C=e.getYRound(m,x,s),E=e.getXRound(m,y,s),A=e.getYRound(m,y,s),P=e.getXRound(g,y,s),M=e.getYRound(g,y,s),F=e.getXRound(g,x,s),L=e.getYRound(g,x,s);t.batchQuad(d,S,C,E,A,P,M,F,L,a.u0,a.v0,a.u1,a.v1,l,i,o,u,h,f,v)};c.exports=T},53048:c=>{/** + */var T=function(t,d,p,l,r,n,e,s,o,i,a,u,h,f,v){var m=p.x-d.displayOriginX+r,g=p.y-d.displayOriginY+n,x=m+p.w,y=g+p.h,S=e.a,C=e.b,E=e.c,M=e.d,P=e.e,A=e.f,R=m*S+g*E+P,F=m*C+g*M+A,D=m*S+y*E+P,w=m*C+y*M+A,G=x*S+y*E+P,N=x*C+y*M+A,b=x*S+g*E+P,B=x*C+g*M+A;s&&(R=Math.round(R),F=Math.round(F),D=Math.round(D),w=Math.round(w),G=Math.round(G),N=Math.round(N),b=Math.round(b),B=Math.round(B)),t.batchQuad(d,R,F,D,w,G,N,b,B,l.u0,l.v0,l.u1,l.v1,o,i,a,u,h,f,v)};c.exports=T},53048:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){if(p===void 0&&(p=!1),a===void 0)return a={local:{x:0,y:0,width:0,height:0},global:{x:0,y:0,width:0,height:0},lines:{shortest:0,longest:0,lengths:null,height:0},wrappedText:"",words:[],characters:[],scaleX:0,scaleY:0},a;var r=t.text,n=r.length,e=t.maxWidth,s=t.wordWrapCharCode,l=Number.MAX_VALUE,i=Number.MAX_VALUE,o=0,u=0,h=t.fontData.chars,f=t.fontData.lineHeight,v=t.letterSpacing,m=t.lineSpacing,x=0,g=0,y=0,S=null,C=t._align,E=0,A=0,P=t.fontSize/t.fontData.size,M=P*t.scaleX,F=P*t.scaleY,L=null,b=0,B=[],N=Number.MAX_VALUE,X=0,D=0,I=0,R,O=[],w=[],G=null;if(e>0){for(R=0;Re||_>e?(Y.push(W.i-1),W.cr?(Y.push(W.i+W.word.length),V=0,z=null):z=W):W.cr&&(Y.push(W.i+W.word.length),V=0,z=null)}var rt=function(pt,xt,yt){return pt.substr(0,xt)+yt+pt.substr(xt+1)};for(R=Y.length-1;R>=0;R--)r=rt(r,Y[R],` -`);a.wrappedText=r,n=r.length,O=[],G=null}var ot=0;for(R=0;RX&&(X=I),IE&&(l=E),i>A&&(i=A);var j=E+S.xAdvance,st=A+f;oX&&(X=I),I0)for(var ut=0;ut{/** + */var T=function(t,d,p,l){if(p===void 0&&(p=!1),l===void 0)return l={local:{x:0,y:0,width:0,height:0},global:{x:0,y:0,width:0,height:0},lines:{shortest:0,longest:0,lengths:null,height:0},wrappedText:"",words:[],characters:[],scaleX:0,scaleY:0},l;var r=t.text,n=r.length,e=t.maxWidth,s=t.wordWrapCharCode,o=Number.MAX_VALUE,i=Number.MAX_VALUE,a=0,u=0,h=t.fontData.chars,f=t.fontData.lineHeight,v=t.letterSpacing,m=t.lineSpacing,g=0,x=0,y=0,S=null,C=t._align,E=0,M=0,P=t.fontSize/t.fontData.size,A=P*t.scaleX,R=P*t.scaleY,F=null,D=0,w=[],G=Number.MAX_VALUE,N=0,b=0,B=0,O,L,I,U=[],X=[],z=null,V=function(Pt,wt){for(var Bt=0,Yt=0;Yt0){I=r.split(` +`);var Y=[];for(O=0;Oe||mt>e?(ot.push(Q.i-1),Q.cr?(ot.push(Q.i+Q.word.length),at=0,rt=null):rt=Q):Q.cr&&(ot.push(Q.i+Q.word.length),at=0,rt=null)}var pt=function(Pt,wt,Bt){return Pt.substr(0,wt)+Bt+Pt.substr(wt+1)};for(O=ot.length-1;O>=0;O--)ot[O]>-1&&(r=pt(r,ot[O],` +`));l.wrappedText=r,n=r.length,U=[],z=null}var xt=0;for(O=0;ON&&(N=B),BE&&(o=E),i>M&&(i=M);var yt=E+S.xAdvance,dt=M+f;aN&&(N=B),B0)for(var gt=0;gt{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(21859),p=function(a,r,n,e,s,l,i){var o=a.sys.textures.get(n),u=o.get(e),h=a.sys.cache.xml.get(s);if(u&&h){var f=d(h,u,l,i,o);return a.sys.cache.bitmapFont.add(r,{data:f,texture:n,frame:e,fromAtlas:!0}),!0}else return!1};c.exports=p},6925:(c,T,t)=>{/** + */var d=t(21859),p=function(l,r,n,e,s,o,i){var a=l.sys.textures.get(n),u=a.get(e),h=l.sys.cache.xml.get(s);if(u&&h){var f=d(h,u,o,i,a);return l.sys.cache.bitmapFont.add(r,{data:f,texture:n,frame:e,fromAtlas:!0}),!0}else return!1};c.exports=p},6925:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(35154),p=function(a,r){var n=r.width,e=r.height,s=Math.floor(n/2),l=Math.floor(e/2),i=d(r,"chars","");if(i!==""){var o=d(r,"image",""),u=a.sys.textures.getFrame(o),h=u.cutX,f=u.cutY,v=u.source.width,m=u.source.height,x=d(r,"offset.x",0),g=d(r,"offset.y",0),y=d(r,"spacing.x",0),S=d(r,"spacing.y",0),C=d(r,"lineSpacing",0),E=d(r,"charsPerRow",null);E===null&&(E=v/n,E>i.length&&(E=i.length));for(var A=x,P=g,M={retroFont:!0,font:o,size:n,lineHeight:e+C,chars:{}},F=0,L=0;L{/** + */var d=t(35154),p=function(l,r){var n=r.width,e=r.height,s=Math.floor(n/2),o=Math.floor(e/2),i=d(r,"chars","");if(i!==""){var a=d(r,"image",""),u=l.sys.textures.getFrame(a),h=u.cutX,f=u.cutY,v=u.source.width,m=u.source.height,g=d(r,"offset.x",0),x=d(r,"offset.y",0),y=d(r,"spacing.x",0),S=d(r,"spacing.y",0),C=d(r,"lineSpacing",0),E=d(r,"charsPerRow",null);E===null&&(E=v/n,E>i.length&&(E=i.length));for(var M=g,P=x,A={retroFont:!0,font:a,size:n,lineHeight:e+C,chars:{}},R=0,F=0;F{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */function T(d,p){return parseInt(d.getAttribute(p),10)}var t=function(d,p,a,r,n){a===void 0&&(a=0),r===void 0&&(r=0);var e=p.cutX,s=p.cutY,l=p.source.width,i=p.source.height,o=p.sourceIndex,u={},h=d.getElementsByTagName("info")[0],f=d.getElementsByTagName("common")[0];u.font=h.getAttribute("face"),u.size=T(h,"size"),u.lineHeight=T(f,"lineHeight")+r,u.chars={};var v=d.getElementsByTagName("char"),m=p!==void 0&&p.trimmed;if(m)var x=p.height,g=p.width;for(var y=0;y{/** + */function T(d,p){return parseInt(d.getAttribute(p),10)}var t=function(d,p,l,r,n){l===void 0&&(l=0),r===void 0&&(r=0);var e=p.cutX,s=p.cutY,o=p.source.width,i=p.source.height,a=p.sourceIndex,u={},h=d.getElementsByTagName("info")[0],f=d.getElementsByTagName("common")[0];u.font=h.getAttribute("face"),u.size=T(h,"size"),u.lineHeight=T(f,"lineHeight")+r,u.chars={};var v=d.getElementsByTagName("char"),m=p!==void 0&&p.trimmed;if(m)var g=p.height,x=p.width;for(var y=0;y{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(87662),p=t(79291),a={Parse:t(6925)};a=p(!1,a,d),c.exports=a},87662:c=>{/** + */var d=t(87662),p=t(79291),l={Parse:t(6925)};l=p(!1,l,d),c.exports=l},87662:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -1178,92 +1182,92 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(22186),p=t(83419),a=t(12310),r=new p({Extends:d,Mixins:[a],initialize:function(e,s,l,i,o,u,h){d.call(this,e,s,l,i,o,u,h),this.type="DynamicBitmapText",this.scrollX=0,this.scrollY=0,this.cropWidth=0,this.cropHeight=0,this.displayCallback,this.callbackData={parent:this,color:0,tint:{topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},index:0,charCode:0,x:0,y:0,scale:0,rotation:0,data:0}},setSize:function(n,e){return this.cropWidth=n,this.cropHeight=e,this},setDisplayCallback:function(n){return this.displayCallback=n,this},setScrollX:function(n){return this.scrollX=n,this},setScrollY:function(n){return this.scrollY=n,this}});c.exports=r},86741:(c,T,t)=>{/** + */var d=t(22186),p=t(83419),l=t(12310),r=new p({Extends:d,Mixins:[l],initialize:function(e,s,o,i,a,u,h){d.call(this,e,s,o,i,a,u,h),this.type="DynamicBitmapText",this.scrollX=0,this.scrollY=0,this.cropWidth=0,this.cropHeight=0,this.displayCallback,this.callbackData={parent:this,color:0,tint:{topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},index:0,charCode:0,x:0,y:0,scale:0,rotation:0,data:0}},setSize:function(n,e){return this.cropWidth=n,this.cropHeight=e,this},setDisplayCallback:function(n){return this.displayCallback=n,this},setScrollX:function(n){return this.scrollX=n,this},setScrollY:function(n){return this.scrollY=n,this}});c.exports=r},86741:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(20926),p=function(a,r,n,e){var s=r._text,l=s.length,i=a.currentContext;if(!(l===0||!d(a,i,r,n,e))){n.addToRenderList(r);var o=r.fromAtlas?r.frame:r.texture.frames.__BASE,u=r.displayCallback,h=r.callbackData,f=r.fontData.chars,v=r.fontData.lineHeight,m=r._letterSpacing,x=0,g=0,y=0,S=null,C=0,E=0,A=0,P=0,M=0,F=0,L=null,b=0,B=r.frame.source.image,N=o.cutX,X=o.cutY,D=0,I=0,R=r._fontSize/r.fontData.size,O=r._align,w=0,G=0;r.getTextBounds(!1);var U=r._bounds.lines;O===1?G=(U.longest-U.lengths[0])/2:O===2&&(G=U.longest-U.lengths[0]),i.translate(-r.displayOriginX,-r.displayOriginY);var z=n.roundPixels;r.cropWidth>0&&r.cropHeight>0&&(i.beginPath(),i.rect(0,0,r.cropWidth,r.cropHeight),i.clip());for(var V=0;V{/** + */var d=t(20926),p=function(l,r,n,e){var s=r._text,o=s.length,i=l.currentContext;if(!(o===0||!d(l,i,r,n,e))){n.addToRenderList(r);var a=r.fromAtlas?r.frame:r.texture.frames.__BASE,u=r.displayCallback,h=r.callbackData,f=r.fontData.chars,v=r.fontData.lineHeight,m=r._letterSpacing,g=0,x=0,y=0,S=null,C=0,E=0,M=0,P=0,A=0,R=0,F=null,D=0,w=r.frame.source.image,G=a.cutX,N=a.cutY,b=0,B=0,O=r._fontSize/r.fontData.size,L=r._align,I=0,U=0;r.getTextBounds(!1);var X=r._bounds.lines;L===1?U=(X.longest-X.lengths[0])/2:L===2&&(U=X.longest-X.lengths[0]),i.translate(-r.displayOriginX,-r.displayOriginY);var z=n.roundPixels;r.cropWidth>0&&r.cropHeight>0&&(i.beginPath(),i.rect(0,0,r.cropWidth,r.cropHeight),i.clip());for(var V=0;V{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2638),p=t(25305),a=t(44603),r=t(23568);a.register("dynamicBitmapText",function(n,e){n===void 0&&(n={});var s=r(n,"font",""),l=r(n,"text",""),i=r(n,"size",!1),o=new d(this.scene,0,0,s,l,i);return e!==void 0&&(n.add=e),p(this.scene,o,n),o})},72566:(c,T,t)=>{/** + */var d=t(2638),p=t(25305),l=t(44603),r=t(23568);l.register("dynamicBitmapText",function(n,e){n===void 0&&(n={});var s=r(n,"font",""),o=r(n,"text",""),i=r(n,"size",!1),a=new d(this.scene,0,0,s,o,i);return e!==void 0&&(n.add=e),p(this.scene,a,n),a})},72566:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2638),p=t(39429);p.register("dynamicBitmapText",function(a,r,n,e,s){return this.displayList.add(new d(this.scene,a,r,n,e,s))})},12310:(c,T,t)=>{/** + */var d=t(2638),p=t(39429);p.register("dynamicBitmapText",function(l,r,n,e,s){return this.displayList.add(new d(this.scene,l,r,n,e,s))})},12310:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(73482),a=t(86741),c.exports={renderWebGL:p,renderCanvas:a}},73482:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(73482),l=t(86741),c.exports={renderWebGL:p,renderCanvas:l}},73482:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91296),p=t(61340),a=t(70554),r=new p,n=function(e,s,l,i){var o=s.text,u=o.length;if(u!==0){l.addToRenderList(s);var h=e.pipelines.set(s.pipeline,s),f=d(s,l,i);e.pipelines.preBatch(s);var v=f.sprite,m=f.calc,x=r,g=s.cropWidth>0||s.cropHeight>0;g&&(h.flush(),e.pushScissor(m.tx,m.ty,s.cropWidth*m.scaleX,s.cropHeight*m.scaleY));var y=s.frame,S=y.glTexture,C=s.tintFill,E=a.getTintAppendFloatAlpha(s.tintTopLeft,l.alpha*s._alphaTL),A=a.getTintAppendFloatAlpha(s.tintTopRight,l.alpha*s._alphaTR),P=a.getTintAppendFloatAlpha(s.tintBottomLeft,l.alpha*s._alphaBL),M=a.getTintAppendFloatAlpha(s.tintBottomRight,l.alpha*s._alphaBR),F=h.setGameObject(s),L=0,b=0,B=0,N=0,X=s.letterSpacing,D,I=0,R=0,O,w=s.scrollX,G=s.scrollY,U=s.fontData,z=U.chars,V=U.lineHeight,Y=s.fontSize/U.size,W=0,H=s._align,K=0,Q=0,Z=s.getTextBounds(!1);s.maxWidth>0&&(o=Z.wrappedText,u=o.length);var _=s._bounds.lines;H===1?Q=(_.longest-_.lengths[0])/2:H===2&&(Q=_.longest-_.lengths[0]);for(var rt=l.roundPixels,ot=s.displayCallback,at=s.callbackData,j=0;j{/** + */var d=t(91296),p=t(61340),l=t(70554),r=new p,n=function(e,s,o,i){var a=s.text,u=a.length;if(u!==0){o.addToRenderList(s);var h=e.pipelines.set(s.pipeline,s),f=d(s,o,i);e.pipelines.preBatch(s);var v=f.sprite,m=f.calc,g=r,x=s.cropWidth>0||s.cropHeight>0;x&&(h.flush(),e.pushScissor(m.tx,m.ty,s.cropWidth*m.scaleX,s.cropHeight*m.scaleY));var y=s.frame,S=y.glTexture,C=s.tintFill,E=l.getTintAppendFloatAlpha(s.tintTopLeft,o.alpha*s._alphaTL),M=l.getTintAppendFloatAlpha(s.tintTopRight,o.alpha*s._alphaTR),P=l.getTintAppendFloatAlpha(s.tintBottomLeft,o.alpha*s._alphaBL),A=l.getTintAppendFloatAlpha(s.tintBottomRight,o.alpha*s._alphaBR),R=h.setGameObject(s),F=0,D=0,w=0,G=0,N=s.letterSpacing,b,B=0,O=0,L,I=s.scrollX,U=s.scrollY,X=s.fontData,z=X.chars,V=X.lineHeight,Y=s.fontSize/X.size,W=0,H=s._align,K=0,j=0,Z=s.getTextBounds(!1);s.maxWidth>0&&(a=Z.wrappedText,u=a.length);var _=s._bounds.lines;H===1?j=(_.longest-_.lengths[0])/2:H===2&&(j=_.longest-_.lengths[0]);for(var rt=o.roundPixels,at=s.displayCallback,ot=s.callbackData,Q=0;Q{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(45319),a=t(31401),r=t(95643),n=t(53048),e=t(61327),s=t(21859),l=t(87841),i=t(18658),o=new d({Extends:r,Mixins:[a.Alpha,a.BlendMode,a.Depth,a.GetBounds,a.Mask,a.Origin,a.Pipeline,a.PostPipeline,a.ScrollFactor,a.Texture,a.Tint,a.Transform,a.Visible,i],initialize:function(h,f,v,m,x,g,y){x===void 0&&(x=""),y===void 0&&(y=0),r.call(this,h,"BitmapText"),this.font=m;var S=this.scene.sys.cache.bitmapFont.get(m);S||console.warn("Invalid BitmapText key: "+m),this.fontData=S.data,this._text="",this._fontSize=g||this.fontData.size,this._letterSpacing=0,this._lineSpacing=0,this._align=y,this._bounds=n(),this._dirty=!0,this._maxWidth=0,this.wordWrapCharCode=32,this.charColors=[],this.dropShadowX=0,this.dropShadowY=0,this.dropShadowColor=0,this.dropShadowAlpha=.5,this.fromAtlas=S.fromAtlas,this.setTexture(S.texture,S.frame),this.setPosition(f,v),this.setOrigin(0,0),this.initPipeline(),this.initPostPipeline(),this.setText(x)},setLeftAlign:function(){return this._align=o.ALIGN_LEFT,this._dirty=!0,this},setCenterAlign:function(){return this._align=o.ALIGN_CENTER,this._dirty=!0,this},setRightAlign:function(){return this._align=o.ALIGN_RIGHT,this._dirty=!0,this},setFontSize:function(u){return this._fontSize=u,this._dirty=!0,this},setLetterSpacing:function(u){return u===void 0&&(u=0),this._letterSpacing=u,this._dirty=!0,this},setLineSpacing:function(u){return u===void 0&&(u=0),this.lineSpacing=u,this},setText:function(u){return!u&&u!==0&&(u=""),Array.isArray(u)&&(u=u.join(` -`)),u!==this.text&&(this._text=u.toString(),this._dirty=!0,this.updateDisplayOrigin()),this},setDropShadow:function(u,h,f,v){return u===void 0&&(u=0),h===void 0&&(h=0),f===void 0&&(f=0),v===void 0&&(v=.5),this.dropShadowX=u,this.dropShadowY=h,this.dropShadowColor=f,this.dropShadowAlpha=v,this},setCharacterTint:function(u,h,f,v,m,x,g){u===void 0&&(u=0),h===void 0&&(h=1),f===void 0&&(f=!1),v===void 0&&(v=-1),m===void 0&&(m=v,x=v,g=v);var y=this.text.length;h===-1&&(h=y),u<0&&(u=y+u),u=p(u,0,y-1);for(var S=p(u+h,u,y),C=this.charColors,E=u;E{/** + */var d=t(83419),p=t(45319),l=t(31401),r=t(95643),n=t(53048),e=t(61327),s=t(21859),o=t(87841),i=t(18658),a=new d({Extends:r,Mixins:[l.Alpha,l.BlendMode,l.Depth,l.GetBounds,l.Mask,l.Origin,l.Pipeline,l.PostPipeline,l.ScrollFactor,l.Texture,l.Tint,l.Transform,l.Visible,i],initialize:function(h,f,v,m,g,x,y){g===void 0&&(g=""),y===void 0&&(y=0),r.call(this,h,"BitmapText"),this.font=m;var S=this.scene.sys.cache.bitmapFont.get(m);if(!S)throw new Error("Invalid BitmapText key: "+m);this.fontData=S.data,this._text="",this._fontSize=x||this.fontData.size,this._letterSpacing=0,this._lineSpacing=0,this._align=y,this._bounds=n(),this._dirty=!0,this._maxWidth=0,this.wordWrapCharCode=32,this.charColors=[],this.dropShadowX=0,this.dropShadowY=0,this.dropShadowColor=0,this.dropShadowAlpha=.5,this.fromAtlas=S.fromAtlas,this.setTexture(S.texture,S.frame),this.setPosition(f,v),this.setOrigin(0,0),this.initPipeline(),this.initPostPipeline(),this.setText(g)},setLeftAlign:function(){return this._align=a.ALIGN_LEFT,this._dirty=!0,this},setCenterAlign:function(){return this._align=a.ALIGN_CENTER,this._dirty=!0,this},setRightAlign:function(){return this._align=a.ALIGN_RIGHT,this._dirty=!0,this},setFontSize:function(u){return this._fontSize=u,this._dirty=!0,this},setLetterSpacing:function(u){return u===void 0&&(u=0),this._letterSpacing=u,this._dirty=!0,this},setLineSpacing:function(u){return u===void 0&&(u=0),this.lineSpacing=u,this},setText:function(u){return!u&&u!==0&&(u=""),Array.isArray(u)&&(u=u.join(` +`)),u!==this.text&&(this._text=u.toString(),this._dirty=!0,this.updateDisplayOrigin()),this},setDropShadow:function(u,h,f,v){return u===void 0&&(u=0),h===void 0&&(h=0),f===void 0&&(f=0),v===void 0&&(v=.5),this.dropShadowX=u,this.dropShadowY=h,this.dropShadowColor=f,this.dropShadowAlpha=v,this},setCharacterTint:function(u,h,f,v,m,g,x){u===void 0&&(u=0),h===void 0&&(h=1),f===void 0&&(f=!1),v===void 0&&(v=-1),m===void 0&&(m=v,g=v,x=v);var y=this.text.length;h===-1&&(h=y),u<0&&(u=y+u),u=p(u,0,y-1);for(var S=p(u+h,u,y),C=this.charColors,E=u;E{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(20926),p=function(a,r,n,e){var s=r._text,l=s.length,i=a.currentContext;if(!(l===0||!d(a,i,r,n,e))){n.addToRenderList(r);var o=r.fromAtlas?r.frame:r.texture.frames.__BASE,u=r.fontData.chars,h=r.fontData.lineHeight,f=r._letterSpacing,v=r._lineSpacing,m=0,x=0,g=0,y=null,S=0,C=0,E=0,A=0,P=0,M=0,F=null,L=0,b=o.source.image,B=o.cutX,N=o.cutY,X=r._fontSize/r.fontData.size,D=r._align,I=0,R=0,O=r.getTextBounds(!1);r.maxWidth>0&&(s=O.wrappedText,l=s.length);var w=r._bounds.lines;D===1?R=(w.longest-w.lengths[0])/2:D===2&&(R=w.longest-w.lengths[0]),i.translate(-r.displayOriginX,-r.displayOriginY);for(var G=n.roundPixels,U=0;U{/** + */var d=t(20926),p=function(l,r,n,e){var s=r._text,o=s.length,i=l.currentContext;if(!(o===0||!d(l,i,r,n,e))){n.addToRenderList(r);var a=r.fromAtlas?r.frame:r.texture.frames.__BASE,u=r.fontData.chars,h=r.fontData.lineHeight,f=r._letterSpacing,v=r._lineSpacing,m=0,g=0,x=0,y=null,S=0,C=0,E=0,M=0,P=0,A=0,R=null,F=0,D=a.source.image,w=a.cutX,G=a.cutY,N=r._fontSize/r.fontData.size,b=r._align,B=0,O=0,L=r.getTextBounds(!1);r.maxWidth>0&&(s=L.wrappedText,o=s.length);var I=r._bounds.lines;b===1?O=(I.longest-I.lengths[0])/2:b===2&&(O=I.longest-I.lengths[0]),i.translate(-r.displayOriginX,-r.displayOriginY);for(var U=n.roundPixels,X=0;X{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(22186),p=t(25305),a=t(44603),r=t(23568),n=t(35154);a.register("bitmapText",function(e,s){e===void 0&&(e={});var l=n(e,"font",""),i=r(e,"text",""),o=r(e,"size",!1),u=n(e,"align",0),h=new d(this.scene,0,0,l,i,o,u);return s!==void 0&&(e.add=s),p(this.scene,h,e),h})},34914:(c,T,t)=>{/** + */var d=t(22186),p=t(25305),l=t(44603),r=t(23568),n=t(35154);l.register("bitmapText",function(e,s){e===void 0&&(e={});var o=n(e,"font",""),i=r(e,"text",""),a=r(e,"size",!1),u=n(e,"align",0),h=new d(this.scene,0,0,o,i,a,u);return s!==void 0&&(e.add=s),p(this.scene,h,e),h})},34914:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(22186),p=t(39429);p.register("bitmapText",function(a,r,n,e,s,l){return this.displayList.add(new d(this.scene,a,r,n,e,s,l))})},18658:(c,T,t)=>{/** + */var d=t(22186),p=t(39429);p.register("bitmapText",function(l,r,n,e,s,o){return this.displayList.add(new d(this.scene,l,r,n,e,s,o))})},18658:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(33590),a=t(37289),c.exports={renderWebGL:p,renderCanvas:a}},33590:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(33590),l=t(37289),c.exports={renderWebGL:p,renderCanvas:l}},33590:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(3217),p=t(91296),a=t(70554),r=function(n,e,s,l){var i=e._text,o=i.length;if(o!==0){s.addToRenderList(e);var u=n.pipelines.set(e.pipeline,e),h=p(e,s,l).calc;n.pipelines.preBatch(e);var f=s.roundPixels,v=s.alpha,m=e.charColors,x=e.tintFill,g=a.getTintAppendFloatAlpha,y=g(e.tintTopLeft,v*e._alphaTL),S=g(e.tintTopRight,v*e._alphaTR),C=g(e.tintBottomLeft,v*e._alphaBL),E=g(e.tintBottomRight,v*e._alphaBR),A=e.frame.glTexture,P=u.setGameObject(e),M=e.getTextBounds(!1),F,L,b,B=M.characters,N=e.dropShadowX,X=e.dropShadowY,D=N!==0||X!==0;if(D){var I=e.dropShadowColor,R=e.dropShadowAlpha,O=g(I,v*R*e._alphaTL),w=g(I,v*R*e._alphaTR),G=g(I,v*R*e._alphaBL),U=g(I,v*R*e._alphaBR);for(F=0;F{/** + */var d=t(3217),p=t(91296),l=t(70554),r=function(n,e,s,o){var i=e._text,a=i.length;if(a!==0){s.addToRenderList(e);var u=n.pipelines.set(e.pipeline,e),h=p(e,s,o).calc;n.pipelines.preBatch(e);var f=s.roundPixels,v=s.alpha,m=e.charColors,g=e.tintFill,x=l.getTintAppendFloatAlpha,y=x(e.tintTopLeft,v*e._alphaTL),S=x(e.tintTopRight,v*e._alphaTR),C=x(e.tintBottomLeft,v*e._alphaBL),E=x(e.tintBottomRight,v*e._alphaBR),M=e.frame.glTexture,P=u.setGameObject(e),A=e.getTextBounds(!1),R,F,D,w=A.characters,G=e.dropShadowX,N=e.dropShadowY,b=G!==0||N!==0;if(b){var B=e.dropShadowColor,O=e.dropShadowAlpha,L=x(B,v*O*e._alphaTL),I=x(B,v*O*e._alphaTR),U=x(B,v*O*e._alphaBL),X=x(B,v*O*e._alphaBR);for(R=0;R{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(48011),p=t(46590),a=t(83419),r=t(31401),n=t(4327),e=t(95643),s=t(73162),l=new a({Extends:e,Mixins:[r.Alpha,r.BlendMode,r.Depth,r.Mask,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Size,r.Texture,r.Transform,r.Visible,d],initialize:function(o,u,h,f,v){e.call(this,o,"Blitter"),this.setTexture(f,v),this.setPosition(u,h),this.initPipeline(),this.initPostPipeline(),this.children=new s,this.renderList=[],this.dirty=!1},create:function(i,o,u,h,f){h===void 0&&(h=!0),f===void 0&&(f=this.children.length),u===void 0?u=this.frame:u instanceof n||(u=this.texture.get(u));var v=new p(this,i,o,u,h);return this.children.addAt(v,f,!1),this.dirty=!0,v},createFromCallback:function(i,o,u,h){for(var f=this.createMultiple(o,u,h),v=0;v0},getRenderList:function(){return this.dirty&&(this.renderList=this.children.list.filter(this.childCanRender,this),this.dirty=!1),this.renderList},clear:function(){this.children.removeAll(),this.dirty=!0},preDestroy:function(){this.children.destroy(),this.renderList=[]}});c.exports=l},72396:c=>{/** + */var d=t(48011),p=t(46590),l=t(83419),r=t(31401),n=t(4327),e=t(95643),s=t(73162),o=new l({Extends:e,Mixins:[r.Alpha,r.BlendMode,r.Depth,r.Mask,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Size,r.Texture,r.Transform,r.Visible,d],initialize:function(a,u,h,f,v){e.call(this,a,"Blitter"),this.setTexture(f,v),this.setPosition(u,h),this.initPipeline(),this.initPostPipeline(),this.children=new s,this.renderList=[],this.dirty=!1},create:function(i,a,u,h,f){h===void 0&&(h=!0),f===void 0&&(f=this.children.length),u===void 0?u=this.frame:u instanceof n||(u=this.texture.get(u));var v=new p(this,i,a,u,h);return this.children.addAt(v,f,!1),this.dirty=!0,v},createFromCallback:function(i,a,u,h){for(var f=this.createMultiple(a,u,h),v=0;v0},getRenderList:function(){return this.dirty&&(this.renderList=this.children.list.filter(this.childCanRender,this),this.dirty=!1),this.renderList},clear:function(){this.children.removeAll(),this.dirty=!0},preDestroy:function(){this.children.destroy(),this.renderList=[]}});c.exports=o},72396:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){var r=d.getRenderList();if(r.length!==0){var n=t.currentContext,e=p.alpha*d.alpha;if(e!==0){p.addToRenderList(d),n.globalCompositeOperation=t.blendModes[d.blendMode],n.imageSmoothingEnabled=!d.frame.source.scaleMode;var s=d.x-p.scrollX*d.scrollFactorX,l=d.y-p.scrollY*d.scrollFactorY;n.save(),a&&a.copyToContext(n);for(var i=p.roundPixels,o=0;o0&&v.height>0&&(n.save(),n.translate(u.x+s,u.y+l),n.scale(g,y),n.drawImage(f.source.image,v.x,v.y,v.width,v.height,m,x,v.width,v.height),n.restore())):(i&&(m=Math.round(m),x=Math.round(x)),v.width>0&&v.height>0&&n.drawImage(f.source.image,v.x,v.y,v.width,v.height,m+u.x+s,x+u.y+l,v.width,v.height)))}n.restore()}}};c.exports=T},9403:(c,T,t)=>{/** + */var T=function(t,d,p,l){var r=d.getRenderList();if(r.length!==0){var n=t.currentContext,e=p.alpha*d.alpha;if(e!==0){p.addToRenderList(d),n.globalCompositeOperation=t.blendModes[d.blendMode],n.imageSmoothingEnabled=!d.frame.source.scaleMode;var s=d.x-p.scrollX*d.scrollFactorX,o=d.y-p.scrollY*d.scrollFactorY;n.save(),l&&l.copyToContext(n);for(var i=p.roundPixels,a=0;a0&&v.height>0&&(n.save(),n.translate(u.x+s,u.y+o),n.scale(x,y),n.drawImage(f.source.image,v.x,v.y,v.width,v.height,m,g,v.width,v.height),n.restore())):(i&&(m=Math.round(m),g=Math.round(g)),v.width>0&&v.height>0&&n.drawImage(f.source.image,v.x,v.y,v.width,v.height,m+u.x+s,g+u.y+o,v.width,v.height)))}n.restore()}}};c.exports=T},9403:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(6107),p=t(25305),a=t(44603),r=t(23568);a.register("blitter",function(n,e){n===void 0&&(n={});var s=r(n,"key",null),l=r(n,"frame",null),i=new d(this.scene,0,0,s,l);return e!==void 0&&(n.add=e),p(this.scene,i,n),i})},12709:(c,T,t)=>{/** + */var d=t(6107),p=t(25305),l=t(44603),r=t(23568);l.register("blitter",function(n,e){n===void 0&&(n={});var s=r(n,"key",null),o=r(n,"frame",null),i=new d(this.scene,0,0,s,o);return e!==void 0&&(n.add=e),p(this.scene,i,n),i})},12709:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(6107),p=t(39429);p.register("blitter",function(a,r,n,e){return this.displayList.add(new d(this.scene,a,r,n,e))})},48011:(c,T,t)=>{/** + */var d=t(6107),p=t(39429);p.register("blitter",function(l,r,n,e){return this.displayList.add(new d(this.scene,l,r,n,e))})},48011:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(99485),a=t(72396),c.exports={renderWebGL:p,renderCanvas:a}},99485:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(99485),l=t(72396),c.exports={renderWebGL:p,renderCanvas:l}},99485:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(61340),p=t(70554),a=new d,r=function(n,e,s,l){var i=e.getRenderList(),o=s.alpha*e.alpha;if(!(i.length===0||o===0)){s.addToRenderList(e);var u=n.pipelines.set(this.pipeline,e),h=s.scrollX*e.scrollFactorX,f=s.scrollY*e.scrollFactorY,v=a.copyFrom(s.matrix);l&&(v.multiplyWithOffset(l,-h,-f),h=0,f=0);var m=e.x-h,x=e.y-f,g=-1,y=!1;n.pipelines.preBatch(e);for(var S=0;S{/** + */var d=t(61340),p=t(70554),l=new d,r=function(n,e,s,o){var i=e.getRenderList(),a=s.alpha*e.alpha;if(!(i.length===0||a===0)){s.addToRenderList(e);var u=n.pipelines.set(this.pipeline,e),h=s.scrollX*e.scrollFactorX,f=s.scrollY*e.scrollFactorY,v=l.copyFrom(s.matrix);o&&(v.multiplyWithOffset(o,-h,-f),h=0,f=0);var m=e.x-h,g=e.y-f,x=-1,y=!1,S=s.roundPixels;n.pipelines.preBatch(e);for(var C=0;C{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(4327),a=new d({initialize:function(n,e,s,l,i){this.parent=n,this.x=e,this.y=s,this.frame=l,this.data={},this.tint=16777215,this._visible=i,this._alpha=1,this.flipX=!1,this.flipY=!1,this.hasTransformComponent=!0},setFrame:function(r){return r===void 0?this.frame=this.parent.frame:r instanceof p&&r.texture===this.parent.texture?this.frame=r:this.frame=this.parent.texture.get(r),this},resetFlip:function(){return this.flipX=!1,this.flipY=!1,this},reset:function(r,n,e){return this.x=r,this.y=n,this.flipX=!1,this.flipY=!1,this._alpha=1,this._visible=!0,this.parent.dirty=!0,e&&this.setFrame(e),this},setPosition:function(r,n){return this.x=r,this.y=n,this},setFlipX:function(r){return this.flipX=r,this},setFlipY:function(r){return this.flipY=r,this},setFlip:function(r,n){return this.flipX=r,this.flipY=n,this},setVisible:function(r){return this.visible=r,this},setAlpha:function(r){return this.alpha=r,this},setTint:function(r){return this.tint=r,this},destroy:function(){this.parent.dirty=!0,this.parent.children.remove(this),this.parent=void 0,this.frame=void 0,this.data=void 0},visible:{get:function(){return this._visible},set:function(r){this.parent.dirty|=this._visible!==r,this._visible=r}},alpha:{get:function(){return this._alpha},set:function(r){this.parent.dirty|=this._alpha>0!=r>0,this._alpha=r}}});c.exports=a},16005:(c,T,t)=>{/** + */var d=t(83419),p=t(4327),l=new d({initialize:function(n,e,s,o,i){this.parent=n,this.x=e,this.y=s,this.frame=o,this.data={},this.tint=16777215,this._visible=i,this._alpha=1,this.flipX=!1,this.flipY=!1,this.hasTransformComponent=!0},setFrame:function(r){return r===void 0?this.frame=this.parent.frame:r instanceof p&&r.texture===this.parent.texture?this.frame=r:this.frame=this.parent.texture.get(r),this},resetFlip:function(){return this.flipX=!1,this.flipY=!1,this},reset:function(r,n,e){return this.x=r,this.y=n,this.flipX=!1,this.flipY=!1,this._alpha=1,this._visible=!0,this.parent.dirty=!0,e&&this.setFrame(e),this},setPosition:function(r,n){return this.x=r,this.y=n,this},setFlipX:function(r){return this.flipX=r,this},setFlipY:function(r){return this.flipY=r,this},setFlip:function(r,n){return this.flipX=r,this.flipY=n,this},setVisible:function(r){return this.visible=r,this},setAlpha:function(r){return this.alpha=r,this},setTint:function(r){return this.tint=r,this},destroy:function(){this.parent.dirty=!0,this.parent.children.remove(this),this.parent=void 0,this.frame=void 0,this.data=void 0},visible:{get:function(){return this._visible},set:function(r){this.parent.dirty|=this._visible!==r,this._visible=r}},alpha:{get:function(){return this._alpha},set:function(r){this.parent.dirty|=this._alpha>0!=r>0,this._alpha=r}}});c.exports=l},16005:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(45319),p=2,a={_alpha:1,_alphaTL:1,_alphaTR:1,_alphaBL:1,_alphaBR:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(r,n,e,s){return r===void 0&&(r=1),n===void 0?this.alpha=r:(this._alphaTL=d(r,0,1),this._alphaTR=d(n,0,1),this._alphaBL=d(e,0,1),this._alphaBR=d(s,0,1)),this},alpha:{get:function(){return this._alpha},set:function(r){var n=d(r,0,1);this._alpha=n,this._alphaTL=n,this._alphaTR=n,this._alphaBL=n,this._alphaBR=n,n===0?this.renderFlags&=~p:this.renderFlags|=p}},alphaTopLeft:{get:function(){return this._alphaTL},set:function(r){var n=d(r,0,1);this._alphaTL=n,n!==0&&(this.renderFlags|=p)}},alphaTopRight:{get:function(){return this._alphaTR},set:function(r){var n=d(r,0,1);this._alphaTR=n,n!==0&&(this.renderFlags|=p)}},alphaBottomLeft:{get:function(){return this._alphaBL},set:function(r){var n=d(r,0,1);this._alphaBL=n,n!==0&&(this.renderFlags|=p)}},alphaBottomRight:{get:function(){return this._alphaBR},set:function(r){var n=d(r,0,1);this._alphaBR=n,n!==0&&(this.renderFlags|=p)}}};c.exports=a},88509:(c,T,t)=>{/** + */var d=t(45319),p=2,l={_alpha:1,_alphaTL:1,_alphaTR:1,_alphaBL:1,_alphaBR:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(r,n,e,s){return r===void 0&&(r=1),n===void 0?this.alpha=r:(this._alphaTL=d(r,0,1),this._alphaTR=d(n,0,1),this._alphaBL=d(e,0,1),this._alphaBR=d(s,0,1)),this},alpha:{get:function(){return this._alpha},set:function(r){var n=d(r,0,1);this._alpha=n,this._alphaTL=n,this._alphaTR=n,this._alphaBL=n,this._alphaBR=n,n===0?this.renderFlags&=~p:this.renderFlags|=p}},alphaTopLeft:{get:function(){return this._alphaTL},set:function(r){var n=d(r,0,1);this._alphaTL=n,n!==0&&(this.renderFlags|=p)}},alphaTopRight:{get:function(){return this._alphaTR},set:function(r){var n=d(r,0,1);this._alphaTR=n,n!==0&&(this.renderFlags|=p)}},alphaBottomLeft:{get:function(){return this._alphaBL},set:function(r){var n=d(r,0,1);this._alphaBL=n,n!==0&&(this.renderFlags|=p)}},alphaBottomRight:{get:function(){return this._alphaBR},set:function(r){var n=d(r,0,1);this._alphaBR=n,n!==0&&(this.renderFlags|=p)}}};c.exports=l},88509:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(45319),p=2,a={_alpha:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(r){return r===void 0&&(r=1),this.alpha=r,this},alpha:{get:function(){return this._alpha},set:function(r){var n=d(r,0,1);this._alpha=n,n===0?this.renderFlags&=~p:this.renderFlags|=p}}};c.exports=a},90065:(c,T,t)=>{/** + */var d=t(45319),p=2,l={_alpha:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(r){return r===void 0&&(r=1),this.alpha=r,this},alpha:{get:function(){return this._alpha},set:function(r){var n=d(r,0,1);this._alpha=n,n===0?this.renderFlags&=~p:this.renderFlags|=p}}};c.exports=l},90065:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(10312),p={_blendMode:d.NORMAL,blendMode:{get:function(){return this._blendMode},set:function(a){typeof a=="string"&&(a=d[a]),a|=0,a>=-1&&(this._blendMode=a)}},setBlendMode:function(a){return this.blendMode=a,this}};c.exports=p},94215:c=>{/** + */var d=t(10312),p={_blendMode:d.NORMAL,blendMode:{get:function(){return this._blendMode},set:function(l){typeof l=="string"&&(l=d[l]),l|=0,l>=-1&&(this._blendMode=l)}},setBlendMode:function(l){return this.blendMode=l,this}};c.exports=p},94215:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -1271,15 +1275,15 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T={texture:null,frame:null,isCropped:!1,setCrop:function(t,d,p,a){if(t===void 0)this.isCropped=!1;else if(this.frame){if(typeof t=="number")this.frame.setCropUVs(this._crop,t,d,p,a,this.flipX,this.flipY);else{var r=t;this.frame.setCropUVs(this._crop,r.x,r.y,r.width,r.height,this.flipX,this.flipY)}this.isCropped=!0}return this},resetCropObject:function(){return{u0:0,v0:0,u1:0,v1:0,width:0,height:0,x:0,y:0,flipX:!1,flipY:!1,cx:0,cy:0,cw:0,ch:0}}};c.exports=T},89272:c=>{/** + */var T={texture:null,frame:null,isCropped:!1,setCrop:function(t,d,p,l){if(t===void 0)this.isCropped=!1;else if(this.frame){if(typeof t=="number")this.frame.setCropUVs(this._crop,t,d,p,l,this.flipX,this.flipY);else{var r=t;this.frame.setCropUVs(this._crop,r.x,r.y,r.width,r.height,this.flipX,this.flipY)}this.isCropped=!0}return this},resetCropObject:function(){return{u0:0,v0:0,u1:0,v1:0,width:0,height:0,x:0,y:0,flipX:!1,flipY:!1,cx:0,cy:0,cw:0,ch:0}}};c.exports=T},89272:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T={_depth:0,depth:{get:function(){return this._depth},set:function(t){this.displayList&&this.displayList.queueDepthSort(),this._depth=t}},setDepth:function(t){return t===void 0&&(t=0),this.depth=t,this}};c.exports=T},47059:(c,T,t)=>{/** + */var d=t(37105),p={_depth:0,depth:{get:function(){return this._depth},set:function(l){this.displayList&&this.displayList.queueDepthSort(),this._depth=l}},setDepth:function(l){return l===void 0&&(l=0),this.depth=l,this},setToTop:function(){var l=this.getDisplayList();return l&&d.BringToTop(l,this),this},setToBack:function(){var l=this.getDisplayList();return l&&d.SendToBack(l,this),this},setAbove:function(l){var r=this.getDisplayList();return r&&l&&d.MoveAbove(r,this,l),this},setBelow:function(l){var r=this.getDisplayList();return r&&l&&d.MoveBelow(r,this,l),this}};c.exports=p},47059:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(66064),a=t(19133),r=new d({initialize:function(e,s){this.gameObject=e,this.isPost=s,this.enabled=!1,this.list=[],this.padding=0},setPadding:function(n){return n===void 0&&(n=0),this.padding=n,this.gameObject},onFXCopy:function(){},onFX:function(){},enable:function(n){if(!this.isPost){var e=this.gameObject.scene.sys.renderer;e&&e.pipelines?(this.gameObject.pipeline=e.pipelines.FX_PIPELINE,n!==void 0&&(this.padding=n),this.enabled=!0):this.enabled=!1}},clear:function(){if(this.isPost)this.gameObject.resetPostPipeline(!0);else{for(var n=this.list,e=0;e{/** + */var d=t(83419),p=t(66064),l=t(19133),r=new d({initialize:function(e,s){this.gameObject=e,this.isPost=s,this.enabled=!1,this.list=[],this.padding=0},setPadding:function(n){return n===void 0&&(n=0),this.padding=n,this.gameObject},onFXCopy:function(){},onFX:function(){},enable:function(n){if(!this.isPost){var e=this.gameObject.scene.sys.renderer;e&&e.pipelines?(this.gameObject.pipeline=e.pipelines.FX_PIPELINE,n!==void 0&&(this.padding=n),this.enabled=!0):this.enabled=!1}},clear:function(){if(this.isPost)this.gameObject.resetPostPipeline(!0);else{for(var n=this.list,e=0;e{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -1287,11 +1291,11 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(87841),p=t(11520),a=t(26099),r={prepareBoundsOutput:function(n,e){if(e===void 0&&(e=!1),this.rotation!==0&&p(n,this.x,this.y,this.rotation),e&&this.parentContainer){var s=this.parentContainer.getBoundsTransformMatrix();s.transformPoint(n.x,n.y,n)}return n},getCenter:function(n,e){return n===void 0&&(n=new a),n.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,n.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(n,e)},getTopLeft:function(n,e){return n||(n=new a),n.x=this.x-this.displayWidth*this.originX,n.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(n,e)},getTopCenter:function(n,e){return n||(n=new a),n.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,n.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(n,e)},getTopRight:function(n,e){return n||(n=new a),n.x=this.x-this.displayWidth*this.originX+this.displayWidth,n.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(n,e)},getLeftCenter:function(n,e){return n||(n=new a),n.x=this.x-this.displayWidth*this.originX,n.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(n,e)},getRightCenter:function(n,e){return n||(n=new a),n.x=this.x-this.displayWidth*this.originX+this.displayWidth,n.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(n,e)},getBottomLeft:function(n,e){return n||(n=new a),n.x=this.x-this.displayWidth*this.originX,n.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(n,e)},getBottomCenter:function(n,e){return n||(n=new a),n.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,n.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(n,e)},getBottomRight:function(n,e){return n||(n=new a),n.x=this.x-this.displayWidth*this.originX+this.displayWidth,n.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(n,e)},getBounds:function(n){n===void 0&&(n=new d);var e,s,l,i,o,u,h,f;if(this.parentContainer){var v=this.parentContainer.getBoundsTransformMatrix();this.getTopLeft(n),v.transformPoint(n.x,n.y,n),e=n.x,s=n.y,this.getTopRight(n),v.transformPoint(n.x,n.y,n),l=n.x,i=n.y,this.getBottomLeft(n),v.transformPoint(n.x,n.y,n),o=n.x,u=n.y,this.getBottomRight(n),v.transformPoint(n.x,n.y,n),h=n.x,f=n.y}else this.getTopLeft(n),e=n.x,s=n.y,this.getTopRight(n),l=n.x,i=n.y,this.getBottomLeft(n),o=n.x,u=n.y,this.getBottomRight(n),h=n.x,f=n.y;return n.x=Math.min(e,l,o,h),n.y=Math.min(s,i,u,f),n.width=Math.max(e,l,o,h)-n.x,n.height=Math.max(s,i,u,f)-n.y,n}};c.exports=r},8573:(c,T,t)=>{/** + */var d=t(87841),p=t(11520),l=t(26099),r={prepareBoundsOutput:function(n,e){if(e===void 0&&(e=!1),this.rotation!==0&&p(n,this.x,this.y,this.rotation),e&&this.parentContainer){var s=this.parentContainer.getBoundsTransformMatrix();s.transformPoint(n.x,n.y,n)}return n},getCenter:function(n,e){return n===void 0&&(n=new l),n.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,n.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(n,e)},getTopLeft:function(n,e){return n||(n=new l),n.x=this.x-this.displayWidth*this.originX,n.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(n,e)},getTopCenter:function(n,e){return n||(n=new l),n.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,n.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(n,e)},getTopRight:function(n,e){return n||(n=new l),n.x=this.x-this.displayWidth*this.originX+this.displayWidth,n.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(n,e)},getLeftCenter:function(n,e){return n||(n=new l),n.x=this.x-this.displayWidth*this.originX,n.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(n,e)},getRightCenter:function(n,e){return n||(n=new l),n.x=this.x-this.displayWidth*this.originX+this.displayWidth,n.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(n,e)},getBottomLeft:function(n,e){return n||(n=new l),n.x=this.x-this.displayWidth*this.originX,n.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(n,e)},getBottomCenter:function(n,e){return n||(n=new l),n.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,n.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(n,e)},getBottomRight:function(n,e){return n||(n=new l),n.x=this.x-this.displayWidth*this.originX+this.displayWidth,n.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(n,e)},getBounds:function(n){n===void 0&&(n=new d);var e,s,o,i,a,u,h,f;if(this.parentContainer){var v=this.parentContainer.getBoundsTransformMatrix();this.getTopLeft(n),v.transformPoint(n.x,n.y,n),e=n.x,s=n.y,this.getTopRight(n),v.transformPoint(n.x,n.y,n),o=n.x,i=n.y,this.getBottomLeft(n),v.transformPoint(n.x,n.y,n),a=n.x,u=n.y,this.getBottomRight(n),v.transformPoint(n.x,n.y,n),h=n.x,f=n.y}else this.getTopLeft(n),e=n.x,s=n.y,this.getTopRight(n),o=n.x,i=n.y,this.getBottomLeft(n),a=n.x,u=n.y,this.getBottomRight(n),h=n.x,f=n.y;return n.x=Math.min(e,o,a,h),n.y=Math.min(s,i,u,f),n.width=Math.max(e,o,a,h)-n.x,n.height=Math.max(s,i,u,f)-n.y,n}};c.exports=r},8573:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(6858),p=t(80661),a={mask:null,setMask:function(r){return this.mask=r,this},clearMask:function(r){return r===void 0&&(r=!1),r&&this.mask&&this.mask.destroy(),this.mask=null,this},createBitmapMask:function(r,n,e,s,l){return r===void 0&&(this.texture||this.shader||this.geom)&&(r=this),new d(this.scene,r,n,e,s,l)},createGeometryMask:function(r){return r===void 0&&(this.type==="Graphics"||this.geom)&&(r=this),new p(this.scene,r)}};c.exports=a},27387:c=>{/** + */var d=t(6858),p=t(80661),l={mask:null,setMask:function(r){return this.mask=r,this},clearMask:function(r){return r===void 0&&(r=!1),r&&this.mask&&this.mask.destroy(),this.mask=null,this},createBitmapMask:function(r,n,e,s,o){return r===void 0&&(this.texture||this.shader||this.geom)&&(r=this),new d(this.scene,r,n,e,s,o)},createGeometryMask:function(r){return r===void 0&&(this.type==="Graphics"||this.geom)&&(r=this),new p(this.scene,r)}};c.exports=l},27387:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -1299,15 +1303,15 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(39506),p=t(57355),a=t(35154),r=t(86353),n=t(26099),e={path:null,rotateToPath:!1,pathRotationOffset:0,pathOffset:null,pathVector:null,pathDelta:null,pathTween:null,pathConfig:null,_prevDirection:r.PLAYING_FORWARD,setPath:function(s,l){l===void 0&&(l=this.pathConfig);var i=this.pathTween;return i&&i.isPlaying()&&i.stop(),this.path=s,l&&this.startFollow(l),this},setRotateToPath:function(s,l){return l===void 0&&(l=0),this.rotateToPath=s,this.pathRotationOffset=l,this},isFollowing:function(){var s=this.pathTween;return s&&s.isPlaying()},startFollow:function(s,l){s===void 0&&(s={}),l===void 0&&(l=0);var i=this.pathTween;i&&i.isPlaying()&&i.stop(),typeof s=="number"&&(s={duration:s}),s.from=a(s,"from",0),s.to=a(s,"to",1);var o=p(s,"positionOnPath",!1);this.rotateToPath=p(s,"rotateToPath",!1),this.pathRotationOffset=a(s,"rotationOffset",0);var u=a(s,"startAt",l);if(u&&(s.onStart=function(f){var v=f.data[0];v.progress=u,v.elapsed=v.duration*u;var m=v.ease(v.progress);v.current=v.start+(v.end-v.start)*m,v.setTargetValue()}),this.pathOffset||(this.pathOffset=new n(this.x,this.y)),this.pathVector||(this.pathVector=new n),this.pathDelta||(this.pathDelta=new n),this.pathDelta.reset(),s.persist=!0,this.pathTween=this.scene.sys.tweens.addCounter(s),this.path.getStartPoint(this.pathOffset),o&&(this.x=this.pathOffset.x,this.y=this.pathOffset.y),this.pathOffset.x=this.x-this.pathOffset.x,this.pathOffset.y=this.y-this.pathOffset.y,this._prevDirection=r.PLAYING_FORWARD,this.rotateToPath){var h=this.path.getPoint(.1);this.rotation=Math.atan2(h.y-this.y,h.x-this.x)+d(this.pathRotationOffset)}return this.pathConfig=s,this},pauseFollow:function(){var s=this.pathTween;return s&&s.isPlaying()&&s.pause(),this},resumeFollow:function(){var s=this.pathTween;return s&&s.isPaused()&&s.resume(),this},stopFollow:function(){var s=this.pathTween;return s&&s.isPlaying()&&s.stop(),this},pathUpdate:function(){var s=this.pathTween;if(s&&s.data){var l=s.data[0],i=this.pathDelta,o=this.pathVector;if(i.copy(o).negate(),l.state===r.COMPLETE){this.path.getPoint(l.end,o),i.add(o),o.add(this.pathOffset),this.setPosition(o.x,o.y);return}else if(l.state!==r.PLAYING_FORWARD&&l.state!==r.PLAYING_BACKWARD)return;this.path.getPoint(s.getValue(),o),i.add(o),o.add(this.pathOffset);var u=this.x,h=this.y;this.setPosition(o.x,o.y);var f=this.x-u,v=this.y-h;if(f===0&&v===0)return;if(l.state!==this._prevDirection){this._prevDirection=l.state;return}this.rotateToPath&&(this.rotation=Math.atan2(v,f)+d(this.pathRotationOffset))}}};c.exports=e},72699:(c,T,t)=>{/** + */var d=t(39506),p=t(57355),l=t(35154),r=t(86353),n=t(26099),e={path:null,rotateToPath:!1,pathRotationOffset:0,pathOffset:null,pathVector:null,pathDelta:null,pathTween:null,pathConfig:null,_prevDirection:r.PLAYING_FORWARD,setPath:function(s,o){o===void 0&&(o=this.pathConfig);var i=this.pathTween;return i&&i.isPlaying()&&i.stop(),this.path=s,o&&this.startFollow(o),this},setRotateToPath:function(s,o){return o===void 0&&(o=0),this.rotateToPath=s,this.pathRotationOffset=o,this},isFollowing:function(){var s=this.pathTween;return s&&s.isPlaying()},startFollow:function(s,o){s===void 0&&(s={}),o===void 0&&(o=0);var i=this.pathTween;i&&i.isPlaying()&&i.stop(),typeof s=="number"&&(s={duration:s}),s.from=l(s,"from",0),s.to=l(s,"to",1);var a=p(s,"positionOnPath",!1);this.rotateToPath=p(s,"rotateToPath",!1),this.pathRotationOffset=l(s,"rotationOffset",0);var u=l(s,"startAt",o);if(u&&(s.onStart=function(f){var v=f.data[0];v.progress=u,v.elapsed=v.duration*u;var m=v.ease(v.progress);v.current=v.start+(v.end-v.start)*m,v.setTargetValue()}),this.pathOffset||(this.pathOffset=new n(this.x,this.y)),this.pathVector||(this.pathVector=new n),this.pathDelta||(this.pathDelta=new n),this.pathDelta.reset(),s.persist=!0,this.pathTween=this.scene.sys.tweens.addCounter(s),this.path.getStartPoint(this.pathOffset),a&&(this.x=this.pathOffset.x,this.y=this.pathOffset.y),this.pathOffset.x=this.x-this.pathOffset.x,this.pathOffset.y=this.y-this.pathOffset.y,this._prevDirection=r.PLAYING_FORWARD,this.rotateToPath){var h=this.path.getPoint(.1);this.rotation=Math.atan2(h.y-this.y,h.x-this.x)+d(this.pathRotationOffset)}return this.pathConfig=s,this},pauseFollow:function(){var s=this.pathTween;return s&&s.isPlaying()&&s.pause(),this},resumeFollow:function(){var s=this.pathTween;return s&&s.isPaused()&&s.resume(),this},stopFollow:function(){var s=this.pathTween;return s&&s.isPlaying()&&s.stop(),this},pathUpdate:function(){var s=this.pathTween;if(s&&s.data){var o=s.data[0],i=this.pathDelta,a=this.pathVector;if(i.copy(a).negate(),o.state===r.COMPLETE){this.path.getPoint(o.end,a),i.add(a),a.add(this.pathOffset),this.setPosition(a.x,a.y);return}else if(o.state!==r.PLAYING_FORWARD&&o.state!==r.PLAYING_BACKWARD)return;this.path.getPoint(s.getValue(),a),i.add(a),a.add(this.pathOffset);var u=this.x,h=this.y;this.setPosition(a.x,a.y);var f=this.x-u,v=this.y-h;if(f===0&&v===0)return;if(o.state!==this._prevDirection){this._prevDirection=o.state;return}this.rotateToPath&&(this.rotation=Math.atan2(v,f)+d(this.pathRotationOffset))}}};c.exports=e},72699:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(62644),p={defaultPipeline:null,pipeline:null,pipelineData:null,initPipeline:function(a){this.pipelineData={};var r=this.scene.sys.renderer;if(!r)return!1;var n=r.pipelines;if(n){a===void 0&&(a=n.default);var e=n.get(a);if(e)return this.defaultPipeline=e,this.pipeline=e,!0}return!1},setPipeline:function(a,r,n){var e=this.scene.sys.renderer;if(!e)return this;var s=e.pipelines;if(s){var l=s.get(a);l&&(this.pipeline=l),r&&(this.pipelineData=n?d(r):r)}return this},setPipelineData:function(a,r){var n=this.pipelineData;return r===void 0?delete n[a]:n[a]=r,this},resetPipeline:function(a){return a===void 0&&(a=!1),this.pipeline=this.defaultPipeline,a&&(this.pipelineData={}),this.pipeline!==null},getPipelineName:function(){return this.pipeline.name}};c.exports=p},17581:(c,T,t)=>{/** + */var d=t(62644),p={defaultPipeline:null,pipeline:null,pipelineData:null,initPipeline:function(l){this.pipelineData={};var r=this.scene.sys.renderer;if(!r)return!1;var n=r.pipelines;if(n){l===void 0&&(l=n.default);var e=n.get(l);if(e)return this.defaultPipeline=e,this.pipeline=e,!0}return!1},setPipeline:function(l,r,n){var e=this.scene.sys.renderer;if(!e)return this;var s=e.pipelines;if(s){var o=s.get(l);o&&(this.pipeline=o),r&&(this.pipelineData=n?d(r):r)}return this},setPipelineData:function(l,r){var n=this.pipelineData;return r===void 0?delete n[l]:n[l]=r,this},resetPipeline:function(l){return l===void 0&&(l=!1),this.pipeline=this.defaultPipeline,l&&(this.pipelineData={}),this.pipeline!==null},getPipelineName:function(){return this.pipeline===null?null:this.pipeline.name}};c.exports=p},17581:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(62644),p=t(47059),a=t(19133),r={hasPostPipeline:!1,postPipelines:null,postPipelineData:null,preFX:null,postFX:null,initPostPipeline:function(n){this.postPipelines=[],this.postPipelineData={},this.postFX=new p(this,!0),n&&(this.preFX=new p(this,!1))},setPostPipeline:function(n,e,s){var l=this.scene.sys.renderer;if(!l)return this;var i=l.pipelines;if(i){Array.isArray(n)||(n=[n]);for(var o=0;o0,this},setPostPipelineData:function(n,e){var s=this.postPipelineData;return e===void 0?delete s[n]:s[n]=e,this},getPostPipeline:function(n){for(var e=typeof n=="string",s=this.postPipelines,l=[],i=0;i=0;l--){var i=s[l];(e&&i.name===n||!e&&i===n)&&(i.destroy(),a(s,l))}return this.hasPostPipeline=this.postPipelines.length>0,this},clearFX:function(){return this.preFX&&this.preFX.clear(),this.postFX&&this.postFX.clear(),this}};c.exports=r},80227:c=>{/** + */var d=t(62644),p=t(47059),l=t(19133),r={hasPostPipeline:!1,postPipelines:null,postPipelineData:null,preFX:null,postFX:null,initPostPipeline:function(n){this.postPipelines=[],this.postPipelineData={},this.postFX=new p(this,!0),n&&(this.preFX=new p(this,!1))},setPostPipeline:function(n,e,s){var o=this.scene.sys.renderer;if(!o)return this;var i=o.pipelines;if(i){Array.isArray(n)||(n=[n]);for(var a=0;a0,this},setPostPipelineData:function(n,e){var s=this.postPipelineData;return e===void 0?delete s[n]:s[n]=e,this},getPostPipeline:function(n){for(var e=typeof n=="string",s=this.postPipelines,o=[],i=0;i=0;o--){var i=s[o];(e&&i.name===n||!e&&i===n)&&(i.destroy(),l(s,o))}return this.hasPostPipeline=this.postPipelines.length>0,this},clearFX:function(){return this.preFX&&this.preFX.clear(),this.postFX&&this.postFX.clear(),this}};c.exports=r},80227:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -1319,15 +1323,15 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(4327),p=8,a={texture:null,frame:null,isCropped:!1,setTexture:function(r,n,e,s){return this.texture=this.scene.sys.textures.get(r),this.setFrame(n,e,s)},setFrame:function(r,n,e){return n===void 0&&(n=!0),e===void 0&&(e=!0),r instanceof d?(this.texture=this.scene.sys.textures.get(r.texture.key),this.frame=r):this.frame=this.texture.get(r),!this.frame.cutWidth||!this.frame.cutHeight?this.renderFlags&=~p:this.renderFlags|=p,this._sizeComponent&&n&&this.setSizeToFrame(),this._originComponent&&e&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this}};c.exports=a},79812:(c,T,t)=>{/** + */var d=t(4327),p=8,l={texture:null,frame:null,isCropped:!1,setTexture:function(r,n,e,s){return this.texture=this.scene.sys.textures.get(r),this.setFrame(n,e,s)},setFrame:function(r,n,e){return n===void 0&&(n=!0),e===void 0&&(e=!0),r instanceof d?(this.texture=this.scene.sys.textures.get(r.texture.key),this.frame=r):this.frame=this.texture.get(r),!this.frame.cutWidth||!this.frame.cutHeight?this.renderFlags&=~p:this.renderFlags|=p,this._sizeComponent&&n&&this.setSizeToFrame(),this._originComponent&&e&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this}};c.exports=l},79812:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(4327),p=8,a={texture:null,frame:null,isCropped:!1,setCrop:function(r,n,e,s){if(r===void 0)this.isCropped=!1;else if(this.frame){if(typeof r=="number")this.frame.setCropUVs(this._crop,r,n,e,s,this.flipX,this.flipY);else{var l=r;this.frame.setCropUVs(this._crop,l.x,l.y,l.width,l.height,this.flipX,this.flipY)}this.isCropped=!0}return this},setTexture:function(r,n){return this.texture=this.scene.sys.textures.get(r),this.setFrame(n)},setFrame:function(r,n,e){return n===void 0&&(n=!0),e===void 0&&(e=!0),r instanceof d?(this.texture=this.scene.sys.textures.get(r.texture.key),this.frame=r):this.frame=this.texture.get(r),!this.frame.cutWidth||!this.frame.cutHeight?this.renderFlags&=~p:this.renderFlags|=p,this._sizeComponent&&n&&this.setSizeToFrame(),this._originComponent&&e&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this.isCropped&&this.frame.updateCropUVs(this._crop,this.flipX,this.flipY),this},resetCropObject:function(){return{u0:0,v0:0,u1:0,v1:0,width:0,height:0,x:0,y:0,flipX:!1,flipY:!1,cx:0,cy:0,cw:0,ch:0}}};c.exports=a},27472:c=>{/** + */var d=t(4327),p=8,l={texture:null,frame:null,isCropped:!1,setCrop:function(r,n,e,s){if(r===void 0)this.isCropped=!1;else if(this.frame){if(typeof r=="number")this.frame.setCropUVs(this._crop,r,n,e,s,this.flipX,this.flipY);else{var o=r;this.frame.setCropUVs(this._crop,o.x,o.y,o.width,o.height,this.flipX,this.flipY)}this.isCropped=!0}return this},setTexture:function(r,n){return this.texture=this.scene.sys.textures.get(r),this.setFrame(n)},setFrame:function(r,n,e){return n===void 0&&(n=!0),e===void 0&&(e=!0),r instanceof d?(this.texture=this.scene.sys.textures.get(r.texture.key),this.frame=r):this.frame=this.texture.get(r),!this.frame.cutWidth||!this.frame.cutHeight?this.renderFlags&=~p:this.renderFlags|=p,this._sizeComponent&&n&&this.setSizeToFrame(),this._originComponent&&e&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this.isCropped&&this.frame.updateCropUVs(this._crop,this.flipX,this.flipY),this},resetCropObject:function(){return{u0:0,v0:0,u1:0,v1:0,width:0,height:0,x:0,y:0,flipX:!1,flipY:!1,cx:0,cy:0,cw:0,ch:0}}};c.exports=l},27472:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T={tintTopLeft:16777215,tintTopRight:16777215,tintBottomLeft:16777215,tintBottomRight:16777215,tintFill:!1,clearTint:function(){return this.setTint(16777215),this},setTint:function(t,d,p,a){return t===void 0&&(t=16777215),d===void 0&&(d=t,p=t,a=t),this.tintTopLeft=t,this.tintTopRight=d,this.tintBottomLeft=p,this.tintBottomRight=a,this.tintFill=!1,this},setTintFill:function(t,d,p,a){return this.setTint(t,d,p,a),this.tintFill=!0,this},tint:{get:function(){return this.tintTopLeft},set:function(t){this.setTint(t,t,t,t)}},isTinted:{get:function(){var t=16777215;return this.tintFill||this.tintTopLeft!==t||this.tintTopRight!==t||this.tintBottomLeft!==t||this.tintBottomRight!==t}}};c.exports=T},53774:c=>{/** + */var T={tintTopLeft:16777215,tintTopRight:16777215,tintBottomLeft:16777215,tintBottomRight:16777215,tintFill:!1,clearTint:function(){return this.setTint(16777215),this},setTint:function(t,d,p,l){return t===void 0&&(t=16777215),d===void 0&&(d=t,p=t,l=t),this.tintTopLeft=t,this.tintTopRight=d,this.tintBottomLeft=p,this.tintBottomRight=l,this.tintFill=!1,this},setTintFill:function(t,d,p,l){return this.setTint(t,d,p,l),this.tintFill=!0,this},tint:{get:function(){return this.tintTopLeft},set:function(t){this.setTint(t,t,t,t)}},isTinted:{get:function(){var t=16777215;return this.tintFill||this.tintTopLeft!==t||this.tintTopRight!==t||this.tintBottomLeft!==t||this.tintBottomRight!==t}}};c.exports=T},53774:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -1335,11 +1339,11 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(36383),p=t(61340),a=t(85955),r=t(86554),n=t(30954),e=t(26099),s=4,l={hasTransformComponent:!0,_scaleX:1,_scaleY:1,_rotation:0,x:0,y:0,z:0,w:0,scale:{get:function(){return(this._scaleX+this._scaleY)/2},set:function(i){this._scaleX=i,this._scaleY=i,i===0?this.renderFlags&=~s:this.renderFlags|=s}},scaleX:{get:function(){return this._scaleX},set:function(i){this._scaleX=i,i===0?this.renderFlags&=~s:this._scaleY!==0&&(this.renderFlags|=s)}},scaleY:{get:function(){return this._scaleY},set:function(i){this._scaleY=i,i===0?this.renderFlags&=~s:this._scaleX!==0&&(this.renderFlags|=s)}},angle:{get:function(){return n(this._rotation*d.RAD_TO_DEG)},set:function(i){this.rotation=n(i)*d.DEG_TO_RAD}},rotation:{get:function(){return this._rotation},set:function(i){this._rotation=r(i)}},setPosition:function(i,o,u,h){return i===void 0&&(i=0),o===void 0&&(o=i),u===void 0&&(u=0),h===void 0&&(h=0),this.x=i,this.y=o,this.z=u,this.w=h,this},copyPosition:function(i){return i.x!==void 0&&(this.x=i.x),i.y!==void 0&&(this.y=i.y),i.z!==void 0&&(this.z=i.z),i.w!==void 0&&(this.w=i.w),this},setRandomPosition:function(i,o,u,h){return i===void 0&&(i=0),o===void 0&&(o=0),u===void 0&&(u=this.scene.sys.scale.width),h===void 0&&(h=this.scene.sys.scale.height),this.x=i+Math.random()*u,this.y=o+Math.random()*h,this},setRotation:function(i){return i===void 0&&(i=0),this.rotation=i,this},setAngle:function(i){return i===void 0&&(i=0),this.angle=i,this},setScale:function(i,o){return i===void 0&&(i=1),o===void 0&&(o=i),this.scaleX=i,this.scaleY=o,this},setX:function(i){return i===void 0&&(i=0),this.x=i,this},setY:function(i){return i===void 0&&(i=0),this.y=i,this},setZ:function(i){return i===void 0&&(i=0),this.z=i,this},setW:function(i){return i===void 0&&(i=0),this.w=i,this},getLocalTransformMatrix:function(i){return i===void 0&&(i=new p),i.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY)},getWorldTransformMatrix:function(i,o){i===void 0&&(i=new p);var u=this.parentContainer;if(!u)return this.getLocalTransformMatrix(i);for(o||(o=new p),i.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY);u;)o.applyITRS(u.x,u.y,u._rotation,u._scaleX,u._scaleY),o.multiply(i,i),u=u.parentContainer;return i},getLocalPoint:function(i,o,u,h){u||(u=new e),h||(h=this.scene.sys.cameras.main);var f=h.scrollX,v=h.scrollY,m=i+f*this.scrollFactorX-f,x=o+v*this.scrollFactorY-v;return this.parentContainer?this.getWorldTransformMatrix().applyInverse(m,x,u):a(m,x,this.x,this.y,this.rotation,this.scaleX,this.scaleY,u),this._originComponent&&(u.x+=this._displayOriginX,u.y+=this._displayOriginY),u},getParentRotation:function(){for(var i=0,o=this.parentContainer;o;)i+=o.rotation,o=o.parentContainer;return i}};c.exports=l},61340:(c,T,t)=>{/** + */var d=t(36383),p=t(61340),l=t(85955),r=t(86554),n=t(30954),e=t(26099),s=4,o={hasTransformComponent:!0,_scaleX:1,_scaleY:1,_rotation:0,x:0,y:0,z:0,w:0,scale:{get:function(){return(this._scaleX+this._scaleY)/2},set:function(i){this._scaleX=i,this._scaleY=i,i===0?this.renderFlags&=~s:this.renderFlags|=s}},scaleX:{get:function(){return this._scaleX},set:function(i){this._scaleX=i,i===0?this.renderFlags&=~s:this._scaleY!==0&&(this.renderFlags|=s)}},scaleY:{get:function(){return this._scaleY},set:function(i){this._scaleY=i,i===0?this.renderFlags&=~s:this._scaleX!==0&&(this.renderFlags|=s)}},angle:{get:function(){return n(this._rotation*d.RAD_TO_DEG)},set:function(i){this.rotation=n(i)*d.DEG_TO_RAD}},rotation:{get:function(){return this._rotation},set:function(i){this._rotation=r(i)}},setPosition:function(i,a,u,h){return i===void 0&&(i=0),a===void 0&&(a=i),u===void 0&&(u=0),h===void 0&&(h=0),this.x=i,this.y=a,this.z=u,this.w=h,this},copyPosition:function(i){return i.x!==void 0&&(this.x=i.x),i.y!==void 0&&(this.y=i.y),i.z!==void 0&&(this.z=i.z),i.w!==void 0&&(this.w=i.w),this},setRandomPosition:function(i,a,u,h){return i===void 0&&(i=0),a===void 0&&(a=0),u===void 0&&(u=this.scene.sys.scale.width),h===void 0&&(h=this.scene.sys.scale.height),this.x=i+Math.random()*u,this.y=a+Math.random()*h,this},setRotation:function(i){return i===void 0&&(i=0),this.rotation=i,this},setAngle:function(i){return i===void 0&&(i=0),this.angle=i,this},setScale:function(i,a){return i===void 0&&(i=1),a===void 0&&(a=i),this.scaleX=i,this.scaleY=a,this},setX:function(i){return i===void 0&&(i=0),this.x=i,this},setY:function(i){return i===void 0&&(i=0),this.y=i,this},setZ:function(i){return i===void 0&&(i=0),this.z=i,this},setW:function(i){return i===void 0&&(i=0),this.w=i,this},getLocalTransformMatrix:function(i){return i===void 0&&(i=new p),i.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY)},getWorldTransformMatrix:function(i,a){i===void 0&&(i=new p);var u=this.parentContainer;if(!u)return this.getLocalTransformMatrix(i);for(a||(a=new p),i.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY);u;)a.applyITRS(u.x,u.y,u._rotation,u._scaleX,u._scaleY),a.multiply(i,i),u=u.parentContainer;return i},getLocalPoint:function(i,a,u,h){u||(u=new e),h||(h=this.scene.sys.cameras.main);var f=h.scrollX,v=h.scrollY,m=i+f*this.scrollFactorX-f,g=a+v*this.scrollFactorY-v;return this.parentContainer?this.getWorldTransformMatrix().applyInverse(m,g,u):l(m,g,this.x,this.y,this.rotation,this.scaleX,this.scaleY,u),this._originComponent&&(u.x+=this._displayOriginX,u.y+=this._displayOriginY),u},getParentRotation:function(){for(var i=0,a=this.parentContainer;a;)i+=a.rotation,a=a.parentContainer;return i}};c.exports=o},61340:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(36383),a=t(26099),r=new d({initialize:function(e,s,l,i,o,u){e===void 0&&(e=1),s===void 0&&(s=0),l===void 0&&(l=0),i===void 0&&(i=1),o===void 0&&(o=0),u===void 0&&(u=0),this.matrix=new Float32Array([e,s,l,i,o,u,0,0,1]),this.decomposedMatrix={translateX:0,translateY:0,scaleX:1,scaleY:1,rotation:0},this.quad=new Float32Array(8)},a:{get:function(){return this.matrix[0]},set:function(n){this.matrix[0]=n}},b:{get:function(){return this.matrix[1]},set:function(n){this.matrix[1]=n}},c:{get:function(){return this.matrix[2]},set:function(n){this.matrix[2]=n}},d:{get:function(){return this.matrix[3]},set:function(n){this.matrix[3]=n}},e:{get:function(){return this.matrix[4]},set:function(n){this.matrix[4]=n}},f:{get:function(){return this.matrix[5]},set:function(n){this.matrix[5]=n}},tx:{get:function(){return this.matrix[4]},set:function(n){this.matrix[4]=n}},ty:{get:function(){return this.matrix[5]},set:function(n){this.matrix[5]=n}},rotation:{get:function(){return Math.acos(this.a/this.scaleX)*(Math.atan(-this.c/this.a)<0?-1:1)}},rotationNormalized:{get:function(){var n=this.matrix,e=n[0],s=n[1],l=n[2],i=n[3];return e||s?s>0?Math.acos(e/this.scaleX):-Math.acos(e/this.scaleX):l||i?p.TAU-(i>0?Math.acos(-l/this.scaleY):-Math.acos(l/this.scaleY)):0}},scaleX:{get:function(){return Math.sqrt(this.a*this.a+this.b*this.b)}},scaleY:{get:function(){return Math.sqrt(this.c*this.c+this.d*this.d)}},loadIdentity:function(){var n=this.matrix;return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,this},translate:function(n,e){var s=this.matrix;return s[4]=s[0]*n+s[2]*e+s[4],s[5]=s[1]*n+s[3]*e+s[5],this},scale:function(n,e){var s=this.matrix;return s[0]*=n,s[1]*=n,s[2]*=e,s[3]*=e,this},rotate:function(n){var e=Math.sin(n),s=Math.cos(n),l=this.matrix,i=l[0],o=l[1],u=l[2],h=l[3];return l[0]=i*s+u*e,l[1]=o*s+h*e,l[2]=i*-e+u*s,l[3]=o*-e+h*s,this},multiply:function(n,e){var s=this.matrix,l=n.matrix,i=s[0],o=s[1],u=s[2],h=s[3],f=s[4],v=s[5],m=l[0],x=l[1],g=l[2],y=l[3],S=l[4],C=l[5],E=e===void 0?s:e.matrix;return E[0]=m*i+x*u,E[1]=m*o+x*h,E[2]=g*i+y*u,E[3]=g*o+y*h,E[4]=S*i+C*u+f,E[5]=S*o+C*h+v,E},multiplyWithOffset:function(n,e,s){var l=this.matrix,i=n.matrix,o=l[0],u=l[1],h=l[2],f=l[3],v=l[4],m=l[5],x=e*o+s*h+v,g=e*u+s*f+m,y=i[0],S=i[1],C=i[2],E=i[3],A=i[4],P=i[5];return l[0]=y*o+S*h,l[1]=y*u+S*f,l[2]=C*o+E*h,l[3]=C*u+E*f,l[4]=A*o+P*h+x,l[5]=A*u+P*f+g,this},transform:function(n,e,s,l,i,o){var u=this.matrix,h=u[0],f=u[1],v=u[2],m=u[3],x=u[4],g=u[5];return u[0]=n*h+e*v,u[1]=n*f+e*m,u[2]=s*h+l*v,u[3]=s*f+l*m,u[4]=i*h+o*v+x,u[5]=i*f+o*m+g,this},transformPoint:function(n,e,s){s===void 0&&(s={x:0,y:0});var l=this.matrix,i=l[0],o=l[1],u=l[2],h=l[3],f=l[4],v=l[5];return s.x=n*i+e*u+f,s.y=n*o+e*h+v,s},invert:function(){var n=this.matrix,e=n[0],s=n[1],l=n[2],i=n[3],o=n[4],u=n[5],h=e*i-s*l;return n[0]=i/h,n[1]=-s/h,n[2]=-l/h,n[3]=e/h,n[4]=(l*u-i*o)/h,n[5]=-(e*u-s*o)/h,this},copyFrom:function(n){var e=this.matrix;return e[0]=n.a,e[1]=n.b,e[2]=n.c,e[3]=n.d,e[4]=n.e,e[5]=n.f,this},copyFromArray:function(n){var e=this.matrix;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],this},copyToContext:function(n){var e=this.matrix;return n.transform(e[0],e[1],e[2],e[3],e[4],e[5]),n},setToContext:function(n){return n.setTransform(this),n},copyToArray:function(n){var e=this.matrix;return n===void 0?n=[e[0],e[1],e[2],e[3],e[4],e[5]]:(n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5]),n},setTransform:function(n,e,s,l,i,o){var u=this.matrix;return u[0]=n,u[1]=e,u[2]=s,u[3]=l,u[4]=i,u[5]=o,this},decomposeMatrix:function(){var n=this.decomposedMatrix,e=this.matrix,s=e[0],l=e[1],i=e[2],o=e[3],u=s*o-l*i;if(n.translateX=e[4],n.translateY=e[5],s||l){var h=Math.sqrt(s*s+l*l);n.rotation=l>0?Math.acos(s/h):-Math.acos(s/h),n.scaleX=h,n.scaleY=u/h}else if(i||o){var f=Math.sqrt(i*i+o*o);n.rotation=Math.PI*.5-(o>0?Math.acos(-i/f):-Math.acos(i/f)),n.scaleX=u/f,n.scaleY=f}else n.rotation=0,n.scaleX=0,n.scaleY=0;return n},applyITRS:function(n,e,s,l,i){var o=this.matrix,u=Math.sin(s),h=Math.cos(s);return o[4]=n,o[5]=e,o[0]=h*l,o[1]=u*l,o[2]=-u*i,o[3]=h*i,this},applyInverse:function(n,e,s){s===void 0&&(s=new a);var l=this.matrix,i=l[0],o=l[1],u=l[2],h=l[3],f=l[4],v=l[5],m=1/(i*h+u*-o);return s.x=h*m*n+-u*m*e+(v*u-f*h)*m,s.y=i*m*e+-o*m*n+(-v*i+f*o)*m,s},setQuad:function(n,e,s,l,i,o){i===void 0&&(i=!1),o===void 0&&(o=this.quad);var u=this.matrix,h=u[0],f=u[1],v=u[2],m=u[3],x=u[4],g=u[5];return i?(o[0]=Math.round(n*h+e*v+x),o[1]=Math.round(n*f+e*m+g),o[2]=Math.round(n*h+l*v+x),o[3]=Math.round(n*f+l*m+g),o[4]=Math.round(s*h+l*v+x),o[5]=Math.round(s*f+l*m+g),o[6]=Math.round(s*h+e*v+x),o[7]=Math.round(s*f+e*m+g)):(o[0]=n*h+e*v+x,o[1]=n*f+e*m+g,o[2]=n*h+l*v+x,o[3]=n*f+l*m+g,o[4]=s*h+l*v+x,o[5]=s*f+l*m+g,o[6]=s*h+e*v+x,o[7]=s*f+e*m+g),o},getX:function(n,e){return n*this.a+e*this.c+this.e},getY:function(n,e){return n*this.b+e*this.d+this.f},getXRound:function(n,e,s){var l=this.getX(n,e);return s&&(l=Math.round(l)),l},getYRound:function(n,e,s){var l=this.getY(n,e);return s&&(l=Math.round(l)),l},getCSSMatrix:function(){var n=this.matrix;return"matrix("+n[0]+","+n[1]+","+n[2]+","+n[3]+","+n[4]+","+n[5]+")"},destroy:function(){this.matrix=null,this.quad=null,this.decomposedMatrix=null}});c.exports=r},59715:c=>{/** + */var d=t(83419),p=t(36383),l=t(26099),r=new d({initialize:function(e,s,o,i,a,u){e===void 0&&(e=1),s===void 0&&(s=0),o===void 0&&(o=0),i===void 0&&(i=1),a===void 0&&(a=0),u===void 0&&(u=0),this.matrix=new Float32Array([e,s,o,i,a,u,0,0,1]),this.decomposedMatrix={translateX:0,translateY:0,scaleX:1,scaleY:1,rotation:0},this.quad=new Float32Array(8)},a:{get:function(){return this.matrix[0]},set:function(n){this.matrix[0]=n}},b:{get:function(){return this.matrix[1]},set:function(n){this.matrix[1]=n}},c:{get:function(){return this.matrix[2]},set:function(n){this.matrix[2]=n}},d:{get:function(){return this.matrix[3]},set:function(n){this.matrix[3]=n}},e:{get:function(){return this.matrix[4]},set:function(n){this.matrix[4]=n}},f:{get:function(){return this.matrix[5]},set:function(n){this.matrix[5]=n}},tx:{get:function(){return this.matrix[4]},set:function(n){this.matrix[4]=n}},ty:{get:function(){return this.matrix[5]},set:function(n){this.matrix[5]=n}},rotation:{get:function(){return Math.acos(this.a/this.scaleX)*(Math.atan(-this.c/this.a)<0?-1:1)}},rotationNormalized:{get:function(){var n=this.matrix,e=n[0],s=n[1],o=n[2],i=n[3];return e||s?s>0?Math.acos(e/this.scaleX):-Math.acos(e/this.scaleX):o||i?p.TAU-(i>0?Math.acos(-o/this.scaleY):-Math.acos(o/this.scaleY)):0}},scaleX:{get:function(){return Math.sqrt(this.a*this.a+this.b*this.b)}},scaleY:{get:function(){return Math.sqrt(this.c*this.c+this.d*this.d)}},loadIdentity:function(){var n=this.matrix;return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,this},translate:function(n,e){var s=this.matrix;return s[4]=s[0]*n+s[2]*e+s[4],s[5]=s[1]*n+s[3]*e+s[5],this},scale:function(n,e){var s=this.matrix;return s[0]*=n,s[1]*=n,s[2]*=e,s[3]*=e,this},rotate:function(n){var e=Math.sin(n),s=Math.cos(n),o=this.matrix,i=o[0],a=o[1],u=o[2],h=o[3];return o[0]=i*s+u*e,o[1]=a*s+h*e,o[2]=i*-e+u*s,o[3]=a*-e+h*s,this},multiply:function(n,e){var s=this.matrix,o=n.matrix,i=s[0],a=s[1],u=s[2],h=s[3],f=s[4],v=s[5],m=o[0],g=o[1],x=o[2],y=o[3],S=o[4],C=o[5],E=e===void 0?s:e.matrix;return E[0]=m*i+g*u,E[1]=m*a+g*h,E[2]=x*i+y*u,E[3]=x*a+y*h,E[4]=S*i+C*u+f,E[5]=S*a+C*h+v,E},multiplyWithOffset:function(n,e,s){var o=this.matrix,i=n.matrix,a=o[0],u=o[1],h=o[2],f=o[3],v=o[4],m=o[5],g=e*a+s*h+v,x=e*u+s*f+m,y=i[0],S=i[1],C=i[2],E=i[3],M=i[4],P=i[5];return o[0]=y*a+S*h,o[1]=y*u+S*f,o[2]=C*a+E*h,o[3]=C*u+E*f,o[4]=M*a+P*h+g,o[5]=M*u+P*f+x,this},transform:function(n,e,s,o,i,a){var u=this.matrix,h=u[0],f=u[1],v=u[2],m=u[3],g=u[4],x=u[5];return u[0]=n*h+e*v,u[1]=n*f+e*m,u[2]=s*h+o*v,u[3]=s*f+o*m,u[4]=i*h+a*v+g,u[5]=i*f+a*m+x,this},transformPoint:function(n,e,s){s===void 0&&(s={x:0,y:0});var o=this.matrix,i=o[0],a=o[1],u=o[2],h=o[3],f=o[4],v=o[5];return s.x=n*i+e*u+f,s.y=n*a+e*h+v,s},invert:function(){var n=this.matrix,e=n[0],s=n[1],o=n[2],i=n[3],a=n[4],u=n[5],h=e*i-s*o;return n[0]=i/h,n[1]=-s/h,n[2]=-o/h,n[3]=e/h,n[4]=(o*u-i*a)/h,n[5]=-(e*u-s*a)/h,this},copyFrom:function(n){var e=this.matrix;return e[0]=n.a,e[1]=n.b,e[2]=n.c,e[3]=n.d,e[4]=n.e,e[5]=n.f,this},copyFromArray:function(n){var e=this.matrix;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],this},copyToContext:function(n){var e=this.matrix;return n.transform(e[0],e[1],e[2],e[3],e[4],e[5]),n},setToContext:function(n){return n.setTransform(this),n},copyToArray:function(n){var e=this.matrix;return n===void 0?n=[e[0],e[1],e[2],e[3],e[4],e[5]]:(n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5]),n},setTransform:function(n,e,s,o,i,a){var u=this.matrix;return u[0]=n,u[1]=e,u[2]=s,u[3]=o,u[4]=i,u[5]=a,this},decomposeMatrix:function(){var n=this.decomposedMatrix,e=this.matrix,s=e[0],o=e[1],i=e[2],a=e[3],u=s*a-o*i;if(n.translateX=e[4],n.translateY=e[5],s||o){var h=Math.sqrt(s*s+o*o);n.rotation=o>0?Math.acos(s/h):-Math.acos(s/h),n.scaleX=h,n.scaleY=u/h}else if(i||a){var f=Math.sqrt(i*i+a*a);n.rotation=Math.PI*.5-(a>0?Math.acos(-i/f):-Math.acos(i/f)),n.scaleX=u/f,n.scaleY=f}else n.rotation=0,n.scaleX=0,n.scaleY=0;return n},applyITRS:function(n,e,s,o,i){var a=this.matrix,u=Math.sin(s),h=Math.cos(s);return a[4]=n,a[5]=e,a[0]=h*o,a[1]=u*o,a[2]=-u*i,a[3]=h*i,this},applyInverse:function(n,e,s){s===void 0&&(s=new l);var o=this.matrix,i=o[0],a=o[1],u=o[2],h=o[3],f=o[4],v=o[5],m=1/(i*h+u*-a);return s.x=h*m*n+-u*m*e+(v*u-f*h)*m,s.y=i*m*e+-a*m*n+(-v*i+f*a)*m,s},setQuad:function(n,e,s,o,i,a){i===void 0&&(i=!1),a===void 0&&(a=this.quad);var u=this.matrix,h=u[0],f=u[1],v=u[2],m=u[3],g=u[4],x=u[5];return i?(a[0]=Math.floor(n*h+e*v+g+.5),a[1]=Math.floor(n*f+e*m+x+.5),a[2]=Math.floor(n*h+o*v+g+.5),a[3]=Math.floor(n*f+o*m+x+.5),a[4]=Math.floor(s*h+o*v+g+.5),a[5]=Math.floor(s*f+o*m+x+.5),a[6]=Math.floor(s*h+e*v+g+.5),a[7]=Math.floor(s*f+e*m+x+.5)):(a[0]=n*h+e*v+g,a[1]=n*f+e*m+x,a[2]=n*h+o*v+g,a[3]=n*f+o*m+x,a[4]=s*h+o*v+g,a[5]=s*f+o*m+x,a[6]=s*h+e*v+g,a[7]=s*f+e*m+x),a},getX:function(n,e){return n*this.a+e*this.c+this.e},getY:function(n,e){return n*this.b+e*this.d+this.f},getXRound:function(n,e,s){var o=this.getX(n,e);return s&&(o=Math.floor(o+.5)),o},getYRound:function(n,e,s){var o=this.getY(n,e);return s&&(o=Math.floor(o+.5)),o},getCSSMatrix:function(){var n=this.matrix;return"matrix("+n[0]+","+n[1]+","+n[2]+","+n[3]+","+n[4]+","+n[5]+")"},destroy:function(){this.matrix=null,this.quad=null,this.decomposedMatrix=null}});c.exports=r},59715:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -1352,32 +1356,32 @@ * @author Felipe Alfonso <@bitnenfer> * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(37105),p=t(10312),a=t(83419),r=t(31401),n=t(51708),e=t(95643),s=t(87841),l=t(29959),i=t(36899),o=t(26099),u=new a({Extends:e,Mixins:[r.AlphaSingle,r.BlendMode,r.ComputedSize,r.Depth,r.Mask,r.PostPipeline,r.Transform,r.Visible,l],initialize:function(f,v,m,x){e.call(this,f,"Container"),this.list=[],this.exclusive=!0,this.maxSize=-1,this.position=0,this.localTransform=new r.TransformMatrix,this.tempTransformMatrix=new r.TransformMatrix,this._sortKey="",this._sysEvents=f.sys.events,this.scrollFactorX=1,this.scrollFactorY=1,this.initPostPipeline(),this.setPosition(v,m),this.setBlendMode(p.SKIP_CHECK),x&&this.add(x)},originX:{get:function(){return .5}},originY:{get:function(){return .5}},displayOriginX:{get:function(){return this.width*.5}},displayOriginY:{get:function(){return this.height*.5}},setExclusive:function(h){return h===void 0&&(h=!0),this.exclusive=h,this},getBounds:function(h){if(h===void 0&&(h=new s),h.setTo(this.x,this.y,0,0),this.parentContainer){var f=this.parentContainer.getBoundsTransformMatrix(),v=f.transformPoint(this.x,this.y);h.setTo(v.x,v.y,0,0)}if(this.list.length>0){var m=this.list,x=new s,g=!1;h.setEmpty();for(var y=0;y-1},setAll:function(h,f,v,m){return d.SetAll(this.list,h,f,v,m),this},each:function(h,f){var v=[null],m,x=this.list.slice(),g=x.length;for(m=2;m0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}},preDestroy:function(){this.removeAll(!!this.exclusive),this.localTransform.destroy(),this.tempTransformMatrix.destroy(),this.list=[]},onChildDestroyed:function(h){d.Remove(this.list,h),this.exclusive&&(h.parentContainer=null,h.removedFromScene())}});c.exports=u},53584:c=>{/** + */var d=t(37105),p=t(10312),l=t(83419),r=t(31401),n=t(51708),e=t(95643),s=t(87841),o=t(29959),i=t(36899),a=t(26099),u=new l({Extends:e,Mixins:[r.AlphaSingle,r.BlendMode,r.ComputedSize,r.Depth,r.Mask,r.PostPipeline,r.Transform,r.Visible,o],initialize:function(f,v,m,g){e.call(this,f,"Container"),this.list=[],this.exclusive=!0,this.maxSize=-1,this.position=0,this.localTransform=new r.TransformMatrix,this.tempTransformMatrix=new r.TransformMatrix,this._sortKey="",this._sysEvents=f.sys.events,this.scrollFactorX=1,this.scrollFactorY=1,this.initPostPipeline(),this.setPosition(v,m),this.setBlendMode(p.SKIP_CHECK),g&&this.add(g)},originX:{get:function(){return .5}},originY:{get:function(){return .5}},displayOriginX:{get:function(){return this.width*.5}},displayOriginY:{get:function(){return this.height*.5}},setExclusive:function(h){return h===void 0&&(h=!0),this.exclusive=h,this},getBounds:function(h){if(h===void 0&&(h=new s),h.setTo(this.x,this.y,0,0),this.parentContainer){var f=this.parentContainer.getBoundsTransformMatrix(),v=f.transformPoint(this.x,this.y);h.setTo(v.x,v.y,0,0)}if(this.list.length>0){var m=this.list,g=new s,x=!1;h.setEmpty();for(var y=0;y-1},setAll:function(h,f,v,m){return d.SetAll(this.list,h,f,v,m),this},each:function(h,f){var v=[null],m,g=this.list.slice(),x=g.length;for(m=2;m0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}},preDestroy:function(){this.removeAll(!!this.exclusive),this.localTransform.destroy(),this.tempTransformMatrix.destroy(),this.list=[]},onChildDestroyed:function(h){d.Remove(this.list,h),this.exclusive&&(h.parentContainer=null,h.removedFromScene())}});c.exports=u},53584:c=>{/** * @author Richard Davey * @author Felipe Alfonso <@bitnenfer> * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){p.addToRenderList(d);var r=d.list;if(r.length!==0){var n=d.localTransform;a?(n.loadIdentity(),n.multiply(a),n.translate(d.x,d.y),n.rotate(d.rotation),n.scale(d.scaleX,d.scaleY)):n.applyITRS(d.x,d.y,d.rotation,d.scaleX,d.scaleY);var e=d.blendMode!==-1;e||t.setBlendMode(0);var s=d._alpha,l=d.scrollFactorX,i=d.scrollFactorY;d.mask&&d.mask.preRenderCanvas(t,null,p);for(var o=0;o{/** + */var T=function(t,d,p,l){p.addToRenderList(d);var r=d.list;if(r.length!==0){var n=d.localTransform;l?(n.loadIdentity(),n.multiply(l),n.translate(d.x,d.y),n.rotate(d.rotation),n.scale(d.scaleX,d.scaleY)):n.applyITRS(d.x,d.y,d.rotation,d.scaleX,d.scaleY);var e=d.blendMode!==-1;e||t.setBlendMode(0);var s=d._alpha,o=d.scrollFactorX,i=d.scrollFactorY;d.mask&&d.mask.preRenderCanvas(t,null,p);for(var a=0;a{/** * @author Richard Davey * @author Felipe Alfonso <@bitnenfer> * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(25305),p=t(31559),a=t(44603),r=t(23568),n=t(95540);a.register("container",function(e,s){e===void 0&&(e={});var l=r(e,"x",0),i=r(e,"y",0),o=n(e,"children",null),u=new p(this.scene,l,i,o);return s!==void 0&&(e.add=s),d(this.scene,u,e),u})},24961:(c,T,t)=>{/** + */var d=t(25305),p=t(31559),l=t(44603),r=t(23568),n=t(95540);l.register("container",function(e,s){e===void 0&&(e={});var o=r(e,"x",0),i=r(e,"y",0),a=n(e,"children",null),u=new p(this.scene,o,i,a);return s!==void 0&&(e.add=s),d(this.scene,u,e),u})},24961:(c,T,t)=>{/** * @author Richard Davey * @author Felipe Alfonso <@bitnenfer> * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(31559),p=t(39429);p.register("container",function(a,r,n){return this.displayList.add(new d(this.scene,a,r,n))})},29959:(c,T,t)=>{/** + */var d=t(31559),p=t(39429);p.register("container",function(l,r,n){return this.displayList.add(new d(this.scene,l,r,n))})},29959:(c,T,t)=>{/** * @author Richard Davey * @author Felipe Alfonso <@bitnenfer> * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(72249),a=t(53584),c.exports={renderWebGL:p,renderCanvas:a}},72249:c=>{/** + */var d=t(29747),p=d,l=d;p=t(72249),l=t(53584),c.exports={renderWebGL:p,renderCanvas:l}},72249:c=>{/** * @author Richard Davey * @author Felipe Alfonso <@bitnenfer> * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){p.addToRenderList(d);var r=d.list,n=r.length;if(n!==0){var e=d.localTransform;a?(e.loadIdentity(),e.multiply(a),e.translate(d.x,d.y),e.rotate(d.rotation),e.scale(d.scaleX,d.scaleY)):e.applyITRS(d.x,d.y,d.rotation,d.scaleX,d.scaleY),t.pipelines.preBatch(d);var s=d.blendMode!==-1;s||t.setBlendMode(0);for(var l=d.alpha,i=d.scrollFactorX,o=d.scrollFactorY,u=0;u{/** + */var T=function(t,d,p,l){p.addToRenderList(d);var r=d.list,n=r.length;if(n!==0){var e=d.localTransform;l?(e.loadIdentity(),e.multiply(l),e.translate(d.x,d.y),e.rotate(d.rotation),e.scale(d.scaleX,d.scaleY)):e.applyITRS(d.x,d.y,d.rotation,d.scaleX,d.scaleY),t.pipelines.preBatch(d);var s=d.blendMode!==-1;s||t.setBlendMode(0);for(var o=d.alpha,i=d.scrollFactorX,a=d.scrollFactorY,u=0;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -1385,19 +1389,19 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(31401),a=t(441),r=t(95643),n=t(41212),e=t(35846),s=t(44594),l=t(61369),i=new d({Extends:r,Mixins:[p.AlphaSingle,p.BlendMode,p.Depth,p.Origin,p.ScrollFactor,p.Transform,p.Visible,a],initialize:function(u,h,f,v,m,x){r.call(this,u,"DOMElement"),this.parent=u.sys.game.domContainer,this.cache=u.sys.cache.html,this.node,this.transformOnly=!1,this.skewX=0,this.skewY=0,this.rotate3d=new l,this.rotate3dAngle="deg",this.pointerEvents="auto",this.width=0,this.height=0,this.displayWidth=0,this.displayHeight=0,this.handler=this.dispatchNativeEvent.bind(this),this.setPosition(h,f),typeof v=="string"?v[0]==="#"?this.setElement(v.substr(1),m,x):this.createElement(v,m,x):v&&this.setElement(v,m,x),u.sys.events.on(s.SLEEP,this.handleSceneEvent,this),u.sys.events.on(s.WAKE,this.handleSceneEvent,this),u.sys.events.on(s.PRE_RENDER,this.preRender,this)},handleSceneEvent:function(o){var u=this.node,h=u.style;u&&(h.display=o.settings.visible?"block":"none")},setSkew:function(o,u){return o===void 0&&(o=0),u===void 0&&(u=o),this.skewX=o,this.skewY=u,this},setPerspective:function(o){return this.parent.style.perspective=o+"px",this},perspective:{get:function(){return parseFloat(this.parent.style.perspective)},set:function(o){this.parent.style.perspective=o+"px"}},addListener:function(o){if(this.node){o=o.split(" ");for(var u=0;u{/** + */var d=t(83419),p=t(31401),l=t(441),r=t(95643),n=t(41212),e=t(35846),s=t(44594),o=t(61369),i=new d({Extends:r,Mixins:[p.AlphaSingle,p.BlendMode,p.Depth,p.Origin,p.ScrollFactor,p.Transform,p.Visible,l],initialize:function(u,h,f,v,m,g){r.call(this,u,"DOMElement"),this.parent=u.sys.game.domContainer,this.cache=u.sys.cache.html,this.node,this.transformOnly=!1,this.skewX=0,this.skewY=0,this.rotate3d=new o,this.rotate3dAngle="deg",this.pointerEvents="auto",this.width=0,this.height=0,this.displayWidth=0,this.displayHeight=0,this.handler=this.dispatchNativeEvent.bind(this),this.setPosition(h,f),typeof v=="string"?v[0]==="#"?this.setElement(v.substr(1),m,g):this.createElement(v,m,g):v&&this.setElement(v,m,g),u.sys.events.on(s.SLEEP,this.handleSceneEvent,this),u.sys.events.on(s.WAKE,this.handleSceneEvent,this),u.sys.events.on(s.PRE_RENDER,this.preRender,this)},handleSceneEvent:function(a){var u=this.node,h=u.style;u&&(h.display=a.settings.visible?"block":"none")},setSkew:function(a,u){return a===void 0&&(a=0),u===void 0&&(u=a),this.skewX=a,this.skewY=u,this},setPerspective:function(a){return this.parent.style.perspective=a+"px",this},perspective:{get:function(){return parseFloat(this.parent.style.perspective)},set:function(a){this.parent.style.perspective=a+"px"}},addListener:function(a){if(this.node){a=a.split(" ");for(var u=0;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(47407),p=t(95643),a=t(61340),r=new a,n=new a,e=new a,s=function(l,i,o,u){if(i.node){var h=i.node.style,f=i.scene.sys.settings;if(!h||!f.visible||p.RENDER_MASK!==i.renderFlags||i.cameraFilter!==0&&i.cameraFilter&o.id||i.parentContainer&&!i.parentContainer.willRender()){h.display="none";return}var v=i.parentContainer,m=o.alpha*i.alpha;v&&(m*=v.alpha);var x=r,g=n,y=e,S=0,C=0,E="0%",A="0%";u?(S=i.width*i.scaleX*i.originX,C=i.height*i.scaleY*i.originY,g.applyITRS(i.x-S,i.y-C,i.rotation,i.scaleX,i.scaleY),x.copyFrom(o.matrix),x.multiplyWithOffset(u,-o.scrollX*i.scrollFactorX,-o.scrollY*i.scrollFactorY),g.e=i.x-S,g.f=i.y-C,x.multiply(g,y)):(S=i.width*i.originX,C=i.height*i.originY,g.applyITRS(i.x-S,i.y-C,i.rotation,i.scaleX,i.scaleY),x.copyFrom(o.matrix),E=100*i.originX+"%",A=100*i.originY+"%",g.e-=o.scrollX*i.scrollFactorX,g.f-=o.scrollY*i.scrollFactorY,x.multiply(g,y)),i.transformOnly||(h.display="block",h.opacity=m,h.zIndex=i._depth,h.pointerEvents=i.pointerEvents,h.mixBlendMode=d[i._blendMode]),h.transform=y.getCSSMatrix()+" skew("+i.skewX+"rad, "+i.skewY+"rad) rotate3d("+i.rotate3d.x+","+i.rotate3d.y+","+i.rotate3d.z+","+i.rotate3d.w+i.rotate3dAngle+")",h.transformOrigin=E+" "+A}};c.exports=s},2611:(c,T,t)=>{/** + */var d=t(47407),p=t(95643),l=t(61340),r=new l,n=new l,e=new l,s=function(o,i,a,u){if(i.node){var h=i.node.style,f=i.scene.sys.settings;if(!h||!f.visible||p.RENDER_MASK!==i.renderFlags||i.cameraFilter!==0&&i.cameraFilter&a.id||i.parentContainer&&!i.parentContainer.willRender()){h.display="none";return}var v=i.parentContainer,m=a.alpha*i.alpha;v&&(m*=v.alpha);var g=r,x=n,y=e,S=0,C=0,E="0%",M="0%";u?(S=i.width*i.scaleX*i.originX,C=i.height*i.scaleY*i.originY,x.applyITRS(i.x-S,i.y-C,i.rotation,i.scaleX,i.scaleY),g.copyFrom(a.matrix),g.multiplyWithOffset(u,-a.scrollX*i.scrollFactorX,-a.scrollY*i.scrollFactorY),x.e=i.x-S,x.f=i.y-C,g.multiply(x,y)):(S=i.width*i.originX,C=i.height*i.originY,x.applyITRS(i.x,i.y,i.rotation,i.scaleX,i.scaleY),g.copyFrom(a.matrix),E=100*i.originX+"%",M=100*i.originY+"%",x.e-=a.scrollX*i.scrollFactorX,x.f-=a.scrollY*i.scrollFactorY,g.multiply(x,y),y.e-=S,y.f-=C),i.transformOnly||(h.display="block",h.opacity=m,h.zIndex=i._depth,h.pointerEvents=i.pointerEvents,h.mixBlendMode=d[i._blendMode]),h.transform=y.getCSSMatrix()+" skew("+i.skewX+"rad, "+i.skewY+"rad) rotate3d("+i.rotate3d.x+","+i.rotate3d.y+","+i.rotate3d.z+","+i.rotate3d.w+i.rotate3dAngle+")",h.transformOrigin=E+" "+M}};c.exports=s},2611:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(3069),p=t(39429);p.register("dom",function(a,r,n,e,s){var l=new d(this.scene,a,r,n,e,s);return this.displayList.add(l),l})},441:(c,T,t)=>{/** + */var d=t(3069),p=t(39429);p.register("dom",function(l,r,n,e,s){var o=new d(this.scene,l,r,n,e,s);return this.displayList.add(o),o})},441:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(49381),a=t(49381),c.exports={renderWebGL:p,renderCanvas:a}},62980:c=>{/** + */var d=t(29747),p=d,l=d;p=t(49381),l=t(49381),c.exports={renderWebGL:p,renderCanvas:l}},62980:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -1477,19 +1481,19 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(31401),a=t(95643),r=t(64993),n=new d({Extends:a,Mixins:[p.Alpha,p.BlendMode,p.Depth,p.Flip,p.Origin,p.ScrollFactor,p.Size,p.Texture,p.Tint,p.Transform,p.Visible,r],initialize:function(s){a.call(this,s,"Extern")},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(){},render:function(){}});c.exports=n},70217:()=>{},56315:(c,T,t)=>{/** + */var d=t(83419),p=t(31401),l=t(95643),r=t(64993),n=new d({Extends:l,Mixins:[p.Alpha,p.BlendMode,p.Depth,p.Flip,p.Origin,p.ScrollFactor,p.Size,p.Texture,p.Tint,p.Transform,p.Visible,r],initialize:function(s){l.call(this,s,"Extern")},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(){},render:function(){}});c.exports=n},70217:()=>{},56315:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(42421),p=t(39429);p.register("extern",function(){var a=new d(this.scene);return this.displayList.add(a),a})},64993:(c,T,t)=>{/** + */var d=t(42421),p=t(39429);p.register("extern",function(){var l=new d(this.scene);return this.displayList.add(l),l})},64993:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(80287),a=t(70217),c.exports={renderWebGL:p,renderCanvas:a}},80287:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(80287),l=t(70217),c.exports={renderWebGL:p,renderCanvas:l}},80287:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91296),p=function(a,r,n,e){a.pipelines.clear();var s=d(r,n,e).calc;r.render.call(r,a,n,s),a.pipelines.rebind()};c.exports=p},85592:c=>{/** + */var d=t(91296),p=function(l,r,n,e){l.pipelines.clear();var s=d(r,n,e).calc;r.render.call(r,l,n,s),l.pipelines.rebind()};c.exports=p},85592:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -1497,63 +1501,63 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(71911),p=t(83419),a=t(85592),r=t(31401),n=t(8497),e=t(95643),s=t(95540),l=t(35154),i=t(36383),o=t(84503),u=new p({Extends:e,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.Mask,r.Pipeline,r.PostPipeline,r.Transform,r.Visible,r.ScrollFactor,o],initialize:function(f,v){var m=l(v,"x",0),x=l(v,"y",0);e.call(this,f,"Graphics"),this.setPosition(m,x),this.initPipeline(),this.initPostPipeline(),this.displayOriginX=0,this.displayOriginY=0,this.commandBuffer=[],this.defaultFillColor=-1,this.defaultFillAlpha=1,this.defaultStrokeWidth=1,this.defaultStrokeColor=-1,this.defaultStrokeAlpha=1,this._lineWidth=1,this.lineStyle(1,0,0),this.fillStyle(0,0),this.setDefaultStyles(v)},setDefaultStyles:function(h){return l(h,"lineStyle",null)&&(this.defaultStrokeWidth=l(h,"lineStyle.width",1),this.defaultStrokeColor=l(h,"lineStyle.color",16777215),this.defaultStrokeAlpha=l(h,"lineStyle.alpha",1),this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha)),l(h,"fillStyle",null)&&(this.defaultFillColor=l(h,"fillStyle.color",16777215),this.defaultFillAlpha=l(h,"fillStyle.alpha",1),this.fillStyle(this.defaultFillColor,this.defaultFillAlpha)),this},lineStyle:function(h,f,v){return v===void 0&&(v=1),this.commandBuffer.push(a.LINE_STYLE,h,f,v),this._lineWidth=h,this},fillStyle:function(h,f){return f===void 0&&(f=1),this.commandBuffer.push(a.FILL_STYLE,h,f),this},fillGradientStyle:function(h,f,v,m,x,g,y,S){return x===void 0&&(x=1),g===void 0&&(g=x),y===void 0&&(y=x),S===void 0&&(S=x),this.commandBuffer.push(a.GRADIENT_FILL_STYLE,x,g,y,S,h,f,v,m),this},lineGradientStyle:function(h,f,v,m,x,g){return g===void 0&&(g=1),this.commandBuffer.push(a.GRADIENT_LINE_STYLE,h,g,f,v,m,x),this},beginPath:function(){return this.commandBuffer.push(a.BEGIN_PATH),this},closePath:function(){return this.commandBuffer.push(a.CLOSE_PATH),this},fillPath:function(){return this.commandBuffer.push(a.FILL_PATH),this},fill:function(){return this.commandBuffer.push(a.FILL_PATH),this},strokePath:function(){return this.commandBuffer.push(a.STROKE_PATH),this},stroke:function(){return this.commandBuffer.push(a.STROKE_PATH),this},fillCircleShape:function(h){return this.fillCircle(h.x,h.y,h.radius)},strokeCircleShape:function(h){return this.strokeCircle(h.x,h.y,h.radius)},fillCircle:function(h,f,v){return this.beginPath(),this.arc(h,f,v,0,i.PI2),this.fillPath(),this},strokeCircle:function(h,f,v){return this.beginPath(),this.arc(h,f,v,0,i.PI2),this.strokePath(),this},fillRectShape:function(h){return this.fillRect(h.x,h.y,h.width,h.height)},strokeRectShape:function(h){return this.strokeRect(h.x,h.y,h.width,h.height)},fillRect:function(h,f,v,m){return this.commandBuffer.push(a.FILL_RECT,h,f,v,m),this},strokeRect:function(h,f,v,m){var x=this._lineWidth/2,g=h-x,y=h+x;return this.beginPath(),this.moveTo(h,f),this.lineTo(h,f+m),this.strokePath(),this.beginPath(),this.moveTo(h+v,f),this.lineTo(h+v,f+m),this.strokePath(),this.beginPath(),this.moveTo(g,f),this.lineTo(y+v,f),this.strokePath(),this.beginPath(),this.moveTo(g,f+m),this.lineTo(y+v,f+m),this.strokePath(),this},fillRoundedRect:function(h,f,v,m,x){x===void 0&&(x=20);var g=x,y=x,S=x,C=x;typeof x!="number"&&(g=s(x,"tl",20),y=s(x,"tr",20),S=s(x,"bl",20),C=s(x,"br",20));var E=g>=0,A=y>=0,P=S>=0,M=C>=0;return g=Math.abs(g),y=Math.abs(y),S=Math.abs(S),C=Math.abs(C),this.beginPath(),this.moveTo(h+g,f),this.lineTo(h+v-y,f),A?this.arc(h+v-y,f+y,y,-i.TAU,0):this.arc(h+v,f,y,Math.PI,i.TAU,!0),this.lineTo(h+v,f+m-C),M?this.arc(h+v-C,f+m-C,C,0,i.TAU):this.arc(h+v,f+m,C,-i.TAU,Math.PI,!0),this.lineTo(h+S,f+m),P?this.arc(h+S,f+m-S,S,i.TAU,Math.PI):this.arc(h,f+m,S,0,-i.TAU,!0),this.lineTo(h,f+g),E?this.arc(h+g,f+g,g,-Math.PI,-i.TAU):this.arc(h,f,g,i.TAU,0,!0),this.fillPath(),this},strokeRoundedRect:function(h,f,v,m,x){x===void 0&&(x=20);var g=x,y=x,S=x,C=x,E=Math.min(v,m)/2;typeof x!="number"&&(g=s(x,"tl",20),y=s(x,"tr",20),S=s(x,"bl",20),C=s(x,"br",20));var A=g>=0,P=y>=0,M=S>=0,F=C>=0;return g=Math.min(Math.abs(g),E),y=Math.min(Math.abs(y),E),S=Math.min(Math.abs(S),E),C=Math.min(Math.abs(C),E),this.beginPath(),this.moveTo(h+g,f),this.lineTo(h+v-y,f),this.moveTo(h+v-y,f),P?this.arc(h+v-y,f+y,y,-i.TAU,0):this.arc(h+v,f,y,Math.PI,i.TAU,!0),this.lineTo(h+v,f+m-C),this.moveTo(h+v,f+m-C),F?this.arc(h+v-C,f+m-C,C,0,i.TAU):this.arc(h+v,f+m,C,-i.TAU,Math.PI,!0),this.lineTo(h+S,f+m),this.moveTo(h+S,f+m),M?this.arc(h+S,f+m-S,S,i.TAU,Math.PI):this.arc(h,f+m,S,0,-i.TAU,!0),this.lineTo(h,f+g),this.moveTo(h,f+g),A?this.arc(h+g,f+g,g,-Math.PI,-i.TAU):this.arc(h,f,g,i.TAU,0,!0),this.strokePath(),this},fillPointShape:function(h,f){return this.fillPoint(h.x,h.y,f)},fillPoint:function(h,f,v){return!v||v<1?v=1:(h-=v/2,f-=v/2),this.commandBuffer.push(a.FILL_RECT,h,f,v,v),this},fillTriangleShape:function(h){return this.fillTriangle(h.x1,h.y1,h.x2,h.y2,h.x3,h.y3)},strokeTriangleShape:function(h){return this.strokeTriangle(h.x1,h.y1,h.x2,h.y2,h.x3,h.y3)},fillTriangle:function(h,f,v,m,x,g){return this.commandBuffer.push(a.FILL_TRIANGLE,h,f,v,m,x,g),this},strokeTriangle:function(h,f,v,m,x,g){return this.commandBuffer.push(a.STROKE_TRIANGLE,h,f,v,m,x,g),this},strokeLineShape:function(h){return this.lineBetween(h.x1,h.y1,h.x2,h.y2)},lineBetween:function(h,f,v,m){return this.beginPath(),this.moveTo(h,f),this.lineTo(v,m),this.strokePath(),this},lineTo:function(h,f){return this.commandBuffer.push(a.LINE_TO,h,f),this},moveTo:function(h,f){return this.commandBuffer.push(a.MOVE_TO,h,f),this},strokePoints:function(h,f,v,m){f===void 0&&(f=!1),v===void 0&&(v=!1),m===void 0&&(m=h.length),this.beginPath(),this.moveTo(h[0].x,h[0].y);for(var x=1;x-1&&this.fillStyle(this.defaultFillColor,this.defaultFillAlpha),this.defaultStrokeColor>-1&&this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha),this},generateTexture:function(h,f,v){var m=this.scene.sys,x=m.game.renderer;f===void 0&&(f=m.scale.width),v===void 0&&(v=m.scale.height),u.TargetCamera.setScene(this.scene),u.TargetCamera.setViewport(0,0,f,v),u.TargetCamera.scrollX=this.x,u.TargetCamera.scrollY=this.y;var g,y,S={willReadFrequently:!0};if(typeof h=="string")if(m.textures.exists(h)){g=m.textures.get(h);var C=g.getSourceImage();C instanceof HTMLCanvasElement&&(y=C.getContext("2d",S))}else g=m.textures.createCanvas(h,f,v),y=g.getSourceImage().getContext("2d",S);else h instanceof HTMLCanvasElement&&(y=h.getContext("2d",S));return y&&(this.renderCanvas(x,this,u.TargetCamera,null,y,!1),g&&g.refresh()),this},preDestroy:function(){this.commandBuffer=[]}});u.TargetCamera=new d,c.exports=u},32768:(c,T,t)=>{/** + */var d=t(71911),p=t(83419),l=t(85592),r=t(31401),n=t(8497),e=t(95643),s=t(95540),o=t(35154),i=t(36383),a=t(84503),u=new p({Extends:e,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.Mask,r.Pipeline,r.PostPipeline,r.Transform,r.Visible,r.ScrollFactor,a],initialize:function(f,v){var m=o(v,"x",0),g=o(v,"y",0);e.call(this,f,"Graphics"),this.setPosition(m,g),this.initPipeline(),this.initPostPipeline(),this.displayOriginX=0,this.displayOriginY=0,this.commandBuffer=[],this.defaultFillColor=-1,this.defaultFillAlpha=1,this.defaultStrokeWidth=1,this.defaultStrokeColor=-1,this.defaultStrokeAlpha=1,this._lineWidth=1,this.lineStyle(1,0,0),this.fillStyle(0,0),this.setDefaultStyles(v)},setDefaultStyles:function(h){return o(h,"lineStyle",null)&&(this.defaultStrokeWidth=o(h,"lineStyle.width",1),this.defaultStrokeColor=o(h,"lineStyle.color",16777215),this.defaultStrokeAlpha=o(h,"lineStyle.alpha",1),this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha)),o(h,"fillStyle",null)&&(this.defaultFillColor=o(h,"fillStyle.color",16777215),this.defaultFillAlpha=o(h,"fillStyle.alpha",1),this.fillStyle(this.defaultFillColor,this.defaultFillAlpha)),this},lineStyle:function(h,f,v){return v===void 0&&(v=1),this.commandBuffer.push(l.LINE_STYLE,h,f,v),this._lineWidth=h,this},fillStyle:function(h,f){return f===void 0&&(f=1),this.commandBuffer.push(l.FILL_STYLE,h,f),this},fillGradientStyle:function(h,f,v,m,g,x,y,S){return g===void 0&&(g=1),x===void 0&&(x=g),y===void 0&&(y=g),S===void 0&&(S=g),this.commandBuffer.push(l.GRADIENT_FILL_STYLE,g,x,y,S,h,f,v,m),this},lineGradientStyle:function(h,f,v,m,g,x){return x===void 0&&(x=1),this.commandBuffer.push(l.GRADIENT_LINE_STYLE,h,x,f,v,m,g),this},beginPath:function(){return this.commandBuffer.push(l.BEGIN_PATH),this},closePath:function(){return this.commandBuffer.push(l.CLOSE_PATH),this},fillPath:function(){return this.commandBuffer.push(l.FILL_PATH),this},fill:function(){return this.commandBuffer.push(l.FILL_PATH),this},strokePath:function(){return this.commandBuffer.push(l.STROKE_PATH),this},stroke:function(){return this.commandBuffer.push(l.STROKE_PATH),this},fillCircleShape:function(h){return this.fillCircle(h.x,h.y,h.radius)},strokeCircleShape:function(h){return this.strokeCircle(h.x,h.y,h.radius)},fillCircle:function(h,f,v){return this.beginPath(),this.arc(h,f,v,0,i.PI2),this.fillPath(),this},strokeCircle:function(h,f,v){return this.beginPath(),this.arc(h,f,v,0,i.PI2),this.strokePath(),this},fillRectShape:function(h){return this.fillRect(h.x,h.y,h.width,h.height)},strokeRectShape:function(h){return this.strokeRect(h.x,h.y,h.width,h.height)},fillRect:function(h,f,v,m){return this.commandBuffer.push(l.FILL_RECT,h,f,v,m),this},strokeRect:function(h,f,v,m){var g=this._lineWidth/2,x=h-g,y=h+g;return this.beginPath(),this.moveTo(h,f),this.lineTo(h,f+m),this.strokePath(),this.beginPath(),this.moveTo(h+v,f),this.lineTo(h+v,f+m),this.strokePath(),this.beginPath(),this.moveTo(x,f),this.lineTo(y+v,f),this.strokePath(),this.beginPath(),this.moveTo(x,f+m),this.lineTo(y+v,f+m),this.strokePath(),this},fillRoundedRect:function(h,f,v,m,g){g===void 0&&(g=20);var x=g,y=g,S=g,C=g;typeof g!="number"&&(x=s(g,"tl",20),y=s(g,"tr",20),S=s(g,"bl",20),C=s(g,"br",20));var E=x>=0,M=y>=0,P=S>=0,A=C>=0;return x=Math.abs(x),y=Math.abs(y),S=Math.abs(S),C=Math.abs(C),this.beginPath(),this.moveTo(h+x,f),this.lineTo(h+v-y,f),M?this.arc(h+v-y,f+y,y,-i.TAU,0):this.arc(h+v,f,y,Math.PI,i.TAU,!0),this.lineTo(h+v,f+m-C),A?this.arc(h+v-C,f+m-C,C,0,i.TAU):this.arc(h+v,f+m,C,-i.TAU,Math.PI,!0),this.lineTo(h+S,f+m),P?this.arc(h+S,f+m-S,S,i.TAU,Math.PI):this.arc(h,f+m,S,0,-i.TAU,!0),this.lineTo(h,f+x),E?this.arc(h+x,f+x,x,-Math.PI,-i.TAU):this.arc(h,f,x,i.TAU,0,!0),this.fillPath(),this},strokeRoundedRect:function(h,f,v,m,g){g===void 0&&(g=20);var x=g,y=g,S=g,C=g,E=Math.min(v,m)/2;typeof g!="number"&&(x=s(g,"tl",20),y=s(g,"tr",20),S=s(g,"bl",20),C=s(g,"br",20));var M=x>=0,P=y>=0,A=S>=0,R=C>=0;return x=Math.min(Math.abs(x),E),y=Math.min(Math.abs(y),E),S=Math.min(Math.abs(S),E),C=Math.min(Math.abs(C),E),this.beginPath(),this.moveTo(h+x,f),this.lineTo(h+v-y,f),this.moveTo(h+v-y,f),P?this.arc(h+v-y,f+y,y,-i.TAU,0):this.arc(h+v,f,y,Math.PI,i.TAU,!0),this.lineTo(h+v,f+m-C),this.moveTo(h+v,f+m-C),R?this.arc(h+v-C,f+m-C,C,0,i.TAU):this.arc(h+v,f+m,C,-i.TAU,Math.PI,!0),this.lineTo(h+S,f+m),this.moveTo(h+S,f+m),A?this.arc(h+S,f+m-S,S,i.TAU,Math.PI):this.arc(h,f+m,S,0,-i.TAU,!0),this.lineTo(h,f+x),this.moveTo(h,f+x),M?this.arc(h+x,f+x,x,-Math.PI,-i.TAU):this.arc(h,f,x,i.TAU,0,!0),this.strokePath(),this},fillPointShape:function(h,f){return this.fillPoint(h.x,h.y,f)},fillPoint:function(h,f,v){return!v||v<1?v=1:(h-=v/2,f-=v/2),this.commandBuffer.push(l.FILL_RECT,h,f,v,v),this},fillTriangleShape:function(h){return this.fillTriangle(h.x1,h.y1,h.x2,h.y2,h.x3,h.y3)},strokeTriangleShape:function(h){return this.strokeTriangle(h.x1,h.y1,h.x2,h.y2,h.x3,h.y3)},fillTriangle:function(h,f,v,m,g,x){return this.commandBuffer.push(l.FILL_TRIANGLE,h,f,v,m,g,x),this},strokeTriangle:function(h,f,v,m,g,x){return this.commandBuffer.push(l.STROKE_TRIANGLE,h,f,v,m,g,x),this},strokeLineShape:function(h){return this.lineBetween(h.x1,h.y1,h.x2,h.y2)},lineBetween:function(h,f,v,m){return this.beginPath(),this.moveTo(h,f),this.lineTo(v,m),this.strokePath(),this},lineTo:function(h,f){return this.commandBuffer.push(l.LINE_TO,h,f),this},moveTo:function(h,f){return this.commandBuffer.push(l.MOVE_TO,h,f),this},strokePoints:function(h,f,v,m){f===void 0&&(f=!1),v===void 0&&(v=!1),m===void 0&&(m=h.length),this.beginPath(),this.moveTo(h[0].x,h[0].y);for(var g=1;g-1&&this.fillStyle(this.defaultFillColor,this.defaultFillAlpha),this.defaultStrokeColor>-1&&this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha),this},generateTexture:function(h,f,v){var m=this.scene.sys,g=m.game.renderer;f===void 0&&(f=m.scale.width),v===void 0&&(v=m.scale.height),u.TargetCamera.setScene(this.scene),u.TargetCamera.setViewport(0,0,f,v),u.TargetCamera.scrollX=this.x,u.TargetCamera.scrollY=this.y;var x,y,S={willReadFrequently:!0};if(typeof h=="string")if(m.textures.exists(h)){x=m.textures.get(h);var C=x.getSourceImage();C instanceof HTMLCanvasElement&&(y=C.getContext("2d",S))}else x=m.textures.createCanvas(h,f,v),y=x.getSourceImage().getContext("2d",S);else h instanceof HTMLCanvasElement&&(y=h.getContext("2d",S));return y&&(this.renderCanvas(g,this,u.TargetCamera,null,y,!1),x&&x.refresh()),this},preDestroy:function(){this.commandBuffer=[]}});u.TargetCamera=new d,c.exports=u},32768:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(85592),p=t(20926),a=function(r,n,e,s,l,i){var o=n.commandBuffer,u=o.length,h=l||r.currentContext;if(!(u===0||!p(r,h,n,e,s))){e.addToRenderList(n);var f=1,v=1,m=0,x=0,g=1,y=0,S=0,C=0;h.beginPath();for(var E=0;E>>16,S=(m&65280)>>>8,C=m&255,h.strokeStyle="rgba("+y+","+S+","+C+","+f+")",h.lineWidth=g,E+=3;break;case d.FILL_STYLE:x=o[E+1],v=o[E+2],y=(x&16711680)>>>16,S=(x&65280)>>>8,C=x&255,h.fillStyle="rgba("+y+","+S+","+C+","+v+")",E+=2;break;case d.BEGIN_PATH:h.beginPath();break;case d.CLOSE_PATH:h.closePath();break;case d.FILL_PATH:i||h.fill();break;case d.STROKE_PATH:i||h.stroke();break;case d.FILL_RECT:i?h.rect(o[E+1],o[E+2],o[E+3],o[E+4]):h.fillRect(o[E+1],o[E+2],o[E+3],o[E+4]),E+=4;break;case d.FILL_TRIANGLE:h.beginPath(),h.moveTo(o[E+1],o[E+2]),h.lineTo(o[E+3],o[E+4]),h.lineTo(o[E+5],o[E+6]),h.closePath(),i||h.fill(),E+=6;break;case d.STROKE_TRIANGLE:h.beginPath(),h.moveTo(o[E+1],o[E+2]),h.lineTo(o[E+3],o[E+4]),h.lineTo(o[E+5],o[E+6]),h.closePath(),i||h.stroke(),E+=6;break;case d.LINE_TO:h.lineTo(o[E+1],o[E+2]),E+=2;break;case d.MOVE_TO:h.moveTo(o[E+1],o[E+2]),E+=2;break;case d.LINE_FX_TO:h.lineTo(o[E+1],o[E+2]),E+=5;break;case d.MOVE_FX_TO:h.moveTo(o[E+1],o[E+2]),E+=5;break;case d.SAVE:h.save();break;case d.RESTORE:h.restore();break;case d.TRANSLATE:h.translate(o[E+1],o[E+2]),E+=2;break;case d.SCALE:h.scale(o[E+1],o[E+2]),E+=2;break;case d.ROTATE:h.rotate(o[E+1]),E+=1;break;case d.GRADIENT_FILL_STYLE:E+=5;break;case d.GRADIENT_LINE_STYLE:E+=6;break}}h.restore()}};c.exports=a},87079:(c,T,t)=>{/** + */var d=t(85592),p=t(20926),l=function(r,n,e,s,o,i){var a=n.commandBuffer,u=a.length,h=o||r.currentContext;if(!(u===0||!p(r,h,n,e,s))){e.addToRenderList(n);var f=1,v=1,m=0,g=0,x=1,y=0,S=0,C=0;h.beginPath();for(var E=0;E>>16,S=(m&65280)>>>8,C=m&255,h.strokeStyle="rgba("+y+","+S+","+C+","+f+")",h.lineWidth=x,E+=3;break;case d.FILL_STYLE:g=a[E+1],v=a[E+2],y=(g&16711680)>>>16,S=(g&65280)>>>8,C=g&255,h.fillStyle="rgba("+y+","+S+","+C+","+v+")",E+=2;break;case d.BEGIN_PATH:h.beginPath();break;case d.CLOSE_PATH:h.closePath();break;case d.FILL_PATH:i||h.fill();break;case d.STROKE_PATH:i||h.stroke();break;case d.FILL_RECT:i?h.rect(a[E+1],a[E+2],a[E+3],a[E+4]):h.fillRect(a[E+1],a[E+2],a[E+3],a[E+4]),E+=4;break;case d.FILL_TRIANGLE:h.beginPath(),h.moveTo(a[E+1],a[E+2]),h.lineTo(a[E+3],a[E+4]),h.lineTo(a[E+5],a[E+6]),h.closePath(),i||h.fill(),E+=6;break;case d.STROKE_TRIANGLE:h.beginPath(),h.moveTo(a[E+1],a[E+2]),h.lineTo(a[E+3],a[E+4]),h.lineTo(a[E+5],a[E+6]),h.closePath(),i||h.stroke(),E+=6;break;case d.LINE_TO:h.lineTo(a[E+1],a[E+2]),E+=2;break;case d.MOVE_TO:h.moveTo(a[E+1],a[E+2]),E+=2;break;case d.LINE_FX_TO:h.lineTo(a[E+1],a[E+2]),E+=5;break;case d.MOVE_FX_TO:h.moveTo(a[E+1],a[E+2]),E+=5;break;case d.SAVE:h.save();break;case d.RESTORE:h.restore();break;case d.TRANSLATE:h.translate(a[E+1],a[E+2]),E+=2;break;case d.SCALE:h.scale(a[E+1],a[E+2]),E+=2;break;case d.ROTATE:h.rotate(a[E+1]),E+=1;break;case d.GRADIENT_FILL_STYLE:E+=5;break;case d.GRADIENT_LINE_STYLE:E+=6;break}}h.restore()}};c.exports=l},87079:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(44603),p=t(43831);d.register("graphics",function(a,r){a===void 0&&(a={}),r!==void 0&&(a.add=r);var n=new p(this.scene,a);return a.add&&this.scene.sys.displayList.add(n),n})},1201:(c,T,t)=>{/** + */var d=t(44603),p=t(43831);d.register("graphics",function(l,r){l===void 0&&(l={}),r!==void 0&&(l.add=r);var n=new p(this.scene,l);return l.add&&this.scene.sys.displayList.add(n),n})},1201:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(43831),p=t(39429);p.register("graphics",function(a){return this.displayList.add(new d(this.scene,a))})},84503:(c,T,t)=>{/** + */var d=t(43831),p=t(39429);p.register("graphics",function(l){return this.displayList.add(new d(this.scene,l))})},84503:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(77545),a=t(32768),a=t(32768),c.exports={renderWebGL:p,renderCanvas:a}},77545:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(77545),l=t(32768),l=t(32768),c.exports={renderWebGL:p,renderCanvas:l}},77545:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(85592),p=t(91296),a=t(61340),r=t(70554),n=function(o,u,h){this.x=o,this.y=u,this.width=h},e=function(o,u,h){this.points=[],this.pointsLength=1,this.points[0]=new n(o,u,h)},s=[],l=new a,i=function(o,u,h,f){if(u.commandBuffer.length!==0){h.addToRenderList(u);var v=o.pipelines.set(u.pipeline,u);o.pipelines.preBatch(u);for(var m=p(u,h,f).calc,x=l.loadIdentity(),g=u.commandBuffer,y=h.alpha*u.alpha,S=1,C=v.fillTint,E=v.strokeTint,A=0,P=0,M=0,F=.01,L=Math.PI*2,b,B=[],N=0,X=!0,D=null,I=r.getTintAppendFloatAlpha,R=0;R0&&(j=-L+j%L):j>L?j=L:j<0&&(j=L+j%L),D===null&&(D=new e(_+Math.cos(at)*ot,rt+Math.sin(at)*ot,S),B.push(D),Z+=F);Z<1+it;)M=j*Z+at,A=_+Math.cos(M)*ot,P=rt+Math.sin(M)*ot,D.points.push(new n(A,P,S)),Z+=F;M=j+at,A=_+Math.cos(M)*ot,P=rt+Math.sin(M)*ot,D.points.push(new n(A,P,S));break}case d.FILL_RECT:{v.batchFillRect(g[++R],g[++R],g[++R],g[++R],x,m);break}case d.FILL_TRIANGLE:{v.batchFillTriangle(g[++R],g[++R],g[++R],g[++R],g[++R],g[++R],x,m);break}case d.STROKE_TRIANGLE:{v.batchStrokeTriangle(g[++R],g[++R],g[++R],g[++R],g[++R],g[++R],S,x,m);break}case d.LINE_TO:{D!==null?D.points.push(new n(g[++R],g[++R],S)):(D=new e(g[++R],g[++R],S),B.push(D));break}case d.MOVE_TO:{D=new e(g[++R],g[++R],S),B.push(D);break}case d.SAVE:{s.push(x.copyToArray());break}case d.RESTORE:{x.copyFromArray(s.pop());break}case d.TRANSLATE:{_=g[++R],rt=g[++R],x.translate(_,rt);break}case d.SCALE:{_=g[++R],rt=g[++R],x.scale(_,rt);break}case d.ROTATE:{x.rotate(g[++R]);break}}o.pipelines.postBatch(u)}};c.exports=i},26479:(c,T,t)=>{/** + */var d=t(85592),p=t(91296),l=t(61340),r=t(70554),n=function(a,u,h){this.x=a,this.y=u,this.width=h},e=function(a,u,h){this.points=[],this.pointsLength=1,this.points[0]=new n(a,u,h)},s=[],o=new l,i=function(a,u,h,f){if(u.commandBuffer.length!==0){h.addToRenderList(u);var v=a.pipelines.set(u.pipeline,u);a.pipelines.preBatch(u);for(var m=p(u,h,f).calc,g=o.loadIdentity(),x=u.commandBuffer,y=h.alpha*u.alpha,S=1,C=v.fillTint,E=v.strokeTint,M=0,P=0,A=0,R=.01,F=Math.PI*2,D,w=[],G=0,N=!0,b=null,B=r.getTintAppendFloatAlpha,O=0;O0&&(Q=-F+Q%F):Q>F?Q=F:Q<0&&(Q=F+Q%F),b===null&&(b=new e(_+Math.cos(ot)*at,rt+Math.sin(ot)*at,S),w.push(b),Z+=R);Z<1+st;)A=Q*Z+ot,M=_+Math.cos(A)*at,P=rt+Math.sin(A)*at,b.points.push(new n(M,P,S)),Z+=R;A=Q+ot,M=_+Math.cos(A)*at,P=rt+Math.sin(A)*at,b.points.push(new n(M,P,S));break}case d.FILL_RECT:{v.batchFillRect(x[++O],x[++O],x[++O],x[++O],g,m);break}case d.FILL_TRIANGLE:{v.batchFillTriangle(x[++O],x[++O],x[++O],x[++O],x[++O],x[++O],g,m);break}case d.STROKE_TRIANGLE:{v.batchStrokeTriangle(x[++O],x[++O],x[++O],x[++O],x[++O],x[++O],S,g,m);break}case d.LINE_TO:{b!==null?b.points.push(new n(x[++O],x[++O],S)):(b=new e(x[++O],x[++O],S),w.push(b));break}case d.MOVE_TO:{b=new e(x[++O],x[++O],S),w.push(b);break}case d.SAVE:{s.push(g.copyToArray());break}case d.RESTORE:{g.copyFromArray(s.pop());break}case d.TRANSLATE:{_=x[++O],rt=x[++O],g.translate(_,rt);break}case d.SCALE:{_=x[++O],rt=x[++O],g.scale(_,rt);break}case d.ROTATE:{g.rotate(x[++O]);break}}a.pipelines.postBatch(u)}};c.exports=i},26479:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(61061),p=t(83419),a=t(51708),r=t(50792),n=t(46710),e=t(95540),s=t(35154),l=t(97022),i=t(41212),o=t(88492),u=t(35072),h=t(68287),f=new p({Extends:r,initialize:function(m,x,g){r.call(this),g?x&&!Array.isArray(x)&&(x=[x]):Array.isArray(x)?i(x[0])&&(g=x,x=null):i(x)&&(g=x,x=null),this.scene=m,this.children=new u,this.isParent=!0,this.type="Group",this.classType=e(g,"classType",h),this.name=e(g,"name",""),this.active=e(g,"active",!0),this.maxSize=e(g,"maxSize",-1),this.defaultKey=e(g,"defaultKey",null),this.defaultFrame=e(g,"defaultFrame",null),this.runChildUpdate=e(g,"runChildUpdate",!1),this.createCallback=e(g,"createCallback",null),this.removeCallback=e(g,"removeCallback",null),this.createMultipleCallback=e(g,"createMultipleCallback",null),this.internalCreateCallback=e(g,"internalCreateCallback",null),this.internalRemoveCallback=e(g,"internalRemoveCallback",null),x&&this.addMultiple(x),g&&this.createMultiple(g),this.on(a.ADDED_TO_SCENE,this.addedToScene,this),this.on(a.REMOVED_FROM_SCENE,this.removedFromScene,this)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},create:function(v,m,x,g,y,S){if(v===void 0&&(v=0),m===void 0&&(m=0),x===void 0&&(x=this.defaultKey),g===void 0&&(g=this.defaultFrame),y===void 0&&(y=!0),S===void 0&&(S=!0),this.isFull())return null;var C=new this.classType(this.scene,v,m,x,g);return C.addToDisplayList(this.scene.sys.displayList),C.addToUpdateList(),C.visible=y,C.setActive(S),this.add(C),C},createMultiple:function(v){if(this.isFull())return[];Array.isArray(v)||(v=[v]);var m=[];if(v[0].key)for(var x=0;x=0;M--)if(P=L[M],P.active===x){if(F++,F===m)break}else P=null;return P?(typeof y=="number"&&(P.x=y),typeof S=="number"&&(P.y=S),P):g?this.create(y,S,C,E,A):null},get:function(v,m,x,g,y){return this.getFirst(!1,!0,v,m,x,g,y)},getFirstAlive:function(v,m,x,g,y,S){return this.getFirst(!0,v,m,x,g,y,S)},getFirstDead:function(v,m,x,g,y,S){return this.getFirst(!1,v,m,x,g,y,S)},playAnimation:function(v,m){return d.PlayAnimation(this.children.entries,v,m),this},isFull:function(){return this.maxSize===-1?!1:this.children.size>=this.maxSize},countActive:function(v){v===void 0&&(v=!0);for(var m=0,x=0;x{/** + */var d=t(61061),p=t(83419),l=t(51708),r=t(50792),n=t(46710),e=t(95540),s=t(35154),o=t(97022),i=t(41212),a=t(88492),u=t(35072),h=t(68287),f=new p({Extends:r,initialize:function(m,g,x){r.call(this),x?g&&!Array.isArray(g)&&(g=[g]):Array.isArray(g)?i(g[0])&&(x=g,g=null):i(g)&&(x=g,g=null),this.scene=m,this.children=new u,this.isParent=!0,this.type="Group",this.classType=e(x,"classType",h),this.name=e(x,"name",""),this.active=e(x,"active",!0),this.maxSize=e(x,"maxSize",-1),this.defaultKey=e(x,"defaultKey",null),this.defaultFrame=e(x,"defaultFrame",null),this.runChildUpdate=e(x,"runChildUpdate",!1),this.createCallback=e(x,"createCallback",null),this.removeCallback=e(x,"removeCallback",null),this.createMultipleCallback=e(x,"createMultipleCallback",null),this.internalCreateCallback=e(x,"internalCreateCallback",null),this.internalRemoveCallback=e(x,"internalRemoveCallback",null),g&&this.addMultiple(g),x&&this.createMultiple(x),this.on(l.ADDED_TO_SCENE,this.addedToScene,this),this.on(l.REMOVED_FROM_SCENE,this.removedFromScene,this)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},create:function(v,m,g,x,y,S){if(v===void 0&&(v=0),m===void 0&&(m=0),g===void 0&&(g=this.defaultKey),x===void 0&&(x=this.defaultFrame),y===void 0&&(y=!0),S===void 0&&(S=!0),this.isFull())return null;var C=new this.classType(this.scene,v,m,g,x);return C.addToDisplayList(this.scene.sys.displayList),C.addToUpdateList(),C.visible=y,C.setActive(S),this.add(C),C},createMultiple:function(v){if(this.isFull())return[];Array.isArray(v)||(v=[v]);var m=[];if(v[0].key)for(var g=0;g=0;A--)if(P=F[A],P.active===g){if(R++,R===m)break}else P=null;return P?(typeof y=="number"&&(P.x=y),typeof S=="number"&&(P.y=S),P):x?this.create(y,S,C,E,M):null},get:function(v,m,g,x,y){return this.getFirst(!1,!0,v,m,g,x,y)},getFirstAlive:function(v,m,g,x,y,S){return this.getFirst(!0,v,m,g,x,y,S)},getFirstDead:function(v,m,g,x,y,S){return this.getFirst(!1,v,m,g,x,y,S)},playAnimation:function(v,m){return d.PlayAnimation(this.children.entries,v,m),this},isFull:function(){return this.maxSize===-1?!1:this.children.size>=this.maxSize},countActive:function(v){v===void 0&&(v=!0);for(var m=0,g=0;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(44603),p=t(26479);d.register("group",function(a){return new p(this.scene,null,a)})},3385:(c,T,t)=>{/** + */var d=t(44603),p=t(26479);d.register("group",function(l){return new p(this.scene,null,l)})},3385:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(26479),p=t(39429);p.register("group",function(a,r){return this.updateList.add(new d(this.scene,a,r))})},88571:(c,T,t)=>{/** + */var d=t(26479),p=t(39429);p.register("group",function(l,r){return this.updateList.add(new d(this.scene,l,r))})},88571:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(31401),a=t(95643),r=t(59819),n=new d({Extends:a,Mixins:[p.Alpha,p.BlendMode,p.Depth,p.Flip,p.GetBounds,p.Mask,p.Origin,p.Pipeline,p.PostPipeline,p.ScrollFactor,p.Size,p.TextureCrop,p.Tint,p.Transform,p.Visible,r],initialize:function(s,l,i,o,u){a.call(this,s,"Image"),this._crop=this.resetCropObject(),this.setTexture(o,u),this.setPosition(l,i),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)}});c.exports=n},40652:c=>{/** + */var d=t(83419),p=t(31401),l=t(95643),r=t(59819),n=new d({Extends:l,Mixins:[p.Alpha,p.BlendMode,p.Depth,p.Flip,p.GetBounds,p.Mask,p.Origin,p.Pipeline,p.PostPipeline,p.ScrollFactor,p.Size,p.TextureCrop,p.Tint,p.Transform,p.Visible,r],initialize:function(s,o,i,a,u){l.call(this,s,"Image"),this._crop=this.resetCropObject(),this.setTexture(a,u),this.setPosition(o,i),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)}});c.exports=n},40652:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){p.addToRenderList(d),t.batchSprite(d,d.frame,p,a)};c.exports=T},82459:(c,T,t)=>{/** + */var T=function(t,d,p,l){p.addToRenderList(d),t.batchSprite(d,d.frame,p,l)};c.exports=T},82459:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(25305),p=t(44603),a=t(23568),r=t(88571);p.register("image",function(n,e){n===void 0&&(n={});var s=a(n,"key",null),l=a(n,"frame",null),i=new r(this.scene,0,0,s,l);return e!==void 0&&(n.add=e),d(this.scene,i,n),i})},2117:(c,T,t)=>{/** + */var d=t(25305),p=t(44603),l=t(23568),r=t(88571);p.register("image",function(n,e){n===void 0&&(n={});var s=l(n,"key",null),o=l(n,"frame",null),i=new r(this.scene,0,0,s,o);return e!==void 0&&(n.add=e),d(this.scene,i,n),i})},2117:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(88571),p=t(39429);p.register("image",function(a,r,n,e){return this.displayList.add(new d(this.scene,a,r,n,e))})},59819:(c,T,t)=>{/** + */var d=t(88571),p=t(39429);p.register("image",function(l,r,n,e){return this.displayList.add(new d(this.scene,l,r,n,e))})},59819:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(99517),a=t(40652),c.exports={renderWebGL:p,renderCanvas:a}},99517:c=>{/** + */var d=t(29747),p=d,l=d;p=t(99517),l=t(40652),c.exports={renderWebGL:p,renderCanvas:l}},99517:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){p.addToRenderList(d),this.pipeline.batchSprite(d,p,a)};c.exports=T},77856:(c,T,t)=>{/** + */var T=function(t,d,p,l){p.addToRenderList(d),this.pipeline.batchSprite(d,p,l)};c.exports=T},77856:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -1561,43 +1565,43 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(10312),p=t(83419),a=t(31401),r=t(53774),n=t(45893),e=t(50792),s=t(51708),l=t(73162),i=t(33963),o=t(44594),u=t(19186),h=new p({Extends:l,Mixins:[a.AlphaSingle,a.BlendMode,a.Depth,a.Mask,a.PostPipeline,a.Visible,e,i],initialize:function(v,m){l.call(this,v),e.call(this),this.scene=v,this.displayList=null,this.type="Layer",this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,this.systems=v.sys,this.events=v.sys.events,this.sortChildrenFlag=!1,this.addCallback=this.addChildCallback,this.removeCallback=this.removeChildCallback,this.initPostPipeline(),this.clearAlpha(),this.setBlendMode(d.SKIP_CHECK),m&&this.add(m),v.sys.queueDepthSort()},setActive:function(f){return this.active=f,this},setName:function(f){return this.name=f,this},setState:function(f){return this.state=f,this},setDataEnabled:function(){return this.data||(this.data=new n(this)),this},setData:function(f,v){return this.data||(this.data=new n(this)),this.data.set(f,v),this},incData:function(f,v){return this.data||(this.data=new n(this)),this.data.inc(f,v),this},toggleData:function(f){return this.data||(this.data=new n(this)),this.data.toggle(f),this},getData:function(f){return this.data||(this.data=new n(this)),this.data.get(f)},setInteractive:function(){return this},disableInteractive:function(){return this},removeInteractive:function(){return this},addedToScene:function(){},removedFromScene:function(){},update:function(){},toJSON:function(){return r(this)},willRender:function(f){return!(this.renderFlags!==15||this.list.length===0||this.cameraFilter!==0&&this.cameraFilter&f.id)},getIndexList:function(){for(var f=this,v=this.parentContainer,m=[];v&&(m.unshift(v.getIndex(f)),f=v,v.parentContainer);)v=v.parentContainer;return m.unshift(this.displayList.getIndex(f)),m},addChildCallback:function(f){var v=f.displayList;v&&v!==this&&f.removeFromDisplayList(),f.displayList||(this.queueDepthSort(),f.displayList=this,f.emit(s.ADDED_TO_SCENE,f,this.scene),this.events.emit(o.ADDED_TO_SCENE,f,this.scene))},removeChildCallback:function(f){this.queueDepthSort(),f.displayList=null,f.emit(s.REMOVED_FROM_SCENE,f,this.scene),this.events.emit(o.REMOVED_FROM_SCENE,f,this.scene)},queueDepthSort:function(){this.sortChildrenFlag=!0},depthSort:function(){this.sortChildrenFlag&&(u(this.list,this.sortByDepth),this.sortChildrenFlag=!1)},sortByDepth:function(f,v){return f._depth-v._depth},getChildren:function(){return this.list},addToDisplayList:function(f){return f===void 0&&(f=this.scene.sys.displayList),this.displayList&&this.displayList!==f&&this.removeFromDisplayList(),f.exists(this)||(this.displayList=f,f.add(this,!0),f.queueDepthSort(),this.emit(s.ADDED_TO_SCENE,this,this.scene),f.events.emit(o.ADDED_TO_SCENE,this,this.scene)),this},removeFromDisplayList:function(){var f=this.displayList||this.scene.sys.displayList;return f.exists(this)&&(f.remove(this,!0),f.queueDepthSort(),this.displayList=null,this.emit(s.REMOVED_FROM_SCENE,this,this.scene),f.events.emit(o.REMOVED_FROM_SCENE,this,this.scene)),this},destroy:function(f){if(!(!this.scene||this.ignoreDestroy)){this.emit(s.DESTROY,this);for(var v=this.list;v.length;)v[0].destroy(f);this.removeAllListeners(),this.resetPostPipeline(!0),this.displayList&&(this.displayList.remove(this,!0,!1),this.displayList.queueDepthSort()),this.data&&(this.data.destroy(),this.data=void 0),this.active=!1,this.visible=!1,this.list=void 0,this.scene=void 0,this.displayList=void 0,this.systems=void 0,this.events=void 0}}});c.exports=h},2956:c=>{/** + */var d=t(10312),p=t(83419),l=t(31401),r=t(53774),n=t(45893),e=t(50792),s=t(51708),o=t(73162),i=t(33963),a=t(44594),u=t(19186),h=new p({Extends:o,Mixins:[l.AlphaSingle,l.BlendMode,l.Depth,l.Mask,l.PostPipeline,l.Visible,e,i],initialize:function(v,m){o.call(this,v),e.call(this),this.scene=v,this.displayList=null,this.type="Layer",this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,this.systems=v.sys,this.events=v.sys.events,this.sortChildrenFlag=!1,this.addCallback=this.addChildCallback,this.removeCallback=this.removeChildCallback,this.initPostPipeline(),this.clearAlpha(),this.setBlendMode(d.SKIP_CHECK),m&&this.add(m),v.sys.queueDepthSort()},setActive:function(f){return this.active=f,this},setName:function(f){return this.name=f,this},setState:function(f){return this.state=f,this},setDataEnabled:function(){return this.data||(this.data=new n(this)),this},setData:function(f,v){return this.data||(this.data=new n(this)),this.data.set(f,v),this},incData:function(f,v){return this.data||(this.data=new n(this)),this.data.inc(f,v),this},toggleData:function(f){return this.data||(this.data=new n(this)),this.data.toggle(f),this},getData:function(f){return this.data||(this.data=new n(this)),this.data.get(f)},setInteractive:function(){return this},disableInteractive:function(){return this},removeInteractive:function(){return this},addedToScene:function(){},removedFromScene:function(){},update:function(){},toJSON:function(){return r(this)},willRender:function(f){return!(this.renderFlags!==15||this.list.length===0||this.cameraFilter!==0&&this.cameraFilter&f.id)},getIndexList:function(){for(var f=this,v=this.parentContainer,m=[];v&&(m.unshift(v.getIndex(f)),f=v,v.parentContainer);)v=v.parentContainer;return m.unshift(this.displayList.getIndex(f)),m},addChildCallback:function(f){var v=f.displayList;v&&v!==this&&f.removeFromDisplayList(),f.displayList||(this.queueDepthSort(),f.displayList=this,f.emit(s.ADDED_TO_SCENE,f,this.scene),this.events.emit(a.ADDED_TO_SCENE,f,this.scene))},removeChildCallback:function(f){this.queueDepthSort(),f.displayList=null,f.emit(s.REMOVED_FROM_SCENE,f,this.scene),this.events.emit(a.REMOVED_FROM_SCENE,f,this.scene)},queueDepthSort:function(){this.sortChildrenFlag=!0},depthSort:function(){this.sortChildrenFlag&&(u(this.list,this.sortByDepth),this.sortChildrenFlag=!1)},sortByDepth:function(f,v){return f._depth-v._depth},getChildren:function(){return this.list},addToDisplayList:function(f){return f===void 0&&(f=this.scene.sys.displayList),this.displayList&&this.displayList!==f&&this.removeFromDisplayList(),f.exists(this)||(this.displayList=f,f.add(this,!0),f.queueDepthSort(),this.emit(s.ADDED_TO_SCENE,this,this.scene),f.events.emit(a.ADDED_TO_SCENE,this,this.scene)),this},removeFromDisplayList:function(){var f=this.displayList||this.scene.sys.displayList;return f.exists(this)&&(f.remove(this,!0),f.queueDepthSort(),this.displayList=null,this.emit(s.REMOVED_FROM_SCENE,this,this.scene),f.events.emit(a.REMOVED_FROM_SCENE,this,this.scene)),this},destroy:function(f){if(!(!this.scene||this.ignoreDestroy)){this.emit(s.DESTROY,this);for(var v=this.list;v.length;)v[0].destroy(f);this.removeAllListeners(),this.resetPostPipeline(!0),this.displayList&&(this.displayList.remove(this,!0,!1),this.displayList.queueDepthSort()),this.data&&(this.data.destroy(),this.data=void 0),this.active=!1,this.visible=!1,this.list=void 0,this.scene=void 0,this.displayList=void 0,this.systems=void 0,this.events=void 0}}});c.exports=h},2956:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){var a=d.list;if(a.length!==0){d.depthSort();var r=d.blendMode!==-1;r||t.setBlendMode(0);var n=d._alpha;d.mask&&d.mask.preRenderCanvas(t,null,p);for(var e=0;e{/** + */var T=function(t,d,p){var l=d.list;if(l.length!==0){d.depthSort();var r=d.blendMode!==-1;r||t.setBlendMode(0);var n=d._alpha;d.mask&&d.mask.preRenderCanvas(t,null,p);for(var e=0;e{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(25305),p=t(93595),a=t(44603),r=t(23568);a.register("layer",function(n,e){n===void 0&&(n={});var s=r(n,"children",null),l=new p(this.scene,s);return e!==void 0&&(n.add=e),d(this.scene,l,n),l})},20005:(c,T,t)=>{/** + */var d=t(25305),p=t(93595),l=t(44603),r=t(23568);l.register("layer",function(n,e){n===void 0&&(n={});var s=r(n,"children",null),o=new p(this.scene,s);return e!==void 0&&(n.add=e),d(this.scene,o,n),o})},20005:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(93595),p=t(39429);p.register("layer",function(a){return this.displayList.add(new d(this.scene,a))})},33963:(c,T,t)=>{/** + */var d=t(93595),p=t(39429);p.register("layer",function(l){return this.displayList.add(new d(this.scene,l))})},33963:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(15869),a=t(2956),c.exports={renderWebGL:p,renderCanvas:a}},15869:c=>{/** + */var d=t(29747),p=d,l=d;p=t(15869),l=t(2956),c.exports={renderWebGL:p,renderCanvas:l}},15869:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){var a=d.list,r=a.length;if(r!==0){d.depthSort(),t.pipelines.preBatch(d);var n=d.blendMode!==-1;n||t.setBlendMode(0);for(var e=d.alpha,s=0;s{/** + */var T=function(t,d,p){var l=d.list,r=l.length;if(r!==0){d.depthSort(),t.pipelines.preBatch(d);var n=d.blendMode!==-1;n||t.setBlendMode(0);for(var e=d.alpha,s=0;s{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(96503),p=t(83419),a=t(31401),r=t(51767),n=t(70554),e=new p({Extends:d,Mixins:[a.Origin,a.ScrollFactor,a.Visible],initialize:function(l,i,o,u,h,f,v){d.call(this,l,i,o),this.color=new r(u,h,f),this.intensity=v,this.renderFlags=15,this.cameraFilter=0,this.setScrollFactor(1,1),this.setOrigin(),this.setDisplayOrigin(o)},displayWidth:{get:function(){return this.diameter},set:function(s){this.diameter=s}},displayHeight:{get:function(){return this.diameter},set:function(s){this.diameter=s}},width:{get:function(){return this.diameter},set:function(s){this.diameter=s}},height:{get:function(){return this.diameter},set:function(s){this.diameter=s}},willRender:function(s){return!(e.RENDER_MASK!==this.renderFlags||this.cameraFilter!==0&&this.cameraFilter&s.id)},setColor:function(s){var l=n.getFloatsFromUintRGB(s);return this.color.set(l[0],l[1],l[2]),this},setIntensity:function(s){return this.intensity=s,this},setRadius:function(s){return this.radius=s,this}});e.RENDER_MASK=15,c.exports=e},61356:(c,T,t)=>{/** + */var d=t(96503),p=t(83419),l=t(31401),r=t(51767),n=t(70554),e=new p({Extends:d,Mixins:[l.Origin,l.ScrollFactor,l.Visible],initialize:function(o,i,a,u,h,f,v){d.call(this,o,i,a),this.color=new r(u,h,f),this.intensity=v,this.renderFlags=15,this.cameraFilter=0,this.setScrollFactor(1,1),this.setOrigin(),this.setDisplayOrigin(a)},displayWidth:{get:function(){return this.diameter},set:function(s){this.diameter=s}},displayHeight:{get:function(){return this.diameter},set:function(s){this.diameter=s}},width:{get:function(){return this.diameter},set:function(s){this.diameter=s}},height:{get:function(){return this.diameter},set:function(s){this.diameter=s}},willRender:function(s){return!(e.RENDER_MASK!==this.renderFlags||this.cameraFilter!==0&&this.cameraFilter&s.id)},setColor:function(s){var o=n.getFloatsFromUintRGB(s);return this.color.set(o[0],o[1],o[2]),this},setIntensity:function(s){return this.intensity=s,this},setRadius:function(s){return this.radius=s,this}});e.RENDER_MASK=15,c.exports=e},61356:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(81491),p=t(83419),a=t(20339),r=t(41432),n=t(80321),e=t(51767),s=t(19133),l=t(19186),i=t(70554),o=new p({initialize:function(){this.lights=[],this.ambientColor=new e(.1,.1,.1),this.active=!1,this.maxLights=-1,this.visibleLights=0},addPointLight:function(u,h,f,v,m,x){return this.systems.displayList.add(new n(this.scene,u,h,f,v,m,x))},enable:function(){return this.maxLights===-1&&(this.maxLights=this.systems.renderer.config.maxLights),this.active=!0,this},disable:function(){return this.active=!1,this},getLights:function(u){for(var h=this.lights,f=u.worldView,v=[],m=0;mthis.maxLights&&(l(v,this.sortByDistance),v=v.slice(0,this.maxLights)),this.visibleLights=v.length,v},sortByDistance:function(u,h){return u.distance>=h.distance},setAmbientColor:function(u){var h=i.getFloatsFromUintRGB(u);return this.ambientColor.set(h[0],h[1],h[2]),this},getMaxVisibleLights:function(){return this.maxLights},getLightCount:function(){return this.lights.length},addLight:function(u,h,f,v,m){u===void 0&&(u=0),h===void 0&&(h=0),f===void 0&&(f=128),v===void 0&&(v=16777215),m===void 0&&(m=1);var x=i.getFloatsFromUintRGB(v),g=new r(u,h,f,x[0],x[1],x[2],m);return this.lights.push(g),g},removeLight:function(u){var h=this.lights.indexOf(u);return h>=0&&s(this.lights,h),this},shutdown:function(){this.lights.length=0},destroy:function(){this.shutdown()}});c.exports=o},88992:(c,T,t)=>{/** + */var d=t(81491),p=t(83419),l=t(20339),r=t(41432),n=t(80321),e=t(51767),s=t(19133),o=t(19186),i=t(70554),a=new p({initialize:function(){this.lights=[],this.ambientColor=new e(.1,.1,.1),this.active=!1,this.maxLights=-1,this.visibleLights=0},addPointLight:function(u,h,f,v,m,g){return this.systems.displayList.add(new n(this.scene,u,h,f,v,m,g))},enable:function(){return this.maxLights===-1&&(this.maxLights=this.systems.renderer.config.maxLights),this.active=!0,this},disable:function(){return this.active=!1,this},getLights:function(u){for(var h=this.lights,f=u.worldView,v=[],m=0;mthis.maxLights&&(o(v,this.sortByDistance),v=v.slice(0,this.maxLights)),this.visibleLights=v.length,v},sortByDistance:function(u,h){return u.distance>=h.distance},setAmbientColor:function(u){var h=i.getFloatsFromUintRGB(u);return this.ambientColor.set(h[0],h[1],h[2]),this},getMaxVisibleLights:function(){return this.maxLights},getLightCount:function(){return this.lights.length},addLight:function(u,h,f,v,m){u===void 0&&(u=0),h===void 0&&(h=0),f===void 0&&(f=128),v===void 0&&(v=16777215),m===void 0&&(m=1);var g=i.getFloatsFromUintRGB(v),x=new r(u,h,f,g[0],g[1],g[2],m);return this.lights.push(x),x},removeLight:function(u){var h=this.lights.indexOf(u);return h>=0&&s(this.lights,h),this},shutdown:function(){this.lights.length=0},destroy:function(){this.shutdown()}});c.exports=a},88992:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(61356),a=t(37277),r=t(44594),n=new d({Extends:p,initialize:function(s){this.scene=s,this.systems=s.sys,s.sys.settings.isBooted||s.sys.events.once(r.BOOT,this.boot,this),p.call(this)},boot:function(){var e=this.systems.events;e.on(r.SHUTDOWN,this.shutdown,this),e.on(r.DESTROY,this.destroy,this)},destroy:function(){this.shutdown(),this.scene=void 0,this.systems=void 0}});a.register("LightsPlugin",n,"lights"),c.exports=n},4703:(c,T,t)=>{/** + */var d=t(83419),p=t(61356),l=t(37277),r=t(44594),n=new d({Extends:p,initialize:function(s){this.scene=s,this.systems=s.sys,s.sys.settings.isBooted||s.sys.events.once(r.BOOT,this.boot,this),p.call(this)},boot:function(){var e=this.systems.events;e.on(r.SHUTDOWN,this.shutdown,this),e.on(r.DESTROY,this.destroy,this)},destroy:function(){this.shutdown(),this.scene=void 0,this.systems=void 0}});l.register("LightsPlugin",n,"lights"),c.exports=n},4703:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(31401),a=t(39506),r=t(83997),n=t(95643),e=t(34684),s=t(92515),l=t(91296),i=t(37867),o=t(29807),u=t(43396),h=t(19186),f=t(25836),v=t(39318),m=new d({Extends:n,Mixins:[p.AlphaSingle,p.BlendMode,p.Depth,p.Mask,p.Pipeline,p.PostPipeline,p.ScrollFactor,p.Size,p.Texture,p.Transform,p.Visible,o],initialize:function(g,y,S,C,E,A,P,M,F,L,b,B){y===void 0&&(y=0),S===void 0&&(S=0),C===void 0&&(C="__WHITE"),n.call(this,g,"Mesh"),this.faces=[],this.vertices=[],this.tintFill=!1,this.debugCallback=null,this.debugGraphic=null,this.hideCCW=!0,this.modelPosition=new f,this.modelScale=new f(1,1,1),this.modelRotation=new f,this.dirtyCache=[0,0,0,0,0,0,0,0,0,0,0,0],this.transformMatrix=new i,this.viewPosition=new f,this.viewMatrix=new i,this.projectionMatrix=new i,this.totalRendered=0,this.totalFrame=0,this.ignoreDirtyCache=!1,this.fov,this.displayOriginX=0,this.displayOriginY=0;var N=g.sys.renderer;this.setPosition(y,S),this.setTexture(C,E),this.setSize(N.width,N.height),this.initPipeline(),this.initPostPipeline(),this.setPerspective(N.width,N.height),A&&this.addVertices(A,P,M,F,L,b,B)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},panX:function(x){return this.viewPosition.addScale(f.LEFT,x),this.dirtyCache[10]=1,this},panY:function(x){return this.viewPosition.y+=f.DOWN.y*x,this.dirtyCache[10]=1,this},panZ:function(x){return this.viewPosition.z+=x,this.dirtyCache[10]=1,this},setPerspective:function(x,g,y,S,C){return y===void 0&&(y=45),S===void 0&&(S=.01),C===void 0&&(C=1e3),this.fov=y,this.projectionMatrix.perspective(a(y),x/g,S,C),this.dirtyCache[10]=1,this.dirtyCache[11]=0,this},setOrtho:function(x,g,y,S){return x===void 0&&(x=this.scene.sys.renderer.getAspectRatio()),g===void 0&&(g=1),y===void 0&&(y=-1e3),S===void 0&&(S=1e3),this.fov=0,this.projectionMatrix.ortho(-x,x,-g,g,y,S),this.dirtyCache[10]=1,this.dirtyCache[11]=1,this},clear:function(){return this.faces.forEach(function(x){x.destroy()}),this.faces=[],this.vertices=[],this},addVerticesFromObj:function(x,g,y,S,C,E,A,P,M){var F=this.scene.sys.cache.obj.get(x),L;return F&&(L=e(F,this,g,y,S,C,E,A,P,M)),(!L||L.verts.length===0)&&console.warn("Mesh.addVerticesFromObj data empty:",x),this},sortByDepth:function(x,g){return x.depth-g.depth},depthSort:function(){return h(this.faces,this.sortByDepth),this},addVertex:function(x,g,y,S,C,E,A){var P=new v(x,g,y,S,C,E,A);return this.vertices.push(P),P},addFace:function(x,g,y){var S=new r(x,g,y);return this.faces.push(S),this.dirtyCache[9]=-1,S},addVertices:function(x,g,y,S,C,E,A){var P=s(x,g,y,S,C,E,A);return P?(this.faces=this.faces.concat(P.faces),this.vertices=this.vertices.concat(P.vertices)):console.warn("Mesh.addVertices data empty or invalid"),this.dirtyCache[9]=-1,this},getFaceCount:function(){return this.faces.length},getVertexCount:function(){return this.vertices.length},getFace:function(x){return this.faces[x]},hasFaceAt:function(x,g,y){y===void 0&&(y=this.scene.sys.cameras.main);for(var S=l(this,y).calc,C=this.faces,E=0;E{/** + */var d=t(83419),p=t(31401),l=t(39506),r=t(83997),n=t(95643),e=t(34684),s=t(92515),o=t(91296),i=t(37867),a=t(29807),u=t(43396),h=t(19186),f=t(25836),v=t(39318),m=new d({Extends:n,Mixins:[p.AlphaSingle,p.BlendMode,p.Depth,p.Mask,p.Pipeline,p.PostPipeline,p.ScrollFactor,p.Size,p.Texture,p.Transform,p.Visible,a],initialize:function(x,y,S,C,E,M,P,A,R,F,D,w){y===void 0&&(y=0),S===void 0&&(S=0),C===void 0&&(C="__WHITE"),n.call(this,x,"Mesh"),this.faces=[],this.vertices=[],this.tintFill=!1,this.debugCallback=null,this.debugGraphic=null,this.hideCCW=!0,this.modelPosition=new f,this.modelScale=new f(1,1,1),this.modelRotation=new f,this.dirtyCache=[0,0,0,0,0,0,0,0,0,0,0,0],this.transformMatrix=new i,this.viewPosition=new f,this.viewMatrix=new i,this.projectionMatrix=new i,this.totalRendered=0,this.totalFrame=0,this.ignoreDirtyCache=!1,this.fov,this.displayOriginX=0,this.displayOriginY=0;var G=x.sys.renderer;this.setPosition(y,S),this.setTexture(C,E),this.setSize(G.width,G.height),this.initPipeline(),this.initPostPipeline(),this.setPerspective(G.width,G.height),M&&this.addVertices(M,P,A,R,F,D,w)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},panX:function(g){return this.viewPosition.addScale(f.LEFT,g),this.dirtyCache[10]=1,this},panY:function(g){return this.viewPosition.y+=f.DOWN.y*g,this.dirtyCache[10]=1,this},panZ:function(g){return this.viewPosition.z+=g,this.dirtyCache[10]=1,this},setPerspective:function(g,x,y,S,C){return y===void 0&&(y=45),S===void 0&&(S=.01),C===void 0&&(C=1e3),this.fov=y,this.projectionMatrix.perspective(l(y),g/x,S,C),this.dirtyCache[10]=1,this.dirtyCache[11]=0,this},setOrtho:function(g,x,y,S){return g===void 0&&(g=this.scene.sys.renderer.getAspectRatio()),x===void 0&&(x=1),y===void 0&&(y=-1e3),S===void 0&&(S=1e3),this.fov=0,this.projectionMatrix.ortho(-g,g,-x,x,y,S),this.dirtyCache[10]=1,this.dirtyCache[11]=1,this},clear:function(){return this.faces.forEach(function(g){g.destroy()}),this.faces=[],this.vertices=[],this},addVerticesFromObj:function(g,x,y,S,C,E,M,P,A){var R=this.scene.sys.cache.obj.get(g),F;return R&&(F=e(R,this,x,y,S,C,E,M,P,A)),(!F||F.verts.length===0)&&console.warn("Mesh.addVerticesFromObj data empty:",g),this},sortByDepth:function(g,x){return g.depth-x.depth},depthSort:function(){return h(this.faces,this.sortByDepth),this},addVertex:function(g,x,y,S,C,E,M){var P=new v(g,x,y,S,C,E,M);return this.vertices.push(P),P},addFace:function(g,x,y){var S=new r(g,x,y);return this.faces.push(S),this.dirtyCache[9]=-1,S},addVertices:function(g,x,y,S,C,E,M){var P=s(g,x,y,S,C,E,M);return P?(this.faces=this.faces.concat(P.faces),this.vertices=this.vertices.concat(P.vertices)):console.warn("Mesh.addVertices data empty or invalid"),this.dirtyCache[9]=-1,this},getFaceCount:function(){return this.faces.length},getVertexCount:function(){return this.vertices.length},getFace:function(g){return this.faces[g]},hasFaceAt:function(g,x,y){y===void 0&&(y=this.scene.sys.cameras.main);for(var S=o(this,y).calc,C=this.faces,E=0;E{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -1605,83 +1609,83 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(25305),p=t(44603),a=t(23568),r=t(35154),n=t(4703);p.register("mesh",function(e,s){e===void 0&&(e={});var l=a(e,"key",null),i=a(e,"frame",null),o=r(e,"vertices",[]),u=r(e,"uvs",[]),h=r(e,"indicies",[]),f=r(e,"containsZ",!1),v=r(e,"normals",[]),m=r(e,"colors",16777215),x=r(e,"alphas",1),g=new n(this.scene,0,0,l,i,o,u,h,f,v,m,x);return s!==void 0&&(e.add=s),d(this.scene,g,e),g})},9225:(c,T,t)=>{/** + */var d=t(25305),p=t(44603),l=t(23568),r=t(35154),n=t(4703);p.register("mesh",function(e,s){e===void 0&&(e={});var o=l(e,"key",null),i=l(e,"frame",null),a=r(e,"vertices",[]),u=r(e,"uvs",[]),h=r(e,"indicies",[]),f=r(e,"containsZ",!1),v=r(e,"normals",[]),m=r(e,"colors",16777215),g=r(e,"alphas",1),x=new n(this.scene,0,0,o,i,a,u,h,f,v,m,g);return s!==void 0&&(e.add=s),d(this.scene,x,e),x})},9225:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(4703),p=t(39429);p.register("mesh",function(a,r,n,e,s,l,i,o,u,h,f){return this.displayList.add(new d(this.scene,a,r,n,e,s,l,i,o,u,h,f))})},29807:(c,T,t)=>{/** + */var d=t(4703),p=t(39429);p.register("mesh",function(l,r,n,e,s,o,i,a,u,h,f){return this.displayList.add(new d(this.scene,l,r,n,e,s,o,i,a,u,h,f))})},29807:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(48833),a=t(36488),c.exports={renderWebGL:p,renderCanvas:a}},48833:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(48833),l=t(36488),c.exports={renderWebGL:p,renderCanvas:l}},48833:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91296),p=function(a,r,n,e){var s=r.faces,l=s.length;if(l!==0){n.addToRenderList(r);var i=a.pipelines.set(r.pipeline,r),o=d(r,n,e).calc;a.pipelines.preBatch(r);for(var u=i.setGameObject(r),h=i.vertexViewF32,f=i.vertexViewU32,v=i.vertexCount*i.currentShader.vertexComponentCount-1,m=r.tintFill,x=[],g=r.debugCallback,y=o.a,S=o.b,C=o.c,E=o.d,A=o.e,P=o.f,M=r.viewPosition.z,F=r.hideCCW,L=n.roundPixels,b=n.alpha*r.alpha,B=0,N=0;N{/** + */var d=t(91296),p=function(l,r,n,e){var s=r.faces,o=s.length;if(o!==0){n.addToRenderList(r);var i=l.pipelines.set(r.pipeline,r),a=d(r,n,e).calc;l.pipelines.preBatch(r);for(var u=i.setGameObject(r),h=i.vertexViewF32,f=i.vertexViewU32,v=i.vertexCount*i.currentShader.vertexComponentCount-1,m=r.tintFill,g=[],x=r.debugCallback,y=a.a,S=a.b,C=a.c,E=a.d,M=a.e,P=a.f,A=r.viewPosition.z,R=r.hideCCW,F=n.roundPixels,D=n.alpha*r.alpha,w=0,G=0;G{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(31401),a=t(95643),r=t(78023),n=t(39318),e=new d({Extends:a,Mixins:[p.AlphaSingle,p.BlendMode,p.Depth,p.GetBounds,p.Mask,p.Origin,p.Pipeline,p.PostPipeline,p.ScrollFactor,p.Texture,p.Transform,p.Visible,r],initialize:function(l,i,o,u,h,f,v,m,x,g,y){a.call(this,l,"NineSlice"),this._width,this._height,this._originX=.5,this._originY=.5,this._sizeComponent=!0,this.vertices=[],this.leftWidth,this.rightWidth,this.topHeight,this.bottomHeight,this.tint=16777215,this.tintFill=!1;var S=l.textures.getFrame(u,h);this.is3Slice=!g&&!y,S.scale9&&(this.is3Slice=S.is3Slice);for(var C=this.is3Slice?18:54,E=0;E{/** + */var d=t(83419),p=t(31401),l=t(95643),r=t(78023),n=t(39318),e=new d({Extends:l,Mixins:[p.AlphaSingle,p.BlendMode,p.Depth,p.GetBounds,p.Mask,p.Origin,p.Pipeline,p.PostPipeline,p.ScrollFactor,p.Texture,p.Transform,p.Visible,r],initialize:function(o,i,a,u,h,f,v,m,g,x,y){l.call(this,o,"NineSlice"),this._width,this._height,this._originX=.5,this._originY=.5,this._sizeComponent=!0,this.vertices=[],this.leftWidth,this.rightWidth,this.topHeight,this.bottomHeight,this.tint=16777215,this.tintFill=!1;var S=o.textures.getFrame(u,h);this.is3Slice=!x&&!y,S&&S.scale9&&(this.is3Slice=S.is3Slice);for(var C=this.is3Slice?18:54,E=0;E{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(25305),p=t(44603),a=t(23568),r=t(35154),n=t(28103);p.register("nineslice",function(e,s){e===void 0&&(e={});var l=a(e,"key",null),i=a(e,"frame",null),o=r(e,"width",256),u=r(e,"height",256),h=r(e,"leftWidth",10),f=r(e,"rightWidth",10),v=r(e,"topHeight",0),m=r(e,"bottomHeight",0),x=new n(this.scene,0,0,l,i,o,u,h,f,v,m);return s!==void 0&&(e.add=s),d(this.scene,x,e),x})},47521:(c,T,t)=>{/** + */var d=t(25305),p=t(44603),l=t(23568),r=t(35154),n=t(28103);p.register("nineslice",function(e,s){e===void 0&&(e={});var o=l(e,"key",null),i=l(e,"frame",null),a=r(e,"width",256),u=r(e,"height",256),h=r(e,"leftWidth",10),f=r(e,"rightWidth",10),v=r(e,"topHeight",0),m=r(e,"bottomHeight",0),g=new n(this.scene,0,0,o,i,a,u,h,f,v,m);return s!==void 0&&(e.add=s),d(this.scene,g,e),g})},47521:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(28103),p=t(39429);p.register("nineslice",function(a,r,n,e,s,l,i,o,u,h){return this.displayList.add(new d(this.scene,a,r,n,e,s,l,i,o,u,h))})},78023:(c,T,t)=>{/** + */var d=t(28103),p=t(39429);p.register("nineslice",function(l,r,n,e,s,o,i,a,u,h){return this.displayList.add(new d(this.scene,l,r,n,e,s,o,i,a,u,h))})},78023:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(52230),c.exports={renderWebGL:p,renderCanvas:a}},52230:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(52230),c.exports={renderWebGL:p,renderCanvas:l}},52230:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91296),p=t(70554),a=function(r,n,e,s){var l=n.vertices,i=l.length;if(i!==0){e.addToRenderList(n);var o=r.pipelines.set(n.pipeline,n),u=d(n,e,s,!1).calc;r.pipelines.preBatch(n);var h=o.setGameObject(n),f=o.vertexViewF32,v=o.vertexViewU32,m=o.vertexCount*o.currentShader.vertexComponentCount-1,x=e.roundPixels,g=n.tintFill,y=e.alpha*n.alpha,S=p.getTintAppendFloatAlpha(n.tint,y),C=o.vertexAvailable(),E=-1;C{/** + */var d=t(91296),p=t(70554),l=function(r,n,e,s){var o=n.vertices,i=o.length;if(i!==0){e.addToRenderList(n);var a=r.pipelines.set(n.pipeline,n),u=d(n,e,s,!1).calc;r.pipelines.preBatch(n);var h=a.setGameObject(n),f=a.vertexViewF32,v=a.vertexViewU32,m=a.vertexCount*a.currentShader.vertexComponentCount-1,g=e.roundPixels,x=n.tintFill,y=e.alpha*n.alpha,S=p.getTintAppendFloatAlpha(n.tint,y),C=a.vertexAvailable(),E=-1;C{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(44777),a=t(37589),r=t(6113),n=t(91389),e=t(90664),s=new d({Extends:p,initialize:function(i){p.call(this,i,null,!1),this.active=!1,this.easeName="Linear",this.r=[],this.g=[],this.b=[]},getMethod:function(){return this.propertyValue===null?0:9},setMethods:function(){var l=this.propertyValue,i=l,o=this.defaultEmit,u=this.defaultUpdate;if(this.method===9){this.start=l[0],this.ease=r("Linear"),this.interpolation=n("linear"),o=this.easedValueEmit,u=this.easeValueUpdate,i=l[0],this.active=!0;for(var h=0;h{/** + */var d=t(83419),p=t(44777),l=t(37589),r=t(6113),n=t(91389),e=t(90664),s=new d({Extends:p,initialize:function(i){p.call(this,i,null,!1),this.active=!1,this.easeName="Linear",this.r=[],this.g=[],this.b=[]},getMethod:function(){return this.propertyValue===null?0:9},setMethods:function(){var o=this.propertyValue,i=o,a=this.defaultEmit,u=this.defaultUpdate;if(this.method===9){this.start=o[0],this.ease=r("Linear"),this.interpolation=n("linear"),a=this.easedValueEmit,u=this.easeValueUpdate,i=o[0],this.active=!0;for(var h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(30976),p=t(45319),a=t(83419),r=t(99472),n=t(6113),e=t(95540),s=t(91389),l=t(77720),i=t(15994),o=new a({initialize:function(h,f,v){v===void 0&&(v=!1),this.propertyKey=h,this.propertyValue=f,this.defaultValue=f,this.steps=0,this.counter=0,this.yoyo=!1,this.direction=0,this.start=0,this.current=0,this.end=0,this.ease=null,this.interpolation=null,this.emitOnly=v,this.onEmit=this.defaultEmit,this.onUpdate=this.defaultUpdate,this.active=!0,this.method=0,this._onEmit,this._onUpdate},loadConfig:function(u,h){u===void 0&&(u={}),h&&(this.propertyKey=h),this.propertyValue=e(u,this.propertyKey,this.defaultValue),this.method=this.getMethod(),this.setMethods(),this.emitOnly&&(this.onUpdate=this.defaultUpdate)},toJSON:function(){return JSON.stringify(this.propertyValue)},onChange:function(u){var h;switch(this.method){case 1:case 3:case 8:h=u;break;case 2:this.propertyValue.indexOf(u)>=0&&(h=u);break;case 4:var f=(this.end-this.start)/this.steps;h=l(u,f),this.counter=h;break;case 5:case 6:case 7:h=p(u,this.start,this.end);break;case 9:h=this.start[0];break}return this.current=h,this},getMethod:function(){var u=this.propertyValue;if(u===null)return 0;var h=typeof u;if(h==="number")return 1;if(Array.isArray(u))return 2;if(h==="function")return 3;if(h==="object"){if(this.hasBoth(u,"start","end"))return this.has(u,"steps")?4:5;if(this.hasBoth(u,"min","max"))return 6;if(this.has(u,"random"))return 7;if(this.hasEither(u,"onEmit","onUpdate"))return 8;if(this.hasEither(u,"values","interpolation"))return 9}return 0},setMethods:function(){var u=this.propertyValue,h=u,f=this.defaultEmit,v=this.defaultUpdate;switch(this.method){case 1:f=this.staticValueEmit;break;case 2:f=this.randomStaticValueEmit,h=u[0];break;case 3:this._onEmit=u,f=this.proxyEmit;break;case 4:this.start=u.start,this.end=u.end,this.steps=u.steps,this.counter=this.start,this.yoyo=this.has(u,"yoyo")?u.yoyo:!1,this.direction=0,f=this.steppedEmit,h=this.start;break;case 5:this.start=u.start,this.end=u.end;var m=this.has(u,"ease")?u.ease:"Linear";this.ease=n(m,u.easeParams),f=this.has(u,"random")&&u.random?this.randomRangedValueEmit:this.easedValueEmit,v=this.easeValueUpdate,h=this.start;break;case 6:this.start=u.min,this.end=u.max,f=this.has(u,"int")&&u.int?this.randomRangedIntEmit:this.randomRangedValueEmit,h=this.start;break;case 7:var x=u.random;Array.isArray(x)&&(this.start=x[0],this.end=x[1]),f=this.randomRangedIntEmit,h=this.start;break;case 8:this._onEmit=this.has(u,"onEmit")?u.onEmit:this.defaultEmit,this._onUpdate=this.has(u,"onUpdate")?u.onUpdate:this.defaultUpdate,f=this.proxyEmit,v=this.proxyUpdate;break;case 9:this.start=u.values;var g=this.has(u,"ease")?u.ease:"Linear";this.ease=n(g,u.easeParams),this.interpolation=s(u.interpolation),f=this.easedValueEmit,v=this.easeValueUpdate,h=this.start[0];break}return this.onEmit=f,this.onUpdate=v,this.current=h,this},has:function(u,h){return u.hasOwnProperty(h)},hasBoth:function(u,h,f){return u.hasOwnProperty(h)&&u.hasOwnProperty(f)},hasEither:function(u,h,f){return u.hasOwnProperty(h)||u.hasOwnProperty(f)},defaultEmit:function(u,h,f){return f},defaultUpdate:function(u,h,f,v){return v},proxyEmit:function(u,h,f){var v=this._onEmit(u,h,f);return this.current=v,v},proxyUpdate:function(u,h,f,v){var m=this._onUpdate(u,h,f,v);return this.current=m,m},staticValueEmit:function(){return this.current},staticValueUpdate:function(){return this.current},randomStaticValueEmit:function(){var u=Math.floor(Math.random()*this.propertyValue.length);return this.current=this.propertyValue[u],this.current},randomRangedValueEmit:function(u,h){var f=r(this.start,this.end);return u&&u.data[h]&&(u.data[h].min=f,u.data[h].max=this.end),this.current=f,f},randomRangedIntEmit:function(u,h){var f=d(this.start,this.end);return u&&u.data[h]&&(u.data[h].min=f,u.data[h].max=this.end),this.current=f,f},steppedEmit:function(){var u=this.counter,h=u,f=(this.end-this.start)/this.steps;if(this.yoyo){var v;this.direction===0?(h+=f,h>=this.end&&(v=h-this.end,h=this.end-v,this.direction=1)):(h-=f,h<=this.start&&(v=this.start-h,h=this.start+v,this.direction=0)),this.counter=h}else this.counter=i(h+f,this.start,this.end);return this.current=u,u},easedValueEmit:function(u,h){if(u&&u.data[h]){var f=u.data[h];f.min=this.start,f.max=this.end}return this.current=this.start,this.start},easeValueUpdate:function(u,h,f){var v=u.data[h],m,x=this.ease(f);return this.interpolation?m=this.interpolation(this.start,x):m=(v.max-v.min)*x+v.min,this.current=m,m},destroy:function(){this.propertyValue=null,this.defaultValue=null,this.ease=null,this.interpolation=null,this._onEmit=null,this._onUpdate=null}});c.exports=o},24502:(c,T,t)=>{/** + */var d=t(30976),p=t(45319),l=t(83419),r=t(99472),n=t(6113),e=t(95540),s=t(91389),o=t(77720),i=t(15994),a=new l({initialize:function(h,f,v){v===void 0&&(v=!1),this.propertyKey=h,this.propertyValue=f,this.defaultValue=f,this.steps=0,this.counter=0,this.yoyo=!1,this.direction=0,this.start=0,this.current=0,this.end=0,this.ease=null,this.interpolation=null,this.emitOnly=v,this.onEmit=this.defaultEmit,this.onUpdate=this.defaultUpdate,this.active=!0,this.method=0,this._onEmit,this._onUpdate},loadConfig:function(u,h){u===void 0&&(u={}),h&&(this.propertyKey=h),this.propertyValue=e(u,this.propertyKey,this.defaultValue),this.method=this.getMethod(),this.setMethods(),this.emitOnly&&(this.onUpdate=this.defaultUpdate)},toJSON:function(){return JSON.stringify(this.propertyValue)},onChange:function(u){var h;switch(this.method){case 1:case 3:case 8:h=u;break;case 2:this.propertyValue.indexOf(u)>=0&&(h=u);break;case 4:var f=(this.end-this.start)/this.steps;h=o(u,f),this.counter=h;break;case 5:case 6:case 7:h=p(u,this.start,this.end);break;case 9:h=this.start[0];break}return this.current=h,this},getMethod:function(){var u=this.propertyValue;if(u===null)return 0;var h=typeof u;if(h==="number")return 1;if(Array.isArray(u))return 2;if(h==="function")return 3;if(h==="object"){if(this.hasBoth(u,"start","end"))return this.has(u,"steps")?4:5;if(this.hasBoth(u,"min","max"))return 6;if(this.has(u,"random"))return 7;if(this.hasEither(u,"onEmit","onUpdate"))return 8;if(this.hasEither(u,"values","interpolation"))return 9}return 0},setMethods:function(){var u=this.propertyValue,h=u,f=this.defaultEmit,v=this.defaultUpdate;switch(this.method){case 1:f=this.staticValueEmit;break;case 2:f=this.randomStaticValueEmit,h=u[0];break;case 3:this._onEmit=u,f=this.proxyEmit;break;case 4:this.start=u.start,this.end=u.end,this.steps=u.steps,this.counter=this.start,this.yoyo=this.has(u,"yoyo")?u.yoyo:!1,this.direction=0,f=this.steppedEmit,h=this.start;break;case 5:this.start=u.start,this.end=u.end;var m=this.has(u,"ease")?u.ease:"Linear";this.ease=n(m,u.easeParams),f=this.has(u,"random")&&u.random?this.randomRangedValueEmit:this.easedValueEmit,v=this.easeValueUpdate,h=this.start;break;case 6:this.start=u.min,this.end=u.max,f=this.has(u,"int")&&u.int?this.randomRangedIntEmit:this.randomRangedValueEmit,h=this.start;break;case 7:var g=u.random;Array.isArray(g)&&(this.start=g[0],this.end=g[1]),f=this.randomRangedIntEmit,h=this.start;break;case 8:this._onEmit=this.has(u,"onEmit")?u.onEmit:this.defaultEmit,this._onUpdate=this.has(u,"onUpdate")?u.onUpdate:this.defaultUpdate,f=this.proxyEmit,v=this.proxyUpdate;break;case 9:this.start=u.values;var x=this.has(u,"ease")?u.ease:"Linear";this.ease=n(x,u.easeParams),this.interpolation=s(u.interpolation),f=this.easedValueEmit,v=this.easeValueUpdate,h=this.start[0];break}return this.onEmit=f,this.onUpdate=v,this.current=h,this},has:function(u,h){return u.hasOwnProperty(h)},hasBoth:function(u,h,f){return u.hasOwnProperty(h)&&u.hasOwnProperty(f)},hasEither:function(u,h,f){return u.hasOwnProperty(h)||u.hasOwnProperty(f)},defaultEmit:function(u,h,f){return f},defaultUpdate:function(u,h,f,v){return v},proxyEmit:function(u,h,f){var v=this._onEmit(u,h,f);return this.current=v,v},proxyUpdate:function(u,h,f,v){var m=this._onUpdate(u,h,f,v);return this.current=m,m},staticValueEmit:function(){return this.current},staticValueUpdate:function(){return this.current},randomStaticValueEmit:function(){var u=Math.floor(Math.random()*this.propertyValue.length);return this.current=this.propertyValue[u],this.current},randomRangedValueEmit:function(u,h){var f=r(this.start,this.end);return u&&u.data[h]&&(u.data[h].min=f,u.data[h].max=this.end),this.current=f,f},randomRangedIntEmit:function(u,h){var f=d(this.start,this.end);return u&&u.data[h]&&(u.data[h].min=f,u.data[h].max=this.end),this.current=f,f},steppedEmit:function(){var u=this.counter,h=u,f=(this.end-this.start)/this.steps;if(this.yoyo){var v;this.direction===0?(h+=f,h>=this.end&&(v=h-this.end,h=this.end-v,this.direction=1)):(h-=f,h<=this.start&&(v=this.start-h,h=this.start+v,this.direction=0)),this.counter=h}else this.counter=i(h+f,this.start,this.end);return this.current=u,u},easedValueEmit:function(u,h){if(u&&u.data[h]){var f=u.data[h];f.min=this.start,f.max=this.end}return this.current=this.start,this.start},easeValueUpdate:function(u,h,f){var v=u.data[h],m,g=this.ease(f);return this.interpolation?m=this.interpolation(this.start,g):m=(v.max-v.min)*g+v.min,this.current=m,m},destroy:function(){this.propertyValue=null,this.defaultValue=null,this.ease=null,this.interpolation=null,this._onEmit=null,this._onUpdate=null}});c.exports=a},24502:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(95540),a=t(20286),r=new d({Extends:a,initialize:function(e,s,l,i,o){if(typeof e=="object"){var u=e;e=p(u,"x",0),s=p(u,"y",0),l=p(u,"power",0),i=p(u,"epsilon",100),o=p(u,"gravity",50)}else e===void 0&&(e=0),s===void 0&&(s=0),l===void 0&&(l=0),i===void 0&&(i=100),o===void 0&&(o=50);a.call(this,e,s,!0),this._gravity=o,this._power=l*o,this._epsilon=i*i},update:function(n,e){var s=this.x-n.x,l=this.y-n.y,i=s*s+l*l;if(i!==0){var o=Math.sqrt(i);i{/** + */var d=t(83419),p=t(95540),l=t(20286),r=new d({Extends:l,initialize:function(e,s,o,i,a){if(typeof e=="object"){var u=e;e=p(u,"x",0),s=p(u,"y",0),o=p(u,"power",0),i=p(u,"epsilon",100),a=p(u,"gravity",50)}else e===void 0&&(e=0),s===void 0&&(s=0),o===void 0&&(o=0),i===void 0&&(i=100),a===void 0&&(a=50);l.call(this,e,s,!0),this._gravity=a,this._power=o*a,this._epsilon=i*i},update:function(n,e){var s=this.x-n.x,o=this.y-n.y,i=s*s+o*o;if(i!==0){var a=Math.sqrt(i);i{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(9674),p=t(45319),a=t(83419),r=t(39506),n=t(87841),e=t(11520),s=t(26099),l=new a({initialize:function(o){this.emitter=o,this.texture=null,this.frame=null,this.x=0,this.y=0,this.worldPosition=new s,this.velocityX=0,this.velocityY=0,this.accelerationX=0,this.accelerationY=0,this.maxVelocityX=1e4,this.maxVelocityY=1e4,this.bounce=0,this.scaleX=1,this.scaleY=1,this.alpha=1,this.angle=0,this.rotation=0,this.tint=16777215,this.life=1e3,this.lifeCurrent=1e3,this.delayCurrent=0,this.holdCurrent=0,this.lifeT=0,this.data={tint:{min:16777215,max:16777215},alpha:{min:1,max:1},rotate:{min:0,max:0},scaleX:{min:1,max:1},scaleY:{min:1,max:1},x:{min:0,max:0},y:{min:0,max:0},accelerationX:{min:0,max:0},accelerationY:{min:0,max:0},maxVelocityX:{min:0,max:0},maxVelocityY:{min:0,max:0},moveToX:{min:0,max:0},moveToY:{min:0,max:0},bounce:{min:0,max:0}},this.isCropped=!1,this.scene=o.scene,this.anims=new d(this),this.bounds=new n},emit:function(i,o,u,h,f,v){return this.emitter.emit(i,o,u,h,f,v)},isAlive:function(){return this.lifeCurrent>0},kill:function(){this.lifeCurrent=0},setPosition:function(i,o){i===void 0&&(i=0),o===void 0&&(o=0),this.x=i,this.y=o},fire:function(i,o){var u=this.emitter,h=u.ops,f=u.getAnim();if(f?this.anims.play(f):(this.frame=u.getFrame(),this.texture=this.frame.texture),!this.frame)throw new Error("Particle has no texture frame");if(u.getEmitZone(this),i===void 0?this.x+=h.x.onEmit(this,"x"):h.x.steps>0?this.x+=i+h.x.onEmit(this,"x"):this.x+=i,o===void 0?this.y+=h.y.onEmit(this,"y"):h.y.steps>0?this.y+=o+h.y.onEmit(this,"y"):this.y+=o,this.life=h.lifespan.onEmit(this,"lifespan"),this.lifeCurrent=this.life,this.lifeT=0,this.delayCurrent=h.delay.onEmit(this,"delay"),this.holdCurrent=h.hold.onEmit(this,"hold"),this.scaleX=h.scaleX.onEmit(this,"scaleX"),this.scaleY=h.scaleY.active?h.scaleY.onEmit(this,"scaleY"):this.scaleX,this.angle=h.rotate.onEmit(this,"rotate"),this.rotation=r(this.angle),u.worldMatrix.transformPoint(this.x,this.y,this.worldPosition),this.delayCurrent===0&&u.getDeathZone(this))return this.lifeCurrent=0,!1;var v=h.speedX.onEmit(this,"speedX"),m=h.speedY.active?h.speedY.onEmit(this,"speedY"):v;if(u.radial){var x=r(h.angle.onEmit(this,"angle"));this.velocityX=Math.cos(x)*Math.abs(v),this.velocityY=Math.sin(x)*Math.abs(m)}else if(u.moveTo){var g=h.moveToX.onEmit(this,"moveToX"),y=h.moveToY.onEmit(this,"moveToY"),S=this.life/1e3;this.velocityX=(g-this.x)/S,this.velocityY=(y-this.y)/S}else this.velocityX=v,this.velocityY=m;return u.acceleration&&(this.accelerationX=h.accelerationX.onEmit(this,"accelerationX"),this.accelerationY=h.accelerationY.onEmit(this,"accelerationY")),this.maxVelocityX=h.maxVelocityX.onEmit(this,"maxVelocityX"),this.maxVelocityY=h.maxVelocityY.onEmit(this,"maxVelocityY"),this.bounce=h.bounce.onEmit(this,"bounce"),this.alpha=h.alpha.onEmit(this,"alpha"),h.color.active?this.tint=h.color.onEmit(this,"tint"):this.tint=h.tint.onEmit(this,"tint"),!0},update:function(i,o,u){if(this.lifeCurrent<=0)return this.holdCurrent>0?(this.holdCurrent-=i,this.holdCurrent<=0):!0;if(this.delayCurrent>0)return this.delayCurrent-=i,!1;this.anims.update(0,i);var h=this.emitter,f=h.ops,v=1-this.lifeCurrent/this.life;if(this.lifeT=v,this.x=f.x.onUpdate(this,"x",v,this.x),this.y=f.y.onUpdate(this,"y",v,this.y),h.moveTo){var m=f.moveToX.onUpdate(this,"moveToX",v,h.moveToX),x=f.moveToY.onUpdate(this,"moveToY",v,h.moveToY),g=this.lifeCurrent/1e3;this.velocityX=(m-this.x)/g,this.velocityY=(x-this.y)/g}return this.computeVelocity(h,i,o,u,v),this.scaleX=f.scaleX.onUpdate(this,"scaleX",v,this.scaleX),f.scaleY.active?this.scaleY=f.scaleY.onUpdate(this,"scaleY",v,this.scaleY):this.scaleY=this.scaleX,this.angle=f.rotate.onUpdate(this,"rotate",v,this.angle),this.rotation=r(this.angle),h.getDeathZone(this)?(this.lifeCurrent=0,!0):(this.alpha=p(f.alpha.onUpdate(this,"alpha",v,this.alpha),0,1),f.color.active?this.tint=f.color.onUpdate(this,"color",v,this.tint):this.tint=f.tint.onUpdate(this,"tint",v,this.tint),this.lifeCurrent-=i,this.lifeCurrent<=0&&this.holdCurrent<=0)},computeVelocity:function(i,o,u,h,f){var v=i.ops,m=this.velocityX,x=this.velocityY,g=v.accelerationX.onUpdate(this,"accelerationX",f,this.accelerationX),y=v.accelerationY.onUpdate(this,"accelerationY",f,this.accelerationY),S=v.maxVelocityX.onUpdate(this,"maxVelocityX",f,this.maxVelocityX),C=v.maxVelocityY.onUpdate(this,"maxVelocityY",f,this.maxVelocityY);this.bounce=v.bounce.onUpdate(this,"bounce",f,this.bounce),m+=i.gravityX*u+g*u,x+=i.gravityY*u+y*u,m=p(m,-S,S),x=p(x,-C,C),this.velocityX=m,this.velocityY=x,this.x+=m*u,this.y+=x*u,i.worldMatrix.transformPoint(this.x,this.y,this.worldPosition);for(var E=0;E{/** + */var d=t(9674),p=t(45319),l=t(83419),r=t(39506),n=t(87841),e=t(11520),s=t(26099),o=new l({initialize:function(a){this.emitter=a,this.texture=null,this.frame=null,this.x=0,this.y=0,this.worldPosition=new s,this.velocityX=0,this.velocityY=0,this.accelerationX=0,this.accelerationY=0,this.maxVelocityX=1e4,this.maxVelocityY=1e4,this.bounce=0,this.scaleX=1,this.scaleY=1,this.alpha=1,this.angle=0,this.rotation=0,this.tint=16777215,this.life=1e3,this.lifeCurrent=1e3,this.delayCurrent=0,this.holdCurrent=0,this.lifeT=0,this.data={tint:{min:16777215,max:16777215},alpha:{min:1,max:1},rotate:{min:0,max:0},scaleX:{min:1,max:1},scaleY:{min:1,max:1},x:{min:0,max:0},y:{min:0,max:0},accelerationX:{min:0,max:0},accelerationY:{min:0,max:0},maxVelocityX:{min:0,max:0},maxVelocityY:{min:0,max:0},moveToX:{min:0,max:0},moveToY:{min:0,max:0},bounce:{min:0,max:0}},this.isCropped=!1,this.scene=a.scene,this.anims=new d(this),this.bounds=new n},emit:function(i,a,u,h,f,v){return this.emitter.emit(i,a,u,h,f,v)},isAlive:function(){return this.lifeCurrent>0},kill:function(){this.lifeCurrent=0},setPosition:function(i,a){i===void 0&&(i=0),a===void 0&&(a=0),this.x=i,this.y=a},fire:function(i,a){var u=this.emitter,h=u.ops,f=u.getAnim();if(f?this.anims.play(f):(this.frame=u.getFrame(),this.texture=this.frame.texture),!this.frame)throw new Error("Particle has no texture frame");if(u.getEmitZone(this),i===void 0?this.x+=h.x.onEmit(this,"x"):h.x.steps>0?this.x+=i+h.x.onEmit(this,"x"):this.x+=i,a===void 0?this.y+=h.y.onEmit(this,"y"):h.y.steps>0?this.y+=a+h.y.onEmit(this,"y"):this.y+=a,this.life=h.lifespan.onEmit(this,"lifespan"),this.lifeCurrent=this.life,this.lifeT=0,this.delayCurrent=h.delay.onEmit(this,"delay"),this.holdCurrent=h.hold.onEmit(this,"hold"),this.scaleX=h.scaleX.onEmit(this,"scaleX"),this.scaleY=h.scaleY.active?h.scaleY.onEmit(this,"scaleY"):this.scaleX,this.angle=h.rotate.onEmit(this,"rotate"),this.rotation=r(this.angle),u.worldMatrix.transformPoint(this.x,this.y,this.worldPosition),this.delayCurrent===0&&u.getDeathZone(this))return this.lifeCurrent=0,!1;var v=h.speedX.onEmit(this,"speedX"),m=h.speedY.active?h.speedY.onEmit(this,"speedY"):v;if(u.radial){var g=r(h.angle.onEmit(this,"angle"));this.velocityX=Math.cos(g)*Math.abs(v),this.velocityY=Math.sin(g)*Math.abs(m)}else if(u.moveTo){var x=h.moveToX.onEmit(this,"moveToX"),y=h.moveToY.onEmit(this,"moveToY"),S=this.life/1e3;this.velocityX=(x-this.x)/S,this.velocityY=(y-this.y)/S}else this.velocityX=v,this.velocityY=m;return u.acceleration&&(this.accelerationX=h.accelerationX.onEmit(this,"accelerationX"),this.accelerationY=h.accelerationY.onEmit(this,"accelerationY")),this.maxVelocityX=h.maxVelocityX.onEmit(this,"maxVelocityX"),this.maxVelocityY=h.maxVelocityY.onEmit(this,"maxVelocityY"),this.bounce=h.bounce.onEmit(this,"bounce"),this.alpha=h.alpha.onEmit(this,"alpha"),h.color.active?this.tint=h.color.onEmit(this,"tint"):this.tint=h.tint.onEmit(this,"tint"),!0},update:function(i,a,u){if(this.lifeCurrent<=0)return this.holdCurrent>0?(this.holdCurrent-=i,this.holdCurrent<=0):!0;if(this.delayCurrent>0)return this.delayCurrent-=i,!1;this.anims.update(0,i);var h=this.emitter,f=h.ops,v=1-this.lifeCurrent/this.life;if(this.lifeT=v,this.x=f.x.onUpdate(this,"x",v,this.x),this.y=f.y.onUpdate(this,"y",v,this.y),h.moveTo){var m=f.moveToX.onUpdate(this,"moveToX",v,h.moveToX),g=f.moveToY.onUpdate(this,"moveToY",v,h.moveToY),x=this.lifeCurrent/1e3;this.velocityX=(m-this.x)/x,this.velocityY=(g-this.y)/x}return this.computeVelocity(h,i,a,u,v),this.scaleX=f.scaleX.onUpdate(this,"scaleX",v,this.scaleX),f.scaleY.active?this.scaleY=f.scaleY.onUpdate(this,"scaleY",v,this.scaleY):this.scaleY=this.scaleX,this.angle=f.rotate.onUpdate(this,"rotate",v,this.angle),this.rotation=r(this.angle),h.getDeathZone(this)?(this.lifeCurrent=0,!0):(this.alpha=p(f.alpha.onUpdate(this,"alpha",v,this.alpha),0,1),f.color.active?this.tint=f.color.onUpdate(this,"color",v,this.tint):this.tint=f.tint.onUpdate(this,"tint",v,this.tint),this.lifeCurrent-=i,this.lifeCurrent<=0&&this.holdCurrent<=0)},computeVelocity:function(i,a,u,h,f){var v=i.ops,m=this.velocityX,g=this.velocityY,x=v.accelerationX.onUpdate(this,"accelerationX",f,this.accelerationX),y=v.accelerationY.onUpdate(this,"accelerationY",f,this.accelerationY),S=v.maxVelocityX.onUpdate(this,"maxVelocityX",f,this.maxVelocityX),C=v.maxVelocityY.onUpdate(this,"maxVelocityY",f,this.maxVelocityY);this.bounce=v.bounce.onUpdate(this,"bounce",f,this.bounce),m+=i.gravityX*u+x*u,g+=i.gravityY*u+y*u,m=p(m,-S,S),g=p(g,-C,C),this.velocityX=m,this.velocityY=g,this.x+=m*u,this.y+=g*u,i.worldMatrix.transformPoint(this.x,this.y,this.worldPosition);for(var E=0;E{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(20286),a=t(87841),r=new d({Extends:p,initialize:function(e,s,l,i,o,u,h,f){o===void 0&&(o=!0),u===void 0&&(u=!0),h===void 0&&(h=!0),f===void 0&&(f=!0),p.call(this,e,s,!0),this.bounds=new a(e,s,l,i),this.collideLeft=o,this.collideRight=u,this.collideTop=h,this.collideBottom=f},update:function(n){var e=this.bounds,s=-n.bounce,l=n.worldPosition;l.xe.right&&this.collideRight&&(n.x-=l.x-e.right,n.velocityX*=s),l.ye.bottom&&this.collideBottom&&(n.y-=l.y-e.bottom,n.velocityY*=s)}});c.exports=r},31600:(c,T,t)=>{/** + */var d=t(83419),p=t(20286),l=t(87841),r=new d({Extends:p,initialize:function(e,s,o,i,a,u,h,f){a===void 0&&(a=!0),u===void 0&&(u=!0),h===void 0&&(h=!0),f===void 0&&(f=!0),p.call(this,e,s,!0),this.bounds=new l(e,s,o,i),this.collideLeft=a,this.collideRight=u,this.collideTop=h,this.collideBottom=f},update:function(n){var e=this.bounds,s=-n.bounce,o=n.worldPosition;o.xe.right&&this.collideRight&&(n.x-=o.x-e.right,n.velocityX*=s),o.ye.bottom&&this.collideBottom&&(n.y-=o.y-e.bottom,n.velocityY*=s)}});c.exports=r},31600:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(31401),a=t(53774),r=t(43459),n=t(26388),e=t(19909),s=t(76472),l=t(44777),i=t(20696),o=t(95643),u=t(95540),h=t(26546),f=t(24502),v=t(1985),m=t(97022),x=t(86091),g=t(73162),y=t(20074),S=t(56480),C=t(68875),E=t(87841),A=t(59996),P=t(72905),M=t(90668),F=t(19186),L=t(61340),b=t(26099),B=t(15994),N=t(69601),X=["active","advance","blendMode","colorEase","deathCallback","deathCallbackScope","duration","emitCallback","emitCallbackScope","follow","frequency","gravityX","gravityY","maxAliveParticles","maxParticles","name","emitting","particleBringToTop","particleClass","radial","sortCallback","sortOrderAsc","sortProperty","stopAfter","tintFill","timeScale","trackVisible","visible"],D=["accelerationX","accelerationY","alpha","angle","bounce","color","delay","hold","lifespan","maxVelocityX","maxVelocityY","moveToX","moveToY","quantity","rotate","scaleX","scaleY","speedX","speedY","tint","x","y"],I=new d({Extends:o,Mixins:[p.AlphaSingle,p.BlendMode,p.Depth,p.Mask,p.Pipeline,p.PostPipeline,p.ScrollFactor,p.Texture,p.Transform,p.Visible,M],initialize:function(O,w,G,U,z){o.call(this,O,"ParticleEmitter"),this.particleClass=S,this.ops={accelerationX:new l("accelerationX",0),accelerationY:new l("accelerationY",0),alpha:new l("alpha",1),angle:new l("angle",{min:0,max:360},!0),bounce:new l("bounce",0),color:new s("color"),delay:new l("delay",0,!0),hold:new l("hold",0,!0),lifespan:new l("lifespan",1e3,!0),maxVelocityX:new l("maxVelocityX",1e4),maxVelocityY:new l("maxVelocityY",1e4),moveToX:new l("moveToX",0),moveToY:new l("moveToY",0),quantity:new l("quantity",1,!0),rotate:new l("rotate",0),scaleX:new l("scaleX",1),scaleY:new l("scaleY",1),speedX:new l("speedX",0,!0),speedY:new l("speedY",0,!0),tint:new l("tint",16777215),x:new l("x",0),y:new l("y",0)},this.radial=!0,this.gravityX=0,this.gravityY=0,this.acceleration=!1,this.moveTo=!1,this.emitCallback=null,this.emitCallbackScope=null,this.deathCallback=null,this.deathCallbackScope=null,this.maxParticles=0,this.maxAliveParticles=0,this.stopAfter=0,this.duration=0,this.frequency=0,this.emitting=!0,this.particleBringToTop=!0,this.timeScale=1,this.emitZones=[],this.deathZones=[],this.viewBounds=null,this.follow=null,this.followOffset=new b,this.trackVisible=!1,this.frames=[],this.randomFrame=!0,this.frameQuantity=1,this.anims=[],this.randomAnim=!0,this.animQuantity=1,this.dead=[],this.alive=[],this.counters=new Float32Array(10),this.skipping=!1,this.worldMatrix=new L,this.sortProperty="",this.sortOrderAsc=!0,this.sortCallback=this.depthSortCallback,this.processors=new g(this),this.tintFill=!1,this.initPipeline(),this.initPostPipeline(),this.setPosition(w,G),this.setTexture(U),z&&this.setConfig(z)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},setConfig:function(R){if(!R)return this;var O=0,w="",G=this.ops;for(O=0;O=this.animQuantity&&(this.animCounter=0,this.currentAnim=B(this.currentAnim+1,0,O)),w},setAnim:function(R,O,w){O===void 0&&(O=!0),w===void 0&&(w=1),this.randomAnim=O,this.animQuantity=w,this.currentAnim=0;var G=typeof R;if(this.anims.length=0,Array.isArray(R))this.anims=this.anims.concat(R);else if(G==="string")this.anims.push(R);else if(G==="object"){var U=R;R=u(U,"anims",null),R&&(this.anims=this.anims.concat(R));var z=u(U,"cycle",!1);this.randomAnim=!z,this.animQuantity=u(U,"quantity",w)}return this.anims.length===1&&(this.animQuantity=1,this.randomAnim=!1),this},setRadial:function(R){return R===void 0&&(R=!0),this.radial=R,this},addParticleBounds:function(R,O,w,G,U,z,V,Y){if(typeof R=="object"){var W=R;R=W.x,O=W.y,w=m(W,"w")?W.w:W.width,G=m(W,"h")?W.h:W.height}return this.addParticleProcessor(new N(R,O,w,G,U,z,V,Y))},setParticleSpeed:function(R,O){return O===void 0&&(O=R),this.ops.speedX.onChange(R),R===O?this.ops.speedY.active=!1:this.ops.speedY.onChange(O),this.radial=!0,this},setParticleScale:function(R,O){return R===void 0&&(R=1),O===void 0&&(O=R),this.ops.scaleX.onChange(R),this.ops.scaleY.onChange(O),this},setParticleGravity:function(R,O){return this.gravityX=R,this.gravityY=O,this},setParticleAlpha:function(R){return this.ops.alpha.onChange(R),this},setParticleTint:function(R){return this.ops.tint.onChange(R),this},setEmitterAngle:function(R){return this.ops.angle.onChange(R),this},setParticleLifespan:function(R){return this.ops.lifespan.onChange(R),this},setQuantity:function(R){return this.quantity=R,this},setFrequency:function(R,O){return this.frequency=R,this.flowCounter=R>0?R:0,O&&(this.quantity=O),this},addDeathZone:function(R){Array.isArray(R)||(R=[R]);for(var O,w=[],G=0;G-1&&(this.zoneTotal++,this.zoneTotal===G.total&&(this.zoneTotal=0,this.zoneIndex++,this.zoneIndex===w&&(this.zoneIndex=0)))}},getDeathZone:function(R){for(var O=this.deathZones,w=0;w=0&&(this.zoneIndex=O),this},addParticleProcessor:function(R){return this.processors.exists(R)||(R.emitter&&R.emitter.removeParticleProcessor(R),this.processors.add(R),R.emitter=this),R},removeParticleProcessor:function(R){return this.processors.exists(R)&&(this.processors.remove(R,!0),R.emitter=null),R},getProcessors:function(){return this.processors.getAll("active",!0)},createGravityWell:function(R){return this.addParticleProcessor(new f(R))},reserve:function(R){var O=this.dead;if(this.maxParticles>0){var w=this.getParticleCount();w+R>this.maxParticles&&(R=this.maxParticles-(w+R))}for(var G=0;G0&&this.getParticleCount()>=this.maxParticles?!0:this.maxAliveParticles>0&&this.getAliveParticleCount()>=this.maxAliveParticles},onParticleEmit:function(R,O){return R===void 0?(this.emitCallback=null,this.emitCallbackScope=null):typeof R=="function"&&(this.emitCallback=R,O&&(this.emitCallbackScope=O)),this},onParticleDeath:function(R,O){return R===void 0?(this.deathCallback=null,this.deathCallbackScope=null):typeof R=="function"&&(this.deathCallback=R,O&&(this.deathCallbackScope=O)),this},killAll:function(){for(var R=this.dead,O=this.alive;O.length>0;)R.push(O.pop());return this},forEachAlive:function(R,O){for(var w=this.alive,G=w.length,U=0;U0&&this.fastForward(R),this.emitting=!0,this.resetCounters(this.frequency,!0),O!==void 0&&(this.duration=Math.abs(O)),this.emit(i.START,this)),this},stop:function(R){return R===void 0&&(R=!1),this.emitting&&(this.emitting=!1,R&&this.killAll(),this.emit(i.STOP,this)),this},pause:function(){return this.active=!1,this},resume:function(){return this.active=!0,this},setSortProperty:function(R,O){return R===void 0&&(R=""),O===void 0&&(O=this.true),this.sortProperty=R,this.sortOrderAsc=O,this.sortCallback=this.depthSortCallback,this},setSortCallback:function(R){return this.sortProperty!==""?R=this.depthSortCallback:R=null,this.sortCallback=R,this},depthSort:function(){return F(this.alive,this.sortCallback.bind(this)),this},depthSortCallback:function(R,O){var w=this.sortProperty;return this.sortOrderAsc?R[w]-O[w]:O[w]-R[w]},flow:function(R,O,w){return O===void 0&&(O=1),this.emitting=!1,this.frequency=R,this.quantity=O,w!==void 0&&(this.stopAfter=w),this.start()},explode:function(R,O,w){this.frequency=-1,this.resetCounters(-1,!0);var G=this.emitParticle(R,O,w);return this.emit(i.EXPLODE,this,G),G},emitParticleAt:function(R,O,w){return this.emitParticle(w,R,O)},emitParticle:function(R,O,w){if(!this.atLimit()){R===void 0&&(R=this.ops.quantity.onEmit());for(var G=this.dead,U=this.stopAfter,z=this.follow?this.follow.x+this.followOffset.x:O,V=this.follow?this.follow.y+this.followOffset.y:w,Y=0;Y0&&(this.stopCounter++,this.stopCounter>=U)||this.atLimit())break}return W}},fastForward:function(R,O){O===void 0&&(O=1e3/60);var w=0;for(this.skipping=!0;w0){var K=this.deathCallback,Q=this.deathCallbackScope;for(V=W-1;V>=0;V--){var Z=Y[V];U.splice(Z.index,1),z.push(Z.particle),K&&K.call(Q,Z.particle),Z.particle.setPosition()}}if(!this.emitting&&!this.skipping){this.completeFlag===1&&U.length===0&&(this.completeFlag=0,this.emit(i.COMPLETE,this));return}if(this.frequency===0)this.emitParticle();else if(this.frequency>0)for(this.flowCounter-=O;this.flowCounter<=0;)this.emitParticle(),this.flowCounter+=this.frequency;this.skipping||(this.duration>0&&(this.elapsed+=O,this.elapsed>=this.duration&&this.stop()),this.stopAfter>0&&this.stopCounter>=this.stopAfter&&this.stop())},overlap:function(R){for(var O=this.getWorldTransformMatrix(),w=this.alive,G=w.length,U=[],z=0;z0){var H=0;for(this.skipping=!0;H0&&x(G,R,R),G},createEmitter:function(){throw new Error("createEmitter removed. See ParticleEmitter docs for info")},particleX:{get:function(){return this.ops.x.current},set:function(R){this.ops.x.onChange(R)}},particleY:{get:function(){return this.ops.y.current},set:function(R){this.ops.y.onChange(R)}},accelerationX:{get:function(){return this.ops.accelerationX.current},set:function(R){this.ops.accelerationX.onChange(R)}},accelerationY:{get:function(){return this.ops.accelerationY.current},set:function(R){this.ops.accelerationY.onChange(R)}},maxVelocityX:{get:function(){return this.ops.maxVelocityX.current},set:function(R){this.ops.maxVelocityX.onChange(R)}},maxVelocityY:{get:function(){return this.ops.maxVelocityY.current},set:function(R){this.ops.maxVelocityY.onChange(R)}},speed:{get:function(){return this.ops.speedX.current},set:function(R){this.ops.speedX.onChange(R),this.ops.speedY.onChange(R)}},speedX:{get:function(){return this.ops.speedX.current},set:function(R){this.ops.speedX.onChange(R)}},speedY:{get:function(){return this.ops.speedY.current},set:function(R){this.ops.speedY.onChange(R)}},moveToX:{get:function(){return this.ops.moveToX.current},set:function(R){this.ops.moveToX.onChange(R)}},moveToY:{get:function(){return this.ops.moveToY.current},set:function(R){this.ops.moveToY.onChange(R)}},bounce:{get:function(){return this.ops.bounce.current},set:function(R){this.ops.bounce.onChange(R)}},particleScaleX:{get:function(){return this.ops.scaleX.current},set:function(R){this.ops.scaleX.onChange(R)}},particleScaleY:{get:function(){return this.ops.scaleY.current},set:function(R){this.ops.scaleY.onChange(R)}},particleColor:{get:function(){return this.ops.color.current},set:function(R){this.ops.color.onChange(R)}},colorEase:{get:function(){return this.ops.color.easeName},set:function(R){this.ops.color.setEase(R)}},particleTint:{get:function(){return this.ops.tint.current},set:function(R){this.ops.tint.onChange(R)}},particleAlpha:{get:function(){return this.ops.alpha.current},set:function(R){this.ops.alpha.onChange(R)}},lifespan:{get:function(){return this.ops.lifespan.current},set:function(R){this.ops.lifespan.onChange(R)}},particleAngle:{get:function(){return this.ops.angle.current},set:function(R){this.ops.angle.onChange(R)}},particleRotate:{get:function(){return this.ops.rotate.current},set:function(R){this.ops.rotate.onChange(R)}},quantity:{get:function(){return this.ops.quantity.current},set:function(R){this.ops.quantity.onChange(R)}},delay:{get:function(){return this.ops.delay.current},set:function(R){this.ops.delay.onChange(R)}},hold:{get:function(){return this.ops.hold.current},set:function(R){this.ops.hold.onChange(R)}},flowCounter:{get:function(){return this.counters[0]},set:function(R){this.counters[0]=R}},frameCounter:{get:function(){return this.counters[1]},set:function(R){this.counters[1]=R}},animCounter:{get:function(){return this.counters[2]},set:function(R){this.counters[2]=R}},elapsed:{get:function(){return this.counters[3]},set:function(R){this.counters[3]=R}},stopCounter:{get:function(){return this.counters[4]},set:function(R){this.counters[4]=R}},completeFlag:{get:function(){return this.counters[5]},set:function(R){this.counters[5]=R}},zoneIndex:{get:function(){return this.counters[6]},set:function(R){this.counters[6]=R}},zoneTotal:{get:function(){return this.counters[7]},set:function(R){this.counters[7]=R}},currentFrame:{get:function(){return this.counters[8]},set:function(R){this.counters[8]=R}},currentAnim:{get:function(){return this.counters[9]},set:function(R){this.counters[9]=R}},preDestroy:function(){this.texture=null,this.frames=null,this.anims=null,this.emitCallback=null,this.emitCallbackScope=null,this.deathCallback=null,this.deathCallbackScope=null,this.emitZones=null,this.deathZones=null,this.bounds=null,this.follow=null,this.counters=null;var R,O=this.ops;for(R=0;R{/** + */var d=t(83419),p=t(31401),l=t(53774),r=t(43459),n=t(26388),e=t(19909),s=t(76472),o=t(44777),i=t(20696),a=t(95643),u=t(95540),h=t(26546),f=t(24502),v=t(1985),m=t(97022),g=t(86091),x=t(73162),y=t(20074),S=t(269),C=t(56480),E=t(69601),M=t(68875),P=t(87841),A=t(59996),R=t(72905),F=t(90668),D=t(19186),w=t(61340),G=t(26099),N=t(15994),b=["active","advance","blendMode","colorEase","deathCallback","deathCallbackScope","duration","emitCallback","emitCallbackScope","follow","frequency","gravityX","gravityY","maxAliveParticles","maxParticles","name","emitting","particleBringToTop","particleClass","radial","sortCallback","sortOrderAsc","sortProperty","stopAfter","tintFill","timeScale","trackVisible","visible"],B=["accelerationX","accelerationY","alpha","angle","bounce","color","delay","hold","lifespan","maxVelocityX","maxVelocityY","moveToX","moveToY","quantity","rotate","scaleX","scaleY","speedX","speedY","tint","x","y"],O=new d({Extends:a,Mixins:[p.AlphaSingle,p.BlendMode,p.Depth,p.Mask,p.Pipeline,p.PostPipeline,p.ScrollFactor,p.Texture,p.Transform,p.Visible,F],initialize:function(I,U,X,z,V){a.call(this,I,"ParticleEmitter"),this.particleClass=C,this.config=null,this.ops={accelerationX:new o("accelerationX",0),accelerationY:new o("accelerationY",0),alpha:new o("alpha",1),angle:new o("angle",{min:0,max:360},!0),bounce:new o("bounce",0),color:new s("color"),delay:new o("delay",0,!0),hold:new o("hold",0,!0),lifespan:new o("lifespan",1e3,!0),maxVelocityX:new o("maxVelocityX",1e4),maxVelocityY:new o("maxVelocityY",1e4),moveToX:new o("moveToX",0),moveToY:new o("moveToY",0),quantity:new o("quantity",1,!0),rotate:new o("rotate",0),scaleX:new o("scaleX",1),scaleY:new o("scaleY",1),speedX:new o("speedX",0,!0),speedY:new o("speedY",0,!0),tint:new o("tint",16777215),x:new o("x",0),y:new o("y",0)},this.radial=!0,this.gravityX=0,this.gravityY=0,this.acceleration=!1,this.moveTo=!1,this.emitCallback=null,this.emitCallbackScope=null,this.deathCallback=null,this.deathCallbackScope=null,this.maxParticles=0,this.maxAliveParticles=0,this.stopAfter=0,this.duration=0,this.frequency=0,this.emitting=!0,this.particleBringToTop=!0,this.timeScale=1,this.emitZones=[],this.deathZones=[],this.viewBounds=null,this.follow=null,this.followOffset=new G,this.trackVisible=!1,this.frames=[],this.randomFrame=!0,this.frameQuantity=1,this.anims=[],this.randomAnim=!0,this.animQuantity=1,this.dead=[],this.alive=[],this.counters=new Float32Array(10),this.skipping=!1,this.worldMatrix=new w,this.sortProperty="",this.sortOrderAsc=!0,this.sortCallback=this.depthSortCallback,this.processors=new x(this),this.tintFill=!1,this.initPipeline(),this.initPostPipeline(),this.setPosition(U,X),this.setTexture(z),V&&this.setConfig(V)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},setConfig:function(L){if(!L)return this;this.config=L;var I=0,U="",X=this.ops;for(I=0;I=this.animQuantity&&(this.animCounter=0,this.currentAnim=N(this.currentAnim+1,0,I)),U},setAnim:function(L,I,U){I===void 0&&(I=!0),U===void 0&&(U=1),this.randomAnim=I,this.animQuantity=U,this.currentAnim=0;var X=typeof L;if(this.anims.length=0,Array.isArray(L))this.anims=this.anims.concat(L);else if(X==="string")this.anims.push(L);else if(X==="object"){var z=L;L=u(z,"anims",null),L&&(this.anims=this.anims.concat(L));var V=u(z,"cycle",!1);this.randomAnim=!V,this.animQuantity=u(z,"quantity",U)}return this.anims.length===1&&(this.animQuantity=1,this.randomAnim=!1),this},setRadial:function(L){return L===void 0&&(L=!0),this.radial=L,this},addParticleBounds:function(L,I,U,X,z,V,Y,W){if(typeof L=="object"){var H=L;L=H.x,I=H.y,U=m(H,"w")?H.w:H.width,X=m(H,"h")?H.h:H.height}return this.addParticleProcessor(new E(L,I,U,X,z,V,Y,W))},setParticleSpeed:function(L,I){return I===void 0&&(I=L),this.ops.speedX.onChange(L),L===I?this.ops.speedY.active=!1:this.ops.speedY.onChange(I),this.radial=!0,this},setParticleScale:function(L,I){return L===void 0&&(L=1),I===void 0&&(I=L),this.ops.scaleX.onChange(L),this.ops.scaleY.onChange(I),this},setParticleGravity:function(L,I){return this.gravityX=L,this.gravityY=I,this},setParticleAlpha:function(L){return this.ops.alpha.onChange(L),this},setParticleTint:function(L){return this.ops.tint.onChange(L),this},setEmitterAngle:function(L){return this.ops.angle.onChange(L),this},setParticleLifespan:function(L){return this.ops.lifespan.onChange(L),this},setQuantity:function(L){return this.quantity=L,this},setFrequency:function(L,I){return this.frequency=L,this.flowCounter=L>0?L:0,I&&(this.quantity=I),this},addDeathZone:function(L){Array.isArray(L)||(L=[L]);for(var I,U=[],X=0;X-1&&(this.zoneTotal++,this.zoneTotal===X.total&&(this.zoneTotal=0,this.zoneIndex++,this.zoneIndex===U&&(this.zoneIndex=0)))}},getDeathZone:function(L){for(var I=this.deathZones,U=0;U=0&&(this.zoneIndex=I),this},addParticleProcessor:function(L){return this.processors.exists(L)||(L.emitter&&L.emitter.removeParticleProcessor(L),this.processors.add(L),L.emitter=this),L},removeParticleProcessor:function(L){return this.processors.exists(L)&&(this.processors.remove(L,!0),L.emitter=null),L},getProcessors:function(){return this.processors.getAll("active",!0)},createGravityWell:function(L){return this.addParticleProcessor(new f(L))},reserve:function(L){var I=this.dead;if(this.maxParticles>0){var U=this.getParticleCount();U+L>this.maxParticles&&(L=this.maxParticles-(U+L))}for(var X=0;X0&&this.getParticleCount()>=this.maxParticles?!0:this.maxAliveParticles>0&&this.getAliveParticleCount()>=this.maxAliveParticles},onParticleEmit:function(L,I){return L===void 0?(this.emitCallback=null,this.emitCallbackScope=null):typeof L=="function"&&(this.emitCallback=L,I&&(this.emitCallbackScope=I)),this},onParticleDeath:function(L,I){return L===void 0?(this.deathCallback=null,this.deathCallbackScope=null):typeof L=="function"&&(this.deathCallback=L,I&&(this.deathCallbackScope=I)),this},killAll:function(){for(var L=this.dead,I=this.alive;I.length>0;)L.push(I.pop());return this},forEachAlive:function(L,I){for(var U=this.alive,X=U.length,z=0;z0&&this.fastForward(L),this.emitting=!0,this.resetCounters(this.frequency,!0),I!==void 0&&(this.duration=Math.abs(I)),this.emit(i.START,this)),this},stop:function(L){return L===void 0&&(L=!1),this.emitting&&(this.emitting=!1,L&&this.killAll(),this.emit(i.STOP,this)),this},pause:function(){return this.active=!1,this},resume:function(){return this.active=!0,this},setSortProperty:function(L,I){return L===void 0&&(L=""),I===void 0&&(I=this.true),this.sortProperty=L,this.sortOrderAsc=I,this.sortCallback=this.depthSortCallback,this},setSortCallback:function(L){return this.sortProperty!==""?L=this.depthSortCallback:L=null,this.sortCallback=L,this},depthSort:function(){return D(this.alive,this.sortCallback.bind(this)),this},depthSortCallback:function(L,I){var U=this.sortProperty;return this.sortOrderAsc?L[U]-I[U]:I[U]-L[U]},flow:function(L,I,U){return I===void 0&&(I=1),this.emitting=!1,this.frequency=L,this.quantity=I,U!==void 0&&(this.stopAfter=U),this.start()},explode:function(L,I,U){this.frequency=-1,this.resetCounters(-1,!0);var X=this.emitParticle(L,I,U);return this.emit(i.EXPLODE,this,X),X},emitParticleAt:function(L,I,U){return this.emitParticle(U,L,I)},emitParticle:function(L,I,U){if(!this.atLimit()){L===void 0&&(L=this.ops.quantity.onEmit());for(var X=this.dead,z=this.stopAfter,V=this.follow?this.follow.x+this.followOffset.x:I,Y=this.follow?this.follow.y+this.followOffset.y:U,W=0;W0&&(this.stopCounter++,this.stopCounter>=z)||this.atLimit())break}return H}},fastForward:function(L,I){I===void 0&&(I=1e3/60);var U=0;for(this.skipping=!0;U0){var j=this.deathCallback,Z=this.deathCallbackScope;for(Y=H-1;Y>=0;Y--){var _=W[Y];z.splice(_.index,1),V.push(_.particle),j&&j.call(Z,_.particle),_.particle.setPosition()}}if(!this.emitting&&!this.skipping){this.completeFlag===1&&z.length===0&&(this.completeFlag=0,this.emit(i.COMPLETE,this));return}if(this.frequency===0)this.emitParticle();else if(this.frequency>0)for(this.flowCounter-=I;this.flowCounter<=0;)this.emitParticle(),this.flowCounter+=this.frequency;this.skipping||(this.duration>0&&(this.elapsed+=I,this.elapsed>=this.duration&&this.stop()),this.stopAfter>0&&this.stopCounter>=this.stopAfter&&this.stop())},overlap:function(L){for(var I=this.getWorldTransformMatrix(),U=this.alive,X=U.length,z=[],V=0;V0){var K=0;for(this.skipping=!0;K0&&g(X,L,L),X},createEmitter:function(){throw new Error("createEmitter removed. See ParticleEmitter docs for info")},particleX:{get:function(){return this.ops.x.current},set:function(L){this.ops.x.onChange(L)}},particleY:{get:function(){return this.ops.y.current},set:function(L){this.ops.y.onChange(L)}},accelerationX:{get:function(){return this.ops.accelerationX.current},set:function(L){this.ops.accelerationX.onChange(L)}},accelerationY:{get:function(){return this.ops.accelerationY.current},set:function(L){this.ops.accelerationY.onChange(L)}},maxVelocityX:{get:function(){return this.ops.maxVelocityX.current},set:function(L){this.ops.maxVelocityX.onChange(L)}},maxVelocityY:{get:function(){return this.ops.maxVelocityY.current},set:function(L){this.ops.maxVelocityY.onChange(L)}},speed:{get:function(){return this.ops.speedX.current},set:function(L){this.ops.speedX.onChange(L),this.ops.speedY.onChange(L)}},speedX:{get:function(){return this.ops.speedX.current},set:function(L){this.ops.speedX.onChange(L)}},speedY:{get:function(){return this.ops.speedY.current},set:function(L){this.ops.speedY.onChange(L)}},moveToX:{get:function(){return this.ops.moveToX.current},set:function(L){this.ops.moveToX.onChange(L)}},moveToY:{get:function(){return this.ops.moveToY.current},set:function(L){this.ops.moveToY.onChange(L)}},bounce:{get:function(){return this.ops.bounce.current},set:function(L){this.ops.bounce.onChange(L)}},particleScaleX:{get:function(){return this.ops.scaleX.current},set:function(L){this.ops.scaleX.onChange(L)}},particleScaleY:{get:function(){return this.ops.scaleY.current},set:function(L){this.ops.scaleY.onChange(L)}},particleColor:{get:function(){return this.ops.color.current},set:function(L){this.ops.color.onChange(L)}},colorEase:{get:function(){return this.ops.color.easeName},set:function(L){this.ops.color.setEase(L)}},particleTint:{get:function(){return this.ops.tint.current},set:function(L){this.ops.tint.onChange(L)}},particleAlpha:{get:function(){return this.ops.alpha.current},set:function(L){this.ops.alpha.onChange(L)}},lifespan:{get:function(){return this.ops.lifespan.current},set:function(L){this.ops.lifespan.onChange(L)}},particleAngle:{get:function(){return this.ops.angle.current},set:function(L){this.ops.angle.onChange(L)}},particleRotate:{get:function(){return this.ops.rotate.current},set:function(L){this.ops.rotate.onChange(L)}},quantity:{get:function(){return this.ops.quantity.current},set:function(L){this.ops.quantity.onChange(L)}},delay:{get:function(){return this.ops.delay.current},set:function(L){this.ops.delay.onChange(L)}},hold:{get:function(){return this.ops.hold.current},set:function(L){this.ops.hold.onChange(L)}},flowCounter:{get:function(){return this.counters[0]},set:function(L){this.counters[0]=L}},frameCounter:{get:function(){return this.counters[1]},set:function(L){this.counters[1]=L}},animCounter:{get:function(){return this.counters[2]},set:function(L){this.counters[2]=L}},elapsed:{get:function(){return this.counters[3]},set:function(L){this.counters[3]=L}},stopCounter:{get:function(){return this.counters[4]},set:function(L){this.counters[4]=L}},completeFlag:{get:function(){return this.counters[5]},set:function(L){this.counters[5]=L}},zoneIndex:{get:function(){return this.counters[6]},set:function(L){this.counters[6]=L}},zoneTotal:{get:function(){return this.counters[7]},set:function(L){this.counters[7]=L}},currentFrame:{get:function(){return this.counters[8]},set:function(L){this.counters[8]=L}},currentAnim:{get:function(){return this.counters[9]},set:function(L){this.counters[9]=L}},preDestroy:function(){this.texture=null,this.frames=null,this.anims=null,this.emitCallback=null,this.emitCallbackScope=null,this.deathCallback=null,this.deathCallbackScope=null,this.emitZones=null,this.deathZones=null,this.bounds=null,this.follow=null,this.counters=null;var L,I=this.ops;for(L=0;L{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(59996),p=t(61340),a=new p,r=new p,n=new p,e=new p,s=function(l,i,o,u){var h=a,f=r,v=n,m=e;u?(m.loadIdentity(),m.multiply(u),m.translate(i.x,i.y),m.rotate(i.rotation),m.scale(i.scaleX,i.scaleY)):m.applyITRS(i.x,i.y,i.rotation,i.scaleX,i.scaleY);var x=l.currentContext,g=o.roundPixels,y=o.alpha,S=i.alpha,C=i.alive,E=C.length,A=i.viewBounds;if(!(!i.visible||E===0||A&&!d(A,o.worldView))){i.sortCallback&&i.depthSort(),o.addToRenderList(i);var P=i.scrollFactorX,M=i.scrollFactorY;x.save(),x.globalCompositeOperation=l.blendModes[i.blendMode];for(var F=0;F0&&N.height>0){var X=-B.halfWidth,D=-B.halfHeight;x.globalAlpha=b,x.save(),f.setToContext(x),g&&(X=Math.round(X),D=Math.round(D)),x.imageSmoothingEnabled=!B.source.scaleMode,x.drawImage(B.source.image,N.x,N.y,N.width,N.height,X,D,N.width,N.height),x.restore()}}}x.restore()}};c.exports=s},92730:(c,T,t)=>{/** + */var d=t(59996),p=t(61340),l=new p,r=new p,n=new p,e=new p,s=function(o,i,a,u){var h=l,f=r,v=n,m=e;u?(m.loadIdentity(),m.multiply(u),m.translate(i.x,i.y),m.rotate(i.rotation),m.scale(i.scaleX,i.scaleY)):m.applyITRS(i.x,i.y,i.rotation,i.scaleX,i.scaleY);var g=o.currentContext,x=a.roundPixels,y=a.alpha,S=i.alpha,C=i.alive,E=C.length,M=i.viewBounds;if(!(!i.visible||E===0||M&&!d(M,a.worldView))){i.sortCallback&&i.depthSort(),a.addToRenderList(i);var P=i.scrollFactorX,A=i.scrollFactorY;g.save(),g.globalCompositeOperation=o.blendModes[i.blendMode];for(var R=0;R0&&G.height>0){var N=-w.halfWidth,b=-w.halfHeight;g.globalAlpha=D,g.save(),f.setToContext(g),x&&(N=Math.round(N),b=Math.round(b)),g.imageSmoothingEnabled=!w.source.scaleMode,g.drawImage(w.source.image,G.x,G.y,G.width,G.height,N,b,G.width,G.height),g.restore()}}}g.restore()}};c.exports=s},92730:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(25305),p=t(44603),a=t(23568),r=t(95540),n=t(31600);p.register("particles",function(e,s){e===void 0&&(e={});var l=a(e,"key",null),i=r(e,"config",null),o=new n(this.scene,0,0,l);return s!==void 0&&(e.add=s),d(this.scene,o,e),i&&o.setConfig(i),o})},676:(c,T,t)=>{/** + */var d=t(25305),p=t(44603),l=t(23568),r=t(95540),n=t(31600);p.register("particles",function(e,s){e===void 0&&(e={});var o=l(e,"key",null),i=r(e,"config",null),a=new n(this.scene,0,0,o);return s!==void 0&&(e.add=s),d(this.scene,a,e),i&&a.setConfig(i),a})},676:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(39429),p=t(31600);d.register("particles",function(a,r,n,e){return a!==void 0&&typeof a=="string"&&console.warn("ParticleEmitterManager was removed in Phaser 3.60. See documentation for details"),this.displayList.add(new p(this.scene,a,r,n,e))})},90668:(c,T,t)=>{/** + */var d=t(39429),p=t(31600);d.register("particles",function(l,r,n,e){return l!==void 0&&typeof l=="string"&&console.warn("ParticleEmitterManager was removed in Phaser 3.60. See documentation for details"),this.displayList.add(new p(this.scene,l,r,n,e))})},90668:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(21188),a=t(9871),c.exports={renderWebGL:p,renderCanvas:a}},21188:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(21188),l=t(9871),c.exports={renderWebGL:p,renderCanvas:l}},21188:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(59996),p=t(61340),a=t(70554),r=new p,n=new p,e=new p,s=new p,l=function(i,o,u,h){var f=i.pipelines.set(o.pipeline),v=r,m=n,x=e,g=s;h?(g.loadIdentity(),g.multiply(h),g.translate(o.x,o.y),g.rotate(o.rotation),g.scale(o.scaleX,o.scaleY)):g.applyITRS(o.x,o.y,o.rotation,o.scaleX,o.scaleY);var y=a.getTintAppendFloatAlpha,S=u.alpha,C=o.alpha;i.pipelines.preBatch(o);var E=o.alive,A=E.length,P=o.viewBounds;if(!(A===0||P&&!d(P,u.worldView))){o.sortCallback&&o.depthSort(),u.addToRenderList(o),v.copyFrom(u.matrix),v.multiplyWithOffset(g,-u.scrollX*o.scrollFactorX,-u.scrollY*o.scrollFactorY),i.setBlendMode(o.blendMode),o.mask&&(o.mask.preRenderWebGL(i,o,u),i.pipelines.set(o.pipeline));for(var M=o.tintFill,F,L,b=0;b{/** + */var d=t(59996),p=t(61340),l=t(70554),r=new p,n=new p,e=new p,s=new p,o=function(i,a,u,h){var f=i.pipelines.set(a.pipeline),v=r,m=n,g=e,x=s;h?(x.loadIdentity(),x.multiply(h),x.translate(a.x,a.y),x.rotate(a.rotation),x.scale(a.scaleX,a.scaleY)):x.applyITRS(a.x,a.y,a.rotation,a.scaleX,a.scaleY);var y=l.getTintAppendFloatAlpha,S=u.alpha,C=a.alpha;i.pipelines.preBatch(a);var E=a.alive,M=E.length,P=a.viewBounds;if(!(M===0||P&&!d(P,u.worldView))){a.sortCallback&&a.depthSort(),u.addToRenderList(a),v.copyFrom(u.matrix),v.multiplyWithOffset(x,-u.scrollX*a.scrollFactorX,-u.scrollY*a.scrollFactorY),i.setBlendMode(a.blendMode),a.mask&&(a.mask.preRenderWebGL(i,a,u),i.pipelines.set(a.pipeline));for(var A=a.tintFill,R,F,D=0;D{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -1717,15 +1721,15 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=new d({initialize:function(r,n){this.source=r,this.killOnEnter=n},willKill:function(a){var r=a.worldPosition,n=this.source.contains(r.x,r.y);return n&&this.killOnEnter||!n&&!this.killOnEnter}});c.exports=p},19909:(c,T,t)=>{/** + */var d=t(83419),p=new d({initialize:function(r,n){this.source=r,this.killOnEnter=n},willKill:function(l){var r=this.source.contains(l.x,l.y);return r&&this.killOnEnter||!r&&!this.killOnEnter}});c.exports=p},19909:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=new d({initialize:function(r,n,e,s,l,i){s===void 0&&(s=!1),l===void 0&&(l=!0),i===void 0&&(i=-1),this.source=r,this.points=[],this.quantity=n,this.stepRate=e,this.yoyo=s,this.counter=-1,this.seamless=l,this._length=0,this._direction=0,this.total=i,this.updateSource()},updateSource:function(){if(this.points=this.source.getPoints(this.quantity,this.stepRate),this.seamless){var a=this.points[0],r=this.points[this.points.length-1];a.x===r.x&&a.y===r.y&&this.points.pop()}var n=this._length;return this._length=this.points.length,this._lengththis._length&&(this.counter=this._length-1),this},changeSource:function(a){return this.source=a,this.updateSource()},getPoint:function(a){this._direction===0?(this.counter++,this.counter>=this._length&&(this.yoyo?(this._direction=1,this.counter=this._length-1):this.counter=0)):(this.counter--,this.counter===-1&&(this.yoyo?(this._direction=0,this.counter=0):this.counter=this._length-1));var r=this.points[this.counter];r&&(a.x=r.x,a.y=r.y)}});c.exports=p},68875:(c,T,t)=>{/** + */var d=t(83419),p=new d({initialize:function(r,n,e,s,o,i){s===void 0&&(s=!1),o===void 0&&(o=!0),i===void 0&&(i=-1),this.source=r,this.points=[],this.quantity=n,this.stepRate=e,this.yoyo=s,this.counter=-1,this.seamless=o,this._length=0,this._direction=0,this.total=i,this.updateSource()},updateSource:function(){if(this.points=this.source.getPoints(this.quantity,this.stepRate),this.seamless){var l=this.points[0],r=this.points[this.points.length-1];l.x===r.x&&l.y===r.y&&this.points.pop()}var n=this._length;return this._length=this.points.length,this._lengththis._length&&(this.counter=this._length-1),this},changeSource:function(l){return this.source=l,this.updateSource()},getPoint:function(l){this._direction===0?(this.counter++,this.counter>=this._length&&(this.yoyo?(this._direction=1,this.counter=this._length-1):this.counter=0)):(this.counter--,this.counter===-1&&(this.yoyo?(this._direction=0,this.counter=0):this.counter=this._length-1));var r=this.points[this.counter];r&&(l.x=r.x,l.y=r.y)}});c.exports=p},68875:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(26099),a=new d({initialize:function(n){this.source=n,this._tempVec=new p,this.total=-1},getPoint:function(r){var n=this._tempVec;this.source.getRandomPoint(n),r.x=n.x,r.y=n.y}});c.exports=a},21024:(c,T,t)=>{/** + */var d=t(83419),p=t(26099),l=new d({initialize:function(n){this.source=n,this._tempVec=new p,this.total=-1},getPoint:function(r){var n=this._tempVec;this.source.getRandomPoint(n),r.x=n.x,r.y=n.y}});c.exports=l},21024:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -1733,59 +1737,59 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(31401),a=t(68287),r=new d({Extends:a,Mixins:[p.PathFollower],initialize:function(e,s,l,i,o,u){a.call(this,e,l,i,o,u),this.path=s},preUpdate:function(n,e){this.anims.update(n,e),this.pathUpdate(n)}});c.exports=r},90145:(c,T,t)=>{/** + */var d=t(83419),p=t(31401),l=t(68287),r=new d({Extends:l,Mixins:[p.PathFollower],initialize:function(e,s,o,i,a,u){l.call(this,e,o,i,a,u),this.path=s},preUpdate:function(n,e){this.anims.update(n,e),this.pathUpdate(n)}});c.exports=r},90145:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(39429),p=t(1159);d.register("follower",function(a,r,n,e,s){var l=new p(this.scene,a,r,n,e,s);return this.displayList.add(l),this.updateList.add(l),l})},33663:(c,T,t)=>{/** + */var d=t(39429),p=t(1159);d.register("follower",function(l,r,n,e,s){var o=new p(this.scene,l,r,n,e,s);return this.displayList.add(o),this.updateList.add(o),o})},33663:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(9674),p=t(83419),a=t(48803),r=t(90664),n=t(4703),e=t(45650),s=new p({Extends:n,initialize:function(i,o,u,h,f,v,m,x){h||(h="__DEFAULT"),n.call(this,i,o,u,h,f),this.type="Plane",this.anims=new d(this),this.gridWidth,this.gridHeight,this.isTiled,this._checkerboard=null,this.hideCCW=!1,this.setGridSize(v,m,x),this.setSizeToFrame(!1),this.setViewHeight()},originX:{get:function(){return .5}},originY:{get:function(){return .5}},setGridSize:function(l,i,o){l===void 0&&(l=8),i===void 0&&(i=8),o===void 0&&(o=!1);var u=!1;return o&&(u=!0),this.gridWidth=l,this.gridHeight=i,this.isTiled=o,this.clear(),a({mesh:this,widthSegments:l,heightSegments:i,isOrtho:!1,tile:o,flipY:u}),this},setSizeToFrame:function(l){l===void 0&&(l=!0);var i=this.frame;if(this.setPerspective(this.width/i.width,this.height/i.height),this._checkerboard&&this._checkerboard!==this.texture&&this.removeCheckerboard(),!l)return this;var o=this.gridWidth,u=this.gridHeight,h=this.vertices,f=i.u0,v=i.u1,m=i.v0,x=i.v1,g,y,S=0;if(this.isTiled)for(m=i.v1,x=i.v0,y=0;y7&&g>7?m.push(f.r,f.g,f.b,o):m.push(v.r,v.g,v.b,u);var y=this.scene.sys.textures.addUint8Array(e(),new Uint8Array(m),16,16);return this.removeCheckerboard(),this.setTexture(y),this.setSizeToFrame(),this.setViewHeight(h),this},removeCheckerboard:function(){this._checkerboard&&(this._checkerboard.destroy(),this._checkerboard=null)},play:function(l,i){return this.anims.play(l,i)},playReverse:function(l,i){return this.anims.playReverse(l,i)},playAfterDelay:function(l,i){return this.anims.playAfterDelay(l,i)},playAfterRepeat:function(l,i){return this.anims.playAfterRepeat(l,i)},stop:function(){return this.anims.stop()},stopAfterDelay:function(l){return this.anims.stopAfterDelay(l)},stopAfterRepeat:function(l){return this.anims.stopAfterRepeat(l)},stopOnFrame:function(l){return this.anims.stopOnFrame(l)},preUpdate:function(l,i){n.prototype.preUpdate.call(this,l,i),this.anims.update(l,i)},preDestroy:function(){this.clear(),this.removeCheckerboard(),this.anims.destroy(),this.anims=void 0,this.debugCallback=null,this.debugGraphic=null}});c.exports=s},56015:(c,T,t)=>{/** + */var d=t(9674),p=t(83419),l=t(48803),r=t(90664),n=t(4703),e=t(45650),s=new p({Extends:n,initialize:function(i,a,u,h,f,v,m,g){h||(h="__DEFAULT"),n.call(this,i,a,u,h,f),this.type="Plane",this.anims=new d(this),this.gridWidth,this.gridHeight,this.isTiled,this._checkerboard=null,this.hideCCW=!1,this.setGridSize(v,m,g),this.setSizeToFrame(!1),this.setViewHeight()},originX:{get:function(){return .5}},originY:{get:function(){return .5}},setGridSize:function(o,i,a){o===void 0&&(o=8),i===void 0&&(i=8),a===void 0&&(a=!1);var u=!1;return a&&(u=!0),this.gridWidth=o,this.gridHeight=i,this.isTiled=a,this.clear(),l({mesh:this,widthSegments:o,heightSegments:i,isOrtho:!1,tile:a,flipY:u}),this},setSizeToFrame:function(o){o===void 0&&(o=!0);var i=this.frame;if(this.setPerspective(this.width/i.width,this.height/i.height),this._checkerboard&&this._checkerboard!==this.texture&&this.removeCheckerboard(),!o)return this;var a=this.gridWidth,u=this.gridHeight,h=this.vertices,f=i.u0,v=i.u1,m=i.v0,g=i.v1,x,y,S=0;if(this.isTiled)for(m=i.v1,g=i.v0,y=0;y7&&x>7?m.push(f.r,f.g,f.b,a):m.push(v.r,v.g,v.b,u);var y=this.scene.sys.textures.addUint8Array(e(),new Uint8Array(m),16,16);return this.removeCheckerboard(),this.setTexture(y),this.setSizeToFrame(),this.setViewHeight(h),this},removeCheckerboard:function(){this._checkerboard&&(this._checkerboard.destroy(),this._checkerboard=null)},play:function(o,i){return this.anims.play(o,i)},playReverse:function(o,i){return this.anims.playReverse(o,i)},playAfterDelay:function(o,i){return this.anims.playAfterDelay(o,i)},playAfterRepeat:function(o,i){return this.anims.playAfterRepeat(o,i)},stop:function(){return this.anims.stop()},stopAfterDelay:function(o){return this.anims.stopAfterDelay(o)},stopAfterRepeat:function(o){return this.anims.stopAfterRepeat(o)},stopOnFrame:function(o){return this.anims.stopOnFrame(o)},preUpdate:function(o,i){n.prototype.preUpdate.call(this,o,i),this.anims.update(o,i)},preDestroy:function(){this.clear(),this.removeCheckerboard(),this.anims.destroy(),this.anims=void 0,this.debugCallback=null,this.debugGraphic=null}});c.exports=s},56015:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(25305),p=t(13059),a=t(44603),r=t(23568),n=t(35154),e=t(33663);a.register("plane",function(s,l){s===void 0&&(s={});var i=r(s,"key",null),o=r(s,"frame",null),u=n(s,"width",8),h=n(s,"height",8),f=n(s,"tile",!1),v=new e(this.scene,0,0,i,o,u,h,f);l!==void 0&&(s.add=l);var m=n(s,"checkerboard",null);if(m){var x=n(m,"color1",16777215),g=n(m,"color2",255),y=n(m,"alpha1",255),S=n(m,"alpha2",255),C=n(m,"height",128);v.createCheckerboard(x,g,y,S,C)}return d(this.scene,v,s),p(v,s),v})},30985:(c,T,t)=>{/** + */var d=t(25305),p=t(13059),l=t(44603),r=t(23568),n=t(35154),e=t(33663);l.register("plane",function(s,o){s===void 0&&(s={});var i=r(s,"key",null),a=r(s,"frame",null),u=n(s,"width",8),h=n(s,"height",8),f=n(s,"tile",!1),v=new e(this.scene,0,0,i,a,u,h,f);o!==void 0&&(s.add=o);var m=n(s,"checkerboard",null);if(m){var g=n(m,"color1",16777215),x=n(m,"color2",255),y=n(m,"alpha1",255),S=n(m,"alpha2",255),C=n(m,"height",128);v.createCheckerboard(g,x,y,S,C)}return d(this.scene,v,s),p(v,s),v})},30985:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(33663),p=t(39429);p.register("plane",function(a,r,n,e,s,l,i){return this.displayList.add(new d(this.scene,a,r,n,e,s,l,i))})},80321:(c,T,t)=>{/** + */var d=t(33663),p=t(39429);p.register("plane",function(l,r,n,e,s,o,i){return this.displayList.add(new d(this.scene,l,r,n,e,s,o,i))})},80321:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(31401),a=t(95643),r=t(30100),n=t(36060),e=t(67277),s=new d({Extends:a,Mixins:[p.AlphaSingle,p.BlendMode,p.Depth,p.Mask,p.Pipeline,p.PostPipeline,p.ScrollFactor,p.Transform,p.Visible,e],initialize:function(i,o,u,h,f,v,m){h===void 0&&(h=16777215),f===void 0&&(f=128),v===void 0&&(v=1),m===void 0&&(m=.1),a.call(this,i,"PointLight"),this.initPipeline(n.POINTLIGHT_PIPELINE),this.initPostPipeline(),this.setPosition(o,u),this.color=r(h),this.intensity=v,this.attenuation=m,this.width=f*2,this.height=f*2,this._radius=f},radius:{get:function(){return this._radius},set:function(l){this._radius=l,this.width=l*2,this.height=l*2}},originX:{get:function(){return .5}},originY:{get:function(){return .5}},displayOriginX:{get:function(){return this._radius}},displayOriginY:{get:function(){return this._radius}}});c.exports=s},39829:(c,T,t)=>{/** + */var d=t(83419),p=t(31401),l=t(95643),r=t(30100),n=t(36060),e=t(67277),s=new d({Extends:l,Mixins:[p.AlphaSingle,p.BlendMode,p.Depth,p.Mask,p.Pipeline,p.PostPipeline,p.ScrollFactor,p.Transform,p.Visible,e],initialize:function(i,a,u,h,f,v,m){h===void 0&&(h=16777215),f===void 0&&(f=128),v===void 0&&(v=1),m===void 0&&(m=.1),l.call(this,i,"PointLight"),this.initPipeline(n.POINTLIGHT_PIPELINE),this.initPostPipeline(),this.setPosition(a,u),this.color=r(h),this.intensity=v,this.attenuation=m,this.width=f*2,this.height=f*2,this._radius=f},radius:{get:function(){return this._radius},set:function(o){this._radius=o,this.width=o*2,this.height=o*2}},originX:{get:function(){return .5}},originY:{get:function(){return .5}},displayOriginX:{get:function(){return this._radius}},displayOriginY:{get:function(){return this._radius}}});c.exports=s},39829:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(25305),p=t(44603),a=t(23568),r=t(80321);p.register("pointlight",function(n,e){n===void 0&&(n={});var s=a(n,"color",16777215),l=a(n,"radius",128),i=a(n,"intensity",1),o=a(n,"attenuation",.1),u=new r(this.scene,0,0,s,l,i,o);return e!==void 0&&(n.add=e),d(this.scene,u,n),u})},71255:(c,T,t)=>{/** + */var d=t(25305),p=t(44603),l=t(23568),r=t(80321);p.register("pointlight",function(n,e){n===void 0&&(n={});var s=l(n,"color",16777215),o=l(n,"radius",128),i=l(n,"intensity",1),a=l(n,"attenuation",.1),u=new r(this.scene,0,0,s,o,i,a);return e!==void 0&&(n.add=e),d(this.scene,u,n),u})},71255:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(39429),p=t(80321);d.register("pointlight",function(a,r,n,e,s,l){return this.displayList.add(new p(this.scene,a,r,n,e,s,l))})},67277:(c,T,t)=>{/** + */var d=t(39429),p=t(80321);d.register("pointlight",function(l,r,n,e,s,o){return this.displayList.add(new p(this.scene,l,r,n,e,s,o))})},67277:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(57787),c.exports={renderWebGL:p,renderCanvas:a}},57787:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(57787),c.exports={renderWebGL:p,renderCanvas:l}},57787:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91296),p=function(a,r,n,e){n.addToRenderList(r);var s=a.pipelines.set(r.pipeline),l=d(r,n,e).calc,i=r.width,o=r.height,u=-r._radius,h=-r._radius,f=u+i,v=h+o,m=l.getX(0,0),x=l.getY(0,0),g=l.getX(u,h),y=l.getY(u,h),S=l.getX(u,v),C=l.getY(u,v),E=l.getX(f,v),A=l.getY(f,v),P=l.getX(f,h),M=l.getY(f,h);a.pipelines.preBatch(r),s.batchPointLight(r,n,g,y,S,C,E,A,P,M,m,x),a.pipelines.postBatch(r)};c.exports=p},591:(c,T,t)=>{/** + */var d=t(91296),p=function(l,r,n,e){n.addToRenderList(r);var s=l.pipelines.set(r.pipeline),o=d(r,n,e).calc,i=r.width,a=r.height,u=-r._radius,h=-r._radius,f=u+i,v=h+a,m=o.getX(0,0),g=o.getY(0,0),x=o.getX(u,h),y=o.getY(u,h),S=o.getX(u,v),C=o.getY(u,v),E=o.getX(f,v),M=o.getY(f,v),P=o.getX(f,h),A=o.getY(f,h);l.pipelines.preBatch(r),s.batchPointLight(r,n,x,y,S,C,E,M,P,A,m,g),l.pipelines.postBatch(r)};c.exports=p},591:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(81320),a=t(88571),r=new d({Extends:a,initialize:function(e,s,l,i,o){s===void 0&&(s=0),l===void 0&&(l=0),i===void 0&&(i=32),o===void 0&&(o=32);var u=new p(e.sys.textures,"",i,o);a.call(this,e,s,l,u),this.type="RenderTexture",this.camera=this.texture.camera,this._saved=!1},setSize:function(n,e){this.width=n,this.height=e,this.texture.setSize(n,e),this.updateDisplayOrigin();var s=this.input;return s&&!s.customHitArea&&(s.hitArea.width=n,s.hitArea.height=e),this},resize:function(n,e){return this.setSize(n,e),this},saveTexture:function(n){var e=this.texture;return e.key=n,e.manager.addDynamicTexture(e)&&(this._saved=!0),e},fill:function(n,e,s,l,i,o){return this.texture.fill(n,e,s,l,i,o),this},clear:function(){return this.texture.clear(),this},stamp:function(n,e,s,l,i){return this.texture.stamp(n,e,s,l,i),this},erase:function(n,e,s){return this.texture.erase(n,e,s),this},draw:function(n,e,s,l,i){return this.texture.draw(n,e,s,l,i),this},drawFrame:function(n,e,s,l,i,o){return this.texture.drawFrame(n,e,s,l,i,o),this},repeat:function(n,e,s,l,i,o,u,h,f){return this.texture.repeat(n,e,s,l,i,o,u,h,f),this},beginDraw:function(){return this.texture.beginDraw(),this},batchDraw:function(n,e,s,l,i){return this.texture.batchDraw(n,e,s,l,i),this},batchDrawFrame:function(n,e,s,l,i,o){return this.texture.batchDrawFrame(n,e,s,l,i,o),this},endDraw:function(n){return this.texture.endDraw(n),this},snapshotArea:function(n,e,s,l,i,o,u){return this.texture.snapshotArea(n,e,s,l,i,o,u),this},snapshot:function(n,e,s){return this.snapshotArea(0,0,this.width,this.height,n,e,s)},snapshotPixel:function(n,e,s){return this.snapshotArea(n,e,1,1,s,"pixel")},preDestroy:function(){this.camera=null,this._saved||this.texture.destroy()}});c.exports=r},34495:(c,T,t)=>{/** + */var d=t(83419),p=t(81320),l=t(88571),r=new d({Extends:l,initialize:function(e,s,o,i,a){s===void 0&&(s=0),o===void 0&&(o=0),i===void 0&&(i=32),a===void 0&&(a=32);var u=new p(e.sys.textures,"",i,a);l.call(this,e,s,o,u),this.type="RenderTexture",this.camera=this.texture.camera,this._saved=!1},setSize:function(n,e){this.width=n,this.height=e,this.texture.setSize(n,e),this.updateDisplayOrigin();var s=this.input;return s&&!s.customHitArea&&(s.hitArea.width=n,s.hitArea.height=e),this},resize:function(n,e){return this.setSize(n,e),this},saveTexture:function(n){var e=this.texture;return e.key=n,e.manager.addDynamicTexture(e)&&(this._saved=!0),e},fill:function(n,e,s,o,i,a){return this.texture.fill(n,e,s,o,i,a),this},clear:function(){return this.texture.clear(),this},stamp:function(n,e,s,o,i){return this.texture.stamp(n,e,s,o,i),this},erase:function(n,e,s){return this.texture.erase(n,e,s),this},draw:function(n,e,s,o,i){return this.texture.draw(n,e,s,o,i),this},drawFrame:function(n,e,s,o,i,a){return this.texture.drawFrame(n,e,s,o,i,a),this},repeat:function(n,e,s,o,i,a,u,h,f){return this.texture.repeat(n,e,s,o,i,a,u,h,f),this},beginDraw:function(){return this.texture.beginDraw(),this},batchDraw:function(n,e,s,o,i){return this.texture.batchDraw(n,e,s,o,i),this},batchDrawFrame:function(n,e,s,o,i,a){return this.texture.batchDrawFrame(n,e,s,o,i,a),this},endDraw:function(n){return this.texture.endDraw(n),this},snapshotArea:function(n,e,s,o,i,a,u){return this.texture.snapshotArea(n,e,s,o,i,a,u),this},snapshot:function(n,e,s){return this.snapshotArea(0,0,this.width,this.height,n,e,s)},snapshotPixel:function(n,e,s){return this.snapshotArea(n,e,1,1,s,"pixel")},preDestroy:function(){this.camera=null,this._saved||this.texture.destroy()}});c.exports=r},34495:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(25305),p=t(44603),a=t(23568),r=t(591);p.register("renderTexture",function(n,e){n===void 0&&(n={});var s=a(n,"x",0),l=a(n,"y",0),i=a(n,"width",32),o=a(n,"height",32),u=new r(this.scene,s,l,i,o);return e!==void 0&&(n.add=e),d(this.scene,u,n),u})},60505:(c,T,t)=>{/** + */var d=t(25305),p=t(44603),l=t(23568),r=t(591);p.register("renderTexture",function(n,e){n===void 0&&(n={});var s=l(n,"x",0),o=l(n,"y",0),i=l(n,"width",32),a=l(n,"height",32),u=new r(this.scene,s,o,i,a);return e!==void 0&&(n.add=e),d(this.scene,u,n),u})},60505:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(39429),p=t(591);d.register("renderTexture",function(a,r,n,e){return this.displayList.add(new p(this.scene,a,r,n,e))})},77757:(c,T,t)=>{/** + */var d=t(39429),p=t(591);d.register("renderTexture",function(l,r,n,e){return this.displayList.add(new p(this.scene,l,r,n,e))})},77757:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(9674),p=t(83419),a=t(31401),r=t(95643),n=t(36060),e=t(38745),s=t(26099),l=new p({Extends:r,Mixins:[a.AlphaSingle,a.BlendMode,a.Depth,a.Flip,a.Mask,a.Pipeline,a.PostPipeline,a.Size,a.Texture,a.Transform,a.Visible,a.ScrollFactor,e],initialize:function(o,u,h,f,v,m,x,g,y){f===void 0&&(f="__DEFAULT"),m===void 0&&(m=2),x===void 0&&(x=!0),r.call(this,o,"Rope"),this.anims=new d(this),this.points=m,this.vertices,this.uv,this.colors,this.alphas,this.tintFill=f==="__DEFAULT",this.dirty=!1,this.horizontal=x,this._flipX=!1,this._flipY=!1,this._perp=new s,this.debugCallback=null,this.debugGraphic=null,this.setTexture(f,v),this.setPosition(u,h),this.setSizeToFrame(),this.initPipeline(n.ROPE_PIPELINE),this.initPostPipeline(),Array.isArray(m)&&this.resizeArrays(m.length),this.setPoints(m,g,y),this.updateVertices()},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(i,o){var u=this.anims.currentFrame;this.anims.update(i,o),this.anims.currentFrame!==u&&(this.updateUVs(),this.updateVertices())},play:function(i,o,u){return this.anims.play(i,o,u),this},setDirty:function(){return this.dirty=!0,this},setHorizontal:function(i,o,u){return i===void 0&&(i=this.points.length),this.horizontal?this:(this.horizontal=!0,this.setPoints(i,o,u))},setVertical:function(i,o,u){return i===void 0&&(i=this.points.length),this.horizontal?(this.horizontal=!1,this.setPoints(i,o,u)):this},setTintFill:function(i){return i===void 0&&(i=!1),this.tintFill=i,this},setAlphas:function(i,o){var u=this.points.length;if(u<1)return this;var h=this.alphas;i===void 0?i=[1]:!Array.isArray(i)&&o===void 0&&(i=[i]);var f,v=0;if(o!==void 0)for(f=0;fv&&(m=i[v]),h[v]=m,i.length>v+1&&(m=i[v+1]),h[v+1]=m}return this},setColors:function(i){var o=this.points.length;if(o<1)return this;var u=this.colors;i===void 0?i=[16777215]:Array.isArray(i)||(i=[i]);var h,f=0;if(i.length===o)for(h=0;hf&&(v=i[f]),u[f]=v,i.length>f+1&&(v=i[f+1]),u[f+1]=v}return this},setPoints:function(i,o,u){if(i===void 0&&(i=2),typeof i=="number"){var h=i;h<2&&(h=2),i=[];var f,v,m;if(this.horizontal)for(m=-this.frame.halfWidth,v=this.frame.width/(h-1),f=0;f{/** + */var d=t(9674),p=t(83419),l=t(31401),r=t(95643),n=t(36060),e=t(38745),s=t(26099),o=new p({Extends:r,Mixins:[l.AlphaSingle,l.BlendMode,l.Depth,l.Flip,l.Mask,l.Pipeline,l.PostPipeline,l.Size,l.Texture,l.Transform,l.Visible,l.ScrollFactor,e],initialize:function(a,u,h,f,v,m,g,x,y){f===void 0&&(f="__DEFAULT"),m===void 0&&(m=2),g===void 0&&(g=!0),r.call(this,a,"Rope"),this.anims=new d(this),this.points=m,this.vertices,this.uv,this.colors,this.alphas,this.tintFill=f==="__DEFAULT",this.dirty=!1,this.horizontal=g,this._flipX=!1,this._flipY=!1,this._perp=new s,this.debugCallback=null,this.debugGraphic=null,this.setTexture(f,v),this.setPosition(u,h),this.setSizeToFrame(),this.initPipeline(n.ROPE_PIPELINE),this.initPostPipeline(),Array.isArray(m)&&this.resizeArrays(m.length),this.setPoints(m,x,y),this.updateVertices()},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(i,a){var u=this.anims.currentFrame;this.anims.update(i,a),this.anims.currentFrame!==u&&(this.updateUVs(),this.updateVertices())},play:function(i,a,u){return this.anims.play(i,a,u),this},setDirty:function(){return this.dirty=!0,this},setHorizontal:function(i,a,u){return i===void 0&&(i=this.points.length),this.horizontal?this:(this.horizontal=!0,this.setPoints(i,a,u))},setVertical:function(i,a,u){return i===void 0&&(i=this.points.length),this.horizontal?(this.horizontal=!1,this.setPoints(i,a,u)):this},setTintFill:function(i){return i===void 0&&(i=!1),this.tintFill=i,this},setAlphas:function(i,a){var u=this.points.length;if(u<1)return this;var h=this.alphas;i===void 0?i=[1]:!Array.isArray(i)&&a===void 0&&(i=[i]);var f,v=0;if(a!==void 0)for(f=0;fv&&(m=i[v]),h[v]=m,i.length>v+1&&(m=i[v+1]),h[v+1]=m}return this},setColors:function(i){var a=this.points.length;if(a<1)return this;var u=this.colors;i===void 0?i=[16777215]:Array.isArray(i)||(i=[i]);var h,f=0;if(i.length===a)for(h=0;hf&&(v=i[f]),u[f]=v,i.length>f+1&&(v=i[f+1]),u[f+1]=v}return this},setPoints:function(i,a,u){if(i===void 0&&(i=2),typeof i=="number"){var h=i;h<2&&(h=2),i=[];var f,v,m;if(this.horizontal)for(m=-this.frame.halfWidth,v=this.frame.width/(h-1),f=0;f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -1793,23 +1797,23 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(25305),p=t(44603),a=t(23568),r=t(35154),n=t(77757);p.register("rope",function(e,s){e===void 0&&(e={});var l=a(e,"key",null),i=a(e,"frame",null),o=a(e,"horizontal",!0),u=r(e,"points",void 0),h=r(e,"colors",void 0),f=r(e,"alphas",void 0),v=new n(this.scene,0,0,l,i,u,o,h,f);return s!==void 0&&(e.add=s),d(this.scene,v,e),v})},96819:(c,T,t)=>{/** + */var d=t(25305),p=t(44603),l=t(23568),r=t(35154),n=t(77757);p.register("rope",function(e,s){e===void 0&&(e={});var o=l(e,"key",null),i=l(e,"frame",null),a=l(e,"horizontal",!0),u=r(e,"points",void 0),h=r(e,"colors",void 0),f=r(e,"alphas",void 0),v=new n(this.scene,0,0,o,i,u,a,h,f);return s!==void 0&&(e.add=s),d(this.scene,v,e),v})},96819:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(77757),p=t(39429);p.register("rope",function(a,r,n,e,s,l,i,o){return this.displayList.add(new d(this.scene,a,r,n,e,s,l,i,o))})},38745:(c,T,t)=>{/** + */var d=t(77757),p=t(39429);p.register("rope",function(l,r,n,e,s,o,i,a){return this.displayList.add(new d(this.scene,l,r,n,e,s,o,i,a))})},38745:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(20439),a=t(95262),c.exports={renderWebGL:p,renderCanvas:a}},20439:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(20439),l=t(95262),c.exports={renderWebGL:p,renderCanvas:l}},20439:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91296),p=t(70554),a=function(r,n,e,s){e.addToRenderList(n);var l=r.pipelines.set(n.pipeline,n),i=d(n,e,s).calc,o=n.vertices,u=n.uv,h=n.colors,f=n.alphas,v=n.alpha,m=p.getTintAppendFloatAlpha,x=e.roundPixels,g=o.length,y=Math.floor(g*.5);l.flush(),r.pipelines.preBatch(n);var S=l.setGameObject(n),C=l.vertexViewF32,E=l.vertexViewU32,A=l.vertexCount*l.currentShader.vertexComponentCount-1,P=0,M=n.tintFill;n.dirty&&n.updateVertices();for(var F=n.debugCallback,L=[],b=0;b{/** + */var d=t(91296),p=t(70554),l=function(r,n,e,s){e.addToRenderList(n);var o=r.pipelines.set(n.pipeline,n),i=d(n,e,s).calc,a=n.vertices,u=n.uv,h=n.colors,f=n.alphas,v=n.alpha,m=p.getTintAppendFloatAlpha,g=e.roundPixels,x=a.length,y=Math.floor(x*.5);o.flush(),r.pipelines.preBatch(n);var S=o.setGameObject(n),C=o.vertexViewF32,E=o.vertexViewU32,M=o.vertexCount*o.currentShader.vertexComponentCount-1,P=0,A=n.tintFill;n.dirty&&n.updateVertices();for(var R=n.debugCallback,F=[],D=0;D{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(31401),a=t(95643),r=t(95540),n=t(79291),e=t(61622),s=t(25479),l=t(61340),i=t(95428),o=t(92503),u=new d({Extends:a,Mixins:[p.ComputedSize,p.Depth,p.GetBounds,p.Mask,p.Origin,p.ScrollFactor,p.Transform,p.Visible,s],initialize:function(f,v,m,x,g,y,S,C){m===void 0&&(m=0),x===void 0&&(x=0),g===void 0&&(g=128),y===void 0&&(y=128),a.call(this,f,"Shader"),this.blendMode=-1,this.shader;var E=f.sys.renderer;this.renderer=E,this.gl=E.gl,this.vertexData=new ArrayBuffer(6*(Float32Array.BYTES_PER_ELEMENT*2)),this.vertexBuffer=E.createVertexBuffer(this.vertexData.byteLength,this.gl.STREAM_DRAW),this._deferSetShader=null,this._deferProjOrtho=null,this.program=null,this.bytes=new Uint8Array(this.vertexData),this.vertexViewF32=new Float32Array(this.vertexData),this._tempMatrix1=new l,this._tempMatrix2=new l,this._tempMatrix3=new l,this.viewMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.projectionMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.uniforms={},this.pointer=null,this._rendererWidth=E.width,this._rendererHeight=E.height,this._textureCount=0,this.framebuffer=null,this.glTexture=null,this.renderToTexture=!1,this.texture=null,this.setPosition(m,x),this.setSize(g,y),this.setOrigin(.5,.5),this.setShader(v,S,C),this.renderer.on(o.RESTORE_WEBGL,this.onContextRestored,this)},willRender:function(h){return this.renderToTexture?!0:!(a.RENDER_MASK!==this.renderFlags||this.cameraFilter!==0&&this.cameraFilter&h.id)},setRenderToTexture:function(h,f){if(!this.renderToTexture){var v=this.width,m=this.height,x=this.renderer;this.glTexture=x.createTextureFromSource(null,v,m,0),this.framebuffer=x.createFramebuffer(v,m,this.glTexture,!1),this._rendererWidth=v,this._rendererHeight=m,this.renderToTexture=!0,this.projOrtho(0,this.width,this.height,0),h&&(this.texture=this.scene.sys.textures.addGLTexture(h,this.glTexture))}return this.shader&&(x.pipelines.clear(),this.load(),this.flush(),x.pipelines.rebind()),this},setShader:function(h,f,v){if(this.renderer.contextLost)return this._deferSetShader={key:h,textures:f,textureData:v},this;if(f===void 0&&(f=[]),typeof h=="string"){var m=this.scene.sys.cache.shader;if(!m.has(h))return console.warn("Shader missing: "+h),this;this.shader=m.get(h)}else this.shader=h;var x=this.gl,g=this.renderer;this.program&&g.deleteProgram(this.program);var y=g.createProgram(this.shader.vertexSrc,this.shader.fragmentSrc);x.uniformMatrix4fv(x.getUniformLocation(y.webGLProgram,"uViewMatrix"),!1,this.viewMatrix),x.uniformMatrix4fv(x.getUniformLocation(y.webGLProgram,"uProjectionMatrix"),!1,this.projectionMatrix),x.uniform2f(x.getUniformLocation(y.webGLProgram,"uResolution"),this.width,this.height),this.program=y;var S=new Date,C={resolution:{type:"2f",value:{x:this.width,y:this.height}},time:{type:"1f",value:0},mouse:{type:"2f",value:{x:this.width/2,y:this.height/2}},date:{type:"4fv",value:[S.getFullYear(),S.getMonth(),S.getDate(),S.getHours()*60*60+S.getMinutes()*60+S.getSeconds()]},sampleRate:{type:"1f",value:44100},iChannel0:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel1:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel2:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel3:{type:"sampler2D",value:null,textureData:{repeat:!0}}};this.shader.uniforms?this.uniforms=n(!0,{},this.shader.uniforms,C):this.uniforms=C;for(var E=0;E<4;E++)f[E]&&this.setSampler2D("iChannel"+E,f[E],E,v);return this.initUniforms(),this.projOrtho(0,this._rendererWidth,this._rendererHeight,0),this},setPointer:function(h){return this.pointer=h,this},projOrtho:function(h,f,v,m){if(this.renderer.contextLost){this._deferProjOrtho={left:h,right:f,bottom:v,top:m};return}var x=-1e3,g=1e3,y=1/(h-f),S=1/(v-m),C=1/(x-g),E=this.projectionMatrix;E[0]=-2*y,E[5]=-2*S,E[10]=2*C,E[12]=(h+f)*y,E[13]=(m+v)*S,E[14]=(g+x)*C;var A=this.program,P=this.gl,M=this.renderer;M.setProgram(A),P.uniformMatrix4fv(P.getUniformLocation(A.webGLProgram,"uProjectionMatrix"),!1,this.projectionMatrix),this._rendererWidth=f,this._rendererHeight=v},initUniforms:function(){var h=this.renderer.glFuncMap,f=this.program;this._textureCount=0;for(var v in this.uniforms){var m=this.uniforms[v],x=m.type,g=h[x];m.uniformLocation=this.renderer.createUniformLocation(f,v),x!=="sampler2D"&&(m.glMatrix=g.matrix,m.glValueLength=g.length,m.glFunc=g.func)}},setSampler2DBuffer:function(h,f,v,m,x,g){x===void 0&&(x=0),g===void 0&&(g={});var y=this.uniforms[h];return y.value=f,g.width=v,g.height=m,y.textureData=g,this._textureCount=x,this.initSampler2D(y),this},setSampler2D:function(h,f,v,m){v===void 0&&(v=0);var x=this.scene.sys.textures;if(x.exists(f)){var g=x.getFrame(f);if(g.glTexture&&g.glTexture.isRenderTexture)return this.setSampler2DBuffer(h,g.glTexture,g.width,g.height,v,m);var y=this.uniforms[h],S=g.source;y.textureKey=f,y.source=S.image,y.value=g.glTexture,S.isGLTexture&&(m||(m={}),m.width=S.width,m.height=S.height),m&&(y.textureData=m),this._textureCount=v,this.initSampler2D(y)}return this},setUniform:function(h,f){return e(this.uniforms,h,f),this},getUniform:function(h){return r(this.uniforms,h,null)},setChannel0:function(h,f){return this.setSampler2D("iChannel0",h,0,f)},setChannel1:function(h,f){return this.setSampler2D("iChannel1",h,1,f)},setChannel2:function(h,f){return this.setSampler2D("iChannel2",h,2,f)},setChannel3:function(h,f){return this.setSampler2D("iChannel3",h,3,f)},initSampler2D:function(h){if(h.value){var f=h.textureData;if(f&&!h.value.isRenderTexture){var v=this.gl,m=h.value,x=v[r(f,"magFilter","linear").toUpperCase()],g=v[r(f,"minFilter","linear").toUpperCase()],y=v[r(f,"wrapS","repeat").toUpperCase()],S=v[r(f,"wrapT","repeat").toUpperCase()],C=v[r(f,"format","rgba").toUpperCase()],E=r(f,"flipY",!1),A=r(f,"width",m.width),P=r(f,"height",m.height),M=r(f,"source",m.pixels);f.repeat&&(y=v.REPEAT,S=v.REPEAT),f.width&&(M=null),m.update(M,A,P,E,y,S,g,x,C)}this.renderer.setProgram(this.program),this._textureCount++}},syncUniforms:function(){var h=this.gl,f=this.uniforms,v,m,x,g,y,S=0;for(var C in f)v=f[C],x=v.glFunc,m=v.glValueLength,g=v.uniformLocation,y=v.value,y!==null&&(m===1?v.glMatrix?x.call(h,g.webGLUniformLocation,v.transpose,y):x.call(h,g.webGLUniformLocation,y):m===2?x.call(h,g.webGLUniformLocation,y.x,y.y):m===3?x.call(h,g.webGLUniformLocation,y.x,y.y,y.z):m===4?x.call(h,g.webGLUniformLocation,y.x,y.y,y.z,y.w):v.type==="sampler2D"&&(h.activeTexture(h.TEXTURE0+S),h.bindTexture(h.TEXTURE_2D,y.webGLTexture),h.uniform1i(g.webGLUniformLocation,S),S++))},load:function(h){var f=this.gl,v=this.width,m=this.height,x=this.renderer,g=this.program,y=this.viewMatrix;if(!this.renderToTexture){var S=-this._displayOriginX,C=-this._displayOriginY;y[0]=h[0],y[1]=h[1],y[4]=h[2],y[5]=h[3],y[8]=h[4],y[9]=h[5],y[12]=y[0]*S+y[4]*C,y[13]=y[1]*S+y[5]*C}f.useProgram(g.webGLProgram),f.uniformMatrix4fv(f.getUniformLocation(g.webGLProgram,"uViewMatrix"),!1,y),f.uniformMatrix4fv(f.getUniformLocation(g.webGLProgram,"uProjectionMatrix"),!1,this.projectionMatrix),f.uniform2f(f.getUniformLocation(g.webGLProgram,"uResolution"),this.width,this.height);var E=this.uniforms,A=E.resolution;A.value.x=v,A.value.y=m,E.time.value=x.game.loop.getDuration();var P=this.pointer;if(P){var M=E.mouse,F=P.x/v,L=1-P.y/m;M.value.x=F.toFixed(2),M.value.y=L.toFixed(2)}this.syncUniforms()},flush:function(){var h=this.width,f=this.height,v=this.program,m=this.gl,x=this.vertexBuffer,g=this.renderer,y=Float32Array.BYTES_PER_ELEMENT*2;this.renderToTexture&&(g.setFramebuffer(this.framebuffer),m.clearColor(0,0,0,0),m.clear(m.COLOR_BUFFER_BIT)),m.bindBuffer(m.ARRAY_BUFFER,x.webGLBuffer);var S=m.getAttribLocation(v.webGLProgram,"inPosition");S!==-1&&(m.enableVertexAttribArray(S),m.vertexAttribPointer(S,2,m.FLOAT,!1,y,0));var C=this.vertexViewF32;C[3]=f,C[4]=h,C[5]=f,C[8]=h,C[9]=f,C[10]=h;var E=6;m.bufferSubData(m.ARRAY_BUFFER,0,this.bytes.subarray(0,E*y)),m.drawArrays(m.TRIANGLES,0,E),this.renderToTexture&&g.setFramebuffer(null,!1)},setAlpha:function(){},setBlendMode:function(){},onContextRestored:function(){if(this._deferSetShader!==null){var h=this._deferSetShader.key,f=this._deferSetShader.textures,v=this._deferSetShader.textureData;this._deferSetShader=null,this.setShader(h,f,v)}if(this._deferProjOrtho!==null){var m=this._deferProjOrtho.left,x=this._deferProjOrtho.right,g=this._deferProjOrtho.bottom,y=this._deferProjOrtho.top;this._deferProjOrtho=null,this.projOrtho(m,x,g,y)}},preDestroy:function(){var h=this.renderer;h.off(o.RESTORE_WEBGL,this.onContextRestored,this),h.deleteProgram(this.program),h.deleteBuffer(this.vertexBuffer),this.renderToTexture&&(h.deleteFramebuffer(this.framebuffer),this.texture.destroy(),this.framebuffer=null,this.glTexture=null,this.texture=null),i(this.uniforms,function(f){h.deleteUniformLocation(f.uniformLocation),f.uniformLocation=null})}});c.exports=u},80464:c=>{/** + */var d=t(83419),p=t(31401),l=t(95643),r=t(95540),n=t(79291),e=t(61622),s=t(25479),o=t(61340),i=t(95428),a=t(92503),u=new d({Extends:l,Mixins:[p.ComputedSize,p.Depth,p.GetBounds,p.Mask,p.Origin,p.ScrollFactor,p.Transform,p.Visible,s],initialize:function(f,v,m,g,x,y,S,C){m===void 0&&(m=0),g===void 0&&(g=0),x===void 0&&(x=128),y===void 0&&(y=128),l.call(this,f,"Shader"),this.blendMode=-1,this.shader;var E=f.sys.renderer;this.renderer=E,this.gl=E.gl,this.vertexData=new ArrayBuffer(6*(Float32Array.BYTES_PER_ELEMENT*2)),this.vertexBuffer=E.createVertexBuffer(this.vertexData.byteLength,this.gl.STREAM_DRAW),this._deferSetShader=null,this._deferProjOrtho=null,this.program=null,this.bytes=new Uint8Array(this.vertexData),this.vertexViewF32=new Float32Array(this.vertexData),this._tempMatrix1=new o,this._tempMatrix2=new o,this._tempMatrix3=new o,this.viewMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.projectionMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.uniforms={},this.pointer=null,this._rendererWidth=E.width,this._rendererHeight=E.height,this._textureCount=0,this.framebuffer=null,this.glTexture=null,this.renderToTexture=!1,this.texture=null,this.setPosition(m,g),this.setSize(x,y),this.setOrigin(.5,.5),this.setShader(v,S,C),this.renderer.on(a.RESTORE_WEBGL,this.onContextRestored,this)},willRender:function(h){return this.renderToTexture?!0:!(l.RENDER_MASK!==this.renderFlags||this.cameraFilter!==0&&this.cameraFilter&h.id)},setRenderToTexture:function(h,f){if(!this.renderToTexture){var v=this.width,m=this.height,g=this.renderer;this.glTexture=g.createTextureFromSource(null,v,m,0),this.framebuffer=g.createFramebuffer(v,m,this.glTexture,!1),this._rendererWidth=v,this._rendererHeight=m,this.renderToTexture=!0,this.projOrtho(0,this.width,this.height,0),h&&(this.texture=this.scene.sys.textures.addGLTexture(h,this.glTexture))}return this.shader&&(g.pipelines.clear(),this.load(),this.flush(),g.pipelines.rebind()),this},setShader:function(h,f,v){if(this.renderer.contextLost)return this._deferSetShader={key:h,textures:f,textureData:v},this;if(f===void 0&&(f=[]),typeof h=="string"){var m=this.scene.sys.cache.shader;if(!m.has(h))return console.warn("Shader missing: "+h),this;this.shader=m.get(h)}else this.shader=h;var g=this.gl,x=this.renderer;this.program&&x.deleteProgram(this.program);var y=x.createProgram(this.shader.vertexSrc,this.shader.fragmentSrc);g.uniformMatrix4fv(g.getUniformLocation(y.webGLProgram,"uViewMatrix"),!1,this.viewMatrix),g.uniformMatrix4fv(g.getUniformLocation(y.webGLProgram,"uProjectionMatrix"),!1,this.projectionMatrix),g.uniform2f(g.getUniformLocation(y.webGLProgram,"uResolution"),this.width,this.height),this.program=y;var S=new Date,C={resolution:{type:"2f",value:{x:this.width,y:this.height}},time:{type:"1f",value:0},mouse:{type:"2f",value:{x:this.width/2,y:this.height/2}},date:{type:"4fv",value:[S.getFullYear(),S.getMonth(),S.getDate(),S.getHours()*60*60+S.getMinutes()*60+S.getSeconds()]},sampleRate:{type:"1f",value:44100},iChannel0:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel1:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel2:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel3:{type:"sampler2D",value:null,textureData:{repeat:!0}}};this.shader.uniforms?this.uniforms=n(!0,{},this.shader.uniforms,C):this.uniforms=C;for(var E=0;E<4;E++)f[E]&&this.setSampler2D("iChannel"+E,f[E],E,v);return this.initUniforms(),this.projOrtho(0,this._rendererWidth,this._rendererHeight,0),this},setPointer:function(h){return this.pointer=h,this},projOrtho:function(h,f,v,m){if(this.renderer.contextLost){this._deferProjOrtho={left:h,right:f,bottom:v,top:m};return}var g=-1e3,x=1e3,y=1/(h-f),S=1/(v-m),C=1/(g-x),E=this.projectionMatrix;E[0]=-2*y,E[5]=-2*S,E[10]=2*C,E[12]=(h+f)*y,E[13]=(m+v)*S,E[14]=(x+g)*C;var M=this.program,P=this.gl,A=this.renderer;A.setProgram(M),P.uniformMatrix4fv(P.getUniformLocation(M.webGLProgram,"uProjectionMatrix"),!1,this.projectionMatrix),this._rendererWidth=f,this._rendererHeight=v},initUniforms:function(){var h=this.renderer.glFuncMap,f=this.program;this._textureCount=0;for(var v in this.uniforms){var m=this.uniforms[v],g=m.type,x=h[g];m.uniformLocation=this.renderer.createUniformLocation(f,v),g!=="sampler2D"&&(m.glMatrix=x.matrix,m.glValueLength=x.length,m.glFunc=x.func)}},setSampler2DBuffer:function(h,f,v,m,g,x){g===void 0&&(g=0),x===void 0&&(x={});var y=this.uniforms[h];return y.value=f,x.width=v,x.height=m,y.textureData=x,this._textureCount=g,this.initSampler2D(y),this},setSampler2D:function(h,f,v,m){v===void 0&&(v=0);var g=this.scene.sys.textures;if(g.exists(f)){var x=g.getFrame(f);if(x.glTexture&&x.glTexture.isRenderTexture)return this.setSampler2DBuffer(h,x.glTexture,x.width,x.height,v,m);var y=this.uniforms[h],S=x.source;y.textureKey=f,y.source=S.image,y.value=x.glTexture,S.isGLTexture&&(m||(m={}),m.width=S.width,m.height=S.height),m&&(y.textureData=m),this._textureCount=v,this.initSampler2D(y)}return this},setUniform:function(h,f){return e(this.uniforms,h,f),this},getUniform:function(h){return r(this.uniforms,h,null)},setChannel0:function(h,f){return this.setSampler2D("iChannel0",h,0,f)},setChannel1:function(h,f){return this.setSampler2D("iChannel1",h,1,f)},setChannel2:function(h,f){return this.setSampler2D("iChannel2",h,2,f)},setChannel3:function(h,f){return this.setSampler2D("iChannel3",h,3,f)},initSampler2D:function(h){if(h.value){var f=h.textureData;if(f&&!h.value.isRenderTexture){var v=this.gl,m=h.value,g=v[r(f,"magFilter","linear").toUpperCase()],x=v[r(f,"minFilter","linear").toUpperCase()],y=v[r(f,"wrapS","repeat").toUpperCase()],S=v[r(f,"wrapT","repeat").toUpperCase()],C=v[r(f,"format","rgba").toUpperCase()],E=r(f,"flipY",!1),M=r(f,"width",m.width),P=r(f,"height",m.height),A=r(f,"source",m.pixels);f.repeat&&(y=v.REPEAT,S=v.REPEAT),f.width&&(A=null),m.update(A,M,P,E,y,S,x,g,C)}this.renderer.setProgram(this.program),this._textureCount++}},syncUniforms:function(){var h=this.gl,f=this.uniforms,v,m,g,x,y,S=0;for(var C in f)v=f[C],g=v.glFunc,m=v.glValueLength,x=v.uniformLocation,y=v.value,y!==null&&(m===1?v.glMatrix?g.call(h,x.webGLUniformLocation,v.transpose,y):g.call(h,x.webGLUniformLocation,y):m===2?g.call(h,x.webGLUniformLocation,y.x,y.y):m===3?g.call(h,x.webGLUniformLocation,y.x,y.y,y.z):m===4?g.call(h,x.webGLUniformLocation,y.x,y.y,y.z,y.w):v.type==="sampler2D"&&(h.activeTexture(h.TEXTURE0+S),h.bindTexture(h.TEXTURE_2D,y.webGLTexture),h.uniform1i(x.webGLUniformLocation,S),S++))},load:function(h){var f=this.gl,v=this.width,m=this.height,g=this.renderer,x=this.program,y=this.viewMatrix;if(!this.renderToTexture){var S=-this._displayOriginX,C=-this._displayOriginY;y[0]=h[0],y[1]=h[1],y[4]=h[2],y[5]=h[3],y[8]=h[4],y[9]=h[5],y[12]=y[0]*S+y[4]*C,y[13]=y[1]*S+y[5]*C}f.useProgram(x.webGLProgram),f.uniformMatrix4fv(f.getUniformLocation(x.webGLProgram,"uViewMatrix"),!1,y),f.uniformMatrix4fv(f.getUniformLocation(x.webGLProgram,"uProjectionMatrix"),!1,this.projectionMatrix),f.uniform2f(f.getUniformLocation(x.webGLProgram,"uResolution"),this.width,this.height);var E=this.uniforms,M=E.resolution;M.value.x=v,M.value.y=m,E.time.value=g.game.loop.getDuration();var P=this.pointer;if(P){var A=E.mouse,R=P.x/v,F=1-P.y/m;A.value.x=R.toFixed(2),A.value.y=F.toFixed(2)}this.syncUniforms()},flush:function(){var h=this.width,f=this.height,v=this.program,m=this.gl,g=this.vertexBuffer,x=this.renderer,y=Float32Array.BYTES_PER_ELEMENT*2;this.renderToTexture&&(x.setFramebuffer(this.framebuffer),m.clearColor(0,0,0,0),m.clear(m.COLOR_BUFFER_BIT)),m.bindBuffer(m.ARRAY_BUFFER,g.webGLBuffer);var S=m.getAttribLocation(v.webGLProgram,"inPosition");S!==-1&&(m.enableVertexAttribArray(S),m.vertexAttribPointer(S,2,m.FLOAT,!1,y,0));var C=this.vertexViewF32;C[3]=f,C[4]=h,C[5]=f,C[8]=h,C[9]=f,C[10]=h;var E=6;m.bufferSubData(m.ARRAY_BUFFER,0,this.bytes.subarray(0,E*y)),m.drawArrays(m.TRIANGLES,0,E),this.renderToTexture&&x.setFramebuffer(null,!1)},setAlpha:function(){},setBlendMode:function(){},onContextRestored:function(){if(this._deferSetShader!==null){var h=this._deferSetShader.key,f=this._deferSetShader.textures,v=this._deferSetShader.textureData;this._deferSetShader=null,this.setShader(h,f,v)}if(this._deferProjOrtho!==null){var m=this._deferProjOrtho.left,g=this._deferProjOrtho.right,x=this._deferProjOrtho.bottom,y=this._deferProjOrtho.top;this._deferProjOrtho=null,this.projOrtho(m,g,x,y)}},preDestroy:function(){var h=this.renderer;h.off(a.RESTORE_WEBGL,this.onContextRestored,this),h.deleteProgram(this.program),h.deleteBuffer(this.vertexBuffer),this.renderToTexture&&(h.deleteFramebuffer(this.framebuffer),this.texture.destroy(),this.framebuffer=null,this.glTexture=null,this.texture=null),i(this.uniforms,function(f){h.deleteUniformLocation(f.uniformLocation),f.uniformLocation=null})}});c.exports=u},80464:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -1817,387 +1821,387 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(25305),p=t(44603),a=t(23568),r=t(20071);p.register("shader",function(n,e){n===void 0&&(n={});var s=a(n,"key",null),l=a(n,"x",0),i=a(n,"y",0),o=a(n,"width",128),u=a(n,"height",128),h=new r(this.scene,s,l,i,o,u);return e!==void 0&&(n.add=e),d(this.scene,h,n),h})},74177:(c,T,t)=>{/** + */var d=t(25305),p=t(44603),l=t(23568),r=t(20071);p.register("shader",function(n,e){n===void 0&&(n={});var s=l(n,"key",null),o=l(n,"x",0),i=l(n,"y",0),a=l(n,"width",128),u=l(n,"height",128),h=new r(this.scene,s,o,i,a,u);return e!==void 0&&(n.add=e),d(this.scene,h,n),h})},74177:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(20071),p=t(39429);p.register("shader",function(a,r,n,e,s,l,i){return this.displayList.add(new d(this.scene,a,r,n,e,s,l,i))})},25479:(c,T,t)=>{/** + */var d=t(20071),p=t(39429);p.register("shader",function(l,r,n,e,s,o,i){return this.displayList.add(new d(this.scene,l,r,n,e,s,o,i))})},25479:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(19257),a=t(80464),c.exports={renderWebGL:p,renderCanvas:a}},19257:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(19257),l=t(80464),c.exports={renderWebGL:p,renderCanvas:l}},19257:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91296),p=function(a,r,n,e){if(r.shader){if(n.addToRenderList(r),a.pipelines.clear(),r.renderToTexture)r.load(),r.flush();else{var s=d(r,n,e).calc;(a.width!==r._rendererWidth||a.height!==r._rendererHeight)&&r.projOrtho(0,a.width,a.height,0),r.load(s.matrix),r.flush()}a.pipelines.rebind()}};c.exports=p},10441:(c,T,t)=>{/** + */var d=t(91296),p=function(l,r,n,e){if(r.shader){if(n.addToRenderList(r),l.pipelines.clear(),r.renderToTexture)r.load(),r.flush();else{var s=d(r,n,e).calc;(l.width!==r._rendererWidth||l.height!==r._rendererHeight)&&r.projOrtho(0,l.width,l.height,0),r.load(s.matrix),r.flush()}l.pipelines.rebind()}};c.exports=p},10441:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(70554),p=function(a,r,n,e,s,l){for(var i=d.getTintAppendFloatAlpha(n.fillColor,n.fillAlpha*e),o=n.pathData,u=n.pathIndexes,h=0;h{/** + */var d=t(70554),p=function(l,r,n,e,s,o){for(var i=d.getTintAppendFloatAlpha(n.fillColor,n.fillAlpha*e),a=n.pathData,u=n.pathIndexes,h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){var r=p||d.fillColor,n=a||d.fillAlpha,e=(r&16711680)>>>16,s=(r&65280)>>>8,l=r&255;t.fillStyle="rgba("+e+","+s+","+l+","+n+")"};c.exports=T},75177:c=>{/** + */var T=function(t,d,p,l){var r=p||d.fillColor,n=l||d.fillAlpha,e=(r&16711680)>>>16,s=(r&65280)>>>8,o=r&255;t.fillStyle="rgba("+e+","+s+","+o+","+n+")"};c.exports=T},75177:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){var r=p||d.strokeColor,n=a||d.strokeAlpha,e=(r&16711680)>>>16,s=(r&65280)>>>8,l=r&255;t.strokeStyle="rgba("+e+","+s+","+l+","+n+")",t.lineWidth=d.lineWidth};c.exports=T},17803:(c,T,t)=>{/** + */var T=function(t,d,p,l){var r=p||d.strokeColor,n=l||d.strokeAlpha,e=(r&16711680)>>>16,s=(r&65280)>>>8,o=r&255;t.strokeStyle="rgba("+e+","+s+","+o+","+n+")",t.lineWidth=d.lineWidth};c.exports=T},17803:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(31401),a=t(95643),r=t(23031),n=new d({Extends:a,Mixins:[p.AlphaSingle,p.BlendMode,p.Depth,p.GetBounds,p.Mask,p.Origin,p.Pipeline,p.PostPipeline,p.ScrollFactor,p.Transform,p.Visible],initialize:function(s,l,i){l===void 0&&(l="Shape"),a.call(this,s,l),this.geom=i,this.pathData=[],this.pathIndexes=[],this.fillColor=16777215,this.fillAlpha=1,this.strokeColor=16777215,this.strokeAlpha=1,this.lineWidth=1,this.isFilled=!1,this.isStroked=!1,this.closePath=!0,this._tempLine=new r,this.width=0,this.height=0,this.initPipeline(),this.initPostPipeline()},setFillStyle:function(e,s){return s===void 0&&(s=1),e===void 0?this.isFilled=!1:(this.fillColor=e,this.fillAlpha=s,this.isFilled=!0),this},setStrokeStyle:function(e,s,l){return l===void 0&&(l=1),e===void 0?this.isStroked=!1:(this.lineWidth=e,this.strokeColor=s,this.strokeAlpha=l,this.isStroked=!0),this},setClosePath:function(e){return this.closePath=e,this},setSize:function(e,s){return this.width=e,this.height=s,this},setDisplaySize:function(e,s){return this.displayWidth=e,this.displayHeight=s,this},preDestroy:function(){this.geom=null,this._tempLine=null,this.pathData=[],this.pathIndexes=[]},displayWidth:{get:function(){return this.scaleX*this.width},set:function(e){this.scaleX=e/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(e){this.scaleY=e/this.height}}});c.exports=n},34682:(c,T,t)=>{/** + */var d=t(83419),p=t(31401),l=t(95643),r=t(23031),n=new d({Extends:l,Mixins:[p.AlphaSingle,p.BlendMode,p.Depth,p.GetBounds,p.Mask,p.Origin,p.Pipeline,p.PostPipeline,p.ScrollFactor,p.Transform,p.Visible],initialize:function(s,o,i){o===void 0&&(o="Shape"),l.call(this,s,o),this.geom=i,this.pathData=[],this.pathIndexes=[],this.fillColor=16777215,this.fillAlpha=1,this.strokeColor=16777215,this.strokeAlpha=1,this.lineWidth=1,this.isFilled=!1,this.isStroked=!1,this.closePath=!0,this._tempLine=new r,this.width=0,this.height=0,this.initPipeline(),this.initPostPipeline()},setFillStyle:function(e,s){return s===void 0&&(s=1),e===void 0?this.isFilled=!1:(this.fillColor=e,this.fillAlpha=s,this.isFilled=!0),this},setStrokeStyle:function(e,s,o){return o===void 0&&(o=1),e===void 0?this.isStroked=!1:(this.lineWidth=e,this.strokeColor=s,this.strokeAlpha=o,this.isStroked=!0),this},setClosePath:function(e){return this.closePath=e,this},setSize:function(e,s){return this.width=e,this.height=s,this},setDisplaySize:function(e,s){return this.displayWidth=e,this.displayHeight=s,this},preDestroy:function(){this.geom=null,this._tempLine=null,this.pathData=[],this.pathIndexes=[]},displayWidth:{get:function(){return this.scaleX*this.width},set:function(e){this.scaleX=e/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(e){this.scaleY=e/this.height}}});c.exports=n},34682:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(70554),p=function(a,r,n,e,s){var l=a.strokeTint,i=d.getTintAppendFloatAlpha(r.strokeColor,r.strokeAlpha*n);l.TL=i,l.TR=i,l.BL=i,l.BR=i;var o=r.pathData,u=o.length-1,h=r.lineWidth,f=h/2,v=o[0]-e,m=o[1]-s;r.closePath||(u-=2);for(var x=2;x{/** + */var d=t(70554),p=function(l,r,n,e,s){var o=l.strokeTint,i=d.getTintAppendFloatAlpha(r.strokeColor,r.strokeAlpha*n);o.TL=i,o.TR=i,o.BL=i,o.BR=i;var a=r.pathData,u=a.length-1,h=r.lineWidth,f=h/2,v=a[0]-e,m=a[1]-s;r.closePath||(u-=2);for(var g=2;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(13609),p=t(83419),a=t(39506),r=t(94811),n=t(96503),e=t(36383),s=t(17803),l=new p({Extends:s,Mixins:[d],initialize:function(o,u,h,f,v,m,x,g,y){u===void 0&&(u=0),h===void 0&&(h=0),f===void 0&&(f=128),v===void 0&&(v=0),m===void 0&&(m=360),x===void 0&&(x=!1),s.call(this,o,"Arc",new n(0,0,f)),this._startAngle=v,this._endAngle=m,this._anticlockwise=x,this._iterations=.01,this.setPosition(u,h);var S=this.geom.radius*2;this.setSize(S,S),g!==void 0&&this.setFillStyle(g,y),this.updateDisplayOrigin(),this.updateData()},iterations:{get:function(){return this._iterations},set:function(i){this._iterations=i,this.updateData()}},radius:{get:function(){return this.geom.radius},set:function(i){this.geom.radius=i;var o=i*2;this.setSize(o,o),this.updateDisplayOrigin(),this.updateData()}},startAngle:{get:function(){return this._startAngle},set:function(i){this._startAngle=i,this.updateData()}},endAngle:{get:function(){return this._endAngle},set:function(i){this._endAngle=i,this.updateData()}},anticlockwise:{get:function(){return this._anticlockwise},set:function(i){this._anticlockwise=i,this.updateData()}},setRadius:function(i){return this.radius=i,this},setIterations:function(i){return i===void 0&&(i=.01),this.iterations=i,this},setStartAngle:function(i,o){return this._startAngle=i,o!==void 0&&(this._anticlockwise=o),this.updateData()},setEndAngle:function(i,o){return this._endAngle=i,o!==void 0&&(this._anticlockwise=o),this.updateData()},updateData:function(){var i=this._iterations,o=i,u=this.geom.radius,h=a(this._startAngle),f=a(this._endAngle),v=this._anticlockwise,m=u,x=u;f-=h,v?f<-e.PI2?f=-e.PI2:f>0&&(f=-e.PI2+f%e.PI2):f>e.PI2?f=e.PI2:f<0&&(f=e.PI2+f%e.PI2);for(var g=[m+Math.cos(h)*u,x+Math.sin(h)*u],y;o<1;)y=f*o+h,g.push(m+Math.cos(y)*u,x+Math.sin(y)*u),o+=i;return y=f+h,g.push(m+Math.cos(y)*u,x+Math.sin(y)*u),g.push(m+Math.cos(h)*u,x+Math.sin(h)*u),this.pathIndexes=r(g),this.pathData=g,this}});c.exports=l},42542:(c,T,t)=>{/** + */var d=t(13609),p=t(83419),l=t(39506),r=t(94811),n=t(96503),e=t(36383),s=t(17803),o=new p({Extends:s,Mixins:[d],initialize:function(a,u,h,f,v,m,g,x,y){u===void 0&&(u=0),h===void 0&&(h=0),f===void 0&&(f=128),v===void 0&&(v=0),m===void 0&&(m=360),g===void 0&&(g=!1),s.call(this,a,"Arc",new n(0,0,f)),this._startAngle=v,this._endAngle=m,this._anticlockwise=g,this._iterations=.01,this.setPosition(u,h);var S=this.geom.radius*2;this.setSize(S,S),x!==void 0&&this.setFillStyle(x,y),this.updateDisplayOrigin(),this.updateData()},iterations:{get:function(){return this._iterations},set:function(i){this._iterations=i,this.updateData()}},radius:{get:function(){return this.geom.radius},set:function(i){this.geom.radius=i;var a=i*2;this.setSize(a,a),this.updateDisplayOrigin(),this.updateData()}},startAngle:{get:function(){return this._startAngle},set:function(i){this._startAngle=i,this.updateData()}},endAngle:{get:function(){return this._endAngle},set:function(i){this._endAngle=i,this.updateData()}},anticlockwise:{get:function(){return this._anticlockwise},set:function(i){this._anticlockwise=i,this.updateData()}},setRadius:function(i){return this.radius=i,this},setIterations:function(i){return i===void 0&&(i=.01),this.iterations=i,this},setStartAngle:function(i,a){return this._startAngle=i,a!==void 0&&(this._anticlockwise=a),this.updateData()},setEndAngle:function(i,a){return this._endAngle=i,a!==void 0&&(this._anticlockwise=a),this.updateData()},updateData:function(){var i=this._iterations,a=i,u=this.geom.radius,h=l(this._startAngle),f=l(this._endAngle),v=this._anticlockwise,m=u,g=u;f-=h,v?f<-e.PI2?f=-e.PI2:f>0&&(f=-e.PI2+f%e.PI2):f>e.PI2?f=e.PI2:f<0&&(f=e.PI2+f%e.PI2);for(var x=[m+Math.cos(h)*u,g+Math.sin(h)*u],y;a<1;)y=f*a+h,x.push(m+Math.cos(y)*u,g+Math.sin(y)*u),a+=i;return y=f+h,x.push(m+Math.cos(y)*u,g+Math.sin(y)*u),x.push(m+Math.cos(h)*u,g+Math.sin(h)*u),this.pathIndexes=r(x),this.pathData=x,this}});c.exports=o},42542:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(39506),p=t(65960),a=t(75177),r=t(20926),n=function(e,s,l,i){l.addToRenderList(s);var o=e.currentContext;if(r(e,o,s,l,i)){var u=s.radius;o.beginPath(),o.arc(u-s.originX*(u*2),u-s.originY*(u*2),u,d(s._startAngle),d(s._endAngle),s.anticlockwise),s.closePath&&o.closePath(),s.isFilled&&(p(o,s),o.fill()),s.isStroked&&(a(o,s),o.stroke()),o.restore()}};c.exports=n},42563:(c,T,t)=>{/** + */var d=t(39506),p=t(65960),l=t(75177),r=t(20926),n=function(e,s,o,i){o.addToRenderList(s);var a=e.currentContext;if(r(e,a,s,o,i)){var u=s.radius;a.beginPath(),a.arc(u-s.originX*(u*2),u-s.originY*(u*2),u,d(s._startAngle),d(s._endAngle),s.anticlockwise),s.closePath&&a.closePath(),s.isFilled&&(p(a,s),a.fill()),s.isStroked&&(l(a,s),a.stroke()),a.restore()}};c.exports=n},42563:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(23629),p=t(39429);p.register("arc",function(a,r,n,e,s,l,i,o){return this.displayList.add(new d(this.scene,a,r,n,e,s,l,i,o))}),p.register("circle",function(a,r,n,e,s){return this.displayList.add(new d(this.scene,a,r,n,0,360,!1,e,s))})},13609:(c,T,t)=>{/** + */var d=t(23629),p=t(39429);p.register("arc",function(l,r,n,e,s,o,i,a){return this.displayList.add(new d(this.scene,l,r,n,e,s,o,i,a))}),p.register("circle",function(l,r,n,e,s){return this.displayList.add(new d(this.scene,l,r,n,0,360,!1,e,s))})},13609:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(41447),a=t(42542),c.exports={renderWebGL:p,renderCanvas:a}},41447:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(41447),l=t(42542),c.exports={renderWebGL:p,renderCanvas:l}},41447:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91296),p=t(10441),a=t(34682),r=function(n,e,s,l){s.addToRenderList(e);var i=n.pipelines.set(e.pipeline),o=d(e,s,l),u=i.calcMatrix.copyFrom(o.calc),h=e._displayOriginX,f=e._displayOriginY,v=s.alpha*e.alpha;n.pipelines.preBatch(e),e.isFilled&&p(i,u,e,v,h,f),e.isStroked&&a(i,e,v,h,f),n.pipelines.postBatch(e)};c.exports=r},89:(c,T,t)=>{/** + */var d=t(91296),p=t(10441),l=t(34682),r=function(n,e,s,o){s.addToRenderList(e);var i=n.pipelines.set(e.pipeline),a=d(e,s,o),u=i.calcMatrix.copyFrom(a.calc),h=e._displayOriginX,f=e._displayOriginY,v=s.alpha*e.alpha;n.pipelines.preBatch(e),e.isFilled&&p(i,u,e,v,h,f),e.isStroked&&l(i,e,v,h,f),n.pipelines.postBatch(e)};c.exports=r},89:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(33141),a=t(94811),r=t(87841),n=t(17803),e=new d({Extends:n,Mixins:[p],initialize:function(l,i,o,u,h,f){i===void 0&&(i=0),o===void 0&&(o=0),n.call(this,l,"Curve",u),this._smoothness=32,this._curveBounds=new r,this.closePath=!1,this.setPosition(i,o),h!==void 0&&this.setFillStyle(h,f),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(s){this._smoothness=s,this.updateData()}},setSmoothness:function(s){return this._smoothness=s,this.updateData()},updateData:function(){var s=this._curveBounds,l=this._smoothness;this.geom.getBounds(s,l),this.setSize(s.width,s.height),this.updateDisplayOrigin();for(var i=[],o=this.geom.getPoints(l),u=0;u{/** + */var d=t(83419),p=t(33141),l=t(94811),r=t(87841),n=t(17803),e=new d({Extends:n,Mixins:[p],initialize:function(o,i,a,u,h,f){i===void 0&&(i=0),a===void 0&&(a=0),n.call(this,o,"Curve",u),this._smoothness=32,this._curveBounds=new r,this.closePath=!1,this.setPosition(i,a),h!==void 0&&this.setFillStyle(h,f),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(s){this._smoothness=s,this.updateData()}},setSmoothness:function(s){return this._smoothness=s,this.updateData()},updateData:function(){var s=this._curveBounds,o=this._smoothness;this.geom.getBounds(s,o),this.setSize(s.width,s.height),this.updateDisplayOrigin();for(var i=[],a=this.geom.getPoints(o),u=0;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(65960),p=t(75177),a=t(20926),r=function(n,e,s,l){s.addToRenderList(e);var i=n.currentContext;if(a(n,i,e,s,l)){var o=e._displayOriginX+e._curveBounds.x,u=e._displayOriginY+e._curveBounds.y,h=e.pathData,f=h.length-1,v=h[0]-o,m=h[1]-u;i.beginPath(),i.moveTo(v,m),e.closePath||(f-=2);for(var x=2;x{/** + */var d=t(65960),p=t(75177),l=t(20926),r=function(n,e,s,o){s.addToRenderList(e);var i=n.currentContext;if(l(n,i,e,s,o)){var a=e._displayOriginX+e._curveBounds.x,u=e._displayOriginY+e._curveBounds.y,h=e.pathData,f=h.length-1,v=h[0]-a,m=h[1]-u;i.beginPath(),i.moveTo(v,m),e.closePath||(f-=2);for(var g=2;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(39429),p=t(89);d.register("curve",function(a,r,n,e,s){return this.displayList.add(new p(this.scene,a,r,n,e,s))})},33141:(c,T,t)=>{/** + */var d=t(39429),p=t(89);d.register("curve",function(l,r,n,e,s){return this.displayList.add(new p(this.scene,l,r,n,e,s))})},33141:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(53987),a=t(3170),c.exports={renderWebGL:p,renderCanvas:a}},53987:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(53987),l=t(3170),c.exports={renderWebGL:p,renderCanvas:l}},53987:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(10441),p=t(91296),a=t(34682),r=function(n,e,s,l){s.addToRenderList(e);var i=n.pipelines.set(e.pipeline),o=p(e,s,l),u=i.calcMatrix.copyFrom(o.calc),h=e._displayOriginX+e._curveBounds.x,f=e._displayOriginY+e._curveBounds.y,v=s.alpha*e.alpha;n.pipelines.preBatch(e),e.isFilled&&d(i,u,e,v,h,f),e.isStroked&&a(i,e,v,h,f),n.pipelines.postBatch(e)};c.exports=r},19921:(c,T,t)=>{/** + */var d=t(10441),p=t(91296),l=t(34682),r=function(n,e,s,o){s.addToRenderList(e);var i=n.pipelines.set(e.pipeline),a=p(e,s,o),u=i.calcMatrix.copyFrom(a.calc),h=e._displayOriginX+e._curveBounds.x,f=e._displayOriginY+e._curveBounds.y,v=s.alpha*e.alpha;n.pipelines.preBatch(e),e.isFilled&&d(i,u,e,v,h,f),e.isStroked&&l(i,e,v,h,f),n.pipelines.postBatch(e)};c.exports=r},19921:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(94811),a=t(54205),r=t(8497),n=t(17803),e=new d({Extends:n,Mixins:[a],initialize:function(l,i,o,u,h,f,v){i===void 0&&(i=0),o===void 0&&(o=0),u===void 0&&(u=128),h===void 0&&(h=128),n.call(this,l,"Ellipse",new r(u/2,h/2,u,h)),this._smoothness=64,this.setPosition(i,o),this.width=u,this.height=h,f!==void 0&&this.setFillStyle(f,v),this.updateDisplayOrigin(),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(s){this._smoothness=s,this.updateData()}},setSize:function(s,l){return this.width=s,this.height=l,this.geom.setPosition(s/2,l/2),this.geom.setSize(s,l),this.updateData()},setSmoothness:function(s){return this._smoothness=s,this.updateData()},updateData:function(){for(var s=[],l=this.geom.getPoints(this._smoothness),i=0;i{/** + */var d=t(83419),p=t(94811),l=t(54205),r=t(8497),n=t(17803),e=new d({Extends:n,Mixins:[l],initialize:function(o,i,a,u,h,f,v){i===void 0&&(i=0),a===void 0&&(a=0),u===void 0&&(u=128),h===void 0&&(h=128),n.call(this,o,"Ellipse",new r(u/2,h/2,u,h)),this._smoothness=64,this.setPosition(i,a),this.width=u,this.height=h,f!==void 0&&this.setFillStyle(f,v),this.updateDisplayOrigin(),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(s){this._smoothness=s,this.updateData()}},setSize:function(s,o){return this.width=s,this.height=o,this.geom.setPosition(s/2,o/2),this.geom.setSize(s,o),this.updateDisplayOrigin(),this.updateData()},setSmoothness:function(s){return this._smoothness=s,this.updateData()},updateData:function(){for(var s=[],o=this.geom.getPoints(this._smoothness),i=0;i{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(65960),p=t(75177),a=t(20926),r=function(n,e,s,l){s.addToRenderList(e);var i=n.currentContext;if(a(n,i,e,s,l)){var o=e._displayOriginX,u=e._displayOriginY,h=e.pathData,f=h.length-1,v=h[0]-o,m=h[1]-u;i.beginPath(),i.moveTo(v,m),e.closePath||(f-=2);for(var x=2;x{/** + */var d=t(65960),p=t(75177),l=t(20926),r=function(n,e,s,o){s.addToRenderList(e);var i=n.currentContext;if(l(n,i,e,s,o)){var a=e._displayOriginX,u=e._displayOriginY,h=e.pathData,f=h.length-1,v=h[0]-a,m=h[1]-u;i.beginPath(),i.moveTo(v,m),e.closePath||(f-=2);for(var g=2;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(19921),p=t(39429);p.register("ellipse",function(a,r,n,e,s,l){return this.displayList.add(new d(this.scene,a,r,n,e,s,l))})},54205:(c,T,t)=>{/** + */var d=t(19921),p=t(39429);p.register("ellipse",function(l,r,n,e,s,o){return this.displayList.add(new d(this.scene,l,r,n,e,s,o))})},54205:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(19467),a=t(7930),c.exports={renderWebGL:p,renderCanvas:a}},19467:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(19467),l=t(7930),c.exports={renderWebGL:p,renderCanvas:l}},19467:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(10441),p=t(91296),a=t(34682),r=function(n,e,s,l){s.addToRenderList(e);var i=n.pipelines.set(e.pipeline),o=p(e,s,l),u=i.calcMatrix.copyFrom(o.calc),h=e._displayOriginX,f=e._displayOriginY,v=s.alpha*e.alpha;n.pipelines.preBatch(e),e.isFilled&&d(i,u,e,v,h,f),e.isStroked&&a(i,e,v,h,f),n.pipelines.postBatch(e)};c.exports=r},30479:(c,T,t)=>{/** + */var d=t(10441),p=t(91296),l=t(34682),r=function(n,e,s,o){s.addToRenderList(e);var i=n.pipelines.set(e.pipeline),a=p(e,s,o),u=i.calcMatrix.copyFrom(a.calc),h=e._displayOriginX,f=e._displayOriginY,v=s.alpha*e.alpha;n.pipelines.preBatch(e),e.isFilled&&d(i,u,e,v,h,f),e.isStroked&&l(i,e,v,h,f),n.pipelines.postBatch(e)};c.exports=r},30479:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(17803),a=t(26015),r=new d({Extends:p,Mixins:[a],initialize:function(e,s,l,i,o,u,h,f,v,m,x){s===void 0&&(s=0),l===void 0&&(l=0),i===void 0&&(i=128),o===void 0&&(o=128),u===void 0&&(u=32),h===void 0&&(h=32),p.call(this,e,"Grid",null),this.cellWidth=u,this.cellHeight=h,this.showCells=!0,this.outlineFillColor=0,this.outlineFillAlpha=0,this.showOutline=!0,this.showAltCells=!1,this.altFillColor,this.altFillAlpha,this.setPosition(s,l),this.setSize(i,o),this.setFillStyle(f,v),m!==void 0&&this.setOutlineStyle(m,x),this.updateDisplayOrigin()},setFillStyle:function(n,e){return e===void 0&&(e=1),n===void 0?this.showCells=!1:(this.fillColor=n,this.fillAlpha=e,this.showCells=!0),this},setAltFillStyle:function(n,e){return e===void 0&&(e=1),n===void 0?this.showAltCells=!1:(this.altFillColor=n,this.altFillAlpha=e,this.showAltCells=!0),this},setOutlineStyle:function(n,e){return e===void 0&&(e=1),n===void 0?this.showOutline=!1:(this.outlineFillColor=n,this.outlineFillAlpha=e,this.showOutline=!0),this}});c.exports=r},49912:(c,T,t)=>{/** + */var d=t(83419),p=t(17803),l=t(26015),r=new d({Extends:p,Mixins:[l],initialize:function(e,s,o,i,a,u,h,f,v,m,g){s===void 0&&(s=0),o===void 0&&(o=0),i===void 0&&(i=128),a===void 0&&(a=128),u===void 0&&(u=32),h===void 0&&(h=32),p.call(this,e,"Grid",null),this.cellWidth=u,this.cellHeight=h,this.showCells=!0,this.outlineFillColor=0,this.outlineFillAlpha=0,this.showOutline=!0,this.showAltCells=!1,this.altFillColor,this.altFillAlpha,this.setPosition(s,o),this.setSize(i,a),this.setFillStyle(f,v),m!==void 0&&this.setOutlineStyle(m,g),this.updateDisplayOrigin()},setFillStyle:function(n,e){return e===void 0&&(e=1),n===void 0?this.showCells=!1:(this.fillColor=n,this.fillAlpha=e,this.showCells=!0),this},setAltFillStyle:function(n,e){return e===void 0&&(e=1),n===void 0?this.showAltCells=!1:(this.altFillColor=n,this.altFillAlpha=e,this.showAltCells=!0),this},setOutlineStyle:function(n,e){return e===void 0&&(e=1),n===void 0?this.showOutline=!1:(this.outlineFillColor=n,this.outlineFillAlpha=e,this.showOutline=!0),this}});c.exports=r},49912:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(65960),p=t(75177),a=t(20926),r=function(n,e,s,l){s.addToRenderList(e);var i=n.currentContext;if(a(n,i,e,s,l)){var o=-e._displayOriginX,u=-e._displayOriginY,h=s.alpha*e.alpha,f=e.width,v=e.height,m=e.cellWidth,x=e.cellHeight,g=Math.ceil(f/m),y=Math.ceil(v/x),S=m,C=x,E=m-(g*m-f),A=x-(y*x-v),P=e.showCells,M=e.showAltCells,F=e.showOutline,L=0,b=0,B=0,N=0,X=0;if(F&&(S--,C--,E===m&&E--,A===x&&A--),P&&e.fillAlpha>0)for(d(i,e),b=0;b0)for(d(i,e,e.altFillColor,e.altFillAlpha*h),b=0;b0){for(p(i,e,e.outlineFillColor,e.outlineFillAlpha*h),L=1;L{/** + */var d=t(65960),p=t(75177),l=t(20926),r=function(n,e,s,o){s.addToRenderList(e);var i=n.currentContext;if(l(n,i,e,s,o)){var a=-e._displayOriginX,u=-e._displayOriginY,h=s.alpha*e.alpha,f=e.width,v=e.height,m=e.cellWidth,g=e.cellHeight,x=Math.ceil(f/m),y=Math.ceil(v/g),S=m,C=g,E=m-(x*m-f),M=g-(y*g-v),P=e.showCells,A=e.showAltCells,R=e.showOutline,F=0,D=0,w=0,G=0,N=0;if(R&&(S--,C--,E===m&&E--,M===g&&M--),P&&e.fillAlpha>0)for(d(i,e),D=0;D0)for(d(i,e,e.altFillColor,e.altFillAlpha*h),D=0;D0){for(p(i,e,e.outlineFillColor,e.outlineFillAlpha*h),F=1;F{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(39429),p=t(30479);d.register("grid",function(a,r,n,e,s,l,i,o,u,h){return this.displayList.add(new p(this.scene,a,r,n,e,s,l,i,o,u,h))})},26015:(c,T,t)=>{/** + */var d=t(39429),p=t(30479);d.register("grid",function(l,r,n,e,s,o,i,a,u,h){return this.displayList.add(new p(this.scene,l,r,n,e,s,o,i,a,u,h))})},26015:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(46161),a=t(49912),c.exports={renderWebGL:p,renderCanvas:a}},46161:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(46161),l=t(49912),c.exports={renderWebGL:p,renderCanvas:l}},46161:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91296),p=t(70554),a=function(r,n,e,s){e.addToRenderList(n);var l=r.pipelines.set(n.pipeline),i=d(n,e,s),o=l.calcMatrix.copyFrom(i.calc);o.translate(-n._displayOriginX,-n._displayOriginY);var u=e.alpha*n.alpha,h=n.width,f=n.height,v=n.cellWidth,m=n.cellHeight,x=Math.ceil(h/v),g=Math.ceil(f/m),y=v,S=m,C=v-(x*v-h),E=m-(g*m-f),A,P,M=n.showCells,F=n.showAltCells,L=n.showOutline,b=0,B=0,N=0,X=0,D=0;if(L&&(y--,S--,C===v&&C--,E===m&&E--),r.pipelines.preBatch(n),M&&n.fillAlpha>0)for(A=l.fillTint,P=p.getTintAppendFloatAlpha(n.fillColor,n.fillAlpha*u),A.TL=P,A.TR=P,A.BL=P,A.BR=P,B=0;B0)for(A=l.fillTint,P=p.getTintAppendFloatAlpha(n.altFillColor,n.altFillAlpha*u),A.TL=P,A.TR=P,A.BL=P,A.BR=P,B=0;B0){var I=l.strokeTint,R=p.getTintAppendFloatAlpha(n.outlineFillColor,n.outlineFillAlpha*u);for(I.TL=R,I.TR=R,I.BL=R,I.BR=R,b=1;b{/** + */var d=t(91296),p=t(70554),l=function(r,n,e,s){e.addToRenderList(n);var o=r.pipelines.set(n.pipeline),i=d(n,e,s),a=o.calcMatrix.copyFrom(i.calc);a.translate(-n._displayOriginX,-n._displayOriginY);var u=e.alpha*n.alpha,h=n.width,f=n.height,v=n.cellWidth,m=n.cellHeight,g=Math.ceil(h/v),x=Math.ceil(f/m),y=v,S=m,C=v-(g*v-h),E=m-(x*m-f),M,P,A=n.showCells,R=n.showAltCells,F=n.showOutline,D=0,w=0,G=0,N=0,b=0;if(F&&(y--,S--,C===v&&C--,E===m&&E--),r.pipelines.preBatch(n),A&&n.fillAlpha>0)for(M=o.fillTint,P=p.getTintAppendFloatAlpha(n.fillColor,n.fillAlpha*u),M.TL=P,M.TR=P,M.BL=P,M.BR=P,w=0;w0)for(M=o.fillTint,P=p.getTintAppendFloatAlpha(n.altFillColor,n.altFillAlpha*u),M.TL=P,M.TR=P,M.BL=P,M.BR=P,w=0;w0){var B=o.strokeTint,O=p.getTintAppendFloatAlpha(n.outlineFillColor,n.outlineFillAlpha*u);for(B.TL=O,B.TR=O,B.BL=O,B.BR=O,D=1;D{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(99651),p=t(83419),a=t(17803),r=new p({Extends:a,Mixins:[d],initialize:function(e,s,l,i,o,u,h,f){s===void 0&&(s=0),l===void 0&&(l=0),i===void 0&&(i=48),o===void 0&&(o=32),u===void 0&&(u=15658734),h===void 0&&(h=10066329),f===void 0&&(f=13421772),a.call(this,e,"IsoBox",null),this.projection=4,this.fillTop=u,this.fillLeft=h,this.fillRight=f,this.showTop=!0,this.showLeft=!0,this.showRight=!0,this.isFilled=!0,this.setPosition(s,l),this.setSize(i,o),this.updateDisplayOrigin()},setProjection:function(n){return this.projection=n,this},setFaces:function(n,e,s){return n===void 0&&(n=!0),e===void 0&&(e=!0),s===void 0&&(s=!0),this.showTop=n,this.showLeft=e,this.showRight=s,this},setFillStyle:function(n,e,s){return this.fillTop=n,this.fillLeft=e,this.fillRight=s,this.isFilled=!0,this}});c.exports=r},11508:(c,T,t)=>{/** + */var d=t(99651),p=t(83419),l=t(17803),r=new p({Extends:l,Mixins:[d],initialize:function(e,s,o,i,a,u,h,f){s===void 0&&(s=0),o===void 0&&(o=0),i===void 0&&(i=48),a===void 0&&(a=32),u===void 0&&(u=15658734),h===void 0&&(h=10066329),f===void 0&&(f=13421772),l.call(this,e,"IsoBox",null),this.projection=4,this.fillTop=u,this.fillLeft=h,this.fillRight=f,this.showTop=!0,this.showLeft=!0,this.showRight=!0,this.isFilled=!0,this.setPosition(s,o),this.setSize(i,a),this.updateDisplayOrigin()},setProjection:function(n){return this.projection=n,this},setFaces:function(n,e,s){return n===void 0&&(n=!0),e===void 0&&(e=!0),s===void 0&&(s=!0),this.showTop=n,this.showLeft=e,this.showRight=s,this},setFillStyle:function(n,e,s){return this.fillTop=n,this.fillLeft=e,this.fillRight=s,this.isFilled=!0,this}});c.exports=r},11508:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(65960),p=t(20926),a=function(r,n,e,s){e.addToRenderList(n);var l=r.currentContext;if(p(r,l,n,e,s)&&n.isFilled){var i=n.width,o=n.height,u=i/2,h=i/n.projection;n.showTop&&(d(l,n,n.fillTop),l.beginPath(),l.moveTo(-u,-o),l.lineTo(0,-h-o),l.lineTo(u,-o),l.lineTo(u,-1),l.lineTo(0,h-1),l.lineTo(-u,-1),l.lineTo(-u,-o),l.fill()),n.showLeft&&(d(l,n,n.fillLeft),l.beginPath(),l.moveTo(-u,0),l.lineTo(0,h),l.lineTo(0,h-o),l.lineTo(-u,-o),l.lineTo(-u,0),l.fill()),n.showRight&&(d(l,n,n.fillRight),l.beginPath(),l.moveTo(u,0),l.lineTo(0,h),l.lineTo(0,h-o),l.lineTo(u,-o),l.lineTo(u,0),l.fill()),l.restore()}};c.exports=a},3933:(c,T,t)=>{/** + */var d=t(65960),p=t(20926),l=function(r,n,e,s){e.addToRenderList(n);var o=r.currentContext;if(p(r,o,n,e,s)&&n.isFilled){var i=n.width,a=n.height,u=i/2,h=i/n.projection;n.showTop&&(d(o,n,n.fillTop),o.beginPath(),o.moveTo(-u,-a),o.lineTo(0,-h-a),o.lineTo(u,-a),o.lineTo(u,-1),o.lineTo(0,h-1),o.lineTo(-u,-1),o.lineTo(-u,-a),o.fill()),n.showLeft&&(d(o,n,n.fillLeft),o.beginPath(),o.moveTo(-u,0),o.lineTo(0,h),o.lineTo(0,h-a),o.lineTo(-u,-a),o.lineTo(-u,0),o.fill()),n.showRight&&(d(o,n,n.fillRight),o.beginPath(),o.moveTo(u,0),o.lineTo(0,h),o.lineTo(0,h-a),o.lineTo(u,-a),o.lineTo(u,0),o.fill()),o.restore()}};c.exports=l},3933:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(39429),p=t(61475);d.register("isobox",function(a,r,n,e,s,l,i){return this.displayList.add(new p(this.scene,a,r,n,e,s,l,i))})},99651:(c,T,t)=>{/** + */var d=t(39429),p=t(61475);d.register("isobox",function(l,r,n,e,s,o,i){return this.displayList.add(new p(this.scene,l,r,n,e,s,o,i))})},99651:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(68149),a=t(11508),c.exports={renderWebGL:p,renderCanvas:a}},68149:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(68149),l=t(11508),c.exports={renderWebGL:p,renderCanvas:l}},68149:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91296),p=t(70554),a=function(r,n,e,s){e.addToRenderList(n);var l=r.pipelines.set(n.pipeline),i=d(n,e,s),o=l.calcMatrix.copyFrom(i.calc),u=n.width,h=n.height,f=u/2,v=u/n.projection,m=e.alpha*n.alpha;if(n.isFilled){var x,g,y,S,C,E,A,P,M;r.pipelines.preBatch(n),n.showTop&&(x=p.getTintAppendFloatAlpha(n.fillTop,m),g=o.getX(-f,-h),y=o.getY(-f,-h),S=o.getX(0,-v-h),C=o.getY(0,-v-h),E=o.getX(f,-h),A=o.getY(f,-h),P=o.getX(0,v-h),M=o.getY(0,v-h),l.batchQuad(n,g,y,S,C,E,A,P,M,0,0,1,1,x,x,x,x,2)),n.showLeft&&(x=p.getTintAppendFloatAlpha(n.fillLeft,m),g=o.getX(-f,0),y=o.getY(-f,0),S=o.getX(0,v),C=o.getY(0,v),E=o.getX(0,v-h),A=o.getY(0,v-h),P=o.getX(-f,-h),M=o.getY(-f,-h),l.batchQuad(n,g,y,S,C,E,A,P,M,0,0,1,1,x,x,x,x,2)),n.showRight&&(x=p.getTintAppendFloatAlpha(n.fillRight,m),g=o.getX(f,0),y=o.getY(f,0),S=o.getX(0,v),C=o.getY(0,v),E=o.getX(0,v-h),A=o.getY(0,v-h),P=o.getX(f,-h),M=o.getY(f,-h),l.batchQuad(n,g,y,S,C,E,A,P,M,0,0,1,1,x,x,x,x,2)),r.pipelines.postBatch(n)}};c.exports=a},16933:(c,T,t)=>{/** + */var d=t(91296),p=t(70554),l=function(r,n,e,s){e.addToRenderList(n);var o=r.pipelines.set(n.pipeline),i=d(n,e,s),a=o.calcMatrix.copyFrom(i.calc),u=n.width,h=n.height,f=u/2,v=u/n.projection,m=e.alpha*n.alpha;if(n.isFilled){var g,x,y,S,C,E,M,P,A;r.pipelines.preBatch(n),n.showTop&&(g=p.getTintAppendFloatAlpha(n.fillTop,m),x=a.getX(-f,-h),y=a.getY(-f,-h),S=a.getX(0,-v-h),C=a.getY(0,-v-h),E=a.getX(f,-h),M=a.getY(f,-h),P=a.getX(0,v-h),A=a.getY(0,v-h),o.batchQuad(n,x,y,S,C,E,M,P,A,0,0,1,1,g,g,g,g,2)),n.showLeft&&(g=p.getTintAppendFloatAlpha(n.fillLeft,m),x=a.getX(-f,0),y=a.getY(-f,0),S=a.getX(0,v),C=a.getY(0,v),E=a.getX(0,v-h),M=a.getY(0,v-h),P=a.getX(-f,-h),A=a.getY(-f,-h),o.batchQuad(n,x,y,S,C,E,M,P,A,0,0,1,1,g,g,g,g,2)),n.showRight&&(g=p.getTintAppendFloatAlpha(n.fillRight,m),x=a.getX(f,0),y=a.getY(f,0),S=a.getX(0,v),C=a.getY(0,v),E=a.getX(0,v-h),M=a.getY(0,v-h),P=a.getX(f,-h),A=a.getY(f,-h),o.batchQuad(n,x,y,S,C,E,M,P,A,0,0,1,1,g,g,g,g,2)),r.pipelines.postBatch(n)}};c.exports=l},16933:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(60561),a=t(17803),r=new d({Extends:a,Mixins:[p],initialize:function(e,s,l,i,o,u,h,f,v){s===void 0&&(s=0),l===void 0&&(l=0),i===void 0&&(i=48),o===void 0&&(o=32),u===void 0&&(u=!1),h===void 0&&(h=15658734),f===void 0&&(f=10066329),v===void 0&&(v=13421772),a.call(this,e,"IsoTriangle",null),this.projection=4,this.fillTop=h,this.fillLeft=f,this.fillRight=v,this.showTop=!0,this.showLeft=!0,this.showRight=!0,this.isReversed=u,this.isFilled=!0,this.setPosition(s,l),this.setSize(i,o),this.updateDisplayOrigin()},setProjection:function(n){return this.projection=n,this},setReversed:function(n){return this.isReversed=n,this},setFaces:function(n,e,s){return n===void 0&&(n=!0),e===void 0&&(e=!0),s===void 0&&(s=!0),this.showTop=n,this.showLeft=e,this.showRight=s,this},setFillStyle:function(n,e,s){return this.fillTop=n,this.fillLeft=e,this.fillRight=s,this.isFilled=!0,this}});c.exports=r},79590:(c,T,t)=>{/** + */var d=t(83419),p=t(60561),l=t(17803),r=new d({Extends:l,Mixins:[p],initialize:function(e,s,o,i,a,u,h,f,v){s===void 0&&(s=0),o===void 0&&(o=0),i===void 0&&(i=48),a===void 0&&(a=32),u===void 0&&(u=!1),h===void 0&&(h=15658734),f===void 0&&(f=10066329),v===void 0&&(v=13421772),l.call(this,e,"IsoTriangle",null),this.projection=4,this.fillTop=h,this.fillLeft=f,this.fillRight=v,this.showTop=!0,this.showLeft=!0,this.showRight=!0,this.isReversed=u,this.isFilled=!0,this.setPosition(s,o),this.setSize(i,a),this.updateDisplayOrigin()},setProjection:function(n){return this.projection=n,this},setReversed:function(n){return this.isReversed=n,this},setFaces:function(n,e,s){return n===void 0&&(n=!0),e===void 0&&(e=!0),s===void 0&&(s=!0),this.showTop=n,this.showLeft=e,this.showRight=s,this},setFillStyle:function(n,e,s){return this.fillTop=n,this.fillLeft=e,this.fillRight=s,this.isFilled=!0,this}});c.exports=r},79590:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(65960),p=t(20926),a=function(r,n,e,s){e.addToRenderList(n);var l=r.currentContext;if(p(r,l,n,e,s)&&n.isFilled){var i=n.width,o=n.height,u=i/2,h=i/n.projection,f=n.isReversed;n.showTop&&f&&(d(l,n,n.fillTop),l.beginPath(),l.moveTo(-u,-o),l.lineTo(0,-h-o),l.lineTo(u,-o),l.lineTo(0,h-o),l.fill()),n.showLeft&&(d(l,n,n.fillLeft),l.beginPath(),f?(l.moveTo(-u,-o),l.lineTo(0,h),l.lineTo(0,h-o)):(l.moveTo(-u,0),l.lineTo(0,h),l.lineTo(0,h-o)),l.fill()),n.showRight&&(d(l,n,n.fillRight),l.beginPath(),f?(l.moveTo(u,-o),l.lineTo(0,h),l.lineTo(0,h-o)):(l.moveTo(u,0),l.lineTo(0,h),l.lineTo(0,h-o)),l.fill()),l.restore()}};c.exports=a},49803:(c,T,t)=>{/** + */var d=t(65960),p=t(20926),l=function(r,n,e,s){e.addToRenderList(n);var o=r.currentContext;if(p(r,o,n,e,s)&&n.isFilled){var i=n.width,a=n.height,u=i/2,h=i/n.projection,f=n.isReversed;n.showTop&&f&&(d(o,n,n.fillTop),o.beginPath(),o.moveTo(-u,-a),o.lineTo(0,-h-a),o.lineTo(u,-a),o.lineTo(0,h-a),o.fill()),n.showLeft&&(d(o,n,n.fillLeft),o.beginPath(),f?(o.moveTo(-u,-a),o.lineTo(0,h),o.lineTo(0,h-a)):(o.moveTo(-u,0),o.lineTo(0,h),o.lineTo(0,h-a)),o.fill()),n.showRight&&(d(o,n,n.fillRight),o.beginPath(),f?(o.moveTo(u,-a),o.lineTo(0,h),o.lineTo(0,h-a)):(o.moveTo(u,0),o.lineTo(0,h),o.lineTo(0,h-a)),o.fill()),o.restore()}};c.exports=l},49803:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(39429),p=t(16933);d.register("isotriangle",function(a,r,n,e,s,l,i,o){return this.displayList.add(new p(this.scene,a,r,n,e,s,l,i,o))})},60561:(c,T,t)=>{/** + */var d=t(39429),p=t(16933);d.register("isotriangle",function(l,r,n,e,s,o,i,a){return this.displayList.add(new p(this.scene,l,r,n,e,s,o,i,a))})},60561:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(51503),a=t(79590),c.exports={renderWebGL:p,renderCanvas:a}},51503:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(51503),l=t(79590),c.exports={renderWebGL:p,renderCanvas:l}},51503:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91296),p=t(70554),a=function(r,n,e,s){e.addToRenderList(n);var l=r.pipelines.set(n.pipeline),i=d(n,e,s),o=l.calcMatrix.copyFrom(i.calc),u=n.width,h=n.height,f=u/2,v=u/n.projection,m=n.isReversed,x=e.alpha*n.alpha;if(n.isFilled){r.pipelines.preBatch(n);var g,y,S,C,E,A,P;if(n.showTop&&m){g=p.getTintAppendFloatAlpha(n.fillTop,x),y=o.getX(-f,-h),S=o.getY(-f,-h),C=o.getX(0,-v-h),E=o.getY(0,-v-h),A=o.getX(f,-h),P=o.getY(f,-h);var M=o.getX(0,v-h),F=o.getY(0,v-h);l.batchQuad(n,y,S,C,E,A,P,M,F,0,0,1,1,g,g,g,g,2)}n.showLeft&&(g=p.getTintAppendFloatAlpha(n.fillLeft,x),m?(y=o.getX(-f,-h),S=o.getY(-f,-h),C=o.getX(0,v),E=o.getY(0,v),A=o.getX(0,v-h),P=o.getY(0,v-h)):(y=o.getX(-f,0),S=o.getY(-f,0),C=o.getX(0,v),E=o.getY(0,v),A=o.getX(0,v-h),P=o.getY(0,v-h)),l.batchTri(n,y,S,C,E,A,P,0,0,1,1,g,g,g,2)),n.showRight&&(g=p.getTintAppendFloatAlpha(n.fillRight,x),m?(y=o.getX(f,-h),S=o.getY(f,-h),C=o.getX(0,v),E=o.getY(0,v),A=o.getX(0,v-h),P=o.getY(0,v-h)):(y=o.getX(f,0),S=o.getY(f,0),C=o.getX(0,v),E=o.getY(0,v),A=o.getX(0,v-h),P=o.getY(0,v-h)),l.batchTri(n,y,S,C,E,A,P,0,0,1,1,g,g,g,2)),r.pipelines.postBatch(n)}};c.exports=a},57847:(c,T,t)=>{/** + */var d=t(91296),p=t(70554),l=function(r,n,e,s){e.addToRenderList(n);var o=r.pipelines.set(n.pipeline),i=d(n,e,s),a=o.calcMatrix.copyFrom(i.calc),u=n.width,h=n.height,f=u/2,v=u/n.projection,m=n.isReversed,g=e.alpha*n.alpha;if(n.isFilled){r.pipelines.preBatch(n);var x,y,S,C,E,M,P;if(n.showTop&&m){x=p.getTintAppendFloatAlpha(n.fillTop,g),y=a.getX(-f,-h),S=a.getY(-f,-h),C=a.getX(0,-v-h),E=a.getY(0,-v-h),M=a.getX(f,-h),P=a.getY(f,-h);var A=a.getX(0,v-h),R=a.getY(0,v-h);o.batchQuad(n,y,S,C,E,M,P,A,R,0,0,1,1,x,x,x,x,2)}n.showLeft&&(x=p.getTintAppendFloatAlpha(n.fillLeft,g),m?(y=a.getX(-f,-h),S=a.getY(-f,-h),C=a.getX(0,v),E=a.getY(0,v),M=a.getX(0,v-h),P=a.getY(0,v-h)):(y=a.getX(-f,0),S=a.getY(-f,0),C=a.getX(0,v),E=a.getY(0,v),M=a.getX(0,v-h),P=a.getY(0,v-h)),o.batchTri(n,y,S,C,E,M,P,0,0,1,1,x,x,x,2)),n.showRight&&(x=p.getTintAppendFloatAlpha(n.fillRight,g),m?(y=a.getX(f,-h),S=a.getY(f,-h),C=a.getX(0,v),E=a.getY(0,v),M=a.getX(0,v-h),P=a.getY(0,v-h)):(y=a.getX(f,0),S=a.getY(f,0),C=a.getX(0,v),E=a.getY(0,v),M=a.getX(0,v-h),P=a.getY(0,v-h)),o.batchTri(n,y,S,C,E,M,P,0,0,1,1,x,x,x,2)),r.pipelines.postBatch(n)}};c.exports=l},57847:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(17803),a=t(23031),r=t(36823),n=new d({Extends:p,Mixins:[r],initialize:function(s,l,i,o,u,h,f,v,m){l===void 0&&(l=0),i===void 0&&(i=0),o===void 0&&(o=0),u===void 0&&(u=0),h===void 0&&(h=128),f===void 0&&(f=0),p.call(this,s,"Line",new a(o,u,h,f));var x=Math.max(1,this.geom.right-this.geom.left),g=Math.max(1,this.geom.bottom-this.geom.top);this.lineWidth=1,this._startWidth=1,this._endWidth=1,this.setPosition(l,i),this.setSize(x,g),v!==void 0&&this.setStrokeStyle(1,v,m),this.updateDisplayOrigin()},setLineWidth:function(e,s){return s===void 0&&(s=e),this._startWidth=e,this._endWidth=s,this.lineWidth=e,this},setTo:function(e,s,l,i){return this.geom.setTo(e,s,l,i),this}});c.exports=n},17440:(c,T,t)=>{/** + */var d=t(83419),p=t(17803),l=t(23031),r=t(36823),n=new d({Extends:p,Mixins:[r],initialize:function(s,o,i,a,u,h,f,v,m){o===void 0&&(o=0),i===void 0&&(i=0),a===void 0&&(a=0),u===void 0&&(u=0),h===void 0&&(h=128),f===void 0&&(f=0),p.call(this,s,"Line",new l(a,u,h,f));var g=Math.max(1,this.geom.right-this.geom.left),x=Math.max(1,this.geom.bottom-this.geom.top);this.lineWidth=1,this._startWidth=1,this._endWidth=1,this.setPosition(o,i),this.setSize(g,x),v!==void 0&&this.setStrokeStyle(1,v,m),this.updateDisplayOrigin()},setLineWidth:function(e,s){return s===void 0&&(s=e),this._startWidth=e,this._endWidth=s,this.lineWidth=e,this},setTo:function(e,s,o,i){return this.geom.setTo(e,s,o,i),this}});c.exports=n},17440:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(75177),p=t(20926),a=function(r,n,e,s){e.addToRenderList(n);var l=r.currentContext;if(p(r,l,n,e,s)){var i=n._displayOriginX,o=n._displayOriginY;n.isStroked&&(d(l,n),l.beginPath(),l.moveTo(n.geom.x1-i,n.geom.y1-o),l.lineTo(n.geom.x2-i,n.geom.y2-o),l.stroke()),l.restore()}};c.exports=a},2481:(c,T,t)=>{/** + */var d=t(75177),p=t(20926),l=function(r,n,e,s){e.addToRenderList(n);var o=r.currentContext;if(p(r,o,n,e,s)){var i=n._displayOriginX,a=n._displayOriginY;n.isStroked&&(d(o,n),o.beginPath(),o.moveTo(n.geom.x1-i,n.geom.y1-a),o.lineTo(n.geom.x2-i,n.geom.y2-a),o.stroke()),o.restore()}};c.exports=l},2481:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(39429),p=t(57847);d.register("line",function(a,r,n,e,s,l,i,o){return this.displayList.add(new p(this.scene,a,r,n,e,s,l,i,o))})},36823:(c,T,t)=>{/** + */var d=t(39429),p=t(57847);d.register("line",function(l,r,n,e,s,o,i,a){return this.displayList.add(new p(this.scene,l,r,n,e,s,o,i,a))})},36823:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(77385),a=t(17440),c.exports={renderWebGL:p,renderCanvas:a}},77385:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(77385),l=t(17440),c.exports={renderWebGL:p,renderCanvas:l}},77385:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91296),p=t(70554),a=function(r,n,e,s){e.addToRenderList(n);var l=r.pipelines.set(n.pipeline),i=d(n,e,s);l.calcMatrix.copyFrom(i.calc);var o=n._displayOriginX,u=n._displayOriginY,h=e.alpha*n.alpha;if(r.pipelines.preBatch(n),n.isStroked){var f=l.strokeTint,v=p.getTintAppendFloatAlpha(n.strokeColor,n.strokeAlpha*h);f.TL=v,f.TR=v,f.BL=v,f.BR=v,l.batchLine(n.geom.x1-o,n.geom.y1-u,n.geom.x2-o,n.geom.y2-u,n._startWidth/2,n._endWidth/2,1,0,!1,i.sprite,i.camera)}r.pipelines.postBatch(n)};c.exports=a},24949:(c,T,t)=>{/** + */var d=t(91296),p=t(70554),l=function(r,n,e,s){e.addToRenderList(n);var o=r.pipelines.set(n.pipeline),i=d(n,e,s);o.calcMatrix.copyFrom(i.calc);var a=n._displayOriginX,u=n._displayOriginY,h=e.alpha*n.alpha;if(r.pipelines.preBatch(n),n.isStroked){var f=o.strokeTint,v=p.getTintAppendFloatAlpha(n.strokeColor,n.strokeAlpha*h);f.TL=v,f.TR=v,f.BL=v,f.BR=v,o.batchLine(n.geom.x1-a,n.geom.y1-u,n.geom.x2-a,n.geom.y2-u,n._startWidth/2,n._endWidth/2,1,0,!1,i.sprite,i.camera)}r.pipelines.postBatch(n)};c.exports=l},24949:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(90273),p=t(83419),a=t(94811),r=t(13829),n=t(25717),e=t(17803),s=t(5469),l=new p({Extends:e,Mixins:[d],initialize:function(o,u,h,f,v,m){u===void 0&&(u=0),h===void 0&&(h=0),e.call(this,o,"Polygon",new n(f));var x=r(this.geom);this.setPosition(u,h),this.setSize(x.width,x.height),v!==void 0&&this.setFillStyle(v,m),this.updateDisplayOrigin(),this.updateData()},smooth:function(i){i===void 0&&(i=1);for(var o=0;o{/** + */var d=t(90273),p=t(83419),l=t(94811),r=t(13829),n=t(25717),e=t(17803),s=t(5469),o=new p({Extends:e,Mixins:[d],initialize:function(a,u,h,f,v,m){u===void 0&&(u=0),h===void 0&&(h=0),e.call(this,a,"Polygon",new n(f));var g=r(this.geom);this.setPosition(u,h),this.setSize(g.width,g.height),v!==void 0&&this.setFillStyle(v,m),this.updateDisplayOrigin(),this.updateData()},smooth:function(i){i===void 0&&(i=1);for(var a=0;a{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(65960),p=t(75177),a=t(20926),r=function(n,e,s,l){s.addToRenderList(e);var i=n.currentContext;if(a(n,i,e,s,l)){var o=e._displayOriginX,u=e._displayOriginY,h=e.pathData,f=h.length-1,v=h[0]-o,m=h[1]-u;i.beginPath(),i.moveTo(v,m),e.closePath||(f-=2);for(var x=2;x{/** + */var d=t(65960),p=t(75177),l=t(20926),r=function(n,e,s,o){s.addToRenderList(e);var i=n.currentContext;if(l(n,i,e,s,o)){var a=e._displayOriginX,u=e._displayOriginY,h=e.pathData,f=h.length-1,v=h[0]-a,m=h[1]-u;i.beginPath(),i.moveTo(v,m),e.closePath||(f-=2);for(var g=2;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(39429),p=t(24949);d.register("polygon",function(a,r,n,e,s){return this.displayList.add(new p(this.scene,a,r,n,e,s))})},90273:(c,T,t)=>{/** + */var d=t(39429),p=t(24949);d.register("polygon",function(l,r,n,e,s){return this.displayList.add(new p(this.scene,l,r,n,e,s))})},90273:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(73695),a=t(38710),c.exports={renderWebGL:p,renderCanvas:a}},73695:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(73695),l=t(38710),c.exports={renderWebGL:p,renderCanvas:l}},73695:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(10441),p=t(91296),a=t(34682),r=function(n,e,s,l){s.addToRenderList(e);var i=n.pipelines.set(e.pipeline),o=p(e,s,l),u=i.calcMatrix.copyFrom(o.calc),h=e._displayOriginX,f=e._displayOriginY,v=s.alpha*e.alpha;n.pipelines.preBatch(e),e.isFilled&&d(i,u,e,v,h,f),e.isStroked&&a(i,e,v,h,f),n.pipelines.postBatch(e)};c.exports=r},74561:(c,T,t)=>{/** + */var d=t(10441),p=t(91296),l=t(34682),r=function(n,e,s,o){s.addToRenderList(e);var i=n.pipelines.set(e.pipeline),a=p(e,s,o),u=i.calcMatrix.copyFrom(a.calc),h=e._displayOriginX,f=e._displayOriginY,v=s.alpha*e.alpha;n.pipelines.preBatch(e),e.isFilled&&d(i,u,e,v,h,f),e.isStroked&&l(i,e,v,h,f),n.pipelines.postBatch(e)};c.exports=r},74561:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(87841),a=t(17803),r=t(95597),n=new d({Extends:a,Mixins:[r],initialize:function(s,l,i,o,u,h,f){l===void 0&&(l=0),i===void 0&&(i=0),o===void 0&&(o=128),u===void 0&&(u=128),a.call(this,s,"Rectangle",new p(0,0,o,u)),this.setPosition(l,i),this.setSize(o,u),h!==void 0&&this.setFillStyle(h,f),this.updateDisplayOrigin(),this.updateData()},setSize:function(e,s){this.width=e,this.height=s,this.geom.setSize(e,s),this.updateData(),this.updateDisplayOrigin();var l=this.input;return l&&!l.customHitArea&&(l.hitArea.width=e,l.hitArea.height=s),this},updateData:function(){var e=[],s=this.geom,l=this._tempLine;return s.getLineA(l),e.push(l.x1,l.y1,l.x2,l.y2),s.getLineB(l),e.push(l.x2,l.y2),s.getLineC(l),e.push(l.x2,l.y2),s.getLineD(l),e.push(l.x2,l.y2),this.pathData=e,this}});c.exports=n},48682:(c,T,t)=>{/** + */var d=t(83419),p=t(87841),l=t(17803),r=t(95597),n=new d({Extends:l,Mixins:[r],initialize:function(s,o,i,a,u,h,f){o===void 0&&(o=0),i===void 0&&(i=0),a===void 0&&(a=128),u===void 0&&(u=128),l.call(this,s,"Rectangle",new p(0,0,a,u)),this.setPosition(o,i),this.setSize(a,u),h!==void 0&&this.setFillStyle(h,f),this.updateDisplayOrigin(),this.updateData()},setSize:function(e,s){this.width=e,this.height=s,this.geom.setSize(e,s),this.updateData(),this.updateDisplayOrigin();var o=this.input;return o&&!o.customHitArea&&(o.hitArea.width=e,o.hitArea.height=s),this},updateData:function(){var e=[],s=this.geom,o=this._tempLine;return s.getLineA(o),e.push(o.x1,o.y1,o.x2,o.y2),s.getLineB(o),e.push(o.x2,o.y2),s.getLineC(o),e.push(o.x2,o.y2),s.getLineD(o),e.push(o.x2,o.y2),this.pathData=e,this}});c.exports=n},48682:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(65960),p=t(75177),a=t(20926),r=function(n,e,s,l){s.addToRenderList(e);var i=n.currentContext;if(a(n,i,e,s,l)){var o=e._displayOriginX,u=e._displayOriginY;e.isFilled&&(d(i,e),i.fillRect(-o,-u,e.width,e.height)),e.isStroked&&(p(i,e),i.beginPath(),i.rect(-o,-u,e.width,e.height),i.stroke()),i.restore()}};c.exports=r},87959:(c,T,t)=>{/** + */var d=t(65960),p=t(75177),l=t(20926),r=function(n,e,s,o){s.addToRenderList(e);var i=n.currentContext;if(l(n,i,e,s,o)){var a=e._displayOriginX,u=e._displayOriginY;e.isFilled&&(d(i,e),i.fillRect(-a,-u,e.width,e.height)),e.isStroked&&(p(i,e),i.beginPath(),i.rect(-a,-u,e.width,e.height),i.stroke()),i.restore()}};c.exports=r},87959:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(39429),p=t(74561);d.register("rectangle",function(a,r,n,e,s,l){return this.displayList.add(new p(this.scene,a,r,n,e,s,l))})},95597:(c,T,t)=>{/** + */var d=t(39429),p=t(74561);d.register("rectangle",function(l,r,n,e,s,o){return this.displayList.add(new p(this.scene,l,r,n,e,s,o))})},95597:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(52059),a=t(48682),c.exports={renderWebGL:p,renderCanvas:a}},52059:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(52059),l=t(48682),c.exports={renderWebGL:p,renderCanvas:l}},52059:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91296),p=t(34682),a=t(70554),r=function(n,e,s,l){s.addToRenderList(e);var i=n.pipelines.set(e.pipeline),o=d(e,s,l);i.calcMatrix.copyFrom(o.calc);var u=e._displayOriginX,h=e._displayOriginY,f=s.alpha*e.alpha;if(n.pipelines.preBatch(e),e.isFilled){var v=i.fillTint,m=a.getTintAppendFloatAlpha(e.fillColor,e.fillAlpha*f);v.TL=m,v.TR=m,v.BL=m,v.BR=m,i.batchFillRect(-u,-h,e.width,e.height)}e.isStroked&&p(i,e,f,u,h),n.pipelines.postBatch(e)};c.exports=r},55911:(c,T,t)=>{/** + */var d=t(91296),p=t(34682),l=t(70554),r=function(n,e,s,o){s.addToRenderList(e);var i=n.pipelines.set(e.pipeline),a=d(e,s,o);i.calcMatrix.copyFrom(a.calc);var u=e._displayOriginX,h=e._displayOriginY,f=s.alpha*e.alpha;if(n.pipelines.preBatch(e),e.isFilled){var v=i.fillTint,m=l.getTintAppendFloatAlpha(e.fillColor,e.fillAlpha*f);v.TL=m,v.TR=m,v.BL=m,v.BR=m,i.batchFillRect(-u,-h,e.width,e.height)}e.isStroked&&p(i,e,f,u,h),n.pipelines.postBatch(e)};c.exports=r},55911:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(81991),p=t(83419),a=t(94811),r=t(17803),n=new p({Extends:r,Mixins:[d],initialize:function(s,l,i,o,u,h,f,v){l===void 0&&(l=0),i===void 0&&(i=0),o===void 0&&(o=5),u===void 0&&(u=32),h===void 0&&(h=64),r.call(this,s,"Star",null),this._points=o,this._innerRadius=u,this._outerRadius=h,this.setPosition(l,i),this.setSize(h*2,h*2),f!==void 0&&this.setFillStyle(f,v),this.updateDisplayOrigin(),this.updateData()},setPoints:function(e){return this._points=e,this.updateData()},setInnerRadius:function(e){return this._innerRadius=e,this.updateData()},setOuterRadius:function(e){return this._outerRadius=e,this.updateData()},points:{get:function(){return this._points},set:function(e){this._points=e,this.updateData()}},innerRadius:{get:function(){return this._innerRadius},set:function(e){this._innerRadius=e,this.updateData()}},outerRadius:{get:function(){return this._outerRadius},set:function(e){this._outerRadius=e,this.updateData()}},updateData:function(){var e=[],s=this._points,l=this._innerRadius,i=this._outerRadius,o=Math.PI/2*3,u=Math.PI/s,h=i,f=i;e.push(h,f+-i);for(var v=0;v{/** + */var d=t(81991),p=t(83419),l=t(94811),r=t(17803),n=new p({Extends:r,Mixins:[d],initialize:function(s,o,i,a,u,h,f,v){o===void 0&&(o=0),i===void 0&&(i=0),a===void 0&&(a=5),u===void 0&&(u=32),h===void 0&&(h=64),r.call(this,s,"Star",null),this._points=a,this._innerRadius=u,this._outerRadius=h,this.setPosition(o,i),this.setSize(h*2,h*2),f!==void 0&&this.setFillStyle(f,v),this.updateDisplayOrigin(),this.updateData()},setPoints:function(e){return this._points=e,this.updateData()},setInnerRadius:function(e){return this._innerRadius=e,this.updateData()},setOuterRadius:function(e){return this._outerRadius=e,this.updateData()},points:{get:function(){return this._points},set:function(e){this._points=e,this.updateData()}},innerRadius:{get:function(){return this._innerRadius},set:function(e){this._innerRadius=e,this.updateData()}},outerRadius:{get:function(){return this._outerRadius},set:function(e){this._outerRadius=e,this.updateData()}},updateData:function(){var e=[],s=this._points,o=this._innerRadius,i=this._outerRadius,a=Math.PI/2*3,u=Math.PI/s,h=i,f=i;e.push(h,f+-i);for(var v=0;v{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(65960),p=t(75177),a=t(20926),r=function(n,e,s,l){s.addToRenderList(e);var i=n.currentContext;if(a(n,i,e,s,l)){var o=e._displayOriginX,u=e._displayOriginY,h=e.pathData,f=h.length-1,v=h[0]-o,m=h[1]-u;i.beginPath(),i.moveTo(v,m),e.closePath||(f-=2);for(var x=2;x{/** + */var d=t(65960),p=t(75177),l=t(20926),r=function(n,e,s,o){s.addToRenderList(e);var i=n.currentContext;if(l(n,i,e,s,o)){var a=e._displayOriginX,u=e._displayOriginY,h=e.pathData,f=h.length-1,v=h[0]-a,m=h[1]-u;i.beginPath(),i.moveTo(v,m),e.closePath||(f-=2);for(var g=2;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(55911),p=t(39429);p.register("star",function(a,r,n,e,s,l,i){return this.displayList.add(new d(this.scene,a,r,n,e,s,l,i))})},81991:(c,T,t)=>{/** + */var d=t(55911),p=t(39429);p.register("star",function(l,r,n,e,s,o,i){return this.displayList.add(new d(this.scene,l,r,n,e,s,o,i))})},81991:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(57017),a=t(64272),c.exports={renderWebGL:p,renderCanvas:a}},57017:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(57017),l=t(64272),c.exports={renderWebGL:p,renderCanvas:l}},57017:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(10441),p=t(91296),a=t(34682),r=function(n,e,s,l){s.addToRenderList(e);var i=n.pipelines.set(e.pipeline),o=p(e,s,l),u=i.calcMatrix.copyFrom(o.calc),h=e._displayOriginX,f=e._displayOriginY,v=s.alpha*e.alpha;n.pipelines.preBatch(e),e.isFilled&&d(i,u,e,v,h,f),e.isStroked&&a(i,e,v,h,f),n.pipelines.postBatch(e)};c.exports=r},36931:(c,T,t)=>{/** + */var d=t(10441),p=t(91296),l=t(34682),r=function(n,e,s,o){s.addToRenderList(e);var i=n.pipelines.set(e.pipeline),a=p(e,s,o),u=i.calcMatrix.copyFrom(a.calc),h=e._displayOriginX,f=e._displayOriginY,v=s.alpha*e.alpha;n.pipelines.preBatch(e),e.isFilled&&d(i,u,e,v,h,f),e.isStroked&&l(i,e,v,h,f),n.pipelines.postBatch(e)};c.exports=r},36931:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(17803),a=t(16483),r=t(96195),n=new d({Extends:p,Mixins:[r],initialize:function(s,l,i,o,u,h,f,v,m,x,g){l===void 0&&(l=0),i===void 0&&(i=0),o===void 0&&(o=0),u===void 0&&(u=128),h===void 0&&(h=64),f===void 0&&(f=0),v===void 0&&(v=128),m===void 0&&(m=128),p.call(this,s,"Triangle",new a(o,u,h,f,v,m));var y=this.geom.right-this.geom.left,S=this.geom.bottom-this.geom.top;this.setPosition(l,i),this.setSize(y,S),x!==void 0&&this.setFillStyle(x,g),this.updateDisplayOrigin(),this.updateData()},setTo:function(e,s,l,i,o,u){return this.geom.setTo(e,s,l,i,o,u),this.updateData()},updateData:function(){var e=[],s=this.geom,l=this._tempLine;return s.getLineA(l),e.push(l.x1,l.y1,l.x2,l.y2),s.getLineB(l),e.push(l.x2,l.y2),s.getLineC(l),e.push(l.x2,l.y2),this.pathData=e,this}});c.exports=n},85172:(c,T,t)=>{/** + */var d=t(83419),p=t(17803),l=t(16483),r=t(96195),n=new d({Extends:p,Mixins:[r],initialize:function(s,o,i,a,u,h,f,v,m,g,x){o===void 0&&(o=0),i===void 0&&(i=0),a===void 0&&(a=0),u===void 0&&(u=128),h===void 0&&(h=64),f===void 0&&(f=0),v===void 0&&(v=128),m===void 0&&(m=128),p.call(this,s,"Triangle",new l(a,u,h,f,v,m));var y=this.geom.right-this.geom.left,S=this.geom.bottom-this.geom.top;this.setPosition(o,i),this.setSize(y,S),g!==void 0&&this.setFillStyle(g,x),this.updateDisplayOrigin(),this.updateData()},setTo:function(e,s,o,i,a,u){return this.geom.setTo(e,s,o,i,a,u),this.updateData()},updateData:function(){var e=[],s=this.geom,o=this._tempLine;return s.getLineA(o),e.push(o.x1,o.y1,o.x2,o.y2),s.getLineB(o),e.push(o.x2,o.y2),s.getLineC(o),e.push(o.x2,o.y2),this.pathData=e,this}});c.exports=n},85172:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(65960),p=t(75177),a=t(20926),r=function(n,e,s,l){s.addToRenderList(e);var i=n.currentContext;if(a(n,i,e,s,l)){var o=e._displayOriginX,u=e._displayOriginY,h=e.geom.x1-o,f=e.geom.y1-u,v=e.geom.x2-o,m=e.geom.y2-u,x=e.geom.x3-o,g=e.geom.y3-u;i.beginPath(),i.moveTo(h,f),i.lineTo(v,m),i.lineTo(x,g),i.closePath(),e.isFilled&&(d(i,e),i.fill()),e.isStroked&&(p(i,e),i.stroke()),i.restore()}};c.exports=r},45245:(c,T,t)=>{/** + */var d=t(65960),p=t(75177),l=t(20926),r=function(n,e,s,o){s.addToRenderList(e);var i=n.currentContext;if(l(n,i,e,s,o)){var a=e._displayOriginX,u=e._displayOriginY,h=e.geom.x1-a,f=e.geom.y1-u,v=e.geom.x2-a,m=e.geom.y2-u,g=e.geom.x3-a,x=e.geom.y3-u;i.beginPath(),i.moveTo(h,f),i.lineTo(v,m),i.lineTo(g,x),i.closePath(),e.isFilled&&(d(i,e),i.fill()),e.isStroked&&(p(i,e),i.stroke()),i.restore()}};c.exports=r},45245:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(39429),p=t(36931);d.register("triangle",function(a,r,n,e,s,l,i,o,u,h){return this.displayList.add(new p(this.scene,a,r,n,e,s,l,i,o,u,h))})},96195:(c,T,t)=>{/** + */var d=t(39429),p=t(36931);d.register("triangle",function(l,r,n,e,s,o,i,a,u,h){return this.displayList.add(new p(this.scene,l,r,n,e,s,o,i,a,u,h))})},96195:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(83253),a=t(85172),c.exports={renderWebGL:p,renderCanvas:a}},83253:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(83253),l=t(85172),c.exports={renderWebGL:p,renderCanvas:l}},83253:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91296),p=t(34682),a=t(70554),r=function(n,e,s,l){s.addToRenderList(e);var i=n.pipelines.set(e.pipeline),o=d(e,s,l);i.calcMatrix.copyFrom(o.calc);var u=e._displayOriginX,h=e._displayOriginY,f=s.alpha*e.alpha;if(n.pipelines.preBatch(e),e.isFilled){var v=i.fillTint,m=a.getTintAppendFloatAlpha(e.fillColor,e.fillAlpha*f);v.TL=m,v.TR=m,v.BL=m,v.BR=m;var x=e.geom.x1-u,g=e.geom.y1-h,y=e.geom.x2-u,S=e.geom.y2-h,C=e.geom.x3-u,E=e.geom.y3-h;i.batchFillTriangle(x,g,y,S,C,E,o.sprite,o.camera)}e.isStroked&&p(i,e,f,u,h),n.pipelines.postBatch(e)};c.exports=r},68287:(c,T,t)=>{/** + */var d=t(91296),p=t(34682),l=t(70554),r=function(n,e,s,o){s.addToRenderList(e);var i=n.pipelines.set(e.pipeline),a=d(e,s,o);i.calcMatrix.copyFrom(a.calc);var u=e._displayOriginX,h=e._displayOriginY,f=s.alpha*e.alpha;if(n.pipelines.preBatch(e),e.isFilled){var v=i.fillTint,m=l.getTintAppendFloatAlpha(e.fillColor,e.fillAlpha*f);v.TL=m,v.TR=m,v.BL=m,v.BR=m;var g=e.geom.x1-u,x=e.geom.y1-h,y=e.geom.x2-u,S=e.geom.y2-h,C=e.geom.x3-u,E=e.geom.y3-h;i.batchFillTriangle(g,x,y,S,C,E,a.sprite,a.camera)}e.isStroked&&p(i,e,f,u,h),n.pipelines.postBatch(e)};c.exports=r},68287:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(9674),p=t(83419),a=t(31401),r=t(95643),n=t(92751),e=new p({Extends:r,Mixins:[a.Alpha,a.BlendMode,a.Depth,a.Flip,a.GetBounds,a.Mask,a.Origin,a.Pipeline,a.PostPipeline,a.ScrollFactor,a.Size,a.TextureCrop,a.Tint,a.Transform,a.Visible,n],initialize:function(l,i,o,u,h){r.call(this,l,"Sprite"),this._crop=this.resetCropObject(),this.anims=new d(this),this.setTexture(u,h),this.setPosition(i,o),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(s,l){this.anims.update(s,l)},play:function(s,l){return this.anims.play(s,l)},playReverse:function(s,l){return this.anims.playReverse(s,l)},playAfterDelay:function(s,l){return this.anims.playAfterDelay(s,l)},playAfterRepeat:function(s,l){return this.anims.playAfterRepeat(s,l)},chain:function(s){return this.anims.chain(s)},stop:function(){return this.anims.stop()},stopAfterDelay:function(s){return this.anims.stopAfterDelay(s)},stopAfterRepeat:function(s){return this.anims.stopAfterRepeat(s)},stopOnFrame:function(s){return this.anims.stopOnFrame(s)},toJSON:function(){return a.ToJSON(this)},preDestroy:function(){this.anims.destroy(),this.anims=void 0}});c.exports=e},76552:c=>{/** + */var d=t(9674),p=t(83419),l=t(31401),r=t(95643),n=t(92751),e=new p({Extends:r,Mixins:[l.Alpha,l.BlendMode,l.Depth,l.Flip,l.GetBounds,l.Mask,l.Origin,l.Pipeline,l.PostPipeline,l.ScrollFactor,l.Size,l.TextureCrop,l.Tint,l.Transform,l.Visible,n],initialize:function(o,i,a,u,h){r.call(this,o,"Sprite"),this._crop=this.resetCropObject(),this.anims=new d(this),this.setTexture(u,h),this.setPosition(i,a),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(s,o){this.anims.update(s,o)},play:function(s,o){return this.anims.play(s,o)},playReverse:function(s,o){return this.anims.playReverse(s,o)},playAfterDelay:function(s,o){return this.anims.playAfterDelay(s,o)},playAfterRepeat:function(s,o){return this.anims.playAfterRepeat(s,o)},chain:function(s){return this.anims.chain(s)},stop:function(){return this.anims.stop()},stopAfterDelay:function(s){return this.anims.stopAfterDelay(s)},stopAfterRepeat:function(s){return this.anims.stopAfterRepeat(s)},stopOnFrame:function(s){return this.anims.stopOnFrame(s)},toJSON:function(){return l.ToJSON(this)},preDestroy:function(){this.anims.destroy(),this.anims=void 0}});c.exports=e},76552:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){p.addToRenderList(d),t.batchSprite(d,d.frame,p,a)};c.exports=T},15567:(c,T,t)=>{/** + */var T=function(t,d,p,l){p.addToRenderList(d),t.batchSprite(d,d.frame,p,l)};c.exports=T},15567:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(25305),p=t(13059),a=t(44603),r=t(23568),n=t(68287);a.register("sprite",function(e,s){e===void 0&&(e={});var l=r(e,"key",null),i=r(e,"frame",null),o=new n(this.scene,0,0,l,i);return s!==void 0&&(e.add=s),d(this.scene,o,e),p(o,e),o})},46409:(c,T,t)=>{/** + */var d=t(25305),p=t(13059),l=t(44603),r=t(23568),n=t(68287);l.register("sprite",function(e,s){e===void 0&&(e={});var o=r(e,"key",null),i=r(e,"frame",null),a=new n(this.scene,0,0,o,i);return s!==void 0&&(e.add=s),d(this.scene,a,e),p(a,e),a})},46409:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(39429),p=t(68287);d.register("sprite",function(a,r,n,e){return this.displayList.add(new p(this.scene,a,r,n,e))})},92751:(c,T,t)=>{/** + */var d=t(39429),p=t(68287);d.register("sprite",function(l,r,n,e){return this.displayList.add(new p(this.scene,l,r,n,e))})},92751:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(9409),a=t(76552),c.exports={renderWebGL:p,renderCanvas:a}},9409:c=>{/** + */var d=t(29747),p=d,l=d;p=t(9409),l=t(76552),c.exports={renderWebGL:p,renderCanvas:l}},9409:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){p.addToRenderList(d),d.pipeline.batchSprite(d,p,a)};c.exports=T},14220:c=>{/** + */var T=function(t,d,p,l){p.addToRenderList(d),d.pipeline.batchSprite(d,p,l)};c.exports=T},14220:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){var a=t.canvas,r=t.context,n=t.style,e=[],s=0,l=p.length;n.maxLines>0&&n.maxLines1&&(o+=t.letterSpacing*(p[i].length-1)),n.wordWrap&&(o-=r.measureText(" ").width),e[i]=Math.ceil(o),s=Math.max(s,e[i])}var u=d.fontSize+n.strokeThickness,h=u*l,f=t.lineSpacing;return l>1&&(h+=f*(l-1)),{width:s,height:h,lines:l,lineWidths:e,lineSpacing:f,lineHeight:u}};c.exports=T},79557:(c,T,t)=>{/** + */var T=function(t,d,p){var l=t.canvas,r=t.context,n=t.style,e=[],s=0,o=p.length;n.maxLines>0&&n.maxLines1&&(a+=t.letterSpacing*(p[i].length-1)),n.wordWrap&&(a-=r.measureText(" ").width),e[i]=Math.ceil(a),s=Math.max(s,e[i])}var u=d.fontSize+n.strokeThickness,h=u*o,f=t.lineSpacing;return o>1&&(h+=f*(o-1)),{width:s,height:h,lines:o,lineWidths:e,lineSpacing:f,lineHeight:u}};c.exports=T},79557:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(27919),p=function(a){var r=d.create(this),n=r.getContext("2d",{willReadFrequently:!0});a.syncFont(r,n);var e=n.measureText(a.testString);if("actualBoundingBoxAscent"in e){var s=e.actualBoundingBoxAscent,l=e.actualBoundingBoxDescent;return d.remove(r),{ascent:s,descent:l,fontSize:s+l}}var i=Math.ceil(e.width*a.baselineX),o=i,u=2*o;o=o*a.baselineY|0,r.width=i,r.height=u,n.fillStyle="#f00",n.fillRect(0,0,i,u),n.font=a._font,n.textBaseline="alphabetic",n.fillStyle="#000",n.fillText(a.testString,0,o);var h={ascent:0,descent:0,fontSize:0},f=n.getImageData(0,0,i,u);if(!f)return h.ascent=o,h.descent=o+6,h.fontSize=h.ascent+h.descent,d.remove(r),h;var v=f.data,m=v.length,x=i*4,g,y,S=0,C=!1;for(g=0;go;g--){for(y=0;y{/** + */var d=t(27919),p=function(l){var r=d.create(this),n=r.getContext("2d",{willReadFrequently:!0});l.syncFont(r,n);var e=n.measureText(l.testString);if("actualBoundingBoxAscent"in e){var s=e.actualBoundingBoxAscent,o=e.actualBoundingBoxDescent;return d.remove(r),{ascent:s,descent:o,fontSize:s+o}}var i=Math.ceil(e.width*l.baselineX),a=i,u=2*a;a=a*l.baselineY|0,r.width=i,r.height=u,n.fillStyle="#f00",n.fillRect(0,0,i,u),n.font=l._font,n.textBaseline="alphabetic",n.fillStyle="#000",n.fillText(l.testString,0,a);var h={ascent:0,descent:0,fontSize:0},f=n.getImageData(0,0,i,u);if(!f)return h.ascent=a,h.descent=a+6,h.fontSize=h.ascent+h.descent,d.remove(r),h;var v=f.data,m=v.length,g=i*4,x,y,S=0,C=!1;for(x=0;xa;x--){for(y=0;y{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(40366),p=t(27919),a=t(83419),r=t(31401),n=t(95643),e=t(14220),s=t(35154),l=t(35846),i=t(61771),o=t(35762),u=t(45650),h=new a({Extends:n,Mixins:[r.Alpha,r.BlendMode,r.ComputedSize,r.Crop,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Tint,r.Transform,r.Visible,i],initialize:function(v,m,x,g,y){m===void 0&&(m=0),x===void 0&&(x=0),n.call(this,v,"Text"),this.renderer=v.sys.renderer,this.setPosition(m,x),this.setOrigin(0,0),this.initPipeline(),this.initPostPipeline(!0),this.canvas=p.create(this),this.context,this.style=new o(this,y),this.autoRound=!0,this.splitRegExp=/(?:\r\n|\r|\n)/,this._text=void 0,this.padding={left:0,right:0,top:0,bottom:0},this.width=1,this.height=1,this.lineSpacing=0,this.letterSpacing=0,this.style.resolution===0&&(this.style.resolution=1),this._crop=this.resetCropObject(),this._textureKey=u(),this.texture=v.sys.textures.addCanvas(this._textureKey,this.canvas),this.context=this.texture.context,this.frame=this.texture.get(),this.frame.source.resolution=this.style.resolution,this.renderer&&this.renderer.gl&&(this.renderer.deleteTexture(this.frame.source.glTexture),this.frame.source.glTexture=null),this.initRTL(),this.setText(g),y&&y.padding&&this.setPadding(y.padding),y&&y.lineSpacing&&this.setLineSpacing(y.lineSpacing)},initRTL:function(){this.style.rtl&&(this.canvas.dir="rtl",this.context.direction="rtl",this.canvas.style.display="none",d(this.canvas,this.scene.sys.canvas),this.originX=1)},runWordWrap:function(f){var v=this.style;if(v.wordWrapCallback){var m=v.wordWrapCallback.call(v.wordWrapCallbackScope,f,this);return Array.isArray(m)&&(m=m.join(` -`)),m}else return v.wordWrapWidth?v.wordWrapUseAdvanced?this.advancedWordWrap(f,this.context,this.style.wordWrapWidth):this.basicWordWrap(f,this.context,this.style.wordWrapWidth):f},advancedWordWrap:function(f,v,m){for(var x="",g=f.replace(/ +/gi," ").split(this.splitRegExp),y=g.length,S=0;SP){if(F===0){for(var N=b;N.length&&(N=N.slice(0,-1),B=v.measureText(N).width,!(B<=P)););if(!N.length)throw new Error("wordWrapWidth < a single character");var X=L.substr(N.length);M[F]=X,E+=N}var D=M[F].length?F:F+1,I=M.slice(D).join(" ").replace(/[ \n]*$/gi,"");g.splice(S+1,0,I),y=g.length;break}else E+=b,P-=B}x+=E.replace(/[ \n]*$/gi,"")+` -`}return x=x.replace(/[\s|\n]*$/gi,""),x},basicWordWrap:function(f,v,m){for(var x="",g=f.split(this.splitRegExp),y=g.length-1,S=v.measureText(" ").width,C=0;C<=y;C++){for(var E=m,A=g[C].split(" "),P=A.length-1,M=0;M<=P;M++){var F=A[M],L=v.measureText(F).width,b=L;ME&&M>0&&(x+=` -`,E=m),x+=F,MP){if(R===0){for(var G=D;G.length&&(G=G.slice(0,-1),w=v.measureText(G).width,!(w<=P)););if(!G.length)throw new Error("wordWrapWidth < a single character");var N=F.substr(G.length);A[R]=N,E+=G}var b=A[R].length?R:R+1,B=A.slice(b).join(" ").replace(/[ \n]*$/gi,"");x.splice(S+1,0,B),y=x.length;break}else E+=D,P-=w}g+=E.replace(/[ \n]*$/gi,"")+` +`}return g=g.replace(/[\s|\n]*$/gi,""),g},basicWordWrap:function(f,v,m){for(var g="",x=f.split(this.splitRegExp),y=x.length-1,S=v.measureText(" ").width,C=0;C<=y;C++){for(var E=m,M=x[C].split(" "),P=M.length-1,A=0;A<=P;A++){var R=M[A],F=v.measureText(R).width,D=F;AE&&A>0&&(g+=` +`,E=m),g+=R,A0&&(L+=C.lineSpacing*b),m.rtl)F=P-F-E.left-E.right;else if(m.align==="right")F+=A-C.lineWidths[b];else if(m.align==="center")F+=(A-C.lineWidths[b])/2;else if(m.align==="justify"){var B=.85;if(C.lineWidths[b]/C.width>=B){var N=C.width-C.lineWidths[b],X=v.measureText(" ").width,D=S[b].trim(),I=D.split(" ");N+=(S[b].length-D.length)*X;for(var R=Math.floor(N/X),O=0;R>0;)I[O]+=" ",O=(O+1)%(I.length-1||1),--R;S[b]=I.join(" ")}}if(this.autoRound&&(F=Math.round(F),L=Math.round(L)),m.strokeThickness&&(m.syncShadow(v,m.shadowStroke),v.strokeText(S[b],F,L)),m.color){m.syncShadow(v,m.shadowFill);var w=this.letterSpacing;if(w!==0)for(var G=0,U=S[b].split(""),z=0;z{/** +`+f:f);return m!==this._text&&(this._text=m,this.updateText()),this},setStyle:function(f){return this.style.setStyle(f)},setFont:function(f){return this.style.setFont(f)},setFontFamily:function(f){return this.style.setFontFamily(f)},setFontSize:function(f){return this.style.setFontSize(f)},setFontStyle:function(f){return this.style.setFontStyle(f)},setFixedSize:function(f,v){return this.style.setFixedSize(f,v)},setBackgroundColor:function(f){return this.style.setBackgroundColor(f)},setFill:function(f){return this.style.setFill(f)},setColor:function(f){return this.style.setColor(f)},setStroke:function(f,v){return this.style.setStroke(f,v)},setShadow:function(f,v,m,g,x,y){return this.style.setShadow(f,v,m,g,x,y)},setShadowOffset:function(f,v){return this.style.setShadowOffset(f,v)},setShadowColor:function(f){return this.style.setShadowColor(f)},setShadowBlur:function(f){return this.style.setShadowBlur(f)},setShadowStroke:function(f){return this.style.setShadowStroke(f)},setShadowFill:function(f){return this.style.setShadowFill(f)},setWordWrapWidth:function(f,v){return this.style.setWordWrapWidth(f,v)},setWordWrapCallback:function(f,v){return this.style.setWordWrapCallback(f,v)},setAlign:function(f){return this.style.setAlign(f)},setResolution:function(f){return this.style.setResolution(f)},setLineSpacing:function(f){return this.lineSpacing=f,this.updateText()},setLetterSpacing:function(f){return this.letterSpacing=f,this.updateText()},setPadding:function(f,v,m,g){if(typeof f=="object"){var x=f,y=s(x,"x",null);y!==null?(f=y,m=y):(f=s(x,"left",0),m=s(x,"right",f));var S=s(x,"y",null);S!==null?(v=S,g=S):(v=s(x,"top",0),g=s(x,"bottom",v))}else f===void 0&&(f=0),v===void 0&&(v=f),m===void 0&&(m=f),g===void 0&&(g=v);return this.padding.left=f,this.padding.top=v,this.padding.right=m,this.padding.bottom=g,this.updateText()},setMaxLines:function(f){return this.style.setMaxLines(f)},setRTL:function(f){f===void 0&&(f=!0);var v=this.style;return v.rtl===f?this:(v.rtl=f,f?(this.canvas.dir="rtl",this.context.direction="rtl",this.canvas.style.display="none",d(this.canvas,this.scene.sys.canvas)):(this.canvas.dir="ltr",this.context.direction="ltr"),v.align==="left"?v.align="right":v.align==="right"&&(v.align="left"),this)},updateText:function(){var f=this.canvas,v=this.context,m=this.style,g=m.resolution,x=m.metrics;m.syncFont(f,v);var y=this._text;(m.wordWrapWidth||m.wordWrapCallback)&&(y=this.runWordWrap(this._text));var S=y.split(this.splitRegExp),C=e(this,x,S),E=this.padding,M;m.fixedWidth===0?(this.width=C.width+E.left+E.right,M=C.width):(this.width=m.fixedWidth,M=this.width-E.left-E.right,M0&&(F+=C.lineSpacing*D),m.rtl)R=P-R-E.left-E.right;else if(m.align==="right")R+=M-C.lineWidths[D];else if(m.align==="center")R+=(M-C.lineWidths[D])/2;else if(m.align==="justify"){var w=.85;if(C.lineWidths[D]/C.width>=w){var G=C.width-C.lineWidths[D],N=v.measureText(" ").width,b=S[D].trim(),B=b.split(" ");G+=(S[D].length-b.length)*N;for(var O=Math.floor(G/N),L=0;O>0;)B[L]+=" ",L=(L+1)%(B.length-1||1),--O;S[D]=B.join(" ")}}this.autoRound&&(R=Math.round(R),F=Math.round(F));var I=this.letterSpacing;if(m.strokeThickness&&I===0&&(m.syncShadow(v,m.shadowStroke),v.strokeText(S[D],R,F)),m.color)if(m.syncShadow(v,m.shadowFill),I!==0)for(var U=0,X=S[D].split(""),z=0;z{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){d.width===0||d.height===0||(p.addToRenderList(d),t.batchSprite(d,d.frame,p,a))};c.exports=T},71259:(c,T,t)=>{/** + */var T=function(t,d,p,l){d.width===0||d.height===0||(p.addToRenderList(d),t.batchSprite(d,d.frame,p,l))};c.exports=T},71259:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(25305),p=t(44603),a=t(23568),r=t(50171);p.register("text",function(n,e){n===void 0&&(n={});var s=a(n,"text",""),l=a(n,"style",null),i=a(n,"padding",null);i!==null&&(l.padding=i);var o=new r(this.scene,0,0,s,l);return e!==void 0&&(n.add=e),d(this.scene,o,n),o.autoRound=a(n,"autoRound",!0),o.resolution=a(n,"resolution",1),o})},68005:(c,T,t)=>{/** + */var d=t(25305),p=t(44603),l=t(23568),r=t(50171);p.register("text",function(n,e){n===void 0&&(n={});var s=l(n,"text",""),o=l(n,"style",null),i=l(n,"padding",null);i!==null&&(o.padding=i);var a=new r(this.scene,0,0,s,o);return e!==void 0&&(n.add=e),d(this.scene,a,n),a.autoRound=l(n,"autoRound",!0),a.resolution=l(n,"resolution",1),a})},68005:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(50171),p=t(39429);p.register("text",function(a,r,n,e){return this.displayList.add(new d(this.scene,a,r,n,e))})},61771:(c,T,t)=>{/** + */var d=t(50171),p=t(39429);p.register("text",function(l,r,n,e){return this.displayList.add(new d(this.scene,l,r,n,e))})},61771:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(34397),a=t(79724),c.exports={renderWebGL:p,renderCanvas:a}},35762:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(34397),l=t(79724),c.exports={renderWebGL:p,renderCanvas:l}},35762:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(23568),a=t(35154),r=t(79557),n={fontFamily:["fontFamily","Courier"],fontSize:["fontSize","16px"],fontStyle:["fontStyle",""],backgroundColor:["backgroundColor",null],color:["color","#fff"],stroke:["stroke","#fff"],strokeThickness:["strokeThickness",0],shadowOffsetX:["shadow.offsetX",0],shadowOffsetY:["shadow.offsetY",0],shadowColor:["shadow.color","#000"],shadowBlur:["shadow.blur",0],shadowStroke:["shadow.stroke",!1],shadowFill:["shadow.fill",!1],align:["align","left"],maxLines:["maxLines",0],fixedWidth:["fixedWidth",0],fixedHeight:["fixedHeight",0],resolution:["resolution",0],rtl:["rtl",!1],testString:["testString","|MÉqgy"],baselineX:["baselineX",1.2],baselineY:["baselineY",1.4],wordWrapWidth:["wordWrap.width",null],wordWrapCallback:["wordWrap.callback",null],wordWrapCallbackScope:["wordWrap.callbackScope",null],wordWrapUseAdvanced:["wordWrap.useAdvancedWrap",!1]},e=new d({initialize:function(l,i){this.parent=l,this.fontFamily,this.fontSize,this.fontStyle,this.backgroundColor,this.color,this.stroke,this.strokeThickness,this.shadowOffsetX,this.shadowOffsetY,this.shadowColor,this.shadowBlur,this.shadowStroke,this.shadowFill,this.align,this.maxLines,this.fixedWidth,this.fixedHeight,this.resolution,this.rtl,this.testString,this.baselineX,this.baselineY,this.wordWrapWidth,this.wordWrapCallback,this.wordWrapCallbackScope,this.wordWrapUseAdvanced,this._font,this.setStyle(i,!1,!0)},setStyle:function(s,l,i){l===void 0&&(l=!0),i===void 0&&(i=!1),s&&s.hasOwnProperty("fontSize")&&typeof s.fontSize=="number"&&(s.fontSize=s.fontSize.toString()+"px");for(var o in n){var u=i?n[o][1]:this[o];o==="wordWrapCallback"||o==="wordWrapCallbackScope"?this[o]=a(s,n[o][0],u):this[o]=p(s,n[o][0],u)}var h=a(s,"font",null);h!==null&&this.setFont(h,!1),this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim();var f=a(s,"fill",null);f!==null&&(this.color=f);var v=a(s,"metrics",!1);return v?this.metrics={ascent:a(v,"ascent",0),descent:a(v,"descent",0),fontSize:a(v,"fontSize",0)}:(l||!this.metrics)&&(this.metrics=r(this)),l?this.parent.updateText():this.parent},syncFont:function(s,l){l.font=this._font},syncStyle:function(s,l){l.textBaseline="alphabetic",l.fillStyle=this.color,l.strokeStyle=this.stroke,l.lineWidth=this.strokeThickness,l.lineCap="round",l.lineJoin="round"},syncShadow:function(s,l){l?(s.shadowOffsetX=this.shadowOffsetX,s.shadowOffsetY=this.shadowOffsetY,s.shadowColor=this.shadowColor,s.shadowBlur=this.shadowBlur):(s.shadowOffsetX=0,s.shadowOffsetY=0,s.shadowColor=0,s.shadowBlur=0)},update:function(s){return s&&(this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim(),this.metrics=r(this)),this.parent.updateText()},setFont:function(s,l){l===void 0&&(l=!0);var i=s,o="",u="";if(typeof s!="string")i=a(s,"fontFamily","Courier"),o=a(s,"fontSize","16px"),u=a(s,"fontStyle","");else{var h=s.split(" "),f=0;u=h.length>2?h[f++]:"",o=h[f++]||"16px",i=h[f++]||"Courier"}return(i!==this.fontFamily||o!==this.fontSize||u!==this.fontStyle)&&(this.fontFamily=i,this.fontSize=o,this.fontStyle=u,l&&this.update(!0)),this.parent},setFontFamily:function(s){return this.fontFamily!==s&&(this.fontFamily=s,this.update(!0)),this.parent},setFontStyle:function(s){return this.fontStyle!==s&&(this.fontStyle=s,this.update(!0)),this.parent},setFontSize:function(s){return typeof s=="number"&&(s=s.toString()+"px"),this.fontSize!==s&&(this.fontSize=s,this.update(!0)),this.parent},setTestString:function(s){return this.testString=s,this.update(!0)},setFixedSize:function(s,l){return this.fixedWidth=s,this.fixedHeight=l,s&&(this.parent.width=s),l&&(this.parent.height=l),this.update(!1)},setBackgroundColor:function(s){return this.backgroundColor=s,this.update(!1)},setFill:function(s){return this.color=s,this.update(!1)},setColor:function(s){return this.color=s,this.update(!1)},setResolution:function(s){return this.resolution=s,this.update(!1)},setStroke:function(s,l){return l===void 0&&(l=this.strokeThickness),s===void 0&&this.strokeThickness!==0?(this.strokeThickness=0,this.update(!0)):(this.stroke!==s||this.strokeThickness!==l)&&(this.stroke=s,this.strokeThickness=l,this.update(!0)),this.parent},setShadow:function(s,l,i,o,u,h){return s===void 0&&(s=0),l===void 0&&(l=0),i===void 0&&(i="#000"),o===void 0&&(o=0),u===void 0&&(u=!1),h===void 0&&(h=!0),this.shadowOffsetX=s,this.shadowOffsetY=l,this.shadowColor=i,this.shadowBlur=o,this.shadowStroke=u,this.shadowFill=h,this.update(!1)},setShadowOffset:function(s,l){return s===void 0&&(s=0),l===void 0&&(l=s),this.shadowOffsetX=s,this.shadowOffsetY=l,this.update(!1)},setShadowColor:function(s){return s===void 0&&(s="#000"),this.shadowColor=s,this.update(!1)},setShadowBlur:function(s){return s===void 0&&(s=0),this.shadowBlur=s,this.update(!1)},setShadowStroke:function(s){return this.shadowStroke=s,this.update(!1)},setShadowFill:function(s){return this.shadowFill=s,this.update(!1)},setWordWrapWidth:function(s,l){return l===void 0&&(l=!1),this.wordWrapWidth=s,this.wordWrapUseAdvanced=l,this.update(!1)},setWordWrapCallback:function(s,l){return l===void 0&&(l=null),this.wordWrapCallback=s,this.wordWrapCallbackScope=l,this.update(!1)},setAlign:function(s){return s===void 0&&(s="left"),this.align=s,this.update(!1)},setMaxLines:function(s){return s===void 0&&(s=0),this.maxLines=s,this.update(!1)},getTextMetrics:function(){var s=this.metrics;return{ascent:s.ascent,descent:s.descent,fontSize:s.fontSize}},toJSON:function(){var s={};for(var l in n)s[l]=this[l];return s.metrics=this.getTextMetrics(),s},destroy:function(){this.parent=void 0}});c.exports=e},34397:(c,T,t)=>{/** + */var d=t(83419),p=t(23568),l=t(35154),r=t(79557),n={fontFamily:["fontFamily","Courier"],fontSize:["fontSize","16px"],fontStyle:["fontStyle",""],backgroundColor:["backgroundColor",null],color:["color","#fff"],stroke:["stroke","#fff"],strokeThickness:["strokeThickness",0],shadowOffsetX:["shadow.offsetX",0],shadowOffsetY:["shadow.offsetY",0],shadowColor:["shadow.color","#000"],shadowBlur:["shadow.blur",0],shadowStroke:["shadow.stroke",!1],shadowFill:["shadow.fill",!1],align:["align","left"],maxLines:["maxLines",0],fixedWidth:["fixedWidth",0],fixedHeight:["fixedHeight",0],resolution:["resolution",0],rtl:["rtl",!1],testString:["testString","|MÉqgy"],baselineX:["baselineX",1.2],baselineY:["baselineY",1.4],wordWrapWidth:["wordWrap.width",null],wordWrapCallback:["wordWrap.callback",null],wordWrapCallbackScope:["wordWrap.callbackScope",null],wordWrapUseAdvanced:["wordWrap.useAdvancedWrap",!1]},e=new d({initialize:function(o,i){this.parent=o,this.fontFamily,this.fontSize,this.fontStyle,this.backgroundColor,this.color,this.stroke,this.strokeThickness,this.shadowOffsetX,this.shadowOffsetY,this.shadowColor,this.shadowBlur,this.shadowStroke,this.shadowFill,this.align,this.maxLines,this.fixedWidth,this.fixedHeight,this.resolution,this.rtl,this.testString,this.baselineX,this.baselineY,this.wordWrapWidth,this.wordWrapCallback,this.wordWrapCallbackScope,this.wordWrapUseAdvanced,this._font,this.setStyle(i,!1,!0)},setStyle:function(s,o,i){o===void 0&&(o=!0),i===void 0&&(i=!1);for(var a in n){var u=i?n[a][1]:this[a];a==="wordWrapCallback"||a==="wordWrapCallbackScope"?this[a]=l(s,n[a][0],u):s&&a==="fontSize"&&typeof s.fontSize=="number"?this[a]=s.fontSize.toString()+"px":this[a]=p(s,n[a][0],u)}var h=l(s,"font",null);h!==null&&this.setFont(h,!1),this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim();var f=l(s,"fill",null);f!==null&&(this.color=f);var v=l(s,"metrics",!1);return v?this.metrics={ascent:l(v,"ascent",0),descent:l(v,"descent",0),fontSize:l(v,"fontSize",0)}:(o||!this.metrics)&&(this.metrics=r(this)),o?this.parent.updateText():this.parent},syncFont:function(s,o){o.font=this._font},syncStyle:function(s,o){o.textBaseline="alphabetic",o.fillStyle=this.color,o.strokeStyle=this.stroke,o.lineWidth=this.strokeThickness,o.lineCap="round",o.lineJoin="round"},syncShadow:function(s,o){o?(s.shadowOffsetX=this.shadowOffsetX,s.shadowOffsetY=this.shadowOffsetY,s.shadowColor=this.shadowColor,s.shadowBlur=this.shadowBlur):(s.shadowOffsetX=0,s.shadowOffsetY=0,s.shadowColor=0,s.shadowBlur=0)},update:function(s){return s&&(this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim(),this.metrics=r(this)),this.parent.updateText()},setFont:function(s,o){o===void 0&&(o=!0);var i=s,a="",u="";if(typeof s!="string")i=l(s,"fontFamily","Courier"),a=l(s,"fontSize","16px"),u=l(s,"fontStyle","");else{var h=s.split(" "),f=0;u=h.length>2?h[f++]:"",a=h[f++]||"16px",i=h[f++]||"Courier"}return(i!==this.fontFamily||a!==this.fontSize||u!==this.fontStyle)&&(this.fontFamily=i,this.fontSize=a,this.fontStyle=u,o&&this.update(!0)),this.parent},setFontFamily:function(s){return this.fontFamily!==s&&(this.fontFamily=s,this.update(!0)),this.parent},setFontStyle:function(s){return this.fontStyle!==s&&(this.fontStyle=s,this.update(!0)),this.parent},setFontSize:function(s){return typeof s=="number"&&(s=s.toString()+"px"),this.fontSize!==s&&(this.fontSize=s,this.update(!0)),this.parent},setTestString:function(s){return this.testString=s,this.update(!0)},setFixedSize:function(s,o){return this.fixedWidth=s,this.fixedHeight=o,s&&(this.parent.width=s),o&&(this.parent.height=o),this.update(!1)},setBackgroundColor:function(s){return this.backgroundColor=s,this.update(!1)},setFill:function(s){return this.color=s,this.update(!1)},setColor:function(s){return this.color=s,this.update(!1)},setResolution:function(s){return this.resolution=s,this.update(!1)},setStroke:function(s,o){return o===void 0&&(o=this.strokeThickness),s===void 0&&this.strokeThickness!==0?(this.strokeThickness=0,this.update(!0)):(this.stroke!==s||this.strokeThickness!==o)&&(this.stroke=s,this.strokeThickness=o,this.update(!0)),this.parent},setShadow:function(s,o,i,a,u,h){return s===void 0&&(s=0),o===void 0&&(o=0),i===void 0&&(i="#000"),a===void 0&&(a=0),u===void 0&&(u=!1),h===void 0&&(h=!0),this.shadowOffsetX=s,this.shadowOffsetY=o,this.shadowColor=i,this.shadowBlur=a,this.shadowStroke=u,this.shadowFill=h,this.update(!1)},setShadowOffset:function(s,o){return s===void 0&&(s=0),o===void 0&&(o=s),this.shadowOffsetX=s,this.shadowOffsetY=o,this.update(!1)},setShadowColor:function(s){return s===void 0&&(s="#000"),this.shadowColor=s,this.update(!1)},setShadowBlur:function(s){return s===void 0&&(s=0),this.shadowBlur=s,this.update(!1)},setShadowStroke:function(s){return this.shadowStroke=s,this.update(!1)},setShadowFill:function(s){return this.shadowFill=s,this.update(!1)},setWordWrapWidth:function(s,o){return o===void 0&&(o=!1),this.wordWrapWidth=s,this.wordWrapUseAdvanced=o,this.update(!1)},setWordWrapCallback:function(s,o){return o===void 0&&(o=null),this.wordWrapCallback=s,this.wordWrapCallbackScope=o,this.update(!1)},setAlign:function(s){return s===void 0&&(s="left"),this.align=s,this.update(!1)},setMaxLines:function(s){return s===void 0&&(s=0),this.maxLines=s,this.update(!1)},getTextMetrics:function(){var s=this.metrics;return{ascent:s.ascent,descent:s.descent,fontSize:s.fontSize}},toJSON:function(){var s={};for(var o in n)s[o]=this[o];return s.metrics=this.getTextMetrics(),s},destroy:function(){this.parent=void 0}});c.exports=e},34397:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(70554),p=function(a,r,n,e){if(!(r.width===0||r.height===0)){n.addToRenderList(r);var s=r.frame,l=s.width,i=s.height,o=d.getTintAppendFloatAlpha,u=a.pipelines.set(r.pipeline,r),h=u.setTexture2D(s.glTexture,r);u.batchTexture(r,s.glTexture,l,i,r.x,r.y,l/r.style.resolution,i/r.style.resolution,r.scaleX,r.scaleY,r.rotation,r.flipX,r.flipY,r.scrollFactorX,r.scrollFactorY,r.displayOriginX,r.displayOriginY,0,0,l,i,o(r.tintTopLeft,n.alpha*r._alphaTL),o(r.tintTopRight,n.alpha*r._alphaTR),o(r.tintBottomLeft,n.alpha*r._alphaBL),o(r.tintBottomRight,n.alpha*r._alphaBR),r.tintFill,0,0,n,e,!1,h)}};c.exports=p},20839:(c,T,t)=>{/** + */var d=t(70554),p=function(l,r,n,e){if(!(r.width===0||r.height===0)){n.addToRenderList(r);var s=r.frame,o=s.width,i=s.height,a=d.getTintAppendFloatAlpha,u=l.pipelines.set(r.pipeline,r),h=u.setTexture2D(s.glTexture,r);u.batchTexture(r,s.glTexture,o,i,r.x,r.y,o/r.style.resolution,i/r.style.resolution,r.scaleX,r.scaleY,r.rotation,r.flipX,r.flipY,r.scrollFactorX,r.scrollFactorY,r.displayOriginX,r.displayOriginY,0,0,o,i,a(r.tintTopLeft,n.alpha*r._alphaTL),a(r.tintTopRight,n.alpha*r._alphaTR),a(r.tintBottomLeft,n.alpha*r._alphaBL),a(r.tintBottomRight,n.alpha*r._alphaBR),r.tintFill,0,0,n,e,!1,h)}};c.exports=p},20839:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(27919),p=t(83419),a=t(31401),r=t(95643),n=t(98439),e=t(68703),s=t(56295),l=t(45650),i=t(26099),o=8,u=new p({Extends:r,Mixins:[a.Alpha,a.BlendMode,a.ComputedSize,a.Crop,a.Depth,a.Flip,a.GetBounds,a.Mask,a.Origin,a.Pipeline,a.PostPipeline,a.ScrollFactor,a.Tint,a.Transform,a.Visible,s],initialize:function(f,v,m,x,g,y,S){var C=f.sys.renderer;r.call(this,f,"TileSprite");var E=f.sys.textures.get(y),A=E.get(S);A.source.compressionAlgorithm&&(console.warn("TileSprite cannot use compressed texture"),E=f.sys.textures.get("__MISSING"),A=E.get()),E.type==="DynamicTexture"&&(console.warn("TileSprite cannot use Dynamic Texture"),E=f.sys.textures.get("__MISSING"),A=E.get()),!x||!g?(x=A.width,g=A.height):(x=Math.floor(x),g=Math.floor(g)),this._tilePosition=new i,this._tileScale=new i(1,1),this.dirty=!1,this.renderer=C,this.canvas=d.create(this,x,g),this.context=this.canvas.getContext("2d",{willReadFrequently:!1}),this.displayTexture=E,this.displayFrame=A,this._crop=this.resetCropObject(),this._textureKey=l(),this.texture=f.sys.textures.addCanvas(this._textureKey,this.canvas),this.frame=this.texture.get(),this.potWidth=n(A.width),this.potHeight=n(A.height),this.fillCanvas=d.create2D(this,this.potWidth,this.potHeight),this.fillContext=this.fillCanvas.getContext("2d",{willReadFrequently:!1}),this.fillPattern=null,this.setPosition(v,m),this.setSize(x,g),this.setFrame(S),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)},setTexture:function(h,f){return this.displayTexture=this.scene.sys.textures.get(h),this.setFrame(f)},setFrame:function(h){var f=this.displayTexture.get(h);return this.potWidth=n(f.width),this.potHeight=n(f.height),this.canvas.width=0,!f.cutWidth||!f.cutHeight?this.renderFlags&=~o:this.renderFlags|=o,this.displayFrame=f,this.dirty=!0,this.updateTileTexture(),this},setTilePosition:function(h,f){return h!==void 0&&(this.tilePositionX=h),f!==void 0&&(this.tilePositionY=f),this},setTileScale:function(h,f){return h===void 0&&(h=this.tileScaleX),f===void 0&&(f=h),this.tileScaleX=h,this.tileScaleY=f,this},updateTileTexture:function(){if(!(!this.dirty||!this.renderer)){var h=this.displayFrame;if(h.source.isRenderTexture||h.source.isGLTexture){console.warn("TileSprites can only use Image or Canvas based textures"),this.dirty=!1;return}var f=this.fillContext,v=this.fillCanvas,m=this.potWidth,x=this.potHeight;(!this.renderer||!this.renderer.gl)&&(m=h.cutWidth,x=h.cutHeight),f.clearRect(0,0,m,x),v.width=m,v.height=x,f.drawImage(h.source.image,h.cutX,h.cutY,h.cutWidth,h.cutHeight,0,0,m,x),this.renderer&&this.renderer.gl?this.fillPattern=this.renderer.canvasToTexture(v,this.fillPattern):this.fillPattern=f.createPattern(v,"repeat"),this.updateCanvas(),this.dirty=!1}},updateCanvas:function(){var h=this.canvas;if((h.width!==this.width||h.height!==this.height)&&(h.width=this.width,h.height=this.height,this.frame.setSize(this.width,this.height),this.updateDisplayOrigin(),this.dirty=!0),!this.dirty||this.renderer&&this.renderer.gl){this.dirty=!1;return}var f=this.context;this.scene.sys.game.config.antialias||e.disable(f);var v=this._tileScale.x,m=this._tileScale.y,x=this._tilePosition.x,g=this._tilePosition.y;f.clearRect(0,0,this.width,this.height),f.save(),f.scale(v,m),f.translate(-x,-g),f.fillStyle=this.fillPattern,f.fillRect(x,g,this.width/v,this.height/m),f.restore(),this.dirty=!1},preDestroy:function(){this.renderer&&this.renderer.gl&&this.renderer.deleteTexture(this.fillPattern),d.remove(this.canvas),d.remove(this.fillCanvas),this.fillPattern=null,this.fillContext=null,this.fillCanvas=null,this.displayTexture=null,this.displayFrame=null;var h=this.texture;h&&h.destroy(),this.renderer=null},tilePositionX:{get:function(){return this._tilePosition.x},set:function(h){this._tilePosition.x=h,this.dirty=!0}},tilePositionY:{get:function(){return this._tilePosition.y},set:function(h){this._tilePosition.y=h,this.dirty=!0}},tileScaleX:{get:function(){return this._tileScale.x},set:function(h){this._tileScale.x=h,this.dirty=!0}},tileScaleY:{get:function(){return this._tileScale.y},set:function(h){this._tileScale.y=h,this.dirty=!0}}});c.exports=u},46992:c=>{/** + */var d=t(27919),p=t(83419),l=t(31401),r=t(95643),n=t(98439),e=t(68703),s=t(56295),o=t(45650),i=t(26099),a=8,u=new p({Extends:r,Mixins:[l.Alpha,l.BlendMode,l.ComputedSize,l.Crop,l.Depth,l.Flip,l.GetBounds,l.Mask,l.Origin,l.Pipeline,l.PostPipeline,l.ScrollFactor,l.Tint,l.Transform,l.Visible,s],initialize:function(f,v,m,g,x,y,S){var C=f.sys.renderer;r.call(this,f,"TileSprite");var E=f.sys.textures.get(y),M=E.get(S);M.source.compressionAlgorithm&&(console.warn("TileSprite cannot use compressed texture"),E=f.sys.textures.get("__MISSING"),M=E.get()),E.type==="DynamicTexture"&&(console.warn("TileSprite cannot use Dynamic Texture"),E=f.sys.textures.get("__MISSING"),M=E.get()),!g||!x?(g=g||M.width,x=x||M.height):(g=Math.floor(g),x=Math.floor(x)),this._tilePosition=new i,this._tileScale=new i(1,1),this.dirty=!1,this.renderer=C,this.canvas=d.create(this,g,x),this.context=this.canvas.getContext("2d",{willReadFrequently:!1}),this.displayTexture=E,this.displayFrame=M,this._crop=this.resetCropObject(),this._textureKey=o(),this.texture=f.sys.textures.addCanvas(this._textureKey,this.canvas),this.frame=this.texture.get(),this.potWidth=n(M.width),this.potHeight=n(M.height),this.fillCanvas=d.create2D(this,this.potWidth,this.potHeight),this.fillContext=this.fillCanvas.getContext("2d",{willReadFrequently:!1}),this.fillPattern=null,this.setPosition(v,m),this.setSize(g,x),this.setFrame(S),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)},setTexture:function(h,f){return this.displayTexture=this.scene.sys.textures.get(h),this.setFrame(f)},setFrame:function(h){var f=this.displayTexture.get(h);return this.potWidth=n(f.width),this.potHeight=n(f.height),this.canvas.width=0,!f.cutWidth||!f.cutHeight?this.renderFlags&=~a:this.renderFlags|=a,this.displayFrame=f,this.dirty=!0,this.updateTileTexture(),this},setTilePosition:function(h,f){return h!==void 0&&(this.tilePositionX=h),f!==void 0&&(this.tilePositionY=f),this},setTileScale:function(h,f){return h===void 0&&(h=this.tileScaleX),f===void 0&&(f=h),this.tileScaleX=h,this.tileScaleY=f,this},updateTileTexture:function(){if(!(!this.dirty||!this.renderer)){var h=this.displayFrame;if(h.source.isRenderTexture||h.source.isGLTexture){console.warn("TileSprites can only use Image or Canvas based textures"),this.dirty=!1;return}var f=this.fillContext,v=this.fillCanvas,m=this.potWidth,g=this.potHeight;(!this.renderer||!this.renderer.gl)&&(m=h.cutWidth,g=h.cutHeight),f.clearRect(0,0,m,g),v.width=m,v.height=g,f.drawImage(h.source.image,h.cutX,h.cutY,h.cutWidth,h.cutHeight,0,0,m,g),this.renderer&&this.renderer.gl?this.fillPattern=this.renderer.canvasToTexture(v,this.fillPattern):this.fillPattern=f.createPattern(v,"repeat"),this.updateCanvas(),this.dirty=!1}},updateCanvas:function(){var h=this.canvas;if((h.width!==this.width||h.height!==this.height)&&(h.width=this.width,h.height=this.height,this.frame.setSize(this.width,this.height),this.updateDisplayOrigin(),this.dirty=!0),!this.dirty||this.renderer&&this.renderer.gl){this.dirty=!1;return}var f=this.context;this.scene.sys.game.config.antialias||e.disable(f);var v=this._tileScale.x,m=this._tileScale.y,g=this._tilePosition.x,x=this._tilePosition.y;f.clearRect(0,0,this.width,this.height),f.save(),f.scale(v,m),f.translate(-g,-x),f.fillStyle=this.fillPattern,f.fillRect(g,x,this.width/v,this.height/m),f.restore(),this.dirty=!1},preDestroy:function(){this.renderer&&this.renderer.gl&&this.renderer.deleteTexture(this.fillPattern),d.remove(this.canvas),d.remove(this.fillCanvas),this.fillPattern=null,this.fillContext=null,this.fillCanvas=null,this.displayTexture=null,this.displayFrame=null;var h=this.texture;h&&h.destroy(),this.renderer=null},tilePositionX:{get:function(){return this._tilePosition.x},set:function(h){this._tilePosition.x=h,this.dirty=!0}},tilePositionY:{get:function(){return this._tilePosition.y},set:function(h){this._tilePosition.y=h,this.dirty=!0}},tileScaleX:{get:function(){return this._tileScale.x},set:function(h){this._tileScale.x=h,this.dirty=!0}},tileScaleY:{get:function(){return this._tileScale.y},set:function(h){this._tileScale.y=h,this.dirty=!0}}});c.exports=u},46992:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){d.updateCanvas(),p.addToRenderList(d),t.batchSprite(d,d.frame,p,a)};c.exports=T},14167:(c,T,t)=>{/** + */var T=function(t,d,p,l){d.updateCanvas(),p.addToRenderList(d),t.batchSprite(d,d.frame,p,l)};c.exports=T},14167:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(25305),p=t(44603),a=t(23568),r=t(20839);p.register("tileSprite",function(n,e){n===void 0&&(n={});var s=a(n,"x",0),l=a(n,"y",0),i=a(n,"width",512),o=a(n,"height",512),u=a(n,"key",""),h=a(n,"frame",""),f=new r(this.scene,s,l,i,o,u,h);return e!==void 0&&(n.add=e),d(this.scene,f,n),f})},91681:(c,T,t)=>{/** + */var d=t(25305),p=t(44603),l=t(23568),r=t(20839);p.register("tileSprite",function(n,e){n===void 0&&(n={});var s=l(n,"x",0),o=l(n,"y",0),i=l(n,"width",512),a=l(n,"height",512),u=l(n,"key",""),h=l(n,"frame",""),f=new r(this.scene,s,o,i,a,u,h);return e!==void 0&&(n.add=e),d(this.scene,f,n),f})},91681:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(20839),p=t(39429);p.register("tileSprite",function(a,r,n,e,s,l){return this.displayList.add(new d(this.scene,a,r,n,e,s,l))})},56295:(c,T,t)=>{/** + */var d=t(20839),p=t(39429);p.register("tileSprite",function(l,r,n,e,s,o){return this.displayList.add(new d(this.scene,l,r,n,e,s,o))})},56295:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(18553),a=t(46992),c.exports={renderWebGL:p,renderCanvas:a}},18553:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(18553),l=t(46992),c.exports={renderWebGL:p,renderCanvas:l}},18553:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(70554),p=function(a,r,n,e){r.updateCanvas();var s=r.width,l=r.height;if(!(s===0||l===0)){n.addToRenderList(r);var i=d.getTintAppendFloatAlpha,o=a.pipelines.set(r.pipeline,r),u=o.setTexture2D(r.fillPattern,r);o.batchTexture(r,r.fillPattern,r.displayFrame.width*r.tileScaleX,r.displayFrame.height*r.tileScaleY,r.x,r.y,s,l,r.scaleX,r.scaleY,r.rotation,r.flipX,r.flipY,r.scrollFactorX,r.scrollFactorY,r.originX*s,r.originY*l,0,0,s,l,i(r.tintTopLeft,n.alpha*r._alphaTL),i(r.tintTopRight,n.alpha*r._alphaTR),i(r.tintBottomLeft,n.alpha*r._alphaBL),i(r.tintBottomRight,n.alpha*r._alphaBR),r.tintFill,r.tilePositionX%r.displayFrame.width/r.displayFrame.width,r.tilePositionY%r.displayFrame.height/r.displayFrame.height,n,e,!1,u)}};c.exports=p},18471:(c,T,t)=>{/** + */var d=t(70554),p=function(l,r,n,e){r.updateCanvas();var s=r.width,o=r.height;if(!(s===0||o===0)){n.addToRenderList(r);var i=d.getTintAppendFloatAlpha,a=l.pipelines.set(r.pipeline,r),u=a.setTexture2D(r.fillPattern,r);a.batchTexture(r,r.fillPattern,r.displayFrame.width*r.tileScaleX,r.displayFrame.height*r.tileScaleY,r.x,r.y,s,o,r.scaleX,r.scaleY,r.rotation,r.flipX,r.flipY,r.scrollFactorX,r.scrollFactorY,r.originX*s,r.originY*o,0,0,s,o,i(r.tintTopLeft,n.alpha*r._alphaTL),i(r.tintTopRight,n.alpha*r._alphaTR),i(r.tintBottomLeft,n.alpha*r._alphaBL),i(r.tintBottomRight,n.alpha*r._alphaBR),r.tintFill,r.tilePositionX%r.displayFrame.width/r.displayFrame.width,r.tilePositionY%r.displayFrame.height/r.displayFrame.height,n,e,!1,u)}};c.exports=p},18471:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(45319),p=t(83419),a=t(31401),r=t(51708),n=t(8443),e=t(95643),s=t(36383),l=t(14463),i=t(45650),o=t(10247),u=new p({Extends:e,Mixins:[a.Alpha,a.BlendMode,a.ComputedSize,a.Depth,a.Flip,a.GetBounds,a.Mask,a.Origin,a.Pipeline,a.PostPipeline,a.ScrollFactor,a.TextureCrop,a.Tint,a.Transform,a.Visible,o],initialize:function(f,v,m,x){e.call(this,f,"Video"),this.video,this.videoTexture,this.videoTextureSource,this.snapshotTexture,this.flipY=!1,this._key=i(),this.touchLocked=!1,this.playWhenUnlocked=!1,this.frameReady=!1,this.isStalled=!1,this.failedPlayAttempts=0,this.metadata,this.retry=0,this.retryInterval=500,this._systemMuted=!1,this._codeMuted=!1,this._systemPaused=!1,this._codePaused=!1,this._callbacks={ended:this.completeHandler.bind(this),legacy:this.legacyPlayHandler.bind(this),playing:this.playingHandler.bind(this),seeked:this.seekedHandler.bind(this),seeking:this.seekingHandler.bind(this),stalled:this.stalledHandler.bind(this),suspend:this.stalledHandler.bind(this),waiting:this.stalledHandler.bind(this)},this._loadCallbackHandler=this.loadErrorHandler.bind(this),this._metadataCallbackHandler=this.metadataHandler.bind(this),this._crop=this.resetCropObject(),this.markers={},this._markerIn=0,this._markerOut=0,this._playingMarker=!1,this._lastUpdate=0,this.cacheKey="",this.isSeeking=!1,this._playCalled=!1,this._rfvCallbackId=0;var g=f.sys.game;this._device=g.device.video,this.setPosition(v,m),this.setSize(256,256),this.initPipeline(),this.initPostPipeline(!0),g.events.on(n.PAUSE,this.globalPause,this),g.events.on(n.RESUME,this.globalResume,this);var y=f.sys.sound;y&&y.on(l.GLOBAL_MUTE,this.globalMute,this),x&&this.load(x)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},load:function(h){var f=this.scene.sys.cache.video.get(h);return f?(this.cacheKey=h,this.loadHandler(f.url,f.noAudio,f.crossOrigin)):console.warn("No video in cache for key: "+h),this},changeSource:function(h,f,v,m,x){f===void 0&&(f=!0),v===void 0&&(v=!1),this.cacheKey!==h&&(this.load(h),f&&this.play(v,m,x))},getVideoKey:function(){return this.cacheKey},loadURL:function(h,f,v){f===void 0&&(f=!1);var m=this._device.getVideoURL(h);return m?(this.cacheKey="",this.loadHandler(m.url,f,v)):console.warn("No supported video format found for "+h),this},loadMediaStream:function(h,f,v){return this.loadHandler(null,f,v,h)},loadHandler:function(h,f,v,m){f||(f=!1);var x=this.video;if(x?(this.removeLoadEventHandlers(),this.stop()):(x=document.createElement("video"),x.controls=!1,x.setAttribute("playsinline","playsinline"),x.setAttribute("preload","auto"),x.setAttribute("disablePictureInPicture","true")),f?(x.muted=!0,x.defaultMuted=!0,x.setAttribute("autoplay","autoplay")):(x.muted=!1,x.defaultMuted=!1,x.removeAttribute("autoplay")),v?x.setAttribute("crossorigin",v):x.removeAttribute("crossorigin"),m)if("srcObject"in x)try{x.srcObject=m}catch(y){if(y.name!=="TypeError")throw y;x.src=URL.createObjectURL(m)}else x.src=URL.createObjectURL(m);else x.src=h;this.retry=0,this.video=x,this._playCalled=!1,x.load(),this.addLoadEventHandlers();var g=this.scene.sys.textures.get(this._key);return this.setTexture(g),this},requestVideoFrame:function(h,f){var v=this.video;if(v){var m=f.width,x=f.height,g=this.videoTexture,y=this.videoTextureSource,S=!g||y.source!==v;S?(this._codePaused=v.paused,this._codeMuted=v.muted,g?(y.source=v,y.width=m,y.height=x,g.get().setSize(m,x)):(g=this.scene.sys.textures.create(this._key,v,m,x),g.add("__BASE",0,0,0,m,x),this.setTexture(g),this.videoTexture=g,this.videoTextureSource=g.source[0],this.videoTextureSource.setFlipY(this.flipY),this.emit(r.VIDEO_TEXTURE,this,g)),this.setSizeToFrame(),this.updateDisplayOrigin()):y.update(),this.isStalled=!1,this.metadata=f;var C=f.mediaTime;S&&(this._lastUpdate=C,this.emit(r.VIDEO_CREATED,this,m,x),this.frameReady||(this.frameReady=!0,this.emit(r.VIDEO_PLAY,this))),this._playingMarker?C>=this._markerOut&&(v.loop?(v.currentTime=this._markerIn,this.emit(r.VIDEO_LOOP,this)):(this.stop(!1),this.emit(r.VIDEO_COMPLETE,this))):C-1&&v>f&&v=0&&!isNaN(v)&&v>f&&(this.markers[h]=[f,v]),this},playMarker:function(h,f){var v=this.markers[h];return v&&this.play(f,v[0],v[1]),this},removeMarker:function(h){return delete this.markers[h],this},snapshot:function(h,f){return h===void 0&&(h=this.width),f===void 0&&(f=this.height),this.snapshotArea(0,0,this.width,this.height,h,f)},snapshotArea:function(h,f,v,m,x,g){h===void 0&&(h=0),f===void 0&&(f=0),v===void 0&&(v=this.width),m===void 0&&(m=this.height),x===void 0&&(x=v),g===void 0&&(g=m);var y=this.video,S=this.snapshotTexture;return S?(S.setSize(x,g),y&&S.context.drawImage(y,h,f,v,m,0,0,x,g)):(S=this.scene.sys.textures.createCanvas(i(),x,g),this.snapshotTexture=S,y&&S.context.drawImage(y,h,f,v,m,0,0,x,g)),S.update()},saveSnapshotTexture:function(h){return this.snapshotTexture?this.scene.sys.textures.renameTexture(this.snapshotTexture.key,h):this.snapshotTexture=this.scene.sys.textures.createCanvas(h,this.width,this.height),this.snapshotTexture},playSuccess:function(){if(this._playCalled){this.addEventHandlers(),this._codePaused=!1,this.touchLocked&&(this.touchLocked=!1,this.emit(r.VIDEO_UNLOCKED,this));var h=this.scene.sys.sound;h&&h.mute&&this.setMute(!0),this._markerIn>-1&&(this.video.currentTime=this._markerIn)}},playError:function(h){var f=h.name;f==="NotAllowedError"?(this.touchLocked=!0,this.playWhenUnlocked=!0,this.failedPlayAttempts=1,this.emit(r.VIDEO_LOCKED,this)):f==="NotSupportedError"?(this.stop(!1),this.emit(r.VIDEO_UNSUPPORTED,this,h)):(this.stop(!1),this.emit(r.VIDEO_ERROR,this,h))},legacyPlayHandler:function(){var h=this.video;h&&(this.playSuccess(),h.removeEventListener("playing",this._callbacks.legacy))},playingHandler:function(){this.isStalled=!1,this.emit(r.VIDEO_PLAYING,this)},loadErrorHandler:function(h){this.stop(!1),this.emit(r.VIDEO_ERROR,this,h)},metadataHandler:function(h){this.emit(r.VIDEO_METADATA,this,h)},setSizeToFrame:function(h){h||(h=this.frame),this.width=h.realWidth,this.height=h.realHeight,this.scaleX!==1&&(this.scaleX=this.displayWidth/this.width),this.scaleY!==1&&(this.scaleY=this.displayHeight/this.height);var f=this.input;return f&&!f.customHitArea&&(f.hitArea.width=this.width,f.hitArea.height=this.height),this},stalledHandler:function(h){this.isStalled=!0,this.emit(r.VIDEO_STALLED,this,h)},completeHandler:function(){this._playCalled=!1,this.emit(r.VIDEO_COMPLETE,this)},preUpdate:function(h,f){var v=this.video;!v||!this._playCalled||this.touchLocked&&this.playWhenUnlocked&&(this.retry+=f,this.retry>=this.retryInterval&&(this.createPlayPromise(!1),this.retry=0))},seekTo:function(h){var f=this.video;if(f){var v=f.duration;if(v!==1/0&&!isNaN(v)){var m=v*h;this.setCurrentTime(m)}}return this},getCurrentTime:function(){return this.video?this.video.currentTime:0},setCurrentTime:function(h){var f=this.video;if(f){if(typeof h=="string"){var v=h[0],m=parseFloat(h.substr(1));v==="+"?h=f.currentTime+m:v==="-"&&(h=f.currentTime-m)}f.currentTime=h}return this},seekingHandler:function(){this.isSeeking=!0,this.emit(r.VIDEO_SEEKING,this)},seekedHandler:function(){this.isSeeking=!1,this.emit(r.VIDEO_SEEKED,this)},getProgress:function(){var h=this.video;if(h){var f=h.duration;if(f!==1/0&&!isNaN(f))return h.currentTime/f}return-1},getDuration:function(){return this.video?this.video.duration:0},setMute:function(h){h===void 0&&(h=!0),this._codeMuted=h;var f=this.video;return f&&(f.muted=this._systemMuted?!0:h),this},isMuted:function(){return this._codeMuted},globalMute:function(h,f){this._systemMuted=f;var v=this.video;v&&(v.muted=this._codeMuted?!0:f)},globalPause:function(){this._systemPaused=!0,this.video&&!this.video.ended&&(this.removeEventHandlers(),this.video.pause())},globalResume:function(){this._systemPaused=!1,this.video&&!this._codePaused&&!this.video.ended&&this.createPlayPromise()},setPaused:function(h){h===void 0&&(h=!0);var f=this.video;return this._codePaused=h,f&&!f.ended&&(h?f.paused||(this.removeEventHandlers(),f.pause()):h||(this._playCalled?f.paused&&!this._systemPaused&&this.createPlayPromise():this.play())),this},pause:function(){return this.setPaused(!0)},resume:function(){return this.setPaused(!1)},getVolume:function(){return this.video?this.video.volume:1},setVolume:function(h){return h===void 0&&(h=1),this.video&&(this.video.volume=d(h,0,1)),this},getPlaybackRate:function(){return this.video?this.video.playbackRate:1},setPlaybackRate:function(h){return this.video&&(this.video.playbackRate=h),this},getLoop:function(){return this.video?this.video.loop:!1},setLoop:function(h){return h===void 0&&(h=!0),this.video&&(this.video.loop=h),this},isPlaying:function(){return this.video?!(this.video.paused||this.video.ended):!1},isPaused:function(){return this.video&&this._playCalled&&this.video.paused||this._codePaused||this._systemPaused},saveTexture:function(h,f){return f===void 0&&(f=!1),this.videoTexture&&(this.scene.sys.textures.renameTexture(this._key,h),this.videoTextureSource.setFlipY(f)),this._key=h,this.flipY=f,!!this.videoTexture},stop:function(h){h===void 0&&(h=!0);var f=this.video;return f&&(this.removeEventHandlers(),f.cancelVideoFrameCallback(this._rfvCallbackId),f.pause()),this.retry=0,this._playCalled=!1,h&&this.emit(r.VIDEO_STOP,this),this},removeVideoElement:function(){var h=this.video;if(h){for(h.parentNode&&h.parentNode.removeChild(h);h.hasChildNodes();)h.removeChild(h.firstChild);h.removeAttribute("autoplay"),h.removeAttribute("src"),this.video=null}},preDestroy:function(){this.stop(!1),this.removeLoadEventHandlers(),this.removeVideoElement();var h=this.scene.sys.game.events;h.off(n.PAUSE,this.globalPause,this),h.off(n.RESUME,this.globalResume,this);var f=this.scene.sys.sound;f&&f.off(l.GLOBAL_MUTE,this.globalMute,this)}});c.exports=u},58352:c=>{/** + */var d=t(45319),p=t(83419),l=t(31401),r=t(51708),n=t(8443),e=t(95643),s=t(36383),o=t(14463),i=t(45650),a=t(10247),u=new p({Extends:e,Mixins:[l.Alpha,l.BlendMode,l.ComputedSize,l.Depth,l.Flip,l.GetBounds,l.Mask,l.Origin,l.Pipeline,l.PostPipeline,l.ScrollFactor,l.TextureCrop,l.Tint,l.Transform,l.Visible,a],initialize:function(f,v,m,g){e.call(this,f,"Video"),this.video,this.videoTexture,this.videoTextureSource,this.snapshotTexture,this.flipY=!1,this._key=i(),this.touchLocked=!1,this.playWhenUnlocked=!1,this.frameReady=!1,this.isStalled=!1,this.failedPlayAttempts=0,this.metadata,this.retry=0,this.retryInterval=500,this._systemMuted=!1,this._codeMuted=!1,this._systemPaused=!1,this._codePaused=!1,this._callbacks={ended:this.completeHandler.bind(this),legacy:this.legacyPlayHandler.bind(this),playing:this.playingHandler.bind(this),seeked:this.seekedHandler.bind(this),seeking:this.seekingHandler.bind(this),stalled:this.stalledHandler.bind(this),suspend:this.stalledHandler.bind(this),waiting:this.stalledHandler.bind(this)},this._loadCallbackHandler=this.loadErrorHandler.bind(this),this._metadataCallbackHandler=this.metadataHandler.bind(this),this._crop=this.resetCropObject(),this.markers={},this._markerIn=0,this._markerOut=0,this._playingMarker=!1,this._lastUpdate=0,this.cacheKey="",this.isSeeking=!1,this._playCalled=!1,this._getFrame=!1,this._rfvCallbackId=0;var x=f.sys.game;this._device=x.device.video,this.setPosition(v,m),this.setSize(256,256),this.initPipeline(),this.initPostPipeline(!0),x.events.on(n.PAUSE,this.globalPause,this),x.events.on(n.RESUME,this.globalResume,this);var y=f.sys.sound;y&&y.on(o.GLOBAL_MUTE,this.globalMute,this),g&&this.load(g)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},load:function(h){var f=this.scene.sys.cache.video.get(h);return f?(this.cacheKey=h,this.loadHandler(f.url,f.noAudio,f.crossOrigin)):console.warn("No video in cache for key: "+h),this},changeSource:function(h,f,v,m,g){f===void 0&&(f=!0),v===void 0&&(v=!1),this.cacheKey!==h&&(this.load(h),f&&this.play(v,m,g))},getVideoKey:function(){return this.cacheKey},loadURL:function(h,f,v){f===void 0&&(f=!1);var m=this._device.getVideoURL(h);return m?(this.cacheKey="",this.loadHandler(m.url,f,v)):console.warn("No supported video format found for "+h),this},loadMediaStream:function(h,f,v){return this.loadHandler(null,f,v,h)},loadHandler:function(h,f,v,m){f||(f=!1);var g=this.video;if(g?(this.removeLoadEventHandlers(),this.stop()):(g=document.createElement("video"),g.controls=!1,g.setAttribute("playsinline","playsinline"),g.setAttribute("preload","auto"),g.setAttribute("disablePictureInPicture","true")),f?(g.muted=!0,g.defaultMuted=!0,g.setAttribute("autoplay","autoplay")):(g.muted=!1,g.defaultMuted=!1,g.removeAttribute("autoplay")),v?g.setAttribute("crossorigin",v):g.removeAttribute("crossorigin"),m)if("srcObject"in g)try{g.srcObject=m}catch(y){if(y.name!=="TypeError")throw y;g.src=URL.createObjectURL(m)}else g.src=URL.createObjectURL(m);else g.src=h;this.retry=0,this.video=g,this._playCalled=!1,g.load(),this.addLoadEventHandlers();var x=this.scene.sys.textures.get(this._key);return this.setTexture(x),this},requestVideoFrame:function(h,f){var v=this.video;if(v){var m=f.width,g=f.height,x=this.videoTexture,y=this.videoTextureSource,S=!x||y.source!==v;S?(this._codePaused=v.paused,this._codeMuted=v.muted,x?(y.source=v,y.width=m,y.height=g,x.get().setSize(m,g)):(x=this.scene.sys.textures.create(this._key,v,m,g),x.add("__BASE",0,0,0,m,g),this.setTexture(x),this.videoTexture=x,this.videoTextureSource=x.source[0],this.videoTextureSource.setFlipY(this.flipY),this.emit(r.VIDEO_TEXTURE,this,x)),this.setSizeToFrame(),this.updateDisplayOrigin()):y.update(),this.isStalled=!1,this.metadata=f;var C=f.mediaTime;S&&(this._lastUpdate=C,this.emit(r.VIDEO_CREATED,this,m,g),this.frameReady||(this.frameReady=!0,this.emit(r.VIDEO_PLAY,this))),this._playingMarker?C>=this._markerOut&&(v.loop?(v.currentTime=this._markerIn,this.emit(r.VIDEO_LOOP,this)):(this.stop(!1),this.emit(r.VIDEO_COMPLETE,this))):C-1&&v>f&&v=0&&!isNaN(v)&&v>f&&(this.markers[h]=[f,v]),this},playMarker:function(h,f){var v=this.markers[h];return v&&this.play(f,v[0],v[1]),this},removeMarker:function(h){return delete this.markers[h],this},snapshot:function(h,f){return h===void 0&&(h=this.width),f===void 0&&(f=this.height),this.snapshotArea(0,0,this.width,this.height,h,f)},snapshotArea:function(h,f,v,m,g,x){h===void 0&&(h=0),f===void 0&&(f=0),v===void 0&&(v=this.width),m===void 0&&(m=this.height),g===void 0&&(g=v),x===void 0&&(x=m);var y=this.video,S=this.snapshotTexture;return S?(S.setSize(g,x),y&&S.context.drawImage(y,h,f,v,m,0,0,g,x)):(S=this.scene.sys.textures.createCanvas(i(),g,x),this.snapshotTexture=S,y&&S.context.drawImage(y,h,f,v,m,0,0,g,x)),S.update()},saveSnapshotTexture:function(h){return this.snapshotTexture?this.scene.sys.textures.renameTexture(this.snapshotTexture.key,h):this.snapshotTexture=this.scene.sys.textures.createCanvas(h,this.width,this.height),this.snapshotTexture},playSuccess:function(){if(this._playCalled){this.addEventHandlers(),this._codePaused=!1,this.touchLocked&&(this.touchLocked=!1,this.emit(r.VIDEO_UNLOCKED,this));var h=this.scene.sys.sound;h&&h.mute&&this.setMute(!0),this._markerIn>-1&&(this.video.currentTime=this._markerIn)}},playError:function(h){var f=h.name;f==="NotAllowedError"?(this.touchLocked=!0,this.playWhenUnlocked=!0,this.failedPlayAttempts=1,this.emit(r.VIDEO_LOCKED,this)):f==="NotSupportedError"?(this.stop(!1),this.emit(r.VIDEO_UNSUPPORTED,this,h)):(this.stop(!1),this.emit(r.VIDEO_ERROR,this,h))},legacyPlayHandler:function(){var h=this.video;h&&(this.playSuccess(),h.removeEventListener("playing",this._callbacks.legacy))},playingHandler:function(){this.isStalled=!1,this.emit(r.VIDEO_PLAYING,this)},loadErrorHandler:function(h){this.stop(!1),this.emit(r.VIDEO_ERROR,this,h)},metadataHandler:function(h){this.emit(r.VIDEO_METADATA,this,h)},setSizeToFrame:function(h){h||(h=this.frame),this.width=h.realWidth,this.height=h.realHeight,this.scaleX!==1&&(this.scaleX=this.displayWidth/this.width),this.scaleY!==1&&(this.scaleY=this.displayHeight/this.height);var f=this.input;return f&&!f.customHitArea&&(f.hitArea.width=this.width,f.hitArea.height=this.height),this},stalledHandler:function(h){this.isStalled=!0,this.emit(r.VIDEO_STALLED,this,h)},completeHandler:function(){this._playCalled=!1,this.emit(r.VIDEO_COMPLETE,this)},preUpdate:function(h,f){var v=this.video;!v||!this._playCalled||this.touchLocked&&this.playWhenUnlocked&&(this.retry+=f,this.retry>=this.retryInterval&&(this.createPlayPromise(!1),this.retry=0))},seekTo:function(h){var f=this.video;if(f){var v=f.duration;if(v!==1/0&&!isNaN(v)){var m=v*h;this.setCurrentTime(m)}}return this},getCurrentTime:function(){return this.video?this.video.currentTime:0},setCurrentTime:function(h){var f=this.video;if(f){if(typeof h=="string"){var v=h[0],m=parseFloat(h.substr(1));v==="+"?h=f.currentTime+m:v==="-"&&(h=f.currentTime-m)}f.currentTime=h}return this},seekingHandler:function(){this.isSeeking=!0,this.emit(r.VIDEO_SEEKING,this)},seekedHandler:function(){this.isSeeking=!1,this.emit(r.VIDEO_SEEKED,this)},getProgress:function(){var h=this.video;if(h){var f=h.duration;if(f!==1/0&&!isNaN(f))return h.currentTime/f}return-1},getDuration:function(){return this.video?this.video.duration:0},setMute:function(h){h===void 0&&(h=!0),this._codeMuted=h;var f=this.video;return f&&(f.muted=this._systemMuted?!0:h),this},isMuted:function(){return this._codeMuted},globalMute:function(h,f){this._systemMuted=f;var v=this.video;v&&(v.muted=this._codeMuted?!0:f)},globalPause:function(){this._systemPaused=!0,this.video&&!this.video.ended&&(this.removeEventHandlers(),this.video.pause())},globalResume:function(){this._systemPaused=!1,this.video&&!this._codePaused&&!this.video.ended&&this.createPlayPromise()},setPaused:function(h){h===void 0&&(h=!0);var f=this.video;return this._codePaused=h,f&&!f.ended&&(h?f.paused||(this.removeEventHandlers(),f.pause()):h||(this._playCalled?f.paused&&!this._systemPaused&&this.createPlayPromise():this.play())),this},pause:function(){return this.setPaused(!0)},resume:function(){return this.setPaused(!1)},getVolume:function(){return this.video?this.video.volume:1},setVolume:function(h){return h===void 0&&(h=1),this.video&&(this.video.volume=d(h,0,1)),this},getPlaybackRate:function(){return this.video?this.video.playbackRate:1},setPlaybackRate:function(h){return this.video&&(this.video.playbackRate=h),this},getLoop:function(){return this.video?this.video.loop:!1},setLoop:function(h){return h===void 0&&(h=!0),this.video&&(this.video.loop=h),this},isPlaying:function(){return this.video?!(this.video.paused||this.video.ended):!1},isPaused:function(){return this.video&&this._playCalled&&this.video.paused||this._codePaused||this._systemPaused},saveTexture:function(h,f){return f===void 0&&(f=!1),this.videoTexture&&(this.scene.sys.textures.renameTexture(this._key,h),this.videoTextureSource.setFlipY(f)),this._key=h,this.flipY=f,!!this.videoTexture},stop:function(h){h===void 0&&(h=!0);var f=this.video;return f&&(this.removeEventHandlers(),f.cancelVideoFrameCallback(this._rfvCallbackId),f.pause()),this.retry=0,this._playCalled=!1,h&&this.emit(r.VIDEO_STOP,this),this},removeVideoElement:function(){var h=this.video;if(h){for(h.parentNode&&h.parentNode.removeChild(h);h.hasChildNodes();)h.removeChild(h.firstChild);h.removeAttribute("autoplay"),h.removeAttribute("src"),this.video=null}},preDestroy:function(){this.stop(!1),this.removeLoadEventHandlers(),this.removeVideoElement();var h=this.scene.sys.game.events;h.off(n.PAUSE,this.globalPause,this),h.off(n.RESUME,this.globalResume,this);var f=this.scene.sys.sound;f&&f.off(o.GLOBAL_MUTE,this.globalMute,this)}});c.exports=u},58352:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){d.videoTexture&&(p.addToRenderList(d),t.batchSprite(d,d.frame,p,a))};c.exports=T},11511:(c,T,t)=>{/** + */var T=function(t,d,p,l){d.videoTexture&&(p.addToRenderList(d),t.batchSprite(d,d.frame,p,l))};c.exports=T},11511:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(25305),p=t(44603),a=t(23568),r=t(18471);p.register("video",function(n,e){n===void 0&&(n={});var s=a(n,"key",null),l=new r(this.scene,0,0,s);return e!==void 0&&(n.add=e),d(this.scene,l,n),l})},89025:(c,T,t)=>{/** + */var d=t(25305),p=t(44603),l=t(23568),r=t(18471);p.register("video",function(n,e){n===void 0&&(n={});var s=l(n,"key",null),o=new r(this.scene,0,0,s);return e!==void 0&&(n.add=e),d(this.scene,o,n),o})},89025:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(18471),p=t(39429);p.register("video",function(a,r,n){return this.displayList.add(new d(this.scene,a,r,n))})},10247:(c,T,t)=>{/** + */var d=t(18471),p=t(39429);p.register("video",function(l,r,n){return this.displayList.add(new d(this.scene,l,r,n))})},10247:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(29849),a=t(58352),c.exports={renderWebGL:p,renderCanvas:a}},29849:c=>{/** + */var d=t(29747),p=d,l=d;p=t(29849),l=t(58352),c.exports={renderWebGL:p,renderCanvas:l}},29849:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){d.videoTexture&&(p.addToRenderList(d),d.pipeline.batchSprite(d,p,a))};c.exports=T},41481:(c,T,t)=>{/** + */var T=function(t,d,p,l){d.videoTexture&&(p.addToRenderList(d),d.pipeline.batchSprite(d,p,l))};c.exports=T},41481:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(10312),p=t(96503),a=t(87902),r=t(83419),n=t(31401),e=t(95643),s=t(87841),l=t(37303),i=new r({Extends:e,Mixins:[n.Depth,n.GetBounds,n.Origin,n.Transform,n.ScrollFactor,n.Visible],initialize:function(u,h,f,v,m){v===void 0&&(v=1),m===void 0&&(m=v),e.call(this,u,"Zone"),this.setPosition(h,f),this.width=v,this.height=m,this.blendMode=d.NORMAL,this.updateDisplayOrigin()},displayWidth:{get:function(){return this.scaleX*this.width},set:function(o){this.scaleX=o/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(o){this.scaleY=o/this.height}},setSize:function(o,u,h){h===void 0&&(h=!0),this.width=o,this.height=u,this.updateDisplayOrigin();var f=this.input;return h&&f&&!f.customHitArea&&(f.hitArea.width=o,f.hitArea.height=u),this},setDisplaySize:function(o,u){return this.displayWidth=o,this.displayHeight=u,this},setCircleDropZone:function(o){return this.setDropZone(new p(0,0,o),a)},setRectangleDropZone:function(o,u){return this.setDropZone(new s(0,0,o,u),l)},setDropZone:function(o,u){return this.input||this.setInteractive(o,u,!0),this},setAlpha:function(){},setBlendMode:function(){},renderCanvas:function(o,u,h){h.addToRenderList(u)},renderWebGL:function(o,u,h){h.addToRenderList(u)}});c.exports=i},95261:(c,T,t)=>{/** + */var d=t(10312),p=t(96503),l=t(87902),r=t(83419),n=t(31401),e=t(95643),s=t(87841),o=t(37303),i=new r({Extends:e,Mixins:[n.Depth,n.GetBounds,n.Origin,n.Transform,n.ScrollFactor,n.Visible],initialize:function(u,h,f,v,m){v===void 0&&(v=1),m===void 0&&(m=v),e.call(this,u,"Zone"),this.setPosition(h,f),this.width=v,this.height=m,this.blendMode=d.NORMAL,this.updateDisplayOrigin()},displayWidth:{get:function(){return this.scaleX*this.width},set:function(a){this.scaleX=a/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(a){this.scaleY=a/this.height}},setSize:function(a,u,h){h===void 0&&(h=!0),this.width=a,this.height=u,this.updateDisplayOrigin();var f=this.input;return h&&f&&!f.customHitArea&&(f.hitArea.width=a,f.hitArea.height=u),this},setDisplaySize:function(a,u){return this.displayWidth=a,this.displayHeight=u,this},setCircleDropZone:function(a){return this.setDropZone(new p(0,0,a),l)},setRectangleDropZone:function(a,u){return this.setDropZone(new s(0,0,a,u),o)},setDropZone:function(a,u){return this.input||this.setInteractive(a,u,!0),this},setAlpha:function(){},setBlendMode:function(){},renderCanvas:function(a,u,h){h.addToRenderList(u)},renderWebGL:function(a,u,h){h.addToRenderList(u)}});c.exports=i},95261:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(44603),p=t(23568),a=t(41481);d.register("zone",function(r){var n=p(r,"x",0),e=p(r,"y",0),s=p(r,"width",1),l=p(r,"height",s);return new a(this.scene,n,e,s,l)})},84175:(c,T,t)=>{/** + */var d=t(44603),p=t(23568),l=t(41481);d.register("zone",function(r){var n=p(r,"x",0),e=p(r,"y",0),s=p(r,"width",1),o=p(r,"height",s);return new l(this.scene,n,e,s,o)})},84175:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(41481),p=t(39429);p.register("zone",function(a,r,n,e){return this.displayList.add(new d(this.scene,a,r,n,e))})},95166:c=>{/** + */var d=t(41481),p=t(39429);p.register("zone",function(l,r,n,e){return this.displayList.add(new d(this.scene,l,r,n,e))})},95166:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2205,7 +2209,7 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(87902),a=t(26241),r=t(79124),n=t(23777),e=t(28176),s=new d({initialize:function(i,o,u){i===void 0&&(i=0),o===void 0&&(o=0),u===void 0&&(u=0),this.type=n.CIRCLE,this.x=i,this.y=o,this._radius=u,this._diameter=u*2},contains:function(l,i){return p(this,l,i)},getPoint:function(l,i){return a(this,l,i)},getPoints:function(l,i,o){return r(this,l,i,o)},getRandomPoint:function(l){return e(this,l)},setTo:function(l,i,o){return this.x=l,this.y=i,this._radius=o,this._diameter=o*2,this},setEmpty:function(){return this._radius=0,this._diameter=0,this},setPosition:function(l,i){return i===void 0&&(i=l),this.x=l,this.y=i,this},isEmpty:function(){return this._radius<=0},radius:{get:function(){return this._radius},set:function(l){this._radius=l,this._diameter=l*2}},diameter:{get:function(){return this._diameter},set:function(l){this._diameter=l,this._radius=l*.5}},left:{get:function(){return this.x-this._radius},set:function(l){this.x=l+this._radius}},right:{get:function(){return this.x+this._radius},set:function(l){this.x=l-this._radius}},top:{get:function(){return this.y-this._radius},set:function(l){this.y=l+this._radius}},bottom:{get:function(){return this.y+this._radius},set:function(l){this.y=l-this._radius}}});c.exports=s},71562:c=>{/** + */var d=t(83419),p=t(87902),l=t(26241),r=t(79124),n=t(23777),e=t(28176),s=new d({initialize:function(i,a,u){i===void 0&&(i=0),a===void 0&&(a=0),u===void 0&&(u=0),this.type=n.CIRCLE,this.x=i,this.y=a,this._radius=u,this._diameter=u*2},contains:function(o,i){return p(this,o,i)},getPoint:function(o,i){return l(this,o,i)},getPoints:function(o,i,a){return r(this,o,i,a)},getRandomPoint:function(o){return e(this,o)},setTo:function(o,i,a){return this.x=o,this.y=i,this._radius=a,this._diameter=a*2,this},setEmpty:function(){return this._radius=0,this._diameter=0,this},setPosition:function(o,i){return i===void 0&&(i=o),this.x=o,this.y=i,this},isEmpty:function(){return this._radius<=0},radius:{get:function(){return this._radius},set:function(o){this._radius=o,this._diameter=o*2}},diameter:{get:function(){return this._diameter},set:function(o){this._diameter=o,this._radius=o*.5}},left:{get:function(){return this.x-this._radius},set:function(o){this.x=o+this._radius}},right:{get:function(){return this.x+this._radius},set:function(o){this.x=o-this._radius}},top:{get:function(){return this.y-this._radius},set:function(o){this.y=o+this._radius}},bottom:{get:function(){return this.y+this._radius},set:function(o){this.y=o-this._radius}}});c.exports=s},71562:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2213,23 +2217,23 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=function(a,r,n){return n===void 0&&(n=new d),n.x=a.x+a.radius*Math.cos(r),n.y=a.y+a.radius*Math.sin(r),n};c.exports=p},42250:(c,T,t)=>{/** + */var d=t(2141),p=function(l,r,n){return n===void 0&&(n=new d),n.x=l.x+l.radius*Math.cos(r),n.y=l.y+l.radius*Math.sin(r),n};c.exports=p},42250:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(96503),p=function(a){return new d(a.x,a.y,a.radius)};c.exports=p},87902:c=>{/** + */var d=t(96503),p=function(l){return new d(l.x,l.y,l.radius)};c.exports=p},87902:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){if(t.radius>0&&d>=t.left&&d<=t.right&&p>=t.top&&p<=t.bottom){var a=(t.x-d)*(t.x-d),r=(t.y-p)*(t.y-p);return a+r<=t.radius*t.radius}else return!1};c.exports=T},5698:(c,T,t)=>{/** + */var T=function(t,d,p){if(t.radius>0&&d>=t.left&&d<=t.right&&p>=t.top&&p<=t.bottom){var l=(t.x-d)*(t.x-d),r=(t.y-p)*(t.y-p);return l+r<=t.radius*t.radius}else return!1};c.exports=T},5698:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(87902),p=function(a,r){return d(a,r.x,r.y)};c.exports=p},70588:(c,T,t)=>{/** + */var d=t(87902),p=function(l,r){return d(l,r.x,r.y)};c.exports=p},70588:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(87902),p=function(a,r){return d(a,r.x,r.y)&&d(a,r.right,r.y)&&d(a,r.x,r.bottom)&&d(a,r.right,r.bottom)};c.exports=p},26394:c=>{/** + */var d=t(87902),p=function(l,r){return d(l,r.x,r.y)&&d(l,r.right,r.y)&&d(l,r.x,r.bottom)&&d(l,r.right,r.bottom)};c.exports=p},26394:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2241,15 +2245,15 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(87841),p=function(a,r){return r===void 0&&(r=new d),r.x=a.left,r.y=a.top,r.width=a.diameter,r.height=a.diameter,r};c.exports=p},26241:(c,T,t)=>{/** + */var d=t(87841),p=function(l,r){return r===void 0&&(r=new d),r.x=l.left,r.y=l.top,r.width=l.diameter,r.height=l.diameter,r};c.exports=p},26241:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(92110),p=t(62945),a=t(36383),r=t(2141),n=function(e,s,l){l===void 0&&(l=new r);var i=p(s,0,a.PI2);return d(e,i,l)};c.exports=n},79124:(c,T,t)=>{/** + */var d=t(92110),p=t(62945),l=t(36383),r=t(2141),n=function(e,s,o){o===void 0&&(o=new r);var i=p(s,0,l.PI2);return d(e,i,o)};c.exports=n},79124:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(71562),p=t(92110),a=t(62945),r=t(36383),n=function(e,s,l,i){i===void 0&&(i=[]),!s&&l>0&&(s=d(e)/l);for(var o=0;o{/** + */var d=t(71562),p=t(92110),l=t(62945),r=t(36383),n=function(e,s,o,i){i===void 0&&(i=[]),!s&&o>0&&(s=d(e)/o);for(var a=0;a{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2261,7 +2265,7 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=function(a,r){r===void 0&&(r=new d);var n=2*Math.PI*Math.random(),e=Math.random()+Math.random(),s=e>1?2-e:e,l=s*Math.cos(n),i=s*Math.sin(n);return r.x=a.x+l*a.radius,r.y=a.y+i*a.radius,r};c.exports=p},88911:(c,T,t)=>{/** + */var d=t(2141),p=function(l,r){r===void 0&&(r=new d);var n=2*Math.PI*Math.random(),e=Math.random()+Math.random(),s=e>1?2-e:e,o=s*Math.cos(n),i=s*Math.sin(n);return r.x=l.x+o*l.radius,r.y=l.y+i*l.radius,r};c.exports=p},88911:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2277,27 +2281,27 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t){var d=t.width/2,p=t.height/2,a=Math.pow(d-p,2)/Math.pow(d+p,2);return Math.PI*(d+p)*(1+3*a/(10+Math.sqrt(4-3*a)))};c.exports=T},79522:(c,T,t)=>{/** + */var T=function(t){var d=t.width/2,p=t.height/2,l=Math.pow(d-p,2)/Math.pow(d+p,2);return Math.PI*(d+p)*(1+3*l/(10+Math.sqrt(4-3*l)))};c.exports=T},79522:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=function(a,r,n){n===void 0&&(n=new d);var e=a.width/2,s=a.height/2;return n.x=a.x+e*Math.cos(r),n.y=a.y+s*Math.sin(r),n};c.exports=p},58102:(c,T,t)=>{/** + */var d=t(2141),p=function(l,r,n){n===void 0&&(n=new d);var e=l.width/2,s=l.height/2;return n.x=l.x+e*Math.cos(r),n.y=l.y+s*Math.sin(r),n};c.exports=p},58102:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(8497),p=function(a){return new d(a.x,a.y,a.width,a.height)};c.exports=p},81154:c=>{/** + */var d=t(8497),p=function(l){return new d(l.x,l.y,l.width,l.height)};c.exports=p},81154:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){if(t.width<=0||t.height<=0)return!1;var a=(d-t.x)/t.width,r=(p-t.y)/t.height;return a*=a,r*=r,a+r<.25};c.exports=T},46662:(c,T,t)=>{/** + */var T=function(t,d,p){if(t.width<=0||t.height<=0)return!1;var l=(d-t.x)/t.width,r=(p-t.y)/t.height;return l*=l,r*=r,l+r<.25};c.exports=T},46662:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(81154),p=function(a,r){return d(a,r.x,r.y)};c.exports=p},1632:(c,T,t)=>{/** + */var d=t(81154),p=function(l,r){return d(l,r.x,r.y)};c.exports=p},1632:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(81154),p=function(a,r){return d(a,r.x,r.y)&&d(a,r.right,r.y)&&d(a,r.x,r.bottom)&&d(a,r.right,r.bottom)};c.exports=p},65534:c=>{/** + */var d=t(81154),p=function(l,r){return d(l,r.x,r.y)&&d(l,r.right,r.y)&&d(l,r.x,r.bottom)&&d(l,r.right,r.bottom)};c.exports=p},65534:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2305,7 +2309,7 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(81154),a=t(90549),r=t(48320),n=t(23777),e=t(24820),s=new d({initialize:function(i,o,u,h){i===void 0&&(i=0),o===void 0&&(o=0),u===void 0&&(u=0),h===void 0&&(h=0),this.type=n.ELLIPSE,this.x=i,this.y=o,this.width=u,this.height=h},contains:function(l,i){return p(this,l,i)},getPoint:function(l,i){return a(this,l,i)},getPoints:function(l,i,o){return r(this,l,i,o)},getRandomPoint:function(l){return e(this,l)},setTo:function(l,i,o,u){return this.x=l,this.y=i,this.width=o,this.height=u,this},setEmpty:function(){return this.width=0,this.height=0,this},setPosition:function(l,i){return i===void 0&&(i=l),this.x=l,this.y=i,this},setSize:function(l,i){return i===void 0&&(i=l),this.width=l,this.height=i,this},isEmpty:function(){return this.width<=0||this.height<=0},getMinorRadius:function(){return Math.min(this.width,this.height)/2},getMajorRadius:function(){return Math.max(this.width,this.height)/2},left:{get:function(){return this.x-this.width/2},set:function(l){this.x=l+this.width/2}},right:{get:function(){return this.x+this.width/2},set:function(l){this.x=l-this.width/2}},top:{get:function(){return this.y-this.height/2},set:function(l){this.y=l+this.height/2}},bottom:{get:function(){return this.y+this.height/2},set:function(l){this.y=l-this.height/2}}});c.exports=s},36146:c=>{/** + */var d=t(83419),p=t(81154),l=t(90549),r=t(48320),n=t(23777),e=t(24820),s=new d({initialize:function(i,a,u,h){i===void 0&&(i=0),a===void 0&&(a=0),u===void 0&&(u=0),h===void 0&&(h=0),this.type=n.ELLIPSE,this.x=i,this.y=a,this.width=u,this.height=h},contains:function(o,i){return p(this,o,i)},getPoint:function(o,i){return l(this,o,i)},getPoints:function(o,i,a){return r(this,o,i,a)},getRandomPoint:function(o){return e(this,o)},setTo:function(o,i,a,u){return this.x=o,this.y=i,this.width=a,this.height=u,this},setEmpty:function(){return this.width=0,this.height=0,this},setPosition:function(o,i){return i===void 0&&(i=o),this.x=o,this.y=i,this},setSize:function(o,i){return i===void 0&&(i=o),this.width=o,this.height=i,this},isEmpty:function(){return this.width<=0||this.height<=0},getMinorRadius:function(){return Math.min(this.width,this.height)/2},getMajorRadius:function(){return Math.max(this.width,this.height)/2},left:{get:function(){return this.x-this.width/2},set:function(o){this.x=o+this.width/2}},right:{get:function(){return this.x+this.width/2},set:function(o){this.x=o-this.width/2}},top:{get:function(){return this.y-this.height/2},set:function(o){this.y=o+this.height/2}},bottom:{get:function(){return this.y+this.height/2},set:function(o){this.y=o-this.height/2}}});c.exports=s},36146:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2313,15 +2317,15 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(87841),p=function(a,r){return r===void 0&&(r=new d),r.x=a.left,r.y=a.top,r.width=a.width,r.height=a.height,r};c.exports=p},90549:(c,T,t)=>{/** + */var d=t(87841),p=function(l,r){return r===void 0&&(r=new d),r.x=l.left,r.y=l.top,r.width=l.width,r.height=l.height,r};c.exports=p},90549:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(79522),p=t(62945),a=t(36383),r=t(2141),n=function(e,s,l){l===void 0&&(l=new r);var i=p(s,0,a.PI2);return d(e,i,l)};c.exports=n},48320:(c,T,t)=>{/** + */var d=t(79522),p=t(62945),l=t(36383),r=t(2141),n=function(e,s,o){o===void 0&&(o=new r);var i=p(s,0,l.PI2);return d(e,i,o)};c.exports=n},48320:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(92990),p=t(79522),a=t(62945),r=t(36383),n=function(e,s,l,i){i===void 0&&(i=[]),!s&&l>0&&(s=d(e)/l);for(var o=0;o{/** + */var d=t(92990),p=t(79522),l=t(62945),r=t(36383),n=function(e,s,o,i){i===void 0&&(i=[]),!s&&o>0&&(s=d(e)/o);for(var a=0;a{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2333,7 +2337,7 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=function(a,r){r===void 0&&(r=new d);var n=Math.random()*Math.PI*2,e=Math.sqrt(Math.random());return r.x=a.x+e*Math.cos(n)*a.width/2,r.y=a.y+e*Math.sin(n)*a.height/2,r};c.exports=p},49203:(c,T,t)=>{/** + */var d=t(2141),p=function(l,r){r===void 0&&(r=new d);var n=Math.random()*Math.PI*2,e=Math.sqrt(Math.random());return r.x=l.x+e*Math.cos(n)*l.width/2,r.y=l.y+e*Math.sin(n)*l.height/2,r};c.exports=p},49203:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2341,101 +2345,101 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(23777),p=t(79291),a={Circle:t(88911),Ellipse:t(49203),Intersects:t(91865),Line:t(2529),Mesh:t(73090),Point:t(43711),Polygon:t(58423),Rectangle:t(93232),Triangle:t(84435)};a=p(!1,a,d),c.exports=a},2044:(c,T,t)=>{/** + */var d=t(23777),p=t(79291),l={Circle:t(88911),Ellipse:t(49203),Intersects:t(91865),Line:t(2529),Mesh:t(73090),Point:t(43711),Polygon:t(58423),Rectangle:t(93232),Triangle:t(84435)};l=p(!1,l,d),c.exports=l},2044:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(20339),p=function(a,r){return d(a.x,a.y,r.x,r.y)<=a.radius+r.radius};c.exports=p},81491:c=>{/** + */var d=t(20339),p=function(l,r){return d(l.x,l.y,r.x,r.y)<=l.radius+r.radius};c.exports=p},81491:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d){var p=d.width/2,a=d.height/2,r=Math.abs(t.x-d.x-p),n=Math.abs(t.y-d.y-a),e=p+t.radius,s=a+t.radius;if(r>e||n>s)return!1;if(r<=p||n<=a)return!0;var l=r-p,i=n-a,o=l*l,u=i*i,h=t.radius*t.radius;return o+u<=h};c.exports=T},63376:(c,T,t)=>{/** + */var T=function(t,d){var p=d.width/2,l=d.height/2,r=Math.abs(t.x-d.x-p),n=Math.abs(t.y-d.y-l),e=p+t.radius,s=l+t.radius;if(r>e||n>s)return!1;if(r<=p||n<=l)return!0;var o=r-p,i=n-l,a=o*o,u=i*i,h=t.radius*t.radius;return a+u<=h};c.exports=T},63376:(c,T,t)=>{/** * @author Florian Vazelle * @author Geoffrey Glaive * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=t(2044),a=function(r,n,e){if(e===void 0&&(e=[]),p(r,n)){var s=r.x,l=r.y,i=r.radius,o=n.x,u=n.y,h=n.radius,f,v,m,x,g;if(l===u)g=(h*h-i*i-o*o+s*s)/(2*(s-o)),f=1,v=-2*u,m=o*o+g*g-2*o*g+u*u-h*h,x=v*v-4*f*m,x===0?e.push(new d(g,-v/(2*f))):x>0&&(e.push(new d(g,(-v+Math.sqrt(x))/(2*f))),e.push(new d(g,(-v-Math.sqrt(x))/(2*f))));else{var y=(s-o)/(l-u),S=(h*h-i*i-o*o+s*s-u*u+l*l)/(2*(l-u));f=y*y+1,v=2*l*y-2*S*y-2*s,m=s*s+l*l+S*S-i*i-2*l*S,x=v*v-4*f*m,x===0?(g=-v/(2*f),e.push(new d(g,S-g*y))):x>0&&(g=(-v+Math.sqrt(x))/(2*f),e.push(new d(g,S-g*y)),g=(-v-Math.sqrt(x))/(2*f),e.push(new d(g,S-g*y)))}}return e};c.exports=a},97439:(c,T,t)=>{/** + */var d=t(2141),p=t(2044),l=function(r,n,e){if(e===void 0&&(e=[]),p(r,n)){var s=r.x,o=r.y,i=r.radius,a=n.x,u=n.y,h=n.radius,f,v,m,g,x;if(o===u)x=(h*h-i*i-a*a+s*s)/(2*(s-a)),f=1,v=-2*u,m=a*a+x*x-2*a*x+u*u-h*h,g=v*v-4*f*m,g===0?e.push(new d(x,-v/(2*f))):g>0&&(e.push(new d(x,(-v+Math.sqrt(g))/(2*f))),e.push(new d(x,(-v-Math.sqrt(g))/(2*f))));else{var y=(s-a)/(o-u),S=(h*h-i*i-a*a+s*s-u*u+o*o)/(2*(o-u));f=y*y+1,v=2*o*y-2*S*y-2*s,m=s*s+o*o+S*S-i*i-2*o*S,g=v*v-4*f*m,g===0?(x=-v/(2*f),e.push(new d(x,S-x*y))):g>0&&(x=(-v+Math.sqrt(g))/(2*f),e.push(new d(x,S-x*y)),x=(-v-Math.sqrt(g))/(2*f),e.push(new d(x,S-x*y)))}}return e};c.exports=l},97439:(c,T,t)=>{/** * @author Florian Vazelle * @author Geoffrey Glaive * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(4042),p=t(81491),a=function(r,n,e){if(e===void 0&&(e=[]),p(r,n)){var s=n.getLineA(),l=n.getLineB(),i=n.getLineC(),o=n.getLineD();d(s,r,e),d(l,r,e),d(i,r,e),d(o,r,e)}return e};c.exports=a},4042:(c,T,t)=>{/** + */var d=t(4042),p=t(81491),l=function(r,n,e){if(e===void 0&&(e=[]),p(r,n)){var s=n.getLineA(),o=n.getLineB(),i=n.getLineC(),a=n.getLineD();d(s,r,e),d(o,r,e),d(i,r,e),d(a,r,e)}return e};c.exports=l},4042:(c,T,t)=>{/** * @author Florian Vazelle * @author Geoffrey Glaive * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=t(80462),a=function(r,n,e){if(e===void 0&&(e=[]),p(r,n)){var s=r.x1,l=r.y1,i=r.x2,o=r.y2,u=n.x,h=n.y,f=n.radius,v=i-s,m=o-l,x=s-u,g=l-h,y=v*v+m*m,S=2*(v*x+m*g),C=x*x+g*g-f*f,E=S*S-4*y*C,A,P;if(E===0){var M=-S/(2*y);A=s+M*v,P=l+M*m,M>=0&&M<=1&&e.push(new d(A,P))}else if(E>0){var F=(-S-Math.sqrt(E))/(2*y);A=s+F*v,P=l+F*m,F>=0&&F<=1&&e.push(new d(A,P));var L=(-S+Math.sqrt(E))/(2*y);A=s+L*v,P=l+L*m,L>=0&&L<=1&&e.push(new d(A,P))}}return e};c.exports=a},36100:(c,T,t)=>{/** + */var d=t(2141),p=t(80462),l=function(r,n,e){if(e===void 0&&(e=[]),p(r,n)){var s=r.x1,o=r.y1,i=r.x2,a=r.y2,u=n.x,h=n.y,f=n.radius,v=i-s,m=a-o,g=s-u,x=o-h,y=v*v+m*m,S=2*(v*g+m*x),C=g*g+x*x-f*f,E=S*S-4*y*C,M,P;if(E===0){var A=-S/(2*y);M=s+A*v,P=o+A*m,A>=0&&A<=1&&e.push(new d(M,P))}else if(E>0){var R=(-S-Math.sqrt(E))/(2*y);M=s+R*v,P=o+R*m,R>=0&&R<=1&&e.push(new d(M,P));var F=(-S+Math.sqrt(E))/(2*y);M=s+F*v,P=o+F*m,F>=0&&F<=1&&e.push(new d(M,P))}}return e};c.exports=l},36100:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(25836),p=function(a,r,n,e){n===void 0&&(n=!1);var s=a.x1,l=a.y1,i=a.x2,o=a.y2,u=r.x1,h=r.y1,f=r.x2,v=r.y2,m=i-s,x=o-l,g=f-u,y=v-h,S=m*y-x*g;if(S===0)return null;var C,E,A;if(n){if(C=(m*(h-l)+x*(s-u))/(g*x-y*m),E=(u+g*C-s)/m,E<0||C<0||C>1)return null;A=E}else{if(C=((u-s)*y-(h-l)*g)/S,E=((l-h)*m-(s-u)*x)/S,C<0||C>1||E<0||E>1)return null;A=C}return e===void 0&&(e=new d),e.set(s+m*A,l+x*A,A)};c.exports=p},3073:(c,T,t)=>{/** + */var d=t(25836),p=function(l,r,n,e){n===void 0&&(n=!1);var s=l.x1,o=l.y1,i=l.x2,a=l.y2,u=r.x1,h=r.y1,f=r.x2,v=r.y2,m=i-s,g=a-o,x=f-u,y=v-h,S=m*y-g*x;if(S===0)return null;var C,E,M;if(n){if(C=(m*(h-o)+g*(s-u))/(x*g-y*m),m!==0)E=(u+x*C-s)/m;else if(g!==0)E=(h+y*C-o)/g;else return null;if(E<0||C<0||C>1)return null;M=E}else{if(C=((u-s)*y-(h-o)*x)/S,E=((o-h)*m-(s-u)*g)/S,C<0||C>1||E<0||E>1)return null;M=C}return e===void 0&&(e=new d),e.set(s+m*M,o+g*M,M)};c.exports=p},3073:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(36100),p=t(23031),a=t(25836),r=new p,n=new a,e=function(s,l,i,o){i===void 0&&(i=!1),o===void 0&&(o=new a);var u=!1;o.set(),n.set();for(var h=l[l.length-1],f=0;f{/** + */var d=t(36100),p=t(23031),l=t(25836),r=new p,n=new l,e=function(s,o,i,a){i===void 0&&(i=!1),a===void 0&&(a=new l);var u=!1;a.set(),n.set();for(var h=o[o.length-1],f=0;f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(25836),p=t(61369),a=t(3073),r=new d,n=function(e,s,l,i){i===void 0&&(i=new p),Array.isArray(s)||(s=[s]);var o=!1;i.set(),r.set();for(var u=0;u{/** + */var d=t(25836),p=t(61369),l=t(3073),r=new d,n=function(e,s,o,i){i===void 0&&(i=new p),Array.isArray(s)||(s=[s]);var a=!1;i.set(),r.set();for(var u=0;u{/** * @author Florian Vazelle * @author Geoffrey Glaive * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=t(76112),a=t(92773),r=function(n,e,s){if(s===void 0&&(s=[]),a(n,e))for(var l=e.getLineA(),i=e.getLineB(),o=e.getLineC(),u=e.getLineD(),h=[new d,new d,new d,new d],f=[p(l,n,h[0]),p(i,n,h[1]),p(o,n,h[2]),p(u,n,h[3])],v=0;v<4;v++)f[v]&&s.push(h[v]);return s};c.exports=r},71147:(c,T,t)=>{/** + */var d=t(2141),p=t(76112),l=t(92773),r=function(n,e,s){if(s===void 0&&(s=[]),l(n,e))for(var o=e.getLineA(),i=e.getLineB(),a=e.getLineC(),u=e.getLineD(),h=[new d,new d,new d,new d],f=[p(o,n,h[0]),p(i,n,h[1]),p(a,n,h[2]),p(u,n,h[3])],v=0;v<4;v++)f[v]&&s.push(h[v]);return s};c.exports=r},71147:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(61369),p=t(56362),a=t(23031),r=new a;function n(l,i,o,u,h){var f=Math.cos(l),v=Math.sin(l);r.setTo(i,o,i+f,o+v);var m=p(r,u,!0);m&&h.push(new d(m.x,m.y,l,m.w))}function e(l,i){return l.z-i.z}var s=function(l,i,o){Array.isArray(o)||(o=[o]);for(var u=[],h=[],f=0;f{/** + */var d=t(61369),p=t(56362),l=t(23031),r=new l;function n(o,i,a,u,h){var f=Math.cos(o),v=Math.sin(o);r.setTo(i,a,i+f,a+v);var m=p(r,u,!0);m&&h.push(new d(m.x,m.y,o,m.w))}function e(o,i){return o.z-i.z}var s=function(o,i,a){Array.isArray(a)||(a=[a]);for(var u=[],h=[],f=0;f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(87841),p=t(59996),a=function(r,n,e){return e===void 0&&(e=new d),p(r,n)&&(e.x=Math.max(r.x,n.x),e.y=Math.max(r.y,n.y),e.width=Math.min(r.right,n.right)-e.x,e.height=Math.min(r.bottom,n.bottom)-e.y),e};c.exports=a},52784:(c,T,t)=>{/** + */var d=t(87841),p=t(59996),l=function(r,n,e){return e===void 0&&(e=new d),p(r,n)&&(e.x=Math.max(r.x,n.x),e.y=Math.max(r.y,n.y),e.width=Math.min(r.right,n.right)-e.x,e.height=Math.min(r.bottom,n.bottom)-e.y),e};c.exports=l},52784:(c,T,t)=>{/** * @author Florian Vazelle * @author Geoffrey Glaive * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(60646),p=t(59996),a=function(r,n,e){if(e===void 0&&(e=[]),p(r,n)){var s=r.getLineA(),l=r.getLineB(),i=r.getLineC(),o=r.getLineD();d(s,n,e),d(l,n,e),d(i,n,e),d(o,n,e)}return e};c.exports=a},26341:(c,T,t)=>{/** + */var d=t(60646),p=t(59996),l=function(r,n,e){if(e===void 0&&(e=[]),p(r,n)){var s=r.getLineA(),o=r.getLineB(),i=r.getLineC(),a=r.getLineD();d(s,n,e),d(o,n,e),d(i,n,e),d(a,n,e)}return e};c.exports=l},26341:(c,T,t)=>{/** * @author Florian Vazelle * @author Geoffrey Glaive * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(89265),p=t(60646),a=function(r,n,e){if(e===void 0&&(e=[]),d(r,n)){var s=n.getLineA(),l=n.getLineB(),i=n.getLineC();p(s,r,e),p(l,r,e),p(i,r,e)}return e};c.exports=a},38720:(c,T,t)=>{/** + */var d=t(89265),p=t(60646),l=function(r,n,e){if(e===void 0&&(e=[]),d(r,n)){var s=n.getLineA(),o=n.getLineB(),i=n.getLineC();p(s,r,e),p(o,r,e),p(i,r,e)}return e};c.exports=l},38720:(c,T,t)=>{/** * @author Florian Vazelle * @author Geoffrey Glaive * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(4042),p=t(67636),a=function(r,n,e){if(e===void 0&&(e=[]),p(r,n)){var s=r.getLineA(),l=r.getLineB(),i=r.getLineC();d(s,n,e),d(l,n,e),d(i,n,e)}return e};c.exports=a},13882:(c,T,t)=>{/** + */var d=t(4042),p=t(67636),l=function(r,n,e){if(e===void 0&&(e=[]),p(r,n)){var s=r.getLineA(),o=r.getLineB(),i=r.getLineC();d(s,n,e),d(o,n,e),d(i,n,e)}return e};c.exports=l},13882:(c,T,t)=>{/** * @author Florian Vazelle * @author Geoffrey Glaive * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=t(2822),a=t(76112),r=function(n,e,s){if(s===void 0&&(s=[]),p(n,e))for(var l=n.getLineA(),i=n.getLineB(),o=n.getLineC(),u=[new d,new d,new d],h=[a(l,e,u[0]),a(i,e,u[1]),a(o,e,u[2])],f=0;f<3;f++)h[f]&&s.push(u[f]);return s};c.exports=r},75636:(c,T,t)=>{/** + */var d=t(2141),p=t(2822),l=t(76112),r=function(n,e,s){if(s===void 0&&(s=[]),p(n,e))for(var o=n.getLineA(),i=n.getLineB(),a=n.getLineC(),u=[new d,new d,new d],h=[l(o,e,u[0]),l(i,e,u[1]),l(a,e,u[2])],f=0;f<3;f++)h[f]&&s.push(u[f]);return s};c.exports=r},75636:(c,T,t)=>{/** * @author Florian Vazelle * @author Geoffrey Glaive * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(82944),p=t(13882),a=function(r,n,e){if(e===void 0&&(e=[]),d(r,n)){var s=n.getLineA(),l=n.getLineB(),i=n.getLineC();p(r,s,e),p(r,l,e),p(r,i,e)}return e};c.exports=a},80462:(c,T,t)=>{/** + */var d=t(82944),p=t(13882),l=function(r,n,e){if(e===void 0&&(e=[]),d(r,n)){var s=n.getLineA(),o=n.getLineB(),i=n.getLineC();p(r,s,e),p(r,o,e),p(r,i,e)}return e};c.exports=l},80462:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(87902),p=t(2141),a=new p,r=function(n,e,s){if(s===void 0&&(s=a),d(e,n.x1,n.y1))return s.x=n.x1,s.y=n.y1,!0;if(d(e,n.x2,n.y2))return s.x=n.x2,s.y=n.y2,!0;var l=n.x2-n.x1,i=n.y2-n.y1,o=e.x-n.x1,u=e.y-n.y1,h=l*l+i*i,f=l,v=i;if(h>0){var m=(o*l+u*i)/h;f*=m,v*=m}s.x=n.x1+f,s.y=n.y1+v;var x=f*f+v*v;return x<=h&&f*l+v*i>=0&&d(e,s.x,s.y)};c.exports=r},76112:c=>{/** + */var d=t(87902),p=t(2141),l=new p,r=function(n,e,s){if(s===void 0&&(s=l),d(e,n.x1,n.y1))return s.x=n.x1,s.y=n.y1,!0;if(d(e,n.x2,n.y2))return s.x=n.x2,s.y=n.y2,!0;var o=n.x2-n.x1,i=n.y2-n.y1,a=e.x-n.x1,u=e.y-n.y1,h=o*o+i*i,f=o,v=i;if(h>0){var m=(a*o+u*i)/h;f*=m,v*=m}s.x=n.x1+f,s.y=n.y1+v;var g=f*f+v*v;return g<=h&&f*o+v*i>=0&&d(e,s.x,s.y)};c.exports=r},76112:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){var a=t.x1,r=t.y1,n=t.x2,e=t.y2,s=d.x1,l=d.y1,i=d.x2,o=d.y2;if(a===n&&r===e||s===i&&l===o)return!1;var u=(o-l)*(n-a)-(i-s)*(e-r);if(u===0)return!1;var h=((i-s)*(r-l)-(o-l)*(a-s))/u,f=((n-a)*(r-l)-(e-r)*(a-s))/u;return h<0||h>1||f<0||f>1?!1:(p&&(p.x=a+h*(n-a),p.y=r+h*(e-r)),!0)};c.exports=T},92773:c=>{/** + */var T=function(t,d,p){var l=t.x1,r=t.y1,n=t.x2,e=t.y2,s=d.x1,o=d.y1,i=d.x2,a=d.y2;if(l===n&&r===e||s===i&&o===a)return!1;var u=(a-o)*(n-l)-(i-s)*(e-r);if(u===0)return!1;var h=((i-s)*(r-o)-(a-o)*(l-s))/u,f=((n-l)*(r-o)-(e-r)*(l-s))/u;return h<0||h>1||f<0||f>1?!1:(p&&(p.x=l+h*(n-l),p.y=r+h*(e-r)),!0)};c.exports=T},92773:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d){var p=t.x1,a=t.y1,r=t.x2,n=t.y2,e=d.x,s=d.y,l=d.right,i=d.bottom,o=0;if(p>=e&&p<=l&&a>=s&&a<=i||r>=e&&r<=l&&n>=s&&n<=i)return!0;if(p=e){if(o=a+(n-a)*(e-p)/(r-p),o>s&&o<=i)return!0}else if(p>l&&r<=l&&(o=a+(n-a)*(l-p)/(r-p),o>=s&&o<=i))return!0;if(a=s){if(o=p+(r-p)*(s-a)/(n-a),o>=e&&o<=l)return!0}else if(a>i&&n<=i&&(o=p+(r-p)*(i-a)/(n-a),o>=e&&o<=l))return!0;return!1};c.exports=T},16204:c=>{/** + */var T=function(t,d){var p=t.x1,l=t.y1,r=t.x2,n=t.y2,e=d.x,s=d.y,o=d.right,i=d.bottom,a=0;if(p>=e&&p<=o&&l>=s&&l<=i||r>=e&&r<=o&&n>=s&&n<=i)return!0;if(p=e){if(a=l+(n-l)*(e-p)/(r-p),a>s&&a<=i)return!0}else if(p>o&&r<=o&&(a=l+(n-l)*(o-p)/(r-p),a>=s&&a<=i))return!0;if(l=s){if(a=p+(r-p)*(s-l)/(n-l),a>=e&&a<=o)return!0}else if(l>i&&n<=i&&(a=p+(r-p)*(i-l)/(n-l),a>=e&&a<=o))return!0;return!1};c.exports=T},16204:c=>{/** * @author Richard Davey * @author Florian Mertens * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){p===void 0&&(p=1);var a=d.x1,r=d.y1,n=d.x2,e=d.y2,s=t.x,l=t.y,i=(n-a)*(n-a)+(e-r)*(e-r);if(i===0)return!1;var o=((s-a)*(n-a)+(l-r)*(e-r))/i;if(o<0)return Math.sqrt((a-s)*(a-s)+(r-l)*(r-l))<=p;if(o>=0&&o<=1){var u=((r-l)*(n-a)-(a-s)*(e-r))/i;return Math.abs(u)*Math.sqrt(i)<=p}else return Math.sqrt((n-s)*(n-s)+(e-l)*(e-l))<=p};c.exports=T},14199:(c,T,t)=>{/** + */var T=function(t,d,p){p===void 0&&(p=1);var l=d.x1,r=d.y1,n=d.x2,e=d.y2,s=t.x,o=t.y,i=(n-l)*(n-l)+(e-r)*(e-r);if(i===0)return!1;var a=((s-l)*(n-l)+(o-r)*(e-r))/i;if(a<0)return Math.sqrt((l-s)*(l-s)+(r-o)*(r-o))<=p;if(a>=0&&a<=1){var u=((r-o)*(n-l)-(l-s)*(e-r))/i;return Math.abs(u)*Math.sqrt(i)<=p}else return Math.sqrt((n-s)*(n-s)+(e-o)*(e-o))<=p};c.exports=T},14199:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(16204),p=function(a,r){if(!d(a,r))return!1;var n=Math.min(r.x1,r.x2),e=Math.max(r.x1,r.x2),s=Math.min(r.y1,r.y2),l=Math.max(r.y1,r.y2);return a.x>=n&&a.x<=e&&a.y>=s&&a.y<=l};c.exports=p},59996:c=>{/** + */var d=t(16204),p=function(l,r){if(!d(l,r))return!1;var n=Math.min(r.x1,r.x2),e=Math.max(r.x1,r.x2),s=Math.min(r.y1,r.y2),o=Math.max(r.y1,r.y2);return l.x>=n&&l.x<=e&&l.y>=s&&l.y<=o};c.exports=p},59996:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2443,23 +2447,23 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(76112),p=t(37303),a=t(48653),r=t(77493),n=function(e,s){if(s.left>e.right||s.righte.bottom||s.bottom0};c.exports=n},84411:c=>{/** + */var d=t(76112),p=t(37303),l=t(48653),r=t(77493),n=function(e,s){if(s.left>e.right||s.righte.bottom||s.bottom0};c.exports=n},84411:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a,r,n){return n===void 0&&(n=0),!(d>t.right+n||pt.bottom+n||r{/** + */var T=function(t,d,p,l,r,n){return n===void 0&&(n=0),!(d>t.right+n||pt.bottom+n||r{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(80462),p=t(10690),a=function(r,n){return r.left>n.right||r.rightn.bottom||r.bottom{/** + */var d=t(80462),p=t(10690),l=function(r,n){return r.left>n.right||r.rightn.bottom||r.bottom{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(76112),p=function(a,r){return!!(a.contains(r.x1,r.y1)||a.contains(r.x2,r.y2)||d(a.getLineA(),r)||d(a.getLineB(),r)||d(a.getLineC(),r))};c.exports=p},82944:(c,T,t)=>{/** + */var d=t(76112),p=function(l,r){return!!(l.contains(r.x1,r.y1)||l.contains(r.x2,r.y2)||d(l.getLineA(),r)||d(l.getLineB(),r)||d(l.getLineC(),r))};c.exports=p},82944:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(48653),p=t(71694),a=t(76112),r=function(n,e){if(n.left>e.right||n.righte.bottom||n.bottom0||(f=p(e),v=d(n,f,!0),v.length>0)};c.exports=r},91865:(c,T,t)=>{/** + */var d=t(48653),p=t(71694),l=t(76112),r=function(n,e){if(n.left>e.right||n.righte.bottom||n.bottom0||(f=p(e),v=d(n,f,!0),v.length>0)};c.exports=r},91865:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2471,15 +2475,15 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){d===void 0&&(d=1),p===void 0&&(p=[]);var a=Math.round(t.x1),r=Math.round(t.y1),n=Math.round(t.x2),e=Math.round(t.y2),s=Math.abs(n-a),l=Math.abs(e-r),i=a-l&&(u-=l,a+=i),f{/** + */var T=function(t,d,p){d===void 0&&(d=1),p===void 0&&(p=[]);var l=Math.round(t.x1),r=Math.round(t.y1),n=Math.round(t.x2),e=Math.round(t.y2),s=Math.abs(n-l),o=Math.abs(e-r),i=l-o&&(u-=o,l+=i),f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){var a=d-(t.x1+t.x2)/2,r=p-(t.y1+t.y2)/2;return t.x1+=a,t.y1+=r,t.x2+=a,t.y2+=r,t};c.exports=T},31116:(c,T,t)=>{/** + */var T=function(t,d,p){var l=d-(t.x1+t.x2)/2,r=p-(t.y1+t.y2)/2;return t.x1+=l,t.y1+=r,t.x2+=l,t.y2+=r,t};c.exports=T},31116:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(23031),p=function(a){return new d(a.x1,a.y1,a.x2,a.y2)};c.exports=p},59944:c=>{/** + */var d=t(23031),p=function(l){return new d(l.x1,l.y1,l.x2,l.y2)};c.exports=p},59944:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2491,37 +2495,37 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(35001),p=function(a,r,n){n===void 0&&(n=r);var e=d(a),s=a.x2-a.x1,l=a.y2-a.y1;return r&&(a.x1=a.x1-s/e*r,a.y1=a.y1-l/e*r),n&&(a.x2=a.x2+s/e*n,a.y2=a.y2+l/e*n),a};c.exports=p},26708:(c,T,t)=>{/** + */var d=t(35001),p=function(l,r,n){n===void 0&&(n=r);var e=d(l),s=l.x2-l.x1,o=l.y2-l.y1;return r&&(l.x1=l.x1-s/e*r,l.y1=l.y1-o/e*r),n&&(l.x2=l.x2+s/e*n,l.y2=l.y2+o/e*n),l};c.exports=p},26708:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(52816),p=t(6113),a=t(2141),r=function(n,e,s,l,i){l===void 0&&(l=0),i===void 0&&(i=[]);var o=[],u=n.x1,h=n.y1,f=n.x2-u,v=n.y2-h,m=p(e,i),x,g,y=s-1;for(x=0;x0){var S=o[0],C=[S];for(x=1;x=l&&(C.push(E),S=E)}var A=o[o.length-1];return d(S,A){/** + */var d=t(52816),p=t(6113),l=t(2141),r=function(n,e,s,o,i){o===void 0&&(o=0),i===void 0&&(i=[]);var a=[],u=n.x1,h=n.y1,f=n.x2-u,v=n.y2-h,m=p(e,i),g,x,y=s-1;for(g=0;g0){var S=a[0],C=[S];for(g=1;g=o&&(C.push(E),S=E)}var M=a[a.length-1];return d(S,M){/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=function(a,r){return r===void 0&&(r=new d),r.x=(a.x1+a.x2)/2,r.y=(a.y1+a.y2)/2,r};c.exports=p},99569:(c,T,t)=>{/** + */var d=t(2141),p=function(l,r){return r===void 0&&(r=new d),r.x=(l.x1+l.x2)/2,r.y=(l.y1+l.y2)/2,r};c.exports=p},99569:(c,T,t)=>{/** * @author Richard Davey * @author Florian Mertens * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=function(a,r,n){n===void 0&&(n=new d);var e=a.x1,s=a.y1,l=a.x2,i=a.y2,o=(l-e)*(l-e)+(i-s)*(i-s);if(o===0)return n;var u=((r.x-e)*(l-e)+(r.y-s)*(i-s))/o;return n.x=e+u*(l-e),n.y=s+u*(i-s),n};c.exports=p},34638:(c,T,t)=>{/** + */var d=t(2141),p=function(l,r,n){n===void 0&&(n=new d);var e=l.x1,s=l.y1,o=l.x2,i=l.y2,a=(o-e)*(o-e)+(i-s)*(i-s);if(a===0)return n;var u=((r.x-e)*(o-e)+(r.y-s)*(i-s))/a;return n.x=e+u*(o-e),n.y=s+u*(i-s),n};c.exports=p},34638:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(36383),p=t(91938),a=t(2141),r=function(n,e){e===void 0&&(e=new a);var s=p(n)-d.TAU;return e.x=Math.cos(s),e.y=Math.sin(s),e};c.exports=r},13151:(c,T,t)=>{/** + */var d=t(36383),p=t(91938),l=t(2141),r=function(n,e){e===void 0&&(e=new l);var s=p(n)-d.TAU;return e.x=Math.cos(s),e.y=Math.sin(s),e};c.exports=r},13151:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=function(a,r,n){return n===void 0&&(n=new d),n.x=a.x1+(a.x2-a.x1)*r,n.y=a.y1+(a.y2-a.y1)*r,n};c.exports=p},15258:(c,T,t)=>{/** + */var d=t(2141),p=function(l,r,n){return n===void 0&&(n=new d),n.x=l.x1+(l.x2-l.x1)*r,n.y=l.y1+(l.y2-l.y1)*r,n};c.exports=p},15258:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(35001),p=t(2141),a=function(r,n,e,s){s===void 0&&(s=[]),!n&&e>0&&(n=d(r)/e);for(var l=r.x1,i=r.y1,o=r.x2,u=r.y2,h=0;h{/** + */var d=t(35001),p=t(2141),l=function(r,n,e,s){s===void 0&&(s=[]),!n&&e>0&&(n=d(r)/e);for(var o=r.x1,i=r.y1,a=r.x2,u=r.y2,h=0;h{/** * @author Richard Davey * @author Florian Mertens * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d){var p=t.x1,a=t.y1,r=t.x2,n=t.y2,e=(r-p)*(r-p)+(n-a)*(n-a);if(e===0)return!1;var s=((a-d.y)*(r-p)-(p-d.x)*(n-a))/e;return Math.abs(s)*Math.sqrt(e)};c.exports=T},98770:c=>{/** + */var T=function(t,d){var p=t.x1,l=t.y1,r=t.x2,n=t.y2,e=(r-p)*(r-p)+(n-l)*(n-l);if(e===0)return!1;var s=((l-d.y)*(r-p)-(p-d.x)*(n-l))/e;return Math.abs(s)*Math.sqrt(e)};c.exports=T},98770:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2533,19 +2537,19 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(13151),a=t(15258),r=t(23777),n=t(65822),e=t(26099),s=new d({initialize:function(i,o,u,h){i===void 0&&(i=0),o===void 0&&(o=0),u===void 0&&(u=0),h===void 0&&(h=0),this.type=r.LINE,this.x1=i,this.y1=o,this.x2=u,this.y2=h},getPoint:function(l,i){return p(this,l,i)},getPoints:function(l,i,o){return a(this,l,i,o)},getRandomPoint:function(l){return n(this,l)},setTo:function(l,i,o,u){return l===void 0&&(l=0),i===void 0&&(i=0),o===void 0&&(o=0),u===void 0&&(u=0),this.x1=l,this.y1=i,this.x2=o,this.y2=u,this},setFromObjects:function(l,i){return this.x1=l.x,this.y1=l.y,this.x2=i.x,this.y2=i.y,this},getPointA:function(l){return l===void 0&&(l=new e),l.set(this.x1,this.y1),l},getPointB:function(l){return l===void 0&&(l=new e),l.set(this.x2,this.y2),l},left:{get:function(){return Math.min(this.x1,this.x2)},set:function(l){this.x1<=this.x2?this.x1=l:this.x2=l}},right:{get:function(){return Math.max(this.x1,this.x2)},set:function(l){this.x1>this.x2?this.x1=l:this.x2=l}},top:{get:function(){return Math.min(this.y1,this.y2)},set:function(l){this.y1<=this.y2?this.y1=l:this.y2=l}},bottom:{get:function(){return Math.max(this.y1,this.y2)},set:function(l){this.y1>this.y2?this.y1=l:this.y2=l}}});c.exports=s},64795:(c,T,t)=>{/** + */var d=t(83419),p=t(13151),l=t(15258),r=t(23777),n=t(65822),e=t(26099),s=new d({initialize:function(i,a,u,h){i===void 0&&(i=0),a===void 0&&(a=0),u===void 0&&(u=0),h===void 0&&(h=0),this.type=r.LINE,this.x1=i,this.y1=a,this.x2=u,this.y2=h},getPoint:function(o,i){return p(this,o,i)},getPoints:function(o,i,a){return l(this,o,i,a)},getRandomPoint:function(o){return n(this,o)},setTo:function(o,i,a,u){return o===void 0&&(o=0),i===void 0&&(i=0),a===void 0&&(a=0),u===void 0&&(u=0),this.x1=o,this.y1=i,this.x2=a,this.y2=u,this},setFromObjects:function(o,i){return this.x1=o.x,this.y1=o.y,this.x2=i.x,this.y2=i.y,this},getPointA:function(o){return o===void 0&&(o=new e),o.set(this.x1,this.y1),o},getPointB:function(o){return o===void 0&&(o=new e),o.set(this.x2,this.y2),o},left:{get:function(){return Math.min(this.x1,this.x2)},set:function(o){this.x1<=this.x2?this.x1=o:this.x2=o}},right:{get:function(){return Math.max(this.x1,this.x2)},set:function(o){this.x1>this.x2?this.x1=o:this.x2=o}},top:{get:function(){return Math.min(this.y1,this.y2)},set:function(o){this.y1<=this.y2?this.y1=o:this.y2=o}},bottom:{get:function(){return Math.max(this.y1,this.y2)},set:function(o){this.y1>this.y2?this.y1=o:this.y2=o}}});c.exports=s},64795:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(36383),p=t(15994),a=t(91938),r=function(n){var e=a(n)-d.TAU;return p(e,-Math.PI,Math.PI)};c.exports=r},52616:(c,T,t)=>{/** + */var d=t(36383),p=t(15994),l=t(91938),r=function(n){var e=l(n)-d.TAU;return p(e,-Math.PI,Math.PI)};c.exports=r},52616:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(36383),p=t(91938),a=function(r){return Math.cos(p(r)-d.TAU)};c.exports=a},87231:(c,T,t)=>{/** + */var d=t(36383),p=t(91938),l=function(r){return Math.cos(p(r)-d.TAU)};c.exports=l},87231:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(36383),p=t(91938),a=function(r){return Math.sin(p(r)-d.TAU)};c.exports=a},89662:c=>{/** + */var d=t(36383),p=t(91938),l=function(r){return Math.sin(p(r)-d.TAU)};c.exports=l},89662:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2557,27 +2561,27 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=function(a,r){r===void 0&&(r=new d);var n=Math.random();return r.x=a.x1+n*(a.x2-a.x1),r.y=a.y1+n*(a.y2-a.y1),r};c.exports=p},69777:(c,T,t)=>{/** + */var d=t(2141),p=function(l,r){r===void 0&&(r=new d);var n=Math.random();return r.x=l.x1+n*(l.x2-l.x1),r.y=l.y1+n*(l.y2-l.y1),r};c.exports=p},69777:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91938),p=t(64795),a=function(r,n){return 2*p(n)-Math.PI-d(r)};c.exports=a},39706:(c,T,t)=>{/** + */var d=t(91938),p=t(64795),l=function(r,n){return 2*p(n)-Math.PI-d(r)};c.exports=l},39706:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(64400),p=function(a,r){var n=(a.x1+a.x2)/2,e=(a.y1+a.y2)/2;return d(a,n,e,r)};c.exports=p},82585:(c,T,t)=>{/** + */var d=t(64400),p=function(l,r){var n=(l.x1+l.x2)/2,e=(l.y1+l.y2)/2;return d(l,n,e,r)};c.exports=p},82585:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(64400),p=function(a,r,n){return d(a,r.x,r.y,n)};c.exports=p},64400:c=>{/** + */var d=t(64400),p=function(l,r,n){return d(l,r.x,r.y,n)};c.exports=p},64400:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){var r=Math.cos(a),n=Math.sin(a),e=t.x1-d,s=t.y1-p;return t.x1=e*r-s*n+d,t.y1=e*n+s*r+p,e=t.x2-d,s=t.y2-p,t.x2=e*r-s*n+d,t.y2=e*n+s*r+p,t};c.exports=T},62377:c=>{/** + */var T=function(t,d,p,l){var r=Math.cos(l),n=Math.sin(l),e=t.x1-d,s=t.y1-p;return t.x1=e*r-s*n+d,t.y1=e*n+s*r+p,e=t.x2-d,s=t.y2-p,t.x2=e*r-s*n+d,t.y2=e*n+s*r+p,t};c.exports=T},62377:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a,r){return t.x1=d,t.y1=p,t.x2=d+Math.cos(a)*r,t.y2=p+Math.sin(a)*r,t};c.exports=T},71366:c=>{/** + */var T=function(t,d,p,l,r){return t.x1=d,t.y1=p,t.x2=d+Math.cos(l)*r,t.y2=p+Math.sin(l)*r,t};c.exports=T},71366:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2593,37 +2597,37 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(87841),a=t(26099);function r(e,s,l,i){var o=e-l,u=s-i,h=o*o+u*u;return Math.sqrt(h)}var n=new d({initialize:function(s,l,i){this.vertex1=s,this.vertex2=l,this.vertex3=i,this.bounds=new p,this._inCenter=new a},getInCenter:function(e){e===void 0&&(e=!0);var s=this.vertex1,l=this.vertex2,i=this.vertex3,o,u,h,f,v,m;e?(o=s.x,u=s.y,h=l.x,f=l.y,v=i.x,m=i.y):(o=s.vx,u=s.vy,h=l.vx,f=l.vy,v=i.vx,m=i.vy);var x=r(v,m,h,f),g=r(o,u,v,m),y=r(h,f,o,u),S=x+g+y;return this._inCenter.set((o*x+h*g+v*y)/S,(u*x+f*g+m*y)/S)},contains:function(e,s,l){var i=this.vertex1,o=this.vertex2,u=this.vertex3,h=i.vx,f=i.vy,v=o.vx,m=o.vy,x=u.vx,g=u.vy;if(l){var y=l.a,S=l.b,C=l.c,E=l.d,A=l.e,P=l.f;h=i.vx*y+i.vy*C+A,f=i.vx*S+i.vy*E+P,v=o.vx*y+o.vy*C+A,m=o.vx*S+o.vy*E+P,x=u.vx*y+u.vy*C+A,g=u.vx*S+u.vy*E+P}var M=x-h,F=g-f,L=v-h,b=m-f,B=e-h,N=s-f,X=M*M+F*F,D=M*L+F*b,I=M*B+F*N,R=L*L+b*b,O=L*B+b*N,w=X*R-D*D,G=w===0?0:1/w,U=(R*I-D*O)*G,z=(X*O-D*I)*G;return U>=0&&z>=0&&U+z<1},isCounterClockwise:function(e){var s=this.vertex1,l=this.vertex2,i=this.vertex3,o=(l.vx-s.vx)*(i.vy-s.vy)-(l.vy-s.vy)*(i.vx-s.vx);return e<=0?o>=0:o<0},load:function(e,s,l,i,o){return l=this.vertex1.load(e,s,l,i,o),l=this.vertex2.load(e,s,l,i,o),l=this.vertex3.load(e,s,l,i,o),l},transformCoordinatesLocal:function(e,s,l,i){return this.vertex1.transformCoordinatesLocal(e,s,l,i),this.vertex2.transformCoordinatesLocal(e,s,l,i),this.vertex3.transformCoordinatesLocal(e,s,l,i),this},updateBounds:function(){var e=this.vertex1,s=this.vertex2,l=this.vertex3,i=this.bounds;return i.x=Math.min(e.vx,s.vx,l.vx),i.y=Math.min(e.vy,s.vy,l.vy),i.width=Math.max(e.vx,s.vx,l.vx)-i.x,i.height=Math.max(e.vy,s.vy,l.vy)-i.y,this},isInView:function(e,s,l,i,o,u,h,f,v,m,x){this.update(i,o,u,h,f,v,m,x);var g=this.vertex1,y=this.vertex2,S=this.vertex3;if(g.ta<=0&&y.ta<=0&&S.ta<=0||s&&!this.isCounterClockwise(l))return!1;var C=this.bounds;C.x=Math.min(g.tx,y.tx,S.tx),C.y=Math.min(g.ty,y.ty,S.ty),C.width=Math.max(g.tx,y.tx,S.tx)-C.x,C.height=Math.max(g.ty,y.ty,S.ty)-C.y;var E=e.x+e.width,A=e.y+e.height;return C.width<=0||C.height<=0||e.width<=0||e.height<=0?!1:!(C.rightE||C.y>A)},scrollUV:function(e,s){return this.vertex1.scrollUV(e,s),this.vertex2.scrollUV(e,s),this.vertex3.scrollUV(e,s),this},scaleUV:function(e,s){return this.vertex1.scaleUV(e,s),this.vertex2.scaleUV(e,s),this.vertex3.scaleUV(e,s),this},setColor:function(e){return this.vertex1.color=e,this.vertex2.color=e,this.vertex3.color=e,this},update:function(e,s,l,i,o,u,h,f){return this.vertex1.update(s,l,i,o,u,h,f,e),this.vertex2.update(s,l,i,o,u,h,f,e),this.vertex3.update(s,l,i,o,u,h,f,e),this},translate:function(e,s){s===void 0&&(s=0);var l=this.vertex1,i=this.vertex2,o=this.vertex3;return l.x+=e,l.y+=s,i.x+=e,i.y+=s,o.x+=e,o.y+=s,this},x:{get:function(){return this.getInCenter().x},set:function(e){var s=this.getInCenter();this.translate(e-s.x,0)}},y:{get:function(){return this.getInCenter().y},set:function(e){var s=this.getInCenter();this.translate(0,e-s.y)}},alpha:{get:function(){var e=this.vertex1,s=this.vertex2,l=this.vertex3;return(e.alpha+s.alpha+l.alpha)/3},set:function(e){this.vertex1.alpha=e,this.vertex2.alpha=e,this.vertex3.alpha=e}},depth:{get:function(){var e=this.vertex1,s=this.vertex2,l=this.vertex3;return(e.vz+s.vz+l.vz)/3}},destroy:function(){this.vertex1=null,this.vertex2=null,this.vertex3=null}});c.exports=n},48803:(c,T,t)=>{/** + */var d=t(83419),p=t(87841),l=t(26099);function r(e,s,o,i){var a=e-o,u=s-i,h=a*a+u*u;return Math.sqrt(h)}var n=new d({initialize:function(s,o,i){this.vertex1=s,this.vertex2=o,this.vertex3=i,this.bounds=new p,this._inCenter=new l},getInCenter:function(e){e===void 0&&(e=!0);var s=this.vertex1,o=this.vertex2,i=this.vertex3,a,u,h,f,v,m;e?(a=s.x,u=s.y,h=o.x,f=o.y,v=i.x,m=i.y):(a=s.vx,u=s.vy,h=o.vx,f=o.vy,v=i.vx,m=i.vy);var g=r(v,m,h,f),x=r(a,u,v,m),y=r(h,f,a,u),S=g+x+y;return this._inCenter.set((a*g+h*x+v*y)/S,(u*g+f*x+m*y)/S)},contains:function(e,s,o){var i=this.vertex1,a=this.vertex2,u=this.vertex3,h=i.vx,f=i.vy,v=a.vx,m=a.vy,g=u.vx,x=u.vy;if(o){var y=o.a,S=o.b,C=o.c,E=o.d,M=o.e,P=o.f;h=i.vx*y+i.vy*C+M,f=i.vx*S+i.vy*E+P,v=a.vx*y+a.vy*C+M,m=a.vx*S+a.vy*E+P,g=u.vx*y+u.vy*C+M,x=u.vx*S+u.vy*E+P}var A=g-h,R=x-f,F=v-h,D=m-f,w=e-h,G=s-f,N=A*A+R*R,b=A*F+R*D,B=A*w+R*G,O=F*F+D*D,L=F*w+D*G,I=N*O-b*b,U=I===0?0:1/I,X=(O*B-b*L)*U,z=(N*L-b*B)*U;return X>=0&&z>=0&&X+z<1},isCounterClockwise:function(e){var s=this.vertex1,o=this.vertex2,i=this.vertex3,a=(o.vx-s.vx)*(i.vy-s.vy)-(o.vy-s.vy)*(i.vx-s.vx);return e<=0?a>=0:a<0},load:function(e,s,o,i,a){return o=this.vertex1.load(e,s,o,i,a),o=this.vertex2.load(e,s,o,i,a),o=this.vertex3.load(e,s,o,i,a),o},transformCoordinatesLocal:function(e,s,o,i){return this.vertex1.transformCoordinatesLocal(e,s,o,i),this.vertex2.transformCoordinatesLocal(e,s,o,i),this.vertex3.transformCoordinatesLocal(e,s,o,i),this},updateBounds:function(){var e=this.vertex1,s=this.vertex2,o=this.vertex3,i=this.bounds;return i.x=Math.min(e.vx,s.vx,o.vx),i.y=Math.min(e.vy,s.vy,o.vy),i.width=Math.max(e.vx,s.vx,o.vx)-i.x,i.height=Math.max(e.vy,s.vy,o.vy)-i.y,this},isInView:function(e,s,o,i,a,u,h,f,v,m,g){this.update(i,a,u,h,f,v,m,g);var x=this.vertex1,y=this.vertex2,S=this.vertex3;if(x.ta<=0&&y.ta<=0&&S.ta<=0||s&&!this.isCounterClockwise(o))return!1;var C=this.bounds;C.x=Math.min(x.tx,y.tx,S.tx),C.y=Math.min(x.ty,y.ty,S.ty),C.width=Math.max(x.tx,y.tx,S.tx)-C.x,C.height=Math.max(x.ty,y.ty,S.ty)-C.y;var E=e.x+e.width,M=e.y+e.height;return C.width<=0||C.height<=0||e.width<=0||e.height<=0?!1:!(C.rightE||C.y>M)},scrollUV:function(e,s){return this.vertex1.scrollUV(e,s),this.vertex2.scrollUV(e,s),this.vertex3.scrollUV(e,s),this},scaleUV:function(e,s){return this.vertex1.scaleUV(e,s),this.vertex2.scaleUV(e,s),this.vertex3.scaleUV(e,s),this},setColor:function(e){return this.vertex1.color=e,this.vertex2.color=e,this.vertex3.color=e,this},update:function(e,s,o,i,a,u,h,f){return this.vertex1.update(s,o,i,a,u,h,f,e),this.vertex2.update(s,o,i,a,u,h,f,e),this.vertex3.update(s,o,i,a,u,h,f,e),this},translate:function(e,s){s===void 0&&(s=0);var o=this.vertex1,i=this.vertex2,a=this.vertex3;return o.x+=e,o.y+=s,i.x+=e,i.y+=s,a.x+=e,a.y+=s,this},x:{get:function(){return this.getInCenter().x},set:function(e){var s=this.getInCenter();this.translate(e-s.x,0)}},y:{get:function(){return this.getInCenter().y},set:function(e){var s=this.getInCenter();this.translate(0,e-s.y)}},alpha:{get:function(){var e=this.vertex1,s=this.vertex2,o=this.vertex3;return(e.alpha+s.alpha+o.alpha)/3},set:function(e){this.vertex1.alpha=e,this.vertex2.alpha=e,this.vertex3.alpha=e}},depth:{get:function(){var e=this.vertex1,s=this.vertex2,o=this.vertex3;return(e.vz+s.vz+o.vz)/3}},destroy:function(){this.vertex1=null,this.vertex2=null,this.vertex3=null}});c.exports=n},48803:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83997),p=t(95540),a=t(37867),r=t(25836),n=t(39318),e=new r,s=new r,l=new a,i=function(o){var u=p(o,"mesh"),h=p(o,"texture",null),f=p(o,"frame"),v=p(o,"width",1),m=p(o,"height",v),x=p(o,"widthSegments",1),g=p(o,"heightSegments",x),y=p(o,"x",0),S=p(o,"y",0),C=p(o,"z",0),E=p(o,"rotateX",0),A=p(o,"rotateY",0),P=p(o,"rotateZ",0),M=p(o,"zIsUp",!0),F=p(o,"isOrtho",u?u.dirtyCache[11]:!1),L=p(o,"colors",[16777215]),b=p(o,"alphas",[1]),B=p(o,"tile",!1),N=p(o,"flipY",!1),X=p(o,"width",null),D={faces:[],verts:[]};e.set(y,S,C),s.set(E,A,P),l.fromRotationXYTranslation(s,e,M);var I;if(!h&&u)h=u.texture,f||(I=u.frame);else if(u&&typeof h=="string")h=u.scene.sys.textures.get(h);else if(!h)return D;I||(I=h.get(f)),!X&&F&&h&&u&&(v=I.width/u.height,m=I.height/u.height);var R=v/2,O=m/2,w=Math.floor(x),G=Math.floor(g),U=w+1,z=G+1,V=v/w,Y=m/G,W=[],H=[],K,Q,Z=0,_=1,rt=0,ot=1;I&&(Z=I.u0,_=I.u1,N?(rt=I.v1,ot=I.v0):(rt=I.v0,ot=I.v1));var at=_-Z,j=ot-rt;for(Q=0;Q{/** + */var d=t(83997),p=t(95540),l=t(37867),r=t(25836),n=t(39318),e=new r,s=new r,o=new l,i=function(a){var u=p(a,"mesh"),h=p(a,"texture",null),f=p(a,"frame"),v=p(a,"width",1),m=p(a,"height",v),g=p(a,"widthSegments",1),x=p(a,"heightSegments",g),y=p(a,"x",0),S=p(a,"y",0),C=p(a,"z",0),E=p(a,"rotateX",0),M=p(a,"rotateY",0),P=p(a,"rotateZ",0),A=p(a,"zIsUp",!0),R=p(a,"isOrtho",u?u.dirtyCache[11]:!1),F=p(a,"colors",[16777215]),D=p(a,"alphas",[1]),w=p(a,"tile",!1),G=p(a,"flipY",!1),N=p(a,"width",null),b={faces:[],verts:[]};e.set(y,S,C),s.set(E,M,P),o.fromRotationXYTranslation(s,e,A);var B;if(!h&&u)h=u.texture,f||(B=u.frame);else if(u&&typeof h=="string")h=u.scene.sys.textures.get(h);else if(!h)return b;B||(B=h.get(f)),!N&&R&&h&&u&&(v=B.width/u.height,m=B.height/u.height);var O=v/2,L=m/2,I=Math.floor(g),U=Math.floor(x),X=I+1,z=U+1,V=v/I,Y=m/U,W=[],H=[],K,j,Z=0,_=1,rt=0,at=1;B&&(Z=B.u0,_=B.u1,G?(rt=B.v1,at=B.v0):(rt=B.v0,at=B.v1));var ot=_-Z,Q=at-rt;for(j=0;j{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83997),p=t(37867),a=t(25836),r=t(39318),n=new a,e=new a,s=new p,l=function(i,o,u,h,f,v,m,x,g,y){u===void 0&&(u=1),h===void 0&&(h=0),f===void 0&&(f=0),v===void 0&&(v=0),m===void 0&&(m=0),x===void 0&&(x=0),g===void 0&&(g=0),y===void 0&&(y=!0);var S={faces:[],verts:[]},C=i.materials;n.set(h,f,v),e.set(m,x,g),s.fromRotationXYTranslation(e,n,y);for(var E=0;E{/** + */var d=t(83997),p=t(37867),l=t(25836),r=t(39318),n=new l,e=new l,s=new p,o=function(i,a,u,h,f,v,m,g,x,y){u===void 0&&(u=1),h===void 0&&(h=0),f===void 0&&(f=0),v===void 0&&(v=0),m===void 0&&(m=0),g===void 0&&(g=0),x===void 0&&(x=0),y===void 0&&(y=!0);var S={faces:[],verts:[]},C=i.materials;n.set(h,f,v),e.set(m,g,x),s.fromRotationXYTranslation(e,n,y);for(var E=0;E{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83997),p=t(39318),a=function(r,n,e,s,l,i,o,u){if(s===void 0&&(s=!1),i===void 0&&(i=16777215),o===void 0&&(o=1),u===void 0&&(u=!1),r.length!==n.length&&!s){console.warn("GenerateVerts: vertices and uvs count not equal");return}var h={faces:[],vertices:[]},f,v,m,x,g,y,S,C,E,A,P,M=s?3:2,F=Array.isArray(i),L=Array.isArray(o);if(Array.isArray(e)&&e.length>0)for(f=0;f{/** + */var d=t(83997),p=t(39318),l=function(r,n,e,s,o,i,a,u){if(s===void 0&&(s=!1),i===void 0&&(i=16777215),a===void 0&&(a=1),u===void 0&&(u=!1),r.length!==n.length&&!s){console.warn("GenerateVerts: vertices and uvs count not equal");return}var h={faces:[],vertices:[]},f,v,m,g,x,y,S,C,E,M,P,A=s?3:2,R=Array.isArray(i),F=Array.isArray(a);if(Array.isArray(e)&&e.length>0)for(f=0;f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=!0,t="untitled",d="",p="";function a(v){var m=v.indexOf("#");return m>-1?v.substring(0,m):v}function r(v){return v.models.length===0&&v.models.push({faces:[],name:t,textureCoords:[],vertexNormals:[],vertices:[]}),d="",v.models[v.models.length-1]}function n(v,m){var x=v.length>=2?v[1]:t;m.models.push({faces:[],name:x,textureCoords:[],vertexNormals:[],vertices:[]}),d=""}function e(v){v.length===2&&(d=v[1])}function s(v,m){var x=v.length,g=x>=2?parseFloat(v[1]):0,y=x>=3?parseFloat(v[2]):0,S=x>=4?parseFloat(v[3]):0;r(m).vertices.push({x:g,y,z:S})}function l(v,m){var x=v.length,g=x>=2?parseFloat(v[1]):0,y=x>=3?parseFloat(v[2]):0,S=x>=4?parseFloat(v[3]):0;isNaN(g)&&(g=0),isNaN(y)&&(y=0),isNaN(S)&&(S=0),T&&(y=1-y),r(m).textureCoords.push({u:g,v:y,w:S})}function i(v,m){var x=v.length,g=x>=2?parseFloat(v[1]):0,y=x>=3?parseFloat(v[2]):0,S=x>=4?parseFloat(v[3]):0;r(m).vertexNormals.push({x:g,y,z:S})}function o(v,m){var x=v.length-1;if(!(x<3)){for(var g={group:d,material:p,vertices:[]},y=0;y3)){var A=0,P=0,M=0;A=parseInt(C[0],10),E>1&&C[1]!==""&&(P=parseInt(C[1],10)),E>2&&(M=parseInt(C[2],10)),A!==0&&(A<0&&(A=r(m).vertices.length+1+A),P-=1,A-=1,M-=1,g.vertices.push({textureCoordsIndex:P,vertexIndex:A,vertexNormalIndex:M}))}}r(m).faces.push(g)}}function u(v,m){v.length>=2&&m.materialLibraries.push(v[1])}function h(v){v.length>=2&&(p=v[1])}var f=function(v,m){m===void 0&&(m=!0),T=m;var x={materials:{},materialLibraries:[],models:[]};d="",p="";for(var g=v.split(` -`),y=0;y{/** + */var T=!0,t="untitled",d="",p="";function l(v){var m=v.indexOf("#");return m>-1?v.substring(0,m):v}function r(v){return v.models.length===0&&v.models.push({faces:[],name:t,textureCoords:[],vertexNormals:[],vertices:[]}),d="",v.models[v.models.length-1]}function n(v,m){var g=v.length>=2?v[1]:t;m.models.push({faces:[],name:g,textureCoords:[],vertexNormals:[],vertices:[]}),d=""}function e(v){v.length===2&&(d=v[1])}function s(v,m){var g=v.length,x=g>=2?parseFloat(v[1]):0,y=g>=3?parseFloat(v[2]):0,S=g>=4?parseFloat(v[3]):0;r(m).vertices.push({x,y,z:S})}function o(v,m){var g=v.length,x=g>=2?parseFloat(v[1]):0,y=g>=3?parseFloat(v[2]):0,S=g>=4?parseFloat(v[3]):0;isNaN(x)&&(x=0),isNaN(y)&&(y=0),isNaN(S)&&(S=0),T&&(y=1-y),r(m).textureCoords.push({u:x,v:y,w:S})}function i(v,m){var g=v.length,x=g>=2?parseFloat(v[1]):0,y=g>=3?parseFloat(v[2]):0,S=g>=4?parseFloat(v[3]):0;r(m).vertexNormals.push({x,y,z:S})}function a(v,m){var g=v.length-1;if(!(g<3)){for(var x={group:d,material:p,vertices:[]},y=0;y3)){var M=0,P=0,A=0;M=parseInt(C[0],10),E>1&&C[1]!==""&&(P=parseInt(C[1],10)),E>2&&(A=parseInt(C[2],10)),M!==0&&(M<0&&(M=r(m).vertices.length+1+M),P-=1,M-=1,A-=1,x.vertices.push({textureCoordsIndex:P,vertexIndex:M,vertexNormalIndex:A}))}}r(m).faces.push(x)}}function u(v,m){v.length>=2&&m.materialLibraries.push(v[1])}function h(v){v.length>=2&&(p=v[1])}var f=function(v,m){m===void 0&&(m=!0),T=m;var g={materials:{},materialLibraries:[],models:[]};d="",p="";for(var x=v.split(` +`),y=0;y{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(37589),p=function(a){for(var r={},n=a.split(` -`),e="",s=0;s=2?Math.floor(i[2]*255):o,h=i.length>=3?Math.floor(i[3]*255):o;r[e]=d(o,u,h);break}}}}return r};c.exports=p},92570:c=>{/** + */var d=t(37589),p=function(l){for(var r={},n=l.split(` +`),e="",s=0;s=2?Math.floor(i[2]*255):a,h=i.length>=3?Math.floor(i[3]*255):a;r[e]=d(a,u,h);break}}}}return r};c.exports=p},92570:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){var r,n;if(p===void 0&&a===void 0){var e=t.getInCenter();r=e.x,n=e.y}var s=Math.cos(d),l=Math.sin(d),i=t.vertex1,o=t.vertex2,u=t.vertex3,h=i.x-r,f=i.y-n;i.set(h*s-f*l+r,h*l+f*s+n),h=o.x-r,f=o.y-n,o.set(h*s-f*l+r,h*l+f*s+n),h=u.x-r,f=u.y-n,u.set(h*s-f*l+r,h*l+f*s+n)};c.exports=T},39318:(c,T,t)=>{/** + */var T=function(t,d,p,l){var r,n;if(p===void 0&&l===void 0){var e=t.getInCenter();r=e.x,n=e.y}var s=Math.cos(d),o=Math.sin(d),i=t.vertex1,a=t.vertex2,u=t.vertex3,h=i.x-r,f=i.y-n;i.set(h*s-f*o+r,h*o+f*s+n),h=a.x-r,f=a.y-n,a.set(h*s-f*o+r,h*o+f*s+n),h=u.x-r,f=u.y-n,u.set(h*s-f*o+r,h*o+f*s+n)};c.exports=T},39318:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(70554),a=t(25836),r=new d({Extends:a,initialize:function(e,s,l,i,o,u,h,f,v,m){u===void 0&&(u=16777215),h===void 0&&(h=1),f===void 0&&(f=0),v===void 0&&(v=0),m===void 0&&(m=0),a.call(this,e,s,l),this.vx=0,this.vy=0,this.vz=0,this.nx=f,this.ny=v,this.nz=m,this.u=i,this.v=o,this.color=u,this.alpha=h,this.tx=0,this.ty=0,this.ta=0,this.tu=i,this.tv=o},setUVs:function(n,e){return this.u=n,this.v=e,this.tu=n,this.tv=e,this},scrollUV:function(n,e){return this.tu+=n,this.tv+=e,this},scaleUV:function(n,e){return this.tu=this.u*n,this.tv=this.v*e,this},transformCoordinatesLocal:function(n,e,s,l){var i=this.x,o=this.y,u=this.z,h=n.val,f=i*h[0]+o*h[4]+u*h[8]+h[12],v=i*h[1]+o*h[5]+u*h[9]+h[13],m=i*h[2]+o*h[6]+u*h[10]+h[14],x=i*h[3]+o*h[7]+u*h[11]+h[15];this.vx=f/x*e,this.vy=-(v/x)*s,l<=0?this.vz=m/x:this.vz=-(m/x)},resize:function(n,e,s,l,i,o){return this.x=n,this.y=e,this.vx=this.x*s,this.vy=-this.y*l,this.vz=0,i<.5?this.vx+=s*(.5-i):i>.5&&(this.vx-=s*(i-.5)),o<.5?this.vy+=l*(.5-o):o>.5&&(this.vy-=l*(o-.5)),this},update:function(n,e,s,l,i,o,u,h){var f=this.vx*n+this.vy*s+i,v=this.vx*e+this.vy*l+o;return u&&(f=Math.round(f),v=Math.round(v)),this.tx=f,this.ty=v,this.ta=this.alpha*h,this},load:function(n,e,s,l,i){return n[++s]=this.tx,n[++s]=this.ty,n[++s]=this.tu,n[++s]=this.tv,n[++s]=l,n[++s]=i,e[++s]=p.getTintAppendFloatAlpha(this.color,this.ta),s}});c.exports=r},73090:(c,T,t)=>{/** + */var d=t(83419),p=t(70554),l=t(25836),r=new d({Extends:l,initialize:function(e,s,o,i,a,u,h,f,v,m){u===void 0&&(u=16777215),h===void 0&&(h=1),f===void 0&&(f=0),v===void 0&&(v=0),m===void 0&&(m=0),l.call(this,e,s,o),this.vx=0,this.vy=0,this.vz=0,this.nx=f,this.ny=v,this.nz=m,this.u=i,this.v=a,this.color=u,this.alpha=h,this.tx=0,this.ty=0,this.ta=0,this.tu=i,this.tv=a},setUVs:function(n,e){return this.u=n,this.v=e,this.tu=n,this.tv=e,this},scrollUV:function(n,e){return this.tu+=n,this.tv+=e,this},scaleUV:function(n,e){return this.tu=this.u*n,this.tv=this.v*e,this},transformCoordinatesLocal:function(n,e,s,o){var i=this.x,a=this.y,u=this.z,h=n.val,f=i*h[0]+a*h[4]+u*h[8]+h[12],v=i*h[1]+a*h[5]+u*h[9]+h[13],m=i*h[2]+a*h[6]+u*h[10]+h[14],g=i*h[3]+a*h[7]+u*h[11]+h[15];this.vx=f/g*e,this.vy=-(v/g)*s,o<=0?this.vz=m/g:this.vz=-(m/g)},resize:function(n,e,s,o,i,a){return this.x=n,this.y=e,this.vx=this.x*s,this.vy=-this.y*o,this.vz=0,i<.5?this.vx+=s*(.5-i):i>.5&&(this.vx-=s*(i-.5)),a<.5?this.vy+=o*(.5-a):a>.5&&(this.vy-=o*(a-.5)),this},update:function(n,e,s,o,i,a,u,h){var f=this.vx*n+this.vy*s+i,v=this.vx*e+this.vy*o+a;return u&&(f=Math.round(f),v=Math.round(v)),this.tx=f,this.ty=v,this.ta=this.alpha*h,this},load:function(n,e,s,o,i){return n[++s]=this.tx,n[++s]=this.ty,n[++s]=this.tu,n[++s]=this.tv,n[++s]=o,n[++s]=i,e[++s]=p.getTintAppendFloatAlpha(this.color,this.ta),s}});c.exports=r},73090:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2635,7 +2639,7 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=function(a){return new d(a.x,a.y)};c.exports=p},68010:c=>{/** + */var d=t(2141),p=function(l){return new d(l.x,l.y)};c.exports=p},68010:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2651,7 +2655,7 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=function(a,r){if(r===void 0&&(r=new d),!Array.isArray(a))throw new Error("GetCentroid points argument must be an array");var n=a.length;if(n<1)throw new Error("GetCentroid points array must not be empty");if(n===1)r.x=a[0].x,r.y=a[0].y;else{for(var e=0;e{/** + */var d=t(2141),p=function(l,r){if(r===void 0&&(r=new d),!Array.isArray(l))throw new Error("GetCentroid points argument must be an array");var n=l.length;if(n<1)throw new Error("GetCentroid points array must not be empty");if(n===1)r.x=l[0].x,r.y=l[0].y;else{for(var e=0;e{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2663,11 +2667,11 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(87841),p=function(a,r){r===void 0&&(r=new d);for(var n=Number.NEGATIVE_INFINITY,e=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY,l=Number.POSITIVE_INFINITY,i=0;in&&(n=o.x),o.xs&&(s=o.y),o.y{/** + */var d=t(87841),p=function(l,r){r===void 0&&(r=new d);for(var n=Number.NEGATIVE_INFINITY,e=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY,i=0;in&&(n=a.x),a.xs&&(s=a.y),a.y{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=function(a,r,n,e){return n===void 0&&(n=0),e===void 0&&(e=new d),e.x=a.x+(r.x-a.x)*n,e.y=a.y+(r.y-a.y)*n,e};c.exports=p},55767:c=>{/** + */var d=t(2141),p=function(l,r,n,e){return n===void 0&&(n=0),e===void 0&&(e=new d),e.x=l.x+(r.x-l.x)*n,e.y=l.y+(r.y-l.y)*n,e};c.exports=p},55767:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2675,23 +2679,23 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=function(a,r){return r===void 0&&(r=new d),r.setTo(-a.x,-a.y)};c.exports=p},2141:(c,T,t)=>{/** + */var d=t(2141),p=function(l,r){return r===void 0&&(r=new d),r.setTo(-l.x,-l.y)};c.exports=p},2141:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(23777),a=new d({initialize:function(n,e){n===void 0&&(n=0),e===void 0&&(e=n),this.type=p.POINT,this.x=n,this.y=e},setTo:function(r,n){return r===void 0&&(r=0),n===void 0&&(n=r),this.x=r,this.y=n,this}});c.exports=a},72930:(c,T,t)=>{/** + */var d=t(83419),p=t(23777),l=new d({initialize:function(n,e){n===void 0&&(n=0),e===void 0&&(e=n),this.type=p.POINT,this.x=n,this.y=e},setTo:function(r,n){return r===void 0&&(r=0),n===void 0&&(n=r),this.x=r,this.y=n,this}});c.exports=l},72930:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=t(44405),a=function(r,n,e){e===void 0&&(e=new d);var s=r.x*n.x+r.y*n.y,l=s/p(n);return l!==0&&(e.x=l*n.x,e.y=l*n.y),e};c.exports=a},62880:(c,T,t)=>{/** + */var d=t(2141),p=t(44405),l=function(r,n,e){e===void 0&&(e=new d);var s=r.x*n.x+r.y*n.y,o=s/p(n);return o!==0&&(e.x=o*n.x,e.y=o*n.y),e};c.exports=l},62880:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=function(a,r,n){n===void 0&&(n=new d);var e=a.x*r.x+a.y*r.y;return e!==0&&(n.x=e*r.x,n.y=e*r.y),n};c.exports=p},15093:(c,T,t)=>{/** + */var d=t(2141),p=function(l,r,n){n===void 0&&(n=new d);var e=l.x*r.x+l.y*r.y;return e!==0&&(n.x=e*r.x,n.y=e*r.y),n};c.exports=p},15093:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(28793),p=function(a,r){if(a.x!==0||a.y!==0){var n=d(a);a.x/=n,a.y/=n}return a.x*=r,a.y*=r,a};c.exports=p},43711:(c,T,t)=>{/** + */var d=t(28793),p=function(l,r){if(l.x!==0||l.y!==0){var n=d(l);l.x/=n,l.y/=n}return l.x*=r,l.y*=r,l};c.exports=p},43711:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2699,23 +2703,23 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(25717),p=function(a){return new d(a.points)};c.exports=p},63814:c=>{/** + */var d=t(25717),p=function(l){return new d(l.points)};c.exports=p},63814:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){for(var a=!1,r=-1,n=t.points.length-1;++r{/** + */var T=function(t,d,p){for(var l=!1,r=-1,n=t.points.length-1;++r{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(63814),p=function(a,r){return d(a,r.x,r.y)};c.exports=p},94811:c=>{/** + */var d=t(63814),p=function(l,r){return d(l,r.x,r.y)};c.exports=p},94811:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */function T(D,I,R){R=R||2;var O=I&&I.length,w=O?I[0]*R:D.length,G=t(D,0,w,R,!0),U=[];if(!G||G.next===G.prev)return U;var z,V,Y,W,H,K,Q;if(O&&(G=s(D,I,G,R)),D.length>80*R){z=Y=D[0],V=W=D[1];for(var Z=R;ZY&&(Y=H),K>W&&(W=K);Q=Math.max(Y-z,W-V),Q=Q!==0?32767/Q:0}return p(G,U,R,z,V,Q,0),U}function t(D,I,R,O,w){var G,U;if(w===X(D,I,R,O)>0)for(G=I;G=I;G-=O)U=b(G,D[G],D[G+1],U);return U&&S(U,U.next)&&(B(U),U=U.next),U}function d(D,I){if(!D)return D;I||(I=D);var R=D,O;do if(O=!1,!R.steiner&&(S(R,R.next)||y(R.prev,R,R.next)===0)){if(B(R),R=I=R.prev,R===R.next)break;O=!0}else R=R.next;while(O||R!==I);return I}function p(D,I,R,O,w,G,U){if(D){!U&&G&&h(D,O,w,G);for(var z=D,V,Y;D.prev!==D.next;){if(V=D.prev,Y=D.next,G?r(D,O,w,G):a(D)){I.push(V.i/R|0),I.push(D.i/R|0),I.push(Y.i/R|0),B(D),D=Y.next,z=Y.next;continue}if(D=Y,D===z){U?U===1?(D=n(d(D),I,R),p(D,I,R,O,w,G,2)):U===2&&e(D,I,R,O,w,G):p(d(D),I,R,O,w,G,1);break}}}}function a(D){var I=D.prev,R=D,O=D.next;if(y(I,R,O)>=0)return!1;for(var w=I.x,G=R.x,U=O.x,z=I.y,V=R.y,Y=O.y,W=wG?w>U?w:U:G>U?G:U,Q=z>V?z>Y?z:Y:V>Y?V:Y,Z=O.next;Z!==I;){if(Z.x>=W&&Z.x<=K&&Z.y>=H&&Z.y<=Q&&x(w,z,G,V,U,Y,Z.x,Z.y)&&y(Z.prev,Z,Z.next)>=0)return!1;Z=Z.next}return!0}function r(D,I,R,O){var w=D.prev,G=D,U=D.next;if(y(w,G,U)>=0)return!1;for(var z=w.x,V=G.x,Y=U.x,W=w.y,H=G.y,K=U.y,Q=zV?z>Y?z:Y:V>Y?V:Y,rt=W>H?W>K?W:K:H>K?H:K,ot=v(Q,Z,I,R,O),at=v(_,rt,I,R,O),j=D.prevZ,st=D.nextZ;j&&j.z>=ot&&st&&st.z<=at;){if(j.x>=Q&&j.x<=_&&j.y>=Z&&j.y<=rt&&j!==w&&j!==U&&x(z,W,V,H,Y,K,j.x,j.y)&&y(j.prev,j,j.next)>=0||(j=j.prevZ,st.x>=Q&&st.x<=_&&st.y>=Z&&st.y<=rt&&st!==w&&st!==U&&x(z,W,V,H,Y,K,st.x,st.y)&&y(st.prev,st,st.next)>=0))return!1;st=st.nextZ}for(;j&&j.z>=ot;){if(j.x>=Q&&j.x<=_&&j.y>=Z&&j.y<=rt&&j!==w&&j!==U&&x(z,W,V,H,Y,K,j.x,j.y)&&y(j.prev,j,j.next)>=0)return!1;j=j.prevZ}for(;st&&st.z<=at;){if(st.x>=Q&&st.x<=_&&st.y>=Z&&st.y<=rt&&st!==w&&st!==U&&x(z,W,V,H,Y,K,st.x,st.y)&&y(st.prev,st,st.next)>=0)return!1;st=st.nextZ}return!0}function n(D,I,R){var O=D;do{var w=O.prev,G=O.next.next;!S(w,G)&&C(w,O,O.next,G)&&M(w,G)&&M(G,w)&&(I.push(w.i/R|0),I.push(O.i/R|0),I.push(G.i/R|0),B(O),B(O.next),O=D=G),O=O.next}while(O!==D);return d(O)}function e(D,I,R,O,w,G){var U=D;do{for(var z=U.next.next;z!==U.prev;){if(U.i!==z.i&&g(U,z)){var V=L(U,z);U=d(U,U.next),V=d(V,V.next),p(U,I,R,O,w,G,0),p(V,I,R,O,w,G,0);return}z=z.next}U=U.next}while(U!==D)}function s(D,I,R,O){var w=[],G,U,z,V,Y;for(G=0,U=I.length;G=R.next.y&&R.next.y!==R.y){var z=R.x+(w-R.y)*(R.next.x-R.x)/(R.next.y-R.y);if(z<=O&&z>G&&(G=z,U=R.x=R.x&&R.x>=Y&&O!==R.x&&x(wU.x||R.x===U.x&&u(U,R)))&&(U=R,H=K)),R=R.next;while(R!==V);return U}function u(D,I){return y(D.prev,D,I.prev)<0&&y(I.next,D,D.next)<0}function h(D,I,R,O){var w=D;do w.z===0&&(w.z=v(w.x,w.y,I,R,O)),w.prevZ=w.prev,w.nextZ=w.next,w=w.next;while(w!==D);w.prevZ.nextZ=null,w.prevZ=null,f(w)}function f(D){var I,R,O,w,G,U,z,V,Y=1;do{for(R=D,D=null,G=null,U=0;R;){for(U++,O=R,z=0,I=0;I0||V>0&&O;)z!==0&&(V===0||!O||R.z<=O.z)?(w=R,R=R.nextZ,z--):(w=O,O=O.nextZ,V--),G?G.nextZ=w:D=w,w.prevZ=G,G=w;R=O}G.nextZ=null,Y*=2}while(U>1);return D}function v(D,I,R,O,w){return D=(D-R)*w|0,I=(I-O)*w|0,D=(D|D<<8)&16711935,D=(D|D<<4)&252645135,D=(D|D<<2)&858993459,D=(D|D<<1)&1431655765,I=(I|I<<8)&16711935,I=(I|I<<4)&252645135,I=(I|I<<2)&858993459,I=(I|I<<1)&1431655765,D|I<<1}function m(D){var I=D,R=D;do(I.x=(D-U)*(G-z)&&(D-U)*(O-z)>=(R-U)*(I-z)&&(R-U)*(G-z)>=(w-U)*(O-z)}function g(D,I){return D.next.i!==I.i&&D.prev.i!==I.i&&!P(D,I)&&(M(D,I)&&M(I,D)&&F(D,I)&&(y(D.prev,D,I.prev)||y(D,I.prev,I))||S(D,I)&&y(D.prev,D,D.next)>0&&y(I.prev,I,I.next)>0)}function y(D,I,R){return(I.y-D.y)*(R.x-I.x)-(I.x-D.x)*(R.y-I.y)}function S(D,I){return D.x===I.x&&D.y===I.y}function C(D,I,R,O){var w=A(y(D,I,R)),G=A(y(D,I,O)),U=A(y(R,O,D)),z=A(y(R,O,I));return!!(w!==G&&U!==z||w===0&&E(D,R,I)||G===0&&E(D,O,I)||U===0&&E(R,D,O)||z===0&&E(R,I,O))}function E(D,I,R){return I.x<=Math.max(D.x,R.x)&&I.x>=Math.min(D.x,R.x)&&I.y<=Math.max(D.y,R.y)&&I.y>=Math.min(D.y,R.y)}function A(D){return D>0?1:D<0?-1:0}function P(D,I){var R=D;do{if(R.i!==D.i&&R.next.i!==D.i&&R.i!==I.i&&R.next.i!==I.i&&C(R,R.next,D,I))return!0;R=R.next}while(R!==D);return!1}function M(D,I){return y(D.prev,D,D.next)<0?y(D,I,D.next)>=0&&y(D,D.prev,I)>=0:y(D,I,D.prev)<0||y(D,D.next,I)<0}function F(D,I){var R=D,O=!1,w=(D.x+I.x)/2,G=(D.y+I.y)/2;do R.y>G!=R.next.y>G&&R.next.y!==R.y&&w<(R.next.x-R.x)*(G-R.y)/(R.next.y-R.y)+R.x&&(O=!O),R=R.next;while(R!==D);return O}function L(D,I){var R=new N(D.i,D.x,D.y),O=new N(I.i,I.x,I.y),w=D.next,G=I.prev;return D.next=I,I.prev=D,R.next=w,w.prev=R,O.next=R,R.prev=O,G.next=O,O.prev=G,O}function b(D,I,R,O){var w=new N(D,I,R);return O?(w.next=O.next,w.prev=O,O.next.prev=w,O.next=w):(w.prev=w,w.next=w),w}function B(D){D.next.prev=D.prev,D.prev.next=D.next,D.prevZ&&(D.prevZ.nextZ=D.nextZ),D.nextZ&&(D.nextZ.prevZ=D.prevZ)}function N(D,I,R){this.i=D,this.x=I,this.y=R,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}T.deviation=function(D,I,R,O){var w=I&&I.length,G=w?I[0]*R:D.length,U=Math.abs(X(D,0,G,R));if(w)for(var z=0,V=I.length;z0&&(O+=D[w-1].length,R.holes.push(O))}return R},c.exports=T},13829:(c,T,t)=>{/** + */function T(b,B,O){O=O||2;var L=B&&B.length,I=L?B[0]*O:b.length,U=t(b,0,I,O,!0),X=[];if(!U||U.next===U.prev)return X;var z,V,Y,W,H,K,j;if(L&&(U=s(b,B,U,O)),b.length>80*O){z=Y=b[0],V=W=b[1];for(var Z=O;ZY&&(Y=H),K>W&&(W=K);j=Math.max(Y-z,W-V),j=j!==0?32767/j:0}return p(U,X,O,z,V,j,0),X}function t(b,B,O,L,I){var U,X;if(I===N(b,B,O,L)>0)for(U=B;U=B;U-=L)X=D(U,b[U],b[U+1],X);return X&&S(X,X.next)&&(w(X),X=X.next),X}function d(b,B){if(!b)return b;B||(B=b);var O=b,L;do if(L=!1,!O.steiner&&(S(O,O.next)||y(O.prev,O,O.next)===0)){if(w(O),O=B=O.prev,O===O.next)break;L=!0}else O=O.next;while(L||O!==B);return B}function p(b,B,O,L,I,U,X){if(b){!X&&U&&h(b,L,I,U);for(var z=b,V,Y;b.prev!==b.next;){if(V=b.prev,Y=b.next,U?r(b,L,I,U):l(b)){B.push(V.i/O|0),B.push(b.i/O|0),B.push(Y.i/O|0),w(b),b=Y.next,z=Y.next;continue}if(b=Y,b===z){X?X===1?(b=n(d(b),B,O),p(b,B,O,L,I,U,2)):X===2&&e(b,B,O,L,I,U):p(d(b),B,O,L,I,U,1);break}}}}function l(b){var B=b.prev,O=b,L=b.next;if(y(B,O,L)>=0)return!1;for(var I=B.x,U=O.x,X=L.x,z=B.y,V=O.y,Y=L.y,W=IU?I>X?I:X:U>X?U:X,j=z>V?z>Y?z:Y:V>Y?V:Y,Z=L.next;Z!==B;){if(Z.x>=W&&Z.x<=K&&Z.y>=H&&Z.y<=j&&g(I,z,U,V,X,Y,Z.x,Z.y)&&y(Z.prev,Z,Z.next)>=0)return!1;Z=Z.next}return!0}function r(b,B,O,L){var I=b.prev,U=b,X=b.next;if(y(I,U,X)>=0)return!1;for(var z=I.x,V=U.x,Y=X.x,W=I.y,H=U.y,K=X.y,j=zV?z>Y?z:Y:V>Y?V:Y,rt=W>H?W>K?W:K:H>K?H:K,at=v(j,Z,B,O,L),ot=v(_,rt,B,O,L),Q=b.prevZ,it=b.nextZ;Q&&Q.z>=at&&it&&it.z<=ot;){if(Q.x>=j&&Q.x<=_&&Q.y>=Z&&Q.y<=rt&&Q!==I&&Q!==X&&g(z,W,V,H,Y,K,Q.x,Q.y)&&y(Q.prev,Q,Q.next)>=0||(Q=Q.prevZ,it.x>=j&&it.x<=_&&it.y>=Z&&it.y<=rt&&it!==I&&it!==X&&g(z,W,V,H,Y,K,it.x,it.y)&&y(it.prev,it,it.next)>=0))return!1;it=it.nextZ}for(;Q&&Q.z>=at;){if(Q.x>=j&&Q.x<=_&&Q.y>=Z&&Q.y<=rt&&Q!==I&&Q!==X&&g(z,W,V,H,Y,K,Q.x,Q.y)&&y(Q.prev,Q,Q.next)>=0)return!1;Q=Q.prevZ}for(;it&&it.z<=ot;){if(it.x>=j&&it.x<=_&&it.y>=Z&&it.y<=rt&&it!==I&&it!==X&&g(z,W,V,H,Y,K,it.x,it.y)&&y(it.prev,it,it.next)>=0)return!1;it=it.nextZ}return!0}function n(b,B,O){var L=b;do{var I=L.prev,U=L.next.next;!S(I,U)&&C(I,L,L.next,U)&&A(I,U)&&A(U,I)&&(B.push(I.i/O|0),B.push(L.i/O|0),B.push(U.i/O|0),w(L),w(L.next),L=b=U),L=L.next}while(L!==b);return d(L)}function e(b,B,O,L,I,U){var X=b;do{for(var z=X.next.next;z!==X.prev;){if(X.i!==z.i&&x(X,z)){var V=F(X,z);X=d(X,X.next),V=d(V,V.next),p(X,B,O,L,I,U,0),p(V,B,O,L,I,U,0);return}z=z.next}X=X.next}while(X!==b)}function s(b,B,O,L){var I=[],U,X,z,V,Y;for(U=0,X=B.length;U=O.next.y&&O.next.y!==O.y){var z=O.x+(I-O.y)*(O.next.x-O.x)/(O.next.y-O.y);if(z<=L&&z>U&&(U=z,X=O.x=O.x&&O.x>=Y&&L!==O.x&&g(IX.x||O.x===X.x&&u(X,O)))&&(X=O,H=K)),O=O.next;while(O!==V);return X}function u(b,B){return y(b.prev,b,B.prev)<0&&y(B.next,b,b.next)<0}function h(b,B,O,L){var I=b;do I.z===0&&(I.z=v(I.x,I.y,B,O,L)),I.prevZ=I.prev,I.nextZ=I.next,I=I.next;while(I!==b);I.prevZ.nextZ=null,I.prevZ=null,f(I)}function f(b){var B,O,L,I,U,X,z,V,Y=1;do{for(O=b,b=null,U=null,X=0;O;){for(X++,L=O,z=0,B=0;B0||V>0&&L;)z!==0&&(V===0||!L||O.z<=L.z)?(I=O,O=O.nextZ,z--):(I=L,L=L.nextZ,V--),U?U.nextZ=I:b=I,I.prevZ=U,U=I;O=L}U.nextZ=null,Y*=2}while(X>1);return b}function v(b,B,O,L,I){return b=(b-O)*I|0,B=(B-L)*I|0,b=(b|b<<8)&16711935,b=(b|b<<4)&252645135,b=(b|b<<2)&858993459,b=(b|b<<1)&1431655765,B=(B|B<<8)&16711935,B=(B|B<<4)&252645135,B=(B|B<<2)&858993459,B=(B|B<<1)&1431655765,b|B<<1}function m(b){var B=b,O=b;do(B.x=(b-X)*(U-z)&&(b-X)*(L-z)>=(O-X)*(B-z)&&(O-X)*(U-z)>=(I-X)*(L-z)}function x(b,B){return b.next.i!==B.i&&b.prev.i!==B.i&&!P(b,B)&&(A(b,B)&&A(B,b)&&R(b,B)&&(y(b.prev,b,B.prev)||y(b,B.prev,B))||S(b,B)&&y(b.prev,b,b.next)>0&&y(B.prev,B,B.next)>0)}function y(b,B,O){return(B.y-b.y)*(O.x-B.x)-(B.x-b.x)*(O.y-B.y)}function S(b,B){return b.x===B.x&&b.y===B.y}function C(b,B,O,L){var I=M(y(b,B,O)),U=M(y(b,B,L)),X=M(y(O,L,b)),z=M(y(O,L,B));return!!(I!==U&&X!==z||I===0&&E(b,O,B)||U===0&&E(b,L,B)||X===0&&E(O,b,L)||z===0&&E(O,B,L))}function E(b,B,O){return B.x<=Math.max(b.x,O.x)&&B.x>=Math.min(b.x,O.x)&&B.y<=Math.max(b.y,O.y)&&B.y>=Math.min(b.y,O.y)}function M(b){return b>0?1:b<0?-1:0}function P(b,B){var O=b;do{if(O.i!==b.i&&O.next.i!==b.i&&O.i!==B.i&&O.next.i!==B.i&&C(O,O.next,b,B))return!0;O=O.next}while(O!==b);return!1}function A(b,B){return y(b.prev,b,b.next)<0?y(b,B,b.next)>=0&&y(b,b.prev,B)>=0:y(b,B,b.prev)<0||y(b,b.next,B)<0}function R(b,B){var O=b,L=!1,I=(b.x+B.x)/2,U=(b.y+B.y)/2;do O.y>U!=O.next.y>U&&O.next.y!==O.y&&I<(O.next.x-O.x)*(U-O.y)/(O.next.y-O.y)+O.x&&(L=!L),O=O.next;while(O!==b);return L}function F(b,B){var O=new G(b.i,b.x,b.y),L=new G(B.i,B.x,B.y),I=b.next,U=B.prev;return b.next=B,B.prev=b,O.next=I,I.prev=O,L.next=O,O.prev=L,U.next=L,L.prev=U,L}function D(b,B,O,L){var I=new G(b,B,O);return L?(I.next=L.next,I.prev=L,L.next.prev=I,L.next=I):(I.prev=I,I.next=I),I}function w(b){b.next.prev=b.prev,b.prev.next=b.next,b.prevZ&&(b.prevZ.nextZ=b.nextZ),b.nextZ&&(b.nextZ.prevZ=b.prevZ)}function G(b,B,O){this.i=b,this.x=B,this.y=O,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}T.deviation=function(b,B,O,L){var I=B&&B.length,U=I?B[0]*O:b.length,X=Math.abs(N(b,0,U,O));if(I)for(var z=0,V=B.length;z0&&(L+=b[I-1].length,O.holes.push(L))}return O},c.exports=T},13829:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(87841),p=function(a,r){r===void 0&&(r=new d);for(var n=1/0,e=1/0,s=-n,l=-e,i,o=0;o{/** + */var d=t(87841),p=function(l,r){r===void 0&&(r=new d);for(var n=1/0,e=1/0,s=-n,o=-e,i,a=0;a{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2723,28 +2727,28 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(35001),p=t(23031),a=t(30052),r=function(n,e,s,l){l===void 0&&(l=[]);var i=n.points,o=a(n);!e&&s>0&&(e=o/s);for(var u=0;uf+y){f+=y;continue}var S=g.getPoint((h-f)/y);l.push(S);break}return l};c.exports=r},30052:(c,T,t)=>{/** + */var d=t(35001),p=t(23031),l=t(30052),r=function(n,e,s,o){o===void 0&&(o=[]);var i=n.points,a=l(n);!e&&s>0&&(e=a/s);for(var u=0;uf+y){f+=y;continue}var S=x.getPoint((h-f)/y);o.push(S);break}return o};c.exports=r},30052:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(35001),p=t(23031),a=function(r){for(var n=r.points,e=0,s=0;s{/** + */var d=t(35001),p=t(23031),l=function(r){for(var n=r.points,e=0,s=0;s{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(63814),a=t(9564),r=t(23777),n=new d({initialize:function(s){this.type=r.POLYGON,this.area=0,this.points=[],s&&this.setTo(s)},contains:function(e,s){return p(this,e,s)},setTo:function(e){if(this.area=0,this.points=[],typeof e=="string"&&(e=e.split(" ")),!Array.isArray(e))return this;for(var s,l=0;l{/** + */var d=t(83419),p=t(63814),l=t(9564),r=t(23777),n=new d({initialize:function(s){this.type=r.POLYGON,this.area=0,this.points=[],s&&this.setTo(s)},contains:function(e,s){return p(this,e,s)},setTo:function(e){if(this.area=0,this.points=[],typeof e=="string"&&(e=e.split(" ")),!Array.isArray(e))return this;for(var s,o=0;o{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t){return t.points.reverse(),t};c.exports=T},29524:c=>{function T(n,e){var s=n.x-e.x,l=n.y-e.y;return s*s+l*l}function t(n,e,s){var l=e.x,i=e.y,o=s.x-l,u=s.y-i;if(o!==0||u!==0){var h=((n.x-l)*o+(n.y-i)*u)/(o*o+u*u);h>1?(l=s.x,i=s.y):h>0&&(l+=o*h,i+=u*h)}return o=n.x-l,u=n.y-i,o*o+u*u}function d(n,e){for(var s=n[0],l=[s],i,o=1,u=n.length;oe&&(l.push(i),s=i);return s!==i&&l.push(i),l}function p(n,e,s,l,i){for(var o=l,u,h=e+1;ho&&(u=h,o=f)}o>l&&(u-e>1&&p(n,e,u,l,i),i.push(n[u]),s-u>1&&p(n,u,s,l,i))}function a(n,e){var s=n.length-1,l=[n[0]];return p(n,0,s,e,l),l.push(n[s]),l}var r=function(n,e,s){e===void 0&&(e=1),s===void 0&&(s=!1);var l=n.points;if(l.length>2){var i=e*e;s||(l=d(l,i)),n.setTo(a(l,i))}return n};c.exports=r},5469:c=>{/** + */var T=function(t){return t.points.reverse(),t};c.exports=T},29524:c=>{function T(n,e){var s=n.x-e.x,o=n.y-e.y;return s*s+o*o}function t(n,e,s){var o=e.x,i=e.y,a=s.x-o,u=s.y-i;if(a!==0||u!==0){var h=((n.x-o)*a+(n.y-i)*u)/(a*a+u*u);h>1?(o=s.x,i=s.y):h>0&&(o+=a*h,i+=u*h)}return a=n.x-o,u=n.y-i,a*a+u*u}function d(n,e){for(var s=n[0],o=[s],i,a=1,u=n.length;ae&&(o.push(i),s=i);return s!==i&&o.push(i),o}function p(n,e,s,o,i){for(var a=o,u,h=e+1;ha&&(u=h,a=f)}a>o&&(u-e>1&&p(n,e,u,o,i),i.push(n[u]),s-u>1&&p(n,u,s,o,i))}function l(n,e){var s=n.length-1,o=[n[0]];return p(n,0,s,e,o),o.push(n[s]),o}var r=function(n,e,s){e===void 0&&(e=1),s===void 0&&(s=!1);var o=n.points;if(o.length>2){var i=e*e;s||(o=d(o,i)),n.setTo(l(o,i))}return n};c.exports=r},5469:c=>{/** * @author Richard Davey * @author Igor Ognichenko * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(d,p){return d[0]=p[0],d[1]=p[1],d},t=function(d){var p,a=[],r=d.points;for(p=0;p0&&n.push(T([0,0],a[0])),p=0;p1&&n.push(T([0,0],a[a.length-1])),d.setTo(n)};c.exports=t},24709:c=>{/** + */var T=function(d,p){return d[0]=p[0],d[1]=p[1],d},t=function(d){var p,l=[],r=d.points;for(p=0;p0&&n.push(T([0,0],l[0])),p=0;p1&&n.push(T([0,0],l[l.length-1])),d.setTo(n)};c.exports=t},24709:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){for(var a=t.points,r=0;r{/** + */var T=function(t,d,p){for(var l=t.points,r=0;r{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2768,7 +2772,7 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(87841),p=function(a){return new d(a.x,a.y,a.width,a.height)};c.exports=p},37303:c=>{/** + */var d=t(87841),p=function(l){return new d(l.x,l.y,l.width,l.height)};c.exports=p},37303:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2776,7 +2780,7 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(37303),p=function(a,r){return d(a,r.x,r.y)};c.exports=p},70273:c=>{/** + */var d=t(37303),p=function(l,r){return d(l,r.x,r.y)};c.exports=p},70273:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2796,11 +2800,11 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(8249),p=function(a,r){var n=d(a);return n{/** + */var d=t(8249),p=function(l,r){var n=d(l);return n{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(8249),p=function(a,r){var n=d(a);return n>d(r)?a.setSize(r.height*n,r.height):a.setSize(r.width,r.width/n),a.setPosition(r.centerX-a.width/2,r.centerY-a.height/2)};c.exports=p},80774:c=>{/** + */var d=t(8249),p=function(l,r){var n=d(l);return n>d(r)?l.setSize(r.height*n,r.height):l.setSize(r.width,r.width/n),l.setPosition(r.centerX-l.width/2,r.centerY-l.height/2)};c.exports=p},80774:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2812,11 +2816,11 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(87841),p=t(36383),a=function(r,n){if(n===void 0&&(n=new d),r.length===0)return n;for(var e=Number.MAX_VALUE,s=Number.MAX_VALUE,l=p.MIN_SAFE_INTEGER,i=p.MIN_SAFE_INTEGER,o,u,h,f=0;f{/** + */var d=t(87841),p=t(36383),l=function(r,n){if(n===void 0&&(n=new d),r.length===0)return n;for(var e=Number.MAX_VALUE,s=Number.MAX_VALUE,o=p.MIN_SAFE_INTEGER,i=p.MIN_SAFE_INTEGER,a,u,h,f=0;f{/** * @author samme * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(87841),p=function(a,r,n,e,s){return s===void 0&&(s=new d),s.setTo(Math.min(a,n),Math.min(r,e),Math.abs(a-n),Math.abs(r-e))};c.exports=p},8249:c=>{/** + */var d=t(87841),p=function(l,r,n,e,s){return s===void 0&&(s=new d),s.setTo(Math.min(l,n),Math.min(r,e),Math.abs(l-n),Math.abs(r-e))};c.exports=p},8249:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2824,43 +2828,43 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=function(a,r){return r===void 0&&(r=new d),r.x=a.centerX,r.y=a.centerY,r};c.exports=p},20812:(c,T,t)=>{/** + */var d=t(2141),p=function(l,r){return r===void 0&&(r=new d),r.x=l.centerX,r.y=l.centerY,r};c.exports=p},20812:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(13019),p=t(2141),a=function(r,n,e){if(e===void 0&&(e=new p),n<=0||n>=1)return e.x=r.x,e.y=r.y,e;var s=d(r)*n;return n>.5?(s-=r.width+r.height,s<=r.width?(e.x=r.right-s,e.y=r.bottom):(e.x=r.x,e.y=r.bottom-(s-r.width))):s<=r.width?(e.x=r.x+s,e.y=r.y):(e.x=r.right,e.y=r.y+(s-r.width)),e};c.exports=a},34819:(c,T,t)=>{/** + */var d=t(13019),p=t(2141),l=function(r,n,e){if(e===void 0&&(e=new p),n<=0||n>=1)return e.x=r.x,e.y=r.y,e;var s=d(r)*n;return n>.5?(s-=r.width+r.height,s<=r.width?(e.x=r.right-s,e.y=r.bottom):(e.x=r.x,e.y=r.bottom-(s-r.width))):s<=r.width?(e.x=r.x+s,e.y=r.y):(e.x=r.right,e.y=r.y+(s-r.width)),e};c.exports=l},34819:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(20812),p=t(13019),a=function(r,n,e,s){s===void 0&&(s=[]),!n&&e>0&&(n=p(r)/e);for(var l=0;l{/** + */var d=t(20812),p=t(13019),l=function(r,n,e,s){s===void 0&&(s=[]),!n&&e>0&&(n=p(r)/e);for(var o=0;o{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=function(a,r){return r===void 0&&(r=new d),r.x=a.width,r.y=a.height,r};c.exports=p},86091:(c,T,t)=>{/** + */var d=t(2141),p=function(l,r){return r===void 0&&(r=new d),r.x=l.width,r.y=l.height,r};c.exports=p},86091:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(67502),p=function(a,r,n){var e=a.centerX,s=a.centerY;return a.setSize(a.width+r*2,a.height+n*2),d(a,e,s)};c.exports=p},53951:(c,T,t)=>{/** + */var d=t(67502),p=function(l,r,n){var e=l.centerX,s=l.centerY;return l.setSize(l.width+r*2,l.height+n*2),d(l,e,s)};c.exports=p},53951:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(87841),p=t(59996),a=function(r,n,e){return e===void 0&&(e=new d),p(r,n)?(e.x=Math.max(r.x,n.x),e.y=Math.max(r.y,n.y),e.width=Math.min(r.right,n.right)-e.x,e.height=Math.min(r.bottom,n.bottom)-e.y):e.setEmpty(),e};c.exports=a},14649:(c,T,t)=>{/** + */var d=t(87841),p=t(59996),l=function(r,n,e){return e===void 0&&(e=new d),p(r,n)?(e.x=Math.max(r.x,n.x),e.y=Math.max(r.y,n.y),e.width=Math.min(r.right,n.right)-e.x,e.height=Math.min(r.bottom,n.bottom)-e.y):e.setEmpty(),e};c.exports=l},14649:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(13019),p=t(2141),a=function(r,n,e,s){if(s===void 0&&(s=[]),!n&&!e)return s;n?e=Math.round(d(r)/n):n=d(r)/e;for(var l=r.x,i=r.y,o=0,u=0;u=r.right&&(o=1,i+=l-r.right,l=r.right);break;case 1:i+=n,i>=r.bottom&&(o=2,l-=i-r.bottom,i=r.bottom);break;case 2:l-=n,l<=r.left&&(o=3,i-=r.left-l,l=r.left);break;case 3:i-=n,i<=r.top&&(o=0,i=r.top);break}return s};c.exports=a},33595:c=>{/** + */var d=t(13019),p=t(2141),l=function(r,n,e,s){if(s===void 0&&(s=[]),!n&&!e)return s;n?e=Math.round(d(r)/n):n=d(r)/e;for(var o=r.x,i=r.y,a=0,u=0;u=r.right&&(a=1,i+=o-r.right,o=r.right);break;case 1:i+=n,i>=r.bottom&&(a=2,o-=i-r.bottom,i=r.bottom);break;case 2:o-=n,o<=r.left&&(a=3,i-=r.left-o,o=r.left);break;case 3:i-=n,i<=r.top&&(a=0,i=r.top);break}return s};c.exports=l},33595:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d){for(var p=t.x,a=t.right,r=t.y,n=t.bottom,e=0;e{/** + */var T=function(t,d){for(var p=t.x,l=t.right,r=t.y,n=t.bottom,e=0;e{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d){var p=Math.min(t.x,d.x),a=Math.max(t.right,d.right);t.x=p,t.width=a-p;var r=Math.min(t.y,d.y),n=Math.max(t.bottom,d.bottom);return t.y=r,t.height=n-r,t};c.exports=T},92171:c=>{/** + */var T=function(t,d){var p=Math.min(t.x,d.x),l=Math.max(t.right,d.right);t.x=p,t.width=l-p;var r=Math.min(t.y,d.y),n=Math.max(t.bottom,d.bottom);return t.y=r,t.height=n-r,t};c.exports=T},92171:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){var a=Math.min(t.x,d),r=Math.max(t.right,d);t.x=a,t.width=r-a;var n=Math.min(t.y,p),e=Math.max(t.bottom,p);return t.y=n,t.height=e-n,t};c.exports=T},42981:c=>{/** + */var T=function(t,d,p){var l=Math.min(t.x,d),r=Math.max(t.right,d);t.x=l,t.width=r-l;var n=Math.min(t.y,p),e=Math.max(t.bottom,p);return t.y=n,t.height=e-n,t};c.exports=T},42981:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2880,19 +2884,19 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=t(39506),a=function(r,n,e){e===void 0&&(e=new d),n=p(n);var s=Math.sin(n),l=Math.cos(n),i=l>0?r.width/2:r.width/-2,o=s>0?r.height/2:r.height/-2;return Math.abs(i*s){/** + */var d=t(2141),p=t(39506),l=function(r,n,e){e===void 0&&(e=new d),n=p(n);var s=Math.sin(n),o=Math.cos(n),i=o>0?r.width/2:r.width/-2,a=s>0?r.height/2:r.height/-2;return Math.abs(i*s){/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=function(a,r){return r===void 0&&(r=new d),r.x=a.x+Math.random()*a.width,r.y=a.y+Math.random()*a.height,r};c.exports=p},86470:(c,T,t)=>{/** + */var d=t(2141),p=function(l,r){return r===void 0&&(r=new d),r.x=l.x+Math.random()*l.width,r.y=l.y+Math.random()*l.height,r};c.exports=p},86470:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(30976),p=t(70273),a=t(2141),r=function(n,e,s){if(s===void 0&&(s=new a),p(n,e))switch(d(0,3)){case 0:s.x=n.x+Math.random()*(e.right-n.x),s.y=n.y+Math.random()*(e.top-n.y);break;case 1:s.x=e.x+Math.random()*(n.right-e.x),s.y=e.bottom+Math.random()*(n.bottom-e.bottom);break;case 2:s.x=n.x+Math.random()*(e.x-n.x),s.y=e.y+Math.random()*(n.bottom-e.y);break;case 3:s.x=e.right+Math.random()*(n.right-e.right),s.y=n.y+Math.random()*(e.bottom-n.y);break}return s};c.exports=r},87841:(c,T,t)=>{/** + */var d=t(30976),p=t(70273),l=t(2141),r=function(n,e,s){if(s===void 0&&(s=new l),p(n,e))switch(d(0,3)){case 0:s.x=n.x+Math.random()*(e.right-n.x),s.y=n.y+Math.random()*(e.top-n.y);break;case 1:s.x=e.x+Math.random()*(n.right-e.x),s.y=e.bottom+Math.random()*(n.bottom-e.bottom);break;case 2:s.x=n.x+Math.random()*(e.x-n.x),s.y=e.y+Math.random()*(n.bottom-e.y);break;case 3:s.x=e.right+Math.random()*(n.right-e.right),s.y=n.y+Math.random()*(e.bottom-n.y);break}return s};c.exports=r},87841:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(37303),a=t(20812),r=t(34819),n=t(23777),e=t(23031),s=t(26597),l=new d({initialize:function(o,u,h,f){o===void 0&&(o=0),u===void 0&&(u=0),h===void 0&&(h=0),f===void 0&&(f=0),this.type=n.RECTANGLE,this.x=o,this.y=u,this.width=h,this.height=f},contains:function(i,o){return p(this,i,o)},getPoint:function(i,o){return a(this,i,o)},getPoints:function(i,o,u){return r(this,i,o,u)},getRandomPoint:function(i){return s(this,i)},setTo:function(i,o,u,h){return this.x=i,this.y=o,this.width=u,this.height=h,this},setEmpty:function(){return this.setTo(0,0,0,0)},setPosition:function(i,o){return o===void 0&&(o=i),this.x=i,this.y=o,this},setSize:function(i,o){return o===void 0&&(o=i),this.width=i,this.height=o,this},isEmpty:function(){return this.width<=0||this.height<=0},getLineA:function(i){return i===void 0&&(i=new e),i.setTo(this.x,this.y,this.right,this.y),i},getLineB:function(i){return i===void 0&&(i=new e),i.setTo(this.right,this.y,this.right,this.bottom),i},getLineC:function(i){return i===void 0&&(i=new e),i.setTo(this.right,this.bottom,this.x,this.bottom),i},getLineD:function(i){return i===void 0&&(i=new e),i.setTo(this.x,this.bottom,this.x,this.y),i},left:{get:function(){return this.x},set:function(i){i>=this.right?this.width=0:this.width=this.right-i,this.x=i}},right:{get:function(){return this.x+this.width},set:function(i){i<=this.x?this.width=0:this.width=i-this.x}},top:{get:function(){return this.y},set:function(i){i>=this.bottom?this.height=0:this.height=this.bottom-i,this.y=i}},bottom:{get:function(){return this.y+this.height},set:function(i){i<=this.y?this.height=0:this.height=i-this.y}},centerX:{get:function(){return this.x+this.width/2},set:function(i){this.x=i-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(i){this.y=i-this.height/2}}});c.exports=l},94845:c=>{/** + */var d=t(83419),p=t(37303),l=t(20812),r=t(34819),n=t(23777),e=t(23031),s=t(26597),o=new d({initialize:function(a,u,h,f){a===void 0&&(a=0),u===void 0&&(u=0),h===void 0&&(h=0),f===void 0&&(f=0),this.type=n.RECTANGLE,this.x=a,this.y=u,this.width=h,this.height=f},contains:function(i,a){return p(this,i,a)},getPoint:function(i,a){return l(this,i,a)},getPoints:function(i,a,u){return r(this,i,a,u)},getRandomPoint:function(i){return s(this,i)},setTo:function(i,a,u,h){return this.x=i,this.y=a,this.width=u,this.height=h,this},setEmpty:function(){return this.setTo(0,0,0,0)},setPosition:function(i,a){return a===void 0&&(a=i),this.x=i,this.y=a,this},setSize:function(i,a){return a===void 0&&(a=i),this.width=i,this.height=a,this},isEmpty:function(){return this.width<=0||this.height<=0},getLineA:function(i){return i===void 0&&(i=new e),i.setTo(this.x,this.y,this.right,this.y),i},getLineB:function(i){return i===void 0&&(i=new e),i.setTo(this.right,this.y,this.right,this.bottom),i},getLineC:function(i){return i===void 0&&(i=new e),i.setTo(this.right,this.bottom,this.x,this.bottom),i},getLineD:function(i){return i===void 0&&(i=new e),i.setTo(this.x,this.bottom,this.x,this.y),i},left:{get:function(){return this.x},set:function(i){i>=this.right?this.width=0:this.width=this.right-i,this.x=i}},right:{get:function(){return this.x+this.width},set:function(i){i<=this.x?this.width=0:this.width=i-this.x}},top:{get:function(){return this.y},set:function(i){i>=this.bottom?this.height=0:this.height=this.bottom-i,this.y=i}},bottom:{get:function(){return this.y+this.height},set:function(i){i<=this.y?this.height=0:this.height=i-this.y}},centerX:{get:function(){return this.x+this.width/2},set:function(i){this.x=i-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(i){this.y=i-this.height/2}}});c.exports=o},94845:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2904,7 +2908,7 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(87841),p=function(a,r,n){n===void 0&&(n=new d);var e=Math.min(a.x,r.x),s=Math.min(a.y,r.y),l=Math.max(a.right,r.right)-e,i=Math.max(a.bottom,r.bottom)-s;return n.setTo(e,s,l,i)};c.exports=p},93232:(c,T,t)=>{/** + */var d=t(87841),p=function(l,r,n){n===void 0&&(n=new d);var e=Math.min(l.x,r.x),s=Math.min(l.y,r.y),o=Math.max(l.right,r.right)-e,i=Math.max(l.bottom,r.bottom)-s;return n.setTo(e,s,o,i)};c.exports=p},93232:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2912,51 +2916,51 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t){var d=t.x1,p=t.y1,a=t.x2,r=t.y2,n=t.x3,e=t.y3;return Math.abs(((n-d)*(r-p)-(a-d)*(e-p))/2)};c.exports=T},39208:(c,T,t)=>{/** + */var T=function(t){var d=t.x1,p=t.y1,l=t.x2,r=t.y2,n=t.x3,e=t.y3;return Math.abs(((n-d)*(r-p)-(l-d)*(e-p))/2)};c.exports=T},39208:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(16483),p=function(a,r,n){var e=n*(Math.sqrt(3)/2),s=a,l=r,i=a+n/2,o=r+e,u=a-n/2,h=r+e;return new d(s,l,i,o,u,h)};c.exports=p},39545:(c,T,t)=>{/** + */var d=t(16483),p=function(l,r,n){var e=n*(Math.sqrt(3)/2),s=l,o=r,i=l+n/2,a=r+e,u=l-n/2,h=r+e;return new d(s,o,i,a,u,h)};c.exports=p},39545:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(94811),p=t(16483),a=function(r,n,e,s,l){n===void 0&&(n=null),e===void 0&&(e=1),s===void 0&&(s=1),l===void 0&&(l=[]);for(var i=d(r,n),o,u,h,f,v,m,x,g,y,S=0;S{/** + */var d=t(94811),p=t(16483),l=function(r,n,e,s,o){n===void 0&&(n=null),e===void 0&&(e=1),s===void 0&&(s=1),o===void 0&&(o=[]);for(var i=d(r,n),a,u,h,f,v,m,g,x,y,S=0;S{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(16483),p=function(a,r,n,e){e===void 0&&(e=n);var s=a,l=r,i=a,o=r-e,u=a+n,h=r;return new d(s,l,i,o,u,h)};c.exports=p},23707:(c,T,t)=>{/** + */var d=t(16483),p=function(l,r,n,e){e===void 0&&(e=n);var s=l,o=r,i=l,a=r-e,u=l+n,h=r;return new d(s,o,i,a,u,h)};c.exports=p},23707:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(97523),p=t(13584),a=function(r,n,e,s){s===void 0&&(s=d);var l=s(r),i=n-l.x,o=e-l.y;return p(r,i,o)};c.exports=a},97523:(c,T,t)=>{/** + */var d=t(97523),p=t(13584),l=function(r,n,e,s){s===void 0&&(s=d);var o=s(r),i=n-o.x,a=e-o.y;return p(r,i,a)};c.exports=l},97523:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=function(a,r){return r===void 0&&(r=new d),r.x=(a.x1+a.x2+a.x3)/3,r.y=(a.y1+a.y2+a.y3)/3,r};c.exports=p},24951:(c,T,t)=>{/** + */var d=t(2141),p=function(l,r){return r===void 0&&(r=new d),r.x=(l.x1+l.x2+l.x3)/3,r.y=(l.y1+l.y2+l.y3)/3,r};c.exports=p},24951:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(26099);function p(r,n,e,s){return r*s-n*e}var a=function(r,n){n===void 0&&(n=new d);var e=r.x3,s=r.y3,l=r.x1-e,i=r.y1-s,o=r.x2-e,u=r.y2-s,h=2*p(l,i,o,u),f=p(i,l*l+i*i,u,o*o+u*u),v=p(l,l*l+i*i,o,o*o+u*u);return n.x=e-f/h,n.y=s+v/h,n};c.exports=a},85614:(c,T,t)=>{/** + */var d=t(26099);function p(r,n,e,s){return r*s-n*e}var l=function(r,n){n===void 0&&(n=new d);var e=r.x3,s=r.y3,o=r.x1-e,i=r.y1-s,a=r.x2-e,u=r.y2-s,h=2*p(o,i,a,u),f=p(i,o*o+i*i,u,a*a+u*u),v=p(o,o*o+i*i,a,a*a+u*u);return n.x=e-f/h,n.y=s+v/h,n};c.exports=l},85614:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(96503),p=function(a,r){r===void 0&&(r=new d);var n=a.x1,e=a.y1,s=a.x2,l=a.y2,i=a.x3,o=a.y3,u=s-n,h=l-e,f=i-n,v=o-e,m=u*(n+s)+h*(e+l),x=f*(n+i)+v*(e+o),g=2*(u*(o-l)-h*(i-s)),y,S;if(Math.abs(g)<1e-6){var C=Math.min(n,s,i),E=Math.min(e,l,o);y=(Math.max(n,s,i)-C)*.5,S=(Math.max(e,l,o)-E)*.5,r.x=C+y,r.y=E+S,r.radius=Math.sqrt(y*y+S*S)}else r.x=(v*m-h*x)/g,r.y=(u*x-f*m)/g,y=r.x-n,S=r.y-e,r.radius=Math.sqrt(y*y+S*S);return r};c.exports=p},74422:(c,T,t)=>{/** + */var d=t(96503),p=function(l,r){r===void 0&&(r=new d);var n=l.x1,e=l.y1,s=l.x2,o=l.y2,i=l.x3,a=l.y3,u=s-n,h=o-e,f=i-n,v=a-e,m=u*(n+s)+h*(e+o),g=f*(n+i)+v*(e+a),x=2*(u*(a-o)-h*(i-s)),y,S;if(Math.abs(x)<1e-6){var C=Math.min(n,s,i),E=Math.min(e,o,a);y=(Math.max(n,s,i)-C)*.5,S=(Math.max(e,o,a)-E)*.5,r.x=C+y,r.y=E+S,r.radius=Math.sqrt(y*y+S*S)}else r.x=(v*m-h*g)/x,r.y=(u*g-f*m)/x,y=r.x-n,S=r.y-e,r.radius=Math.sqrt(y*y+S*S);return r};c.exports=p},74422:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(16483),p=function(a){return new d(a.x1,a.y1,a.x2,a.y2,a.x3,a.y3)};c.exports=p},10690:c=>{/** + */var d=t(16483),p=function(l){return new d(l.x1,l.y1,l.x2,l.y2,l.x3,l.y3)};c.exports=p},10690:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){var a=t.x3-t.x1,r=t.y3-t.y1,n=t.x2-t.x1,e=t.y2-t.y1,s=d-t.x1,l=p-t.y1,i=a*a+r*r,o=a*n+r*e,u=a*s+r*l,h=n*n+e*e,f=n*s+e*l,v=i*h-o*o,m=v===0?0:1/v,x=(h*u-o*f)*m,g=(i*f-o*u)*m;return x>=0&&g>=0&&x+g<1};c.exports=T},48653:c=>{/** + */var T=function(t,d,p){var l=t.x3-t.x1,r=t.y3-t.y1,n=t.x2-t.x1,e=t.y2-t.y1,s=d-t.x1,o=p-t.y1,i=l*l+r*r,a=l*n+r*e,u=l*s+r*o,h=n*n+e*e,f=n*s+e*o,v=i*h-a*a,m=v===0?0:1/v,g=(h*u-a*f)*m,x=(i*f-a*u)*m;return g>=0&&x>=0&&g+x<1};c.exports=T},48653:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){p===void 0&&(p=!1),a===void 0&&(a=[]);for(var r=t.x3-t.x1,n=t.y3-t.y1,e=t.x2-t.x1,s=t.y2-t.y1,l=r*r+n*n,i=r*e+n*s,o=e*e+s*s,u=l*o-i*i,h=u===0?0:1/u,f,v,m,x,g,y,S=t.x1,C=t.y1,E=0;E=0&&v>=0&&f+v<1&&(a.push({x:d[E].x,y:d[E].y}),p)));E++);return a};c.exports=T},96006:(c,T,t)=>{/** + */var T=function(t,d,p,l){p===void 0&&(p=!1),l===void 0&&(l=[]);for(var r=t.x3-t.x1,n=t.y3-t.y1,e=t.x2-t.x1,s=t.y2-t.y1,o=r*r+n*n,i=r*e+n*s,a=e*e+s*s,u=o*a-i*i,h=u===0?0:1/u,f,v,m,g,x,y,S=t.x1,C=t.y1,E=0;E=0&&v>=0&&f+v<1&&(l.push({x:d[E].x,y:d[E].y}),p)));E++);return l};c.exports=T},96006:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(10690),p=function(a,r){return d(a,r.x,r.y)};c.exports=p},71326:c=>{/** + */var d=t(10690),p=function(l,r){return d(l,r.x,r.y)};c.exports=p},71326:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2972,15 +2976,15 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=t(35001),a=function(r,n,e){e===void 0&&(e=new d);var s=r.getLineA(),l=r.getLineB(),i=r.getLineC();if(n<=0||n>=1)return e.x=s.x1,e.y=s.y1,e;var o=p(s),u=p(l),h=p(i),f=o+u+h,v=f*n,m=0;return vo+u?(v-=o+u,m=v/h,e.x=i.x1+(i.x2-i.x1)*m,e.y=i.y1+(i.y2-i.y1)*m):(v-=o,m=v/u,e.x=l.x1+(l.x2-l.x1)*m,e.y=l.y1+(l.y2-l.y1)*m),e};c.exports=a},80672:(c,T,t)=>{/** + */var d=t(2141),p=t(35001),l=function(r,n,e){e===void 0&&(e=new d);var s=r.getLineA(),o=r.getLineB(),i=r.getLineC();if(n<=0||n>=1)return e.x=s.x1,e.y=s.y1,e;var a=p(s),u=p(o),h=p(i),f=a+u+h,v=f*n,m=0;return va+u?(v-=a+u,m=v/h,e.x=i.x1+(i.x2-i.x1)*m,e.y=i.y1+(i.y2-i.y1)*m):(v-=a,m=v/u,e.x=o.x1+(o.x2-o.x1)*m,e.y=o.y1+(o.y2-o.y1)*m),e};c.exports=l},80672:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(35001),p=t(2141),a=function(r,n,e,s){s===void 0&&(s=[]);var l=r.getLineA(),i=r.getLineB(),o=r.getLineC(),u=d(l),h=d(i),f=d(o),v=u+h+f;!n&&e>0&&(n=v/e);for(var m=0;mu+h?(x-=u+h,g=x/f,y.x=o.x1+(o.x2-o.x1)*g,y.y=o.y1+(o.y2-o.y1)*g):(x-=u,g=x/h,y.x=i.x1+(i.x2-i.x1)*g,y.y=i.y1+(i.y2-i.y1)*g),s.push(y)}return s};c.exports=a},39757:(c,T,t)=>{/** + */var d=t(35001),p=t(2141),l=function(r,n,e,s){s===void 0&&(s=[]);var o=r.getLineA(),i=r.getLineB(),a=r.getLineC(),u=d(o),h=d(i),f=d(a),v=u+h+f;!n&&e>0&&(n=v/e);for(var m=0;mu+h?(g-=u+h,x=g/f,y.x=a.x1+(a.x2-a.x1)*x,y.y=a.y1+(a.y2-a.y1)*x):(g-=u,x=g/h,y.x=i.x1+(i.x2-i.x1)*x,y.y=i.y1+(i.y2-i.y1)*x),s.push(y)}return s};c.exports=l},39757:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141);function p(r,n,e,s){var l=r-e,i=n-s,o=l*l+i*i;return Math.sqrt(o)}var a=function(r,n){n===void 0&&(n=new d);var e=r.x1,s=r.y1,l=r.x2,i=r.y2,o=r.x3,u=r.y3,h=p(o,u,l,i),f=p(e,s,o,u),v=p(l,i,e,s),m=h+f+v;return n.x=(e*h+l*f+o*v)/m,n.y=(s*h+i*f+u*v)/m,n};c.exports=a},13584:c=>{/** + */var d=t(2141);function p(r,n,e,s){var o=r-e,i=n-s,a=o*o+i*i;return Math.sqrt(a)}var l=function(r,n){n===void 0&&(n=new d);var e=r.x1,s=r.y1,o=r.x2,i=r.y2,a=r.x3,u=r.y3,h=p(a,u,o,i),f=p(e,s,a,u),v=p(o,i,e,s),m=h+f+v;return n.x=(e*h+o*f+a*v)/m,n.y=(s*h+i*f+u*v)/m,n};c.exports=l},13584:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -2988,27 +2992,27 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(35001),p=function(a){var r=a.getLineA(),n=a.getLineB(),e=a.getLineC();return d(r)+d(n)+d(e)};c.exports=p},90260:(c,T,t)=>{/** + */var d=t(35001),p=function(l){var r=l.getLineA(),n=l.getLineB(),e=l.getLineC();return d(r)+d(n)+d(e)};c.exports=p},90260:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2141),p=function(a,r){r===void 0&&(r=new d);var n=a.x2-a.x1,e=a.y2-a.y1,s=a.x3-a.x1,l=a.y3-a.y1,i=Math.random(),o=Math.random();return i+o>=1&&(i=1-i,o=1-o),r.x=a.x1+(n*i+s*o),r.y=a.y1+(e*i+l*o),r};c.exports=p},52172:(c,T,t)=>{/** + */var d=t(2141),p=function(l,r){r===void 0&&(r=new d);var n=l.x2-l.x1,e=l.y2-l.y1,s=l.x3-l.x1,o=l.y3-l.y1,i=Math.random(),a=Math.random();return i+a>=1&&(i=1-i,a=1-a),r.x=l.x1+(n*i+s*a),r.y=l.y1+(e*i+o*a),r};c.exports=p},52172:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(99614),p=t(39757),a=function(r,n){var e=p(r);return d(r,e.x,e.y,n)};c.exports=a},49907:(c,T,t)=>{/** + */var d=t(99614),p=t(39757),l=function(r,n){var e=p(r);return d(r,e.x,e.y,n)};c.exports=l},49907:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(99614),p=function(a,r,n){return d(a,r.x,r.y,n)};c.exports=p},99614:c=>{/** + */var d=t(99614),p=function(l,r,n){return d(l,r.x,r.y,n)};c.exports=p},99614:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){var r=Math.cos(a),n=Math.sin(a),e=t.x1-d,s=t.y1-p;return t.x1=e*r-s*n+d,t.y1=e*n+s*r+p,e=t.x2-d,s=t.y2-p,t.x2=e*r-s*n+d,t.y2=e*n+s*r+p,e=t.x3-d,s=t.y3-p,t.x3=e*r-s*n+d,t.y3=e*n+s*r+p,t};c.exports=T},16483:(c,T,t)=>{/** + */var T=function(t,d,p,l){var r=Math.cos(l),n=Math.sin(l),e=t.x1-d,s=t.y1-p;return t.x1=e*r-s*n+d,t.y1=e*n+s*r+p,e=t.x2-d,s=t.y2-p,t.x2=e*r-s*n+d,t.y2=e*n+s*r+p,e=t.x3-d,s=t.y3-p,t.x3=e*r-s*n+d,t.y3=e*n+s*r+p,t};c.exports=T},16483:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(10690),a=t(20437),r=t(80672),n=t(23777),e=t(23031),s=t(90260),l=new d({initialize:function(o,u,h,f,v,m){o===void 0&&(o=0),u===void 0&&(u=0),h===void 0&&(h=0),f===void 0&&(f=0),v===void 0&&(v=0),m===void 0&&(m=0),this.type=n.TRIANGLE,this.x1=o,this.y1=u,this.x2=h,this.y2=f,this.x3=v,this.y3=m},contains:function(i,o){return p(this,i,o)},getPoint:function(i,o){return a(this,i,o)},getPoints:function(i,o,u){return r(this,i,o,u)},getRandomPoint:function(i){return s(this,i)},setTo:function(i,o,u,h,f,v){return i===void 0&&(i=0),o===void 0&&(o=0),u===void 0&&(u=0),h===void 0&&(h=0),f===void 0&&(f=0),v===void 0&&(v=0),this.x1=i,this.y1=o,this.x2=u,this.y2=h,this.x3=f,this.y3=v,this},getLineA:function(i){return i===void 0&&(i=new e),i.setTo(this.x1,this.y1,this.x2,this.y2),i},getLineB:function(i){return i===void 0&&(i=new e),i.setTo(this.x2,this.y2,this.x3,this.y3),i},getLineC:function(i){return i===void 0&&(i=new e),i.setTo(this.x3,this.y3,this.x1,this.y1),i},left:{get:function(){return Math.min(this.x1,this.x2,this.x3)},set:function(i){var o=0;this.x1<=this.x2&&this.x1<=this.x3?o=this.x1-i:this.x2<=this.x1&&this.x2<=this.x3?o=this.x2-i:o=this.x3-i,this.x1-=o,this.x2-=o,this.x3-=o}},right:{get:function(){return Math.max(this.x1,this.x2,this.x3)},set:function(i){var o=0;this.x1>=this.x2&&this.x1>=this.x3?o=this.x1-i:this.x2>=this.x1&&this.x2>=this.x3?o=this.x2-i:o=this.x3-i,this.x1-=o,this.x2-=o,this.x3-=o}},top:{get:function(){return Math.min(this.y1,this.y2,this.y3)},set:function(i){var o=0;this.y1<=this.y2&&this.y1<=this.y3?o=this.y1-i:this.y2<=this.y1&&this.y2<=this.y3?o=this.y2-i:o=this.y3-i,this.y1-=o,this.y2-=o,this.y3-=o}},bottom:{get:function(){return Math.max(this.y1,this.y2,this.y3)},set:function(i){var o=0;this.y1>=this.y2&&this.y1>=this.y3?o=this.y1-i:this.y2>=this.y1&&this.y2>=this.y3?o=this.y2-i:o=this.y3-i,this.y1-=o,this.y2-=o,this.y3-=o}}});c.exports=l},84435:(c,T,t)=>{/** + */var d=t(83419),p=t(10690),l=t(20437),r=t(80672),n=t(23777),e=t(23031),s=t(90260),o=new d({initialize:function(a,u,h,f,v,m){a===void 0&&(a=0),u===void 0&&(u=0),h===void 0&&(h=0),f===void 0&&(f=0),v===void 0&&(v=0),m===void 0&&(m=0),this.type=n.TRIANGLE,this.x1=a,this.y1=u,this.x2=h,this.y2=f,this.x3=v,this.y3=m},contains:function(i,a){return p(this,i,a)},getPoint:function(i,a){return l(this,i,a)},getPoints:function(i,a,u){return r(this,i,a,u)},getRandomPoint:function(i){return s(this,i)},setTo:function(i,a,u,h,f,v){return i===void 0&&(i=0),a===void 0&&(a=0),u===void 0&&(u=0),h===void 0&&(h=0),f===void 0&&(f=0),v===void 0&&(v=0),this.x1=i,this.y1=a,this.x2=u,this.y2=h,this.x3=f,this.y3=v,this},getLineA:function(i){return i===void 0&&(i=new e),i.setTo(this.x1,this.y1,this.x2,this.y2),i},getLineB:function(i){return i===void 0&&(i=new e),i.setTo(this.x2,this.y2,this.x3,this.y3),i},getLineC:function(i){return i===void 0&&(i=new e),i.setTo(this.x3,this.y3,this.x1,this.y1),i},left:{get:function(){return Math.min(this.x1,this.x2,this.x3)},set:function(i){var a=0;this.x1<=this.x2&&this.x1<=this.x3?a=this.x1-i:this.x2<=this.x1&&this.x2<=this.x3?a=this.x2-i:a=this.x3-i,this.x1-=a,this.x2-=a,this.x3-=a}},right:{get:function(){return Math.max(this.x1,this.x2,this.x3)},set:function(i){var a=0;this.x1>=this.x2&&this.x1>=this.x3?a=this.x1-i:this.x2>=this.x1&&this.x2>=this.x3?a=this.x2-i:a=this.x3-i,this.x1-=a,this.x2-=a,this.x3-=a}},top:{get:function(){return Math.min(this.y1,this.y2,this.y3)},set:function(i){var a=0;this.y1<=this.y2&&this.y1<=this.y3?a=this.y1-i:this.y2<=this.y1&&this.y2<=this.y3?a=this.y2-i:a=this.y3-i,this.y1-=a,this.y2-=a,this.y3-=a}},bottom:{get:function(){return Math.max(this.y1,this.y2,this.y3)},set:function(i){var a=0;this.y1>=this.y2&&this.y1>=this.y3?a=this.y1-i:this.y2>=this.y1&&this.y2>=this.y3?a=this.y2-i:a=this.y3-i,this.y1-=a,this.y2-=a,this.y3-=a}}});c.exports=o},84435:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3016,27 +3020,27 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){return{gameObject:t,enabled:!0,draggable:!1,dropZone:!1,cursor:!1,target:null,camera:null,hitArea:d,hitAreaCallback:p,hitAreaDebug:null,customHitArea:!1,localX:0,localY:0,dragState:0,dragStartX:0,dragStartY:0,dragStartXGlobal:0,dragStartYGlobal:0,dragX:0,dragY:0}};c.exports=T},84409:c=>{/** + */var T=function(t,d,p){return{gameObject:t,enabled:!0,draggable:!1,dropZone:!1,cursor:!1,target:null,camera:null,hitArea:d,hitAreaCallback:p,hitAreaDebug:null,customHitArea:!1,localX:0,localY:0,dragState:0,dragStartX:0,dragStartY:0,dragStartXGlobal:0,dragStartYGlobal:0,dragStartCamera:null,dragX:0,dragY:0}};c.exports=T},84409:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d){return function(p,a,r,n){var e=t.getPixelAlpha(a,r,n.texture.key,n.frame.name);return e&&e>=d}};c.exports=T},7003:(c,T,t)=>{/** + */var T=function(t,d){return function(p,l,r,n){var e=t.getPixelAlpha(l,r,n.texture.key,n.frame.name);return e&&e>=d}};c.exports=T},7003:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(93301),a=t(50792),r=t(8214),n=t(8443),e=t(78970),s=t(85098),l=t(42515),i=t(36210),o=t(61340),u=t(85955),h=new d({initialize:function(v,m){this.game=v,this.scaleManager,this.canvas,this.config=m,this.enabled=!0,this.events=new a,this.isOver=!0,this.defaultCursor="",this.keyboard=m.inputKeyboard?new e(this):null,this.mouse=m.inputMouse?new s(this):null,this.touch=m.inputTouch?new i(this):null,this.pointers=[],this.pointersTotal=m.inputActivePointers,m.inputTouch&&this.pointersTotal===1&&(this.pointersTotal=2);for(var x=0;x<=this.pointersTotal;x++){var g=new l(this,x);g.smoothFactor=m.inputSmoothFactor,this.pointers.push(g)}this.mousePointer=m.inputMouse?this.pointers[0]:null,this.activePointer=this.pointers[0],this.globalTopOnly=!0,this.time=0,this._tempPoint={x:0,y:0},this._tempHitTest=[],this._tempMatrix=new o,this._tempMatrix2=new o,this._tempSkip=!1,this.mousePointerContainer=[this.mousePointer],v.events.once(n.BOOT,this.boot,this)},boot:function(){var f=this.game,v=f.events;this.canvas=f.canvas,this.scaleManager=f.scale,this.events.emit(r.MANAGER_BOOT),v.on(n.PRE_RENDER,this.preRender,this),v.once(n.DESTROY,this.destroy,this)},setCanvasOver:function(f){this.isOver=!0,this.events.emit(r.GAME_OVER,f)},setCanvasOut:function(f){this.isOver=!1,this.events.emit(r.GAME_OUT,f)},preRender:function(){var f=this.game.loop.now,v=this.game.loop.delta,m=this.game.scene.getScenes(!0,!0);this.time=f,this.events.emit(r.MANAGER_UPDATE);for(var x=0;x10&&(f=10-this.pointersTotal);for(var m=0;m{/** + */var d=t(83419),p=t(93301),l=t(50792),r=t(8214),n=t(8443),e=t(78970),s=t(85098),o=t(42515),i=t(36210),a=t(61340),u=t(85955),h=new d({initialize:function(v,m){this.game=v,this.scaleManager,this.canvas,this.config=m,this.enabled=!0,this.events=new l,this.isOver=!0,this.defaultCursor="",this.keyboard=m.inputKeyboard?new e(this):null,this.mouse=m.inputMouse?new s(this):null,this.touch=m.inputTouch?new i(this):null,this.pointers=[],this.pointersTotal=m.inputActivePointers;for(var g=0;g<=this.pointersTotal;g++){var x=new o(this,g);x.smoothFactor=m.inputSmoothFactor,this.pointers.push(x)}this.mousePointer=m.inputMouse?this.pointers[0]:null,this.activePointer=this.pointers[0],this.globalTopOnly=!0,this.time=0,this._tempPoint={x:0,y:0},this._tempHitTest=[],this._tempMatrix=new a,this._tempMatrix2=new a,this._tempSkip=!1,this.mousePointerContainer=[this.mousePointer],v.events.once(n.BOOT,this.boot,this)},boot:function(){var f=this.game,v=f.events;this.canvas=f.canvas,this.scaleManager=f.scale,this.events.emit(r.MANAGER_BOOT),v.on(n.PRE_RENDER,this.preRender,this),v.once(n.DESTROY,this.destroy,this)},setCanvasOver:function(f){this.isOver=!0,this.events.emit(r.GAME_OVER,f)},setCanvasOut:function(f){this.isOver=!1,this.events.emit(r.GAME_OUT,f)},preRender:function(){var f=this.game.loop.now,v=this.game.loop.delta,m=this.game.scene.getScenes(!0,!0);this.time=f,this.events.emit(r.MANAGER_UPDATE);for(var g=0;g10&&(f=10-this.pointersTotal);for(var m=0;m{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(96503),p=t(87902),a=t(83419),r=t(93301),n=t(74457),e=t(84409),s=t(20339),l=t(8497),i=t(81154),o=t(8214),u=t(50792),h=t(95540),f=t(23777),v=t(89639),m=t(41212),x=t(37277),g=t(87841),y=t(37303),S=t(44594),C=t(16483),E=t(10690),A=new a({Extends:u,initialize:function(M){u.call(this),this.scene=M,this.systems=M.sys,this.settings=M.sys.settings,this.manager=M.sys.game.input,this.pluginEvents=new u,this.enabled=!0,this.displayList,this.cameras,v.install(this),this.mouse=this.manager.mouse,this.topOnly=!0,this.pollRate=-1,this._pollTimer=0;var F={cancelled:!1};this._eventContainer={stopPropagation:function(){F.cancelled=!0}},this._eventData=F,this.dragDistanceThreshold=0,this.dragTimeThreshold=0,this._temp=[],this._tempZones=[],this._list=[],this._pendingInsertion=[],this._pendingRemoval=[],this._draggable=[],this._drag={0:[],1:[],2:[],3:[],4:[],5:[],6:[],7:[],8:[],9:[],10:[]},this._dragState=[],this._over={0:[],1:[],2:[],3:[],4:[],5:[],6:[],7:[],8:[],9:[],10:[]},this._validTypes=["onDown","onUp","onOver","onOut","onMove","onDragStart","onDrag","onDragEnd","onDragEnter","onDragLeave","onDragOver","onDrop"],this._updatedThisFrame=!1,M.sys.events.once(S.BOOT,this.boot,this),M.sys.events.on(S.START,this.start,this)},boot:function(){this.cameras=this.systems.cameras,this.displayList=this.systems.displayList,this.systems.events.once(S.DESTROY,this.destroy,this),this.pluginEvents.emit(o.BOOT)},start:function(){var P=this.systems.events;P.on(S.TRANSITION_START,this.transitionIn,this),P.on(S.TRANSITION_OUT,this.transitionOut,this),P.on(S.TRANSITION_COMPLETE,this.transitionComplete,this),P.on(S.PRE_UPDATE,this.preUpdate,this),P.once(S.SHUTDOWN,this.shutdown,this),this.manager.events.on(o.GAME_OUT,this.onGameOut,this),this.manager.events.on(o.GAME_OVER,this.onGameOver,this),this.enabled=!0,this._dragState=[0,0,0,0,0,0,0,0,0,0],this.pluginEvents.emit(o.START)},onGameOver:function(P){this.isActive()&&this.emit(o.GAME_OVER,P.timeStamp,P)},onGameOut:function(P){this.isActive()&&this.emit(o.GAME_OUT,P.timeStamp,P)},preUpdate:function(){this.pluginEvents.emit(o.PRE_UPDATE);var P=this._pendingRemoval,M=this._pendingInsertion,F=P.length,L=M.length;if(!(F===0&&L===0)){for(var b=this._list,B=0;B-1&&(b.splice(X,1),this.clear(N,!0))}this._pendingRemoval.length=0,this._list=b.concat(M.splice(0))}},isActive:function(){return this.enabled&&this.scene.sys.canInput()},updatePoll:function(P,M){if(!this.isActive())return!1;if(this.pluginEvents.emit(o.UPDATE,P,M),this._updatedThisFrame)return this._updatedThisFrame=!1,!1;var F,L=this.manager,b=L.pointers,B=L.pointersTotal;for(F=0;F0)if(this._pollTimer-=M,this._pollTimer<0)this._pollTimer=this.pollRate;else return!1;var X=!1;for(F=0;F0&&(X=!0)}return X},update:function(P,M){if(!this.isActive())return!1;for(var F=M.length,L=!1,b=0;b0&&(L=!0)}return this._updatedThisFrame=!0,L},clear:function(P,M){M===void 0&&(M=!1),this.disable(P);var F=P.input;F&&(this.removeDebug(P),this.manager.resetCursor(F),F.gameObject=void 0,F.target=void 0,F.hitArea=void 0,F.hitAreaCallback=void 0,F.callbackContext=void 0,P.input=null),M||this.queueForRemoval(P);var L=this._draggable.indexOf(P);return L>-1&&this._draggable.splice(L,1),P},disable:function(P){var M=P.input;M&&(M.enabled=!1,M.dragState=0);for(var F=this._drag,L=this._over,b=this.manager,B=0,N;B-1&&F[B].splice(N,1),N=L[B].indexOf(P),N>-1&&L[B].splice(N,1);return this},enable:function(P,M,F,L){return L===void 0&&(L=!1),P.input?P.input.enabled=!0:this.setHitArea(P,M,F),P.input&&L&&!P.input.dropZone&&(P.input.dropZone=L),this},hitTestPointer:function(P){for(var M=this.cameras.getCamerasBelowPointer(P),F=0;F0)return P.camera=L,b}return P.camera=M[0],[]},processDownEvents:function(P){var M=0,F=this._temp,L=this._eventData,b=this._eventContainer;L.cancelled=!1;for(var B=!1,N=0;N0&&s(P.x,P.y,P.downX,P.downY)>=b||L>0&&M>=P.downTime+L)&&(F=!0),F)return this.setDragState(P,3),this.processDragStartList(P)},processDragStartList:function(P){if(this.getDragState(P)!==3)return 0;for(var M=this._drag[P.id],F=0;F1&&(this.sortGameObjects(F,P),this.topOnly&&F.splice(1)),this._drag[P.id]=F,this.dragDistanceThreshold===0&&this.dragTimeThreshold===0?(this.setDragState(P,3),this.processDragStartList(P)):(this.setDragState(P,2),0))},processDragMoveEvent:function(P){if(this.getDragState(P)===2&&this.processDragThresholdEvent(P,this.manager.game.loop.now),this.getDragState(P)!==4)return 0;for(var M=this._tempZones,F=this._drag[P.id],L=0;L0?(b.emit(o.GAMEOBJECT_DRAG_LEAVE,P,N),this.emit(o.DRAG_LEAVE,P,b,N),B.target=M[0],N=B.target,b.emit(o.GAMEOBJECT_DRAG_ENTER,P,N),this.emit(o.DRAG_ENTER,P,b,N)):(b.emit(o.GAMEOBJECT_DRAG_LEAVE,P,N),this.emit(o.DRAG_LEAVE,P,b,N),M[0]?(B.target=M[0],N=B.target,b.emit(o.GAMEOBJECT_DRAG_ENTER,P,N),this.emit(o.DRAG_ENTER,P,b,N)):B.target=null)}else!N&&M[0]&&(B.target=M[0],N=B.target,b.emit(o.GAMEOBJECT_DRAG_ENTER,P,N),this.emit(o.DRAG_ENTER,P,b,N));var D,I;if(!b.parentContainer)D=P.worldX-B.dragX,I=P.worldY-B.dragY;else{var R=P.worldX-B.dragStartXGlobal,O=P.worldY-B.dragStartYGlobal,w=b.getParentRotation(),G=R*Math.cos(w)+O*Math.sin(w),U=O*Math.cos(w)-R*Math.sin(w);G*=1/b.parentContainer.scaleX,U*=1/b.parentContainer.scaleY,D=G+B.dragStartX,I=U+B.dragStartY}b.emit(o.GAMEOBJECT_DRAG,P,D,I),this.emit(o.DRAG,P,b,D,I)}return F.length},processDragUpEvent:function(P){for(var M=this._drag[P.id],F=0;F0){var B=this.manager,N=this._eventData,X=this._eventContainer;N.cancelled=!1;for(var D=!1,I=0;I0){var b=this.manager,B=this._eventData,N=this._eventContainer;B.cancelled=!1;var X=!1;this.sortGameObjects(M,P);for(var D=0;D0){for(this.sortGameObjects(b,P),F=0;F0){for(this.sortGameObjects(B,P),F=0;F-1&&this._draggable.splice(b,1)}return this},makePixelPerfect:function(P){P===void 0&&(P=1);var M=this.systems.textures;return e(M,P)},setHitArea:function(P,M,F){if(M===void 0)return this.setHitAreaFromTexture(P);Array.isArray(P)||(P=[P]);var L=!1,b=!1,B=!1,N=!1,X=!1,D=!0;if(m(M)&&Object.keys(M).length){var I=M,R=P.some(function(z){return z.hasOwnProperty("faces")});if(!R){M=h(I,"hitArea",null),F=h(I,"hitAreaCallback",null),X=h(I,"pixelPerfect",!1);var O=h(I,"alphaTolerance",1);X&&(M={},F=this.makePixelPerfect(O))}L=h(I,"draggable",!1),b=h(I,"dropZone",!1),B=h(I,"cursor",!1),N=h(I,"useHandCursor",!1),(!M||!F)&&(this.setHitAreaFromTexture(P),D=!1)}else typeof M=="function"&&!F&&(F=M,M={});for(var w=0;w{/** + */var d=t(96503),p=t(87902),l=t(83419),r=t(93301),n=t(74457),e=t(84409),s=t(20339),o=t(8497),i=t(81154),a=t(8214),u=t(50792),h=t(95540),f=t(23777),v=t(89639),m=t(41212),g=t(37277),x=t(87841),y=t(37303),S=t(44594),C=t(16483),E=t(10690),M=new l({Extends:u,initialize:function(A){u.call(this),this.scene=A,this.systems=A.sys,this.settings=A.sys.settings,this.manager=A.sys.game.input,this.pluginEvents=new u,this.enabled=!0,this.displayList,this.cameras,v.install(this),this.mouse=this.manager.mouse,this.topOnly=!0,this.pollRate=-1,this._pollTimer=0;var R={cancelled:!1};this._eventContainer={stopPropagation:function(){R.cancelled=!0}},this._eventData=R,this.dragDistanceThreshold=0,this.dragTimeThreshold=0,this._temp=[],this._tempZones=[],this._list=[],this._pendingInsertion=[],this._pendingRemoval=[],this._draggable=[],this._drag={0:[],1:[],2:[],3:[],4:[],5:[],6:[],7:[],8:[],9:[],10:[]},this._dragState=[],this._over={0:[],1:[],2:[],3:[],4:[],5:[],6:[],7:[],8:[],9:[],10:[]},this._validTypes=["onDown","onUp","onOver","onOut","onMove","onDragStart","onDrag","onDragEnd","onDragEnter","onDragLeave","onDragOver","onDrop"],this._updatedThisFrame=!1,A.sys.events.once(S.BOOT,this.boot,this),A.sys.events.on(S.START,this.start,this)},boot:function(){this.cameras=this.systems.cameras,this.displayList=this.systems.displayList,this.systems.events.once(S.DESTROY,this.destroy,this),this.pluginEvents.emit(a.BOOT)},start:function(){var P=this.systems.events;P.on(S.TRANSITION_START,this.transitionIn,this),P.on(S.TRANSITION_OUT,this.transitionOut,this),P.on(S.TRANSITION_COMPLETE,this.transitionComplete,this),P.on(S.PRE_UPDATE,this.preUpdate,this),P.once(S.SHUTDOWN,this.shutdown,this),this.manager.events.on(a.GAME_OUT,this.onGameOut,this),this.manager.events.on(a.GAME_OVER,this.onGameOver,this),this.enabled=!0,this._dragState=[0,0,0,0,0,0,0,0,0,0],this.pluginEvents.emit(a.START)},onGameOver:function(P){this.isActive()&&this.emit(a.GAME_OVER,P.timeStamp,P)},onGameOut:function(P){this.isActive()&&this.emit(a.GAME_OUT,P.timeStamp,P)},preUpdate:function(){this.pluginEvents.emit(a.PRE_UPDATE);var P=this._pendingRemoval,A=this._pendingInsertion,R=P.length,F=A.length;if(!(R===0&&F===0)){for(var D=this._list,w=0;w-1&&(D.splice(N,1),this.clear(G,!0))}this._pendingRemoval.length=0,this._list=D.concat(A.splice(0))}},isActive:function(){return this.manager&&this.manager.enabled&&this.enabled&&this.scene.sys.canInput()},setCursor:function(P){this.manager&&this.manager.setCursor(P)},resetCursor:function(){this.manager&&this.manager.resetCursor(null,!0)},updatePoll:function(P,A){if(!this.isActive())return!1;if(this.pluginEvents.emit(a.UPDATE,P,A),this._updatedThisFrame)return this._updatedThisFrame=!1,!1;var R,F=this.manager,D=F.pointers;for(R=0;R0)if(this._pollTimer-=A,this._pollTimer<0)this._pollTimer=this.pollRate;else return!1;var G=!1;for(R=0;R0&&(G=!0)}return G},update:function(P,A){if(!this.isActive())return!1;for(var R=!1,F=0;F0&&(R=!0)}return this._updatedThisFrame=!0,R},clear:function(P,A){A===void 0&&(A=!1),this.disable(P);var R=P.input;R&&(this.removeDebug(P),this.manager.resetCursor(R),R.gameObject=void 0,R.target=void 0,R.hitArea=void 0,R.hitAreaCallback=void 0,R.callbackContext=void 0,P.input=null),A||this.queueForRemoval(P);var F=this._draggable.indexOf(P);return F>-1&&this._draggable.splice(F,1),P},disable:function(P,A){A===void 0&&(A=!1);var R=P.input;R&&(R.enabled=!1,R.dragState=0);for(var F=this._drag,D=this._over,w=this.manager,G=0,N;G-1&&F[G].splice(N,1),N=D[G].indexOf(P),N>-1&&D[G].splice(N,1);return A&&this.resetCursor(),this},enable:function(P,A,R,F){return F===void 0&&(F=!1),P.input?P.input.enabled=!0:this.setHitArea(P,A,R),P.input&&F&&!P.input.dropZone&&(P.input.dropZone=F),this},hitTestPointer:function(P){for(var A=this.cameras.getCamerasBelowPointer(P),R=0;R0)return P.camera=F,D}return P.camera=A[0],[]},processDownEvents:function(P){var A=0,R=this._temp,F=this._eventData,D=this._eventContainer;F.cancelled=!1;for(var w=0;w0&&s(P.x,P.y,P.downX,P.downY)>=D||F>0&&A>=P.downTime+F)&&(R=!0),R)return this.setDragState(P,3),this.processDragStartList(P)},processDragStartList:function(P){if(this.getDragState(P)!==3)return 0;var A=this._drag[P.id];A.length>1&&(A=A.slice(0));for(var R=0;R1&&(this.sortGameObjects(R,P),this.topOnly&&R.splice(1)),this._drag[P.id]=R,this.dragDistanceThreshold===0&&this.dragTimeThreshold===0?(this.setDragState(P,3),this.processDragStartList(P)):(this.setDragState(P,2),0))},processDragMoveEvent:function(P){if(this.getDragState(P)===2&&this.processDragThresholdEvent(P,this.manager.game.loop.now),this.getDragState(P)!==4)return 0;var A=this._tempZones,R=this._drag[P.id];R.length>1&&(R=R.slice(0));for(var F=0;F0?(D.emit(a.GAMEOBJECT_DRAG_LEAVE,P,G),this.emit(a.DRAG_LEAVE,P,D,G),w.target=A[0],G=w.target,D.emit(a.GAMEOBJECT_DRAG_ENTER,P,G),this.emit(a.DRAG_ENTER,P,D,G)):(D.emit(a.GAMEOBJECT_DRAG_LEAVE,P,G),this.emit(a.DRAG_LEAVE,P,D,G),A[0]?(w.target=A[0],G=w.target,D.emit(a.GAMEOBJECT_DRAG_ENTER,P,G),this.emit(a.DRAG_ENTER,P,D,G)):w.target=null)}else!G&&A[0]&&(w.target=A[0],G=w.target,D.emit(a.GAMEOBJECT_DRAG_ENTER,P,G),this.emit(a.DRAG_ENTER,P,D,G));var b,B,O=P.positionToCamera(w.dragStartCamera);if(!D.parentContainer)b=O.x-w.dragX,B=O.y-w.dragY;else{var L=O.x-w.dragStartXGlobal,I=O.y-w.dragStartYGlobal,U=D.getParentRotation(),X=L*Math.cos(U)+I*Math.sin(U),z=I*Math.cos(U)-L*Math.sin(U);X*=1/D.parentContainer.scaleX,z*=1/D.parentContainer.scaleY,b=X+w.dragStartX,B=z+w.dragStartY}D.emit(a.GAMEOBJECT_DRAG,P,b,B),this.emit(a.DRAG,P,D,b,B)}return R.length},processDragUpEvent:function(P){var A=this._drag[P.id];A.length>1&&(A=A.slice(0));for(var R=0;R0){var w=this.manager,G=this._eventData,N=this._eventContainer;G.cancelled=!1;for(var b=0;b0){var D=this.manager,w=this._eventData,G=this._eventContainer;w.cancelled=!1,this.sortGameObjects(A,P);for(var N=0;N0){for(this.sortGameObjects(D,P),R=0;R0){for(this.sortGameObjects(w,P),R=0;R-1&&this._draggable.splice(D,1)}return this},makePixelPerfect:function(P){P===void 0&&(P=1);var A=this.systems.textures;return e(A,P)},setHitArea:function(P,A,R){if(A===void 0)return this.setHitAreaFromTexture(P);Array.isArray(P)||(P=[P]);var F=!1,D=!1,w=!1,G=!1,N=!1,b=!0;if(m(A)&&Object.keys(A).length){var B=A,O=P.some(function(z){return z.hasOwnProperty("faces")});if(!O){A=h(B,"hitArea",null),R=h(B,"hitAreaCallback",null),N=h(B,"pixelPerfect",!1);var L=h(B,"alphaTolerance",1);N&&(A={},R=this.makePixelPerfect(L))}F=h(B,"draggable",!1),D=h(B,"dropZone",!1),w=h(B,"cursor",!1),G=h(B,"useHandCursor",!1),(!A||!R)&&(this.setHitAreaFromTexture(P),b=!1)}else typeof A=="function"&&!R&&(R=A,A={});for(var I=0;I{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(35154),p={},a={};a.register=function(r,n,e,s,l){p[r]={plugin:n,mapping:e,settingsKey:s,configKey:l}},a.getPlugin=function(r){return p[r]},a.install=function(r){var n=r.scene.sys,e=n.settings.input,s=n.game.config;for(var l in p){var i=p[l].plugin,o=p[l].mapping,u=p[l].settingsKey,h=p[l].configKey;d(e,u,s[h])&&(r[o]=new i(r))}},a.remove=function(r){p.hasOwnProperty(r)&&delete p[r]},c.exports=a},42515:(c,T,t)=>{/** + */var d=t(35154),p={},l={};l.register=function(r,n,e,s,o){p[r]={plugin:n,mapping:e,settingsKey:s,configKey:o}},l.getPlugin=function(r){return p[r]},l.install=function(r){var n=r.scene.sys,e=n.settings.input,s=n.game.config;for(var o in p){var i=p[o].plugin,a=p[o].mapping,u=p[o].settingsKey,h=p[o].configKey;d(e,u,s[h])&&(r[a]=new i(r))}},l.remove=function(r){p.hasOwnProperty(r)&&delete p[r]},c.exports=l},42515:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(31040),p=t(83419),a=t(20339),r=t(43855),n=t(47235),e=t(26099),s=t(25892),l=new p({initialize:function(o,u){this.manager=o,this.id=u,this.event,this.downElement,this.upElement,this.camera=null,this.button=0,this.buttons=0,this.position=new e,this.prevPosition=new e,this.midPoint=new e(-1,-1),this.velocity=new e,this.angle=0,this.distance=0,this.smoothFactor=0,this.motionFactor=.2,this.worldX=0,this.worldY=0,this.moveTime=0,this.downX=0,this.downY=0,this.downTime=0,this.upX=0,this.upY=0,this.upTime=0,this.primaryDown=!1,this.isDown=!1,this.wasTouch=!1,this.wasCanceled=!1,this.movementX=0,this.movementY=0,this.identifier=0,this.pointerId=null,this.active=u===0,this.locked=!1,this.deltaX=0,this.deltaY=0,this.deltaZ=0},updateWorldPoint:function(i){var o=i.getWorldPoint(this.x,this.y);return this.worldX=o.x,this.worldY=o.y,this},positionToCamera:function(i,o){return i.getWorldPoint(this.x,this.y,o)},updateMotion:function(){var i=this.position.x,o=this.position.y,u=this.midPoint.x,h=this.midPoint.y;if(!(i===u&&o===h)){var f=n(this.motionFactor,u,i),v=n(this.motionFactor,h,o);r(f,i,.1)&&(f=i),r(v,o,.1)&&(v=o),this.midPoint.set(f,v);var m=i-f,x=o-v;this.velocity.set(m,x),this.angle=d(f,v,i,o),this.distance=Math.sqrt(m*m+x*x)}},up:function(i){"buttons"in i&&(this.buttons=i.buttons),this.event=i,this.button=i.button,this.upElement=i.target,this.manager.transformPointer(this,i.pageX,i.pageY,!1),i.button===0&&(this.primaryDown=!1,this.upX=this.x,this.upY=this.y),this.buttons===0&&(this.isDown=!1,this.upTime=i.timeStamp,this.wasTouch=!1)},down:function(i){"buttons"in i&&(this.buttons=i.buttons),this.event=i,this.button=i.button,this.downElement=i.target,this.manager.transformPointer(this,i.pageX,i.pageY,!1),i.button===0&&(this.primaryDown=!0,this.downX=this.x,this.downY=this.y),s.macOS&&i.ctrlKey&&(this.buttons=2,this.primaryDown=!1),this.isDown||(this.isDown=!0,this.downTime=i.timeStamp),this.wasTouch=!1},move:function(i){"buttons"in i&&(this.buttons=i.buttons),this.event=i,this.manager.transformPointer(this,i.pageX,i.pageY,!0),this.locked&&(this.movementX=i.movementX||i.mozMovementX||i.webkitMovementX||0,this.movementY=i.movementY||i.mozMovementY||i.webkitMovementY||0),this.moveTime=i.timeStamp,this.wasTouch=!1},wheel:function(i){"buttons"in i&&(this.buttons=i.buttons),this.event=i,this.manager.transformPointer(this,i.pageX,i.pageY,!1),this.deltaX=i.deltaX,this.deltaY=i.deltaY,this.deltaZ=i.deltaZ,this.wasTouch=!1},touchstart:function(i,o){i.pointerId&&(this.pointerId=i.pointerId),this.identifier=i.identifier,this.target=i.target,this.active=!0,this.buttons=1,this.event=o,this.downElement=i.target,this.manager.transformPointer(this,i.pageX,i.pageY,!1),this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=o.timeStamp,this.isDown=!0,this.wasTouch=!0,this.wasCanceled=!1,this.updateMotion()},touchmove:function(i,o){this.event=o,this.manager.transformPointer(this,i.pageX,i.pageY,!0),this.moveTime=o.timeStamp,this.wasTouch=!0,this.updateMotion()},touchend:function(i,o){this.buttons=0,this.event=o,this.upElement=i.target,this.manager.transformPointer(this,i.pageX,i.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=o.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!1,this.active=!1,this.updateMotion()},touchcancel:function(i,o){this.buttons=0,this.event=o,this.upElement=i.target,this.manager.transformPointer(this,i.pageX,i.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=o.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!0,this.active=!1},noButtonDown:function(){return this.buttons===0},leftButtonDown:function(){return!!(this.buttons&1)},rightButtonDown:function(){return!!(this.buttons&2)},middleButtonDown:function(){return!!(this.buttons&4)},backButtonDown:function(){return!!(this.buttons&8)},forwardButtonDown:function(){return!!(this.buttons&16)},leftButtonReleased:function(){return this.button===0&&!this.isDown},rightButtonReleased:function(){return this.button===2&&!this.isDown},middleButtonReleased:function(){return this.button===1&&!this.isDown},backButtonReleased:function(){return this.button===3&&!this.isDown},forwardButtonReleased:function(){return this.button===4&&!this.isDown},getDistance:function(){return this.isDown?a(this.downX,this.downY,this.x,this.y):a(this.downX,this.downY,this.upX,this.upY)},getDistanceX:function(){return this.isDown?Math.abs(this.downX-this.x):Math.abs(this.downX-this.upX)},getDistanceY:function(){return this.isDown?Math.abs(this.downY-this.y):Math.abs(this.downY-this.upY)},getDuration:function(){return this.isDown?this.manager.time-this.downTime:this.upTime-this.downTime},getAngle:function(){return this.isDown?d(this.downX,this.downY,this.x,this.y):d(this.downX,this.downY,this.upX,this.upY)},getInterpolatedPosition:function(i,o){i===void 0&&(i=10),o===void 0&&(o=[]);for(var u=this.prevPosition.x,h=this.prevPosition.y,f=this.position.x,v=this.position.y,m=0;m{/** + */var d=t(31040),p=t(83419),l=t(20339),r=t(43855),n=t(47235),e=t(26099),s=t(25892),o=new p({initialize:function(a,u){this.manager=a,this.id=u,this.event,this.downElement,this.upElement,this.camera=null,this.button=0,this.buttons=0,this.position=new e,this.prevPosition=new e,this.midPoint=new e(-1,-1),this.velocity=new e,this.angle=0,this.distance=0,this.smoothFactor=0,this.motionFactor=.2,this.worldX=0,this.worldY=0,this.moveTime=0,this.downX=0,this.downY=0,this.downTime=0,this.upX=0,this.upY=0,this.upTime=0,this.primaryDown=!1,this.isDown=!1,this.wasTouch=!1,this.wasCanceled=!1,this.movementX=0,this.movementY=0,this.identifier=0,this.pointerId=null,this.active=u===0,this.locked=!1,this.deltaX=0,this.deltaY=0,this.deltaZ=0},updateWorldPoint:function(i){var a=i.getWorldPoint(this.x,this.y);return this.worldX=a.x,this.worldY=a.y,this},positionToCamera:function(i,a){return i.getWorldPoint(this.x,this.y,a)},updateMotion:function(){var i=this.position.x,a=this.position.y,u=this.midPoint.x,h=this.midPoint.y;if(!(i===u&&a===h)){var f=n(this.motionFactor,u,i),v=n(this.motionFactor,h,a);r(f,i,.1)&&(f=i),r(v,a,.1)&&(v=a),this.midPoint.set(f,v);var m=i-f,g=a-v;this.velocity.set(m,g),this.angle=d(f,v,i,a),this.distance=Math.sqrt(m*m+g*g)}},up:function(i){"buttons"in i&&(this.buttons=i.buttons),this.event=i,this.button=i.button,this.upElement=i.target,this.manager.transformPointer(this,i.pageX,i.pageY,!1),i.button===0&&(this.primaryDown=!1,this.upX=this.x,this.upY=this.y),this.buttons===0&&(this.isDown=!1,this.upTime=i.timeStamp,this.wasTouch=!1)},down:function(i){"buttons"in i&&(this.buttons=i.buttons),this.event=i,this.button=i.button,this.downElement=i.target,this.manager.transformPointer(this,i.pageX,i.pageY,!1),i.button===0&&(this.primaryDown=!0,this.downX=this.x,this.downY=this.y),s.macOS&&i.ctrlKey&&(this.buttons=2,this.primaryDown=!1),this.isDown||(this.isDown=!0,this.downTime=i.timeStamp),this.wasTouch=!1},move:function(i){"buttons"in i&&(this.buttons=i.buttons),this.event=i,this.manager.transformPointer(this,i.pageX,i.pageY,!0),this.locked&&(this.movementX=i.movementX||i.mozMovementX||i.webkitMovementX||0,this.movementY=i.movementY||i.mozMovementY||i.webkitMovementY||0),this.moveTime=i.timeStamp,this.wasTouch=!1},wheel:function(i){"buttons"in i&&(this.buttons=i.buttons),this.event=i,this.manager.transformPointer(this,i.pageX,i.pageY,!1),this.deltaX=i.deltaX,this.deltaY=i.deltaY,this.deltaZ=i.deltaZ,this.wasTouch=!1},touchstart:function(i,a){i.pointerId&&(this.pointerId=i.pointerId),this.identifier=i.identifier,this.target=i.target,this.active=!0,this.buttons=1,this.event=a,this.downElement=i.target,this.manager.transformPointer(this,i.pageX,i.pageY,!1),this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=a.timeStamp,this.isDown=!0,this.wasTouch=!0,this.wasCanceled=!1,this.updateMotion()},touchmove:function(i,a){this.event=a,this.manager.transformPointer(this,i.pageX,i.pageY,!0),this.moveTime=a.timeStamp,this.wasTouch=!0,this.updateMotion()},touchend:function(i,a){this.buttons=0,this.event=a,this.upElement=i.target,this.manager.transformPointer(this,i.pageX,i.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=a.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!1,this.active=!1,this.updateMotion()},touchcancel:function(i,a){this.buttons=0,this.event=a,this.upElement=i.target,this.manager.transformPointer(this,i.pageX,i.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=a.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!0,this.active=!1},noButtonDown:function(){return this.buttons===0},leftButtonDown:function(){return!!(this.buttons&1)},rightButtonDown:function(){return!!(this.buttons&2)},middleButtonDown:function(){return!!(this.buttons&4)},backButtonDown:function(){return!!(this.buttons&8)},forwardButtonDown:function(){return!!(this.buttons&16)},leftButtonReleased:function(){return this.buttons===0?this.button===0&&!this.isDown:this.button===0},rightButtonReleased:function(){return this.buttons===0?this.button===2&&!this.isDown:this.button===2},middleButtonReleased:function(){return this.buttons===0?this.button===1&&!this.isDown:this.button===1},backButtonReleased:function(){return this.buttons===0?this.button===3&&!this.isDown:this.button===3},forwardButtonReleased:function(){return this.buttons===0?this.button===4&&!this.isDown:this.button===4},getDistance:function(){return this.isDown?l(this.downX,this.downY,this.x,this.y):l(this.downX,this.downY,this.upX,this.upY)},getDistanceX:function(){return this.isDown?Math.abs(this.downX-this.x):Math.abs(this.downX-this.upX)},getDistanceY:function(){return this.isDown?Math.abs(this.downY-this.y):Math.abs(this.downY-this.upY)},getDuration:function(){return this.isDown?this.manager.time-this.downTime:this.upTime-this.downTime},getAngle:function(){return this.isDown?d(this.downX,this.downY,this.x,this.y):d(this.downX,this.downY,this.upX,this.upY)},getInterpolatedPosition:function(i,a){i===void 0&&(i=10),a===void 0&&(a=[]);for(var u=this.prevPosition.x,h=this.prevPosition.y,f=this.position.x,v=this.position.y,m=0;m{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3232,19 +3236,19 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=new d({initialize:function(r,n){this.pad=r,this.events=r.events,this.index=n,this.value=0,this.threshold=.1},update:function(a){this.value=a},getValue:function(){return Math.abs(this.value){/** + */var d=t(83419),p=new d({initialize:function(r,n){this.pad=r,this.events=r.events,this.index=n,this.value=0,this.threshold=.1},update:function(l){this.value=l},getValue:function(){return Math.abs(this.value){/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(92734),a=new d({initialize:function(n,e){this.pad=n,this.events=n.manager,this.index=e,this.value=0,this.threshold=1,this.pressed=!1},update:function(r){this.value=r;var n=this.pad,e=this.index;r>=this.threshold?this.pressed||(this.pressed=!0,this.events.emit(p.BUTTON_DOWN,n,this,r),this.pad.emit(p.GAMEPAD_BUTTON_DOWN,e,r,this)):this.pressed&&(this.pressed=!1,this.events.emit(p.BUTTON_UP,n,this,r),this.pad.emit(p.GAMEPAD_BUTTON_UP,e,r,this))},destroy:function(){this.pad=null,this.events=null}});c.exports=a},99125:(c,T,t)=>{/** + */var d=t(83419),p=t(92734),l=new d({initialize:function(n,e){this.pad=n,this.events=n.manager,this.index=e,this.value=0,this.threshold=1,this.pressed=!1},update:function(r){this.value=r;var n=this.pad,e=this.index;r>=this.threshold?this.pressed||(this.pressed=!0,this.events.emit(p.BUTTON_DOWN,n,this,r),this.pad.emit(p.GAMEPAD_BUTTON_DOWN,e,r,this)):this.pressed&&(this.pressed=!1,this.events.emit(p.BUTTON_UP,n,this,r),this.pad.emit(p.GAMEPAD_BUTTON_UP,e,r,this))},destroy:function(){this.pad=null,this.events=null}});c.exports=l},99125:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(97421),p=t(28884),a=t(83419),r=t(50792),n=t(26099),e=new a({Extends:r,initialize:function(l,i){r.call(this),this.manager=l,this.pad=i,this.id=i.id,this.index=i.index;for(var o=[],u=0;u=2&&(this.leftStick.set(h[0].getValue(),h[1].getValue()),u>=4&&this.rightStick.set(h[2].getValue(),h[3].getValue()))}},destroy:function(){this.removeAllListeners(),this.manager=null,this.pad=null;var s;for(s=0;s{/** + */var d=t(97421),p=t(28884),l=t(83419),r=t(50792),n=t(26099),e=new l({Extends:r,initialize:function(o,i){r.call(this),this.manager=o,this.pad=i,this.id=i.id,this.index=i.index;for(var a=[],u=0;u=2&&(this.leftStick.set(h[0].getValue(),h[1].getValue()),u>=4&&this.rightStick.set(h[2].getValue(),h[3].getValue()))}},destroy:function(){this.removeAllListeners(),this.manager=null,this.pad=null;var s;for(s=0;s{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(50792),a=t(92734),r=t(99125),n=t(35154),e=t(89639),s=t(8214),l=new d({Extends:p,initialize:function(o){p.call(this),this.scene=o.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=o,this.enabled=!0,this.target,this.gamepads=[],this.queue=[],this.onGamepadHandler,this._pad1,this._pad2,this._pad3,this._pad4,o.pluginEvents.once(s.BOOT,this.boot,this),o.pluginEvents.on(s.START,this.start,this)},boot:function(){var i=this.scene.sys.game,o=this.settings.input,u=i.config;this.enabled=n(o,"gamepad",u.inputGamepad)&&i.device.input.gamepads,this.target=n(o,"gamepad.target",u.inputGamepadEventTarget),this.sceneInputPlugin.pluginEvents.once(s.DESTROY,this.destroy,this)},start:function(){this.enabled&&(this.startListeners(),this.refreshPads()),this.sceneInputPlugin.pluginEvents.once(s.SHUTDOWN,this.shutdown,this)},isActive:function(){return this.enabled&&this.scene.sys.isActive()},startListeners:function(){var i=this,o=this.target,u=function(h){h.defaultPrevented||!i.isActive()||(i.refreshPads(),i.queue.push(h))};this.onGamepadHandler=u,o.addEventListener("gamepadconnected",u,!1),o.addEventListener("gamepaddisconnected",u,!1),this.sceneInputPlugin.pluginEvents.on(s.UPDATE,this.update,this)},stopListeners:function(){this.target.removeEventListener("gamepadconnected",this.onGamepadHandler),this.target.removeEventListener("gamepaddisconnected",this.onGamepadHandler),this.sceneInputPlugin.pluginEvents.off(s.UPDATE,this.update);for(var i=0;i{/** + */var d=t(83419),p=t(50792),l=t(92734),r=t(99125),n=t(35154),e=t(89639),s=t(8214),o=new d({Extends:p,initialize:function(a){p.call(this),this.scene=a.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=a,this.enabled=!0,this.target,this.gamepads=[],this.queue=[],this.onGamepadHandler,this._pad1,this._pad2,this._pad3,this._pad4,a.pluginEvents.once(s.BOOT,this.boot,this),a.pluginEvents.on(s.START,this.start,this)},boot:function(){var i=this.scene.sys.game,a=this.settings.input,u=i.config;this.enabled=n(a,"gamepad",u.inputGamepad)&&i.device.input.gamepads,this.target=n(a,"gamepad.target",u.inputGamepadEventTarget),this.sceneInputPlugin.pluginEvents.once(s.DESTROY,this.destroy,this)},start:function(){this.enabled&&(this.startListeners(),this.refreshPads()),this.sceneInputPlugin.pluginEvents.once(s.SHUTDOWN,this.shutdown,this)},isActive:function(){return this.enabled&&this.scene.sys.isActive()},startListeners:function(){var i=this,a=this.target,u=function(h){h.defaultPrevented||!i.isActive()||(i.refreshPads(),i.queue.push(h))};this.onGamepadHandler=u,a.addEventListener("gamepadconnected",u,!1),a.addEventListener("gamepaddisconnected",u,!1),this.sceneInputPlugin.pluginEvents.on(s.UPDATE,this.update,this)},stopListeners:function(){this.target.removeEventListener("gamepadconnected",this.onGamepadHandler),this.target.removeEventListener("gamepaddisconnected",this.onGamepadHandler),this.sceneInputPlugin.pluginEvents.off(s.UPDATE,this.update);for(var i=0;i{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3296,15 +3300,15 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(93301),p=t(79291),a={CreatePixelPerfectHandler:t(84409),CreateInteractiveObject:t(74457),Events:t(8214),Gamepad:t(48646),InputManager:t(7003),InputPlugin:t(48205),InputPluginCache:t(89639),Keyboard:t(51442),Mouse:t(87078),Pointer:t(42515),Touch:t(95618)};a=p(!1,a,d),c.exports=a},78970:(c,T,t)=>{/** + */var d=t(93301),p=t(79291),l={CreatePixelPerfectHandler:t(84409),CreateInteractiveObject:t(74457),Events:t(8214),Gamepad:t(48646),InputManager:t(7003),InputPlugin:t(48205),InputPluginCache:t(89639),Keyboard:t(51442),Mouse:t(87078),Pointer:t(42515),Touch:t(95618)};l=p(!1,l,d),c.exports=l},78970:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(72905),p=t(83419),a=t(8443),r=t(8214),n=t(46032),e=t(29747),s=new p({initialize:function(i){this.manager=i,this.queue=[],this.preventDefault=!0,this.captures=[],this.enabled=!1,this.target,this.onKeyDown=e,this.onKeyUp=e,i.events.once(r.MANAGER_BOOT,this.boot,this)},boot:function(){var l=this.manager.config;this.enabled=l.inputKeyboard,this.target=l.inputKeyboardEventTarget,this.addCapture(l.inputKeyboardCapture),!this.target&&window&&(this.target=window),this.enabled&&this.target&&this.startListeners(),this.manager.game.events.on(a.POST_STEP,this.postUpdate,this)},startListeners:function(){var l=this;this.onKeyDown=function(o){if(!(o.defaultPrevented||!l.enabled||!l.manager)){l.queue.push(o),l.manager.events.emit(r.MANAGER_PROCESS);var u=o.altKey||o.ctrlKey||o.shiftKey||o.metaKey;l.preventDefault&&!u&&l.captures.indexOf(o.keyCode)>-1&&o.preventDefault()}},this.onKeyUp=function(o){if(!(o.defaultPrevented||!l.enabled||!l.manager)){l.queue.push(o),l.manager.events.emit(r.MANAGER_PROCESS);var u=o.altKey||o.ctrlKey||o.shiftKey||o.metaKey;l.preventDefault&&!u&&l.captures.indexOf(o.keyCode)>-1&&o.preventDefault()}};var i=this.target;i&&(i.addEventListener("keydown",this.onKeyDown,!1),i.addEventListener("keyup",this.onKeyUp,!1),this.enabled=!0)},stopListeners:function(){var l=this.target;l.removeEventListener("keydown",this.onKeyDown,!1),l.removeEventListener("keyup",this.onKeyUp,!1),this.enabled=!1},postUpdate:function(){this.queue=[]},addCapture:function(l){typeof l=="string"&&(l=l.split(",")),Array.isArray(l)||(l=[l]);for(var i=this.captures,o=0;o0},removeCapture:function(l){typeof l=="string"&&(l=l.split(",")),Array.isArray(l)||(l=[l]);for(var i=this.captures,o=0;o0},clearCaptures:function(){this.captures=[],this.preventDefault=!1},destroy:function(){this.stopListeners(),this.clearCaptures(),this.queue=[],this.manager.game.events.off(a.POST_RENDER,this.postUpdate,this),this.target=null,this.enabled=!1,this.manager=null}});c.exports=s},28846:(c,T,t)=>{/** + */var d=t(72905),p=t(83419),l=t(8443),r=t(8214),n=t(46032),e=t(29747),s=new p({initialize:function(i){this.manager=i,this.queue=[],this.preventDefault=!0,this.captures=[],this.enabled=!1,this.target,this.onKeyDown=e,this.onKeyUp=e,i.events.once(r.MANAGER_BOOT,this.boot,this)},boot:function(){var o=this.manager.config;this.enabled=o.inputKeyboard,this.target=o.inputKeyboardEventTarget,this.addCapture(o.inputKeyboardCapture),!this.target&&window&&(this.target=window),this.enabled&&this.target&&this.startListeners(),this.manager.game.events.on(l.POST_STEP,this.postUpdate,this)},startListeners:function(){var o=this;this.onKeyDown=function(a){if(!(a.defaultPrevented||!o.enabled||!o.manager)){o.queue.push(a),o.manager.events.emit(r.MANAGER_PROCESS);var u=a.altKey||a.ctrlKey||a.shiftKey||a.metaKey;o.preventDefault&&!u&&o.captures.indexOf(a.keyCode)>-1&&a.preventDefault()}},this.onKeyUp=function(a){if(!(a.defaultPrevented||!o.enabled||!o.manager)){o.queue.push(a),o.manager.events.emit(r.MANAGER_PROCESS);var u=a.altKey||a.ctrlKey||a.shiftKey||a.metaKey;o.preventDefault&&!u&&o.captures.indexOf(a.keyCode)>-1&&a.preventDefault()}};var i=this.target;i&&(i.addEventListener("keydown",this.onKeyDown,!1),i.addEventListener("keyup",this.onKeyUp,!1),this.enabled=!0)},stopListeners:function(){var o=this.target;o.removeEventListener("keydown",this.onKeyDown,!1),o.removeEventListener("keyup",this.onKeyUp,!1),this.enabled=!1},postUpdate:function(){this.queue=[]},addCapture:function(o){typeof o=="string"&&(o=o.split(",")),Array.isArray(o)||(o=[o]);for(var i=this.captures,a=0;a0},removeCapture:function(o){typeof o=="string"&&(o=o.split(",")),Array.isArray(o)||(o=[o]);for(var i=this.captures,a=0;a0},clearCaptures:function(){this.captures=[],this.preventDefault=!1},destroy:function(){this.stopListeners(),this.clearCaptures(),this.queue=[],this.manager.game.events.off(l.POST_RENDER,this.postUpdate,this),this.target=null,this.enabled=!1,this.manager=null}});c.exports=s},28846:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(50792),a=t(95922),r=t(8443),n=t(35154),e=t(8214),s=t(89639),l=t(30472),i=t(46032),o=t(87960),u=t(74600),h=t(44594),f=t(56583),v=new d({Extends:p,initialize:function(x){p.call(this),this.game=x.systems.game,this.scene=x.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=x,this.manager=x.manager.keyboard,this.enabled=!0,this.keys=[],this.combos=[],this.prevCode=null,this.prevTime=0,this.prevType=null,x.pluginEvents.once(e.BOOT,this.boot,this),x.pluginEvents.on(e.START,this.start,this)},boot:function(){var m=this.settings.input;this.enabled=n(m,"keyboard",!0);var x=n(m,"keyboard.capture",null);x&&this.addCaptures(x),this.sceneInputPlugin.pluginEvents.once(e.DESTROY,this.destroy,this)},start:function(){this.sceneInputPlugin.manager.events.on(e.MANAGER_PROCESS,this.update,this),this.sceneInputPlugin.pluginEvents.once(e.SHUTDOWN,this.shutdown,this),this.game.events.on(r.BLUR,this.resetKeys,this),this.scene.sys.events.on(h.PAUSE,this.resetKeys,this),this.scene.sys.events.on(h.SLEEP,this.resetKeys,this)},isActive:function(){return this.enabled&&this.scene.sys.canInput()},addCapture:function(m){return this.manager.addCapture(m),this},removeCapture:function(m){return this.manager.removeCapture(m),this},getCaptures:function(){return this.manager.captures},enableGlobalCapture:function(){return this.manager.preventDefault=!0,this},disableGlobalCapture:function(){return this.manager.preventDefault=!1,this},clearCaptures:function(){return this.manager.clearCaptures(),this},createCursorKeys:function(){return this.addKeys({up:i.UP,down:i.DOWN,left:i.LEFT,right:i.RIGHT,space:i.SPACE,shift:i.SHIFT})},addKeys:function(m,x,g){x===void 0&&(x=!0),g===void 0&&(g=!1);var y={};if(typeof m=="string"){m=m.split(",");for(var S=0;S-1?y[S]=m:y[m.keyCode]=m,x&&this.addCapture(m.keyCode),m.setEmitOnRepeat(g),m}return typeof m=="string"&&(m=i[m.toUpperCase()]),y[m]||(y[m]=new l(this,m),x&&this.addCapture(m),y[m].setEmitOnRepeat(g)),y[m]},removeKey:function(m,x,g){x===void 0&&(x=!1),g===void 0&&(g=!1);var y=this.keys,S;if(m instanceof l){var C=y.indexOf(m);C>-1&&(S=this.keys[C],this.keys[C]=void 0)}else typeof m=="string"&&(m=i[m.toUpperCase()]);return y[m]&&(S=y[m],y[m]=void 0),S&&(S.plugin=null,g&&this.removeCapture(S.keyCode),x&&S.destroy()),this},removeAllKeys:function(m,x){m===void 0&&(m=!1),x===void 0&&(x=!1);for(var g=this.keys,y=0;ym._tick)return m._tick=g,!0}return!1},update:function(){var m=this.manager.queue,x=m.length;if(!(!this.isActive()||x===0))for(var g=this.keys,y=0;y{/** + */var d=t(83419),p=t(50792),l=t(95922),r=t(8443),n=t(35154),e=t(8214),s=t(89639),o=t(30472),i=t(46032),a=t(87960),u=t(74600),h=t(44594),f=t(56583),v=new d({Extends:p,initialize:function(g){p.call(this),this.game=g.systems.game,this.scene=g.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=g,this.manager=g.manager.keyboard,this.enabled=!0,this.keys=[],this.combos=[],this.prevCode=null,this.prevTime=0,this.prevType=null,g.pluginEvents.once(e.BOOT,this.boot,this),g.pluginEvents.on(e.START,this.start,this)},boot:function(){var m=this.settings.input;this.enabled=n(m,"keyboard",!0);var g=n(m,"keyboard.capture",null);g&&this.addCaptures(g),this.sceneInputPlugin.pluginEvents.once(e.DESTROY,this.destroy,this)},start:function(){this.sceneInputPlugin.manager.events.on(e.MANAGER_PROCESS,this.update,this),this.sceneInputPlugin.pluginEvents.once(e.SHUTDOWN,this.shutdown,this),this.game.events.on(r.BLUR,this.resetKeys,this),this.scene.sys.events.on(h.PAUSE,this.resetKeys,this),this.scene.sys.events.on(h.SLEEP,this.resetKeys,this)},isActive:function(){return this.enabled&&this.scene.sys.canInput()},addCapture:function(m){return this.manager.addCapture(m),this},removeCapture:function(m){return this.manager.removeCapture(m),this},getCaptures:function(){return this.manager.captures},enableGlobalCapture:function(){return this.manager.preventDefault=!0,this},disableGlobalCapture:function(){return this.manager.preventDefault=!1,this},clearCaptures:function(){return this.manager.clearCaptures(),this},createCursorKeys:function(){return this.addKeys({up:i.UP,down:i.DOWN,left:i.LEFT,right:i.RIGHT,space:i.SPACE,shift:i.SHIFT})},addKeys:function(m,g,x){g===void 0&&(g=!0),x===void 0&&(x=!1);var y={};if(typeof m=="string"){m=m.split(",");for(var S=0;S-1?y[S]=m:y[m.keyCode]=m,g&&this.addCapture(m.keyCode),m.setEmitOnRepeat(x),m}return typeof m=="string"&&(m=i[m.toUpperCase()]),y[m]||(y[m]=new o(this,m),g&&this.addCapture(m),y[m].setEmitOnRepeat(x)),y[m]},removeKey:function(m,g,x){g===void 0&&(g=!1),x===void 0&&(x=!1);var y=this.keys,S;if(m instanceof o){var C=y.indexOf(m);C>-1&&(S=this.keys[C],this.keys[C]=void 0)}else typeof m=="string"&&(m=i[m.toUpperCase()]);return y[m]&&(S=y[m],y[m]=void 0),S&&(S.plugin=null,x&&this.removeCapture(S.keyCode),g&&S.destroy()),this},removeAllKeys:function(m,g){m===void 0&&(m=!1),g===void 0&&(g=!1);for(var x=this.keys,y=0;ym._tick)return m._tick=x,!0}return!1},update:function(){var m=this.manager.queue,g=m.length;if(!(!this.isActive()||g===0))for(var x=this.keys,y=0;y{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3312,11 +3316,11 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(95922),a=t(95540),r=t(68769),n=t(92803),e=new d({initialize:function(l,i,o){if(o===void 0&&(o={}),i.length<2)return!1;this.manager=l,this.enabled=!0,this.keyCodes=[];for(var u=0;u{/** + */var d=t(83419),p=t(95922),l=t(95540),r=t(68769),n=t(92803),e=new d({initialize:function(o,i,a){if(a===void 0&&(a={}),i.length<2)return!1;this.manager=o,this.enabled=!0,this.keyCodes=[];for(var u=0;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(66970),p=function(a,r){if(r.matched)return!0;var n=!1,e=!1;if(a.keyCode===r.current)if(r.index>0&&r.maxKeyDelay>0){var s=r.timeLastMatched+r.maxKeyDelay;a.timeStamp<=s&&(e=!0,n=d(a,r))}else e=!0,n=d(a,r);return!e&&r.resetOnWrongKey&&(r.index=0,r.current=r.keyCodes[0]),n&&(r.timeLastMatched=a.timeStamp,r.matched=!0,r.timeMatched=a.timeStamp),n};c.exports=p},92803:c=>{/** + */var d=t(66970),p=function(l,r){if(r.matched)return!0;var n=!1,e=!1;if(l.keyCode===r.current)if(r.index>0&&r.maxKeyDelay>0){var s=r.timeLastMatched+r.maxKeyDelay;l.timeStamp<=s&&(e=!0,n=d(l,r))}else e=!0,n=d(l,r);return!e&&r.resetOnWrongKey&&(r.index=0,r.current=r.keyCodes[0]),n&&(r.timeLastMatched=l.timeStamp,r.matched=!0,r.timeMatched=l.timeStamp),n};c.exports=p},92803:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3372,7 +3376,7 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(50792),a=t(95922),r=new d({Extends:p,initialize:function(e,s){p.call(this),this.plugin=e,this.keyCode=s,this.originalEvent=void 0,this.enabled=!0,this.isDown=!1,this.isUp=!0,this.altKey=!1,this.ctrlKey=!1,this.shiftKey=!1,this.metaKey=!1,this.location=0,this.timeDown=0,this.duration=0,this.timeUp=0,this.emitOnRepeat=!1,this.repeats=0,this._justDown=!1,this._justUp=!1,this._tick=-1},setEmitOnRepeat:function(n){return this.emitOnRepeat=n,this},onDown:function(n){this.originalEvent=n,this.enabled&&(this.altKey=n.altKey,this.ctrlKey=n.ctrlKey,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.location=n.location,this.repeats++,this.isDown?this.emitOnRepeat&&this.emit(a.DOWN,this,n):(this.isDown=!0,this.isUp=!1,this.timeDown=n.timeStamp,this.duration=0,this._justDown=!0,this._justUp=!1,this.emit(a.DOWN,this,n)))},onUp:function(n){this.originalEvent=n,this.enabled&&(this.isDown=!1,this.isUp=!0,this.timeUp=n.timeStamp,this.duration=this.timeUp-this.timeDown,this.repeats=0,this._justDown=!1,this._justUp=!0,this._tick=-1,this.emit(a.UP,this,n))},reset:function(){return this.isDown=!1,this.isUp=!0,this.altKey=!1,this.ctrlKey=!1,this.shiftKey=!1,this.metaKey=!1,this.timeDown=0,this.duration=0,this.timeUp=0,this.repeats=0,this._justDown=!1,this._justUp=!1,this._tick=-1,this},getDuration:function(){return this.isDown?this.plugin.game.loop.time-this.timeDown:0},destroy:function(){this.removeAllListeners(),this.originalEvent=null,this.plugin=null}});c.exports=r},46032:c=>{/** + */var d=t(83419),p=t(50792),l=t(95922),r=new d({Extends:p,initialize:function(e,s){p.call(this),this.plugin=e,this.keyCode=s,this.originalEvent=void 0,this.enabled=!0,this.isDown=!1,this.isUp=!0,this.altKey=!1,this.ctrlKey=!1,this.shiftKey=!1,this.metaKey=!1,this.location=0,this.timeDown=0,this.duration=0,this.timeUp=0,this.emitOnRepeat=!1,this.repeats=0,this._justDown=!1,this._justUp=!1,this._tick=-1},setEmitOnRepeat:function(n){return this.emitOnRepeat=n,this},onDown:function(n){this.originalEvent=n,this.enabled&&(this.altKey=n.altKey,this.ctrlKey=n.ctrlKey,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.location=n.location,this.repeats++,this.isDown?this.emitOnRepeat&&this.emit(l.DOWN,this,n):(this.isDown=!0,this.isUp=!1,this.timeDown=n.timeStamp,this.duration=0,this._justDown=!0,this._justUp=!1,this.emit(l.DOWN,this,n)))},onUp:function(n){this.originalEvent=n,this.enabled&&(this.isDown=!1,this.isUp=!0,this.timeUp=n.timeStamp,this.duration=this.timeUp-this.timeDown,this.repeats=0,this._justDown=!1,this._justUp=!0,this._tick=-1,this.emit(l.UP,this,n))},reset:function(){return this.isDown=!1,this.isUp=!0,this.altKey=!1,this.ctrlKey=!1,this.shiftKey=!1,this.metaKey=!1,this.timeDown=0,this.duration=0,this.timeUp=0,this.repeats=0,this._justDown=!1,this._justUp=!1,this._tick=-1,this},getDuration:function(){return this.isDown?this.plugin.game.loop.time-this.timeDown:0},destroy:function(){this.removeAllListeners(),this.originalEvent=null,this.plugin=null}});c.exports=r},46032:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3380,7 +3384,7 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(46032),p={};for(var a in d)p[d[a]]=a;c.exports=p},41170:c=>{/** + */var d=t(46032),p={};for(var l in d)p[d[l]]=l;c.exports=p},41170:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3388,7 +3392,7 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(89357),a=t(8214),r=t(29747),n=new d({initialize:function(s){this.manager=s,this.preventDefaultDown=!0,this.preventDefaultUp=!0,this.preventDefaultMove=!0,this.preventDefaultWheel=!1,this.enabled=!1,this.target,this.locked=!1,this.onMouseMove=r,this.onMouseDown=r,this.onMouseUp=r,this.onMouseDownWindow=r,this.onMouseUpWindow=r,this.onMouseOver=r,this.onMouseOut=r,this.onMouseWheel=r,this.pointerLockChange=r,this.isTop=!0,s.events.once(a.MANAGER_BOOT,this.boot,this)},boot:function(){var e=this.manager.config;this.enabled=e.inputMouse,this.target=e.inputMouseEventTarget,this.passive=e.inputMousePassive,this.preventDefaultDown=e.inputMousePreventDefaultDown,this.preventDefaultUp=e.inputMousePreventDefaultUp,this.preventDefaultMove=e.inputMousePreventDefaultMove,this.preventDefaultWheel=e.inputMousePreventDefaultWheel,this.target?typeof this.target=="string"&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,e.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return this.target.addEventListener("contextmenu",function(e){return e.preventDefault(),!1}),this},requestPointerLock:function(){if(p.pointerLock){var e=this.target;e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock||e.webkitRequestPointerLock,e.requestPointerLock()}},releasePointerLock:function(){p.pointerLock&&(document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock,document.exitPointerLock())},startListeners:function(){var e=this.target;if(e){var s=this,l=this.manager,i=l.canvas,o=window&&window.focus&&l.game.config.autoFocus;this.onMouseMove=function(h){!h.defaultPrevented&&s.enabled&&l&&l.enabled&&(l.onMouseMove(h),s.preventDefaultMove&&h.preventDefault())},this.onMouseDown=function(h){o&&window.focus(),!h.defaultPrevented&&s.enabled&&l&&l.enabled&&(l.onMouseDown(h),s.preventDefaultDown&&h.target===i&&h.preventDefault())},this.onMouseDownWindow=function(h){h.sourceCapabilities&&h.sourceCapabilities.firesTouchEvents||!h.defaultPrevented&&s.enabled&&l&&l.enabled&&h.target!==i&&l.onMouseDown(h)},this.onMouseUp=function(h){!h.defaultPrevented&&s.enabled&&l&&l.enabled&&(l.onMouseUp(h),s.preventDefaultUp&&h.target===i&&h.preventDefault())},this.onMouseUpWindow=function(h){h.sourceCapabilities&&h.sourceCapabilities.firesTouchEvents||!h.defaultPrevented&&s.enabled&&l&&l.enabled&&h.target!==i&&l.onMouseUp(h)},this.onMouseOver=function(h){!h.defaultPrevented&&s.enabled&&l&&l.enabled&&l.setCanvasOver(h)},this.onMouseOut=function(h){!h.defaultPrevented&&s.enabled&&l&&l.enabled&&l.setCanvasOut(h)},this.onMouseWheel=function(h){!h.defaultPrevented&&s.enabled&&l&&l.enabled&&l.onMouseWheel(h),s.preventDefaultWheel&&h.target===i&&h.preventDefault()};var u={passive:!0};if(e.addEventListener("mousemove",this.onMouseMove),e.addEventListener("mousedown",this.onMouseDown),e.addEventListener("mouseup",this.onMouseUp),e.addEventListener("mouseover",this.onMouseOver,u),e.addEventListener("mouseout",this.onMouseOut,u),this.preventDefaultWheel?e.addEventListener("wheel",this.onMouseWheel,{passive:!1}):e.addEventListener("wheel",this.onMouseWheel,u),window&&l.game.config.inputWindowEvents)try{window.top.addEventListener("mousedown",this.onMouseDownWindow,u),window.top.addEventListener("mouseup",this.onMouseUpWindow,u)}catch{window.addEventListener("mousedown",this.onMouseDownWindow,u),window.addEventListener("mouseup",this.onMouseUpWindow,u),this.isTop=!1}p.pointerLock&&(this.pointerLockChange=function(h){var f=s.target;s.locked=document.pointerLockElement===f||document.mozPointerLockElement===f||document.webkitPointerLockElement===f,l.onPointerLockChange(h)},document.addEventListener("pointerlockchange",this.pointerLockChange,!0),document.addEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.addEventListener("webkitpointerlockchange",this.pointerLockChange,!0)),this.enabled=!0}},stopListeners:function(){var e=this.target;e.removeEventListener("mousemove",this.onMouseMove),e.removeEventListener("mousedown",this.onMouseDown),e.removeEventListener("mouseup",this.onMouseUp),e.removeEventListener("mouseover",this.onMouseOver),e.removeEventListener("mouseout",this.onMouseOut),window&&(e=this.isTop?window.top:window,e.removeEventListener("mousedown",this.onMouseDownWindow),e.removeEventListener("mouseup",this.onMouseUpWindow)),p.pointerLock&&(document.removeEventListener("pointerlockchange",this.pointerLockChange,!0),document.removeEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.removeEventListener("webkitpointerlockchange",this.pointerLockChange,!0))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});c.exports=n},87078:(c,T,t)=>{/** + */var d=t(83419),p=t(89357),l=t(8214),r=t(29747),n=new d({initialize:function(s){this.manager=s,this.preventDefaultDown=!0,this.preventDefaultUp=!0,this.preventDefaultMove=!0,this.preventDefaultWheel=!1,this.enabled=!1,this.target,this.locked=!1,this.onMouseMove=r,this.onMouseDown=r,this.onMouseUp=r,this.onMouseDownWindow=r,this.onMouseUpWindow=r,this.onMouseOver=r,this.onMouseOut=r,this.onMouseWheel=r,this.pointerLockChange=r,this.isTop=!0,s.events.once(l.MANAGER_BOOT,this.boot,this)},boot:function(){var e=this.manager.config;this.enabled=e.inputMouse,this.target=e.inputMouseEventTarget,this.passive=e.inputMousePassive,this.preventDefaultDown=e.inputMousePreventDefaultDown,this.preventDefaultUp=e.inputMousePreventDefaultUp,this.preventDefaultMove=e.inputMousePreventDefaultMove,this.preventDefaultWheel=e.inputMousePreventDefaultWheel,this.target?typeof this.target=="string"&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,e.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return this.target.addEventListener("contextmenu",function(e){return e.preventDefault(),!1}),this},requestPointerLock:function(){if(p.pointerLock){var e=this.target;e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock||e.webkitRequestPointerLock,e.requestPointerLock()}},releasePointerLock:function(){p.pointerLock&&(document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock,document.exitPointerLock())},startListeners:function(){var e=this.target;if(e){var s=this,o=this.manager,i=o.canvas,a=window&&window.focus&&o.game.config.autoFocus;this.onMouseMove=function(h){!h.defaultPrevented&&s.enabled&&o&&o.enabled&&(o.onMouseMove(h),s.preventDefaultMove&&h.preventDefault())},this.onMouseDown=function(h){a&&window.focus(),!h.defaultPrevented&&s.enabled&&o&&o.enabled&&(o.onMouseDown(h),s.preventDefaultDown&&h.target===i&&h.preventDefault())},this.onMouseDownWindow=function(h){h.sourceCapabilities&&h.sourceCapabilities.firesTouchEvents||!h.defaultPrevented&&s.enabled&&o&&o.enabled&&h.target!==i&&o.onMouseDown(h)},this.onMouseUp=function(h){!h.defaultPrevented&&s.enabled&&o&&o.enabled&&(o.onMouseUp(h),s.preventDefaultUp&&h.target===i&&h.preventDefault())},this.onMouseUpWindow=function(h){h.sourceCapabilities&&h.sourceCapabilities.firesTouchEvents||!h.defaultPrevented&&s.enabled&&o&&o.enabled&&h.target!==i&&o.onMouseUp(h)},this.onMouseOver=function(h){!h.defaultPrevented&&s.enabled&&o&&o.enabled&&o.setCanvasOver(h)},this.onMouseOut=function(h){!h.defaultPrevented&&s.enabled&&o&&o.enabled&&o.setCanvasOut(h)},this.onMouseWheel=function(h){!h.defaultPrevented&&s.enabled&&o&&o.enabled&&o.onMouseWheel(h),s.preventDefaultWheel&&h.target===i&&h.preventDefault()};var u={passive:!0};if(e.addEventListener("mousemove",this.onMouseMove),e.addEventListener("mousedown",this.onMouseDown),e.addEventListener("mouseup",this.onMouseUp),e.addEventListener("mouseover",this.onMouseOver,u),e.addEventListener("mouseout",this.onMouseOut,u),this.preventDefaultWheel?e.addEventListener("wheel",this.onMouseWheel,{passive:!1}):e.addEventListener("wheel",this.onMouseWheel,u),window&&o.game.config.inputWindowEvents)try{window.top.addEventListener("mousedown",this.onMouseDownWindow,u),window.top.addEventListener("mouseup",this.onMouseUpWindow,u)}catch{window.addEventListener("mousedown",this.onMouseDownWindow,u),window.addEventListener("mouseup",this.onMouseUpWindow,u),this.isTop=!1}p.pointerLock&&(this.pointerLockChange=function(h){var f=s.target;s.locked=document.pointerLockElement===f||document.mozPointerLockElement===f||document.webkitPointerLockElement===f,o.onPointerLockChange(h)},document.addEventListener("pointerlockchange",this.pointerLockChange,!0),document.addEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.addEventListener("webkitpointerlockchange",this.pointerLockChange,!0)),this.enabled=!0}},stopListeners:function(){var e=this.target;e.removeEventListener("mousemove",this.onMouseMove),e.removeEventListener("mousedown",this.onMouseDown),e.removeEventListener("mouseup",this.onMouseUp),e.removeEventListener("mouseover",this.onMouseOver),e.removeEventListener("mouseout",this.onMouseOut),window&&(e=this.isTop?window.top:window,e.removeEventListener("mousedown",this.onMouseDownWindow),e.removeEventListener("mouseup",this.onMouseUpWindow)),p.pointerLock&&(document.removeEventListener("pointerlockchange",this.pointerLockChange,!0),document.removeEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.removeEventListener("webkitpointerlockchange",this.pointerLockChange,!0))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});c.exports=n},87078:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3396,7 +3400,7 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(8214),a=t(29747),r=new d({initialize:function(e){this.manager=e,this.capture=!0,this.enabled=!1,this.target,this.onTouchStart=a,this.onTouchStartWindow=a,this.onTouchMove=a,this.onTouchEnd=a,this.onTouchEndWindow=a,this.onTouchCancel=a,this.onTouchCancelWindow=a,this.isTop=!0,e.events.once(p.MANAGER_BOOT,this.boot,this)},boot:function(){var n=this.manager.config;this.enabled=n.inputTouch,this.target=n.inputTouchEventTarget,this.capture=n.inputTouchCapture,this.target?typeof this.target=="string"&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,n.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return this.target.addEventListener("contextmenu",function(n){return n.preventDefault(),!1}),this},startListeners:function(){var n=this.target;if(n){var e=this,s=this.manager,l=s.canvas,i=window&&window.focus&&s.game.config.autoFocus;this.onTouchMove=function(f){!f.defaultPrevented&&e.enabled&&s&&s.enabled&&(s.onTouchMove(f),e.capture&&f.cancelable&&f.preventDefault())},this.onTouchStart=function(f){i&&window.focus(),!f.defaultPrevented&&e.enabled&&s&&s.enabled&&(s.onTouchStart(f),e.capture&&f.cancelable&&f.target===l&&f.preventDefault())},this.onTouchStartWindow=function(f){!f.defaultPrevented&&e.enabled&&s&&s.enabled&&f.target!==l&&s.onTouchStart(f)},this.onTouchEnd=function(f){!f.defaultPrevented&&e.enabled&&s&&s.enabled&&(s.onTouchEnd(f),e.capture&&f.cancelable&&f.target===l&&f.preventDefault())},this.onTouchEndWindow=function(f){!f.defaultPrevented&&e.enabled&&s&&s.enabled&&f.target!==l&&s.onTouchEnd(f)},this.onTouchCancel=function(f){!f.defaultPrevented&&e.enabled&&s&&s.enabled&&(s.onTouchCancel(f),e.capture&&f.preventDefault())},this.onTouchCancelWindow=function(f){!f.defaultPrevented&&e.enabled&&s&&s.enabled&&s.onTouchCancel(f)};var o=this.capture,u={passive:!0},h={passive:!1};if(n.addEventListener("touchstart",this.onTouchStart,o?h:u),n.addEventListener("touchmove",this.onTouchMove,o?h:u),n.addEventListener("touchend",this.onTouchEnd,o?h:u),n.addEventListener("touchcancel",this.onTouchCancel,o?h:u),window&&s.game.config.inputWindowEvents)try{window.top.addEventListener("touchstart",this.onTouchStartWindow,h),window.top.addEventListener("touchend",this.onTouchEndWindow,h),window.top.addEventListener("touchcancel",this.onTouchCancelWindow,h)}catch{window.addEventListener("touchstart",this.onTouchStartWindow,h),window.addEventListener("touchend",this.onTouchEndWindow,h),window.addEventListener("touchcancel",this.onTouchCancelWindow,h),this.isTop=!1}this.enabled=!0}},stopListeners:function(){var n=this.target;n.removeEventListener("touchstart",this.onTouchStart),n.removeEventListener("touchmove",this.onTouchMove),n.removeEventListener("touchend",this.onTouchEnd),n.removeEventListener("touchcancel",this.onTouchCancel),window&&(n=this.isTop?window.top:window,n.removeEventListener("touchstart",this.onTouchStartWindow),n.removeEventListener("touchend",this.onTouchEndWindow),n.removeEventListener("touchcancel",this.onTouchCancelWindow))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});c.exports=r},95618:(c,T,t)=>{/** + */var d=t(83419),p=t(8214),l=t(29747),r=new d({initialize:function(e){this.manager=e,this.capture=!0,this.enabled=!1,this.target,this.onTouchStart=l,this.onTouchStartWindow=l,this.onTouchMove=l,this.onTouchEnd=l,this.onTouchEndWindow=l,this.onTouchCancel=l,this.onTouchCancelWindow=l,this.isTop=!0,e.events.once(p.MANAGER_BOOT,this.boot,this)},boot:function(){var n=this.manager.config;this.enabled=n.inputTouch,this.target=n.inputTouchEventTarget,this.capture=n.inputTouchCapture,this.target?typeof this.target=="string"&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,n.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return this.target.addEventListener("contextmenu",function(n){return n.preventDefault(),!1}),this},startListeners:function(){var n=this.target;if(n){var e=this,s=this.manager,o=s.canvas,i=window&&window.focus&&s.game.config.autoFocus;this.onTouchMove=function(f){!f.defaultPrevented&&e.enabled&&s&&s.enabled&&(s.onTouchMove(f),e.capture&&f.cancelable&&f.preventDefault())},this.onTouchStart=function(f){i&&window.focus(),!f.defaultPrevented&&e.enabled&&s&&s.enabled&&(s.onTouchStart(f),e.capture&&f.cancelable&&f.target===o&&f.preventDefault())},this.onTouchStartWindow=function(f){!f.defaultPrevented&&e.enabled&&s&&s.enabled&&f.target!==o&&s.onTouchStart(f)},this.onTouchEnd=function(f){!f.defaultPrevented&&e.enabled&&s&&s.enabled&&(s.onTouchEnd(f),e.capture&&f.cancelable&&f.target===o&&f.preventDefault())},this.onTouchEndWindow=function(f){!f.defaultPrevented&&e.enabled&&s&&s.enabled&&f.target!==o&&s.onTouchEnd(f)},this.onTouchCancel=function(f){!f.defaultPrevented&&e.enabled&&s&&s.enabled&&(s.onTouchCancel(f),e.capture&&f.preventDefault())},this.onTouchCancelWindow=function(f){!f.defaultPrevented&&e.enabled&&s&&s.enabled&&s.onTouchCancel(f)};var a=this.capture,u={passive:!0},h={passive:!1};if(n.addEventListener("touchstart",this.onTouchStart,a?h:u),n.addEventListener("touchmove",this.onTouchMove,a?h:u),n.addEventListener("touchend",this.onTouchEnd,a?h:u),n.addEventListener("touchcancel",this.onTouchCancel,a?h:u),window&&s.game.config.inputWindowEvents)try{window.top.addEventListener("touchstart",this.onTouchStartWindow,h),window.top.addEventListener("touchend",this.onTouchEndWindow,h),window.top.addEventListener("touchcancel",this.onTouchCancelWindow,h)}catch{window.addEventListener("touchstart",this.onTouchStartWindow,h),window.addEventListener("touchend",this.onTouchEndWindow,h),window.addEventListener("touchcancel",this.onTouchCancelWindow,h),this.isTop=!1}this.enabled=!0}},stopListeners:function(){var n=this.target;n.removeEventListener("touchstart",this.onTouchStart),n.removeEventListener("touchmove",this.onTouchMove),n.removeEventListener("touchend",this.onTouchEnd),n.removeEventListener("touchcancel",this.onTouchCancel),window&&(n=this.isTop?window.top:window,n.removeEventListener("touchstart",this.onTouchStartWindow),n.removeEventListener("touchend",this.onTouchEndWindow),n.removeEventListener("touchcancel",this.onTouchCancelWindow))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});c.exports=r},95618:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3404,7 +3408,7 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(23906),a=t(54899),r=t(95540),n=t(98356),e=t(3374),s=t(84376),l=t(92638),i=new d({initialize:function(u,h){if(this.loader=u,this.cache=r(h,"cache",!1),this.type=r(h,"type",!1),!this.type)throw new Error("Invalid File type: "+this.type);this.key=r(h,"key",!1);var f=this.key;if(u.prefix&&u.prefix!==""&&(this.key=u.prefix+f),!this.key)throw new Error("Invalid File key: "+this.key);var v=r(h,"url");v===void 0?v=u.path+f+"."+r(h,"extension",""):typeof v=="string"&&!v.match(/^(?:blob:|data:|capacitor:\/\/|http:\/\/|https:\/\/|\/\/)/)&&(v=u.path+v),this.url=v,this.src="",this.xhrSettings=l(r(h,"responseType",void 0)),r(h,"xhrSettings",!1)&&(this.xhrSettings=e(this.xhrSettings,r(h,"xhrSettings",{}))),this.xhrLoader=null,this.state=typeof this.url=="function"?p.FILE_POPULATED:p.FILE_PENDING,this.bytesTotal=0,this.bytesLoaded=-1,this.percentComplete=-1,this.crossOrigin=void 0,this.data=void 0,this.config=r(h,"config",{}),this.multiFile,this.linkFile,this.base64=typeof v=="string"&&v.indexOf("data:")===0},setLink:function(o){this.linkFile=o,o.linkFile=this},resetXHR:function(){this.xhrLoader&&(this.xhrLoader.onload=void 0,this.xhrLoader.onerror=void 0,this.xhrLoader.onprogress=void 0)},load:function(){this.state===p.FILE_POPULATED?this.loader.nextFile(this,!0):(this.state=p.FILE_LOADING,this.src=n(this,this.loader.baseURL),this.src.indexOf("data:")===0&&(this.base64=!0),this.xhrLoader=s(this,this.loader.xhr))},onLoad:function(o,u){var h=o.responseURL&&this.loader.localSchemes.some(function(m){return o.responseURL.indexOf(m)===0}),f=h&&u.target.status===0,v=!(u.target&&u.target.status!==200)||f;o.readyState===4&&o.status>=400&&o.status<=599&&(v=!1),this.state=p.FILE_LOADED,this.resetXHR(),this.loader.nextFile(this,v)},onBase64Load:function(o){this.xhrLoader=o,this.state=p.FILE_LOADED,this.percentComplete=1,this.loader.emit(a.FILE_PROGRESS,this,this.percentComplete),this.loader.nextFile(this,!0)},onError:function(){this.resetXHR(),this.loader.nextFile(this,!1)},onProgress:function(o){o.lengthComputable&&(this.bytesLoaded=o.loaded,this.bytesTotal=o.total,this.percentComplete=Math.min(this.bytesLoaded/this.bytesTotal,1),this.loader.emit(a.FILE_PROGRESS,this,this.percentComplete))},onProcess:function(){this.state=p.FILE_PROCESSING,this.onProcessComplete()},onProcessComplete:function(){this.state=p.FILE_COMPLETE,this.multiFile&&this.multiFile.onFileComplete(this),this.loader.fileProcessComplete(this)},onProcessError:function(){console.error('Failed to process file: %s "%s"',this.type,this.key),this.state=p.FILE_ERRORED,this.multiFile&&this.multiFile.onFileFailed(this),this.loader.fileProcessComplete(this)},hasCacheConflict:function(){return this.cache&&this.cache.exists(this.key)},addToCache:function(){this.cache&&this.data&&this.cache.add(this.key,this.data)},pendingDestroy:function(o){if(this.state!==p.FILE_PENDING_DESTROY){o===void 0&&(o=this.data);var u=this.key,h=this.type;this.loader.emit(a.FILE_COMPLETE,u,h,o),this.loader.emit(a.FILE_KEY_COMPLETE+h+"-"+u,u,h,o),this.loader.flagForRemoval(this),this.state=p.FILE_PENDING_DESTROY}},destroy:function(){this.loader=null,this.cache=null,this.xhrSettings=null,this.multiFile=null,this.linkFile=null,this.data=null}});i.createObjectURL=function(o,u,h){if(typeof URL=="function")o.src=URL.createObjectURL(u);else{var f=new FileReader;f.onload=function(){o.removeAttribute("crossOrigin"),o.src="data:"+(u.type||h)+";base64,"+f.result.split(",")[1]},f.onerror=o.onerror,f.readAsDataURL(u)}},i.revokeObjectURL=function(o){typeof URL=="function"&&URL.revokeObjectURL(o.src)},c.exports=i},74099:c=>{/** + */var d=t(83419),p=t(23906),l=t(54899),r=t(95540),n=t(98356),e=t(3374),s=t(84376),o=t(92638),i=new d({initialize:function(u,h){if(this.loader=u,this.cache=r(h,"cache",!1),this.type=r(h,"type",!1),!this.type)throw new Error("Invalid File type: "+this.type);this.key=r(h,"key",!1);var f=this.key;if(u.prefix&&u.prefix!==""&&(this.key=u.prefix+f),!this.key)throw new Error("Invalid File key: "+this.key);var v=r(h,"url");v===void 0?v=u.path+f+"."+r(h,"extension",""):typeof v=="string"&&!v.match(/^(?:blob:|data:|capacitor:\/\/|http:\/\/|https:\/\/|\/\/)/)&&(v=u.path+v),this.url=v,this.src="",this.xhrSettings=o(r(h,"responseType",void 0)),r(h,"xhrSettings",!1)&&(this.xhrSettings=e(this.xhrSettings,r(h,"xhrSettings",{}))),this.xhrLoader=null,this.state=typeof this.url=="function"?p.FILE_POPULATED:p.FILE_PENDING,this.bytesTotal=0,this.bytesLoaded=-1,this.percentComplete=-1,this.crossOrigin=void 0,this.data=void 0,this.config=r(h,"config",{}),this.multiFile,this.linkFile,this.base64=typeof v=="string"&&v.indexOf("data:")===0,this.retryAttempts=r(h,"maxRetries",u.maxRetries)},setLink:function(a){this.linkFile=a,a.linkFile=this},resetXHR:function(){this.xhrLoader&&(this.xhrLoader.onload=void 0,this.xhrLoader.onerror=void 0,this.xhrLoader.onprogress=void 0)},load:function(){if(this.state===p.FILE_POPULATED)this.loader.nextFile(this,!0);else{if(this.state=p.FILE_LOADING,this.src=n(this,this.loader.baseURL),!this.src)throw new Error("URL Error in File: "+this.key+" from: "+this.url);this.src.indexOf("data:")===0&&(this.base64=!0),this.xhrLoader=s(this,this.loader.xhr)}},onLoad:function(a,u){var h=a.responseURL&&this.loader.localSchemes.some(function(m){return a.responseURL.indexOf(m)===0}),f=h&&u.target.status===0,v=!(u.target&&u.target.status!==200)||f;a.readyState===4&&a.status>=400&&a.status<=599&&(v=!1),this.state=p.FILE_LOADED,this.resetXHR(),this.loader.nextFile(this,v)},onBase64Load:function(a){this.xhrLoader=a,this.state=p.FILE_LOADED,this.percentComplete=1,this.loader.emit(l.FILE_PROGRESS,this,this.percentComplete),this.loader.nextFile(this,!0)},onError:function(){this.resetXHR(),this.retryAttempts>0?(this.retryAttempts--,this.load()):this.loader.nextFile(this,!1)},onProgress:function(a){a.lengthComputable&&(this.bytesLoaded=a.loaded,this.bytesTotal=a.total,this.percentComplete=Math.min(this.bytesLoaded/this.bytesTotal,1),this.loader.emit(l.FILE_PROGRESS,this,this.percentComplete))},onProcess:function(){this.state=p.FILE_PROCESSING,this.onProcessComplete()},onProcessComplete:function(){this.state=p.FILE_COMPLETE,this.multiFile&&this.multiFile.onFileComplete(this),this.loader.fileProcessComplete(this)},onProcessError:function(){console.error('Failed to process file: %s "%s"',this.type,this.key),this.state=p.FILE_ERRORED,this.multiFile&&this.multiFile.onFileFailed(this),this.loader.fileProcessComplete(this)},hasCacheConflict:function(){return this.cache&&this.cache.exists(this.key)},addToCache:function(){this.cache&&this.data&&this.cache.add(this.key,this.data)},pendingDestroy:function(a){if(this.state!==p.FILE_PENDING_DESTROY){a===void 0&&(a=this.data);var u=this.key,h=this.type;this.loader.emit(l.FILE_COMPLETE,u,h,a),this.loader.emit(l.FILE_KEY_COMPLETE+h+"-"+u,u,h,a),this.loader.flagForRemoval(this),this.state=p.FILE_PENDING_DESTROY}},destroy:function(){this.loader=null,this.cache=null,this.xhrSettings=null,this.multiFile=null,this.linkFile=null,this.data=null}});i.createObjectURL=function(a,u,h){if(typeof URL=="function")a.src=URL.createObjectURL(u);else{var f=new FileReader;f.onload=function(){a.removeAttribute("crossOrigin"),a.src="data:"+(u.type||h)+";base64,"+f.result.split(",")[1]},f.onerror=a.onerror,f.readAsDataURL(u)}},i.revokeObjectURL=function(a){typeof URL=="function"&&URL.revokeObjectURL(a.src)},c.exports=i},74099:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3416,23 +3420,23 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(23906),a=t(35072),r=t(50792),n=t(54899),e=t(74099),s=t(95540),l=t(35154),i=t(37277),o=t(44594),u=t(92638),h=new d({Extends:r,initialize:function(v){r.call(this);var m=v.sys.game.config,x=v.sys.settings.loader;this.scene=v,this.systems=v.sys,this.cacheManager=v.sys.cache,this.textureManager=v.sys.textures,this.sceneManager=v.sys.game.scene,e.install(this),this.prefix="",this.path="",this.baseURL="",this.setBaseURL(s(x,"baseURL",m.loaderBaseURL)),this.setPath(s(x,"path",m.loaderPath)),this.setPrefix(s(x,"prefix",m.loaderPrefix)),this.maxParallelDownloads=s(x,"maxParallelDownloads",m.loaderMaxParallelDownloads),this.xhr=u(s(x,"responseType",m.loaderResponseType),s(x,"async",m.loaderAsync),s(x,"user",m.loaderUser),s(x,"password",m.loaderPassword),s(x,"timeout",m.loaderTimeout),s(x,"withCredentials",m.loaderWithCredentials)),this.crossOrigin=s(x,"crossOrigin",m.loaderCrossOrigin),this.imageLoadType=s(x,"imageLoadType",m.loaderImageLoadType),this.localSchemes=s(x,"localScheme",m.loaderLocalScheme),this.totalToLoad=0,this.progress=0,this.list=new a,this.inflight=new a,this.queue=new a,this._deleteQueue=new a,this.totalFailed=0,this.totalComplete=0,this.state=p.LOADER_IDLE,this.multiKeyIndex=0,v.sys.events.once(o.BOOT,this.boot,this),v.sys.events.on(o.START,this.pluginStart,this)},boot:function(){this.systems.events.once(o.DESTROY,this.destroy,this)},pluginStart:function(){this.systems.events.once(o.SHUTDOWN,this.shutdown,this)},setBaseURL:function(f){return f===void 0&&(f=""),f!==""&&f.substr(-1)!=="/"&&(f=f.concat("/")),this.baseURL=f,this},setPath:function(f){return f===void 0&&(f=""),f!==""&&f.substr(-1)!=="/"&&(f=f.concat("/")),this.path=f,this},setPrefix:function(f){return f===void 0&&(f=""),this.prefix=f,this},setCORS:function(f){return this.crossOrigin=f,this},addFile:function(f){Array.isArray(f)||(f=[f]);for(var v=0;v0},isLoading:function(){return this.state===p.LOADER_LOADING||this.state===p.LOADER_PROCESSING},isReady:function(){return this.state===p.LOADER_IDLE||this.state===p.LOADER_COMPLETE},start:function(){this.isReady()&&(this.progress=0,this.totalFailed=0,this.totalComplete=0,this.totalToLoad=this.list.size,this.emit(n.START,this),this.list.size===0?this.loadComplete():(this.state=p.LOADER_LOADING,this.inflight.clear(),this.queue.clear(),this.updateProgress(),this.checkLoadQueue(),this.systems.events.on(o.UPDATE,this.update,this)))},updateProgress:function(){this.progress=1-(this.list.size+this.inflight.size)/this.totalToLoad,this.emit(n.PROGRESS,this.progress)},update:function(){this.state===p.LOADER_LOADING&&this.list.size>0&&this.inflight.size{/** + */var d=t(83419),p=t(23906),l=t(35072),r=t(50792),n=t(54899),e=t(74099),s=t(95540),o=t(35154),i=t(41212),a=t(37277),u=t(44594),h=t(92638),f=new d({Extends:r,initialize:function(m){r.call(this);var g=m.sys.game.config,x=m.sys.settings.loader;this.scene=m,this.systems=m.sys,this.cacheManager=m.sys.cache,this.textureManager=m.sys.textures,this.sceneManager=m.sys.game.scene,e.install(this),this.prefix="",this.path="",this.baseURL="",this.setBaseURL(s(x,"baseURL",g.loaderBaseURL)),this.setPath(s(x,"path",g.loaderPath)),this.setPrefix(s(x,"prefix",g.loaderPrefix)),this.maxParallelDownloads=s(x,"maxParallelDownloads",g.loaderMaxParallelDownloads),this.xhr=h(s(x,"responseType",g.loaderResponseType),s(x,"async",g.loaderAsync),s(x,"user",g.loaderUser),s(x,"password",g.loaderPassword),s(x,"timeout",g.loaderTimeout),s(x,"withCredentials",g.loaderWithCredentials)),this.crossOrigin=s(x,"crossOrigin",g.loaderCrossOrigin),this.imageLoadType=s(x,"imageLoadType",g.loaderImageLoadType),this.localSchemes=s(x,"localScheme",g.loaderLocalScheme),this.totalToLoad=0,this.progress=0,this.list=new l,this.inflight=new l,this.queue=new l,this._deleteQueue=new l,this.totalFailed=0,this.totalComplete=0,this.state=p.LOADER_IDLE,this.multiKeyIndex=0,this.maxRetries=s(x,"maxRetries",g.loaderMaxRetries),m.sys.events.once(u.BOOT,this.boot,this),m.sys.events.on(u.START,this.pluginStart,this)},boot:function(){this.systems.events.once(u.DESTROY,this.destroy,this)},pluginStart:function(){this.systems.events.once(u.SHUTDOWN,this.shutdown,this)},setBaseURL:function(v){return v===void 0&&(v=""),v!==""&&v.substr(-1)!=="/"&&(v=v.concat("/")),this.baseURL=v,this},setPath:function(v){return v===void 0&&(v=""),v!==""&&v.substr(-1)!=="/"&&(v=v.concat("/")),this.path=v,this},setPrefix:function(v){return v===void 0&&(v=""),this.prefix=v,this},setCORS:function(v){return this.crossOrigin=v,this},addFile:function(v){Array.isArray(v)||(v=[v]);for(var m=0;m0},removePack:function(v,m){var g=this.systems.anims,x=this.cacheManager,y=this.textureManager,S={animation:"json",aseprite:"json",audio:"audio",audioSprite:"audio",binary:"binary",bitmapFont:"bitmapFont",css:null,glsl:"shader",html:"html",json:"json",obj:"obj",plugin:null,scenePlugin:null,script:null,spine:"json",text:"text",tilemapCSV:"tilemap",tilemapImpact:"tilemap",tilemapTiledJSON:"tilemap",video:"video",xml:"xml"},C;if(i(v))C=v;else if(C=x.json.get(v),!C){console.warn("Asset Pack not found in JSON cache:",v);return}m&&(C={_:C[m]});for(var E in C){var M=C[E],P=s(M,"prefix",""),A=s(M,"files"),R=s(M,"defaultType");if(Array.isArray(A))for(var F=0;F0&&this.inflight.size{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(79291),p=t(92638),a=function(r,n){var e=r===void 0?p():d({},r);if(n)for(var s in n)n[s]!==void 0&&(e[s]=n[s]);return e};c.exports=a},26430:(c,T,t)=>{/** + */var d=t(79291),p=t(92638),l=function(r,n){var e=r===void 0?p():d({},r);if(n)for(var s in n)n[s]!==void 0&&(e[s]=n[s]);return e};c.exports=l},26430:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(23906),a=t(54899),r=new d({initialize:function(e,s,l,i){var o=[];i.forEach(function(f){f&&o.push(f)}),this.loader=e,this.type=s,this.key=l;var u=this.key;e.prefix&&e.prefix!==""&&(this.key=e.prefix+u),this.multiKeyIndex=e.multiKeyIndex++,this.files=o,this.state=p.FILE_PENDING,this.complete=!1,this.pending=o.length,this.failed=0,this.config={},this.baseURL=e.baseURL,this.path=e.path,this.prefix=e.prefix;for(var h=0;h{/** + */var d=t(83419),p=t(23906),l=t(54899),r=new d({initialize:function(e,s,o,i){var a=[];i.forEach(function(f){f&&a.push(f)}),this.loader=e,this.type=s,this.key=o;var u=this.key;e.prefix&&e.prefix!==""&&(this.key=e.prefix+u),this.multiKeyIndex=e.multiKeyIndex++,this.files=a,this.state=p.FILE_PENDING,this.complete=!1,this.pending=a.length,this.failed=0,this.config={},this.baseURL=e.baseURL,this.path=e.path,this.prefix=e.prefix;for(var h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(3374),p=function(a,r){var n=d(r,a.xhrSettings);if(a.base64){var e=a.url.split(";base64,").pop()||a.url.split(",").pop(),s={responseText:atob(e)};a.onBase64Load(s);return}var l=new XMLHttpRequest;if(l.open("GET",a.src,n.async,n.user,n.password),l.responseType=a.xhrSettings.responseType,l.timeout=n.timeout,n.headers)for(var i in n.headers)l.setRequestHeader(i,n.headers[i]);return n.header&&n.headerValue&&l.setRequestHeader(n.header,n.headerValue),n.requestedWith&&l.setRequestHeader("X-Requested-With",n.requestedWith),n.overrideMimeType&&l.overrideMimeType(n.overrideMimeType),n.withCredentials&&(l.withCredentials=!0),l.onload=a.onLoad.bind(a,l),l.onerror=a.onError.bind(a,l),l.onprogress=a.onProgress.bind(a),l.ontimeout=a.onError.bind(a,l),l.send(),l};c.exports=p},92638:c=>{/** + */var d=t(3374),p=function(l,r){var n=d(r,l.xhrSettings);if(l.base64){var e=l.url.split(";base64,").pop()||l.url.split(",").pop(),s={responseText:atob(e)};l.onBase64Load(s);return}var o=new XMLHttpRequest;if(o.open("GET",l.src,n.async,n.user,n.password),o.responseType=l.xhrSettings.responseType,o.timeout=n.timeout,n.headers)for(var i in n.headers)o.setRequestHeader(i,n.headers[i]);return n.header&&n.headerValue&&o.setRequestHeader(n.header,n.headerValue),n.requestedWith&&o.setRequestHeader("X-Requested-With",n.requestedWith),n.overrideMimeType&&o.overrideMimeType(n.overrideMimeType),n.withCredentials&&(o.withCredentials=!0),o.onload=l.onLoad.bind(l,o),o.onerror=l.onError.bind(l,o),o.onprogress=l.onProgress.bind(l),o.ontimeout=l.onError.bind(l,o),o.send(),o};c.exports=p},92638:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a,r,n){return t===void 0&&(t=""),d===void 0&&(d=!0),p===void 0&&(p=""),a===void 0&&(a=""),r===void 0&&(r=0),n===void 0&&(n=!1),{responseType:t,async:d,user:p,password:a,timeout:r,headers:void 0,header:void 0,headerValue:void 0,requestedWith:!1,overrideMimeType:void 0,withCredentials:n}};c.exports=T},23906:c=>{/** + */var T=function(t,d,p,l,r,n){return t===void 0&&(t=""),d===void 0&&(d=!0),p===void 0&&(p=""),l===void 0&&(l=""),r===void 0&&(r=0),n===void 0&&(n=!1),{responseType:t,async:d,user:p,password:l,timeout:r,headers:void 0,header:void 0,headerValue:void 0,requestedWith:!1,overrideMimeType:void 0,withCredentials:n}};c.exports=T},23906:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3484,140 +3488,140 @@ * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(74099),a=t(518),r=t(54899),n=new d({Extends:a,initialize:function(s,l,i,o,u){a.call(this,s,l,i,o,u),this.type="animationJSON"},onProcess:function(){this.loader.once(r.POST_PROCESS,this.onLoadComplete,this),a.prototype.onProcess.call(this)},onLoadComplete:function(){this.loader.systems.anims.fromJSON(this.data)}});p.register("animation",function(e,s,l,i){if(Array.isArray(e))for(var o=0;o{/** + */var d=t(83419),p=t(74099),l=t(518),r=t(54899),n=new d({Extends:l,initialize:function(s,o,i,a,u){l.call(this,s,o,i,a,u),this.type="animationJSON"},onProcess:function(){this.loader.once(r.POST_PROCESS,this.onLoadComplete,this),l.prototype.onProcess.call(this)},onLoadComplete:function(){this.loader.systems.anims.fromJSON(this.data)}});p.register("animation",function(e,s,o,i){if(Array.isArray(e))for(var a=0;a{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(74099),a=t(95540),r=t(19550),n=t(41212),e=t(518),s=t(26430),l=new d({Extends:s,initialize:function(o,u,h,f,v,m){var x,g;if(n(u)){var y=u;u=a(y,"key"),x=new r(o,{key:u,url:a(y,"textureURL"),extension:a(y,"textureExtension","png"),normalMap:a(y,"normalMap"),xhrSettings:a(y,"textureXhrSettings")}),g=new e(o,{key:u,url:a(y,"atlasURL"),extension:a(y,"atlasExtension","json"),xhrSettings:a(y,"atlasXhrSettings")})}else x=new r(o,u,h,v),g=new e(o,u,f,m);x.linkFile?s.call(this,o,"atlasjson",u,[x,g,x.linkFile]):s.call(this,o,"atlasjson",u,[x,g])},addToCache:function(){if(this.isReadyToProcess()){var i=this.files[0],o=this.files[1],u=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlas(i.key,i.data,o.data,u),o.addToCache(),this.complete=!0}}});p.register("aseprite",function(i,o,u,h,f){var v;if(Array.isArray(i))for(var m=0;m{/** + */var d=t(83419),p=t(74099),l=t(95540),r=t(19550),n=t(41212),e=t(518),s=t(26430),o=new d({Extends:s,initialize:function(a,u,h,f,v,m){var g,x;if(n(u)){var y=u;u=l(y,"key"),g=new r(a,{key:u,url:l(y,"textureURL"),extension:l(y,"textureExtension","png"),normalMap:l(y,"normalMap"),xhrSettings:l(y,"textureXhrSettings")}),x=new e(a,{key:u,url:l(y,"atlasURL"),extension:l(y,"atlasExtension","json"),xhrSettings:l(y,"atlasXhrSettings")})}else g=new r(a,u,h,v),x=new e(a,u,f,m);g.linkFile?s.call(this,a,"atlasjson",u,[g,x,g.linkFile]):s.call(this,a,"atlasjson",u,[g,x])},addToCache:function(){if(this.isReadyToProcess()){var i=this.files[0],a=this.files[1],u=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlas(i.key,i.data,a.data,u),a.addToCache(),this.complete=!0}}});p.register("aseprite",function(i,a,u,h,f){var v;if(Array.isArray(i))for(var m=0;m{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(74099),a=t(95540),r=t(19550),n=t(41212),e=t(518),s=t(26430),l=new d({Extends:s,initialize:function(o,u,h,f,v,m){var x,g;if(n(u)){var y=u;u=a(y,"key"),x=new r(o,{key:u,url:a(y,"textureURL"),extension:a(y,"textureExtension","png"),normalMap:a(y,"normalMap"),xhrSettings:a(y,"textureXhrSettings")}),g=new e(o,{key:u,url:a(y,"atlasURL"),extension:a(y,"atlasExtension","json"),xhrSettings:a(y,"atlasXhrSettings")})}else x=new r(o,u,h,v),g=new e(o,u,f,m);x.linkFile?s.call(this,o,"atlasjson",u,[x,g,x.linkFile]):s.call(this,o,"atlasjson",u,[x,g])},addToCache:function(){if(this.isReadyToProcess()){var i=this.files[0],o=this.files[1],u=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlas(i.key,i.data,o.data,u),this.complete=!0}}});p.register("atlas",function(i,o,u,h,f){var v;if(Array.isArray(i))for(var m=0;m{/** + */var d=t(83419),p=t(74099),l=t(95540),r=t(19550),n=t(41212),e=t(518),s=t(26430),o=new d({Extends:s,initialize:function(a,u,h,f,v,m){var g,x;if(n(u)){var y=u;u=l(y,"key"),g=new r(a,{key:u,url:l(y,"textureURL"),extension:l(y,"textureExtension","png"),normalMap:l(y,"normalMap"),xhrSettings:l(y,"textureXhrSettings")}),x=new e(a,{key:u,url:l(y,"atlasURL"),extension:l(y,"atlasExtension","json"),xhrSettings:l(y,"atlasXhrSettings")})}else g=new r(a,u,h,v),x=new e(a,u,f,m);g.linkFile?s.call(this,a,"atlasjson",u,[g,x,g.linkFile]):s.call(this,a,"atlasjson",u,[g,x])},addToCache:function(){if(this.isReadyToProcess()){var i=this.files[0],a=this.files[1],u=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlas(i.key,i.data,a.data,u),this.complete=!0}}});p.register("atlas",function(i,a,u,h,f){var v;if(Array.isArray(i))for(var m=0;m{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(74099),a=t(95540),r=t(19550),n=t(41212),e=t(26430),s=t(57318),l=new d({Extends:e,initialize:function(o,u,h,f,v,m){var x,g;if(n(u)){var y=u;u=a(y,"key"),x=new r(o,{key:u,url:a(y,"textureURL"),extension:a(y,"textureExtension","png"),normalMap:a(y,"normalMap"),xhrSettings:a(y,"textureXhrSettings")}),g=new s(o,{key:u,url:a(y,"atlasURL"),extension:a(y,"atlasExtension","xml"),xhrSettings:a(y,"atlasXhrSettings")})}else x=new r(o,u,h,v),g=new s(o,u,f,m);x.linkFile?e.call(this,o,"atlasxml",u,[x,g,x.linkFile]):e.call(this,o,"atlasxml",u,[x,g])},addToCache:function(){if(this.isReadyToProcess()){var i=this.files[0],o=this.files[1],u=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlasXML(i.key,i.data,o.data,u),this.complete=!0}}});p.register("atlasXML",function(i,o,u,h,f){var v;if(Array.isArray(i))for(var m=0;m{/** + */var d=t(83419),p=t(74099),l=t(95540),r=t(19550),n=t(41212),e=t(26430),s=t(57318),o=new d({Extends:e,initialize:function(a,u,h,f,v,m){var g,x;if(n(u)){var y=u;u=l(y,"key"),g=new r(a,{key:u,url:l(y,"textureURL"),extension:l(y,"textureExtension","png"),normalMap:l(y,"normalMap"),xhrSettings:l(y,"textureXhrSettings")}),x=new s(a,{key:u,url:l(y,"atlasURL"),extension:l(y,"atlasExtension","xml"),xhrSettings:l(y,"atlasXhrSettings")})}else g=new r(a,u,h,v),x=new s(a,u,f,m);g.linkFile?e.call(this,a,"atlasxml",u,[g,x,g.linkFile]):e.call(this,a,"atlasxml",u,[g,x])},addToCache:function(){if(this.isReadyToProcess()){var i=this.files[0],a=this.files[1],u=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlasXML(i.key,i.data,a.data,u),this.complete=!0}}});p.register("atlasXML",function(i,a,u,h,f){var v;if(Array.isArray(i))for(var m=0;m{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(89749),s=t(41212),l=new d({Extends:a,initialize:function(o,u,h,f,v){if(s(u)){var m=u;u=n(m,"key"),f=n(m,"xhrSettings"),v=n(m,"context",v)}var x={type:"audio",cache:o.cacheManager.audio,extension:h.type,responseType:"arraybuffer",key:u,url:h.url,xhrSettings:f,config:{context:v}};a.call(this,o,x)},onProcess:function(){this.state=p.FILE_PROCESSING;var i=this;this.config.context.decodeAudioData(this.xhrLoader.response,function(o){i.data=o,i.onProcessComplete()},function(o){console.error("Error decoding audio: "+i.key+" - ",o?o.message:null),i.onProcessError()}),this.config.context=null}});l.create=function(i,o,u,h,f){var v=i.systems.game,m=v.config.audio,x=v.device.audio;s(o)&&(u=n(o,"url",[]),h=n(o,"config",{}));var g=l.getAudioURL(v,u);return g?x.webAudio&&!m.disableWebAudio?new l(i,o,g,f,v.sound.context):new e(i,o,g,h):(console.warn('No audio URLs for "%s" matched this device',o),null)},l.getAudioURL=function(i,o){Array.isArray(o)||(o=[o]);for(var u=0;u{/** + */var d=t(83419),p=t(23906),l=t(41299),r=t(74099),n=t(95540),e=t(89749),s=t(41212),o=new d({Extends:l,initialize:function(a,u,h,f,v){if(s(u)){var m=u;u=n(m,"key"),f=n(m,"xhrSettings"),v=n(m,"context",v)}var g={type:"audio",cache:a.cacheManager.audio,extension:h.type,responseType:"arraybuffer",key:u,url:h.url,xhrSettings:f,config:{context:v}};l.call(this,a,g)},onProcess:function(){this.state=p.FILE_PROCESSING;var i=this;this.config.context.decodeAudioData(this.xhrLoader.response,function(a){i.data=a,i.onProcessComplete()},function(a){console.error("Error decoding audio: "+i.key+" - ",a?a.message:null),i.onProcessError()}),this.config.context=null}});o.create=function(i,a,u,h,f){var v=i.systems.game,m=v.config.audio,g=v.device.audio;s(a)&&(u=n(a,"url",[]),h=n(a,"config",{}));var x=o.getAudioURL(v,u);return x?g.webAudio&&!m.disableWebAudio?new o(i,a,x,f,v.sound.context):new e(i,a,x,h):(console.warn('No audio URLs for "%s" can play on this device',a),null)},o.getAudioURL=function(i,a){Array.isArray(a)||(a=[a]);for(var u=0;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(21097),p=t(83419),a=t(74099),r=t(95540),n=t(41212),e=t(518),s=t(26430),l=new p({Extends:s,initialize:function(o,u,h,f,v,m,x){if(n(u)){var g=u;u=r(g,"key"),h=r(g,"jsonURL"),f=r(g,"audioURL"),v=r(g,"audioConfig"),m=r(g,"audioXhrSettings"),x=r(g,"jsonXhrSettings")}var y;if(!f)y=new e(o,u,h,x),s.call(this,o,"audiosprite",u,[y]),this.config.resourceLoad=!0,this.config.audioConfig=v,this.config.audioXhrSettings=m;else{var S=d.create(o,u,f,v,m);S&&(y=new e(o,u,h,x),s.call(this,o,"audiosprite",u,[S,y]),this.config.resourceLoad=!1)}},onFileComplete:function(i){var o=this.files.indexOf(i);if(o!==-1&&(this.pending--,this.config.resourceLoad&&i.type==="json"&&i.data.hasOwnProperty("resources"))){var u=i.data.resources,h=r(this.config,"audioConfig"),f=r(this.config,"audioXhrSettings"),v=d.create(this.loader,i.key,u,h,f);v&&(this.addToMultiFile(v),this.loader.addFile(v))}},addToCache:function(){if(this.isReadyToProcess()){var i=this.files[0],o=this.files[1];i.addToCache(),o.addToCache(),this.complete=!0}}});a.register("audioSprite",function(i,o,u,h,f,v){var m=this.systems.game,x=m.config.audio,g=m.device.audio;if(x&&x.noAudio||!g.webAudio&&!g.audioData)return this;var y;if(Array.isArray(i))for(var S=0;S{/** + */var d=t(21097),p=t(83419),l=t(74099),r=t(95540),n=t(41212),e=t(518),s=t(26430),o=new p({Extends:s,initialize:function(a,u,h,f,v,m,g){if(n(u)){var x=u;u=r(x,"key"),h=r(x,"jsonURL"),f=r(x,"audioURL"),v=r(x,"audioConfig"),m=r(x,"audioXhrSettings"),g=r(x,"jsonXhrSettings")}var y;if(!f)y=new e(a,u,h,g),s.call(this,a,"audiosprite",u,[y]),this.config.resourceLoad=!0,this.config.audioConfig=v,this.config.audioXhrSettings=m;else{var S=d.create(a,u,f,v,m);S&&(y=new e(a,u,h,g),s.call(this,a,"audiosprite",u,[S,y]),this.config.resourceLoad=!1)}},onFileComplete:function(i){var a=this.files.indexOf(i);if(a!==-1&&(this.pending--,this.config.resourceLoad&&i.type==="json"&&i.data.hasOwnProperty("resources"))){var u=i.data.resources,h=r(this.config,"audioConfig"),f=r(this.config,"audioXhrSettings"),v=d.create(this.loader,i.key,u,h,f);v&&(this.addToMultiFile(v),this.loader.addFile(v))}},addToCache:function(){if(this.isReadyToProcess()){var i=this.files[0],a=this.files[1];i.addToCache(),a.addToCache(),this.complete=!0}}});l.register("audioSprite",function(i,a,u,h,f,v){var m=this.systems.game,g=m.config.audio,x=m.device.audio;if(g&&g.noAudio||!x.webAudio&&!x.audioData)return this;var y;if(Array.isArray(i))for(var S=0;S{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:a,initialize:function(i,o,u,h,f){var v="bin";if(e(o)){var m=o;o=n(m,"key"),u=n(m,"url"),h=n(m,"xhrSettings"),v=n(m,"extension",v),f=n(m,"dataType",f)}var x={type:"binary",cache:i.cacheManager.binary,extension:v,responseType:"arraybuffer",key:o,url:u,xhrSettings:h,config:{dataType:f}};a.call(this,i,x)},onProcess:function(){this.state=p.FILE_PROCESSING;var l=this.config.dataType;this.data=l?new l(this.xhrLoader.response):this.xhrLoader.response,this.onProcessComplete()}});r.register("binary",function(l,i,o,u){if(Array.isArray(l))for(var h=0;h{/** + */var d=t(83419),p=t(23906),l=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:l,initialize:function(i,a,u,h,f){var v="bin";if(e(a)){var m=a;a=n(m,"key"),u=n(m,"url"),h=n(m,"xhrSettings"),v=n(m,"extension",v),f=n(m,"dataType",f)}var g={type:"binary",cache:i.cacheManager.binary,extension:v,responseType:"arraybuffer",key:a,url:u,xhrSettings:h,config:{dataType:f}};l.call(this,i,g)},onProcess:function(){this.state=p.FILE_PROCESSING;var o=this.config.dataType;this.data=o?new o(this.xhrLoader.response):this.xhrLoader.response,this.onProcessComplete()}});r.register("binary",function(o,i,a,u){if(Array.isArray(o))for(var h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(74099),a=t(95540),r=t(19550),n=t(41212),e=t(26430),s=t(21859),l=t(57318),i=new d({Extends:e,initialize:function(u,h,f,v,m,x){var g,y;if(n(h)){var S=h;h=a(S,"key"),g=new r(u,{key:h,url:a(S,"textureURL"),extension:a(S,"textureExtension","png"),normalMap:a(S,"normalMap"),xhrSettings:a(S,"textureXhrSettings")}),y=new l(u,{key:h,url:a(S,"fontDataURL"),extension:a(S,"fontDataExtension","xml"),xhrSettings:a(S,"fontDataXhrSettings")})}else g=new r(u,h,f,m),y=new l(u,h,v,x);g.linkFile?e.call(this,u,"bitmapfont",h,[g,y,g.linkFile]):e.call(this,u,"bitmapfont",h,[g,y])},addToCache:function(){if(this.isReadyToProcess()){var o=this.files[0],u=this.files[1];o.addToCache();var h=o.cache.get(o.key),f=s(u.data,o.cache.getFrame(o.key),0,0,h);this.loader.cacheManager.bitmapFont.add(o.key,{data:f,texture:o.key,frame:null}),this.complete=!0}}});p.register("bitmapFont",function(o,u,h,f,v){var m;if(Array.isArray(o))for(var x=0;x{/** + */var d=t(83419),p=t(74099),l=t(95540),r=t(19550),n=t(41212),e=t(26430),s=t(21859),o=t(57318),i=new d({Extends:e,initialize:function(u,h,f,v,m,g){var x,y;if(n(h)){var S=h;h=l(S,"key"),x=new r(u,{key:h,url:l(S,"textureURL"),extension:l(S,"textureExtension","png"),normalMap:l(S,"normalMap"),xhrSettings:l(S,"textureXhrSettings")}),y=new o(u,{key:h,url:l(S,"fontDataURL"),extension:l(S,"fontDataExtension","xml"),xhrSettings:l(S,"fontDataXhrSettings")})}else x=new r(u,h,f,m),y=new o(u,h,v,g);x.linkFile?e.call(this,u,"bitmapfont",h,[x,y,x.linkFile]):e.call(this,u,"bitmapfont",h,[x,y])},addToCache:function(){if(this.isReadyToProcess()){var a=this.files[0],u=this.files[1];a.addToCache();var h=a.cache.get(a.key),f=s(u.data,a.cache.getFrame(a.key),0,0,h);this.loader.cacheManager.bitmapFont.add(a.key,{data:f,texture:a.key,frame:null}),this.complete=!0}}});p.register("bitmapFont",function(a,u,h,f,v){var m;if(Array.isArray(a))for(var g=0;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:a,initialize:function(i,o,u,h){var f="css";if(e(o)){var v=o;o=n(v,"key"),u=n(v,"url"),h=n(v,"xhrSettings"),f=n(v,"extension",f)}var m={type:"script",cache:!1,extension:f,responseType:"text",key:o,url:u,xhrSettings:h};a.call(this,i,m)},onProcess:function(){this.state=p.FILE_PROCESSING,this.data=document.createElement("style"),this.data.defer=!1,this.data.innerHTML=this.xhrLoader.responseText,document.head.appendChild(this.data),this.onProcessComplete()}});r.register("css",function(l,i,o){if(Array.isArray(l))for(var u=0;u{/** + */var d=t(83419),p=t(23906),l=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:l,initialize:function(i,a,u,h){var f="css";if(e(a)){var v=a;a=n(v,"key"),u=n(v,"url"),h=n(v,"xhrSettings"),f=n(v,"extension",f)}var m={type:"script",cache:!1,extension:f,responseType:"text",key:a,url:u,xhrSettings:h};l.call(this,i,m)},onProcess:function(){this.state=p.FILE_PROCESSING,this.data=document.createElement("style"),this.data.defer=!1,this.data.innerHTML=this.xhrLoader.responseText,document.head.appendChild(this.data),this.onProcessComplete()}});r.register("css",function(o,i,a){if(Array.isArray(o))for(var u=0;u{/** * @author Richard Davey * @copyright 2021 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(38734),p=t(85722),a=t(83419),r=t(74099),n=t(95540),e=t(19550),s=t(41212),l=t(518),i=t(31403),o=t(46975),u=t(59327),h=t(26430),f=t(82038),v=t(55222),m=new a({Extends:h,initialize:function(g,y,S,C){if(S.multiAtlasURL){var E=new l(g,{key:y,url:S.multiAtlasURL,xhrSettings:C,config:S});h.call(this,g,"texture",y,[E])}else{var A=S.textureURL.substr(S.textureURL.length-3);S.type||(S.type=A.toLowerCase()==="ktx"?"KTX":"PVR");var P=new p(g,{key:y,url:S.textureURL,extension:A,xhrSettings:C,config:S});if(S.atlasURL){var M=new l(g,{key:y,url:S.atlasURL,xhrSettings:C,config:S});h.call(this,g,"texture",y,[P,M])}else h.call(this,g,"texture",y,[P])}this.config=S},onFileComplete:function(x){var g=this.files.indexOf(x);if(g!==-1){if(this.pending--,!this.config.multiAtlasURL)return;if(x.type==="json"&&x.data.hasOwnProperty("textures")){var y=x.data.textures,S=this.config,C=this.loader,E=C.baseURL,A=C.path,P=C.prefix,M=n(S,"multiBaseURL",this.baseURL),F=n(S,"multiPath",this.path),L=n(S,"prefix",this.prefix),b=n(S,"textureXhrSettings");M&&C.setBaseURL(M),F&&C.setPath(F),L&&C.setPrefix(L);for(var B=0;B{/** + */var d=t(38734),p=t(85722),l=t(83419),r=t(74099),n=t(95540),e=t(19550),s=t(41212),o=t(518),i=t(31403),a=t(46975),u=t(59327),h=t(26430),f=t(82038),v=t(55222),m=new l({Extends:h,initialize:function(x,y,S,C){if(S.multiAtlasURL){var E=new o(x,{key:y,url:S.multiAtlasURL,xhrSettings:C,config:S});h.call(this,x,"texture",y,[E])}else{var M=S.textureURL.substr(S.textureURL.length-3);S.type||(S.type=M.toLowerCase()==="ktx"?"KTX":"PVR");var P=new p(x,{key:y,url:S.textureURL,extension:M,xhrSettings:C,config:S});if(S.atlasURL){var A=new o(x,{key:y,url:S.atlasURL,xhrSettings:C,config:S});h.call(this,x,"texture",y,[P,A])}else h.call(this,x,"texture",y,[P])}this.config=S},onFileComplete:function(g){var x=this.files.indexOf(g);if(x!==-1){if(this.pending--,!this.config.multiAtlasURL)return;if(g.type==="json"&&g.data.hasOwnProperty("textures")){var y=g.data.textures,S=this.config,C=this.loader,E=C.baseURL,M=C.path,P=C.prefix,A=n(S,"multiBaseURL",this.baseURL),R=n(S,"multiPath",this.path),F=n(S,"prefix",this.prefix),D=n(S,"textureXhrSettings");A&&C.setBaseURL(A),R&&C.setPath(R),F&&C.setPrefix(F);for(var w=0;w{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=t(73894),l=new d({Extends:a,initialize:function(o,u,h,f,v){var m="glsl";if(e(u)){var x=u;u=n(x,"key"),h=n(x,"url"),f=n(x,"shaderType","fragment"),v=n(x,"xhrSettings"),m=n(x,"extension",m)}else f===void 0&&(f="fragment");var g={type:"glsl",cache:o.cacheManager.shader,extension:m,responseType:"text",key:u,url:h,config:{shaderType:f},xhrSettings:v};a.call(this,o,g)},onProcess:function(){this.state=p.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var i=this.data.split(` -`),o=this.extractBlock(i,0);if(o)for(;o;){var u=this.getShaderName(o.header),h=this.getShaderType(o.header),f=this.getShaderUniforms(o.header),v=o.shader;if(this.cache.has(u)){var m=this.cache.get(u);h==="fragment"?m.fragmentSrc=v:m.vertexSrc=v,m.uniforms||(m.uniforms=f)}else h==="fragment"?this.cache.add(u,new s(u,v,"",f)):this.cache.add(u,new s(u,"",v,f));o=this.extractBlock(i,o.offset)}else this.config.shaderType==="fragment"?this.cache.add(this.key,new s(this.key,this.data)):this.cache.add(this.key,new s(this.key,"",this.data))},getShaderName:function(i){for(var o=0;o{/** + */var d=t(83419),p=t(23906),l=t(41299),r=t(74099),n=t(95540),e=t(41212),s=t(73894),o=new d({Extends:l,initialize:function(a,u,h,f,v){var m="glsl";if(e(u)){var g=u;u=n(g,"key"),h=n(g,"url"),f=n(g,"shaderType","fragment"),v=n(g,"xhrSettings"),m=n(g,"extension",m)}else f===void 0&&(f="fragment");var x={type:"glsl",cache:a.cacheManager.shader,extension:m,responseType:"text",key:u,url:h,config:{shaderType:f},xhrSettings:v};l.call(this,a,x)},onProcess:function(){this.state=p.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var i=this.data.split(` +`),a=this.extractBlock(i,0);if(a)for(;a;){var u=this.getShaderName(a.header),h=this.getShaderType(a.header),f=this.getShaderUniforms(a.header),v=a.shader;if(this.cache.has(u)){var m=this.cache.get(u);h==="fragment"?m.fragmentSrc=v:m.vertexSrc=v,m.uniforms||(m.uniforms=f)}else h==="fragment"?this.cache.add(u,new s(u,v,"",f)):this.cache.add(u,new s(u,"",v,f));a=this.extractBlock(i,a.offset)}else this.config.shaderType==="fragment"?this.cache.add(this.key,new s(this.key,this.data)):this.cache.add(this.key,new s(this.key,"",this.data))},getShaderName:function(i){for(var a=0;a{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(54899),a=t(41299),r=t(95540),n=t(98356),e=t(41212),s=new d({Extends:a,initialize:function(i,o,u,h){if(e(o)){var f=o;o=r(f,"key"),h=r(f,"config",h)}var v={type:"audio",cache:i.cacheManager.audio,extension:u.type,key:o,url:u.url,config:h};a.call(this,i,v),this.locked="ontouchstart"in window,this.loaded=!1,this.filesLoaded=0,this.filesTotal=0},onLoad:function(){this.loaded||(this.loaded=!0,this.loader.nextFile(this,!0))},onError:function(){for(var l=0;l{/** + */var d=t(83419),p=t(54899),l=t(41299),r=t(95540),n=t(98356),e=t(41212),s=new d({Extends:l,initialize:function(i,a,u,h){if(e(a)){var f=a;a=r(f,"key"),h=r(f,"config",h)}var v={type:"audio",cache:i.cacheManager.audio,extension:u.type,key:a,url:u.url,config:h};l.call(this,i,v),this.locked="ontouchstart"in window,this.loaded=!1,this.filesLoaded=0,this.filesTotal=0},onLoad:function(){this.loaded||(this.loaded=!0,this.loader.nextFile(this,!0))},onError:function(){for(var o=0;o{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:a,initialize:function(i,o,u,h){var f="html";if(e(o)){var v=o;o=n(v,"key"),u=n(v,"url"),h=n(v,"xhrSettings"),f=n(v,"extension",f)}var m={type:"text",cache:i.cacheManager.html,extension:f,responseType:"text",key:o,url:u,xhrSettings:h};a.call(this,i,m)},onProcess:function(){this.state=p.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()}});r.register("html",function(l,i,o){if(Array.isArray(l))for(var u=0;u{/** + */var d=t(83419),p=t(23906),l=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:l,initialize:function(i,a,u,h){var f="html";if(e(a)){var v=a;a=n(v,"key"),u=n(v,"url"),h=n(v,"xhrSettings"),f=n(v,"extension",f)}var m={type:"text",cache:i.cacheManager.html,extension:f,responseType:"text",key:a,url:u,xhrSettings:h};l.call(this,i,m)},onProcess:function(){this.state=p.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()}});r.register("html",function(o,i,a){if(Array.isArray(o))for(var u=0;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:a,initialize:function(i,o,u,h,f,v){h===void 0&&(h=512),f===void 0&&(f=512);var m="html";if(e(o)){var x=o;o=n(x,"key"),u=n(x,"url"),v=n(x,"xhrSettings"),m=n(x,"extension",m),h=n(x,"width",h),f=n(x,"height",f)}var g={type:"html",cache:i.textureManager,extension:m,responseType:"text",key:o,url:u,xhrSettings:v,config:{width:h,height:f}};a.call(this,i,g)},onProcess:function(){this.state=p.FILE_PROCESSING;var l=this.config.width,i=this.config.height,o=[];o.push(''),o.push(''),o.push(''),o.push(this.xhrLoader.responseText),o.push(""),o.push(""),o.push("");var u=[o.join(` -`)],h=this;try{var f=new window.Blob(u,{type:"image/svg+xml;charset=utf-8"})}catch{h.state=p.FILE_ERRORED,h.onProcessComplete();return}this.data=new Image,this.data.crossOrigin=this.crossOrigin,this.data.onload=function(){a.revokeObjectURL(h.data),h.onProcessComplete()},this.data.onerror=function(){a.revokeObjectURL(h.data),h.onProcessError()},a.createObjectURL(this.data,f,"image/svg+xml")},addToCache:function(){this.cache.addImage(this.key,this.data)}});r.register("htmlTexture",function(l,i,o,u,h){if(Array.isArray(l))for(var f=0;f{/** + */var d=t(83419),p=t(23906),l=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:l,initialize:function(i,a,u,h,f,v){h===void 0&&(h=512),f===void 0&&(f=512);var m="html";if(e(a)){var g=a;a=n(g,"key"),u=n(g,"url"),v=n(g,"xhrSettings"),m=n(g,"extension",m),h=n(g,"width",h),f=n(g,"height",f)}var x={type:"html",cache:i.textureManager,extension:m,responseType:"text",key:a,url:u,xhrSettings:v,config:{width:h,height:f}};l.call(this,i,x)},onProcess:function(){this.state=p.FILE_PROCESSING;var o=this.config.width,i=this.config.height,a=[];a.push(''),a.push(''),a.push(''),a.push(this.xhrLoader.responseText),a.push(""),a.push(""),a.push("");var u=[a.join(` +`)],h=this;try{var f=new window.Blob(u,{type:"image/svg+xml;charset=utf-8"})}catch{h.state=p.FILE_ERRORED,h.onProcessComplete();return}this.data=new Image,this.data.crossOrigin=this.crossOrigin,this.data.onload=function(){l.revokeObjectURL(h.data),h.onProcessComplete()},this.data.onerror=function(){l.revokeObjectURL(h.data),h.onProcessError()},l.createObjectURL(this.data,f,"image/svg+xml")},addToCache:function(){this.cache.addImage(this.key,this.data)}});r.register("htmlTexture",function(o,i,a,u,h){if(Array.isArray(o))for(var f=0;f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=t(98356),l=new d({Extends:a,initialize:function i(o,u,h,f,v){var m="png",x;if(e(u)){var g=u;u=n(g,"key"),h=n(g,"url"),x=n(g,"normalMap"),f=n(g,"xhrSettings"),m=n(g,"extension",m),v=n(g,"frameConfig")}Array.isArray(h)&&(x=h[1],h=h[0]);var y={type:"image",cache:o.textureManager,extension:m,responseType:"blob",key:u,url:h,xhrSettings:f,config:v};if(a.call(this,o,y),x){var S=new i(o,this.key,x,f,v);S.type="normalMap",this.setLink(S),o.addFile(S)}this.useImageElementLoad=o.imageLoadType==="HTMLImageElement"||this.base64,this.useImageElementLoad&&(this.load=this.loadImage,this.onProcess=this.onProcessImage)},onProcess:function(){this.state=p.FILE_PROCESSING,this.data=new Image,this.data.crossOrigin=this.crossOrigin;var i=this;this.data.onload=function(){a.revokeObjectURL(i.data),i.onProcessComplete()},this.data.onerror=function(){a.revokeObjectURL(i.data),i.onProcessError()},a.createObjectURL(this.data,this.xhrLoader.response,"image/png")},onProcessImage:function(){var i=this.state;this.state=p.FILE_PROCESSING,i===p.FILE_LOADED?this.onProcessComplete():this.onProcessError()},loadImage:function(){this.state=p.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=p.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>=p.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,u){if(Array.isArray(i))for(var h=0;h{/** + */var d=t(83419),p=t(23906),l=t(41299),r=t(74099),n=t(95540),e=t(41212),s=t(98356),o=new d({Extends:l,initialize:function i(a,u,h,f,v){var m="png",g;if(e(u)){var x=u;u=n(x,"key"),h=n(x,"url"),g=n(x,"normalMap"),f=n(x,"xhrSettings"),m=n(x,"extension",m),v=n(x,"frameConfig")}Array.isArray(h)&&(g=h[1],h=h[0]);var y={type:"image",cache:a.textureManager,extension:m,responseType:"blob",key:u,url:h,xhrSettings:f,config:v};if(l.call(this,a,y),g){var S=new i(a,this.key,g,f,v);S.type="normalMap",this.setLink(S),a.addFile(S)}this.useImageElementLoad=a.imageLoadType==="HTMLImageElement"||this.base64,this.useImageElementLoad&&(this.load=this.loadImage,this.onProcess=this.onProcessImage)},onProcess:function(){this.state=p.FILE_PROCESSING,this.data=new Image,this.data.crossOrigin=this.crossOrigin;var i=this;this.data.onload=function(){l.revokeObjectURL(i.data),i.onProcessComplete()},this.data.onerror=function(){l.revokeObjectURL(i.data),i.onProcessError()},l.createObjectURL(this.data,this.xhrLoader.response,"image/png")},onProcessImage:function(){var i=this.state;this.state=p.FILE_PROCESSING,i===p.FILE_LOADED?this.onProcessComplete():this.onProcessError()},loadImage:function(){this.state=p.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=p.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>=p.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,a,u){if(Array.isArray(i))for(var h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(35154),s=t(41212),l=new d({Extends:a,initialize:function(o,u,h,f,v){var m="json";if(s(u)){var x=u;u=n(x,"key"),h=n(x,"url"),f=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:u,url:h,xhrSettings:f,config:v};a.call(this,o,g),s(h)&&(v?this.data=e(h,v):this.data=h,this.state=p.FILE_POPULATED)},onProcess:function(){if(this.state!==p.FILE_POPULATED){this.state=p.FILE_PROCESSING;try{var i=JSON.parse(this.xhrLoader.responseText)}catch(u){throw this.onProcessError(),u}var o=this.config;typeof o=="string"?this.data=e(i,o,i):this.data=i}this.onProcessComplete()}});r.register("json",function(i,o,u,h){if(Array.isArray(i))for(var f=0;f{/** + */var d=t(83419),p=t(23906),l=t(41299),r=t(74099),n=t(95540),e=t(35154),s=t(41212),o=new d({Extends:l,initialize:function(a,u,h,f,v){var m="json";if(s(u)){var g=u;u=n(g,"key"),h=n(g,"url"),f=n(g,"xhrSettings"),m=n(g,"extension",m),v=n(g,"dataKey",v)}var x={type:"json",cache:a.cacheManager.json,extension:m,responseType:"text",key:u,url:h,xhrSettings:f,config:v};l.call(this,a,x),s(h)&&(v?this.data=e(h,v):this.data=h,this.state=p.FILE_POPULATED)},onProcess:function(){if(this.state!==p.FILE_POPULATED){this.state=p.FILE_PROCESSING;try{var i=JSON.parse(this.xhrLoader.responseText)}catch(u){throw this.onProcessError(),u}var a=this.config;typeof a=="string"?this.data=e(i,a,i):this.data=i}this.onProcessComplete()}});r.register("json",function(i,a,u,h){if(Array.isArray(i))for(var f=0;f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(74099),a=t(95540),r=t(19550),n=t(41212),e=t(518),s=t(26430),l=new d({Extends:s,initialize:function(o,u,h,f,v,m,x){if(n(u)){var g=u;u=a(g,"key"),a(g,"url",!1)?h=a(g,"url"):h=a(g,"atlasURL"),m=a(g,"xhrSettings"),f=a(g,"path"),v=a(g,"baseURL"),x=a(g,"textureXhrSettings")}var y=new e(o,u,h,m);s.call(this,o,"multiatlas",u,[y]),this.config.path=f,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 u=i.data.textures,h=this.config,f=this.loader,v=f.baseURL,m=f.path,x=f.prefix,g=a(h,"baseURL",this.baseURL),y=a(h,"path",this.path),S=a(h,"prefix",this.prefix),C=a(h,"textureXhrSettings");f.setBaseURL(g),f.setPath(y),f.setPrefix(S);for(var E=0;E{/** + */var d=t(83419),p=t(74099),l=t(95540),r=t(19550),n=t(41212),e=t(518),s=t(26430),o=new d({Extends:s,initialize:function(a,u,h,f,v,m,g){if(n(u)){var x=u;u=l(x,"key"),l(x,"url",!1)?h=l(x,"url"):h=l(x,"atlasURL"),m=l(x,"xhrSettings"),f=l(x,"path"),v=l(x,"baseURL"),g=l(x,"textureXhrSettings")}var y=new e(a,u,h,m);s.call(this,a,"multiatlas",u,[y]),this.config.path=f,this.config.baseURL=v,this.config.textureXhrSettings=g},onFileComplete:function(i){var a=this.files.indexOf(i);if(a!==-1&&(this.pending--,i.type==="json"&&i.data.hasOwnProperty("textures"))){var u=i.data.textures,h=this.config,f=this.loader,v=f.baseURL,m=f.path,g=f.prefix,x=l(h,"baseURL",this.baseURL),y=l(h,"path",this.path),S=l(h,"prefix",this.prefix),C=l(h,"textureXhrSettings");f.setBaseURL(x),f.setPath(y),f.setPrefix(S);for(var E=0;E{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(74099),a=t(95540),r=t(41212),n=t(26430),e=t(34328),s=new d({Extends:n,initialize:function(i,o,u,h){var f="js",v=[];if(r(o)){var m=o;o=a(m,"key"),u=a(m,"url"),h=a(m,"xhrSettings"),f=a(m,"extension",f)}Array.isArray(u)||(u=[u]);for(var x=0;x{/** + */var d=t(83419),p=t(74099),l=t(95540),r=t(41212),n=t(26430),e=t(34328),s=new d({Extends:n,initialize:function(i,a,u,h){var f="js",v=[];if(r(a)){var m=a;a=l(m,"key"),u=l(m,"url"),h=l(m,"xhrSettings"),f=l(m,"extension",f)}Array.isArray(u)||(u=[u]);for(var g=0;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(74099),a=t(95540),r=t(41212),n=t(26430),e=t(85048),s=t(61485),l=t(78776),i=new d({Extends:n,initialize:function(u,h,f,v,m,x){var g,y,S=u.cacheManager.obj;if(r(h)){var C=h;h=a(C,"key"),g=new l(u,{key:h,type:"obj",cache:S,url:a(C,"url"),extension:a(C,"extension","obj"),xhrSettings:a(C,"xhrSettings"),config:{flipUV:a(C,"flipUV",m)}}),v=a(C,"matURL"),v&&(y=new l(u,{key:h,type:"mat",cache:S,url:v,extension:a(C,"matExtension","mat"),xhrSettings:a(C,"xhrSettings")}))}else g=new l(u,{key:h,url:f,type:"obj",cache:S,extension:"obj",xhrSettings:x,config:{flipUV:m}}),v&&(y=new l(u,{key:h,url:v,type:"mat",cache:S,extension:"mat",xhrSettings:x}));n.call(this,u,"obj",h,[g,y])},addToCache:function(){if(this.isReadyToProcess()){var o=this.files[0],u=this.files[1],h=e(o.data,o.config.flipUV);u&&(h.materials=s(u.data)),o.cache.add(o.key,h),this.complete=!0}}});p.register("obj",function(o,u,h,f,v){var m;if(Array.isArray(o))for(var x=0;x{/** + */var d=t(83419),p=t(74099),l=t(95540),r=t(41212),n=t(26430),e=t(85048),s=t(61485),o=t(78776),i=new d({Extends:n,initialize:function(u,h,f,v,m,g){var x,y,S=u.cacheManager.obj;if(r(h)){var C=h;h=l(C,"key"),x=new o(u,{key:h,type:"obj",cache:S,url:l(C,"url"),extension:l(C,"extension","obj"),xhrSettings:l(C,"xhrSettings"),config:{flipUV:l(C,"flipUV",m)}}),v=l(C,"matURL"),v&&(y=new o(u,{key:h,type:"mat",cache:S,url:v,extension:l(C,"matExtension","mat"),xhrSettings:l(C,"xhrSettings")}))}else x=new o(u,{key:h,url:f,type:"obj",cache:S,extension:"obj",xhrSettings:g,config:{flipUV:m}}),v&&(y=new o(u,{key:h,url:v,type:"mat",cache:S,extension:"mat",xhrSettings:g}));n.call(this,u,"obj",h,[x,y])},addToCache:function(){if(this.isReadyToProcess()){var a=this.files[0],u=this.files[1],h=e(a.data,a.config.flipUV);u&&(h.materials=s(u.data)),a.cache.add(a.key,h),this.complete=!0}}});p.register("obj",function(a,u,h,f,v){var m;if(Array.isArray(a))for(var g=0;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(23906),a=t(74099),r=t(518),n=new d({Extends:r,initialize:function(s,l,i,o,u){r.call(this,s,l,i,o,u),this.type="packfile"},onProcess:function(){if(this.state!==p.FILE_POPULATED&&(this.state=p.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()}});a.register("pack",function(e,s,l,i){if(Array.isArray(e))for(var o=0;o{/** + */var d=t(83419),p=t(23906),l=t(74099),r=t(518),n=new d({Extends:r,initialize:function(s,o,i,a,u){r.call(this,s,o,i,a,u),this.type="packfile"},onProcess:function(){if(this.state!==p.FILE_POPULATED&&(this.state=p.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()}});l.register("pack",function(e,s,o,i){if(Array.isArray(e))for(var a=0;a{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:a,initialize:function(i,o,u,h,f,v){var m="js";if(e(o)){var x=o;o=n(x,"key"),u=n(x,"url"),v=n(x,"xhrSettings"),m=n(x,"extension",m),h=n(x,"start"),f=n(x,"mapping")}var g={type:"plugin",cache:!1,extension:m,responseType:"text",key:o,url:u,xhrSettings:v,config:{start:h,mapping:f}};a.call(this,i,g),typeof u=="function"&&(this.data=u,this.state=p.FILE_POPULATED)},onProcess:function(){var l=this.loader.systems.plugins,i=this.config,o=n(i,"start",!1),u=n(i,"mapping",null);if(this.state===p.FILE_POPULATED)l.install(this.key,this.data,o,u);else{this.state=p.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 h=l.install(this.key,window[this.key],o,u);(o||u)&&(this.loader.systems[u]=h,this.loader.scene[u]=h)}this.onProcessComplete()}});r.register("plugin",function(l,i,o,u,h){if(Array.isArray(l))for(var f=0;f{/** + */var d=t(83419),p=t(23906),l=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:l,initialize:function(i,a,u,h,f,v){var m="js";if(e(a)){var g=a;a=n(g,"key"),u=n(g,"url"),v=n(g,"xhrSettings"),m=n(g,"extension",m),h=n(g,"start"),f=n(g,"mapping")}var x={type:"plugin",cache:!1,extension:m,responseType:"text",key:a,url:u,xhrSettings:v,config:{start:h,mapping:f}};l.call(this,i,x),typeof u=="function"&&(this.data=u,this.state=p.FILE_POPULATED)},onProcess:function(){var o=this.loader.systems.plugins,i=this.config,a=n(i,"start",!1),u=n(i,"mapping",null);if(this.state===p.FILE_POPULATED)o.install(this.key,this.data,a,u);else{this.state=p.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 h=o.install(this.key,window[this.key],a,u);(a||u)&&(this.loader.systems[u]=h,this.loader.scene[u]=h)}this.onProcessComplete()}});r.register("plugin",function(o,i,a,u,h){if(Array.isArray(o))for(var f=0;f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:a,initialize:function(i,o,u,h,f){var v="svg";if(e(o)){var m=o;o=n(m,"key"),u=n(m,"url"),h=n(m,"svgConfig",{}),f=n(m,"xhrSettings"),v=n(m,"extension",v)}var x={type:"svg",cache:i.textureManager,extension:v,responseType:"text",key:o,url:u,xhrSettings:f,config:{width:n(h,"width"),height:n(h,"height"),scale:n(h,"scale")}};a.call(this,i,x)},onProcess:function(){this.state=p.FILE_PROCESSING;var l=this.xhrLoader.responseText,i=[l],o=this.config.width,u=this.config.height,h=this.config.scale;t:if(o&&u||h){var f=null,v=new DOMParser;f=v.parseFromString(l,"text/xml");var m=f.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 S=m.getAttribute("viewBox").split(/\s+|,/);g=S[2],y=S[3]}if(h)if(g&&y)o=g*h,u=y*h;else break t;m.setAttribute("width",o.toString()+"px"),m.setAttribute("height",u.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,A=!1;this.data.onload=function(){A||a.revokeObjectURL(E.data),E.onProcessComplete()},this.data.onerror=function(){A?E.onProcessError():(A=!0,a.revokeObjectURL(E.data),E.data.src="data:image/svg+xml,"+encodeURIComponent(i.join("")))},a.createObjectURL(this.data,C,"image/svg+xml")},addToCache:function(){this.cache.addImage(this.key,this.data)}});r.register("svg",function(l,i,o,u){if(Array.isArray(l))for(var h=0;h{/** + */var d=t(83419),p=t(23906),l=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:l,initialize:function(i,a,u,h,f){var v="svg";if(e(a)){var m=a;a=n(m,"key"),u=n(m,"url"),h=n(m,"svgConfig",{}),f=n(m,"xhrSettings"),v=n(m,"extension",v)}var g={type:"svg",cache:i.textureManager,extension:v,responseType:"text",key:a,url:u,xhrSettings:f,config:{width:n(h,"width"),height:n(h,"height"),scale:n(h,"scale")}};l.call(this,i,g)},onProcess:function(){this.state=p.FILE_PROCESSING;var o=this.xhrLoader.responseText,i=[o],a=this.config.width,u=this.config.height,h=this.config.scale;t:if(a&&u||h){var f=null,v=new DOMParser;f=v.parseFromString(o,"text/xml");var m=f.getElementsByTagName("svg")[0],g=m.hasAttribute("viewBox"),x=parseFloat(m.getAttribute("width")),y=parseFloat(m.getAttribute("height"));if(!g&&x&&y)m.setAttribute("viewBox","0 0 "+x+" "+y);else if(g&&!x&&!y){var S=m.getAttribute("viewBox").split(/\s+|,/);x=S[2],y=S[3]}if(h)if(x&&y)a=x*h,u=y*h;else break t;m.setAttribute("width",a.toString()+"px"),m.setAttribute("height",u.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||l.revokeObjectURL(E.data),E.onProcessComplete()},this.data.onerror=function(){M?E.onProcessError():(M=!0,l.revokeObjectURL(E.data),E.data.src="data:image/svg+xml,"+encodeURIComponent(i.join("")))},l.createObjectURL(this.data,C,"image/svg+xml")},addToCache:function(){this.cache.addImage(this.key,this.data)}});r.register("svg",function(o,i,a,u){if(Array.isArray(o))for(var h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:a,initialize:function(i,o,u,h){var f="js";if(e(o)){var v=o;o=n(v,"key"),u=n(v,"url"),h=n(v,"xhrSettings"),f=n(v,"extension",f)}var m={type:"text",extension:f,responseType:"text",key:o,url:u,xhrSettings:h};a.call(this,i,m)},onProcess:function(){this.state=p.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var l=this.data.concat(`(function(){ + */var d=t(83419),p=t(23906),l=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:l,initialize:function(i,a,u,h){var f="js";if(e(a)){var v=a;a=n(v,"key"),u=n(v,"url"),h=n(v,"xhrSettings"),f=n(v,"extension",f)}var m={type:"text",extension:f,responseType:"text",key:a,url:u,xhrSettings:h};l.call(this,i,m)},onProcess:function(){this.state=p.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var o=this.data.concat(`(function(){ return new `+this.key+`(); -}).call(this);`),i=eval;this.loader.sceneManager.add(this.key,i(l)),this.complete=!0}});r.register("sceneFile",function(l,i,o){if(Array.isArray(l))for(var u=0;u{/** +}).call(this);`),i=eval;this.loader.sceneManager.add(this.key,i(o)),this.complete=!0}});r.register("sceneFile",function(o,i,a){if(Array.isArray(o))for(var u=0;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:a,initialize:function(i,o,u,h,f,v){var m="js";if(e(o)){var x=o;o=n(x,"key"),u=n(x,"url"),v=n(x,"xhrSettings"),m=n(x,"extension",m),h=n(x,"systemKey"),f=n(x,"sceneKey")}var g={type:"scenePlugin",cache:!1,extension:m,responseType:"text",key:o,url:u,xhrSettings:v,config:{systemKey:h,sceneKey:f}};a.call(this,i,g),typeof u=="function"&&(this.data=u,this.state=p.FILE_POPULATED)},onProcess:function(){var l=this.loader.systems.plugins,i=this.config,o=this.key,u=n(i,"systemKey",o),h=n(i,"sceneKey",o);this.state===p.FILE_POPULATED?l.installScenePlugin(u,this.data,h,this.loader.scene,!0):(this.state=p.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),l.installScenePlugin(u,window[this.key],h,this.loader.scene,!0)),this.onProcessComplete()}});r.register("scenePlugin",function(l,i,o,u,h){if(Array.isArray(l))for(var f=0;f{/** + */var d=t(83419),p=t(23906),l=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:l,initialize:function(i,a,u,h,f,v){var m="js";if(e(a)){var g=a;a=n(g,"key"),u=n(g,"url"),v=n(g,"xhrSettings"),m=n(g,"extension",m),h=n(g,"systemKey"),f=n(g,"sceneKey")}var x={type:"scenePlugin",cache:!1,extension:m,responseType:"text",key:a,url:u,xhrSettings:v,config:{systemKey:h,sceneKey:f}};l.call(this,i,x),typeof u=="function"&&(this.data=u,this.state=p.FILE_POPULATED)},onProcess:function(){var o=this.loader.systems.plugins,i=this.config,a=this.key,u=n(i,"systemKey",a),h=n(i,"sceneKey",a);this.state===p.FILE_POPULATED?o.installScenePlugin(u,this.data,h,this.loader.scene,!0):(this.state=p.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),o.installScenePlugin(u,window[this.key],h,this.loader.scene,!0)),this.onProcessComplete()}});r.register("scenePlugin",function(o,i,a,u,h){if(Array.isArray(o))for(var f=0;f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:a,initialize:function(i,o,u,h,f){var v="js";if(e(o)){var m=o;o=n(m,"key"),u=n(m,"url"),h=n(m,"type","script"),f=n(m,"xhrSettings"),v=n(m,"extension",v)}else h===void 0&&(h="script");var x={type:h,cache:!1,extension:v,responseType:"text",key:o,url:u,xhrSettings:f};a.call(this,i,x)},onProcess:function(){this.state=p.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(l,i,o,u){if(Array.isArray(l))for(var h=0;h{/** + */var d=t(83419),p=t(23906),l=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:l,initialize:function(i,a,u,h,f){var v="js";if(e(a)){var m=a;a=n(m,"key"),u=n(m,"url"),h=n(m,"type","script"),f=n(m,"xhrSettings"),v=n(m,"extension",v)}else h===void 0&&(h="script");var g={type:h,cache:!1,extension:v,responseType:"text",key:a,url:u,xhrSettings:f};l.call(this,i,g)},onProcess:function(){this.state=p.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(o,i,a,u){if(Array.isArray(o))for(var h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(23906),a=t(74099),r=t(19550),n=new d({Extends:r,initialize:function(s,l,i,o,u){r.call(this,s,l,i,u,o),this.type="spritesheet"},addToCache:function(){var e=this.linkFile;e?e.state>=p.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)}});a.register("spritesheet",function(e,s,l,i){if(Array.isArray(e))for(var o=0;o{/** + */var d=t(83419),p=t(23906),l=t(74099),r=t(19550),n=new d({Extends:r,initialize:function(s,o,i,a,u){r.call(this,s,o,i,u,a),this.type="spritesheet"},addToCache:function(){var e=this.linkFile;e?e.state>=p.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)}});l.register("spritesheet",function(e,s,o,i){if(Array.isArray(e))for(var a=0;a{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:a,initialize:function(i,o,u,h){var f="text",v="txt",m=i.cacheManager.text;if(e(o)){var x=o;o=n(x,"key"),u=n(x,"url"),h=n(x,"xhrSettings"),v=n(x,"extension",v),f=n(x,"type",f),m=n(x,"cache",m)}var g={type:f,cache:m,extension:v,responseType:"text",key:o,url:u,xhrSettings:h};a.call(this,i,g)},onProcess:function(){this.state=p.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()}});r.register("text",function(l,i,o){if(Array.isArray(l))for(var u=0;u{/** + */var d=t(83419),p=t(23906),l=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new d({Extends:l,initialize:function(i,a,u,h){var f="text",v="txt",m=i.cacheManager.text;if(e(a)){var g=a;a=n(g,"key"),u=n(g,"url"),h=n(g,"xhrSettings"),v=n(g,"extension",v),f=n(g,"type",f),m=n(g,"cache",m)}var x={type:f,cache:m,extension:v,responseType:"text",key:a,url:u,xhrSettings:h};l.call(this,i,x)},onProcess:function(){this.state=p.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()}});r.register("text",function(o,i,a){if(Array.isArray(o))for(var u=0;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=t(80341),l=new d({Extends:a,initialize:function(o,u,h,f){var v="csv";if(e(u)){var m=u;u=n(m,"key"),h=n(m,"url"),f=n(m,"xhrSettings"),v=n(m,"extension",v)}var x={type:"tilemapCSV",cache:o.cacheManager.tilemap,extension:v,responseType:"text",key:u,url:h,xhrSettings:f};a.call(this,o,x),this.tilemapFormat=s.CSV},onProcess:function(){this.state=p.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,u){if(Array.isArray(i))for(var h=0;h{/** + */var d=t(83419),p=t(23906),l=t(41299),r=t(74099),n=t(95540),e=t(41212),s=t(80341),o=new d({Extends:l,initialize:function(a,u,h,f){var v="csv";if(e(u)){var m=u;u=n(m,"key"),h=n(m,"url"),f=n(m,"xhrSettings"),v=n(m,"extension",v)}var g={type:"tilemapCSV",cache:a.cacheManager.tilemap,extension:v,responseType:"text",key:u,url:h,xhrSettings:f};l.call(this,a,g),this.tilemapFormat=s.CSV},onProcess:function(){this.state=p.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,a,u){if(Array.isArray(i))for(var h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(74099),a=t(518),r=t(80341),n=new d({Extends:a,initialize:function(s,l,i,o){a.call(this,s,l,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)}});p.register("tilemapImpact",function(e,s,l){if(Array.isArray(e))for(var i=0;i{/** + */var d=t(83419),p=t(74099),l=t(518),r=t(80341),n=new d({Extends:l,initialize:function(s,o,i,a){l.call(this,s,o,i,a),this.type="tilemapJSON",this.cache=s.cacheManager.tilemap},addToCache:function(){var e={format:r.WELTMEISTER,data:this.data};this.cache.add(this.key,e)}});p.register("tilemapImpact",function(e,s,o){if(Array.isArray(e))for(var i=0;i{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(74099),a=t(518),r=t(80341),n=new d({Extends:a,initialize:function(s,l,i,o){a.call(this,s,l,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)}});p.register("tilemapTiledJSON",function(e,s,l){if(Array.isArray(e))for(var i=0;i{/** + */var d=t(83419),p=t(74099),l=t(518),r=t(80341),n=new d({Extends:l,initialize:function(s,o,i,a){l.call(this,s,o,i,a),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)}});p.register("tilemapTiledJSON",function(e,s,o){if(Array.isArray(e))for(var i=0;i{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(74099),a=t(95540),r=t(19550),n=t(41212),e=t(26430),s=t(78776),l=new d({Extends:e,initialize:function(o,u,h,f,v,m){var x,g;if(n(u)){var y=u;u=a(y,"key"),x=new r(o,{key:u,url:a(y,"textureURL"),extension:a(y,"textureExtension","png"),normalMap:a(y,"normalMap"),xhrSettings:a(y,"textureXhrSettings")}),g=new s(o,{key:u,url:a(y,"atlasURL"),extension:a(y,"atlasExtension","txt"),xhrSettings:a(y,"atlasXhrSettings")})}else x=new r(o,u,h,v),g=new s(o,u,f,m);x.linkFile?e.call(this,o,"unityatlas",u,[x,g,x.linkFile]):e.call(this,o,"unityatlas",u,[x,g])},addToCache:function(){if(this.isReadyToProcess()){var i=this.files[0],o=this.files[1],u=this.files[2]?this.files[2].data:null;this.loader.textureManager.addUnityAtlas(i.key,i.data,o.data,u),this.complete=!0}}});p.register("unityAtlas",function(i,o,u,h,f){var v;if(Array.isArray(i))for(var m=0;m{/** + */var d=t(83419),p=t(74099),l=t(95540),r=t(19550),n=t(41212),e=t(26430),s=t(78776),o=new d({Extends:e,initialize:function(a,u,h,f,v,m){var g,x;if(n(u)){var y=u;u=l(y,"key"),g=new r(a,{key:u,url:l(y,"textureURL"),extension:l(y,"textureExtension","png"),normalMap:l(y,"normalMap"),xhrSettings:l(y,"textureXhrSettings")}),x=new s(a,{key:u,url:l(y,"atlasURL"),extension:l(y,"atlasExtension","txt"),xhrSettings:l(y,"atlasXhrSettings")})}else g=new r(a,u,h,v),x=new s(a,u,f,m);g.linkFile?e.call(this,a,"unityatlas",u,[g,x,g.linkFile]):e.call(this,a,"unityatlas",u,[g,x])},addToCache:function(){if(this.isReadyToProcess()){var i=this.files[0],a=this.files[1],u=this.files[2]?this.files[2].data:null;this.loader.textureManager.addUnityAtlas(i.key,i.data,a.data,u),this.complete=!0}}});p.register("unityAtlas",function(i,a,u,h,f){var v;if(Array.isArray(i))for(var m=0;m{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(98356),e=t(95540),s=t(41212),l=new d({Extends:a,initialize:function(o,u,h,f){if(f===void 0&&(f=!1),s(u)){var v=u;u=e(v,"key"),h=e(v,"url",[]),f=e(v,"noAudio",!1)}var m=o.systems.game.device.video.getVideoURL(h);m||console.warn("VideoFile: No supported format for "+u);var x={type:"video",cache:o.cacheManager.video,extension:m.type,key:u,url:m.url,config:{noAudio:f}};a.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=p.FILE_LOADED,this.loader.nextFile(this,!0)}});r.register("video",function(i,o,u){if(Array.isArray(i))for(var h=0;h{/** + */var d=t(83419),p=t(23906),l=t(41299),r=t(74099),n=t(98356),e=t(95540),s=t(41212),o=new d({Extends:l,initialize:function(a,u,h,f){if(f===void 0&&(f=!1),s(u)){var v=u;u=e(v,"key"),h=e(v,"url",[]),f=e(v,"noAudio",!1)}var m=a.systems.game.device.video.getVideoURL(h);m||console.warn("VideoFile: No supported format for "+u);var g={type:"video",cache:a.cacheManager.video,extension:m.type,key:u,url:m.url,config:{noAudio:f}};l.call(this,a,g)},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=p.FILE_LOADED,this.loader.nextFile(this,!0)}});r.register("video",function(i,a,u){if(Array.isArray(i))for(var h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=t(56836),l=new d({Extends:a,initialize:function(o,u,h,f){var v="xml";if(e(u)){var m=u;u=n(m,"key"),h=n(m,"url"),f=n(m,"xhrSettings"),v=n(m,"extension",v)}var x={type:"xml",cache:o.cacheManager.xml,extension:v,responseType:"text",key:u,url:h,xhrSettings:f};a.call(this,o,x)},onProcess:function(){this.state=p.FILE_PROCESSING,this.data=s(this.xhrLoader.responseText),this.data?this.onProcessComplete():this.onProcessError()}});r.register("xml",function(i,o,u){if(Array.isArray(i))for(var h=0;h{/** + */var d=t(83419),p=t(23906),l=t(41299),r=t(74099),n=t(95540),e=t(41212),s=t(56836),o=new d({Extends:l,initialize:function(a,u,h,f){var v="xml";if(e(u)){var m=u;u=n(m,"key"),h=n(m,"url"),f=n(m,"xhrSettings"),v=n(m,"extension",v)}var g={type:"xml",cache:a.cacheManager.xml,extension:v,responseType:"text",key:u,url:h,xhrSettings:f};l.call(this,a,g)},onProcess:function(){this.state=p.FILE_PROCESSING,this.data=s(this.xhrLoader.responseText),this.data?this.onProcessComplete():this.onProcessError()}});r.register("xml",function(i,a,u){if(Array.isArray(i))for(var h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3625,7 +3629,7 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(23906),p=t(79291),a={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)};a=p(!1,a,d),c.exports=a},53307:c=>{/** + */var d=t(23906),p=t(79291),l={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)};l=p(!1,l,d),c.exports=l},53307:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3633,7 +3637,7 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(6411),p=function(a,r){return d(a)/d(r)/d(a-r)};c.exports=p},30976:c=>{/** + */var d=t(6411),p=function(l,r){return d(l)/d(r)/d(l-r)};c.exports=p},30976:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3641,11 +3645,11 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a,r){var n=(a-d)*.5,e=(r-p)*.5,s=t*t,l=t*s;return(2*p-2*a+n+e)*l+(-3*p+3*a-2*n-e)*s+n*t+p};c.exports=T},26302:c=>{/** + */var T=function(t,d,p,l,r){var n=(l-d)*.5,e=(r-p)*.5,s=t*t,o=t*s;return(2*p-2*l+n+e)*o+(-3*p+3*l-2*n-e)*s+n*t+p};c.exports=T},26302:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){d===void 0&&(d=0),p===void 0&&(p=10);var a=Math.pow(p,-d);return Math.ceil(t*a)/a};c.exports=T},45319:c=>{/** + */var T=function(t,d,p){d===void 0&&(d=0),p===void 0&&(p=10);var l=Math.pow(p,-d);return Math.ceil(t*l)/l};c.exports=T},45319:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3653,7 +3657,7 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(36383),p=function(a){return a*d.DEG_TO_RAD};c.exports=p},61241:c=>{/** + */var d=t(36383),p=function(l){return l*d.DEG_TO_RAD};c.exports=p},61241:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3661,7 +3665,7 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(45319),p=t(83419),a=t(37867),r=t(29747),n=new a,e=new p({initialize:function s(l,i,o,u){l===void 0&&(l=0),i===void 0&&(i=0),o===void 0&&(o=0),u===void 0&&(u=s.DefaultOrder),this._x=l,this._y=i,this._z=o,this._order=u,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,l,i,o){return o===void 0&&(o=this._order),this._x=s,this._y=l,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,l,i){return l===void 0&&(l=this._order),i===void 0&&(i=!1),n.fromQuat(s),this.setFromRotationMatrix(n,l,i)},setFromRotationMatrix:function(s,l,i){l===void 0&&(l=this._order),i===void 0&&(i=!1);var o=s.val,u=o[0],h=o[4],f=o[8],v=o[1],m=o[5],x=o[9],g=o[2],y=o[6],S=o[10],C=0,E=0,A=0,P=.99999;switch(l){case"XYZ":{E=Math.asin(d(f,-1,1)),Math.abs(f){/** + */var d=t(45319),p=t(83419),l=t(37867),r=t(29747),n=new l,e=new p({initialize:function s(o,i,a,u){o===void 0&&(o=0),i===void 0&&(i=0),a===void 0&&(a=0),u===void 0&&(u=s.DefaultOrder),this._x=o,this._y=i,this._z=a,this._order=u,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,o,i,a){return a===void 0&&(a=this._order),this._x=s,this._y=o,this._z=i,this._order=a,this.onChangeCallback(this),this},copy:function(s){return this.set(s.x,s.y,s.z,s.order)},setFromQuaternion:function(s,o,i){return o===void 0&&(o=this._order),i===void 0&&(i=!1),n.fromQuat(s),this.setFromRotationMatrix(n,o,i)},setFromRotationMatrix:function(s,o,i){o===void 0&&(o=this._order),i===void 0&&(i=!1);var a=s.val,u=a[0],h=a[4],f=a[8],v=a[1],m=a[5],g=a[9],x=a[2],y=a[6],S=a[10],C=0,E=0,M=0,P=.99999;switch(o){case"XYZ":{E=Math.asin(d(f,-1,1)),Math.abs(f){/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3673,11 +3677,11 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){d===void 0&&(d=0),p===void 0&&(p=10);var a=Math.pow(p,-d);return Math.floor(t*a)/a};c.exports=T},62945:(c,T,t)=>{/** + */var T=function(t,d,p){d===void 0&&(d=0),p===void 0&&(p=10);var l=Math.pow(p,-d);return Math.floor(t*l)/l};c.exports=T},62945:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(45319),p=function(a,r,n){return a=d(a,0,1),(n-r)*a+r};c.exports=p},38265:c=>{/** + */var d=t(45319),p=function(l,r,n){return l=d(l,0,1),(n-r)*l+r};c.exports=p},38265:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3701,11 +3705,11 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=new d({initialize:function(r){this.val=new Float32Array(9),r?this.copy(r):this.identity()},clone:function(){return new p(this)},set:function(a){return this.copy(a)},copy:function(a){var r=this.val,n=a.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(a){var r=a.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(a){var r=this.val;return r[0]=a[0],r[1]=a[1],r[2]=a[2],r[3]=a[3],r[4]=a[4],r[5]=a[5],r[6]=a[6],r[7]=a[7],r[8]=a[8],this},identity:function(){var a=this.val;return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=1,a[5]=0,a[6]=0,a[7]=0,a[8]=1,this},transpose:function(){var a=this.val,r=a[1],n=a[2],e=a[5];return a[1]=a[3],a[2]=a[6],a[3]=r,a[5]=a[7],a[6]=n,a[7]=e,this},invert:function(){var a=this.val,r=a[0],n=a[1],e=a[2],s=a[3],l=a[4],i=a[5],o=a[6],u=a[7],h=a[8],f=h*l-i*u,v=-h*s+i*o,m=u*s-l*o,x=r*f+n*v+e*m;return x?(x=1/x,a[0]=f*x,a[1]=(-h*n+e*u)*x,a[2]=(i*n-e*l)*x,a[3]=v*x,a[4]=(h*r-e*o)*x,a[5]=(-i*r+e*s)*x,a[6]=m*x,a[7]=(-u*r+n*o)*x,a[8]=(l*r-n*s)*x,this):null},adjoint:function(){var a=this.val,r=a[0],n=a[1],e=a[2],s=a[3],l=a[4],i=a[5],o=a[6],u=a[7],h=a[8];return a[0]=l*h-i*u,a[1]=e*u-n*h,a[2]=n*i-e*l,a[3]=i*o-s*h,a[4]=r*h-e*o,a[5]=e*s-r*i,a[6]=s*u-l*o,a[7]=n*o-r*u,a[8]=r*l-n*s,this},determinant:function(){var a=this.val,r=a[0],n=a[1],e=a[2],s=a[3],l=a[4],i=a[5],o=a[6],u=a[7],h=a[8];return r*(h*l-i*u)+n*(-h*s+i*o)+e*(u*s-l*o)},multiply:function(a){var r=this.val,n=r[0],e=r[1],s=r[2],l=r[3],i=r[4],o=r[5],u=r[6],h=r[7],f=r[8],v=a.val,m=v[0],x=v[1],g=v[2],y=v[3],S=v[4],C=v[5],E=v[6],A=v[7],P=v[8];return r[0]=m*n+x*l+g*u,r[1]=m*e+x*i+g*h,r[2]=m*s+x*o+g*f,r[3]=y*n+S*l+C*u,r[4]=y*e+S*i+C*h,r[5]=y*s+S*o+C*f,r[6]=E*n+A*l+P*u,r[7]=E*e+A*i+P*h,r[8]=E*s+A*o+P*f,this},translate:function(a){var r=this.val,n=a.x,e=a.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(a){var r=this.val,n=r[0],e=r[1],s=r[2],l=r[3],i=r[4],o=r[5],u=Math.sin(a),h=Math.cos(a);return r[0]=h*n+u*l,r[1]=h*e+u*i,r[2]=h*s+u*o,r[3]=h*l-u*n,r[4]=h*i-u*e,r[5]=h*o-u*s,this},scale:function(a){var r=this.val,n=a.x,e=a.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(a){var r=a.x,n=a.y,e=a.z,s=a.w,l=r+r,i=n+n,o=e+e,u=r*l,h=r*i,f=r*o,v=n*i,m=n*o,x=e*o,g=s*l,y=s*i,S=s*o,C=this.val;return C[0]=1-(v+x),C[3]=h+S,C[6]=f-y,C[1]=h-S,C[4]=1-(u+x),C[7]=m+g,C[2]=f+y,C[5]=m-g,C[8]=1-(u+v),this},normalFromMat4:function(a){var r=a.val,n=this.val,e=r[0],s=r[1],l=r[2],i=r[3],o=r[4],u=r[5],h=r[6],f=r[7],v=r[8],m=r[9],x=r[10],g=r[11],y=r[12],S=r[13],C=r[14],E=r[15],A=e*u-s*o,P=e*h-l*o,M=e*f-i*o,F=s*h-l*u,L=s*f-i*u,b=l*f-i*h,B=v*S-m*y,N=v*C-x*y,X=v*E-g*y,D=m*C-x*S,I=m*E-g*S,R=x*E-g*C,O=A*R-P*I+M*D+F*X-L*N+b*B;return O?(O=1/O,n[0]=(u*R-h*I+f*D)*O,n[1]=(h*X-o*R-f*N)*O,n[2]=(o*I-u*X+f*B)*O,n[3]=(l*I-s*R-i*D)*O,n[4]=(e*R-l*X+i*N)*O,n[5]=(s*X-e*I-i*B)*O,n[6]=(S*b-C*L+E*F)*O,n[7]=(C*M-y*b-E*P)*O,n[8]=(y*L-S*M+E*A)*O,this):null}});c.exports=p},37867:(c,T,t)=>{/** + */var d=t(83419),p=new d({initialize:function(r){this.val=new Float32Array(9),r?this.copy(r):this.identity()},clone:function(){return new p(this)},set:function(l){return this.copy(l)},copy:function(l){var r=this.val,n=l.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(l){var r=l.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(l){var r=this.val;return r[0]=l[0],r[1]=l[1],r[2]=l[2],r[3]=l[3],r[4]=l[4],r[5]=l[5],r[6]=l[6],r[7]=l[7],r[8]=l[8],this},identity:function(){var l=this.val;return l[0]=1,l[1]=0,l[2]=0,l[3]=0,l[4]=1,l[5]=0,l[6]=0,l[7]=0,l[8]=1,this},transpose:function(){var l=this.val,r=l[1],n=l[2],e=l[5];return l[1]=l[3],l[2]=l[6],l[3]=r,l[5]=l[7],l[6]=n,l[7]=e,this},invert:function(){var l=this.val,r=l[0],n=l[1],e=l[2],s=l[3],o=l[4],i=l[5],a=l[6],u=l[7],h=l[8],f=h*o-i*u,v=-h*s+i*a,m=u*s-o*a,g=r*f+n*v+e*m;return g?(g=1/g,l[0]=f*g,l[1]=(-h*n+e*u)*g,l[2]=(i*n-e*o)*g,l[3]=v*g,l[4]=(h*r-e*a)*g,l[5]=(-i*r+e*s)*g,l[6]=m*g,l[7]=(-u*r+n*a)*g,l[8]=(o*r-n*s)*g,this):null},adjoint:function(){var l=this.val,r=l[0],n=l[1],e=l[2],s=l[3],o=l[4],i=l[5],a=l[6],u=l[7],h=l[8];return l[0]=o*h-i*u,l[1]=e*u-n*h,l[2]=n*i-e*o,l[3]=i*a-s*h,l[4]=r*h-e*a,l[5]=e*s-r*i,l[6]=s*u-o*a,l[7]=n*a-r*u,l[8]=r*o-n*s,this},determinant:function(){var l=this.val,r=l[0],n=l[1],e=l[2],s=l[3],o=l[4],i=l[5],a=l[6],u=l[7],h=l[8];return r*(h*o-i*u)+n*(-h*s+i*a)+e*(u*s-o*a)},multiply:function(l){var r=this.val,n=r[0],e=r[1],s=r[2],o=r[3],i=r[4],a=r[5],u=r[6],h=r[7],f=r[8],v=l.val,m=v[0],g=v[1],x=v[2],y=v[3],S=v[4],C=v[5],E=v[6],M=v[7],P=v[8];return r[0]=m*n+g*o+x*u,r[1]=m*e+g*i+x*h,r[2]=m*s+g*a+x*f,r[3]=y*n+S*o+C*u,r[4]=y*e+S*i+C*h,r[5]=y*s+S*a+C*f,r[6]=E*n+M*o+P*u,r[7]=E*e+M*i+P*h,r[8]=E*s+M*a+P*f,this},translate:function(l){var r=this.val,n=l.x,e=l.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(l){var r=this.val,n=r[0],e=r[1],s=r[2],o=r[3],i=r[4],a=r[5],u=Math.sin(l),h=Math.cos(l);return r[0]=h*n+u*o,r[1]=h*e+u*i,r[2]=h*s+u*a,r[3]=h*o-u*n,r[4]=h*i-u*e,r[5]=h*a-u*s,this},scale:function(l){var r=this.val,n=l.x,e=l.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(l){var r=l.x,n=l.y,e=l.z,s=l.w,o=r+r,i=n+n,a=e+e,u=r*o,h=r*i,f=r*a,v=n*i,m=n*a,g=e*a,x=s*o,y=s*i,S=s*a,C=this.val;return C[0]=1-(v+g),C[3]=h+S,C[6]=f-y,C[1]=h-S,C[4]=1-(u+g),C[7]=m+x,C[2]=f+y,C[5]=m-x,C[8]=1-(u+v),this},normalFromMat4:function(l){var r=l.val,n=this.val,e=r[0],s=r[1],o=r[2],i=r[3],a=r[4],u=r[5],h=r[6],f=r[7],v=r[8],m=r[9],g=r[10],x=r[11],y=r[12],S=r[13],C=r[14],E=r[15],M=e*u-s*a,P=e*h-o*a,A=e*f-i*a,R=s*h-o*u,F=s*f-i*u,D=o*f-i*h,w=v*S-m*y,G=v*C-g*y,N=v*E-x*y,b=m*C-g*S,B=m*E-x*S,O=g*E-x*C,L=M*O-P*B+A*b+R*N-F*G+D*w;return L?(L=1/L,n[0]=(u*O-h*B+f*b)*L,n[1]=(h*N-a*O-f*G)*L,n[2]=(a*B-u*N+f*w)*L,n[3]=(o*B-s*O-i*b)*L,n[4]=(e*O-o*N+i*G)*L,n[5]=(s*N-e*B-i*w)*L,n[6]=(S*D-C*F+E*R)*L,n[7]=(C*A-y*D-E*P)*L,n[8]=(y*F-S*A+E*M)*L,this):null}});c.exports=p},37867:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(25836),a=1e-6,r=new d({initialize:function(u){this.val=new Float32Array(16),u?this.copy(u):this.identity()},clone:function(){return new r(this)},set:function(o){return this.copy(o)},setValues:function(o,u,h,f,v,m,x,g,y,S,C,E,A,P,M,F){var L=this.val;return L[0]=o,L[1]=u,L[2]=h,L[3]=f,L[4]=v,L[5]=m,L[6]=x,L[7]=g,L[8]=y,L[9]=S,L[10]=C,L[11]=E,L[12]=A,L[13]=P,L[14]=M,L[15]=F,this},copy:function(o){var u=o.val;return this.setValues(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[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,u,h){var f=n.fromQuat(h),v=f.val,m=u.x,x=u.y,g=u.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,u,h){this.identity();var f=this.val;return f[12]=o,f[13]=u,f[14]=h,this},scaling:function(o,u,h){this.zero();var f=this.val;return f[0]=o,f[5]=u,f[10]=h,f[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,u=o[1],h=o[2],f=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]=u,o[6]=o[9],o[7]=o[13],o[8]=h,o[9]=v,o[11]=o[14],o[12]=f,o[13]=m,o[14]=x,this},getInverse:function(o){return this.copy(o),this.invert()},invert:function(){var o=this.val,u=o[0],h=o[1],f=o[2],v=o[3],m=o[4],x=o[5],g=o[6],y=o[7],S=o[8],C=o[9],E=o[10],A=o[11],P=o[12],M=o[13],F=o[14],L=o[15],b=u*x-h*m,B=u*g-f*m,N=u*y-v*m,X=h*g-f*x,D=h*y-v*x,I=f*y-v*g,R=S*M-C*P,O=S*F-E*P,w=S*L-A*P,G=C*F-E*M,U=C*L-A*M,z=E*L-A*F,V=b*z-B*U+N*G+X*w-D*O+I*R;return V?(V=1/V,this.setValues((x*z-g*U+y*G)*V,(f*U-h*z-v*G)*V,(M*I-F*D+L*X)*V,(E*D-C*I-A*X)*V,(g*w-m*z-y*O)*V,(u*z-f*w+v*O)*V,(F*N-P*I-L*B)*V,(S*I-E*N+A*B)*V,(m*U-x*w+y*R)*V,(h*w-u*U-v*R)*V,(P*D-M*N+L*b)*V,(C*N-S*D-A*b)*V,(x*O-m*G-g*R)*V,(u*G-h*O+f*R)*V,(M*B-P*X-F*b)*V,(S*X-C*B+E*b)*V)):this},adjoint:function(){var o=this.val,u=o[0],h=o[1],f=o[2],v=o[3],m=o[4],x=o[5],g=o[6],y=o[7],S=o[8],C=o[9],E=o[10],A=o[11],P=o[12],M=o[13],F=o[14],L=o[15];return this.setValues(x*(E*L-A*F)-C*(g*L-y*F)+M*(g*A-y*E),-(h*(E*L-A*F)-C*(f*L-v*F)+M*(f*A-v*E)),h*(g*L-y*F)-x*(f*L-v*F)+M*(f*y-v*g),-(h*(g*A-y*E)-x*(f*A-v*E)+C*(f*y-v*g)),-(m*(E*L-A*F)-S*(g*L-y*F)+P*(g*A-y*E)),u*(E*L-A*F)-S*(f*L-v*F)+P*(f*A-v*E),-(u*(g*L-y*F)-m*(f*L-v*F)+P*(f*y-v*g)),u*(g*A-y*E)-m*(f*A-v*E)+S*(f*y-v*g),m*(C*L-A*M)-S*(x*L-y*M)+P*(x*A-y*C),-(u*(C*L-A*M)-S*(h*L-v*M)+P*(h*A-v*C)),u*(x*L-y*M)-m*(h*L-v*M)+P*(h*y-v*x),-(u*(x*A-y*C)-m*(h*A-v*C)+S*(h*y-v*x)),-(m*(C*F-E*M)-S*(x*F-g*M)+P*(x*E-g*C)),u*(C*F-E*M)-S*(h*F-f*M)+P*(h*E-f*C),-(u*(x*F-g*M)-m*(h*F-f*M)+P*(h*g-f*x)),u*(x*E-g*C)-m*(h*E-f*C)+S*(h*g-f*x))},determinant:function(){var o=this.val,u=o[0],h=o[1],f=o[2],v=o[3],m=o[4],x=o[5],g=o[6],y=o[7],S=o[8],C=o[9],E=o[10],A=o[11],P=o[12],M=o[13],F=o[14],L=o[15],b=u*x-h*m,B=u*g-f*m,N=u*y-v*m,X=h*g-f*x,D=h*y-v*x,I=f*y-v*g,R=S*M-C*P,O=S*F-E*P,w=S*L-A*P,G=C*F-E*M,U=C*L-A*M,z=E*L-A*F;return b*z-B*U+N*G+X*w-D*O+I*R},multiply:function(o){var u=this.val,h=u[0],f=u[1],v=u[2],m=u[3],x=u[4],g=u[5],y=u[6],S=u[7],C=u[8],E=u[9],A=u[10],P=u[11],M=u[12],F=u[13],L=u[14],b=u[15],B=o.val,N=B[0],X=B[1],D=B[2],I=B[3];return u[0]=N*h+X*x+D*C+I*M,u[1]=N*f+X*g+D*E+I*F,u[2]=N*v+X*y+D*A+I*L,u[3]=N*m+X*S+D*P+I*b,N=B[4],X=B[5],D=B[6],I=B[7],u[4]=N*h+X*x+D*C+I*M,u[5]=N*f+X*g+D*E+I*F,u[6]=N*v+X*y+D*A+I*L,u[7]=N*m+X*S+D*P+I*b,N=B[8],X=B[9],D=B[10],I=B[11],u[8]=N*h+X*x+D*C+I*M,u[9]=N*f+X*g+D*E+I*F,u[10]=N*v+X*y+D*A+I*L,u[11]=N*m+X*S+D*P+I*b,N=B[12],X=B[13],D=B[14],I=B[15],u[12]=N*h+X*x+D*C+I*M,u[13]=N*f+X*g+D*E+I*F,u[14]=N*v+X*y+D*A+I*L,u[15]=N*m+X*S+D*P+I*b,this},multiplyLocal:function(o){var u=this.val,h=o.val;return this.setValues(u[0]*h[0]+u[1]*h[4]+u[2]*h[8]+u[3]*h[12],u[0]*h[1]+u[1]*h[5]+u[2]*h[9]+u[3]*h[13],u[0]*h[2]+u[1]*h[6]+u[2]*h[10]+u[3]*h[14],u[0]*h[3]+u[1]*h[7]+u[2]*h[11]+u[3]*h[15],u[4]*h[0]+u[5]*h[4]+u[6]*h[8]+u[7]*h[12],u[4]*h[1]+u[5]*h[5]+u[6]*h[9]+u[7]*h[13],u[4]*h[2]+u[5]*h[6]+u[6]*h[10]+u[7]*h[14],u[4]*h[3]+u[5]*h[7]+u[6]*h[11]+u[7]*h[15],u[8]*h[0]+u[9]*h[4]+u[10]*h[8]+u[11]*h[12],u[8]*h[1]+u[9]*h[5]+u[10]*h[9]+u[11]*h[13],u[8]*h[2]+u[9]*h[6]+u[10]*h[10]+u[11]*h[14],u[8]*h[3]+u[9]*h[7]+u[10]*h[11]+u[11]*h[15],u[12]*h[0]+u[13]*h[4]+u[14]*h[8]+u[15]*h[12],u[12]*h[1]+u[13]*h[5]+u[14]*h[9]+u[15]*h[13],u[12]*h[2]+u[13]*h[6]+u[14]*h[10]+u[15]*h[14],u[12]*h[3]+u[13]*h[7]+u[14]*h[11]+u[15]*h[15])},premultiply:function(o){return this.multiplyMatrices(o,this)},multiplyMatrices:function(o,u){var h=o.val,f=u.val,v=h[0],m=h[4],x=h[8],g=h[12],y=h[1],S=h[5],C=h[9],E=h[13],A=h[2],P=h[6],M=h[10],F=h[14],L=h[3],b=h[7],B=h[11],N=h[15],X=f[0],D=f[4],I=f[8],R=f[12],O=f[1],w=f[5],G=f[9],U=f[13],z=f[2],V=f[6],Y=f[10],W=f[14],H=f[3],K=f[7],Q=f[11],Z=f[15];return this.setValues(v*X+m*O+x*z+g*H,y*X+S*O+C*z+E*H,A*X+P*O+M*z+F*H,L*X+b*O+B*z+N*H,v*D+m*w+x*V+g*K,y*D+S*w+C*V+E*K,A*D+P*w+M*V+F*K,L*D+b*w+B*V+N*K,v*I+m*G+x*Y+g*Q,y*I+S*G+C*Y+E*Q,A*I+P*G+M*Y+F*Q,L*I+b*G+B*Y+N*Q,v*R+m*U+x*W+g*Z,y*R+S*U+C*W+E*Z,A*R+P*U+M*W+F*Z,L*R+b*U+B*W+N*Z)},translate:function(o){return this.translateXYZ(o.x,o.y,o.z)},translateXYZ:function(o,u,h){var f=this.val;return f[12]=f[0]*o+f[4]*u+f[8]*h+f[12],f[13]=f[1]*o+f[5]*u+f[9]*h+f[13],f[14]=f[2]*o+f[6]*u+f[10]*h+f[14],f[15]=f[3]*o+f[7]*u+f[11]*h+f[15],this},scale:function(o){return this.scaleXYZ(o.x,o.y,o.z)},scaleXYZ:function(o,u,h){var f=this.val;return f[0]=f[0]*o,f[1]=f[1]*o,f[2]=f[2]*o,f[3]=f[3]*o,f[4]=f[4]*u,f[5]=f[5]*u,f[6]=f[6]*u,f[7]=f[7]*u,f[8]=f[8]*h,f[9]=f[9]*h,f[10]=f[10]*h,f[11]=f[11]*h,this},makeRotationAxis:function(o,u){var h=Math.cos(u),f=Math.sin(u),v=1-h,m=o.x,x=o.y,g=o.z,y=v*m,S=v*x;return this.setValues(y*m+h,y*x-f*g,y*g+f*x,0,y*x+f*g,S*x+h,S*g-f*m,0,y*g-f*x,S*g+f*m,v*g*g+h,0,0,0,0,1)},rotate:function(o,u){var h=this.val,f=u.x,v=u.y,m=u.z,x=Math.sqrt(f*f+v*v+m*m);if(Math.abs(x){/** + */var d=t(83419),p=t(25836),l=1e-6,r=new d({initialize:function(u){this.val=new Float32Array(16),u?this.copy(u):this.identity()},clone:function(){return new r(this)},set:function(a){return this.copy(a)},setValues:function(a,u,h,f,v,m,g,x,y,S,C,E,M,P,A,R){var F=this.val;return F[0]=a,F[1]=u,F[2]=h,F[3]=f,F[4]=v,F[5]=m,F[6]=g,F[7]=x,F[8]=y,F[9]=S,F[10]=C,F[11]=E,F[12]=M,F[13]=P,F[14]=A,F[15]=R,this},copy:function(a){var u=a.val;return this.setValues(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15])},fromArray:function(a){return this.setValues(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15])},zero:function(){return this.setValues(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)},transform:function(a,u,h){var f=n.fromQuat(h),v=f.val,m=u.x,g=u.y,x=u.z;return this.setValues(v[0]*m,v[1]*m,v[2]*m,0,v[4]*g,v[5]*g,v[6]*g,0,v[8]*x,v[9]*x,v[10]*x,0,a.x,a.y,a.z,1)},xyz:function(a,u,h){this.identity();var f=this.val;return f[12]=a,f[13]=u,f[14]=h,this},scaling:function(a,u,h){this.zero();var f=this.val;return f[0]=a,f[5]=u,f[10]=h,f[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 a=this.val,u=a[1],h=a[2],f=a[3],v=a[6],m=a[7],g=a[11];return a[1]=a[4],a[2]=a[8],a[3]=a[12],a[4]=u,a[6]=a[9],a[7]=a[13],a[8]=h,a[9]=v,a[11]=a[14],a[12]=f,a[13]=m,a[14]=g,this},getInverse:function(a){return this.copy(a),this.invert()},invert:function(){var a=this.val,u=a[0],h=a[1],f=a[2],v=a[3],m=a[4],g=a[5],x=a[6],y=a[7],S=a[8],C=a[9],E=a[10],M=a[11],P=a[12],A=a[13],R=a[14],F=a[15],D=u*g-h*m,w=u*x-f*m,G=u*y-v*m,N=h*x-f*g,b=h*y-v*g,B=f*y-v*x,O=S*A-C*P,L=S*R-E*P,I=S*F-M*P,U=C*R-E*A,X=C*F-M*A,z=E*F-M*R,V=D*z-w*X+G*U+N*I-b*L+B*O;return V?(V=1/V,this.setValues((g*z-x*X+y*U)*V,(f*X-h*z-v*U)*V,(A*B-R*b+F*N)*V,(E*b-C*B-M*N)*V,(x*I-m*z-y*L)*V,(u*z-f*I+v*L)*V,(R*G-P*B-F*w)*V,(S*B-E*G+M*w)*V,(m*X-g*I+y*O)*V,(h*I-u*X-v*O)*V,(P*b-A*G+F*D)*V,(C*G-S*b-M*D)*V,(g*L-m*U-x*O)*V,(u*U-h*L+f*O)*V,(A*w-P*N-R*D)*V,(S*N-C*w+E*D)*V)):this},adjoint:function(){var a=this.val,u=a[0],h=a[1],f=a[2],v=a[3],m=a[4],g=a[5],x=a[6],y=a[7],S=a[8],C=a[9],E=a[10],M=a[11],P=a[12],A=a[13],R=a[14],F=a[15];return this.setValues(g*(E*F-M*R)-C*(x*F-y*R)+A*(x*M-y*E),-(h*(E*F-M*R)-C*(f*F-v*R)+A*(f*M-v*E)),h*(x*F-y*R)-g*(f*F-v*R)+A*(f*y-v*x),-(h*(x*M-y*E)-g*(f*M-v*E)+C*(f*y-v*x)),-(m*(E*F-M*R)-S*(x*F-y*R)+P*(x*M-y*E)),u*(E*F-M*R)-S*(f*F-v*R)+P*(f*M-v*E),-(u*(x*F-y*R)-m*(f*F-v*R)+P*(f*y-v*x)),u*(x*M-y*E)-m*(f*M-v*E)+S*(f*y-v*x),m*(C*F-M*A)-S*(g*F-y*A)+P*(g*M-y*C),-(u*(C*F-M*A)-S*(h*F-v*A)+P*(h*M-v*C)),u*(g*F-y*A)-m*(h*F-v*A)+P*(h*y-v*g),-(u*(g*M-y*C)-m*(h*M-v*C)+S*(h*y-v*g)),-(m*(C*R-E*A)-S*(g*R-x*A)+P*(g*E-x*C)),u*(C*R-E*A)-S*(h*R-f*A)+P*(h*E-f*C),-(u*(g*R-x*A)-m*(h*R-f*A)+P*(h*x-f*g)),u*(g*E-x*C)-m*(h*E-f*C)+S*(h*x-f*g))},determinant:function(){var a=this.val,u=a[0],h=a[1],f=a[2],v=a[3],m=a[4],g=a[5],x=a[6],y=a[7],S=a[8],C=a[9],E=a[10],M=a[11],P=a[12],A=a[13],R=a[14],F=a[15],D=u*g-h*m,w=u*x-f*m,G=u*y-v*m,N=h*x-f*g,b=h*y-v*g,B=f*y-v*x,O=S*A-C*P,L=S*R-E*P,I=S*F-M*P,U=C*R-E*A,X=C*F-M*A,z=E*F-M*R;return D*z-w*X+G*U+N*I-b*L+B*O},multiply:function(a){var u=this.val,h=u[0],f=u[1],v=u[2],m=u[3],g=u[4],x=u[5],y=u[6],S=u[7],C=u[8],E=u[9],M=u[10],P=u[11],A=u[12],R=u[13],F=u[14],D=u[15],w=a.val,G=w[0],N=w[1],b=w[2],B=w[3];return u[0]=G*h+N*g+b*C+B*A,u[1]=G*f+N*x+b*E+B*R,u[2]=G*v+N*y+b*M+B*F,u[3]=G*m+N*S+b*P+B*D,G=w[4],N=w[5],b=w[6],B=w[7],u[4]=G*h+N*g+b*C+B*A,u[5]=G*f+N*x+b*E+B*R,u[6]=G*v+N*y+b*M+B*F,u[7]=G*m+N*S+b*P+B*D,G=w[8],N=w[9],b=w[10],B=w[11],u[8]=G*h+N*g+b*C+B*A,u[9]=G*f+N*x+b*E+B*R,u[10]=G*v+N*y+b*M+B*F,u[11]=G*m+N*S+b*P+B*D,G=w[12],N=w[13],b=w[14],B=w[15],u[12]=G*h+N*g+b*C+B*A,u[13]=G*f+N*x+b*E+B*R,u[14]=G*v+N*y+b*M+B*F,u[15]=G*m+N*S+b*P+B*D,this},multiplyLocal:function(a){var u=this.val,h=a.val;return this.setValues(u[0]*h[0]+u[1]*h[4]+u[2]*h[8]+u[3]*h[12],u[0]*h[1]+u[1]*h[5]+u[2]*h[9]+u[3]*h[13],u[0]*h[2]+u[1]*h[6]+u[2]*h[10]+u[3]*h[14],u[0]*h[3]+u[1]*h[7]+u[2]*h[11]+u[3]*h[15],u[4]*h[0]+u[5]*h[4]+u[6]*h[8]+u[7]*h[12],u[4]*h[1]+u[5]*h[5]+u[6]*h[9]+u[7]*h[13],u[4]*h[2]+u[5]*h[6]+u[6]*h[10]+u[7]*h[14],u[4]*h[3]+u[5]*h[7]+u[6]*h[11]+u[7]*h[15],u[8]*h[0]+u[9]*h[4]+u[10]*h[8]+u[11]*h[12],u[8]*h[1]+u[9]*h[5]+u[10]*h[9]+u[11]*h[13],u[8]*h[2]+u[9]*h[6]+u[10]*h[10]+u[11]*h[14],u[8]*h[3]+u[9]*h[7]+u[10]*h[11]+u[11]*h[15],u[12]*h[0]+u[13]*h[4]+u[14]*h[8]+u[15]*h[12],u[12]*h[1]+u[13]*h[5]+u[14]*h[9]+u[15]*h[13],u[12]*h[2]+u[13]*h[6]+u[14]*h[10]+u[15]*h[14],u[12]*h[3]+u[13]*h[7]+u[14]*h[11]+u[15]*h[15])},premultiply:function(a){return this.multiplyMatrices(a,this)},multiplyMatrices:function(a,u){var h=a.val,f=u.val,v=h[0],m=h[4],g=h[8],x=h[12],y=h[1],S=h[5],C=h[9],E=h[13],M=h[2],P=h[6],A=h[10],R=h[14],F=h[3],D=h[7],w=h[11],G=h[15],N=f[0],b=f[4],B=f[8],O=f[12],L=f[1],I=f[5],U=f[9],X=f[13],z=f[2],V=f[6],Y=f[10],W=f[14],H=f[3],K=f[7],j=f[11],Z=f[15];return this.setValues(v*N+m*L+g*z+x*H,y*N+S*L+C*z+E*H,M*N+P*L+A*z+R*H,F*N+D*L+w*z+G*H,v*b+m*I+g*V+x*K,y*b+S*I+C*V+E*K,M*b+P*I+A*V+R*K,F*b+D*I+w*V+G*K,v*B+m*U+g*Y+x*j,y*B+S*U+C*Y+E*j,M*B+P*U+A*Y+R*j,F*B+D*U+w*Y+G*j,v*O+m*X+g*W+x*Z,y*O+S*X+C*W+E*Z,M*O+P*X+A*W+R*Z,F*O+D*X+w*W+G*Z)},translate:function(a){return this.translateXYZ(a.x,a.y,a.z)},translateXYZ:function(a,u,h){var f=this.val;return f[12]=f[0]*a+f[4]*u+f[8]*h+f[12],f[13]=f[1]*a+f[5]*u+f[9]*h+f[13],f[14]=f[2]*a+f[6]*u+f[10]*h+f[14],f[15]=f[3]*a+f[7]*u+f[11]*h+f[15],this},scale:function(a){return this.scaleXYZ(a.x,a.y,a.z)},scaleXYZ:function(a,u,h){var f=this.val;return f[0]=f[0]*a,f[1]=f[1]*a,f[2]=f[2]*a,f[3]=f[3]*a,f[4]=f[4]*u,f[5]=f[5]*u,f[6]=f[6]*u,f[7]=f[7]*u,f[8]=f[8]*h,f[9]=f[9]*h,f[10]=f[10]*h,f[11]=f[11]*h,this},makeRotationAxis:function(a,u){var h=Math.cos(u),f=Math.sin(u),v=1-h,m=a.x,g=a.y,x=a.z,y=v*m,S=v*g;return this.setValues(y*m+h,y*g-f*x,y*x+f*g,0,y*g+f*x,S*g+h,S*x-f*m,0,y*x-f*g,S*x+f*m,v*x*x+h,0,0,0,0,1)},rotate:function(a,u){var h=this.val,f=u.x,v=u.y,m=u.z,g=Math.sqrt(f*f+v*v+m*m);if(Math.abs(g){/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3713,7 +3717,7 @@ return new `+this.key+`(); * @author Vladislav Forsh * @copyright 2021 RoboWhale * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t){var d=t.length;if(d===0)return 0;t.sort(function(a,r){return a-r});var p=Math.floor(d/2);return d%2===0?(t[p]+t[p-1])/2:t[p]};c.exports=T},37204:c=>{/** + */var T=function(t){var d=t.length;if(d===0)return 0;t.sort(function(l,r){return l-r});var p=Math.floor(d/2);return d%2===0?(t[p]+t[p-1])/2:t[p]};c.exports=T},37204:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3721,15 +3725,15 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){p===void 0&&(p=d+1);var r=(t-d)/(p-d);return r>1?a!==void 0?(r=(a-t)/(a-p),r<0&&(r=0)):r=1:r<0&&(r=0),r};c.exports=T},15746:(c,T,t)=>{/** + */var T=function(t,d,p,l){p===void 0&&(p=d+1);var r=(t-d)/(p-d);return r>1?l!==void 0?(r=(l-t)/(l-p),r<0&&(r=0)):r=1:r<0&&(r=0),r};c.exports=T},15746:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(94434),a=t(29747),r=t(25836),n=1e-6,e=new Int8Array([1,2,0]),s=new Float32Array([0,0,0]),l=new r(1,0,0),i=new r(0,1,0),o=new r,u=new p,h=new d({initialize:function(v,m,x,g){this.onChangeCallback=a,this.set(v,m,x,g)},x:{get:function(){return this._x},set:function(f){this._x=f,this.onChangeCallback(this)}},y:{get:function(){return this._y},set:function(f){this._y=f,this.onChangeCallback(this)}},z:{get:function(){return this._z},set:function(f){this._z=f,this.onChangeCallback(this)}},w:{get:function(){return this._w},set:function(f){this._w=f,this.onChangeCallback(this)}},copy:function(f){return this.set(f)},set:function(f,v,m,x,g){return g===void 0&&(g=!0),typeof f=="object"?(this._x=f.x||0,this._y=f.y||0,this._z=f.z||0,this._w=f.w||0):(this._x=f||0,this._y=v||0,this._z=m||0,this._w=x||0),g&&this.onChangeCallback(this),this},add:function(f){return this._x+=f.x,this._y+=f.y,this._z+=f.z,this._w+=f.w,this.onChangeCallback(this),this},subtract:function(f){return this._x-=f.x,this._y-=f.y,this._z-=f.z,this._w-=f.w,this.onChangeCallback(this),this},scale:function(f){return this._x*=f,this._y*=f,this._z*=f,this._w*=f,this.onChangeCallback(this),this},length:function(){var f=this.x,v=this.y,m=this.z,x=this.w;return Math.sqrt(f*f+v*v+m*m+x*x)},lengthSq:function(){var f=this.x,v=this.y,m=this.z,x=this.w;return f*f+v*v+m*m+x*x},normalize:function(){var f=this.x,v=this.y,m=this.z,x=this.w,g=f*f+v*v+m*m+x*x;return g>0&&(g=1/Math.sqrt(g),this._x=f*g,this._y=v*g,this._z=m*g,this._w=x*g),this.onChangeCallback(this),this},dot:function(f){return this.x*f.x+this.y*f.y+this.z*f.z+this.w*f.w},lerp:function(f,v){v===void 0&&(v=0);var m=this.x,x=this.y,g=this.z,y=this.w;return this.set(m+v*(f.x-m),x+v*(f.y-x),g+v*(f.z-g),y+v*(f.w-y))},rotationTo:function(f,v){var m=f.x*v.x+f.y*v.y+f.z*v.z;return m<-.999999?(o.copy(l).cross(f).length().999999?this.set(0,0,0,1):(o.copy(f).cross(v),this._x=o.x,this._y=o.y,this._z=o.z,this._w=1+m,this.normalize())},setAxes:function(f,v,m){var x=u.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]=-f.x,x[5]=-f.y,x[8]=-f.z,this.fromMat3(u).normalize()},identity:function(){return this.set(0,0,0,1)},setAxisAngle:function(f,v){v=v*.5;var m=Math.sin(v);return this.set(m*f.x,m*f.y,m*f.z,Math.cos(v))},multiply:function(f){var v=this.x,m=this.y,x=this.z,g=this.w,y=f.x,S=f.y,C=f.z,E=f.w;return this.set(v*E+g*y+m*C-x*S,m*E+g*S+x*y-v*C,x*E+g*C+v*S-m*y,g*E-v*y-m*S-x*C)},slerp:function(f,v){var m=this.x,x=this.y,g=this.z,y=this.w,S=f.x,C=f.y,E=f.z,A=f.w,P=m*S+x*C+g*E+y*A;P<0&&(P=-P,S=-S,C=-C,E=-E,A=-A);var M=1-v,F=v;if(1-P>n){var L=Math.acos(P),b=Math.sin(L);M=Math.sin((1-v)*L)/b,F=Math.sin(v*L)/b}return this.set(M*m+F*S,M*x+F*C,M*g+F*E,M*y+F*A)},invert:function(){var f=this.x,v=this.y,m=this.z,x=this.w,g=f*f+v*v+m*m+x*x,y=g?1/g:0;return this.set(-f*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(f){f*=.5;var v=this.x,m=this.y,x=this.z,g=this.w,y=Math.sin(f),S=Math.cos(f);return this.set(v*S+g*y,m*S+x*y,x*S-m*y,g*S-v*y)},rotateY:function(f){f*=.5;var v=this.x,m=this.y,x=this.z,g=this.w,y=Math.sin(f),S=Math.cos(f);return this.set(v*S-x*y,m*S+g*y,x*S+v*y,g*S-m*y)},rotateZ:function(f){f*=.5;var v=this.x,m=this.y,x=this.z,g=this.w,y=Math.sin(f),S=Math.cos(f);return this.set(v*S+m*y,m*S-v*y,x*S+g*y,g*S-x*y)},calculateW:function(){var f=this.x,v=this.y,m=this.z;return this.w=-Math.sqrt(1-f*f-v*v-m*m),this},setFromEuler:function(f,v){var m=f.x/2,x=f.y/2,g=f.z/2,y=Math.cos(m),S=Math.cos(x),C=Math.cos(g),E=Math.sin(m),A=Math.sin(x),P=Math.sin(g);switch(f.order){case"XYZ":{this.set(E*S*C+y*A*P,y*A*C-E*S*P,y*S*P+E*A*C,y*S*C-E*A*P,v);break}case"YXZ":{this.set(E*S*C+y*A*P,y*A*C-E*S*P,y*S*P-E*A*C,y*S*C+E*A*P,v);break}case"ZXY":{this.set(E*S*C-y*A*P,y*A*C+E*S*P,y*S*P+E*A*C,y*S*C-E*A*P,v);break}case"ZYX":{this.set(E*S*C-y*A*P,y*A*C+E*S*P,y*S*P-E*A*C,y*S*C+E*A*P,v);break}case"YZX":{this.set(E*S*C+y*A*P,y*A*C+E*S*P,y*S*P-E*A*C,y*S*C-E*A*P,v);break}case"XZY":{this.set(E*S*C-y*A*P,y*A*C-E*S*P,y*S*P+E*A*C,y*S*C+E*A*P,v);break}}return this},setFromRotationMatrix:function(f){var v=f.val,m=v[0],x=v[4],g=v[8],y=v[1],S=v[5],C=v[9],E=v[2],A=v[6],P=v[10],M=m+S+P,F;return M>0?(F=.5/Math.sqrt(M+1),this.set((A-C)*F,(g-E)*F,(y-x)*F,.25/F)):m>S&&m>P?(F=2*Math.sqrt(1+m-S-P),this.set(.25*F,(x+y)/F,(g+E)/F,(A-C)/F)):S>P?(F=2*Math.sqrt(1+S-m-P),this.set((x+y)/F,.25*F,(C+A)/F,(g-E)/F)):(F=2*Math.sqrt(1+P-m-S),this.set((g+E)/F,(C+A)/F,.25*F,(y-x)/F)),this},fromMat3:function(f){var v=f.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],S=e[y];x=Math.sqrt(v[g*3+g]-v[y*3+y]-v[S*3+S]+1),s[g]=.5*x,x=.5/x,s[y]=(v[y*3+g]+v[g*3+y])*x,s[S]=(v[S*3+g]+v[g*3+S])*x,this._x=s[0],this._y=s[1],this._z=s[2],this._w=(v[S*3+y]-v[y*3+S])*x}return this.onChangeCallback(this),this}});c.exports=h},43396:(c,T,t)=>{/** + */var d=t(83419),p=t(94434),l=t(29747),r=t(25836),n=1e-6,e=new Int8Array([1,2,0]),s=new Float32Array([0,0,0]),o=new r(1,0,0),i=new r(0,1,0),a=new r,u=new p,h=new d({initialize:function(v,m,g,x){this.onChangeCallback=l,this.set(v,m,g,x)},x:{get:function(){return this._x},set:function(f){this._x=f,this.onChangeCallback(this)}},y:{get:function(){return this._y},set:function(f){this._y=f,this.onChangeCallback(this)}},z:{get:function(){return this._z},set:function(f){this._z=f,this.onChangeCallback(this)}},w:{get:function(){return this._w},set:function(f){this._w=f,this.onChangeCallback(this)}},copy:function(f){return this.set(f)},set:function(f,v,m,g,x){return x===void 0&&(x=!0),typeof f=="object"?(this._x=f.x||0,this._y=f.y||0,this._z=f.z||0,this._w=f.w||0):(this._x=f||0,this._y=v||0,this._z=m||0,this._w=g||0),x&&this.onChangeCallback(this),this},add:function(f){return this._x+=f.x,this._y+=f.y,this._z+=f.z,this._w+=f.w,this.onChangeCallback(this),this},subtract:function(f){return this._x-=f.x,this._y-=f.y,this._z-=f.z,this._w-=f.w,this.onChangeCallback(this),this},scale:function(f){return this._x*=f,this._y*=f,this._z*=f,this._w*=f,this.onChangeCallback(this),this},length:function(){var f=this.x,v=this.y,m=this.z,g=this.w;return Math.sqrt(f*f+v*v+m*m+g*g)},lengthSq:function(){var f=this.x,v=this.y,m=this.z,g=this.w;return f*f+v*v+m*m+g*g},normalize:function(){var f=this.x,v=this.y,m=this.z,g=this.w,x=f*f+v*v+m*m+g*g;return x>0&&(x=1/Math.sqrt(x),this._x=f*x,this._y=v*x,this._z=m*x,this._w=g*x),this.onChangeCallback(this),this},dot:function(f){return this.x*f.x+this.y*f.y+this.z*f.z+this.w*f.w},lerp:function(f,v){v===void 0&&(v=0);var m=this.x,g=this.y,x=this.z,y=this.w;return this.set(m+v*(f.x-m),g+v*(f.y-g),x+v*(f.z-x),y+v*(f.w-y))},rotationTo:function(f,v){var m=f.x*v.x+f.y*v.y+f.z*v.z;return m<-.999999?(a.copy(o).cross(f).length().999999?this.set(0,0,0,1):(a.copy(f).cross(v),this._x=a.x,this._y=a.y,this._z=a.z,this._w=1+m,this.normalize())},setAxes:function(f,v,m){var g=u.val;return g[0]=v.x,g[3]=v.y,g[6]=v.z,g[1]=m.x,g[4]=m.y,g[7]=m.z,g[2]=-f.x,g[5]=-f.y,g[8]=-f.z,this.fromMat3(u).normalize()},identity:function(){return this.set(0,0,0,1)},setAxisAngle:function(f,v){v=v*.5;var m=Math.sin(v);return this.set(m*f.x,m*f.y,m*f.z,Math.cos(v))},multiply:function(f){var v=this.x,m=this.y,g=this.z,x=this.w,y=f.x,S=f.y,C=f.z,E=f.w;return this.set(v*E+x*y+m*C-g*S,m*E+x*S+g*y-v*C,g*E+x*C+v*S-m*y,x*E-v*y-m*S-g*C)},slerp:function(f,v){var m=this.x,g=this.y,x=this.z,y=this.w,S=f.x,C=f.y,E=f.z,M=f.w,P=m*S+g*C+x*E+y*M;P<0&&(P=-P,S=-S,C=-C,E=-E,M=-M);var A=1-v,R=v;if(1-P>n){var F=Math.acos(P),D=Math.sin(F);A=Math.sin((1-v)*F)/D,R=Math.sin(v*F)/D}return this.set(A*m+R*S,A*g+R*C,A*x+R*E,A*y+R*M)},invert:function(){var f=this.x,v=this.y,m=this.z,g=this.w,x=f*f+v*v+m*m+g*g,y=x?1/x:0;return this.set(-f*y,-v*y,-m*y,g*y)},conjugate:function(){return this._x=-this.x,this._y=-this.y,this._z=-this.z,this.onChangeCallback(this),this},rotateX:function(f){f*=.5;var v=this.x,m=this.y,g=this.z,x=this.w,y=Math.sin(f),S=Math.cos(f);return this.set(v*S+x*y,m*S+g*y,g*S-m*y,x*S-v*y)},rotateY:function(f){f*=.5;var v=this.x,m=this.y,g=this.z,x=this.w,y=Math.sin(f),S=Math.cos(f);return this.set(v*S-g*y,m*S+x*y,g*S+v*y,x*S-m*y)},rotateZ:function(f){f*=.5;var v=this.x,m=this.y,g=this.z,x=this.w,y=Math.sin(f),S=Math.cos(f);return this.set(v*S+m*y,m*S-v*y,g*S+x*y,x*S-g*y)},calculateW:function(){var f=this.x,v=this.y,m=this.z;return this.w=-Math.sqrt(1-f*f-v*v-m*m),this},setFromEuler:function(f,v){var m=f.x/2,g=f.y/2,x=f.z/2,y=Math.cos(m),S=Math.cos(g),C=Math.cos(x),E=Math.sin(m),M=Math.sin(g),P=Math.sin(x);switch(f.order){case"XYZ":{this.set(E*S*C+y*M*P,y*M*C-E*S*P,y*S*P+E*M*C,y*S*C-E*M*P,v);break}case"YXZ":{this.set(E*S*C+y*M*P,y*M*C-E*S*P,y*S*P-E*M*C,y*S*C+E*M*P,v);break}case"ZXY":{this.set(E*S*C-y*M*P,y*M*C+E*S*P,y*S*P+E*M*C,y*S*C-E*M*P,v);break}case"ZYX":{this.set(E*S*C-y*M*P,y*M*C+E*S*P,y*S*P-E*M*C,y*S*C+E*M*P,v);break}case"YZX":{this.set(E*S*C+y*M*P,y*M*C+E*S*P,y*S*P-E*M*C,y*S*C-E*M*P,v);break}case"XZY":{this.set(E*S*C-y*M*P,y*M*C-E*S*P,y*S*P+E*M*C,y*S*C+E*M*P,v);break}}return this},setFromRotationMatrix:function(f){var v=f.val,m=v[0],g=v[4],x=v[8],y=v[1],S=v[5],C=v[9],E=v[2],M=v[6],P=v[10],A=m+S+P,R;return A>0?(R=.5/Math.sqrt(A+1),this.set((M-C)*R,(x-E)*R,(y-g)*R,.25/R)):m>S&&m>P?(R=2*Math.sqrt(1+m-S-P),this.set(.25*R,(g+y)/R,(x+E)/R,(M-C)/R)):S>P?(R=2*Math.sqrt(1+S-m-P),this.set((g+y)/R,.25*R,(C+M)/R,(x-E)/R)):(R=2*Math.sqrt(1+P-m-S),this.set((x+E)/R,(C+M)/R,.25*R,(y-g)/R)),this},fromMat3:function(f){var v=f.val,m=v[0]+v[4]+v[8],g;if(m>0)g=Math.sqrt(m+1),this.w=.5*g,g=.5/g,this._x=(v[7]-v[5])*g,this._y=(v[2]-v[6])*g,this._z=(v[3]-v[1])*g;else{var x=0;v[4]>v[0]&&(x=1),v[8]>v[x*3+x]&&(x=2);var y=e[x],S=e[y];g=Math.sqrt(v[x*3+x]-v[y*3+y]-v[S*3+S]+1),s[x]=.5*g,g=.5/g,s[y]=(v[y*3+x]+v[x*3+y])*g,s[S]=(v[S*3+x]+v[x*3+S])*g,this._x=s[0],this._y=s[1],this._z=s[2],this._w=(v[S*3+y]-v[y*3+S])*g}return this.onChangeCallback(this),this}});c.exports=h},43396:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(36383),p=function(a){return a*d.RAD_TO_DEG};c.exports=p},74362:c=>{/** + */var d=t(36383),p=function(l){return l*d.RAD_TO_DEG};c.exports=p},74362:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3737,7 +3741,7 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d){d===void 0&&(d=1);var p=Math.random()*2*Math.PI,a=Math.random()*2-1,r=Math.sqrt(1-a*a)*d;return t.x=Math.cos(p)*r,t.y=Math.sin(p)*r,t.z=a*d,t};c.exports=T},67421:c=>{/** + */var T=function(t,d){d===void 0&&(d=1);var p=Math.random()*2*Math.PI,l=Math.random()*2-1,r=Math.sqrt(1-l*l)*d;return t.x=Math.cos(p)*r,t.y=Math.sin(p)*r,t.z=l*d,t};c.exports=T},67421:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3745,23 +3749,23 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d){var p=t.x,a=t.y;return t.x=p*Math.cos(d)-a*Math.sin(d),t.y=p*Math.sin(d)+a*Math.cos(d),t};c.exports=T},11520:c=>{/** + */var T=function(t,d){var p=t.x,l=t.y;return t.x=p*Math.cos(d)-l*Math.sin(d),t.y=p*Math.sin(d)+l*Math.cos(d),t};c.exports=T},11520:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){var r=Math.cos(a),n=Math.sin(a),e=t.x-d,s=t.y-p;return t.x=e*r-s*n+d,t.y=e*n+s*r+p,t};c.exports=T},1163:c=>{/** + */var T=function(t,d,p,l){var r=Math.cos(l),n=Math.sin(l),e=t.x-d,s=t.y-p;return t.x=e*r-s*n+d,t.y=e*n+s*r+p,t};c.exports=T},1163:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a,r){var n=a+Math.atan2(t.y-p,t.x-d);return t.x=d+r*Math.cos(n),t.y=p+r*Math.sin(n),t};c.exports=T},70336:c=>{/** + */var T=function(t,d,p,l,r){var n=l+Math.atan2(t.y-p,t.x-d);return t.x=d+r*Math.cos(n),t.y=p+r*Math.sin(n),t};c.exports=T},70336:c=>{/** * @author samme * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a,r){return t.x=d+r*Math.cos(a),t.y=p+r*Math.sin(a),t};c.exports=T},72678:(c,T,t)=>{/** + */var T=function(t,d,p,l,r){return t.x=d+r*Math.cos(l),t.y=p+r*Math.sin(l),t};c.exports=T},72678:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(25836),p=t(37867),a=t(15746),r=new p,n=new a,e=new d,s=function(l,i,o){return n.setAxisAngle(i,o),r.fromRotationTranslation(n,e.set(0,0,0)),l.transformMat4(r)};c.exports=s},2284:c=>{/** + */var d=t(25836),p=t(37867),l=t(15746),r=new p,n=new l,e=new d,s=function(o,i,a){return n.setAxisAngle(i,a),r.fromRotationTranslation(n,e.set(0,0,0)),o.transformMat4(r)};c.exports=s},2284:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3769,11 +3773,11 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){d===void 0&&(d=0),p===void 0&&(p=10);var a=Math.pow(p,-d);return Math.round(t*a)/a};c.exports=T},16922:c=>{/** + */var T=function(t,d,p){d===void 0&&(d=0),p===void 0&&(p=10);var l=Math.pow(p,-d);return Math.round(t*l)/l};c.exports=T},16922:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){d===void 0&&(d=1),p===void 0&&(p=1),a===void 0&&(a=1),a*=Math.PI/t;for(var r=[],n=[],e=0;e{/** + */var T=function(t,d,p,l){d===void 0&&(d=1),p===void 0&&(p=1),l===void 0&&(l=1),l*=Math.PI/t;for(var r=[],n=[],e=0;e{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3785,23 +3789,23 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(26099),p=function(a,r,n,e){e===void 0&&(e=new d);var s=0,l=0,i=r*n;return a>0&&a<=i&&(a>r-1?(l=Math.floor(a/r),s=a-l*r):s=a),e.set(s,l)};c.exports=p},85955:(c,T,t)=>{/** + */var d=t(26099),p=function(l,r,n,e){e===void 0&&(e=new d);var s=0,o=0,i=r*n;return l>0&&l<=i&&(l>r-1?(o=Math.floor(l/r),s=l-o*r):s=l),e.set(s,o)};c.exports=p},85955:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(26099),p=function(a,r,n,e,s,l,i,o){o===void 0&&(o=new d);var u=Math.sin(s),h=Math.cos(s),f=h*l,v=u*l,m=-u*i,x=h*i,g=1/(f*x+m*-v);return o.x=x*g*a+-m*g*r+(e*m-n*x)*g,o.y=f*g*r+-v*g*a+(-e*f+n*v)*g,o};c.exports=p},26099:(c,T,t)=>{/** + */var d=t(26099),p=function(l,r,n,e,s,o,i,a){a===void 0&&(a=new d);var u=Math.sin(s),h=Math.cos(s),f=h*o,v=u*o,m=-u*i,g=h*i,x=1/(f*g+m*-v);return a.x=g*x*l+-m*x*r+(e*m-n*g)*x,a.y=f*x*r+-v*x*l+(-e*f+n*v)*x,a};c.exports=p},26099:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(43855),a=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 a(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 p(this.x,r.x,n)&&p(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)}});a.ZERO=new a,a.RIGHT=new a(1,0),a.LEFT=new a(-1,0),a.UP=new a(0,-1),a.DOWN=new a(0,1),a.ONE=new a(1,1),c.exports=a},25836:(c,T,t)=>{/** + */var d=t(83419),p=t(43855),l=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 l(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 p(this.x,r.x,n)&&p(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)}});l.ZERO=new l,l.RIGHT=new l(1,0),l.LEFT=new l(-1,0),l.UP=new l(0,-1),l.DOWN=new l(0,1),l.ONE=new l(1,1),c.exports=l},25836:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=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(a){return this.x=Math.min(this.x,a.x),this.y=Math.min(this.y,a.y),this.z=Math.min(this.z,a.z),this},max:function(a){return this.x=Math.max(this.x,a.x),this.y=Math.max(this.y,a.y),this.z=Math.max(this.z,a.z),this},clone:function(){return new p(this.x,this.y,this.z)},addVectors:function(a,r){return this.x=a.x+r.x,this.y=a.y+r.y,this.z=a.z+r.z,this},crossVectors:function(a,r){var n=a.x,e=a.y,s=a.z,l=r.x,i=r.y,o=r.z;return this.x=e*o-s*i,this.y=s*l-n*o,this.z=n*i-e*l,this},equals:function(a){return this.x===a.x&&this.y===a.y&&this.z===a.z},copy:function(a){return this.x=a.x,this.y=a.y,this.z=a.z||0,this},set:function(a,r,n){return typeof a=="object"?(this.x=a.x||0,this.y=a.y||0,this.z=a.z||0):(this.x=a||0,this.y=r||0,this.z=n||0),this},setFromMatrixPosition:function(a){return this.fromArray(a.val,12)},setFromMatrixColumn:function(a,r){return this.fromArray(a.val,r*4)},fromArray:function(a,r){return r===void 0&&(r=0),this.x=a[r],this.y=a[r+1],this.z=a[r+2],this},add:function(a){return this.x+=a.x,this.y+=a.y,this.z+=a.z||0,this},addScalar:function(a){return this.x+=a,this.y+=a,this.z+=a,this},addScale:function(a,r){return this.x+=a.x*r,this.y+=a.y*r,this.z+=a.z*r||0,this},subtract:function(a){return this.x-=a.x,this.y-=a.y,this.z-=a.z||0,this},multiply:function(a){return this.x*=a.x,this.y*=a.y,this.z*=a.z||1,this},scale:function(a){return isFinite(a)?(this.x*=a,this.y*=a,this.z*=a):(this.x=0,this.y=0,this.z=0),this},divide:function(a){return this.x/=a.x,this.y/=a.y,this.z/=a.z||1,this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},distance:function(a){var r=a.x-this.x,n=a.y-this.y,e=a.z-this.z||0;return Math.sqrt(r*r+n*n+e*e)},distanceSq:function(a){var r=a.x-this.x,n=a.y-this.y,e=a.z-this.z||0;return r*r+n*n+e*e},length:function(){var a=this.x,r=this.y,n=this.z;return Math.sqrt(a*a+r*r+n*n)},lengthSq:function(){var a=this.x,r=this.y,n=this.z;return a*a+r*r+n*n},normalize:function(){var a=this.x,r=this.y,n=this.z,e=a*a+r*r+n*n;return e>0&&(e=1/Math.sqrt(e),this.x=a*e,this.y=r*e,this.z=n*e),this},dot:function(a){return this.x*a.x+this.y*a.y+this.z*a.z},cross:function(a){var r=this.x,n=this.y,e=this.z,s=a.x,l=a.y,i=a.z;return this.x=n*i-e*l,this.y=e*s-r*i,this.z=r*l-n*s,this},lerp:function(a,r){r===void 0&&(r=0);var n=this.x,e=this.y,s=this.z;return this.x=n+r*(a.x-n),this.y=e+r*(a.y-e),this.z=s+r*(a.z-s),this},applyMatrix3:function(a){var r=this.x,n=this.y,e=this.z,s=a.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(a){var r=this.x,n=this.y,e=this.z,s=a.val,l=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])*l,this.y=(s[1]*r+s[5]*n+s[9]*e+s[13])*l,this.z=(s[2]*r+s[6]*n+s[10]*e+s[14])*l,this},transformMat3:function(a){var r=this.x,n=this.y,e=this.z,s=a.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(a){var r=this.x,n=this.y,e=this.z,s=a.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(a){var r=this.x,n=this.y,e=this.z,s=a.val,l=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],u=r*s[3]+n*s[7]+e*s[11]+s[15];return this.x=l/u,this.y=i/u,this.z=o/u,this},transformQuat:function(a){var r=this.x,n=this.y,e=this.z,s=a.x,l=a.y,i=a.z,o=a.w,u=o*r+l*e-i*n,h=o*n+i*r-s*e,f=o*e+s*n-l*r,v=-s*r-l*n-i*e;return this.x=u*o+v*-s+h*-i-f*-l,this.y=h*o+v*-l+f*-s-u*-i,this.z=f*o+v*-i+u*-l-h*-s,this},project:function(a){var r=this.x,n=this.y,e=this.z,s=a.val,l=s[0],i=s[1],o=s[2],u=s[3],h=s[4],f=s[5],v=s[6],m=s[7],x=s[8],g=s[9],y=s[10],S=s[11],C=s[12],E=s[13],A=s[14],P=s[15],M=1/(r*u+n*m+e*S+P);return this.x=(r*l+n*h+e*x+C)*M,this.y=(r*i+n*f+e*g+E)*M,this.z=(r*o+n*v+e*y+A)*M,this},projectViewMatrix:function(a,r){return this.applyMatrix4(a).applyMatrix4(r)},unprojectViewMatrix:function(a,r){return this.applyMatrix4(a).applyMatrix4(r)},unproject:function(a,r){var n=a.x,e=a.y,s=a.z,l=a.w,i=this.x-n,o=l-this.y-1-e,u=this.z;return this.x=2*i/s-1,this.y=2*o/l-1,this.z=2*u-1,this.project(r)},reset:function(){return this.x=0,this.y=0,this.z=0,this}});p.ZERO=new p,p.RIGHT=new p(1,0,0),p.LEFT=new p(-1,0,0),p.UP=new p(0,-1,0),p.DOWN=new p(0,1,0),p.FORWARD=new p(0,0,1),p.BACK=new p(0,0,-1),p.ONE=new p(1,1,1),c.exports=p},61369:(c,T,t)=>{/** + */var d=t(83419),p=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(l){return this.x=Math.min(this.x,l.x),this.y=Math.min(this.y,l.y),this.z=Math.min(this.z,l.z),this},max:function(l){return this.x=Math.max(this.x,l.x),this.y=Math.max(this.y,l.y),this.z=Math.max(this.z,l.z),this},clone:function(){return new p(this.x,this.y,this.z)},addVectors:function(l,r){return this.x=l.x+r.x,this.y=l.y+r.y,this.z=l.z+r.z,this},subVectors:function(l,r){return this.x=l.x-r.x,this.y=l.y-r.y,this.z=l.z-r.z,this},crossVectors:function(l,r){var n=l.x,e=l.y,s=l.z,o=r.x,i=r.y,a=r.z;return this.x=e*a-s*i,this.y=s*o-n*a,this.z=n*i-e*o,this},equals:function(l){return this.x===l.x&&this.y===l.y&&this.z===l.z},copy:function(l){return this.x=l.x,this.y=l.y,this.z=l.z||0,this},set:function(l,r,n){return typeof l=="object"?(this.x=l.x||0,this.y=l.y||0,this.z=l.z||0):(this.x=l||0,this.y=r||0,this.z=n||0),this},setFromMatrixPosition:function(l){return this.fromArray(l.val,12)},setFromMatrixColumn:function(l,r){return this.fromArray(l.val,r*4)},fromArray:function(l,r){return r===void 0&&(r=0),this.x=l[r],this.y=l[r+1],this.z=l[r+2],this},add:function(l){return this.x+=l.x,this.y+=l.y,this.z+=l.z||0,this},addScalar:function(l){return this.x+=l,this.y+=l,this.z+=l,this},addScale:function(l,r){return this.x+=l.x*r,this.y+=l.y*r,this.z+=l.z*r||0,this},subtract:function(l){return this.x-=l.x,this.y-=l.y,this.z-=l.z||0,this},multiply:function(l){return this.x*=l.x,this.y*=l.y,this.z*=l.z||1,this},scale:function(l){return isFinite(l)?(this.x*=l,this.y*=l,this.z*=l):(this.x=0,this.y=0,this.z=0),this},divide:function(l){return this.x/=l.x,this.y/=l.y,this.z/=l.z||1,this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},distance:function(l){var r=l.x-this.x,n=l.y-this.y,e=l.z-this.z||0;return Math.sqrt(r*r+n*n+e*e)},distanceSq:function(l){var r=l.x-this.x,n=l.y-this.y,e=l.z-this.z||0;return r*r+n*n+e*e},length:function(){var l=this.x,r=this.y,n=this.z;return Math.sqrt(l*l+r*r+n*n)},lengthSq:function(){var l=this.x,r=this.y,n=this.z;return l*l+r*r+n*n},normalize:function(){var l=this.x,r=this.y,n=this.z,e=l*l+r*r+n*n;return e>0&&(e=1/Math.sqrt(e),this.x=l*e,this.y=r*e,this.z=n*e),this},dot:function(l){return this.x*l.x+this.y*l.y+this.z*l.z},cross:function(l){var r=this.x,n=this.y,e=this.z,s=l.x,o=l.y,i=l.z;return this.x=n*i-e*o,this.y=e*s-r*i,this.z=r*o-n*s,this},lerp:function(l,r){r===void 0&&(r=0);var n=this.x,e=this.y,s=this.z;return this.x=n+r*(l.x-n),this.y=e+r*(l.y-e),this.z=s+r*(l.z-s),this},applyMatrix3:function(l){var r=this.x,n=this.y,e=this.z,s=l.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(l){var r=this.x,n=this.y,e=this.z,s=l.val,o=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])*o,this.y=(s[1]*r+s[5]*n+s[9]*e+s[13])*o,this.z=(s[2]*r+s[6]*n+s[10]*e+s[14])*o,this},transformMat3:function(l){var r=this.x,n=this.y,e=this.z,s=l.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(l){var r=this.x,n=this.y,e=this.z,s=l.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(l){var r=this.x,n=this.y,e=this.z,s=l.val,o=r*s[0]+n*s[4]+e*s[8]+s[12],i=r*s[1]+n*s[5]+e*s[9]+s[13],a=r*s[2]+n*s[6]+e*s[10]+s[14],u=r*s[3]+n*s[7]+e*s[11]+s[15];return this.x=o/u,this.y=i/u,this.z=a/u,this},transformQuat:function(l){var r=this.x,n=this.y,e=this.z,s=l.x,o=l.y,i=l.z,a=l.w,u=a*r+o*e-i*n,h=a*n+i*r-s*e,f=a*e+s*n-o*r,v=-s*r-o*n-i*e;return this.x=u*a+v*-s+h*-i-f*-o,this.y=h*a+v*-o+f*-s-u*-i,this.z=f*a+v*-i+u*-o-h*-s,this},project:function(l){var r=this.x,n=this.y,e=this.z,s=l.val,o=s[0],i=s[1],a=s[2],u=s[3],h=s[4],f=s[5],v=s[6],m=s[7],g=s[8],x=s[9],y=s[10],S=s[11],C=s[12],E=s[13],M=s[14],P=s[15],A=1/(r*u+n*m+e*S+P);return this.x=(r*o+n*h+e*g+C)*A,this.y=(r*i+n*f+e*x+E)*A,this.z=(r*a+n*v+e*y+M)*A,this},projectViewMatrix:function(l,r){return this.applyMatrix4(l).applyMatrix4(r)},unprojectViewMatrix:function(l,r){return this.applyMatrix4(l).applyMatrix4(r)},unproject:function(l,r){var n=l.x,e=l.y,s=l.z,o=l.w,i=this.x-n,a=o-this.y-1-e,u=this.z;return this.x=2*i/s-1,this.y=2*a/o-1,this.z=2*u-1,this.project(r)},reset:function(){return this.x=0,this.y=0,this.z=0,this}});p.ZERO=new p,p.RIGHT=new p(1,0,0),p.LEFT=new p(-1,0,0),p.UP=new p(0,-1,0),p.DOWN=new p(0,1,0),p.FORWARD=new p(0,0,1),p.BACK=new p(0,0,-1),p.ONE=new p(1,1,1),c.exports=p},61369:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=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 p(this.x,this.y,this.z,this.w)},copy:function(a){return this.x=a.x,this.y=a.y,this.z=a.z||0,this.w=a.w||0,this},equals:function(a){return this.x===a.x&&this.y===a.y&&this.z===a.z&&this.w===a.w},set:function(a,r,n,e){return typeof a=="object"?(this.x=a.x||0,this.y=a.y||0,this.z=a.z||0,this.w=a.w||0):(this.x=a||0,this.y=r||0,this.z=n||0,this.w=e||0),this},add:function(a){return this.x+=a.x,this.y+=a.y,this.z+=a.z||0,this.w+=a.w||0,this},subtract:function(a){return this.x-=a.x,this.y-=a.y,this.z-=a.z||0,this.w-=a.w||0,this},scale:function(a){return this.x*=a,this.y*=a,this.z*=a,this.w*=a,this},length:function(){var a=this.x,r=this.y,n=this.z,e=this.w;return Math.sqrt(a*a+r*r+n*n+e*e)},lengthSq:function(){var a=this.x,r=this.y,n=this.z,e=this.w;return a*a+r*r+n*n+e*e},normalize:function(){var a=this.x,r=this.y,n=this.z,e=this.w,s=a*a+r*r+n*n+e*e;return s>0&&(s=1/Math.sqrt(s),this.x=a*s,this.y=r*s,this.z=n*s,this.w=e*s),this},dot:function(a){return this.x*a.x+this.y*a.y+this.z*a.z+this.w*a.w},lerp:function(a,r){r===void 0&&(r=0);var n=this.x,e=this.y,s=this.z,l=this.w;return this.x=n+r*(a.x-n),this.y=e+r*(a.y-e),this.z=s+r*(a.z-s),this.w=l+r*(a.w-l),this},multiply:function(a){return this.x*=a.x,this.y*=a.y,this.z*=a.z||1,this.w*=a.w||1,this},divide:function(a){return this.x/=a.x,this.y/=a.y,this.z/=a.z||1,this.w/=a.w||1,this},distance:function(a){var r=a.x-this.x,n=a.y-this.y,e=a.z-this.z||0,s=a.w-this.w||0;return Math.sqrt(r*r+n*n+e*e+s*s)},distanceSq:function(a){var r=a.x-this.x,n=a.y-this.y,e=a.z-this.z||0,s=a.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(a){var r=this.x,n=this.y,e=this.z,s=this.w,l=a.val;return this.x=l[0]*r+l[4]*n+l[8]*e+l[12]*s,this.y=l[1]*r+l[5]*n+l[9]*e+l[13]*s,this.z=l[2]*r+l[6]*n+l[10]*e+l[14]*s,this.w=l[3]*r+l[7]*n+l[11]*e+l[15]*s,this},transformQuat:function(a){var r=this.x,n=this.y,e=this.z,s=a.x,l=a.y,i=a.z,o=a.w,u=o*r+l*e-i*n,h=o*n+i*r-s*e,f=o*e+s*n-l*r,v=-s*r-l*n-i*e;return this.x=u*o+v*-s+h*-i-f*-l,this.y=h*o+v*-l+f*-s-u*-i,this.z=f*o+v*-i+u*-l-h*-s,this},reset:function(){return this.x=0,this.y=0,this.z=0,this.w=0,this}});p.prototype.sub=p.prototype.subtract,p.prototype.mul=p.prototype.multiply,p.prototype.div=p.prototype.divide,p.prototype.dist=p.prototype.distance,p.prototype.distSq=p.prototype.distanceSq,p.prototype.len=p.prototype.length,p.prototype.lenSq=p.prototype.lengthSq,c.exports=p},60417:c=>{/** + */var d=t(83419),p=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 p(this.x,this.y,this.z,this.w)},copy:function(l){return this.x=l.x,this.y=l.y,this.z=l.z||0,this.w=l.w||0,this},equals:function(l){return this.x===l.x&&this.y===l.y&&this.z===l.z&&this.w===l.w},set:function(l,r,n,e){return typeof l=="object"?(this.x=l.x||0,this.y=l.y||0,this.z=l.z||0,this.w=l.w||0):(this.x=l||0,this.y=r||0,this.z=n||0,this.w=e||0),this},add:function(l){return this.x+=l.x,this.y+=l.y,this.z+=l.z||0,this.w+=l.w||0,this},subtract:function(l){return this.x-=l.x,this.y-=l.y,this.z-=l.z||0,this.w-=l.w||0,this},scale:function(l){return this.x*=l,this.y*=l,this.z*=l,this.w*=l,this},length:function(){var l=this.x,r=this.y,n=this.z,e=this.w;return Math.sqrt(l*l+r*r+n*n+e*e)},lengthSq:function(){var l=this.x,r=this.y,n=this.z,e=this.w;return l*l+r*r+n*n+e*e},normalize:function(){var l=this.x,r=this.y,n=this.z,e=this.w,s=l*l+r*r+n*n+e*e;return s>0&&(s=1/Math.sqrt(s),this.x=l*s,this.y=r*s,this.z=n*s,this.w=e*s),this},dot:function(l){return this.x*l.x+this.y*l.y+this.z*l.z+this.w*l.w},lerp:function(l,r){r===void 0&&(r=0);var n=this.x,e=this.y,s=this.z,o=this.w;return this.x=n+r*(l.x-n),this.y=e+r*(l.y-e),this.z=s+r*(l.z-s),this.w=o+r*(l.w-o),this},multiply:function(l){return this.x*=l.x,this.y*=l.y,this.z*=l.z||1,this.w*=l.w||1,this},divide:function(l){return this.x/=l.x,this.y/=l.y,this.z/=l.z||1,this.w/=l.w||1,this},distance:function(l){var r=l.x-this.x,n=l.y-this.y,e=l.z-this.z||0,s=l.w-this.w||0;return Math.sqrt(r*r+n*n+e*e+s*s)},distanceSq:function(l){var r=l.x-this.x,n=l.y-this.y,e=l.z-this.z||0,s=l.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(l){var r=this.x,n=this.y,e=this.z,s=this.w,o=l.val;return this.x=o[0]*r+o[4]*n+o[8]*e+o[12]*s,this.y=o[1]*r+o[5]*n+o[9]*e+o[13]*s,this.z=o[2]*r+o[6]*n+o[10]*e+o[14]*s,this.w=o[3]*r+o[7]*n+o[11]*e+o[15]*s,this},transformQuat:function(l){var r=this.x,n=this.y,e=this.z,s=l.x,o=l.y,i=l.z,a=l.w,u=a*r+o*e-i*n,h=a*n+i*r-s*e,f=a*e+s*n-o*r,v=-s*r-o*n-i*e;return this.x=u*a+v*-s+h*-i-f*-o,this.y=h*a+v*-o+f*-s-u*-i,this.z=f*a+v*-i+u*-o-h*-s,this},reset:function(){return this.x=0,this.y=0,this.z=0,this.w=0,this}});p.prototype.sub=p.prototype.subtract,p.prototype.mul=p.prototype.multiply,p.prototype.div=p.prototype.divide,p.prototype.dist=p.prototype.distance,p.prototype.distSq=p.prototype.distanceSq,p.prototype.len=p.prototype.length,p.prototype.lenSq=p.prototype.lengthSq,c.exports=p},60417:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3809,11 +3813,11 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){var a=p-d;return d+((t-d)%a+a)%a};c.exports=T},31040:c=>{/** + */var T=function(t,d,p){var l=p-d;return d+((t-d)%l+l)%l};c.exports=T},31040:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){return Math.atan2(a-d,p-t)};c.exports=T},55495:c=>{/** + */var T=function(t,d,p,l){return Math.atan2(l-d,p-t)};c.exports=T},55495:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3825,11 +3829,11 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){return Math.atan2(p-t,a-d)};c.exports=T},1432:(c,T,t)=>{/** + */var T=function(t,d,p,l){return Math.atan2(p-t,l-d)};c.exports=T},1432:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(36383),p=function(a){return a>Math.PI&&(a-=d.PI2),Math.abs(((a+d.TAU)%d.PI2-d.PI2)%d.PI2)};c.exports=p},12407:c=>{/** + */var d=t(36383),p=function(l){return l>Math.PI&&(l-=d.PI2),Math.abs(((l+d.TAU)%d.PI2-d.PI2)%d.PI2)};c.exports=p},12407:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3847,23 +3851,23 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(12407),p=function(a){return d(a+Math.PI)};c.exports=p},48736:(c,T,t)=>{/** + */var d=t(12407),p=function(l){return d(l+Math.PI)};c.exports=p},48736:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(36383),p=function(a,r,n){return n===void 0&&(n=.05),a===r||(Math.abs(r-a)<=n||Math.abs(r-a)>=d.PI2-n?a=r:(Math.abs(r-a)>Math.PI&&(ra?a+=n:r{/** + */var d=t(36383),p=function(l,r,n){return n===void 0&&(n=.05),l===r||(Math.abs(r-l)<=n||Math.abs(r-l)>=d.PI2-n?l=r:(Math.abs(r-l)>Math.PI&&(rl?l+=n:r{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d){var p=d-t;if(p===0)return 0;var a=Math.floor((p- -180)/360);return p-a*360};c.exports=T},86554:(c,T,t)=>{/** + */var T=function(t,d){var p=d-t;if(p===0)return 0;var l=Math.floor((p- -180)/360);return p-l*360};c.exports=T},86554:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(15994),p=function(a){return d(a,-Math.PI,Math.PI)};c.exports=p},30954:(c,T,t)=>{/** + */var d=t(15994),p=function(l){return d(l,-Math.PI,Math.PI)};c.exports=p},30954:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(15994),p=function(a){return d(a,-180,180)};c.exports=p},25588:(c,T,t)=>{/** + */var d=t(15994),p=function(l){return d(l,-180,180)};c.exports=p},25588:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3875,31 +3879,31 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){var r=t-p,n=d-a;return Math.sqrt(r*r+n*n)};c.exports=T},52816:c=>{/** + */var T=function(t,d,p,l){var r=t-p,n=d-l;return Math.sqrt(r*r+n*n)};c.exports=T},52816:c=>{/** * @author samme * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d){var p=t.x-d.x,a=t.y-d.y;return Math.sqrt(p*p+a*a)};c.exports=T},64559:c=>{/** + */var T=function(t,d){var p=t.x-d.x,l=t.y-d.y;return Math.sqrt(p*p+l*l)};c.exports=T},64559:c=>{/** * @author samme * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d){var p=t.x-d.x,a=t.y-d.y;return p*p+a*a};c.exports=T},82340:c=>{/** + */var T=function(t,d){var p=t.x-d.x,l=t.y-d.y;return p*p+l*l};c.exports=T},82340:c=>{/** * @author samme * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){return Math.max(Math.abs(t-p),Math.abs(d-a))};c.exports=T},14390:c=>{/** + */var T=function(t,d,p,l){return Math.max(Math.abs(t-p),Math.abs(d-l))};c.exports=T},14390:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a,r){return r===void 0&&(r=2),Math.sqrt(Math.pow(p-t,r)+Math.pow(a-d,r))};c.exports=T},2243:c=>{/** + */var T=function(t,d,p,l,r){return r===void 0&&(r=2),Math.sqrt(Math.pow(p-t,r)+Math.pow(l-d,r))};c.exports=T},2243:c=>{/** * @author samme * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){return Math.abs(t-p)+Math.abs(d-a)};c.exports=T},89774:c=>{/** + */var T=function(t,d,p,l){return Math.abs(t-p)+Math.abs(d-l)};c.exports=T},89774:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){var r=t-p,n=d-a;return r*r+n*n};c.exports=T},50994:(c,T,t)=>{/** + */var T=function(t,d,p,l){var r=t-p,n=d-l;return r*r+n*n};c.exports=T},50994:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3907,7 +3911,7 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(54178),p=t(41521),a=t(79980),r=t(85433),n=t(99140),e=t(48857),s=t(81596),l=t(59133),i=t(98516),o=t(35248),u=t(82500),h=t(49752);c.exports={Power0:s,Power1:l.Out,Power2:r.Out,Power3:i.Out,Power4:o.Out,Linear:s,Quad:l.Out,Cubic:r.Out,Quart:i.Out,Quint:o.Out,Sine:u.Out,Expo:e.Out,Circ:a.Out,Elastic:n.Out,Back:d.Out,Bounce:p.Out,Stepped:h,"Quad.easeIn":l.In,"Cubic.easeIn":r.In,"Quart.easeIn":i.In,"Quint.easeIn":o.In,"Sine.easeIn":u.In,"Expo.easeIn":e.In,"Circ.easeIn":a.In,"Elastic.easeIn":n.In,"Back.easeIn":d.In,"Bounce.easeIn":p.In,"Quad.easeOut":l.Out,"Cubic.easeOut":r.Out,"Quart.easeOut":i.Out,"Quint.easeOut":o.Out,"Sine.easeOut":u.Out,"Expo.easeOut":e.Out,"Circ.easeOut":a.Out,"Elastic.easeOut":n.Out,"Back.easeOut":d.Out,"Bounce.easeOut":p.Out,"Quad.easeInOut":l.InOut,"Cubic.easeInOut":r.InOut,"Quart.easeInOut":i.InOut,"Quint.easeInOut":o.InOut,"Sine.easeInOut":u.InOut,"Expo.easeInOut":e.InOut,"Circ.easeInOut":a.InOut,"Elastic.easeInOut":n.InOut,"Back.easeInOut":d.InOut,"Bounce.easeInOut":p.InOut}},1639:c=>{/** + */var d=t(54178),p=t(41521),l=t(79980),r=t(85433),n=t(99140),e=t(48857),s=t(81596),o=t(59133),i=t(98516),a=t(35248),u=t(82500),h=t(49752);c.exports={Power0:s,Power1:o.Out,Power2:r.Out,Power3:i.Out,Power4:a.Out,Linear:s,Quad:o.Out,Cubic:r.Out,Quart:i.Out,Quint:a.Out,Sine:u.Out,Expo:e.Out,Circ:l.Out,Elastic:n.Out,Back:d.Out,Bounce:p.Out,Stepped:h,"Quad.easeIn":o.In,"Cubic.easeIn":r.In,"Quart.easeIn":i.In,"Quint.easeIn":a.In,"Sine.easeIn":u.In,"Expo.easeIn":e.In,"Circ.easeIn":l.In,"Elastic.easeIn":n.In,"Back.easeIn":d.In,"Bounce.easeIn":p.In,"Quad.easeOut":o.Out,"Cubic.easeOut":r.Out,"Quart.easeOut":i.Out,"Quint.easeOut":a.Out,"Sine.easeOut":u.Out,"Expo.easeOut":e.Out,"Circ.easeOut":l.Out,"Elastic.easeOut":n.Out,"Back.easeOut":d.Out,"Bounce.easeOut":p.Out,"Quad.easeInOut":o.InOut,"Cubic.easeInOut":r.InOut,"Quart.easeInOut":i.InOut,"Quint.easeInOut":a.InOut,"Sine.easeInOut":u.InOut,"Expo.easeInOut":e.InOut,"Circ.easeInOut":l.InOut,"Elastic.easeInOut":n.InOut,"Back.easeInOut":d.InOut,"Bounce.easeInOut":p.InOut}},1639:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -3975,15 +3979,15 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){if(d===void 0&&(d=.1),p===void 0&&(p=.1),t===0)return 0;if(t===1)return 1;var a=p/4;return d<1?d=1:a=p*Math.asin(1/d)/(2*Math.PI),-(d*Math.pow(2,10*(t-=1))*Math.sin((t-a)*(2*Math.PI)/p))};c.exports=T},50665:c=>{/** + */var T=function(t,d,p){if(d===void 0&&(d=.1),p===void 0&&(p=.1),t===0)return 0;if(t===1)return 1;var l=p/4;return d<1?d=1:l=p*Math.asin(1/d)/(2*Math.PI),-(d*Math.pow(2,10*(t-=1))*Math.sin((t-l)*(2*Math.PI)/p))};c.exports=T},50665:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){if(d===void 0&&(d=.1),p===void 0&&(p=.1),t===0)return 0;if(t===1)return 1;var a=p/4;return d<1?d=1:a=p*Math.asin(1/d)/(2*Math.PI),(t*=2)<1?-.5*(d*Math.pow(2,10*(t-=1))*Math.sin((t-a)*(2*Math.PI)/p)):d*Math.pow(2,-10*(t-=1))*Math.sin((t-a)*(2*Math.PI)/p)*.5+1};c.exports=T},7744:c=>{/** + */var T=function(t,d,p){if(d===void 0&&(d=.1),p===void 0&&(p=.1),t===0)return 0;if(t===1)return 1;var l=p/4;return d<1?d=1:l=p*Math.asin(1/d)/(2*Math.PI),(t*=2)<1?-.5*(d*Math.pow(2,10*(t-=1))*Math.sin((t-l)*(2*Math.PI)/p)):d*Math.pow(2,-10*(t-=1))*Math.sin((t-l)*(2*Math.PI)/p)*.5+1};c.exports=T},7744:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){if(d===void 0&&(d=.1),p===void 0&&(p=.1),t===0)return 0;if(t===1)return 1;var a=p/4;return d<1?d=1:a=p*Math.asin(1/d)/(2*Math.PI),d*Math.pow(2,-10*t)*Math.sin((t-a)*(2*Math.PI)/p)+1};c.exports=T},99140:(c,T,t)=>{/** + */var T=function(t,d,p){if(d===void 0&&(d=.1),p===void 0&&(p=.1),t===0)return 0;if(t===1)return 1;var l=p/4;return d<1?d=1:l=p*Math.asin(1/d)/(2*Math.PI),d*Math.pow(2,-10*t)*Math.sin((t-l)*(2*Math.PI)/p)+1};c.exports=T},99140:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4115,35 +4119,35 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(36383),p=t(79291),a={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)};a=p(!1,a,d),c.exports=a},89318:(c,T,t)=>{/** + */var d=t(36383),p=t(79291),l={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)};l=p(!1,l,d),c.exports=l},89318:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(85710),p=function(a,r){for(var n=0,e=a.length-1,s=0;s<=e;s++)n+=Math.pow(1-r,e-s)*Math.pow(r,s)*a[s]*d(e,s);return n};c.exports=p},77259:(c,T,t)=>{/** + */var d=t(85710),p=function(l,r){for(var n=0,e=l.length-1,s=0;s<=e;s++)n+=Math.pow(1-r,e-s)*Math.pow(r,s)*l[s]*d(e,s);return n};c.exports=p},77259:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(87842),p=function(a,r){var n=a.length-1,e=n*r,s=Math.floor(e);return a[0]===a[n]?(r<0&&(s=Math.floor(e=n*(1+r))),d(e-s,a[(s-1+n)%n],a[s],a[(s+1)%n],a[(s+2)%n])):r<0?a[0]-(d(-e,a[0],a[0],a[1],a[1])-a[0]):r>1?a[n]-(d(e-n,a[n],a[n],a[n-1],a[n-1])-a[n]):d(e-s,a[s?s-1:0],a[s],a[n{/** + */var d=t(87842),p=function(l,r){var n=l.length-1,e=n*r,s=Math.floor(e);return l[0]===l[n]?(r<0&&(s=Math.floor(e=n*(1+r))),d(e-s,l[(s-1+n)%n],l[s],l[(s+1)%n],l[(s+2)%n])):r<0?l[0]-(d(-e,l[0],l[0],l[1],l[1])-l[0]):r>1?l[n]-(d(e-n,l[n],l[n],l[n-1],l[n-1])-l[n]):d(e-s,l[s?s-1:0],l[s],l[n{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */function T(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 p(r,n){return r*r*r*n}var a=function(r,n,e,s,l){return T(r,n)+t(r,e)+d(r,s)+p(r,l)};c.exports=a},28392:(c,T,t)=>{/** + */function T(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 p(r,n){return r*r*r*n}var l=function(r,n,e,s,o){return T(r,n)+t(r,e)+d(r,s)+p(r,o)};c.exports=l},28392:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(28915),p=function(a,r){var n=a.length-1,e=n*r,s=Math.floor(e);return r<0?d(a[0],a[1],e):r>1?d(a[n],a[n-1],n-e):d(a[s],a[s+1>n?n:s+1],e-s)};c.exports=p},32112:c=>{/** + */var d=t(28915),p=function(l,r){var n=l.length-1,e=n*r,s=Math.floor(e);return r<0?d(l[0],l[1],e):r>1?d(l[n],l[n-1],n-e):d(l[s],l[s+1>n?n:s+1],e-s)};c.exports=p},32112:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */function T(a,r){var n=1-a;return n*n*r}function t(a,r){return 2*(1-a)*a*r}function d(a,r){return a*a*r}var p=function(a,r,n,e){return T(a,r)+t(a,n)+d(a,e)};c.exports=p},47235:(c,T,t)=>{/** + */function T(l,r){var n=1-l;return n*n*r}function t(l,r){return 2*(1-l)*l*r}function d(l,r){return l*l*r}var p=function(l,r,n,e){return T(l,r)+t(l,n)+d(l,e)};c.exports=p},47235:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(7602),p=function(a,r,n){return r+(n-r)*d(a,0,1)};c.exports=p},50178:(c,T,t)=>{/** + */var d=t(7602),p=function(l,r,n){return r+(n-r)*d(l,0,1)};c.exports=p},50178:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(54261),p=function(a,r,n){return r+(n-r)*d(a,0,1)};c.exports=p},38289:(c,T,t)=>{/** + */var d=t(54261),p=function(l,r,n){return r+(n-r)*d(l,0,1)};c.exports=p},38289:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4167,19 +4171,19 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=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 a=2091639*this.s0+this.c*23283064365386963e-26;return this.c=a|0,this.s0=this.s1,this.s1=this.s2,this.s2=a-this.c,this.s2},hash:function(a){var r,n=this.n;a=a.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(a){typeof a=="string"?this.state(a):this.sow(a)},sow:function(a){if(this.n=4022871197,this.s0=this.hash(" "),this.s1=this.hash(" "),this.s2=this.hash(" "),this.c=1,!!a)for(var r=0;r0;n--){var e=Math.floor(this.frac()*(n+1)),s=a[e];a[e]=a[n],a[n]=s}return a}});c.exports=p},63448:c=>{/** + */var d=t(83419),p=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 l=2091639*this.s0+this.c*23283064365386963e-26;return this.c=l|0,this.s0=this.s1,this.s1=this.s2,this.s2=l-this.c,this.s2},hash:function(l){var r,n=this.n;l=l.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(l){typeof l=="string"?this.state(l):this.sow(l)},sow:function(l){if(this.n=4022871197,this.s0=this.hash(" "),this.s1=this.hash(" "),this.s2=this.hash(" "),this.c=1,!!l)for(var r=0;r0;n--){var e=Math.floor(this.frac()*(n+1)),s=l[e];l[e]=l[n],l[n]=s}return l}});c.exports=p},63448:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){return p===void 0&&(p=0),d===0?t:(t-=p,t=d*Math.ceil(t/d),a?(p+t)/d:p+t)};c.exports=T},56583:c=>{/** + */var T=function(t,d,p,l){return p===void 0&&(p=0),d===0?t:(t-=p,t=d*Math.ceil(t/d),l?(p+t)/d:p+t)};c.exports=T},56583:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){return p===void 0&&(p=0),d===0?t:(t-=p,t=d*Math.floor(t/d),a?(p+t)/d:p+t)};c.exports=T},77720:c=>{/** + */var T=function(t,d,p,l){return p===void 0&&(p=0),d===0?t:(t-=p,t=d*Math.floor(t/d),l?(p+t)/d:p+t)};c.exports=T},77720:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){return p===void 0&&(p=0),d===0?t:(t-=p,t=d*Math.round(t/d),a?(p+t)/d:p+t)};c.exports=T},73697:(c,T,t)=>{/** + */var T=function(t,d,p,l){return p===void 0&&(p=0),d===0?t:(t-=p,t=d*Math.round(t/d),l?(p+t)/d:p+t)};c.exports=T},73697:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4187,31 +4191,31 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */t(63595);var d=t(8054),p=t(79291),a={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)};a.Sound=t(23717),a=p(!1,a,d),c.exports=a,t.g.Phaser=a},71289:(c,T,t)=>{/** + */t(63595);var d=t(8054),p=t(79291),l={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)};l.Sound=t(23717),l=p(!1,l,d),c.exports=l,t.g.Phaser=l},71289:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(92209),a=t(88571),r=new d({Extends:a,Mixins:[p.Acceleration,p.Angular,p.Bounce,p.Collision,p.Debug,p.Drag,p.Enable,p.Friction,p.Gravity,p.Immovable,p.Mass,p.Pushable,p.Size,p.Velocity],initialize:function(e,s,l,i,o){a.call(this,e,s,l,i,o),this.body=null}});c.exports=r},86689:(c,T,t)=>{/** + */var d=t(83419),p=t(92209),l=t(88571),r=new d({Extends:l,Mixins:[p.Acceleration,p.Angular,p.Bounce,p.Collision,p.Debug,p.Drag,p.Enable,p.Friction,p.Gravity,p.Immovable,p.Mass,p.Pushable,p.Size,p.Velocity],initialize:function(e,s,o,i,a){l.call(this,e,s,o,i,a),this.body=null}});c.exports=r},86689:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(39506),a=t(20339),r=t(89774),n=t(66022),e=t(95540),s=t(46975),l=t(72441),i=t(47956),o=t(37277),u=t(44594),h=t(26099),f=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(u.BOOT,this.boot,this),x.sys.events.on(u.START,this.start,this)},boot:function(){this.world=new f(this.scene,this.config),this.add=new n(this.world),this.systems.events.once(u.DESTROY,this.destroy,this)},start:function(){this.world||(this.world=new f(this.scene,this.config),this.add=new n(this.world));var m=this.systems.events;e(this.config,"customUpdate",!1)||m.on(u.UPDATE,this.world.update,this.world),m.on(u.POST_UPDATE,this.world.postUpdate,this.world),m.once(u.SHUTDOWN,this.shutdown,this)},enableUpdate:function(){this.systems.events.on(u.UPDATE,this.world.update,this.world)},disableUpdate:function(){this.systems.events.off(u.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,S){return g===void 0&&(g=null),y===void 0&&(y=null),S===void 0&&(S=g),this.world.collideObjects(m,x,g,y,S,!0)},collide:function(m,x,g,y,S){return g===void 0&&(g=null),y===void 0&&(y=null),S===void 0&&(S=g),this.world.collideObjects(m,x,g,y,S,!1)},collideTiles:function(m,x,g,y,S){return this.world.collideTiles(m,x,g,y,S)},overlapTiles:function(m,x,g,y,S){return this.world.overlapTiles(m,x,g,y,S)},pause:function(){return this.world.pause()},resume:function(){return this.world.resume()},accelerateTo:function(m,x,g,y,S,C){y===void 0&&(y=60);var E=Math.atan2(g-m.y,x-m.x);return m.body.acceleration.setToPolar(E,y),S!==void 0&&C!==void 0&&m.body.maxVelocity.set(S,C),E},accelerateToObject:function(m,x,g,y,S){return this.accelerateTo(m,x.x,x.y,g,y,S)},closest:function(m,x){x||(x=this.world.bodies.entries);for(var g=Number.MAX_VALUE,y=null,S=m.x,C=m.y,E=x.length,A=0;Ag&&(y=P,g=F)}}return y},moveTo:function(m,x,g,y,S){y===void 0&&(y=60),S===void 0&&(S=0);var C=Math.atan2(g-m.y,x-m.x);return S>0&&(y=a(m.x,m.y,x,g)/(S/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 h),g.setToPolar(p(m),x)},velocityFromRotation:function(m,x,g){return x===void 0&&(x=60),g===void 0&&(g=new h),g.setToPolar(m,x)},overlapRect:function(m,x,g,y,S,C){return i(this.world,m,x,g,y,S,C)},overlapCirc:function(m,x,g,y,S){return l(this.world,m,x,g,y,S)},shutdown:function(){if(this.world){var m=this.systems.events;m.off(u.UPDATE,this.world.update,this.world),m.off(u.POST_UPDATE,this.world.postUpdate,this.world),m.off(u.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(u.START,this.start,this),this.scene=null,this.systems=null}});o.register("ArcadePhysics",v,"arcadePhysics"),c.exports=v},13759:(c,T,t)=>{/** + */var d=t(83419),p=t(39506),l=t(20339),r=t(89774),n=t(66022),e=t(95540),s=t(46975),o=t(72441),i=t(47956),a=t(37277),u=t(44594),h=t(26099),f=t(82248),v=new d({initialize:function(g){this.scene=g,this.systems=g.sys,this.config=this.getConfig(),this.world,this.add,this._category=1,g.sys.events.once(u.BOOT,this.boot,this),g.sys.events.on(u.START,this.start,this)},boot:function(){this.world=new f(this.scene,this.config),this.add=new n(this.world),this.systems.events.once(u.DESTROY,this.destroy,this)},start:function(){this.world||(this.world=new f(this.scene,this.config),this.add=new n(this.world));var m=this.systems.events;e(this.config,"customUpdate",!1)||m.on(u.UPDATE,this.world.update,this.world),m.on(u.POST_UPDATE,this.world.postUpdate,this.world),m.once(u.SHUTDOWN,this.shutdown,this)},enableUpdate:function(){this.systems.events.on(u.UPDATE,this.world.update,this.world)},disableUpdate:function(){this.systems.events.off(u.UPDATE,this.world.update,this.world)},getConfig:function(){var m=this.systems.game.config.physics,g=this.systems.settings.physics,x=s(e(g,"arcade",{}),e(m,"arcade",{}));return x},nextCategory:function(){return this._category=this._category<<1,this._category},overlap:function(m,g,x,y,S){return x===void 0&&(x=null),y===void 0&&(y=null),S===void 0&&(S=x),this.world.collideObjects(m,g,x,y,S,!0)},collide:function(m,g,x,y,S){return x===void 0&&(x=null),y===void 0&&(y=null),S===void 0&&(S=x),this.world.collideObjects(m,g,x,y,S,!1)},collideTiles:function(m,g,x,y,S){return this.world.collideTiles(m,g,x,y,S)},overlapTiles:function(m,g,x,y,S){return this.world.overlapTiles(m,g,x,y,S)},pause:function(){return this.world.pause()},resume:function(){return this.world.resume()},accelerateTo:function(m,g,x,y,S,C){y===void 0&&(y=60);var E=Math.atan2(x-m.y,g-m.x);return m.body.acceleration.setToPolar(E,y),S!==void 0&&C!==void 0&&m.body.maxVelocity.set(S,C),E},accelerateToObject:function(m,g,x,y,S){return this.accelerateTo(m,g.x,g.y,x,y,S)},closest:function(m,g){g||(g=this.world.bodies.entries);for(var x=Number.MAX_VALUE,y=null,S=m.x,C=m.y,E=g.length,M=0;Mx&&(y=P,x=R)}}return y},moveTo:function(m,g,x,y,S){y===void 0&&(y=60),S===void 0&&(S=0);var C=Math.atan2(x-m.y,g-m.x);return S>0&&(y=l(m.x,m.y,g,x)/(S/1e3)),m.body.velocity.setToPolar(C,y),C},moveToObject:function(m,g,x,y){return this.moveTo(m,g.x,g.y,x,y)},velocityFromAngle:function(m,g,x){return g===void 0&&(g=60),x===void 0&&(x=new h),x.setToPolar(p(m),g)},velocityFromRotation:function(m,g,x){return g===void 0&&(g=60),x===void 0&&(x=new h),x.setToPolar(m,g)},overlapRect:function(m,g,x,y,S,C){return i(this.world,m,g,x,y,S,C)},overlapCirc:function(m,g,x,y,S){return o(this.world,m,g,x,y,S)},shutdown:function(){if(this.world){var m=this.systems.events;m.off(u.UPDATE,this.world.update,this.world),m.off(u.POST_UPDATE,this.world.postUpdate,this.world),m.off(u.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(u.START,this.start,this),this.scene=null,this.systems=null}});a.register("ArcadePhysics",v,"arcadePhysics"),c.exports=v},13759:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(92209),a=t(68287),r=new d({Extends:a,Mixins:[p.Acceleration,p.Angular,p.Bounce,p.Collision,p.Debug,p.Drag,p.Enable,p.Friction,p.Gravity,p.Immovable,p.Mass,p.Pushable,p.Size,p.Velocity],initialize:function(e,s,l,i,o){a.call(this,e,s,l,i,o),this.body=null}});c.exports=r},37742:(c,T,t)=>{/** + */var d=t(83419),p=t(92209),l=t(68287),r=new d({Extends:l,Mixins:[p.Acceleration,p.Angular,p.Bounce,p.Collision,p.Debug,p.Drag,p.Enable,p.Friction,p.Gravity,p.Immovable,p.Mass,p.Pushable,p.Size,p.Velocity],initialize:function(e,s,o,i,a){l.call(this,e,s,o,i,a),this.body=null}});c.exports=r},37742:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(78389),a=t(37747),r=t(63012),n=t(43396),e=t(87841),s=t(37303),l=t(95829),i=t(26099),o=new d({Mixins:[p],initialize:function(h,f){var v=64,m=64,x={x:0,y:0,angle:0,rotation:0,scaleX:1,scaleY:1,displayOriginX:0,displayOriginY:0},g=f!==void 0;g&&f.displayWidth&&(v=f.displayWidth,m=f.displayHeight),g||(f=x),this.world=h,this.gameObject=g?f:void 0,this.isBody=!0,this.transform={x:f.x,y:f.y,rotation:f.angle,scaleX:f.scaleX,scaleY:f.scaleY,displayOriginX:f.displayOriginX,displayOriginY:f.displayOriginY},this.debugShowBody=h.defaults.debugShowBody,this.debugShowVelocity=h.defaults.debugShowVelocity,this.debugBodyColor=h.defaults.bodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new i,this.position=new i(f.x-f.scaleX*f.displayOriginX,f.y-f.scaleY*f.displayOriginY),this.prev=this.position.clone(),this.prevFrame=this.position.clone(),this.allowRotation=!0,this.rotation=f.angle,this.preRotation=f.angle,this.width=v,this.height=m,this.sourceWidth=v,this.sourceHeight=m,f.frame&&(this.sourceWidth=f.frame.realWidth,this.sourceHeight=f.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=h.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=a.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=l(!1),this.touching=l(!0),this.wasTouching=l(!0),this.blocked=l(!0),this.syncBounds=!1,this.physicsType=a.DYNAMIC_BODY,this.collisionCategory=1,this.collisionMask=1,this._sx=f.scaleX,this._sy=f.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 u=this.gameObject,h=this.transform;if(u.parentContainer){var f=u.getWorldTransformMatrix(this.world._tempMatrix,this.world._tempMatrix2);h.x=f.tx,h.y=f.ty,h.rotation=n(f.rotation),h.scaleX=f.scaleX,h.scaleY=f.scaleY,h.displayOriginX=u.displayOriginX,h.displayOriginY=u.displayOriginY}else h.x=u.x,h.y=u.y,h.rotation=u.angle,h.scaleX=u.scaleX,h.scaleY=u.scaleY,h.displayOriginX=u.displayOriginX,h.displayOriginY=u.displayOriginY;var v=!1;if(this.syncBounds){var m=u.getBounds(this._bounds);this.width=m.width,this.height=m.height,v=!0}else{var x=Math.abs(h.scaleX),g=Math.abs(h.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 u=this.transform;this.position.x=u.x+u.scaleX*(this.offset.x-u.displayOriginX),this.position.y=u.y+u.scaleY*(this.offset.y-u.displayOriginY),this.updateCenter()},resetFlags:function(u){u===void 0&&(u=!1);var h=this.wasTouching,f=this.touching,v=this.blocked;u?l(!0,h):(h.none=f.none,h.up=f.up,h.down=f.down,h.left=f.left,h.right=f.right),l(!0,f),l(!0,v),this.overlapR=0,this.overlapX=0,this.overlapY=0,this.embedded=!1},preUpdate:function(u,h){if(u&&this.resetFlags(),this.gameObject&&this.updateFromGameObject(),this.rotation=this.transform.rotation,this.preRotation=this.rotation,this.moves){var f=this.position;this.prev.x=f.x,this.prev.y=f.y,this.prevFrame.x=f.x,this.prevFrame.y=f.y}u&&this.update(h)},update:function(u){var h=this.prev,f=this.position,v=this.velocity;if(h.set(f.x,f.y),!this.moves){this._dx=f.x-h.x,this._dy=f.y-h.y;return}if(this.directControl){var m=this.autoFrame;v.set((f.x-m.x)/u,(f.y-m.y)/u),this.world.updateMotion(this,u),this._dx=f.x-m.x,this._dy=f.y-m.y}else this.world.updateMotion(this,u),this.newVelocity.set(v.x*u,v.y*u),f.add(this.newVelocity),this._dx=f.x-h.x,this._dy=f.y-h.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 u=this.position,h=u.x-this.prevFrame.x,f=u.y-this.prevFrame.y,v=this.gameObject;if(this.moves){var m=this.deltaMax.x,x=this.deltaMax.y;m!==0&&h!==0&&(h<0&&h<-m?h=-m:h>0&&h>m&&(h=m)),x!==0&&f!==0&&(f<0&&f<-x?f=-x:f>0&&f>x&&(f=x)),v&&(v.x+=h,v.y+=f)}h<0?this.facing=a.FACING_LEFT:h>0&&(this.facing=a.FACING_RIGHT),f<0?this.facing=a.FACING_UP:f>0&&(this.facing=a.FACING_DOWN),this.allowRotation&&v&&(v.angle+=this.deltaZ()),this._tx=h,this._ty=f,this.autoFrame.set(u.x,u.y)},setBoundsRectangle:function(u){return this.customBoundsRectangle=u||this.world.bounds,this},checkWorldBounds:function(){var u=this.position,h=this.velocity,f=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 u.xv.right&&m.right&&(u.x=v.right-this.width,h.x*=x,f.right=!0,y=!0),u.yv.bottom&&m.down&&(u.y=v.bottom-this.height,h.y*=g,f.down=!0,y=!0),y&&(this.blocked.none=!1,this.updateCenter()),y},setOffset:function(u,h){return h===void 0&&(h=u),this.offset.set(u,h),this},setGameObject:function(u,h){return h===void 0&&(h=!0),this.world.remove(this),this.gameObject&&this.gameObject.body&&(this.gameObject.body=null),this.gameObject=u,u.body&&(u.body=this),this.setSize(),this.world.add(this),this.enable=h,this},setSize:function(u,h,f){f===void 0&&(f=!0);var v=this.gameObject;if(v&&(!u&&v.frame&&(u=v.frame.realWidth),!h&&v.frame&&(h=v.frame.realHeight)),this.sourceWidth=u,this.sourceHeight=h,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.updateCenter(),f&&v&&v.getCenter){var m=(v.width-u)/2,x=(v.height-h)/2;this.offset.set(m,x)}return this.isCircle=!1,this.radius=0,this},setCircle:function(u,h,f){return h===void 0&&(h=this.offset.x),f===void 0&&(f=this.offset.y),u>0?(this.isCircle=!0,this.radius=u,this.sourceWidth=u*2,this.sourceHeight=u*2,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(h,f),this.updateCenter()):this.isCircle=!1,this},reset:function(u,h){this.stop();var f=this.gameObject;f&&(f.setPosition(u,h),this.rotation=f.angle,this.preRotation=f.angle);var v=this.position;f&&f.getTopLeft?f.getTopLeft(v):v.set(u,h),this.prev.copy(v),this.prevFrame.copy(v),this.autoFrame.copy(v),f&&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(u){return u.x=this.x,u.y=this.y,u.right=this.right,u.bottom=this.bottom,u},hitTest:function(u,h){if(!this.isCircle)return s(this,u,h);if(this.radius>0&&u>=this.left&&u<=this.right&&h>=this.top&&h<=this.bottom){var f=(this.center.x-u)*(this.center.x-u),v=(this.center.y-h)*(this.center.y-h);return f+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(u){var h=this.position,f=h.x+this.halfWidth,v=h.y+this.halfHeight;this.debugShowBody&&(u.lineStyle(u.defaultStrokeWidth,this.debugBodyColor),this.isCircle?u.strokeCircle(f,v,this.width/2):(this.checkCollision.up&&u.lineBetween(h.x,h.y,h.x+this.width,h.y),this.checkCollision.right&&u.lineBetween(h.x+this.width,h.y,h.x+this.width,h.y+this.height),this.checkCollision.down&&u.lineBetween(h.x,h.y+this.height,h.x+this.width,h.y+this.height),this.checkCollision.left&&u.lineBetween(h.x,h.y,h.x,h.y+this.height))),this.debugShowVelocity&&(u.lineStyle(u.defaultStrokeWidth,this.world.defaults.velocityDebugColor,1),u.lineBetween(f,v,f+this.velocity.x/2,v+this.velocity.y/2))},willDrawDebug:function(){return this.debugShowBody||this.debugShowVelocity},setDirectControl:function(u){return u===void 0&&(u=!0),this.directControl=u,this},setCollideWorldBounds:function(u,h,f,v){u===void 0&&(u=!0),this.collideWorldBounds=u;var m=h!==void 0,x=f!==void 0;return(m||x)&&(this.worldBounce||(this.worldBounce=new i),m&&(this.worldBounce.x=h),x&&(this.worldBounce.y=f)),v!==void 0&&(this.onWorldBounds=v),this},setVelocity:function(u,h){return this.velocity.set(u,h),u=this.velocity.x,h=this.velocity.y,this.speed=Math.sqrt(u*u+h*h),this},setVelocityX:function(u){return this.setVelocity(u,this.velocity.y)},setVelocityY:function(u){return this.setVelocity(this.velocity.x,u)},setMaxVelocity:function(u,h){return this.maxVelocity.set(u,h),this},setMaxVelocityX:function(u){return this.maxVelocity.x=u,this},setMaxVelocityY:function(u){return this.maxVelocity.y=u,this},setMaxSpeed:function(u){return this.maxSpeed=u,this},setSlideFactor:function(u,h){return this.slideFactor.set(u,h),this},setBounce:function(u,h){return this.bounce.set(u,h),this},setBounceX:function(u){return this.bounce.x=u,this},setBounceY:function(u){return this.bounce.y=u,this},setAcceleration:function(u,h){return this.acceleration.set(u,h),this},setAccelerationX:function(u){return this.acceleration.x=u,this},setAccelerationY:function(u){return this.acceleration.y=u,this},setAllowDrag:function(u){return u===void 0&&(u=!0),this.allowDrag=u,this},setAllowGravity:function(u){return u===void 0&&(u=!0),this.allowGravity=u,this},setAllowRotation:function(u){return u===void 0&&(u=!0),this.allowRotation=u,this},setDrag:function(u,h){return this.drag.set(u,h),this},setDamping:function(u){return this.useDamping=u,this},setDragX:function(u){return this.drag.x=u,this},setDragY:function(u){return this.drag.y=u,this},setGravity:function(u,h){return this.gravity.set(u,h),this},setGravityX:function(u){return this.gravity.x=u,this},setGravityY:function(u){return this.gravity.y=u,this},setFriction:function(u,h){return this.friction.set(u,h),this},setFrictionX:function(u){return this.friction.x=u,this},setFrictionY:function(u){return this.friction.y=u,this},setAngularVelocity:function(u){return this.angularVelocity=u,this},setAngularAcceleration:function(u){return this.angularAcceleration=u,this},setAngularDrag:function(u){return this.angularDrag=u,this},setMass:function(u){return this.mass=u,this},setImmovable:function(u){return u===void 0&&(u=!0),this.immovable=u,this},setEnable:function(u){return u===void 0&&(u=!0),this.enable=u,this},processX:function(u,h,f,v){this.x+=u,this.updateCenter(),h!==null&&(this.velocity.x=h*this.slideFactor.x);var m=this.blocked;f&&(m.left=!0,m.none=!1),v&&(m.right=!0,m.none=!1)},processY:function(u,h,f,v){this.y+=u,this.updateCenter(),h!==null&&(this.velocity.y=h*this.slideFactor.y);var m=this.blocked;f&&(m.up=!0,m.none=!1),v&&(m.down=!0,m.none=!1)},x:{get:function(){return this.position.x},set:function(u){this.position.x=u}},y:{get:function(){return this.position.y},set:function(u){this.position.y=u}},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}}});c.exports=o},79342:(c,T,t)=>{/** + */var d=t(83419),p=t(78389),l=t(37747),r=t(63012),n=t(43396),e=t(87841),s=t(37303),o=t(95829),i=t(26099),a=new d({Mixins:[p],initialize:function(h,f){var v=64,m=64,g={x:0,y:0,angle:0,rotation:0,scaleX:1,scaleY:1,displayOriginX:0,displayOriginY:0},x=f!==void 0;x&&f.displayWidth&&(v=f.displayWidth,m=f.displayHeight),x||(f=g),this.world=h,this.gameObject=x?f:void 0,this.isBody=!0,this.transform={x:f.x,y:f.y,rotation:f.angle,scaleX:f.scaleX,scaleY:f.scaleY,displayOriginX:f.displayOriginX,displayOriginY:f.displayOriginY},this.debugShowBody=h.defaults.debugShowBody,this.debugShowVelocity=h.defaults.debugShowVelocity,this.debugBodyColor=h.defaults.bodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new i,this.position=new i(f.x-f.scaleX*f.displayOriginX,f.y-f.scaleY*f.displayOriginY),this.prev=this.position.clone(),this.prevFrame=this.position.clone(),this.allowRotation=!0,this.rotation=f.angle,this.preRotation=f.angle,this.width=v,this.height=m,this.sourceWidth=v,this.sourceHeight=m,f.frame&&(this.sourceWidth=f.frame.realWidth,this.sourceHeight=f.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=h.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=l.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=o(!1),this.touching=o(!0),this.wasTouching=o(!0),this.blocked=o(!0),this.syncBounds=!1,this.physicsType=l.DYNAMIC_BODY,this.collisionCategory=1,this.collisionMask=1,this._sx=f.scaleX,this._sy=f.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 u=this.gameObject,h=this.transform;if(u.parentContainer){var f=u.getWorldTransformMatrix(this.world._tempMatrix,this.world._tempMatrix2);h.x=f.tx,h.y=f.ty,h.rotation=n(f.rotation),h.scaleX=f.scaleX,h.scaleY=f.scaleY,h.displayOriginX=u.displayOriginX,h.displayOriginY=u.displayOriginY}else h.x=u.x,h.y=u.y,h.rotation=u.angle,h.scaleX=u.scaleX,h.scaleY=u.scaleY,h.displayOriginX=u.displayOriginX,h.displayOriginY=u.displayOriginY;var v=!1;if(this.syncBounds){var m=u.getBounds(this._bounds);this.width=m.width,this.height=m.height,v=!0}else{var g=Math.abs(h.scaleX),x=Math.abs(h.scaleY);(this._sx!==g||this._sy!==x)&&(this.width=this.sourceWidth*g,this.height=this.sourceHeight*x,this._sx=g,this._sy=x,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 u=this.transform;this.position.x=u.x+u.scaleX*(this.offset.x-u.displayOriginX),this.position.y=u.y+u.scaleY*(this.offset.y-u.displayOriginY),this.updateCenter()},resetFlags:function(u){u===void 0&&(u=!1);var h=this.wasTouching,f=this.touching,v=this.blocked;u?o(!0,h):(h.none=f.none,h.up=f.up,h.down=f.down,h.left=f.left,h.right=f.right),o(!0,f),o(!0,v),this.overlapR=0,this.overlapX=0,this.overlapY=0,this.embedded=!1},preUpdate:function(u,h){if(u&&this.resetFlags(),this.gameObject&&this.updateFromGameObject(),this.rotation=this.transform.rotation,this.preRotation=this.rotation,this.moves){var f=this.position;this.prev.x=f.x,this.prev.y=f.y,this.prevFrame.x=f.x,this.prevFrame.y=f.y}u&&this.update(h)},update:function(u){var h=this.prev,f=this.position,v=this.velocity;if(h.set(f.x,f.y),!this.moves){this._dx=f.x-h.x,this._dy=f.y-h.y;return}if(this.directControl){var m=this.autoFrame;v.set((f.x-m.x)/u,(f.y-m.y)/u),this.world.updateMotion(this,u),this._dx=f.x-m.x,this._dy=f.y-m.y}else this.world.updateMotion(this,u),this.newVelocity.set(v.x*u,v.y*u),f.add(this.newVelocity),this._dx=f.x-h.x,this._dy=f.y-h.y;var g=v.x,x=v.y;if(this.updateCenter(),this.angle=Math.atan2(x,g),this.speed=Math.sqrt(g*g+x*x),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 u=this.position,h=u.x-this.prevFrame.x,f=u.y-this.prevFrame.y,v=this.gameObject;if(this.moves){var m=this.deltaMax.x,g=this.deltaMax.y;m!==0&&h!==0&&(h<0&&h<-m?h=-m:h>0&&h>m&&(h=m)),g!==0&&f!==0&&(f<0&&f<-g?f=-g:f>0&&f>g&&(f=g)),v&&(v.x+=h,v.y+=f)}h<0?this.facing=l.FACING_LEFT:h>0&&(this.facing=l.FACING_RIGHT),f<0?this.facing=l.FACING_UP:f>0&&(this.facing=l.FACING_DOWN),this.allowRotation&&v&&(v.angle+=this.deltaZ()),this._tx=h,this._ty=f,this.autoFrame.set(u.x,u.y)},setBoundsRectangle:function(u){return this.customBoundsRectangle=u||this.world.bounds,this},checkWorldBounds:function(){var u=this.position,h=this.velocity,f=this.blocked,v=this.customBoundsRectangle,m=this.world.checkCollision,g=this.worldBounce?-this.worldBounce.x:-this.bounce.x,x=this.worldBounce?-this.worldBounce.y:-this.bounce.y,y=!1;return u.xv.right&&m.right&&(u.x=v.right-this.width,h.x*=g,f.right=!0,y=!0),u.yv.bottom&&m.down&&(u.y=v.bottom-this.height,h.y*=x,f.down=!0,y=!0),y&&(this.blocked.none=!1,this.updateCenter()),y},setOffset:function(u,h){return h===void 0&&(h=u),this.offset.set(u,h),this},setGameObject:function(u,h){return h===void 0&&(h=!0),this.world.remove(this),this.gameObject&&this.gameObject.body&&(this.gameObject.body=null),this.gameObject=u,u.body&&(u.body=this),this.setSize(),this.world.add(this),this.enable=h,this},setSize:function(u,h,f){f===void 0&&(f=!0);var v=this.gameObject;if(v&&(!u&&v.frame&&(u=v.frame.realWidth),!h&&v.frame&&(h=v.frame.realHeight)),this.sourceWidth=u,this.sourceHeight=h,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.updateCenter(),f&&v&&v.getCenter){var m=(v.width-u)/2,g=(v.height-h)/2;this.offset.set(m,g)}return this.isCircle=!1,this.radius=0,this},setCircle:function(u,h,f){return h===void 0&&(h=this.offset.x),f===void 0&&(f=this.offset.y),u>0?(this.isCircle=!0,this.radius=u,this.sourceWidth=u*2,this.sourceHeight=u*2,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(h,f),this.updateCenter()):this.isCircle=!1,this},reset:function(u,h){this.stop();var f=this.gameObject;f&&(f.setPosition(u,h),this.rotation=f.angle,this.preRotation=f.angle);var v=this.position;f&&f.getTopLeft?f.getTopLeft(v):v.set(u,h),this.prev.copy(v),this.prevFrame.copy(v),this.autoFrame.copy(v),f&&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(u){return u.x=this.x,u.y=this.y,u.right=this.right,u.bottom=this.bottom,u},hitTest:function(u,h){if(!this.isCircle)return s(this,u,h);if(this.radius>0&&u>=this.left&&u<=this.right&&h>=this.top&&h<=this.bottom){var f=(this.center.x-u)*(this.center.x-u),v=(this.center.y-h)*(this.center.y-h);return f+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(u){var h=this.position,f=h.x+this.halfWidth,v=h.y+this.halfHeight;this.debugShowBody&&(u.lineStyle(u.defaultStrokeWidth,this.debugBodyColor),this.isCircle?u.strokeCircle(f,v,this.width/2):(this.checkCollision.up&&u.lineBetween(h.x,h.y,h.x+this.width,h.y),this.checkCollision.right&&u.lineBetween(h.x+this.width,h.y,h.x+this.width,h.y+this.height),this.checkCollision.down&&u.lineBetween(h.x,h.y+this.height,h.x+this.width,h.y+this.height),this.checkCollision.left&&u.lineBetween(h.x,h.y,h.x,h.y+this.height))),this.debugShowVelocity&&(u.lineStyle(u.defaultStrokeWidth,this.world.defaults.velocityDebugColor,1),u.lineBetween(f,v,f+this.velocity.x/2,v+this.velocity.y/2))},willDrawDebug:function(){return this.debugShowBody||this.debugShowVelocity},setDirectControl:function(u){return u===void 0&&(u=!0),this.directControl=u,this},setCollideWorldBounds:function(u,h,f,v){u===void 0&&(u=!0),this.collideWorldBounds=u;var m=h!==void 0,g=f!==void 0;return(m||g)&&(this.worldBounce||(this.worldBounce=new i),m&&(this.worldBounce.x=h),g&&(this.worldBounce.y=f)),v!==void 0&&(this.onWorldBounds=v),this},setVelocity:function(u,h){return this.velocity.set(u,h),u=this.velocity.x,h=this.velocity.y,this.speed=Math.sqrt(u*u+h*h),this},setVelocityX:function(u){return this.setVelocity(u,this.velocity.y)},setVelocityY:function(u){return this.setVelocity(this.velocity.x,u)},setMaxVelocity:function(u,h){return this.maxVelocity.set(u,h),this},setMaxVelocityX:function(u){return this.maxVelocity.x=u,this},setMaxVelocityY:function(u){return this.maxVelocity.y=u,this},setMaxSpeed:function(u){return this.maxSpeed=u,this},setSlideFactor:function(u,h){return this.slideFactor.set(u,h),this},setBounce:function(u,h){return this.bounce.set(u,h),this},setBounceX:function(u){return this.bounce.x=u,this},setBounceY:function(u){return this.bounce.y=u,this},setAcceleration:function(u,h){return this.acceleration.set(u,h),this},setAccelerationX:function(u){return this.acceleration.x=u,this},setAccelerationY:function(u){return this.acceleration.y=u,this},setAllowDrag:function(u){return u===void 0&&(u=!0),this.allowDrag=u,this},setAllowGravity:function(u){return u===void 0&&(u=!0),this.allowGravity=u,this},setAllowRotation:function(u){return u===void 0&&(u=!0),this.allowRotation=u,this},setDrag:function(u,h){return this.drag.set(u,h),this},setDamping:function(u){return this.useDamping=u,this},setDragX:function(u){return this.drag.x=u,this},setDragY:function(u){return this.drag.y=u,this},setGravity:function(u,h){return this.gravity.set(u,h),this},setGravityX:function(u){return this.gravity.x=u,this},setGravityY:function(u){return this.gravity.y=u,this},setFriction:function(u,h){return this.friction.set(u,h),this},setFrictionX:function(u){return this.friction.x=u,this},setFrictionY:function(u){return this.friction.y=u,this},setAngularVelocity:function(u){return this.angularVelocity=u,this},setAngularAcceleration:function(u){return this.angularAcceleration=u,this},setAngularDrag:function(u){return this.angularDrag=u,this},setMass:function(u){return this.mass=u,this},setImmovable:function(u){return u===void 0&&(u=!0),this.immovable=u,this},setEnable:function(u){return u===void 0&&(u=!0),this.enable=u,this},processX:function(u,h,f,v){this.x+=u,this.updateCenter(),h!==null&&(this.velocity.x=h*this.slideFactor.x);var m=this.blocked;f&&(m.left=!0,m.none=!1),v&&(m.right=!0,m.none=!1)},processY:function(u,h,f,v){this.y+=u,this.updateCenter(),h!==null&&(this.velocity.y=h*this.slideFactor.y);var m=this.blocked;f&&(m.up=!0,m.none=!1),v&&(m.down=!0,m.none=!1)},x:{get:function(){return this.position.x},set:function(u){this.position.x=u}},y:{get:function(){return this.position.y},set:function(u){this.position.y=u}},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}}});c.exports=a},79342:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=new d({initialize:function(r,n,e,s,l,i,o){this.world=r,this.name="",this.active=!0,this.overlapOnly=n,this.object1=e,this.object2=s,this.collideCallback=l,this.processCallback=i,this.callbackContext=o},setName:function(a){return this.name=a,this},update:function(){this.world.collideObjects(this.object1,this.object2,this.collideCallback,this.processCallback,this.callbackContext,this.overlapOnly)},destroy:function(){this.world.removeCollider(this),this.active=!1,this.world=null,this.object1=null,this.object2=null,this.collideCallback=null,this.processCallback=null,this.callbackContext=null}});c.exports=p},66022:(c,T,t)=>{/** + */var d=t(83419),p=new d({initialize:function(r,n,e,s,o,i,a){this.world=r,this.name="",this.active=!0,this.overlapOnly=n,this.object1=e,this.object2=s,this.collideCallback=o,this.processCallback=i,this.callbackContext=a},setName:function(l){return this.name=l,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}});c.exports=p},66022:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(71289),p=t(13759),a=t(37742),r=t(83419),n=t(37747),e=t(60758),s=t(72624),l=t(71464),i=new r({initialize:function(u){this.world=u,this.scene=u.scene,this.sys=u.scene.sys},collider:function(o,u,h,f,v){return this.world.addCollider(o,u,h,f,v)},overlap:function(o,u,h,f,v){return this.world.addOverlap(o,u,h,f,v)},existing:function(o,u){var h=u?n.STATIC_BODY:n.DYNAMIC_BODY;return this.world.enableBody(o,h),o},staticImage:function(o,u,h,f){var v=new d(this.scene,o,u,h,f);return this.sys.displayList.add(v),this.world.enableBody(v,n.STATIC_BODY),v},image:function(o,u,h,f){var v=new d(this.scene,o,u,h,f);return this.sys.displayList.add(v),this.world.enableBody(v,n.DYNAMIC_BODY),v},staticSprite:function(o,u,h,f){var v=new p(this.scene,o,u,h,f);return this.sys.displayList.add(v),this.sys.updateList.add(v),this.world.enableBody(v,n.STATIC_BODY),v},sprite:function(o,u,h,f){var v=new p(this.scene,o,u,h,f);return this.sys.displayList.add(v),this.sys.updateList.add(v),this.world.enableBody(v,n.DYNAMIC_BODY),v},staticGroup:function(o,u){return this.sys.updateList.add(new l(this.world,this.world.scene,o,u))},group:function(o,u){return this.sys.updateList.add(new e(this.world,this.world.scene,o,u))},body:function(o,u,h,f){var v=new a(this.world);return v.position.set(o,u),h&&f&&v.setSize(h,f),this.world.add(v,n.DYNAMIC_BODY),v},staticBody:function(o,u,h,f){var v=new s(this.world);return v.position.set(o,u),h&&f&&v.setSize(h,f),this.world.add(v,n.STATIC_BODY),v},destroy:function(){this.world=null,this.scene=null,this.sys=null}});c.exports=i},79599:c=>{/** + */var d=t(71289),p=t(13759),l=t(37742),r=t(83419),n=t(37747),e=t(60758),s=t(72624),o=t(71464),i=new r({initialize:function(u){this.world=u,this.scene=u.scene,this.sys=u.scene.sys},collider:function(a,u,h,f,v){return this.world.addCollider(a,u,h,f,v)},overlap:function(a,u,h,f,v){return this.world.addOverlap(a,u,h,f,v)},existing:function(a,u){var h=u?n.STATIC_BODY:n.DYNAMIC_BODY;return this.world.enableBody(a,h),a},staticImage:function(a,u,h,f){var v=new d(this.scene,a,u,h,f);return this.sys.displayList.add(v),this.world.enableBody(v,n.STATIC_BODY),v},image:function(a,u,h,f){var v=new d(this.scene,a,u,h,f);return this.sys.displayList.add(v),this.world.enableBody(v,n.DYNAMIC_BODY),v},staticSprite:function(a,u,h,f){var v=new p(this.scene,a,u,h,f);return this.sys.displayList.add(v),this.sys.updateList.add(v),this.world.enableBody(v,n.STATIC_BODY),v},sprite:function(a,u,h,f){var v=new p(this.scene,a,u,h,f);return this.sys.displayList.add(v),this.sys.updateList.add(v),this.world.enableBody(v,n.DYNAMIC_BODY),v},staticGroup:function(a,u){return this.sys.updateList.add(new o(this.world,this.world.scene,a,u))},group:function(a,u){return this.sys.updateList.add(new e(this.world,this.world.scene,a,u))},body:function(a,u,h,f){var v=new l(this.world);return v.position.set(a,u),h&&f&&v.setSize(h,f),this.world.add(v,n.DYNAMIC_BODY),v},staticBody:function(a,u,h,f){var v=new s(this.world);return v.position.set(a,u),h&&f&&v.setSize(h,f),this.world.add(v,n.STATIC_BODY),v},destroy:function(){this.world=null,this.scene=null,this.sys=null}});c.exports=i},79599:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4219,31 +4223,31 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(37747),p=function(a,r,n,e){var s=0,l=a.deltaAbsX()+r.deltaAbsX()+e;return a._dx===0&&r._dx===0?(a.embedded=!0,r.embedded=!0):a._dx>r._dx?(s=a.right-r.x,s>l&&!n||a.checkCollision.right===!1||r.checkCollision.left===!1?s=0:(a.touching.none=!1,a.touching.right=!0,r.touching.none=!1,r.touching.left=!0,r.physicsType===d.STATIC_BODY&&!n&&(a.blocked.none=!1,a.blocked.right=!0),a.physicsType===d.STATIC_BODY&&!n&&(r.blocked.none=!1,r.blocked.left=!0))):a._dxl&&!n||a.checkCollision.left===!1||r.checkCollision.right===!1?s=0:(a.touching.none=!1,a.touching.left=!0,r.touching.none=!1,r.touching.right=!0,r.physicsType===d.STATIC_BODY&&!n&&(a.blocked.none=!1,a.blocked.left=!0),a.physicsType===d.STATIC_BODY&&!n&&(r.blocked.none=!1,r.blocked.right=!0))),a.overlapX=s,r.overlapX=s,s};c.exports=p},45170:(c,T,t)=>{/** + */var d=t(37747),p=function(l,r,n,e){var s=0,o=l.deltaAbsX()+r.deltaAbsX()+e;return l._dx===0&&r._dx===0?(l.embedded=!0,r.embedded=!0):l._dx>r._dx?(s=l.right-r.x,s>o&&!n||l.checkCollision.right===!1||r.checkCollision.left===!1?s=0:(l.touching.none=!1,l.touching.right=!0,r.touching.none=!1,r.touching.left=!0,r.physicsType===d.STATIC_BODY&&!n&&(l.blocked.none=!1,l.blocked.right=!0),l.physicsType===d.STATIC_BODY&&!n&&(r.blocked.none=!1,r.blocked.left=!0))):l._dxo&&!n||l.checkCollision.left===!1||r.checkCollision.right===!1?s=0:(l.touching.none=!1,l.touching.left=!0,r.touching.none=!1,r.touching.right=!0,r.physicsType===d.STATIC_BODY&&!n&&(l.blocked.none=!1,l.blocked.left=!0),l.physicsType===d.STATIC_BODY&&!n&&(r.blocked.none=!1,r.blocked.right=!0))),l.overlapX=s,r.overlapX=s,s};c.exports=p},45170:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(37747),p=function(a,r,n,e){var s=0,l=a.deltaAbsY()+r.deltaAbsY()+e;return a._dy===0&&r._dy===0?(a.embedded=!0,r.embedded=!0):a._dy>r._dy?(s=a.bottom-r.y,s>l&&!n||a.checkCollision.down===!1||r.checkCollision.up===!1?s=0:(a.touching.none=!1,a.touching.down=!0,r.touching.none=!1,r.touching.up=!0,r.physicsType===d.STATIC_BODY&&!n&&(a.blocked.none=!1,a.blocked.down=!0),a.physicsType===d.STATIC_BODY&&!n&&(r.blocked.none=!1,r.blocked.up=!0))):a._dyl&&!n||a.checkCollision.up===!1||r.checkCollision.down===!1?s=0:(a.touching.none=!1,a.touching.up=!0,r.touching.none=!1,r.touching.down=!0,r.physicsType===d.STATIC_BODY&&!n&&(a.blocked.none=!1,a.blocked.up=!0),a.physicsType===d.STATIC_BODY&&!n&&(r.blocked.none=!1,r.blocked.down=!0))),a.overlapY=s,r.overlapY=s,s};c.exports=p},60758:(c,T,t)=>{/** + */var d=t(37747),p=function(l,r,n,e){var s=0,o=l.deltaAbsY()+r.deltaAbsY()+e;return l._dy===0&&r._dy===0?(l.embedded=!0,r.embedded=!0):l._dy>r._dy?(s=l.bottom-r.y,s>o&&!n||l.checkCollision.down===!1||r.checkCollision.up===!1?s=0:(l.touching.none=!1,l.touching.down=!0,r.touching.none=!1,r.touching.up=!0,r.physicsType===d.STATIC_BODY&&!n&&(l.blocked.none=!1,l.blocked.down=!0),l.physicsType===d.STATIC_BODY&&!n&&(r.blocked.none=!1,r.blocked.up=!0))):l._dyo&&!n||l.checkCollision.up===!1||r.checkCollision.down===!1?s=0:(l.touching.none=!1,l.touching.up=!0,r.touching.none=!1,r.touching.down=!0,r.physicsType===d.STATIC_BODY&&!n&&(l.blocked.none=!1,l.blocked.up=!0),l.physicsType===d.STATIC_BODY&&!n&&(r.blocked.none=!1,r.blocked.down=!0))),l.overlapY=s,r.overlapY=s,s};c.exports=p},60758:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(13759),p=t(83419),a=t(78389),r=t(37747),n=t(95540),e=t(26479),s=t(41212),l=new p({Extends:e,Mixins:[a],initialize:function(o,u,h,f){if(!h&&!f)f={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler};else if(s(h))f=h,h=null,f.internalCreateCallback=this.createCallbackHandler,f.internalRemoveCallback=this.removeCallbackHandler;else if(Array.isArray(h)&&s(h[0])){var v=this;h.forEach(function(m){m.internalCreateCallback=v.createCallbackHandler,m.internalRemoveCallback=v.removeCallbackHandler,m.classType=n(m,"classType",d)}),f=null}else f={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler};this.world=o,f&&(f.classType=n(f,"classType",d)),this.physicsType=r.DYNAMIC_BODY,this.collisionCategory=1,this.collisionMask=1,this.defaults={setCollideWorldBounds:n(f,"collideWorldBounds",!1),setBoundsRectangle:n(f,"customBoundsRectangle",null),setAccelerationX:n(f,"accelerationX",0),setAccelerationY:n(f,"accelerationY",0),setAllowDrag:n(f,"allowDrag",!0),setAllowGravity:n(f,"allowGravity",!0),setAllowRotation:n(f,"allowRotation",!0),setDamping:n(f,"useDamping",!1),setBounceX:n(f,"bounceX",0),setBounceY:n(f,"bounceY",0),setDragX:n(f,"dragX",0),setDragY:n(f,"dragY",0),setEnable:n(f,"enable",!0),setGravityX:n(f,"gravityX",0),setGravityY:n(f,"gravityY",0),setFrictionX:n(f,"frictionX",0),setFrictionY:n(f,"frictionY",0),setMaxSpeed:n(f,"maxSpeed",-1),setMaxVelocityX:n(f,"maxVelocityX",1e4),setMaxVelocityY:n(f,"maxVelocityY",1e4),setVelocityX:n(f,"velocityX",0),setVelocityY:n(f,"velocityY",0),setAngularVelocity:n(f,"angularVelocity",0),setAngularAcceleration:n(f,"angularAcceleration",0),setAngularDrag:n(f,"angularDrag",0),setMass:n(f,"mass",1),setImmovable:n(f,"immovable",!1)},e.call(this,u,h,f),this.type="PhysicsGroup"},createCallbackHandler:function(i){i.body||this.world.enableBody(i,r.DYNAMIC_BODY);var o=i.body;for(var u in this.defaults)o[u](this.defaults[u])},removeCallbackHandler:function(i){i.body&&this.world.disableBody(i)},setVelocity:function(i,o,u){u===void 0&&(u=0);for(var h=this.getChildren(),f=0;f{/** + */var d=t(13759),p=t(83419),l=t(78389),r=t(37747),n=t(95540),e=t(26479),s=t(41212),o=new p({Extends:e,Mixins:[l],initialize:function(a,u,h,f){if(!h&&!f)f={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler};else if(s(h))f=h,h=null,f.internalCreateCallback=this.createCallbackHandler,f.internalRemoveCallback=this.removeCallbackHandler;else if(Array.isArray(h)&&s(h[0])){var v=this;h.forEach(function(m){m.internalCreateCallback=v.createCallbackHandler,m.internalRemoveCallback=v.removeCallbackHandler,m.classType=n(m,"classType",d)}),f=null}else f={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler};this.world=a,f&&(f.classType=n(f,"classType",d)),this.physicsType=r.DYNAMIC_BODY,this.collisionCategory=1,this.collisionMask=2147483647,this.defaults={setCollideWorldBounds:n(f,"collideWorldBounds",!1),setBoundsRectangle:n(f,"customBoundsRectangle",null),setAccelerationX:n(f,"accelerationX",0),setAccelerationY:n(f,"accelerationY",0),setAllowDrag:n(f,"allowDrag",!0),setAllowGravity:n(f,"allowGravity",!0),setAllowRotation:n(f,"allowRotation",!0),setDamping:n(f,"useDamping",!1),setBounceX:n(f,"bounceX",0),setBounceY:n(f,"bounceY",0),setDragX:n(f,"dragX",0),setDragY:n(f,"dragY",0),setEnable:n(f,"enable",!0),setGravityX:n(f,"gravityX",0),setGravityY:n(f,"gravityY",0),setFrictionX:n(f,"frictionX",0),setFrictionY:n(f,"frictionY",0),setMaxSpeed:n(f,"maxSpeed",-1),setMaxVelocityX:n(f,"maxVelocityX",1e4),setMaxVelocityY:n(f,"maxVelocityY",1e4),setVelocityX:n(f,"velocityX",0),setVelocityY:n(f,"velocityY",0),setAngularVelocity:n(f,"angularVelocity",0),setAngularAcceleration:n(f,"angularAcceleration",0),setAngularDrag:n(f,"angularDrag",0),setMass:n(f,"mass",1),setImmovable:n(f,"immovable",!1)},e.call(this,u,h,f),this.type="PhysicsGroup"},createCallbackHandler:function(i){i.body||this.world.enableBody(i,r.DYNAMIC_BODY);var a=i.body;for(var u in this.defaults)a[u](this.defaults[u])},removeCallbackHandler:function(i){i.body&&this.world.disableBody(i)},setVelocity:function(i,a,u){u===void 0&&(u=0);for(var h=this.getChildren(),f=0;f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T,t,d,p,a,r,n,e,s,l,i,o,u,h,f,v,m,x=function(A,P,M){T=A,t=P;var F=T.velocity.x,L=t.velocity.x;return d=T.pushable,s=T._dx<0,l=T._dx>0,i=T._dx===0,f=Math.abs(T.right-t.x)<=Math.abs(t.right-T.x),n=L-F*T.bounce.x,p=t.pushable,o=t._dx<0,u=t._dx>0,h=t._dx===0,v=!f,e=F-L*t.bounce.x,m=Math.abs(M),g()},g=function(){return l&&f&&t.blocked.right?(T.processX(-m,n,!1,!0),1):s&&v&&t.blocked.left?(T.processX(m,n,!0),1):u&&v&&T.blocked.right?(t.processX(-m,e,!1,!0),2):o&&f&&T.blocked.left?(t.processX(m,e,!0),2):0},y=function(){var A=T.velocity.x,P=t.velocity.x,M=Math.sqrt(P*P*t.mass/T.mass)*(P>0?1:-1),F=Math.sqrt(A*A*T.mass/t.mass)*(A>0?1:-1),L=(M+F)*.5;return M-=L,F-=L,a=L+M*T.bounce.x,r=L+F*t.bounce.x,s&&v?S(0):o&&f?S(1):l&&f?S(2):u&&v?S(3):!1},S=function(A){if(d&&p)m*=.5,A===0||A===3?(T.processX(m,a),t.processX(-m,r)):(T.processX(-m,a),t.processX(m,r));else if(d&&!p)A===0||A===3?T.processX(m,n,!0):T.processX(-m,n,!1,!0);else if(!d&&p)A===0||A===3?t.processX(-m,e,!1,!0):t.processX(m,e,!0);else{var P=m*.5;A===0?h?(T.processX(m,0,!0),t.processX(0,null,!1,!0)):u?(T.processX(P,0,!0),t.processX(-P,0,!1,!0)):(T.processX(P,t.velocity.x,!0),t.processX(-P,null,!1,!0)):A===1?i?(T.processX(0,null,!1,!0),t.processX(m,0,!0)):l?(T.processX(-P,0,!1,!0),t.processX(P,0,!0)):(T.processX(-P,null,!1,!0),t.processX(P,T.velocity.x,!0)):A===2?h?(T.processX(-m,0,!1,!0),t.processX(0,null,!0)):o?(T.processX(-P,0,!1,!0),t.processX(P,0,!0)):(T.processX(-P,t.velocity.x,!1,!0),t.processX(P,null,!0)):A===3&&(i?(T.processX(0,null,!0),t.processX(-m,0,!1,!0)):s?(T.processX(P,0,!0),t.processX(-P,0,!1,!0)):(T.processX(P,t.velocity.y,!0),t.processX(-P,null,!1,!0)))}return!0},C=function(A){A===1?t.velocity.x=0:f?t.processX(m,e,!0):t.processX(-m,e,!1,!0),T.moves&&(t.y+=(T.y-T.prev.y)*T.friction.y,t._dy=t.y-t.prev.y)},E=function(A){A===2?T.velocity.x=0:v?T.processX(m,n,!0):T.processX(-m,n,!1,!0),t.moves&&(T.y+=(t.y-t.prev.y)*t.friction.y,T._dy=T.y-T.prev.y)};c.exports={BlockCheck:g,Check:y,Set:x,Run:S,RunImmovableBody1:C,RunImmovableBody2:E}},47962:c=>{/** + */var T,t,d,p,l,r,n,e,s,o,i,a,u,h,f,v,m,g=function(M,P,A){T=M,t=P;var R=T.velocity.x,F=t.velocity.x;return d=T.pushable,s=T._dx<0,o=T._dx>0,i=T._dx===0,f=Math.abs(T.right-t.x)<=Math.abs(t.right-T.x),n=F-R*T.bounce.x,p=t.pushable,a=t._dx<0,u=t._dx>0,h=t._dx===0,v=!f,e=R-F*t.bounce.x,m=Math.abs(A),x()},x=function(){return o&&f&&t.blocked.right?(T.processX(-m,n,!1,!0),1):s&&v&&t.blocked.left?(T.processX(m,n,!0),1):u&&v&&T.blocked.right?(t.processX(-m,e,!1,!0),2):a&&f&&T.blocked.left?(t.processX(m,e,!0),2):0},y=function(){var M=T.velocity.x,P=t.velocity.x,A=Math.sqrt(P*P*t.mass/T.mass)*(P>0?1:-1),R=Math.sqrt(M*M*T.mass/t.mass)*(M>0?1:-1),F=(A+R)*.5;return A-=F,R-=F,l=F+A*T.bounce.x,r=F+R*t.bounce.x,s&&v?S(0):a&&f?S(1):o&&f?S(2):u&&v?S(3):!1},S=function(M){if(d&&p)m*=.5,M===0||M===3?(T.processX(m,l),t.processX(-m,r)):(T.processX(-m,l),t.processX(m,r));else if(d&&!p)M===0||M===3?T.processX(m,n,!0):T.processX(-m,n,!1,!0);else if(!d&&p)M===0||M===3?t.processX(-m,e,!1,!0):t.processX(m,e,!0);else{var P=m*.5;M===0?h?(T.processX(m,0,!0),t.processX(0,null,!1,!0)):u?(T.processX(P,0,!0),t.processX(-P,0,!1,!0)):(T.processX(P,t.velocity.x,!0),t.processX(-P,null,!1,!0)):M===1?i?(T.processX(0,null,!1,!0),t.processX(m,0,!0)):o?(T.processX(-P,0,!1,!0),t.processX(P,0,!0)):(T.processX(-P,null,!1,!0),t.processX(P,T.velocity.x,!0)):M===2?h?(T.processX(-m,0,!1,!0),t.processX(0,null,!0)):a?(T.processX(-P,0,!1,!0),t.processX(P,0,!0)):(T.processX(-P,t.velocity.x,!1,!0),t.processX(P,null,!0)):M===3&&(i?(T.processX(0,null,!0),t.processX(-m,0,!1,!0)):s?(T.processX(P,0,!0),t.processX(-P,0,!1,!0)):(T.processX(P,t.velocity.y,!0),t.processX(-P,null,!1,!0)))}return!0},C=function(M){if(M===1?t.velocity.x=0:f?t.processX(m,e,!0):t.processX(-m,e,!1,!0),T.moves){var P=T.directControl?T.y-T.autoFrame.y:T.y-T.prev.y;t.y+=P*T.friction.y,t._dy=t.y-t.prev.y}},E=function(M){if(M===2?T.velocity.x=0:v?T.processX(m,n,!0):T.processX(-m,n,!1,!0),t.moves){var P=t.directControl?t.y-t.autoFrame.y:t.y-t.prev.y;T.y+=P*t.friction.y,T._dy=T.y-T.prev.y}};c.exports={BlockCheck:x,Check:y,Set:g,Run:S,RunImmovableBody1:C,RunImmovableBody2:E}},47962:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T,t,d,p,a,r,n,e,s,l,i,o,u,h,f,v,m,x=function(A,P,M){T=A,t=P;var F=T.velocity.y,L=t.velocity.y;return d=T.pushable,s=T._dy<0,l=T._dy>0,i=T._dy===0,f=Math.abs(T.bottom-t.y)<=Math.abs(t.bottom-T.y),n=L-F*T.bounce.y,p=t.pushable,o=t._dy<0,u=t._dy>0,h=t._dy===0,v=!f,e=F-L*t.bounce.y,m=Math.abs(M),g()},g=function(){return l&&f&&t.blocked.down?(T.processY(-m,n,!1,!0),1):s&&v&&t.blocked.up?(T.processY(m,n,!0),1):u&&v&&T.blocked.down?(t.processY(-m,e,!1,!0),2):o&&f&&T.blocked.up?(t.processY(m,e,!0),2):0},y=function(){var A=T.velocity.y,P=t.velocity.y,M=Math.sqrt(P*P*t.mass/T.mass)*(P>0?1:-1),F=Math.sqrt(A*A*T.mass/t.mass)*(A>0?1:-1),L=(M+F)*.5;return M-=L,F-=L,a=L+M*T.bounce.y,r=L+F*t.bounce.y,s&&v?S(0):o&&f?S(1):l&&f?S(2):u&&v?S(3):!1},S=function(A){if(d&&p)m*=.5,A===0||A===3?(T.processY(m,a),t.processY(-m,r)):(T.processY(-m,a),t.processY(m,r));else if(d&&!p)A===0||A===3?T.processY(m,n,!0):T.processY(-m,n,!1,!0);else if(!d&&p)A===0||A===3?t.processY(-m,e,!1,!0):t.processY(m,e,!0);else{var P=m*.5;A===0?h?(T.processY(m,0,!0),t.processY(0,null,!1,!0)):u?(T.processY(P,0,!0),t.processY(-P,0,!1,!0)):(T.processY(P,t.velocity.y,!0),t.processY(-P,null,!1,!0)):A===1?i?(T.processY(0,null,!1,!0),t.processY(m,0,!0)):l?(T.processY(-P,0,!1,!0),t.processY(P,0,!0)):(T.processY(-P,null,!1,!0),t.processY(P,T.velocity.y,!0)):A===2?h?(T.processY(-m,0,!1,!0),t.processY(0,null,!0)):o?(T.processY(-P,0,!1,!0),t.processY(P,0,!0)):(T.processY(-P,t.velocity.y,!1,!0),t.processY(P,null,!0)):A===3&&(i?(T.processY(0,null,!0),t.processY(-m,0,!1,!0)):s?(T.processY(P,0,!0),t.processY(-P,0,!1,!0)):(T.processY(P,t.velocity.y,!0),t.processY(-P,null,!1,!0)))}return!0},C=function(A){A===1?t.velocity.y=0:f?t.processY(m,e,!0):t.processY(-m,e,!1,!0),T.moves&&(t.x+=(T.x-T.prev.x)*T.friction.x,t._dx=t.x-t.prev.x)},E=function(A){A===2?T.velocity.y=0:v?T.processY(m,n,!0):T.processY(-m,n,!1,!0),t.moves&&(T.x+=(t.x-t.prev.x)*t.friction.x,T._dx=T.x-T.prev.x)};c.exports={BlockCheck:g,Check:y,Set:x,Run:S,RunImmovableBody1:C,RunImmovableBody2:E}},14087:(c,T,t)=>{/** + */var T,t,d,p,l,r,n,e,s,o,i,a,u,h,f,v,m,g=function(M,P,A){T=M,t=P;var R=T.velocity.y,F=t.velocity.y;return d=T.pushable,s=T._dy<0,o=T._dy>0,i=T._dy===0,f=Math.abs(T.bottom-t.y)<=Math.abs(t.bottom-T.y),n=F-R*T.bounce.y,p=t.pushable,a=t._dy<0,u=t._dy>0,h=t._dy===0,v=!f,e=R-F*t.bounce.y,m=Math.abs(A),x()},x=function(){return o&&f&&t.blocked.down?(T.processY(-m,n,!1,!0),1):s&&v&&t.blocked.up?(T.processY(m,n,!0),1):u&&v&&T.blocked.down?(t.processY(-m,e,!1,!0),2):a&&f&&T.blocked.up?(t.processY(m,e,!0),2):0},y=function(){var M=T.velocity.y,P=t.velocity.y,A=Math.sqrt(P*P*t.mass/T.mass)*(P>0?1:-1),R=Math.sqrt(M*M*T.mass/t.mass)*(M>0?1:-1),F=(A+R)*.5;return A-=F,R-=F,l=F+A*T.bounce.y,r=F+R*t.bounce.y,s&&v?S(0):a&&f?S(1):o&&f?S(2):u&&v?S(3):!1},S=function(M){if(d&&p)m*=.5,M===0||M===3?(T.processY(m,l),t.processY(-m,r)):(T.processY(-m,l),t.processY(m,r));else if(d&&!p)M===0||M===3?T.processY(m,n,!0):T.processY(-m,n,!1,!0);else if(!d&&p)M===0||M===3?t.processY(-m,e,!1,!0):t.processY(m,e,!0);else{var P=m*.5;M===0?h?(T.processY(m,0,!0),t.processY(0,null,!1,!0)):u?(T.processY(P,0,!0),t.processY(-P,0,!1,!0)):(T.processY(P,t.velocity.y,!0),t.processY(-P,null,!1,!0)):M===1?i?(T.processY(0,null,!1,!0),t.processY(m,0,!0)):o?(T.processY(-P,0,!1,!0),t.processY(P,0,!0)):(T.processY(-P,null,!1,!0),t.processY(P,T.velocity.y,!0)):M===2?h?(T.processY(-m,0,!1,!0),t.processY(0,null,!0)):a?(T.processY(-P,0,!1,!0),t.processY(P,0,!0)):(T.processY(-P,t.velocity.y,!1,!0),t.processY(P,null,!0)):M===3&&(i?(T.processY(0,null,!0),t.processY(-m,0,!1,!0)):s?(T.processY(P,0,!0),t.processY(-P,0,!1,!0)):(T.processY(P,t.velocity.y,!0),t.processY(-P,null,!1,!0)))}return!0},C=function(M){if(M===1?t.velocity.y=0:f?t.processY(m,e,!0):t.processY(-m,e,!1,!0),T.moves){var P=T.directControl?T.x-T.autoFrame.x:T.x-T.prev.x;t.x+=P*T.friction.x,t._dx=t.x-t.prev.x}},E=function(M){if(M===2?T.velocity.y=0:v?T.processY(m,n,!0):T.processY(-m,n,!1,!0),t.moves){var P=t.directControl?t.x-t.autoFrame.x:t.x-t.prev.x;T.x+=P*t.friction.x,T._dx=T.x-T.prev.x}};c.exports={BlockCheck:x,Check:y,Set:g,Run:S,RunImmovableBody1:C,RunImmovableBody2:E}},14087:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(64897),p=t(3017),a=function(r,n,e,s,l){l===void 0&&(l=d(r,n,e,s));var i=r.immovable,o=n.immovable;if(e||l===0||i&&o||r.customSeparateX||n.customSeparateX)return l!==0||r.embedded&&n.embedded;var u=p.Set(r,n,l);return!i&&!o?u>0?!0:p.Check():(i?p.RunImmovableBody1(u):o&&p.RunImmovableBody2(u),!0)};c.exports=a},89936:(c,T,t)=>{/** + */var d=t(64897),p=t(3017),l=function(r,n,e,s,o){o===void 0&&(o=d(r,n,e,s));var i=r.immovable,a=n.immovable;if(e||o===0||i&&a||r.customSeparateX||n.customSeparateX)return o!==0||r.embedded&&n.embedded;var u=p.Set(r,n,o);return!i&&!a?u>0?!0:p.Check():(i?p.RunImmovableBody1(u):a&&p.RunImmovableBody2(u),!0)};c.exports=l},89936:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(45170),p=t(47962),a=function(r,n,e,s,l){l===void 0&&(l=d(r,n,e,s));var i=r.immovable,o=n.immovable;if(e||l===0||i&&o||r.customSeparateY||n.customSeparateY)return l!==0||r.embedded&&n.embedded;var u=p.Set(r,n,l);return!i&&!o?u>0?!0:p.Check():(i?p.RunImmovableBody1(u):o&&p.RunImmovableBody2(u),!0)};c.exports=a},95829:c=>{/** + */var d=t(45170),p=t(47962),l=function(r,n,e,s,o){o===void 0&&(o=d(r,n,e,s));var i=r.immovable,a=n.immovable;if(e||o===0||i&&a||r.customSeparateY||n.customSeparateY)return o!==0||r.embedded&&n.embedded;var u=p.Set(r,n,o);return!i&&!a?u>0?!0:p.Check():(i?p.RunImmovableBody1(u):a&&p.RunImmovableBody2(u),!0)};c.exports=l},95829:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4251,15 +4255,15 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(87902),p=t(83419),a=t(78389),r=t(37747),n=t(37303),e=t(95829),s=t(26099),l=new p({Mixins:[a],initialize:function(o,u){var h=64,f=64,v={x:0,y:0,angle:0,rotation:0,scaleX:1,scaleY:1,displayOriginX:0,displayOriginY:0},m=u!==void 0;m&&u.displayWidth&&(h=u.displayWidth,f=u.displayHeight),m||(u=v),this.world=o,this.gameObject=m?u: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(u.x-h*u.originX,u.y-f*u.originY),this.width=h,this.height=f,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){return i&&i!==this.gameObject&&(this.gameObject.body=null,i.body=this,this.gameObject=i),o&&this.updateFromGameObject(),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,u){u===void 0&&(u=!0);var h=this.gameObject;if(h&&h.frame&&(i||(i=h.frame.realWidth),o||(o=h.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),u&&h&&h.getCenter){var f=h.displayWidth/2,v=h.displayHeight/2;this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(f-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,u){return o===void 0&&(o=this.offset.x),u===void 0&&(u=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,u),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 u=this.gameObject;i===void 0&&(i=u.x),o===void 0&&(o=u.y),this.world.staticTree.remove(this),u.setPosition(i,o),u.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,u=o.x+this.halfWidth,h=o.y+this.halfHeight;this.debugShowBody&&(i.lineStyle(i.defaultStrokeWidth,this.debugBodyColor,1),this.isCircle?i.strokeCircle(u,h,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}}});c.exports=l},71464:(c,T,t)=>{/** + */var d=t(87902),p=t(83419),l=t(78389),r=t(37747),n=t(37303),e=t(95829),s=t(26099),o=new p({Mixins:[l],initialize:function(a,u){var h=64,f=64,v={x:0,y:0,angle:0,rotation:0,scaleX:1,scaleY:1,displayOriginX:0,displayOriginY:0},m=u!==void 0;m&&u.displayWidth&&(h=u.displayWidth,f=u.displayHeight),m||(u=v),this.world=a,this.gameObject=m?u:void 0,this.isBody=!0,this.debugShowBody=a.defaults.debugShowStaticBody,this.debugBodyColor=a.defaults.staticBodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new s,this.position=new s(u.x-h*u.originX,u.y-f*u.originY),this.width=h,this.height=f,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,a){return i&&i!==this.gameObject&&(this.gameObject.body=null,i.body=this,this.gameObject=i),a&&this.updateFromGameObject(),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,a){return a===void 0&&(a=i),this.world.staticTree.remove(this),this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(i,a),this.position.x+=this.offset.x,this.position.y+=this.offset.y,this.updateCenter(),this.world.staticTree.insert(this),this},setSize:function(i,a,u){u===void 0&&(u=!0);var h=this.gameObject;if(h&&h.frame&&(i||(i=h.frame.realWidth),a||(a=h.frame.realHeight)),this.world.staticTree.remove(this),this.width=i,this.height=a,this.halfWidth=Math.floor(i/2),this.halfHeight=Math.floor(a/2),u&&h&&h.getCenter){var f=h.displayWidth/2,v=h.displayHeight/2;this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(f-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,a,u){return a===void 0&&(a=this.offset.x),u===void 0&&(u=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(a,u),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,a){var u=this.gameObject;i===void 0&&(i=u.x),a===void 0&&(a=u.y),this.world.staticTree.remove(this),u.setPosition(i,a),u.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,a){return this.isCircle?d(this,i,a):n(this,i,a)},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 a=this.position,u=a.x+this.halfWidth,h=a.y+this.halfHeight;this.debugShowBody&&(i.lineStyle(i.defaultStrokeWidth,this.debugBodyColor,1),this.isCircle?i.strokeCircle(u,h,this.width/2):i.strokeRect(a.x,a.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}}});c.exports=o},71464:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(13759),p=t(83419),a=t(78389),r=t(37747),n=t(95540),e=t(26479),s=t(41212),l=new p({Extends:e,Mixins:[a],initialize:function(o,u,h,f){!h&&!f?f={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler,createMultipleCallback:this.createMultipleCallbackHandler,classType:d}:s(h)?(f=h,h=null,f.internalCreateCallback=this.createCallbackHandler,f.internalRemoveCallback=this.removeCallbackHandler,f.createMultipleCallback=this.createMultipleCallbackHandler,f.classType=n(f,"classType",d)):Array.isArray(h)&&s(h[0])?(f=h,h=null,f.forEach(function(v){v.internalCreateCallback=this.createCallbackHandler,v.internalRemoveCallback=this.removeCallbackHandler,v.createMultipleCallback=this.createMultipleCallbackHandler,v.classType=n(v,"classType",d)})):f={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler},this.world=o,this.physicsType=r.STATIC_BODY,this.collisionCategory=1,this.collisionMask=1,e.call(this,u,h,f),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{/** + */var d=t(13759),p=t(83419),l=t(78389),r=t(37747),n=t(95540),e=t(26479),s=t(41212),o=new p({Extends:e,Mixins:[l],initialize:function(a,u,h,f){!h&&!f?f={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler,createMultipleCallback:this.createMultipleCallbackHandler,classType:d}:s(h)?(f=h,h=null,f.internalCreateCallback=this.createCallbackHandler,f.internalRemoveCallback=this.removeCallbackHandler,f.createMultipleCallback=this.createMultipleCallbackHandler,f.classType=n(f,"classType",d)):Array.isArray(h)&&s(h[0])?(f=h,h=null,f.forEach(function(v){v.internalCreateCallback=this.createCallbackHandler,v.internalRemoveCallback=this.removeCallbackHandler,v.createMultipleCallback=this.createMultipleCallbackHandler,v.classType=n(v,"classType",d)})):f={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler},this.world=a,this.physicsType=r.STATIC_BODY,this.collisionCategory=1,this.collisionMask=1,e.call(this,u,h,f),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,a=0;a{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(55495),p=t(37742),a=t(45319),r=t(83419),n=t(79342),e=t(37747),s=t(20339),l=t(52816),i=t(50792),o=t(63012),u=t(43855),h=t(5470),f=t(94977),v=t(64897),m=t(45170),x=t(96523),g=t(35154),y=t(36383),S=t(25774),C=t(96602),E=t(87841),A=t(59542),P=t(40012),M=t(14087),F=t(89936),L=t(35072),b=t(72624),B=t(2483),N=t(61340),X=t(26099),D=t(15994),I=new r({Extends:i,initialize:function(O,w){i.call(this),this.scene=O,this.bodies=new L,this.staticBodies=new L,this.pendingDestroy=new L,this.colliders=new S,this.gravity=new X(g(w,"gravity.x",0),g(w,"gravity.y",0)),this.bounds=new E(g(w,"x",0),g(w,"y",0),g(w,"width",O.sys.scale.width),g(w,"height",O.sys.scale.height)),this.checkCollision={up:g(w,"checkCollision.up",!0),down:g(w,"checkCollision.down",!0),left:g(w,"checkCollision.left",!0),right:g(w,"checkCollision.right",!0)},this.fps=g(w,"fps",60),this.fixedStep=g(w,"fixedStep",!0),this._elapsed=0,this._frameTime=1/this.fps,this._frameTimeMS=1e3*this._frameTime,this.stepsLastFrame=0,this.timeScale=g(w,"timeScale",1),this.OVERLAP_BIAS=g(w,"overlapBias",4),this.TILE_BIAS=g(w,"tileBias",16),this.forceX=g(w,"forceX",!1),this.isPaused=g(w,"isPaused",!1),this._total=0,this.drawDebug=g(w,"debug",!1),this.debugGraphic,this.defaults={debugShowBody:g(w,"debugShowBody",!0),debugShowStaticBody:g(w,"debugShowStaticBody",!0),debugShowVelocity:g(w,"debugShowVelocity",!0),bodyDebugColor:g(w,"debugBodyColor",16711935),staticBodyDebugColor:g(w,"debugStaticBodyColor",255),velocityDebugColor:g(w,"debugVelocityColor",65280)},this.maxEntries=g(w,"maxEntries",16),this.useTree=g(w,"useTree",!0),this.tree=new A(this.maxEntries),this.staticTree=new A(this.maxEntries),this.treeMinMax={minX:0,minY:0,maxX:0,maxY:0},this._tempMatrix=new N,this._tempMatrix2=new N,this.tileFilterOptions={isColliding:!0,isNotEmpty:!0,hasInterestingFace:!0},this.drawDebug&&this.createDebugGraphic()},enable:function(R,O){O===void 0&&(O=e.DYNAMIC_BODY),Array.isArray(R)||(R=[R]);for(var w=0;w=U;for(this.fixedStep||(G=O*.001,Y=!0,this._elapsed=0),w=0;w=U;)this._elapsed-=U,this.step(G)}},step:function(R){var O,w,G=this.bodies.entries,U=G.length;for(O=0;O0){var W=this.tree,H=this.staticTree;for(w=Y.entries,G=w.length,R=0;R-1&&R.velocity.length()>Q&&(R.velocity.normalize().scale(Q),K=Q),R.speed=K},separate:function(R,O,w,G,U){var z,V,Y=!1,W=!0;if(!R.enable||!O.enable||R.checkCollision.none||O.checkCollision.none||!this.intersects(R,O)||w&&w.call(G,R.gameObject,O.gameObject)===!1)return Y;if(R.isCircle||O.isCircle){var H=this.separateCircle(R,O,U);H.result?(Y=!0,W=!1):(z=H.x,V=H.y,W=!0)}if(W){var K=!1,Q=!1,Z=this.OVERLAP_BIAS;U?(K=M(R,O,U,Z,z),Q=F(R,O,U,Z,V)):this.forceX||Math.abs(this.gravity.y+R.gravity.y)st&&(Q=s(_,rt,st,j)-ot):rt>it&&(_st&&(Q=s(_,rt,st,it)-ot)),Q*=-1}else Q=R.halfWidth+O.halfWidth-l(z,V);R.overlapR=Q,O.overlapR=Q;var ut=d(z,V),ft=(Q+y.EPSILON)*Math.cos(ut),mt=(Q+y.EPSILON)*Math.sin(ut),ct={overlap:Q,result:!1,x:ft,y:mt};if(w&&(!Z||Z&&Q!==0))return ct.result=!0,ct;if(!Z&&Q===0||Y&&W||R.customSeparateX||O.customSeparateX)return ct.x=void 0,ct.y=void 0,ct;var vt=!R.pushable&&!O.pushable;if(Z){var dt=z.x-V.x,gt=z.y-V.y,pt=Math.sqrt(Math.pow(dt,2)+Math.pow(gt,2)),xt=(V.x-z.x)/pt||0,yt=(V.y-z.y)/pt||0,Tt=2*(H.x*xt+H.y*yt-K.x*xt-K.y*yt)/(R.mass+O.mass);(Y||W)&&(Tt*=2),Y||(H.x=H.x-Tt/R.mass*xt,H.y=H.y-Tt/R.mass*yt,H.multiply(R.bounce)),W||(K.x=K.x+Tt/O.mass*xt,K.y=K.y+Tt/O.mass*yt,K.multiply(O.bounce)),!Y&&!W&&(ft*=.5,mt*=.5),Y||(R.x-=ft,R.y-=mt,R.updateCenter()),W||(O.x+=ft,O.y+=mt,O.updateCenter()),ct.result=!0}else!Y||R.pushable||vt?(R.x-=ft,R.y-=mt,R.updateCenter()):(!W||O.pushable||vt)&&(O.x+=ft,O.y+=mt,O.updateCenter()),ct.x=void 0,ct.y=void 0;return ct},intersects:function(R,O){return R===O?!1:!R.isCircle&&!O.isCircle?!(R.right<=O.left||R.bottom<=O.top||R.left>=O.right||R.top>=O.bottom):R.isCircle?O.isCircle?l(R.center,O.center)<=R.halfWidth+O.halfWidth:this.circleBodyIntersects(R,O):this.circleBodyIntersects(O,R)},circleBodyIntersects:function(R,O){var w=a(R.center.x,O.left,O.right),G=a(R.center.y,O.top,O.bottom),U=(R.center.x-w)*(R.center.x-w),z=(R.center.y-G)*(R.center.y-G);return U+z<=R.halfWidth*R.halfWidth},overlap:function(R,O,w,G,U){return w===void 0&&(w=null),G===void 0&&(G=null),U===void 0&&(U=w),this.collideObjects(R,O,w,G,U,!0)},collide:function(R,O,w,G,U){return w===void 0&&(w=null),G===void 0&&(G=null),U===void 0&&(U=w),this.collideObjects(R,O,w,G,U,!1)},collideObjects:function(R,O,w,G,U,z){var V,Y;R.isParent&&(R.physicsType===void 0||O===void 0||R===O)&&(R=R.children.entries),O&&O.isParent&&O.physicsType===void 0&&(O=O.children.entries);var W=Array.isArray(R),H=Array.isArray(O);if(this._total=0,!W&&!H)this.collideHandler(R,O,w,G,U,z);else if(!W&&H)for(V=0;V0},collideHandler:function(R,O,w,G,U,z){if(O===void 0&&R.isParent)return this.collideGroupVsGroup(R,R,w,G,U,z);if(!R||!O)return!1;if(R.body||R.isBody){if(O.body||O.isBody)return this.collideSpriteVsSprite(R,O,w,G,U,z);if(O.isParent)return this.collideSpriteVsGroup(R,O,w,G,U,z);if(O.isTilemap)return this.collideSpriteVsTilemapLayer(R,O,w,G,U,z)}else if(R.isParent){if(O.body||O.isBody)return this.collideSpriteVsGroup(O,R,w,G,U,z);if(O.isParent)return this.collideGroupVsGroup(R,O,w,G,U,z);if(O.isTilemap)return this.collideGroupVsTilemapLayer(R,O,w,G,U,z)}else if(R.isTilemap){if(O.body||O.isBody)return this.collideSpriteVsTilemapLayer(O,R,w,G,U,z);if(O.isParent)return this.collideGroupVsTilemapLayer(O,R,w,G,U,z)}},canCollide:function(R,O){return R&&O&&(R.collisionMask&O.collisionCategory)!==0&&(O.collisionMask&R.collisionCategory)!==0},collideSpriteVsSprite:function(R,O,w,G,U,z){var V=R.isBody?R:R.body,Y=O.isBody?O:O.body;return this.canCollide(V,Y)?(this.separate(V,Y,G,U,z)&&(w&&w.call(U,R,O),this._total++),!0):!1},collideSpriteVsGroup:function(R,O,w,G,U,z){var V=R.isBody?R:R.body;if(!(O.length===0||!V||!V.enable||V.checkCollision.none||!this.canCollide(V,O))){var Y,W,H;if(this.useTree||O.physicsType===e.STATIC_BODY){var K=this.treeMinMax;K.minX=V.left,K.minY=V.top,K.maxX=V.right,K.maxY=V.bottom;var Q=O.physicsType===e.DYNAMIC_BODY?this.tree.search(K):this.staticTree.search(K);for(W=Q.length,Y=0;Y{/** + */var d=t(55495),p=t(37742),l=t(45319),r=t(83419),n=t(79342),e=t(37747),s=t(20339),o=t(52816),i=t(50792),a=t(63012),u=t(43855),h=t(5470),f=t(94977),v=t(64897),m=t(45170),g=t(96523),x=t(35154),y=t(36383),S=t(25774),C=t(96602),E=t(87841),M=t(59542),P=t(40012),A=t(14087),R=t(89936),F=t(35072),D=t(72624),w=t(2483),G=t(61340),N=t(26099),b=t(15994),B=new r({Extends:i,initialize:function(L,I){i.call(this),this.scene=L,this.bodies=new F,this.staticBodies=new F,this.pendingDestroy=new F,this.colliders=new S,this.gravity=new N(x(I,"gravity.x",0),x(I,"gravity.y",0)),this.bounds=new E(x(I,"x",0),x(I,"y",0),x(I,"width",L.sys.scale.width),x(I,"height",L.sys.scale.height)),this.checkCollision={up:x(I,"checkCollision.up",!0),down:x(I,"checkCollision.down",!0),left:x(I,"checkCollision.left",!0),right:x(I,"checkCollision.right",!0)},this.fps=x(I,"fps",60),this.fixedStep=x(I,"fixedStep",!0),this._elapsed=0,this._frameTime=1/this.fps,this._frameTimeMS=1e3*this._frameTime,this.stepsLastFrame=0,this.timeScale=x(I,"timeScale",1),this.OVERLAP_BIAS=x(I,"overlapBias",4),this.TILE_BIAS=x(I,"tileBias",16),this.forceX=x(I,"forceX",!1),this.isPaused=x(I,"isPaused",!1),this._total=0,this.drawDebug=x(I,"debug",!1),this.debugGraphic,this.defaults={debugShowBody:x(I,"debugShowBody",!0),debugShowStaticBody:x(I,"debugShowStaticBody",!0),debugShowVelocity:x(I,"debugShowVelocity",!0),bodyDebugColor:x(I,"debugBodyColor",16711935),staticBodyDebugColor:x(I,"debugStaticBodyColor",255),velocityDebugColor:x(I,"debugVelocityColor",65280)},this.maxEntries=x(I,"maxEntries",16),this.useTree=x(I,"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 G,this._tempMatrix2=new G,this.tileFilterOptions={isColliding:!0,isNotEmpty:!0,hasInterestingFace:!0},this.drawDebug&&this.createDebugGraphic()},enable:function(O,L){L===void 0&&(L=e.DYNAMIC_BODY),Array.isArray(O)||(O=[O]);for(var I=0;I=X;for(this.fixedStep||(U=L*.001,Y=!0,this._elapsed=0),I=0;I=X;)this._elapsed-=X,this.step(U)}},step:function(O){var L,I,U=this.bodies.entries,X=U.length;for(L=0;L0){var W=this.tree,H=this.staticTree;for(I=Y.entries,U=I.length,O=0;O-1&&O.velocity.length()>j&&(O.velocity.normalize().scale(j),K=j),O.speed=K},separate:function(O,L,I,U,X){var z,V,Y=!1,W=!0;if(!O.enable||!L.enable||O.checkCollision.none||L.checkCollision.none||!this.intersects(O,L)||I&&I.call(U,O.gameObject||O,L.gameObject||L)===!1)return Y;if(O.isCircle||L.isCircle){var H=this.separateCircle(O,L,X);H.result?(Y=!0,W=!1):(z=H.x,V=H.y,W=!0)}if(W){var K=!1,j=!1,Z=this.OVERLAP_BIAS;X?(K=A(O,L,X,Z,z),j=R(O,L,X,Z,V)):this.forceX||Math.abs(this.gravity.y+O.gravity.y)it&&(j=s(_,rt,it,Q)-at):rt>st&&(_it&&(j=s(_,rt,it,st)-at)),j*=-1}else j=O.halfWidth+L.halfWidth-o(z,V);O.overlapR=j,L.overlapR=j;var ut=d(z,V),ft=(j+y.EPSILON)*Math.cos(ut),mt=(j+y.EPSILON)*Math.sin(ut),pt={overlap:j,result:!1,x:ft,y:mt};if(I&&(!Z||Z&&j!==0))return pt.result=!0,pt;if(!Z&&j===0||Y&&W||O.customSeparateX||L.customSeparateX)return pt.x=void 0,pt.y=void 0,pt;var xt=!O.pushable&&!L.pushable;if(Z){var vt=z.x-V.x,yt=z.y-V.y,dt=Math.sqrt(Math.pow(vt,2)+Math.pow(yt,2)),St=(V.x-z.x)/dt||0,gt=(V.y-z.y)/dt||0,Ct=2*(H.x*St+H.y*gt-K.x*St-K.y*gt)/(O.mass+L.mass);(Y||W||!O.pushable||!L.pushable)&&(Ct*=2),!Y&&O.pushable&&(H.x=H.x-Ct/O.mass*St,H.y=H.y-Ct/O.mass*gt,H.multiply(O.bounce)),!W&&L.pushable&&(K.x=K.x+Ct/L.mass*St,K.y=K.y+Ct/L.mass*gt,K.multiply(L.bounce)),!Y&&!W&&(ft*=.5,mt*=.5),!Y||O.pushable||xt?(O.x-=ft,O.y-=mt,O.updateCenter()):(!W||L.pushable||xt)&&(L.x+=ft,L.y+=mt,L.updateCenter()),pt.result=!0}else!Y||O.pushable||xt?(O.x-=ft,O.y-=mt,O.updateCenter()):(!W||L.pushable||xt)&&(L.x+=ft,L.y+=mt,L.updateCenter()),pt.x=void 0,pt.y=void 0;return pt},intersects:function(O,L){return O===L?!1:!O.isCircle&&!L.isCircle?!(O.right<=L.left||O.bottom<=L.top||O.left>=L.right||O.top>=L.bottom):O.isCircle?L.isCircle?o(O.center,L.center)<=O.halfWidth+L.halfWidth:this.circleBodyIntersects(O,L):this.circleBodyIntersects(L,O)},circleBodyIntersects:function(O,L){var I=l(O.center.x,L.left,L.right),U=l(O.center.y,L.top,L.bottom),X=(O.center.x-I)*(O.center.x-I),z=(O.center.y-U)*(O.center.y-U);return X+z<=O.halfWidth*O.halfWidth},overlap:function(O,L,I,U,X){return I===void 0&&(I=null),U===void 0&&(U=null),X===void 0&&(X=I),this.collideObjects(O,L,I,U,X,!0)},collide:function(O,L,I,U,X){return I===void 0&&(I=null),U===void 0&&(U=null),X===void 0&&(X=I),this.collideObjects(O,L,I,U,X,!1)},collideObjects:function(O,L,I,U,X,z){var V,Y;O.isParent&&(O.physicsType===void 0||L===void 0||O===L)&&(O=O.children.entries),L&&L.isParent&&L.physicsType===void 0&&(L=L.children.entries);var W=Array.isArray(O),H=Array.isArray(L);if(this._total=0,!W&&!H)this.collideHandler(O,L,I,U,X,z);else if(!W&&H)for(V=0;V0},collideHandler:function(O,L,I,U,X,z){if(L===void 0&&O.isParent)return this.collideGroupVsGroup(O,O,I,U,X,z);if(!O||!L)return!1;if(O.body||O.isBody){if(L.body||L.isBody)return this.collideSpriteVsSprite(O,L,I,U,X,z);if(L.isParent)return this.collideSpriteVsGroup(O,L,I,U,X,z);if(L.isTilemap)return this.collideSpriteVsTilemapLayer(O,L,I,U,X,z)}else if(O.isParent){if(L.body||L.isBody)return this.collideSpriteVsGroup(L,O,I,U,X,z);if(L.isParent)return this.collideGroupVsGroup(O,L,I,U,X,z);if(L.isTilemap)return this.collideGroupVsTilemapLayer(O,L,I,U,X,z)}else if(O.isTilemap){if(L.body||L.isBody)return this.collideSpriteVsTilemapLayer(L,O,I,U,X,z);if(L.isParent)return this.collideGroupVsTilemapLayer(L,O,I,U,X,z)}},canCollide:function(O,L){return O&&L&&(O.collisionMask&L.collisionCategory)!==0&&(L.collisionMask&O.collisionCategory)!==0},collideSpriteVsSprite:function(O,L,I,U,X,z){var V=O.isBody?O:O.body,Y=L.isBody?L:L.body;return this.canCollide(V,Y)?(this.separate(V,Y,U,X,z)&&(I&&I.call(X,O,L),this._total++),!0):!1},collideSpriteVsGroup:function(O,L,I,U,X,z){var V=O.isBody?O:O.body;if(!(L.getLength()===0||!V||!V.enable||V.checkCollision.none||!this.canCollide(V,L))){var Y,W,H;if(this.useTree||L.physicsType===e.STATIC_BODY){var K=this.treeMinMax;K.minX=V.left,K.minY=V.top,K.maxX=V.right,K.maxY=V.bottom;var j=L.physicsType===e.DYNAMIC_BODY?this.tree.search(K):this.staticTree.search(K);for(W=j.length,Y=0;Y{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4271,11 +4275,11 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T={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,p,a){return this.body.setCollideWorldBounds(t,d,p,a),this}};c.exports=T},78389:(c,T,t)=>{/** + */var T={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,p,l){return this.body.setCollideWorldBounds(t,d,p,l),this}};c.exports=T},78389:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(79599),p={setCollisionCategory:function(a){var r=this.body?this.body:this;return r.collisionCategory=a,this},willCollideWith:function(a){var r=this.body?this.body:this;return(r.collisionMask&a)!==0},addCollidesWith:function(a){var r=this.body?this.body:this;return r.collisionMask=r.collisionMask|a,this},removeCollidesWith:function(a){var r=this.body?this.body:this;return r.collisionMask=r.collisionMask&~a,this},setCollidesWith:function(a){var r=this.body?this.body:this;return r.collisionMask=d(a),this},resetCollisionCategory:function(){var a=this.body?this.body:this;return a.collisionCategory=1,a.collisionMask=1,this}};c.exports=p},87118:c=>{/** + */var d=t(79599),p={setCollisionCategory:function(l){var r=this.body?this.body:this;return r.collisionCategory=l,this},willCollideWith:function(l){var r=this.body?this.body:this;return(r.collisionMask&l)!==0},addCollidesWith:function(l){var r=this.body?this.body:this;return r.collisionMask=r.collisionMask|l,this},removeCollidesWith:function(l){var r=this.body?this.body:this;return r.collisionMask=r.collisionMask&~l,this},setCollidesWith:function(l){var r=this.body?this.body:this;return r.collisionMask=d(l),this},resetCollisionCategory:function(){var l=this.body?this.body:this;return l.collisionCategory=1,l.collisionMask=2147483647,this}};c.exports=p},87118:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4287,7 +4291,7 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T={setDirectControl:function(t){return this.body.setDirectControl(t),this},enableBody:function(t,d,p,a,r){return t&&this.body.reset(d,p),a&&(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}};c.exports=T},40831:c=>{/** + */var T={setDirectControl:function(t){return this.body.setDirectControl(t),this},enableBody:function(t,d,p,l,r){return t&&this.body.reset(d,p),l&&(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}};c.exports=T},40831:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4303,7 +4307,7 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T={setMass:function(t){return this.body.mass=t,this}};c.exports=T},72441:(c,T,t)=>{var d=t(47956),p=t(96503),a=t(2044),r=t(81491),n=function(e,s,l,i,o,u){var h=d(e,s-i,l-i,2*i,2*i,o,u);if(h.length===0)return h;for(var f=new p(s,l,i),v=new p,m=[],x=0;x{var T=function(t,d,p,a,r,n,e){n===void 0&&(n=!0),e===void 0&&(e=!1);var s=[],l=[],i=t.treeMinMax;if(i.minX=d,i.minY=p,i.maxX=d+a,i.maxY=p+r,e&&(l=t.staticTree.search(i)),n&&t.useTree)s=t.tree.search(i);else if(n){var o=t.bodies,u={position:{x:d,y:p},left:d,top:p,right:d+a,bottom:p+r,isCircle:!1},h=t.intersects;o.iterate(function(f){h(f,u)&&s.push(f)})}return l.concat(s)};c.exports=T},62121:c=>{/** + */var T={setMass:function(t){return this.body.mass=t,this}};c.exports=T},72441:(c,T,t)=>{var d=t(47956),p=t(96503),l=t(2044),r=t(81491),n=function(e,s,o,i,a,u){var h=d(e,s-i,o-i,2*i,2*i,a,u);if(h.length===0)return h;for(var f=new p(s,o,i),v=new p,m=[],g=0;g{var T=function(t,d,p,l,r,n,e){n===void 0&&(n=!0),e===void 0&&(e=!1);var s=[],o=[],i=t.treeMinMax;if(i.minX=d,i.minY=p,i.maxX=d+l,i.maxY=p+r,e&&(o=t.staticTree.search(i)),n&&t.useTree)s=t.tree.search(i);else if(n){var a=t.bodies,u={position:{x:d,y:p},left:d,top:p,right:d+l,bottom:p+r,isCircle:!1},h=t.intersects;a.iterate(function(f){h(f,u)&&s.push(f)})}return o.concat(s)};c.exports=T},62121:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4363,7 +4367,7 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(37747),p=t(79291),a={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)};a=p(!1,a,d),c.exports=a},96602:c=>{/** + */var d=t(37747),p=t(79291),l={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)};l=p(!1,l,d),c.exports=l},96602:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4379,15 +4383,15 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(21329),p=t(53442),a=t(2483),r=function(n,e,s,l,i,o,u){var h=l.left,f=l.top,v=l.right,m=l.bottom,x=s.faceLeft||s.faceRight,g=s.faceTop||s.faceBottom;if(u||(x=!0,g=!0),!x&&!g)return!1;var y=0,S=0,C=0,E=1;if(e.deltaAbsX()>e.deltaAbsY()?C=-1:e.deltaAbsX(){/** + */var d=t(21329),p=t(53442),l=t(2483),r=function(n,e,s,o,i,a,u){var h=o.left,f=o.top,v=o.right,m=o.bottom,g=s.faceLeft||s.faceRight,x=s.faceTop||s.faceBottom;if(u||(g=!0,x=!0),!g&&!x)return!1;var y=0,S=0,C=0,E=1;if(e.deltaAbsX()>e.deltaAbsY()?C=-1:e.deltaAbsX(){/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(36294),p=function(a,r,n,e,s,l){var i=0,o=r.faceLeft,u=r.faceRight,h=r.collideLeft,f=r.collideRight;return l||(o=!0,u=!0,h=!0,f=!0),a.deltaX()<0&&f&&a.checkCollision.left?u&&a.x0&&h&&a.checkCollision.right&&o&&a.right>n&&(i=a.right-n,i>s&&(i=0)),i!==0&&(a.customSeparateX?a.overlapX=i:d(a,i)),i};c.exports=p},53442:(c,T,t)=>{/** + */var d=t(36294),p=function(l,r,n,e,s,o){var i=0,a=r.faceLeft,u=r.faceRight,h=r.collideLeft,f=r.collideRight;return o||(a=!0,u=!0,h=!0,f=!0),l.deltaX()<0&&f&&l.checkCollision.left?u&&l.x0&&h&&l.checkCollision.right&&a&&l.right>n&&(i=l.right-n,i>s&&(i=0)),i!==0&&(l.customSeparateX?l.overlapX=i:d(l,i)),i};c.exports=p},53442:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(67013),p=function(a,r,n,e,s,l){var i=0,o=r.faceTop,u=r.faceBottom,h=r.collideUp,f=r.collideDown;return l||(o=!0,u=!0,h=!0,f=!0),a.deltaY()<0&&f&&a.checkCollision.up?u&&a.y0&&h&&a.checkCollision.down&&o&&a.bottom>n&&(i=a.bottom-n,i>s&&(i=0)),i!==0&&(a.customSeparateY?a.overlapY=i:d(a,i)),i};c.exports=p},2483:c=>{/** + */var d=t(67013),p=function(l,r,n,e,s,o){var i=0,a=r.faceTop,u=r.faceBottom,h=r.collideUp,f=r.collideDown;return o||(a=!0,u=!0,h=!0,f=!0),l.deltaY()<0&&f&&l.checkCollision.up?u&&l.y0&&h&&l.checkCollision.down&&a&&l.bottom>n&&(i=l.bottom-n,i>s&&(i=0)),i!==0&&(l.customSeparateY?l.overlapY=i:d(l,i)),i};c.exports=p},2483:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4403,7 +4407,7 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(26099),a=new d({initialize:function(){this.boundsCenter=new p,this.centerDiff=new p},parseBody:function(r){if(r=r.hasOwnProperty("body")?r.body:r,!r.hasOwnProperty("bounds")||!r.hasOwnProperty("centerOfMass"))return!1;var n=this.boundsCenter,e=this.centerDiff,s=r.bounds.max.x-r.bounds.min.x,l=r.bounds.max.y-r.bounds.min.y,i=s*r.centerOfMass.x,o=l*r.centerOfMass.y;return n.set(s/2,l/2),e.set(i-n.x,o-n.y),!0},getTopLeft:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.boundsCenter,l=this.centerDiff;return new p(n+s.x+l.x,e+s.y+l.y)}return!1},getTopCenter:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.boundsCenter,l=this.centerDiff;return new p(n+l.x,e+s.y+l.y)}return!1},getTopRight:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.boundsCenter,l=this.centerDiff;return new p(n-(s.x-l.x),e+s.y+l.y)}return!1},getLeftCenter:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.boundsCenter,l=this.centerDiff;return new p(n+s.x+l.x,e+l.y)}return!1},getCenter:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.centerDiff;return new p(n+s.x,e+s.y)}return!1},getRightCenter:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.boundsCenter,l=this.centerDiff;return new p(n-(s.x-l.x),e+l.y)}return!1},getBottomLeft:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.boundsCenter,l=this.centerDiff;return new p(n+s.x+l.x,e-(s.y-l.y))}return!1},getBottomCenter:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.boundsCenter,l=this.centerDiff;return new p(n+l.x,e-(s.y-l.y))}return!1},getBottomRight:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.boundsCenter,l=this.centerDiff;return new p(n-(s.x-l.x),e-(s.y-l.y))}return!1}});c.exports=a},19933:(c,T,t)=>{/** + */var d=t(83419),p=t(26099),l=new d({initialize:function(){this.boundsCenter=new p,this.centerDiff=new p},parseBody:function(r){if(r=r.hasOwnProperty("body")?r.body:r,!r.hasOwnProperty("bounds")||!r.hasOwnProperty("centerOfMass"))return!1;var n=this.boundsCenter,e=this.centerDiff,s=r.bounds.max.x-r.bounds.min.x,o=r.bounds.max.y-r.bounds.min.y,i=s*r.centerOfMass.x,a=o*r.centerOfMass.y;return n.set(s/2,o/2),e.set(i-n.x,a-n.y),!0},getTopLeft:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.boundsCenter,o=this.centerDiff;return new p(n+s.x+o.x,e+s.y+o.y)}return!1},getTopCenter:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.boundsCenter,o=this.centerDiff;return new p(n+o.x,e+s.y+o.y)}return!1},getTopRight:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.boundsCenter,o=this.centerDiff;return new p(n-(s.x-o.x),e+s.y+o.y)}return!1},getLeftCenter:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.boundsCenter,o=this.centerDiff;return new p(n+s.x+o.x,e+o.y)}return!1},getCenter:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.centerDiff;return new p(n+s.x,e+s.y)}return!1},getRightCenter:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.boundsCenter,o=this.centerDiff;return new p(n-(s.x-o.x),e+o.y)}return!1},getBottomLeft:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.boundsCenter,o=this.centerDiff;return new p(n+s.x+o.x,e-(s.y-o.y))}return!1},getBottomCenter:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.boundsCenter,o=this.centerDiff;return new p(n+o.x,e-(s.y-o.y))}return!1},getBottomRight:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.boundsCenter,o=this.centerDiff;return new p(n-(s.x-o.x),e-(s.y-o.y))}return!1}});c.exports=l},19933:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4411,45 +4415,45 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(66280),p=t(83419),a=t(74116),r=t(48140),n=t(74058),e=t(75803),s=t(23181),l=t(34803),i=t(73834),o=t(19496),u=t(85791),h=t(98713),f=t(41598),v=new p({initialize:function(x){this.world=x,this.scene=x.scene,this.sys=x.scene.sys},rectangle:function(m,x,g,y,S){var C=d.rectangle(m,x,g,y,S);return this.world.add(C),C},trapezoid:function(m,x,g,y,S,C){var E=d.trapezoid(m,x,g,y,S,C);return this.world.add(E),E},circle:function(m,x,g,y,S){var C=d.circle(m,x,g,y,S);return this.world.add(C),C},polygon:function(m,x,g,y,S){var C=d.polygon(m,x,g,y,S);return this.world.add(C),C},fromVertices:function(m,x,g,y,S,C,E){typeof g=="string"&&(g=f.fromPath(g));var A=d.fromVertices(m,x,g,y,S,C,E);return this.world.add(A),A},fromPhysicsEditor:function(m,x,g,y,S){S===void 0&&(S=!0);var C=o.parseBody(m,x,g,y);return S&&!this.world.has(C)&&this.world.add(C),C},fromSVG:function(m,x,g,y,S,C){y===void 0&&(y=1),S===void 0&&(S={}),C===void 0&&(C=!0);for(var E=g.getElementsByTagName("path"),A=[],P=0;P{/** + */var d=t(66280),p=t(83419),l=t(74116),r=t(48140),n=t(74058),e=t(75803),s=t(23181),o=t(34803),i=t(73834),a=t(19496),u=t(85791),h=t(98713),f=t(41598),v=new p({initialize:function(g){this.world=g,this.scene=g.scene,this.sys=g.scene.sys},rectangle:function(m,g,x,y,S){var C=d.rectangle(m,g,x,y,S);return this.world.add(C),C},trapezoid:function(m,g,x,y,S,C){var E=d.trapezoid(m,g,x,y,S,C);return this.world.add(E),E},circle:function(m,g,x,y,S){var C=d.circle(m,g,x,y,S);return this.world.add(C),C},polygon:function(m,g,x,y,S){var C=d.polygon(m,g,x,y,S);return this.world.add(C),C},fromVertices:function(m,g,x,y,S,C,E){typeof x=="string"&&(x=f.fromPath(x));var M=d.fromVertices(m,g,x,y,S,C,E);return this.world.add(M),M},fromPhysicsEditor:function(m,g,x,y,S){S===void 0&&(S=!0);var C=a.parseBody(m,g,x,y);return S&&!this.world.has(C)&&this.world.add(C),C},fromSVG:function(m,g,x,y,S,C){y===void 0&&(y=1),S===void 0&&(S={}),C===void 0&&(C=!0);for(var E=x.getElementsByTagName("path"),M=[],P=0;P{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(31884),p=t(95540),a=t(26099);function r(e){return!!e.get&&typeof e.get=="function"||!!e.set&&typeof e.set=="function"}var n=function(e,s,l,i){l===void 0&&(l={}),i===void 0&&(i=!0);var o=s.x,u=s.y;s.body={temp:!0,position:{x:o,y:u}};var h=[d.Bounce,d.Collision,d.Force,d.Friction,d.Gravity,d.Mass,d.Sensor,d.SetBody,d.Sleep,d.Static,d.Transform,d.Velocity];if(h.forEach(function(v){for(var m in v)r(v[m])?Object.defineProperty(s,m,{get:v[m].get,set:v[m].set}):Object.defineProperty(s,m,{value:v[m]})}),s.world=e,s._tempVec2=new a(o,u),l.hasOwnProperty("type")&&l.type==="body")s.setExistingBody(l,i);else{var f=p(l,"shape",null);f||(f="rectangle"),l.addToWorld=i,s.setBody(f,l)}return s};c.exports=n},23181:(c,T,t)=>{/** + */var d=t(31884),p=t(95540),l=t(26099);function r(e){return!!e.get&&typeof e.get=="function"||!!e.set&&typeof e.set=="function"}var n=function(e,s,o,i){o===void 0&&(o={}),i===void 0&&(i=!0);var a=s.x,u=s.y;s.body={temp:!0,position:{x:a,y:u}};var h=[d.Bounce,d.Collision,d.Force,d.Friction,d.Gravity,d.Mass,d.Sensor,d.SetBody,d.Sleep,d.Static,d.Transform,d.Velocity];if(h.forEach(function(v){for(var m in v)r(v[m])?Object.defineProperty(s,m,{get:v[m].get,set:v[m].set}):Object.defineProperty(s,m,{value:v[m]})}),s.world=e,s._tempVec2=new l(a,u),o.hasOwnProperty("type")&&o.type==="body")s.setExistingBody(o,i);else{var f=p(o,"shape",null);f||(f="rectangle"),o.addToWorld=i,s.setBody(f,o)}return s};c.exports=n},23181:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(31884),a=t(95643),r=t(95540),n=t(88571),e=t(72699),s=t(26099),l=new d({Extends:n,Mixins:[p.Bounce,p.Collision,p.Force,p.Friction,p.Gravity,p.Mass,p.Sensor,p.SetBody,p.Sleep,p.Static,p.Transform,p.Velocity,e],initialize:function(o,u,h,f,v,m){a.call(this,o.scene,"Image"),this._crop=this.resetCropObject(),this.setTexture(f,v),this.setSizeToFrame(),this.setOrigin(),this.world=o,this._tempVec2=new s(u,h);var x=r(m,"shape",null);x?this.setBody(x,m):this.setRectangle(this.width,this.height,m),this.setPosition(u,h),this.initPipeline(),this.initPostPipeline(!0)}});c.exports=l},42045:(c,T,t)=>{/** + */var d=t(83419),p=t(31884),l=t(95643),r=t(95540),n=t(88571),e=t(72699),s=t(26099),o=new d({Extends:n,Mixins:[p.Bounce,p.Collision,p.Force,p.Friction,p.Gravity,p.Mass,p.Sensor,p.SetBody,p.Sleep,p.Static,p.Transform,p.Velocity,e],initialize:function(a,u,h,f,v,m){l.call(this,a.scene,"Image"),this._crop=this.resetCropObject(),this.setTexture(f,v),this.setSizeToFrame(),this.setOrigin(),this.world=a,this._tempVec2=new s(u,h);var g=r(m,"shape",null);g?this.setBody(g,m):this.setRectangle(this.width,this.height,m),this.setPosition(u,h),this.initPipeline(),this.initPostPipeline(!0)}});c.exports=o},42045:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(60461),p=t(66615),a=t(66280),r=t(22562),n=t(68174),e=t(15647),s=t(83419),l=t(52284),i=t(53402),o=t(69351),u=t(74116),h=t(48140),f=t(81388),v=t(20339),m=t(28137),x=t(95540),g=t(35154),y=t(18210),S=t(40178),C=t(6790),E=t(74507),A=t(46975),P=t(4506),M=t(99561),F=t(73832),L=t(37277),b=t(73296),B=t(66272),N=t(44594),X=t(74058),D=t(31725),I=t(41598),R=t(68243);i.setDecomp(t(55973));var O=new s({initialize:function(G){this.scene=G,this.systems=G.sys,this.config=this.getConfig(),this.world,this.add,this.bodyBounds,this.body=r,this.composite=o,this.collision=l,this.detector=f,this.pair=P,this.pairs=M,this.query=b,this.resolver=B,this.constraint=h,this.bodies=a,this.composites=u,this.axes=p,this.bounds=e,this.svg=X,this.vector=D,this.vertices=I,this.verts=I,this._tempVec2=D.create(),g(this.config,"plugins.collisionevents",!0)&&this.enableCollisionEventsPlugin(),g(this.config,"plugins.attractors",!1)&&this.enableAttractorPlugin(),g(this.config,"plugins.wrap",!1)&&this.enableWrapPlugin(),B._restingThresh=g(this.config,"restingThresh",4),B._restingThreshTangent=g(this.config,"restingThreshTangent",6),B._positionDampen=g(this.config,"positionDampen",.9),B._positionWarming=g(this.config,"positionWarming",.8),B._frictionNormalMultiplier=g(this.config,"frictionNormalMultiplier",5),G.sys.events.once(N.BOOT,this.boot,this),G.sys.events.on(N.START,this.start,this)},boot:function(){this.world=new R(this.scene,this.config),this.add=new m(this.world),this.bodyBounds=new n,this.systems.events.once(N.DESTROY,this.destroy,this)},start:function(){this.world||(this.world=new R(this.scene,this.config),this.add=new m(this.world));var w=this.systems.events;w.on(N.UPDATE,this.world.update,this.world),w.on(N.POST_UPDATE,this.world.postUpdate,this.world),w.once(N.SHUTDOWN,this.shutdown,this)},getConfig:function(){var w=this.systems.game.config.physics,G=this.systems.settings.physics,U=A(x(G,"matter",{}),x(w,"matter",{}));return U},enableAttractorPlugin:function(){return F.register(y),F.use(C,y),this},enableWrapPlugin:function(){return F.register(E),F.use(C,E),this},enableCollisionEventsPlugin:function(){return F.register(S),F.use(C,S),this},pause:function(){return this.world.pause()},resume:function(){return this.world.resume()},set60Hz:function(){return this.world.getDelta=this.world.update60Hz,this.world.autoUpdate=!0,this},set30Hz:function(){return this.world.getDelta=this.world.update30Hz,this.world.autoUpdate=!0,this},step:function(w,G){this.world.step(w,G)},containsPoint:function(w,G,U){w=this.getMatterBodies(w);var z=D.create(G,U),V=b.point(w,z);return V.length>0},intersectPoint:function(w,G,U){U=this.getMatterBodies(U);var z=D.create(w,G),V=[],Y=b.point(U,z);return Y.forEach(function(W){V.indexOf(W)===-1&&V.push(W)}),V},intersectRect:function(w,G,U,z,V,Y){V===void 0&&(V=!1),Y=this.getMatterBodies(Y);var W={min:{x:w,y:G},max:{x:w+U,y:G+z}},H=[],K=b.region(Y,W,V);return K.forEach(function(Q){H.indexOf(Q)===-1&&H.push(Q)}),H},intersectRay:function(w,G,U,z,V,Y){V===void 0&&(V=1),Y=this.getMatterBodies(Y);for(var W=[],H=b.ray(Y,D.create(w,G),D.create(U,z),V),K=0;K{/** + */var d=t(60461),p=t(66615),l=t(66280),r=t(22562),n=t(68174),e=t(15647),s=t(83419),o=t(52284),i=t(53402),a=t(69351),u=t(74116),h=t(48140),f=t(81388),v=t(20339),m=t(28137),g=t(95540),x=t(35154),y=t(46975),S=t(4506),C=t(99561),E=t(37277),M=t(73296),P=t(66272),A=t(44594),R=t(74058),F=t(31725),D=t(41598),w=t(68243);i.setDecomp(t(55973));var G=new s({initialize:function(b){this.scene=b,this.systems=b.sys,this.config=this.getConfig(),this.world,this.add,this.bodyBounds,this.body=r,this.composite=a,this.collision=o,this.detector=f,this.pair=S,this.pairs=C,this.query=M,this.resolver=P,this.constraint=h,this.bodies=l,this.composites=u,this.axes=p,this.bounds=e,this.svg=R,this.vector=F,this.vertices=D,this.verts=D,this._tempVec2=F.create(),P._restingThresh=x(this.config,"restingThresh",4),P._restingThreshTangent=x(this.config,"restingThreshTangent",6),P._positionDampen=x(this.config,"positionDampen",.9),P._positionWarming=x(this.config,"positionWarming",.8),P._frictionNormalMultiplier=x(this.config,"frictionNormalMultiplier",5),b.sys.events.once(A.BOOT,this.boot,this),b.sys.events.on(A.START,this.start,this)},boot:function(){this.world=new w(this.scene,this.config),this.add=new m(this.world),this.bodyBounds=new n,this.systems.events.once(A.DESTROY,this.destroy,this)},start:function(){this.world||(this.world=new w(this.scene,this.config),this.add=new m(this.world));var N=this.systems.events;N.on(A.UPDATE,this.world.update,this.world),N.on(A.POST_UPDATE,this.world.postUpdate,this.world),N.once(A.SHUTDOWN,this.shutdown,this)},getConfig:function(){var N=this.systems.game.config.physics,b=this.systems.settings.physics,B=y(g(b,"matter",{}),g(N,"matter",{}));return B},pause:function(){return this.world.pause()},resume:function(){return this.world.resume()},set60Hz:function(){return this.world.getDelta=this.world.update60Hz,this.world.autoUpdate=!0,this},set30Hz:function(){return this.world.getDelta=this.world.update30Hz,this.world.autoUpdate=!0,this},step:function(N,b){this.world.step(N,b)},containsPoint:function(N,b,B){N=this.getMatterBodies(N);var O=F.create(b,B),L=M.point(N,O);return L.length>0},intersectPoint:function(N,b,B){B=this.getMatterBodies(B);var O=F.create(N,b),L=[],I=M.point(B,O);return I.forEach(function(U){L.indexOf(U)===-1&&L.push(U)}),L},intersectRect:function(N,b,B,O,L,I){L===void 0&&(L=!1),I=this.getMatterBodies(I);var U={min:{x:N,y:b},max:{x:N+B,y:b+O}},X=[],z=M.region(I,U,L);return z.forEach(function(V){X.indexOf(V)===-1&&X.push(V)}),X},intersectRay:function(N,b,B,O,L,I){L===void 0&&(L=1),I=this.getMatterBodies(I);for(var U=[],X=M.ray(I,F.create(N,b),F.create(B,O),L),z=0;z{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(9674),p=t(83419),a=t(31884),r=t(95643),n=t(95540),e=t(72699),s=t(68287),l=t(26099),i=new p({Extends:s,Mixins:[a.Bounce,a.Collision,a.Force,a.Friction,a.Gravity,a.Mass,a.Sensor,a.SetBody,a.Sleep,a.Static,a.Transform,a.Velocity,e],initialize:function(u,h,f,v,m,x){r.call(this,u.scene,"Sprite"),this._crop=this.resetCropObject(),this.anims=new d(this),this.setTexture(v,m),this.setSizeToFrame(),this.setOrigin(),this.world=u,this._tempVec2=new l(h,f);var g=n(x,"shape",null);g?this.setBody(g,x):this.setRectangle(this.width,this.height,x),this.setPosition(h,f),this.initPipeline(),this.initPostPipeline(!0)}});c.exports=i},73834:(c,T,t)=>{/** + */var d=t(9674),p=t(83419),l=t(31884),r=t(95643),n=t(95540),e=t(72699),s=t(68287),o=t(26099),i=new p({Extends:s,Mixins:[l.Bounce,l.Collision,l.Force,l.Friction,l.Gravity,l.Mass,l.Sensor,l.SetBody,l.Sleep,l.Static,l.Transform,l.Velocity,e],initialize:function(u,h,f,v,m,g){r.call(this,u.scene,"Sprite"),this._crop=this.resetCropObject(),this.anims=new d(this),this.setTexture(v,m),this.setSizeToFrame(),this.setOrigin(),this.world=u,this._tempVec2=new o(h,f);var x=n(g,"shape",null);x?this.setBody(x,g):this.setRectangle(this.width,this.height,g),this.setPosition(h,f),this.initPipeline(),this.initPostPipeline(!0)}});c.exports=i},73834:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(66280),p=t(22562),a=t(83419),r=t(31884),n=t(62644),e=t(50792),s=t(95540),l=t(97022),i=t(41598),o=new a({Extends:e,Mixins:[r.Bounce,r.Collision,r.Friction,r.Gravity,r.Mass,r.Sensor,r.Sleep,r.Static],initialize:function(h,f,v){e.call(this),this.tile=f,this.world=h,f.physics.matterBody&&f.physics.matterBody.destroy(),f.physics.matterBody=this;var m=s(v,"body",null),x=s(v,"addToWorld",!0);if(m)this.setBody(m,x);else{var g=f.getCollisionGroup(),y=s(g,"objects",[]);y.length>0?this.setFromTileCollision(v):this.setFromTileRectangle(v)}if(f.flipX||f.flipY){var S={x:f.getCenterX(),y:f.getCenterY()},C=f.flipX?-1:1,E=f.flipY?-1:1;p.scale(m,C,E,S)}},setFromTileRectangle:function(u){u===void 0&&(u={}),l(u,"isStatic")||(u.isStatic=!0),l(u,"addToWorld")||(u.addToWorld=!0);var h=this.tile.getBounds(),f=h.x+h.width/2,v=h.y+h.height/2,m=d.rectangle(f,v,h.width,h.height,u);return this.setBody(m,u.addToWorld),this},setFromTileCollision:function(u){u===void 0&&(u={}),l(u,"isStatic")||(u.isStatic=!0),l(u,"addToWorld")||(u.addToWorld=!0);for(var h=this.tile.tilemapLayer.scaleX,f=this.tile.tilemapLayer.scaleY,v=this.tile.getLeft(),m=this.tile.getTop(),x=this.tile.getCollisionGroup(),g=s(x,"objects",[]),y=[],S=0;S1){var X=n(u);X.parts=y,this.setBody(p.create(X),X.addToWorld)}return this},setBody:function(u,h){return h===void 0&&(h=!0),this.body&&this.removeBody(),this.body=u,this.body.gameObject=this,h&&this.world.add(this.body),this},removeBody:function(){return this.body&&(this.world.remove(this.body),this.body.gameObject=void 0,this.body=void 0),this},destroy:function(){this.removeBody(),this.tile.physics.matterBody=void 0,this.removeAllListeners()}});c.exports=o},19496:(c,T,t)=>{/** + */var d=t(66280),p=t(22562),l=t(83419),r=t(31884),n=t(62644),e=t(50792),s=t(95540),o=t(97022),i=t(41598),a=new l({Extends:e,Mixins:[r.Bounce,r.Collision,r.Friction,r.Gravity,r.Mass,r.Sensor,r.Sleep,r.Static],initialize:function(h,f,v){e.call(this),this.tile=f,this.world=h,f.physics.matterBody&&f.physics.matterBody.destroy(),f.physics.matterBody=this;var m=s(v,"body",null),g=s(v,"addToWorld",!0);if(m)this.setBody(m,g);else{var x=f.getCollisionGroup(),y=s(x,"objects",[]);y.length>0?this.setFromTileCollision(v):this.setFromTileRectangle(v)}if(f.flipX||f.flipY){var S={x:f.getCenterX(),y:f.getCenterY()},C=f.flipX?-1:1,E=f.flipY?-1:1;p.scale(m,C,E,S)}},setFromTileRectangle:function(u){u===void 0&&(u={}),o(u,"isStatic")||(u.isStatic=!0),o(u,"addToWorld")||(u.addToWorld=!0);var h=this.tile.getBounds(),f=h.x+h.width/2,v=h.y+h.height/2,m=d.rectangle(f,v,h.width,h.height,u);return this.setBody(m,u.addToWorld),this},setFromTileCollision:function(u){u===void 0&&(u={}),o(u,"isStatic")||(u.isStatic=!0),o(u,"addToWorld")||(u.addToWorld=!0);for(var h=this.tile.tilemapLayer.scaleX,f=this.tile.tilemapLayer.scaleY,v=this.tile.getLeft(),m=this.tile.getTop(),g=this.tile.getCollisionGroup(),x=s(g,"objects",[]),y=[],S=0;S1){var N=n(u);N.parts=y,this.setBody(p.create(N),N.addToWorld)}return this},setBody:function(u,h){return h===void 0&&(h=!0),this.body&&this.removeBody(),this.body=u,this.body.gameObject=this,h&&this.world.add(this.body),this},removeBody:function(){return this.body&&(this.world.remove(this.body),this.body.gameObject=void 0,this.body=void 0),this},destroy:function(){this.removeBody(),this.tile.physics.matterBody=void 0,this.removeAllListeners()}});c.exports=a},19496:(c,T,t)=>{/** * @author Joachim Grill * @author Richard Davey * @copyright 2018 CodeAndWeb GmbH * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(66280),p=t(22562),a=t(53402),r=t(95540),n=t(41598),e={parseBody:function(s,l,i,o){o===void 0&&(o={});for(var u=r(i,"fixtures",[]),h=[],f=0;f{/** + */var d=t(66280),p=t(22562),l=t(53402),r=t(95540),n=t(41598),e={parseBody:function(s,o,i,a){a===void 0&&(a={});for(var u=r(i,"fixtures",[]),h=[],f=0;f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(66280),p=t(22562),a={parseBody:function(r,n,e,s){s===void 0&&(s={});var l,i=e.vertices;if(i.length===1)s.vertices=i[0],l=p.create(s),d.flagCoincidentParts(l.parts);else{for(var o=[],u=0;u{/** + */var d=t(66280),p=t(22562),l={parseBody:function(r,n,e,s){s===void 0&&(s={});var o,i=e.vertices;if(i.length===1)s.vertices=i[0],o=p.create(s),d.flagCoincidentParts(o.parts);else{for(var a=[],u=0;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(15647),p=t(83419),a=t(69351),r=t(48140),n=t(81388),e=t(1121),s=t(8214),l=t(46975),i=t(53614),o=t(26099),u=t(41598),h=new p({initialize:function(v,m,x){x===void 0&&(x={});var g={label:"Pointer Constraint",pointA:{x:0,y:0},pointB:{x:0,y:0},length:.01,stiffness:.1,angularStiffness:1,collisionFilter:{category:1,mask:4294967295,group:0}};this.scene=v,this.world=m,this.camera=null,this.pointer=null,this.active=!0,this.position=new o,this.body=null,this.part=null,this.constraint=r.create(l(x,g)),this.world.on(e.BEFORE_UPDATE,this.update,this),v.sys.input.on(s.POINTER_DOWN,this.onDown,this),v.sys.input.on(s.POINTER_UP,this.onUp,this)},onDown:function(f){this.pointer||(this.pointer=f,this.camera=f.camera)},onUp:function(f){f===this.pointer&&(this.pointer=null)},getBody:function(f){var v=this.position,m=this.constraint;this.camera.getWorldPoint(f.x,f.y,v);for(var x=a.allBodies(this.world.localWorld),g=0;g1?1:0,y=g;y{/** + */var d=t(15647),p=t(83419),l=t(69351),r=t(48140),n=t(81388),e=t(1121),s=t(8214),o=t(46975),i=t(53614),a=t(26099),u=t(41598),h=new p({initialize:function(v,m,g){g===void 0&&(g={});var x={label:"Pointer Constraint",pointA:{x:0,y:0},pointB:{x:0,y:0},length:.01,stiffness:.1,angularStiffness:1,collisionFilter:{category:1,mask:4294967295,group:0}};this.scene=v,this.world=m,this.camera=null,this.pointer=null,this.active=!0,this.position=new a,this.body=null,this.part=null,this.constraint=r.create(o(g,x)),this.world.on(e.BEFORE_UPDATE,this.update,this),v.sys.input.on(s.POINTER_DOWN,this.onDown,this),v.sys.input.on(s.POINTER_UP,this.onUp,this)},onDown:function(f){this.pointer||(this.pointer=f,this.camera=f.camera)},onUp:function(f){f===this.pointer&&(this.pointer=null)},getBody:function(f){var v=this.position,m=this.constraint;this.camera.getWorldPoint(f.x,f.y,v);for(var g=l.allBodies(this.world.localWorld),x=0;x1?1:0,y=x;y{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(66280),p=t(22562),a=t(83419),r=t(53402),n=t(69351),e=t(48413),s=t(50792),l=t(1121),i=t(95540),o=t(35154),u=t(22562),h=t(35810),f=t(73834),v=t(4372),m=t(31725),x=new a({Extends:s,initialize:function(y,S){s.call(this),this.scene=y,this.engine=e.create(S),this.localWorld=this.engine.world;var C=o(S,"gravity",null);C?this.setGravity(C.x,C.y,C.scale):C===!1&&this.setGravity(0,0,0),this.walls={left:null,right:null,top:null,bottom:null},this.enabled=o(S,"enabled",!0),this.getDelta=o(S,"getDelta",this.update60Hz);var E=i(S,"runner",{}),A=i(E,"fps",!1),P=i(E,"fps",60),M=i(E,"delta",1e3/P),F=i(E,"deltaMin",1e3/P),L=i(E,"deltaMax",1e3/(P*.5));A||(P=1e3/M),this.runner={fps:P,deltaSampleSize:i(E,"deltaSampleSize",60),counterTimestamp:0,frameCounter:0,deltaHistory:[],timePrev:null,timeScalePrev:1,frameRequestId:null,isFixed:i(E,"isFixed",!1),delta:M,deltaMin:F,deltaMax:L},this.autoUpdate=o(S,"autoUpdate",!0);var b=o(S,"debug",!1);if(this.drawDebug=typeof b=="object"?!0:b,this.debugGraphic,this.debugConfig={showAxes:i(b,"showAxes",!1),showAngleIndicator:i(b,"showAngleIndicator",!1),angleColor:i(b,"angleColor",15208787),showBroadphase:i(b,"showBroadphase",!1),broadphaseColor:i(b,"broadphaseColor",16757760),showBounds:i(b,"showBounds",!1),boundsColor:i(b,"boundsColor",16777215),showVelocity:i(b,"showVelocity",!1),velocityColor:i(b,"velocityColor",44783),showCollisions:i(b,"showCollisions",!1),collisionColor:i(b,"collisionColor",16094476),showSeparations:i(b,"showSeparations",!1),separationColor:i(b,"separationColor",16753920),showBody:i(b,"showBody",!0),showStaticBody:i(b,"showStaticBody",!0),showInternalEdges:i(b,"showInternalEdges",!1),renderFill:i(b,"renderFill",!1),renderLine:i(b,"renderLine",!0),fillColor:i(b,"fillColor",1075465),fillOpacity:i(b,"fillOpacity",1),lineColor:i(b,"lineColor",2678297),lineOpacity:i(b,"lineOpacity",1),lineThickness:i(b,"lineThickness",1),staticFillColor:i(b,"staticFillColor",857979),staticLineColor:i(b,"staticLineColor",1255396),showSleeping:i(b,"showSleeping",!1),staticBodySleepOpacity:i(b,"staticBodySleepOpacity",.7),sleepFillColor:i(b,"sleepFillColor",4605510),sleepLineColor:i(b,"sleepLineColor",10066585),showSensors:i(b,"showSensors",!0),sensorFillColor:i(b,"sensorFillColor",857979),sensorLineColor:i(b,"sensorLineColor",1255396),showPositions:i(b,"showPositions",!0),positionSize:i(b,"positionSize",4),positionColor:i(b,"positionColor",14697178),showJoint:i(b,"showJoint",!0),jointColor:i(b,"jointColor",14737474),jointLineOpacity:i(b,"jointLineOpacity",1),jointLineThickness:i(b,"jointLineThickness",2),pinSize:i(b,"pinSize",4),pinColor:i(b,"pinColor",4382944),springColor:i(b,"springColor",14697184),anchorColor:i(b,"anchorColor",15724527),anchorSize:i(b,"anchorSize",4),showConvexHulls:i(b,"showConvexHulls",!1),hullColor:i(b,"hullColor",14091216)},this.drawDebug&&this.createDebugGraphic(),this.setEventsProxy(),i(S,"setBounds",!1)){var B=S.setBounds;if(typeof B=="boolean")this.setBounds();else{var N=i(B,"x",0),X=i(B,"y",0),D=i(B,"width",y.sys.scale.width),I=i(B,"height",y.sys.scale.height),R=i(B,"thickness",64),O=i(B,"left",!0),w=i(B,"right",!0),G=i(B,"top",!0),U=i(B,"bottom",!0);this.setBounds(N,X,D,I,R,O,w,G,U)}}},setCompositeRenderStyle:function(g){var y=g.bodies,S=g.constraints,C=g.composites,E,A,P;for(E=0;E0&&(A=E[0].bodyA,P=E[0].bodyB),g.emit(l.COLLISION_START,C,A,P)}),h.on(y,"collisionActive",function(C){var E=C.pairs,A,P;E.length>0&&(A=E[0].bodyA,P=E[0].bodyB),g.emit(l.COLLISION_ACTIVE,C,A,P)}),h.on(y,"collisionEnd",function(C){var E=C.pairs,A,P;E.length>0&&(A=E[0].bodyA,P=E[0].bodyB),g.emit(l.COLLISION_END,C,A,P)})},setBounds:function(g,y,S,C,E,A,P,M,F){return g===void 0&&(g=0),y===void 0&&(y=0),S===void 0&&(S=this.scene.sys.scale.width),C===void 0&&(C=this.scene.sys.scale.height),E===void 0&&(E=64),A===void 0&&(A=!0),P===void 0&&(P=!0),M===void 0&&(M=!0),F===void 0&&(F=!0),this.updateWall(A,"left",g-E,y-E,E,C+E*2),this.updateWall(P,"right",g+S,y-E,E,C+E*2),this.updateWall(M,"top",g,y-E,S,E),this.updateWall(F,"bottom",g,y+C,S,E),this},updateWall:function(g,y,S,C,E,A){var P=this.walls[y];g?(P&&v.remove(this.localWorld,P),S+=E/2,C+=A/2,this.walls[y]=this.create(S,C,E,A,{isStatic:!0,friction:0,frictionStatic:0})):(P&&v.remove(this.localWorld,P),this.walls[y]=null)},createDebugGraphic:function(){var g=this.scene.sys.add.graphics({x:0,y:0});return g.setDepth(Number.MAX_VALUE),this.debugGraphic=g,this.drawDebug=!0,g},disableGravity:function(){return this.localWorld.gravity.x=0,this.localWorld.gravity.y=0,this.localWorld.gravity.scale=0,this},setGravity:function(g,y,S){return g===void 0&&(g=0),y===void 0&&(y=1),S===void 0&&(S=.001),this.localWorld.gravity.x=g,this.localWorld.gravity.y=y,this.localWorld.gravity.scale=S,this},create:function(g,y,S,C,E){var A=d.rectangle(g,y,S,C,E);return v.add(this.localWorld,A),A},add:function(g){return v.add(this.localWorld,g),this},remove:function(g,y){Array.isArray(g)||(g=[g]);for(var S=0;SC.deltaMax?C.deltaMax:y,C.delta=y),C.timeScalePrev=E.timeScale,C.frameCounter+=1,g-C.counterTimestamp>=1e3&&(C.fps=C.frameCounter*((g-C.counterTimestamp)/1e3),C.counterTimestamp=g,C.frameCounter=0),e.update(S,y)}},step:function(g){e.update(this.engine,g)},update60Hz:function(){return 1e3/60},update30Hz:function(){return 1e3/30},has:function(g){var y=g.hasOwnProperty("body")?g.body:g;return n.get(this.localWorld,y.id,y.type)!==null},getAllBodies:function(){return n.allBodies(this.localWorld)},getAllConstraints:function(){return n.allConstraints(this.localWorld)},getAllComposites:function(){return n.allComposites(this.localWorld)},postUpdate:function(){if(this.drawDebug){var g=this.debugConfig,y=this.engine,S=this.debugGraphic,C=n.allBodies(this.localWorld);this.debugGraphic.clear(),g.showBroadphase&&y.broadphase.controller&&this.renderGrid(y.broadphase,S,g.broadphaseColor,.5),g.showBounds&&this.renderBodyBounds(C,S,g.boundsColor,.5),(g.showBody||g.showStaticBody)&&this.renderBodies(C),g.showJoint&&this.renderJoints(),(g.showAxes||g.showAngleIndicator)&&this.renderBodyAxes(C,S,g.showAxes,g.angleColor,.5),g.showVelocity&&this.renderBodyVelocity(C,S,g.velocityColor,1,2),g.showSeparations&&this.renderSeparations(y.pairs.list,S,g.separationColor),g.showCollisions&&this.renderCollisions(y.pairs.list,S,g.collisionColor)}},renderGrid:function(g,y,S,C){y.lineStyle(1,S,C);for(var E=r.keys(g.buckets),A=0;A0){var b=L[0].vertex.x,B=L[0].vertex.y;L.length===2&&(b=(L[0].vertex.x+L[1].vertex.x)/2,B=(L[0].vertex.y+L[1].vertex.y)/2),F.bodyB===F.supports[0].body||F.bodyA.isStatic?y.lineBetween(b-F.normal.x*8,B-F.normal.y*8,b,B):y.lineBetween(b+F.normal.x*8,B+F.normal.y*8,b,B)}}return this},renderBodyBounds:function(g,y,S,C){y.lineStyle(1,S,C);for(var E=0;E1?1:0;F1?1:0;L1?1:0;L1&&this.renderConvexHull(I,y,X,w)}}},renderBody:function(g,y,S,C,E,A,P,M){C===void 0&&(C=null),E===void 0&&(E=null),A===void 0&&(A=1),P===void 0&&(P=null),M===void 0&&(M=null);for(var F=this.debugConfig,L=F.sensorFillColor,b=F.sensorLineColor,B=g.parts,N=B.length,X=N>1?1:0;X1){var P=g.vertices;y.lineStyle(C,S),y.beginPath(),y.moveTo(P[0].x,P[0].y);for(var M=1;M0&&(y.fillStyle(P),y.fillCircle(B.x,B.y,M),y.fillCircle(N.x,N.y,M)),this},resetCollisionIDs:function(){return p._nextCollidingGroupId=1,p._nextNonCollidingGroupId=-1,p._nextCategory=1,this},shutdown:function(){h.off(this.engine),this.removeAllListeners(),v.clear(this.localWorld,!1),e.clear(this.engine),this.drawDebug&&this.debugGraphic.destroy()},destroy:function(){this.shutdown()}});c.exports=x},70410:c=>{/** + */var d=t(66280),p=t(22562),l=t(83419),r=t(53402),n=t(69351),e=t(48413),s=t(50792),o=t(1121),i=t(95540),a=t(35154),u=t(22562),h=t(35810),f=t(73834),v=t(4372),m=t(13037),g=t(31725),x=new l({Extends:s,initialize:function(S,C){s.call(this),this.scene=S,this.engine=e.create(C),this.localWorld=this.engine.world;var E=a(C,"gravity",null);E?this.setGravity(E.x,E.y,E.scale):E===!1&&this.setGravity(0,0,0),this.walls={left:null,right:null,top:null,bottom:null},this.enabled=a(C,"enabled",!0),this.getDelta=a(C,"getDelta",this.update60Hz);var M=i(C,"runner",{}),P=i(M,"fps",!1),A=i(M,"fps",60),R=i(M,"delta",1e3/A),F=i(M,"deltaMin",1e3/A),D=i(M,"deltaMax",1e3/(A*.5));P||(A=1e3/R),this.runner={fps:A,deltaSampleSize:i(M,"deltaSampleSize",60),counterTimestamp:0,frameCounter:0,deltaHistory:[],timePrev:null,timeScalePrev:1,frameRequestId:null,timeBuffer:0,isFixed:i(M,"isFixed",!1),delta:R,deltaMin:F,deltaMax:D},this.autoUpdate=a(C,"autoUpdate",!0);var w=a(C,"debug",!1);if(this.drawDebug=typeof w=="object"?!0:w,this.debugGraphic,this.debugConfig={showAxes:i(w,"showAxes",!1),showAngleIndicator:i(w,"showAngleIndicator",!1),angleColor:i(w,"angleColor",15208787),showBroadphase:i(w,"showBroadphase",!1),broadphaseColor:i(w,"broadphaseColor",16757760),showBounds:i(w,"showBounds",!1),boundsColor:i(w,"boundsColor",16777215),showVelocity:i(w,"showVelocity",!1),velocityColor:i(w,"velocityColor",44783),showCollisions:i(w,"showCollisions",!1),collisionColor:i(w,"collisionColor",16094476),showSeparations:i(w,"showSeparations",!1),separationColor:i(w,"separationColor",16753920),showBody:i(w,"showBody",!0),showStaticBody:i(w,"showStaticBody",!0),showInternalEdges:i(w,"showInternalEdges",!1),renderFill:i(w,"renderFill",!1),renderLine:i(w,"renderLine",!0),fillColor:i(w,"fillColor",1075465),fillOpacity:i(w,"fillOpacity",1),lineColor:i(w,"lineColor",2678297),lineOpacity:i(w,"lineOpacity",1),lineThickness:i(w,"lineThickness",1),staticFillColor:i(w,"staticFillColor",857979),staticLineColor:i(w,"staticLineColor",1255396),showSleeping:i(w,"showSleeping",!1),staticBodySleepOpacity:i(w,"staticBodySleepOpacity",.7),sleepFillColor:i(w,"sleepFillColor",4605510),sleepLineColor:i(w,"sleepLineColor",10066585),showSensors:i(w,"showSensors",!0),sensorFillColor:i(w,"sensorFillColor",857979),sensorLineColor:i(w,"sensorLineColor",1255396),showPositions:i(w,"showPositions",!0),positionSize:i(w,"positionSize",4),positionColor:i(w,"positionColor",14697178),showJoint:i(w,"showJoint",!0),jointColor:i(w,"jointColor",14737474),jointLineOpacity:i(w,"jointLineOpacity",1),jointLineThickness:i(w,"jointLineThickness",2),pinSize:i(w,"pinSize",4),pinColor:i(w,"pinColor",4382944),springColor:i(w,"springColor",14697184),anchorColor:i(w,"anchorColor",15724527),anchorSize:i(w,"anchorSize",4),showConvexHulls:i(w,"showConvexHulls",!1),hullColor:i(w,"hullColor",14091216)},this.drawDebug&&this.createDebugGraphic(),this.setEventsProxy(),i(C,"setBounds",!1)){var G=C.setBounds;if(typeof G=="boolean")this.setBounds();else{var N=i(G,"x",0),b=i(G,"y",0),B=i(G,"width",S.sys.scale.width),O=i(G,"height",S.sys.scale.height),L=i(G,"thickness",64),I=i(G,"left",!0),U=i(G,"right",!0),X=i(G,"top",!0),z=i(G,"bottom",!0);this.setBounds(N,b,B,O,L,I,U,X,z)}}},setCompositeRenderStyle:function(y){var S=y.bodies,C=y.constraints,E=y.composites,M,P,A;for(M=0;M0&&M.map(function(R){P=R.bodyA,A=R.bodyB,P.gameObject&&P.gameObject.emit("collide",P,A,R),A.gameObject&&A.gameObject.emit("collide",A,P,R),h.trigger(P,"onCollide",{pair:R}),h.trigger(A,"onCollide",{pair:R}),P.onCollideCallback&&P.onCollideCallback(R),A.onCollideCallback&&A.onCollideCallback(R),P.onCollideWith[A.id]&&P.onCollideWith[A.id](A,R),A.onCollideWith[P.id]&&A.onCollideWith[P.id](P,R)}),y.emit(o.COLLISION_START,E,P,A)}),h.on(S,"collisionActive",function(E){var M=E.pairs,P,A;M.length>0&&M.map(function(R){P=R.bodyA,A=R.bodyB,P.gameObject&&P.gameObject.emit("collideActive",P,A,R),A.gameObject&&A.gameObject.emit("collideActive",A,P,R),h.trigger(P,"onCollideActive",{pair:R}),h.trigger(A,"onCollideActive",{pair:R}),P.onCollideActiveCallback&&P.onCollideActiveCallback(R),A.onCollideActiveCallback&&A.onCollideActiveCallback(R)}),y.emit(o.COLLISION_ACTIVE,E,P,A)}),h.on(S,"collisionEnd",function(E){var M=E.pairs,P,A;M.length>0&&M.map(function(R){P=R.bodyA,A=R.bodyB,P.gameObject&&P.gameObject.emit("collideEnd",P,A,R),A.gameObject&&A.gameObject.emit("collideEnd",A,P,R),h.trigger(P,"onCollideEnd",{pair:R}),h.trigger(A,"onCollideEnd",{pair:R}),P.onCollideEndCallback&&P.onCollideEndCallback(R),A.onCollideEndCallback&&A.onCollideEndCallback(R)}),y.emit(o.COLLISION_END,E,P,A)})},setBounds:function(y,S,C,E,M,P,A,R,F){return y===void 0&&(y=0),S===void 0&&(S=0),C===void 0&&(C=this.scene.sys.scale.width),E===void 0&&(E=this.scene.sys.scale.height),M===void 0&&(M=64),P===void 0&&(P=!0),A===void 0&&(A=!0),R===void 0&&(R=!0),F===void 0&&(F=!0),this.updateWall(P,"left",y-M,S-M,M,E+M*2),this.updateWall(A,"right",y+C,S-M,M,E+M*2),this.updateWall(R,"top",y,S-M,C,M),this.updateWall(F,"bottom",y,S+E,C,M),this},updateWall:function(y,S,C,E,M,P){var A=this.walls[S];y?(A&&v.remove(this.localWorld,A),C+=M/2,E+=P/2,this.walls[S]=this.create(C,E,M,P,{isStatic:!0,friction:0,frictionStatic:0})):(A&&v.remove(this.localWorld,A),this.walls[S]=null)},createDebugGraphic:function(){var y=this.scene.sys.add.graphics({x:0,y:0});return y.setDepth(Number.MAX_VALUE),this.debugGraphic=y,this.drawDebug=!0,y},disableGravity:function(){return this.localWorld.gravity.x=0,this.localWorld.gravity.y=0,this.localWorld.gravity.scale=0,this},setGravity:function(y,S,C){return y===void 0&&(y=0),S===void 0&&(S=1),C===void 0&&(C=.001),this.localWorld.gravity.x=y,this.localWorld.gravity.y=S,this.localWorld.gravity.scale=C,this},create:function(y,S,C,E,M){var P=d.rectangle(y,S,C,E,M);return v.add(this.localWorld,P),P},add:function(y){return v.add(this.localWorld,y),this},remove:function(y,S){Array.isArray(y)||(y=[y]);for(var C=0;CMath.max(m._maxFrameDelta,C.maxFrameTime))&&(A=C.frameDelta||m._frameDeltaFallback),C.frameDeltaSmoothing){C.frameDeltaHistory.push(A),C.frameDeltaHistory=C.frameDeltaHistory.slice(-C.frameDeltaHistorySize);var R=C.frameDeltaHistory.slice(0).sort(),F=C.frameDeltaHistory.slice(R.length*m._smoothingLowerBound,R.length*m._smoothingUpperBound),D=m._mean(F);A=D||A}C.frameDeltaSnapping&&(A=1e3/Math.round(1e3/A)),C.frameDelta=A,C.timeLastTick=y,C.timeBuffer+=C.frameDelta,C.timeBuffer=r.clamp(C.timeBuffer,0,C.frameDelta+M*m._timeBufferMargin),C.lastUpdatesDeferred=0;for(var w=C.maxUpdates||Math.ceil(C.maxFrameTime/M),G=r.now();M>0&&C.timeBuffer>=M*m._timeBufferMargin;){e.update(S,M),C.timeBuffer-=M,P+=1;var N=r.now()-E,b=r.now()-G,B=N+m._elapsedNextEstimate*b/P;if(P>=w||B>C.maxFrameTime){C.lastUpdatesDeferred=Math.round(Math.max(0,C.timeBuffer/M-m._timeBufferMargin));break}}}},step:function(y){e.update(this.engine,y)},update60Hz:function(){return 1e3/60},update30Hz:function(){return 1e3/30},has:function(y){var S=y.hasOwnProperty("body")?y.body:y;return n.get(this.localWorld,S.id,S.type)!==null},getAllBodies:function(){return n.allBodies(this.localWorld)},getAllConstraints:function(){return n.allConstraints(this.localWorld)},getAllComposites:function(){return n.allComposites(this.localWorld)},postUpdate:function(){if(this.drawDebug){var y=this.debugConfig,S=this.engine,C=this.debugGraphic,E=n.allBodies(this.localWorld);this.debugGraphic.clear(),y.showBroadphase&&S.broadphase.controller&&this.renderGrid(S.broadphase,C,y.broadphaseColor,.5),y.showBounds&&this.renderBodyBounds(E,C,y.boundsColor,.5),(y.showBody||y.showStaticBody)&&this.renderBodies(E),y.showJoint&&this.renderJoints(),(y.showAxes||y.showAngleIndicator)&&this.renderBodyAxes(E,C,y.showAxes,y.angleColor,.5),y.showVelocity&&this.renderBodyVelocity(E,C,y.velocityColor,1,2),y.showSeparations&&this.renderSeparations(S.pairs.list,C,y.separationColor),y.showCollisions&&this.renderCollisions(S.pairs.list,C,y.collisionColor)}},renderGrid:function(y,S,C,E){S.lineStyle(1,C,E);for(var M=r.keys(y.buckets),P=0;P0){var w=D[0].vertex.x,G=D[0].vertex.y;M.contactCount===2&&(w=(D[0].vertex.x+D[1].vertex.x)/2,G=(D[0].vertex.y+D[1].vertex.y)/2),F.bodyB===F.supports[0].body||F.bodyA.isStatic?S.lineBetween(w-F.normal.x*8,G-F.normal.y*8,w,G):S.lineBetween(w+F.normal.x*8,G+F.normal.y*8,w,G)}}return this},renderBodyBounds:function(y,S,C,E){S.lineStyle(1,C,E);for(var M=0;M1?1:0;F1?1:0;D1?1:0;D1&&this.renderConvexHull(O,S,b,U)}}},renderBody:function(y,S,C,E,M,P,A,R){E===void 0&&(E=null),M===void 0&&(M=null),P===void 0&&(P=1),A===void 0&&(A=null),R===void 0&&(R=null);for(var F=this.debugConfig,D=F.sensorFillColor,w=F.sensorLineColor,G=y.parts,N=G.length,b=N>1?1:0;b1){var A=y.vertices;S.lineStyle(E,C),S.beginPath(),S.moveTo(A[0].x,A[0].y);for(var R=1;R0&&(S.fillStyle(A),S.fillCircle(G.x,G.y,R),S.fillCircle(N.x,N.y,R)),this},resetCollisionIDs:function(){return p._nextCollidingGroupId=1,p._nextNonCollidingGroupId=-1,p._nextCategory=1,this},shutdown:function(){h.off(this.engine),this.removeAllListeners(),v.clear(this.localWorld,!1),e.clear(this.engine),this.drawDebug&&this.debugGraphic.destroy()},destroy:function(){this.shutdown()}});c.exports=x},70410:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4457,11 +4461,11 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T={setCollisionCategory:function(t){return this.body.collisionFilter.category=t,this},setCollisionGroup:function(t){return this.body.collisionFilter.group=t,this},setCollidesWith:function(t){var d=0;if(!Array.isArray(t))d=t;else for(var p=0;p{/** + */var T={setCollisionCategory:function(t){return this.body.collisionFilter.category=t,this},setCollisionGroup:function(t){return this.body.collisionFilter.group=t,this},setCollidesWith:function(t){var d=0;if(!Array.isArray(t))d=t;else for(var p=0;p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(22562),p={applyForce:function(a){return this._tempVec2.set(this.body.position.x,this.body.position.y),d.applyForce(this.body,this._tempVec2,a),this},applyForceFrom:function(a,r){return d.applyForce(this.body,a,r),this},thrust:function(a){var r=this.body.angle;return this._tempVec2.set(a*Math.cos(r),a*Math.sin(r)),d.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustLeft:function(a){var r=this.body.angle-Math.PI/2;return this._tempVec2.set(a*Math.cos(r),a*Math.sin(r)),d.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustRight:function(a){var r=this.body.angle+Math.PI/2;return this._tempVec2.set(a*Math.cos(r),a*Math.sin(r)),d.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustBack:function(a){var r=this.body.angle-Math.PI;return this._tempVec2.set(a*Math.cos(r),a*Math.sin(r)),d.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this}};c.exports=p},5436:c=>{/** + */var d=t(22562),p={applyForce:function(l){return this._tempVec2.set(this.body.position.x,this.body.position.y),d.applyForce(this.body,this._tempVec2,l),this},applyForceFrom:function(l,r){return d.applyForce(this.body,l,r),this},thrust:function(l){var r=this.body.angle;return this._tempVec2.set(l*Math.cos(r),l*Math.sin(r)),d.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustLeft:function(l){var r=this.body.angle-Math.PI/2;return this._tempVec2.set(l*Math.cos(r),l*Math.sin(r)),d.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustRight:function(l){var r=this.body.angle+Math.PI/2;return this._tempVec2.set(l*Math.cos(r),l*Math.sin(r)),d.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustBack:function(l){var r=this.body.angle-Math.PI;return this._tempVec2.set(l*Math.cos(r),l*Math.sin(r)),d.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this}};c.exports=p},5436:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4473,7 +4477,7 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(22562),p=t(26099),a={setMass:function(r){return d.setMass(this.body,r),this},setDensity:function(r){return d.setDensity(this.body,r),this},centerOfMass:{get:function(){return new p(this.body.centerOfMass.x,this.body.centerOfMass.y)}}};c.exports=a},39132:c=>{/** + */var d=t(22562),p=t(26099),l={setMass:function(r){return d.setMass(this.body,r),this},setDensity:function(r){return d.setDensity(this.body,r),this},centerOfMass:{get:function(){return new p(this.body.centerOfMass.x,this.body.centerOfMass.y)}}};c.exports=l},39132:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4481,23 +4485,23 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(66280),p=t(22562),a=t(43855),r=t(95540),n=t(19496),e=t(85791),s=t(41598),l={setRectangle:function(i,o,u){return this.setBody({type:"rectangle",width:i,height:o},u)},setCircle:function(i,o){return this.setBody({type:"circle",radius:i},o)},setPolygon:function(i,o,u){return this.setBody({type:"polygon",sides:o,radius:i},u)},setTrapezoid:function(i,o,u,h){return this.setBody({type:"trapezoid",width:i,height:o,slope:u},h)},setExistingBody:function(i,o){o===void 0&&(o=!0),this.body&&this.world.remove(this.body,!0),this.body=i;for(var u=0;u{/** + */var d=t(66280),p=t(22562),l=t(43855),r=t(95540),n=t(19496),e=t(85791),s=t(41598),o={setRectangle:function(i,a,u){return this.setBody({type:"rectangle",width:i,height:a},u)},setCircle:function(i,a){return this.setBody({type:"circle",radius:i},a)},setPolygon:function(i,a,u){return this.setBody({type:"polygon",sides:a,radius:i},u)},setTrapezoid:function(i,a,u,h){return this.setBody({type:"trapezoid",width:i,height:a,slope:u},h)},setExistingBody:function(i,a){a===void 0&&(a=!0),this.body&&this.world.remove(this.body,!0),this.body=i;for(var u=0;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(1121),p=t(53614),a=t(35810),r={setToSleep:function(){return p.set(this.body,!0),this},setAwake:function(){return p.set(this.body,!1),this},setSleepThreshold:function(n){return n===void 0&&(n=60),this.body.sleepThreshold=n,this},setSleepEvents:function(n,e){return this.setSleepStartEvent(n),this.setSleepEndEvent(e),this},setSleepStartEvent:function(n){if(n){var e=this.world;a.on(this.body,"sleepStart",function(s){e.emit(d.SLEEP_START,s,this)})}else a.off(this.body,"sleepStart");return this},setSleepEndEvent:function(n){if(n){var e=this.world;a.on(this.body,"sleepEnd",function(s){e.emit(d.SLEEP_END,s,this)})}else a.off(this.body,"sleepEnd");return this}};c.exports=r},90556:(c,T,t)=>{/** + */var d=t(1121),p=t(53614),l=t(35810),r={setToSleep:function(){return p.set(this.body,!0),this},setAwake:function(){return p.set(this.body,!1),this},setSleepThreshold:function(n){return n===void 0&&(n=60),this.body.sleepThreshold=n,this},setSleepEvents:function(n,e){return this.setSleepStartEvent(n),this.setSleepEndEvent(e),this},setSleepStartEvent:function(n){if(n){var e=this.world;l.on(this.body,"sleepStart",function(s){e.emit(d.SLEEP_START,s,this)})}else l.off(this.body,"sleepStart");return this},setSleepEndEvent:function(n){if(n){var e=this.world;l.on(this.body,"sleepEnd",function(s){e.emit(d.SLEEP_END,s,this)})}else l.off(this.body,"sleepEnd");return this}};c.exports=r},90556:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(22562),p={setStatic:function(a){return d.setStatic(this.body,a),this},isStatic:function(){return this.body.isStatic}};c.exports=p},85436:(c,T,t)=>{/** + */var d=t(22562),p={setStatic:function(l){return d.setStatic(this.body,l),this},isStatic:function(){return this.body.isStatic}};c.exports=p},85436:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(22562),p=t(36383),a=t(86554),r=t(30954),n=4,e={x:{get:function(){return this.body.position.x},set:function(s){this._tempVec2.set(s,this.y),d.setPosition(this.body,this._tempVec2)}},y:{get:function(){return this.body.position.y},set:function(s){this._tempVec2.set(this.x,s),d.setPosition(this.body,this._tempVec2)}},scaleX:{get:function(){return this._scaleX},set:function(s){var l=1/this._scaleX,i=1/this._scaleY;this._scaleX=s,this._scaleX===0?this.renderFlags&=~n:this.renderFlags|=n,d.scale(this.body,l,i),d.scale(this.body,s,this._scaleY)}},scaleY:{get:function(){return this._scaleY},set:function(s){var l=1/this._scaleX,i=1/this._scaleY;this._scaleY=s,this._scaleY===0?this.renderFlags&=~n:this.renderFlags|=n,d.scale(this.body,l,i),d.scale(this.body,this._scaleX,s)}},angle:{get:function(){return r(this.body.angle*p.RAD_TO_DEG)},set:function(s){this.rotation=r(s)*p.DEG_TO_RAD}},rotation:{get:function(){return this.body.angle},set:function(s){this._rotation=a(s),d.setAngle(this.body,this._rotation)}},setPosition:function(s,l){return s===void 0&&(s=0),l===void 0&&(l=s),this._tempVec2.set(s,l),d.setPosition(this.body,this._tempVec2),this},setRotation:function(s){return s===void 0&&(s=0),this._rotation=a(s),d.setAngle(this.body,s),this},setFixedRotation:function(){return d.setInertia(this.body,1/0),this},setAngle:function(s){return s===void 0&&(s=0),this.angle=s,d.setAngle(this.body,this.rotation),this},setScale:function(s,l,i){s===void 0&&(s=1),l===void 0&&(l=s);var o=1/this._scaleX,u=1/this._scaleY;return this._scaleX=s,this._scaleY=l,d.scale(this.body,o,u,i),d.scale(this.body,s,l,i),this}};c.exports=e},42081:(c,T,t)=>{/** + */var d=t(22562),p=t(36383),l=t(86554),r=t(30954),n=4,e={x:{get:function(){return this.body.position.x},set:function(s){this._tempVec2.set(s,this.y),d.setPosition(this.body,this._tempVec2)}},y:{get:function(){return this.body.position.y},set:function(s){this._tempVec2.set(this.x,s),d.setPosition(this.body,this._tempVec2)}},scaleX:{get:function(){return this._scaleX},set:function(s){var o=1/this._scaleX,i=1/this._scaleY;this._scaleX=s,this._scaleX===0?this.renderFlags&=~n:this.renderFlags|=n,d.scale(this.body,o,i),d.scale(this.body,s,this._scaleY)}},scaleY:{get:function(){return this._scaleY},set:function(s){var o=1/this._scaleX,i=1/this._scaleY;this._scaleY=s,this._scaleY===0?this.renderFlags&=~n:this.renderFlags|=n,d.scale(this.body,o,i),d.scale(this.body,this._scaleX,s)}},angle:{get:function(){return r(this.body.angle*p.RAD_TO_DEG)},set:function(s){this.rotation=r(s)*p.DEG_TO_RAD}},rotation:{get:function(){return this.body.angle},set:function(s){this._rotation=l(s),d.setAngle(this.body,this._rotation)}},setPosition:function(s,o){return s===void 0&&(s=0),o===void 0&&(o=s),this._tempVec2.set(s,o),d.setPosition(this.body,this._tempVec2),this},setRotation:function(s){return s===void 0&&(s=0),this._rotation=l(s),d.setAngle(this.body,s),this},setFixedRotation:function(){return d.setInertia(this.body,1/0),this},setAngle:function(s){return s===void 0&&(s=0),this.angle=s,d.setAngle(this.body,this.rotation),this},setScale:function(s,o,i){s===void 0&&(s=1),o===void 0&&(o=s);var a=1/this._scaleX,u=1/this._scaleY;return this._scaleX=s,this._scaleY=o,d.scale(this.body,a,u,i),d.scale(this.body,s,o,i),this}};c.exports=e},42081:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(22562),p={setVelocityX:function(a){return this._tempVec2.set(a,this.body.velocity.y),d.setVelocity(this.body,this._tempVec2),this},setVelocityY:function(a){return this._tempVec2.set(this.body.velocity.x,a),d.setVelocity(this.body,this._tempVec2),this},setVelocity:function(a,r){return this._tempVec2.set(a,r),d.setVelocity(this.body,this._tempVec2),this},getVelocity:function(){return d.getVelocity(this.body)},setAngularVelocity:function(a){return d.setAngularVelocity(this.body,a),this},getAngularVelocity:function(){return d.getAngularVelocity(this.body)},setAngularSpeed:function(a){return d.setAngularSpeed(this.body,a),this},getAngularSpeed:function(){return d.getAngularSpeed(this.body)}};c.exports=p},31884:(c,T,t)=>{/** + */var d=t(22562),p={setVelocityX:function(l){return this._tempVec2.set(l,this.body.velocity.y),d.setVelocity(this.body,this._tempVec2),this},setVelocityY:function(l){return this._tempVec2.set(this.body.velocity.x,l),d.setVelocity(this.body,this._tempVec2),this},setVelocity:function(l,r){return this._tempVec2.set(l,r),d.setVelocity(this.body,this._tempVec2),this},getVelocity:function(){return d.getVelocity(this.body)},setAngularVelocity:function(l){return d.setAngularVelocity(this.body,l),this},getAngularVelocity:function(){return d.getAngularVelocity(this.body)},setAngularSpeed:function(l){return d.setAngularSpeed(this.body,l),this},getAngularSpeed:function(){return d.getAngularSpeed(this.body)}};c.exports=p},31884:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4573,14 +4577,10 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */c.exports={BodyBounds:t(68174),Components:t(31884),Events:t(1121),Factory:t(28137),MatterGameObject:t(75803),Image:t(23181),Matter:t(19933),MatterPhysics:t(42045),PolyDecomp:t(55973),Sprite:t(34803),TileBody:t(73834),PhysicsEditorParser:t(19496),PhysicsJSONParser:t(85791),PointerConstraint:t(98713),World:t(68243)}},22562:(c,T,t)=>{var d={};c.exports=d;var p=t(41598),a=t(31725),r=t(53614),n=t(53402),e=t(15647),s=t(66615);(function(){d._timeCorrection=!0,d._inertiaScale=4,d._nextCollidingGroupId=1,d._nextNonCollidingGroupId=-1,d._nextCategory=1,d._baseDelta=16.666666666666668,d.create=function(i){var o={id:n.nextId(),type:"body",label:"Body",parts:[],plugin:{},angle:0,vertices:null,position:{x:0,y:0},force:{x:0,y:0},torque:0,positionImpulse:{x:0,y:0},constraintImpulse:{x:0,y:0,angle:0},totalContacts:0,speed:0,angularSpeed:0,velocity:{x:0,y:0},angularVelocity:0,isSensor:!1,isStatic:!1,isSleeping:!1,motion:0,sleepThreshold:60,density:.001,restitution:0,friction:.1,frictionStatic:.5,frictionAir:.01,collisionFilter:{category:1,mask:4294967295,group:0},slop:.05,timeScale:1,events:null,bounds:null,chamfer:null,circleRadius:0,positionPrev:null,anglePrev:0,parent:null,axes:null,area:0,mass:0,inverseMass:0,inertia:0,deltaTime:16.666666666666668,inverseInertia:0,_original:null,render:{visible:!0,opacity:1,sprite:{xOffset:0,yOffset:0},fillColor:null,fillOpacity:null,lineColor:null,lineOpacity:null,lineThickness:null},gameObject:null,scale:{x:1,y:1},centerOfMass:{x:0,y:0},centerOffset:{x:0,y:0},gravityScale:{x:1,y:1},ignoreGravity:!1,ignorePointer:!1,onCollideCallback:null,onCollideEndCallback:null,onCollideActiveCallback:null,onCollideWith:{}};!i.hasOwnProperty("position")&&i.hasOwnProperty("vertices")?i.position=p.centre(i.vertices):i.hasOwnProperty("vertices")||(o.vertices=p.fromPath("L 0 0 L 40 0 L 40 40 L 0 40"));var u=n.extend(o,i);return l(u,i),u.setOnCollideWith=function(h,f){return f?this.onCollideWith[h.id]=f:delete this.onCollideWith[h.id],this},u},d.nextGroup=function(i){return i?d._nextNonCollidingGroupId--:d._nextCollidingGroupId++},d.nextCategory=function(){return d._nextCategory=d._nextCategory<<1,d._nextCategory};var l=function(i,o){if(o=o||{},d.set(i,{bounds:i.bounds||e.create(i.vertices),positionPrev:i.positionPrev||a.clone(i.position),anglePrev:i.anglePrev||i.angle,vertices:i.vertices,parts:i.parts||[i],isStatic:i.isStatic,isSleeping:i.isSleeping,parent:i.parent||i}),p.rotate(i.vertices,i.angle,i.position),s.rotate(i.axes,i.angle),e.update(i.bounds,i.vertices,i.velocity),d.set(i,{axes:o.axes||i.axes,area:o.area||i.area,mass:o.mass||i.mass,inertia:o.inertia||i.inertia}),i.parts.length===1){var u=i.bounds,h=i.centerOfMass,f=i.centerOffset,v=u.max.x-u.min.x,m=u.max.y-u.min.y;h.x=-(u.min.x-i.position.x)/v,h.y=-(u.min.y-i.position.y)/m,f.x=v*h.x,f.y=m*h.y}};d.set=function(i,o,u){var h;typeof o=="string"&&(h=o,o={},o[h]=u);for(h in o)if(Object.prototype.hasOwnProperty.call(o,h))switch(u=o[h],h){case"isStatic":d.setStatic(i,u);break;case"isSleeping":r.set(i,u);break;case"mass":d.setMass(i,u);break;case"density":d.setDensity(i,u);break;case"inertia":d.setInertia(i,u);break;case"vertices":d.setVertices(i,u);break;case"position":d.setPosition(i,u);break;case"angle":d.setAngle(i,u);break;case"velocity":d.setVelocity(i,u);break;case"angularVelocity":d.setAngularVelocity(i,u);break;case"speed":d.setSpeed(i,u);break;case"angularSpeed":d.setAngularSpeed(i,u);break;case"parts":d.setParts(i,u);break;case"centre":d.setCentre(i,u);break;default:i[h]=u}},d.setStatic=function(i,o){for(var u=0;u0&&a.rotateAbout(v.position,h,i.position,v.position)}},d.setVelocity=function(i,o){var u=i.deltaTime/d._baseDelta;i.positionPrev.x=i.position.x-o.x*u,i.positionPrev.y=i.position.y-o.y*u,i.velocity.x=(i.position.x-i.positionPrev.x)/u,i.velocity.y=(i.position.y-i.positionPrev.y)/u,i.speed=a.magnitude(i.velocity)},d.getVelocity=function(i){var o=d._baseDelta/i.deltaTime;return{x:(i.position.x-i.positionPrev.x)*o,y:(i.position.y-i.positionPrev.y)*o}},d.getSpeed=function(i){return a.magnitude(d.getVelocity(i))},d.setSpeed=function(i,o){d.setVelocity(i,a.mult(a.normalise(d.getVelocity(i)),o))},d.setAngularVelocity=function(i,o){var u=i.deltaTime/d._baseDelta;i.anglePrev=i.angle-o*u,i.angularVelocity=(i.angle-i.anglePrev)/u,i.angularSpeed=Math.abs(i.angularVelocity)},d.getAngularVelocity=function(i){return(i.angle-i.anglePrev)*d._baseDelta/i.deltaTime},d.getAngularSpeed=function(i){return Math.abs(d.getAngularVelocity(i))},d.setAngularSpeed=function(i,o){d.setAngularVelocity(i,n.sign(d.getAngularVelocity(i))*o)},d.translate=function(i,o,u){d.setPosition(i,a.add(i.position,o),u)},d.rotate=function(i,o,u,h){if(!u)d.setAngle(i,i.angle+o,h);else{var f=Math.cos(o),v=Math.sin(o),m=i.position.x-u.x,x=i.position.y-u.y;d.setPosition(i,{x:u.x+(m*f-x*v),y:u.y+(m*v+x*f)},h),d.setAngle(i,i.angle+o,h)}},d.scale=function(i,o,u,h){var f=0,v=0;h=h||i.position;for(var m=i.inertia===1/0,x=0;x0&&(f+=g.area,v+=g.inertia),g.position.x=h.x+(g.position.x-h.x)*o,g.position.y=h.y+(g.position.y-h.y)*u,e.update(g.bounds,g.vertices,i.velocity)}i.parts.length>1&&(i.area=f,i.isStatic||(d.setMass(i,i.density*f),d.setInertia(i,v))),i.circleRadius&&(o===u?i.circleRadius*=o:i.circleRadius=null),m&&d.setInertia(i,1/0)},d.update=function(i,o){o=(typeof o<"u"?o:16.666666666666668)*i.timeScale;var u=o*o,h=d._timeCorrection?o/(i.deltaTime||o):1,f=1-i.frictionAir*(o/n._baseDelta),v=(i.position.x-i.positionPrev.x)*h,m=(i.position.y-i.positionPrev.y)*h;i.velocity.x=v*f+i.force.x/i.mass*u,i.velocity.y=m*f+i.force.y/i.mass*u,i.positionPrev.x=i.position.x,i.positionPrev.y=i.position.y,i.position.x+=i.velocity.x,i.position.y+=i.velocity.y,i.deltaTime=o,i.angularVelocity=(i.angle-i.anglePrev)*f*h+i.torque/i.inertia*u,i.anglePrev=i.angle,i.angle+=i.angularVelocity,i.speed=a.magnitude(i.velocity),i.angularSpeed=Math.abs(i.angularVelocity);for(var x=0;x0&&(g.position.x+=i.velocity.x,g.position.y+=i.velocity.y),i.angularVelocity!==0&&(p.rotate(g.vertices,i.angularVelocity,i.position),s.rotate(g.axes,i.angularVelocity),x>0&&a.rotateAbout(g.position,i.angularVelocity,i.position,g.position)),e.update(g.bounds,g.vertices,i.velocity)}},d.updateVelocities=function(i){var o=d._baseDelta/i.deltaTime,u=i.velocity;u.x=(i.position.x-i.positionPrev.x)*o,u.y=(i.position.y-i.positionPrev.y)*o,i.speed=Math.sqrt(u.x*u.x+u.y*u.y),i.angularVelocity=(i.angle-i.anglePrev)*o,i.angularSpeed=Math.abs(i.angularVelocity)},d.applyForce=function(i,o,u){var h={x:o.x-i.position.x,y:o.y-i.position.y};i.force.x+=u.x,i.force.y+=u.y,i.torque+=h.x*u.y-h.y*u.x},d._totalProperties=function(i){for(var o={mass:0,area:0,inertia:0,centre:{x:0,y:0}},u=i.parts.length===1?0:1;u{var d={};c.exports=d;var p=t(35810),a=t(53402),r=t(15647),n=t(22562);(function(){d.create=function(e){return a.extend({id:a.nextId(),type:"composite",parent:null,isModified:!1,bodies:[],constraints:[],composites:[],label:"Composite",plugin:{},cache:{allBodies:null,allConstraints:null,allComposites:null}},e)},d.setModified=function(e,s,l,i){if(p.trigger(e,"compositeModified",e),e.isModified=s,s&&e.cache&&(e.cache.allBodies=null,e.cache.allConstraints=null,e.cache.allComposites=null),l&&e.parent&&d.setModified(e.parent,s,l,i),i)for(var o=0;o{var d={};c.exports=d;var p=t(69351);(function(){d.create=p.create,d.add=p.add,d.remove=p.remove,d.clear=p.clear,d.addComposite=p.addComposite,d.addBody=p.addBody,d.addConstraint=p.addConstraint})()},52284:(c,T,t)=>{var d={};c.exports=d;var p=t(41598),a=t(4506);(function(){var r=[],n={overlap:0,axis:null},e={overlap:0,axis:null};d.create=function(s,l){return{pair:null,collided:!1,bodyA:s,bodyB:l,parentA:s.parent,parentB:l.parent,depth:0,normal:{x:0,y:0},tangent:{x:0,y:0},penetration:{x:0,y:0},supports:[]}},d.collides=function(s,l,i){if(d._overlapAxes(n,s.vertices,l.vertices,s.axes),n.overlap<=0||(d._overlapAxes(e,l.vertices,s.vertices,l.axes),e.overlap<=0))return null;var o=i&&i.table[a.id(s,l)],u;o?u=o.collision:(u=d.create(s,l),u.collided=!0,u.bodyA=s.idD?D=P:PI?I=P:Pu?u=f:f{var T={};c.exports=T,function(){T.create=function(t){return{vertex:t,normalImpulse:0,tangentImpulse:0}}}()},81388:(c,T,t)=>{var d={};c.exports=d;var p=t(53402),a=t(52284);(function(){d.create=function(r){var n={bodies:[],pairs:null};return p.extend(n,r)},d.setBodies=function(r,n){r.bodies=n.slice(0)},d.clear=function(r){r.bodies=[]},d.collisions=function(r){var n=[],e=r.pairs,s=r.bodies,l=s.length,i=d.canCollide,o=a.collides,u,h;for(s.sort(d._compareBoundsX),u=0;um)break;if(!(xA.max.y)&&!(y&&(E.isStatic||E.isSleeping))&&i(f.collisionFilter,E.collisionFilter)){var P=E.parts.length;if(C&&P===1){var M=o(f,E,e);M&&n.push(M)}else for(var F=S>1?1:0,L=P>1?1:0,b=F;bA.max.x||v.max.xA.max.y)){var M=o(B,X,e);M&&n.push(M)}}}}}return n},d.canCollide=function(r,n){return r.group===n.group&&r.group!==0?r.group>0:(r.mask&n.category)!==0&&(n.mask&r.category)!==0},d._compareBoundsX=function(r,n){return r.bounds.min.x-n.bounds.min.x}})()},4506:(c,T,t)=>{var d={};c.exports=d;var p=t(43424);(function(){d.create=function(a,r){var n=a.bodyA,e=a.bodyB,s={id:d.id(n,e),bodyA:n,bodyB:e,collision:a,contacts:[],activeContacts:[],separation:0,isActive:!0,confirmedActive:!0,isSensor:n.isSensor||e.isSensor,timeCreated:r,timeUpdated:r,inverseMass:0,friction:0,frictionStatic:0,restitution:0,slop:0};return d.update(s,a,r),s},d.update=function(a,r,n){var e=a.contacts,s=r.supports,l=a.activeContacts,i=r.parentA,o=r.parentB,u=i.vertices.length;a.isActive=!0,a.timeUpdated=n,a.collision=r,a.separation=r.depth,a.inverseMass=i.inverseMass+o.inverseMass,a.friction=i.frictiono.frictionStatic?i.frictionStatic:o.frictionStatic,a.restitution=i.restitution>o.restitution?i.restitution:o.restitution,a.slop=i.slop>o.slop?i.slop:o.slop,r.pair=a,l.length=0;for(var h=0;h{var d={};c.exports=d;var p=t(4506),a=t(53402);(function(){d.create=function(r){return a.extend({table:{},list:[],collisionStart:[],collisionActive:[],collisionEnd:[]},r)},d.update=function(r,n,e){var s=r.list,l=s.length,i=r.table,o=n.length,u=r.collisionStart,h=r.collisionEnd,f=r.collisionActive,v,m,x,g;for(u.length=0,h.length=0,f.length=0,g=0;g{var d={};c.exports=d;var p=t(31725),a=t(52284),r=t(15647),n=t(66280),e=t(41598);(function(){d.collides=function(s,l){for(var i=[],o=l.length,u=s.bounds,h=a.collides,f=r.overlaps,v=0;v{var d={};c.exports=d;var p=t(41598),a=t(53402),r=t(15647);(function(){d._restingThresh=2,d._restingThreshTangent=Math.sqrt(6),d._positionDampen=.9,d._positionWarming=.8,d._frictionNormalMultiplier=5,d._frictionMaxStatic=Number.MAX_VALUE,d.preSolvePosition=function(n){var e,s,l,i=n.length;for(e=0;ej?(x=rt>0?rt:-rt,m=S.friction*(rt>0?1:-1)*i,m<-x?m=-x:m>x&&(m=x)):(m=rt,x=f);var st=G*L-U*F,it=z*L-V*F,ut=D/(I+E.inverseInertia*st*st+A.inverseInertia*it*it),ft=(1+S.restitution)*_*ut;if(m*=ut,_0&&(O.normalImpulse=0),ft=O.normalImpulse-mt}if(rt<-u||rt>u)O.tangentImpulse=0;else{var ct=O.tangentImpulse;O.tangentImpulse+=m,O.tangentImpulse<-x&&(O.tangentImpulse=-x),O.tangentImpulse>x&&(O.tangentImpulse=x),m=O.tangentImpulse-ct}var vt=F*ft+b*m,dt=L*ft+B*m;E.isStatic||E.isSleeping||(E.positionPrev.x+=vt*E.inverseMass,E.positionPrev.y+=dt*E.inverseMass,E.anglePrev+=(G*dt-U*vt)*E.inverseInertia),A.isStatic||A.isSleeping||(A.positionPrev.x-=vt*A.inverseMass,A.positionPrev.y-=dt*A.inverseMass,A.anglePrev-=(z*dt-V*vt)*A.inverseInertia)}}}}})()},48140:(c,T,t)=>{var d={};c.exports=d;var p=t(41598),a=t(31725),r=t(53614),n=t(15647),e=t(66615),s=t(53402);(function(){d._warming=.4,d._torqueDampen=1,d._minLength=1e-6,d.create=function(l){var i=l;i.bodyA&&!i.pointA&&(i.pointA={x:0,y:0}),i.bodyB&&!i.pointB&&(i.pointB={x:0,y:0});var o=i.bodyA?a.add(i.bodyA.position,i.pointA):i.pointA,u=i.bodyB?a.add(i.bodyB.position,i.pointB):i.pointB,h=a.magnitude(a.sub(o,u));i.length=typeof i.length<"u"?i.length:h,i.id=i.id||s.nextId(),i.label=i.label||"Constraint",i.type="constraint",i.stiffness=i.stiffness||(i.length>0?1:.7),i.damping=i.damping||0,i.angularStiffness=i.angularStiffness||0,i.angleA=i.bodyA?i.bodyA.angle:i.angleA,i.angleB=i.bodyB?i.bodyB.angle:i.angleB,i.plugin={};var f={visible:!0,type:"line",anchors:!0,lineColor:null,lineOpacity:null,lineThickness:null,pinSize:null,anchorColor:null,anchorSize:null};return i.length===0&&i.stiffness>.1?(f.type="pin",f.anchors=!1):i.stiffness<.9&&(f.type="spring"),i.render=s.extend(f,i.render),i},d.preSolveAll=function(l){for(var i=0;i=1||l.length===0,C=S?l.stiffness*i:l.stiffness*i*i,E=l.damping*i,A=a.mult(x,y*C),P=(o?o.inverseMass:0)+(u?u.inverseMass:0),M=(o?o.inverseInertia:0)+(u?u.inverseInertia:0),F=P+M,L,b,B,N,X;if(E>0){var D=a.create();B=a.div(x,g),X=a.sub(u&&a.sub(u.position,u.positionPrev)||D,o&&a.sub(o.position,o.positionPrev)||D),N=a.dot(B,X)}o&&!o.isStatic&&(b=o.inverseMass/P,o.constraintImpulse.x-=A.x*b,o.constraintImpulse.y-=A.y*b,o.position.x-=A.x*b,o.position.y-=A.y*b,E>0&&(o.positionPrev.x-=E*B.x*N*b,o.positionPrev.y-=E*B.y*N*b),L=a.cross(h,A)/F*d._torqueDampen*o.inverseInertia*(1-l.angularStiffness),o.constraintImpulse.angle-=L,o.angle-=L),u&&!u.isStatic&&(b=u.inverseMass/P,u.constraintImpulse.x+=A.x*b,u.constraintImpulse.y+=A.y*b,u.position.x+=A.x*b,u.position.y+=A.y*b,E>0&&(u.positionPrev.x+=E*B.x*N*b,u.positionPrev.y+=E*B.y*N*b),L=a.cross(f,A)/F*d._torqueDampen*u.inverseInertia*(1-l.angularStiffness),u.constraintImpulse.angle+=L,u.angle+=L)}}},d.postSolveAll=function(l){for(var i=0;i0&&(f.position.x+=u.x,f.position.y+=u.y),u.angle!==0&&(p.rotate(f.vertices,u.angle,o.position),e.rotate(f.axes,u.angle),h>0&&a.rotateAbout(f.position,u.angle,o.position,f.position)),n.update(f.bounds,f.vertices,o.velocity)}u.angle*=d._warming,u.x*=d._warming,u.y*=d._warming}}},d.pointAWorld=function(l){return{x:(l.bodyA?l.bodyA.position.x:0)+(l.pointA?l.pointA.x:0),y:(l.bodyA?l.bodyA.position.y:0)+(l.pointA?l.pointA.y:0)}},d.pointBWorld=function(l){return{x:(l.bodyB?l.bodyB.position.x:0)+(l.pointB?l.pointB.x:0),y:(l.bodyB?l.bodyB.position.y:0)+(l.pointB?l.pointB.y:0)}},d.currentLength=function(l){var i=(l.bodyA?l.bodyA.position.x:0)+(l.pointA?l.pointA.x:0),o=(l.bodyA?l.bodyA.position.y:0)+(l.pointA?l.pointA.y:0),u=(l.bodyB?l.bodyB.position.x:0)+(l.pointB?l.pointB.x:0),h=(l.bodyB?l.bodyB.position.y:0)+(l.pointB?l.pointB.y:0),f=i-u,v=o-h;return Math.sqrt(f*f+v*v)}})()},53402:(c,T,t)=>{var d={};c.exports=d,function(){d._baseDelta=16.666666666666668,d._nextId=0,d._seed=0,d._nowStartTime=+new Date,d._warnedOnce={},d._decomp=null,d.extend=function(a,r){var n,e;typeof r=="boolean"?(n=2,e=r):(n=1,e=!0);for(var s=n;s0;r--){var n=Math.floor(d.random()*(r+1)),e=a[r];a[r]=a[n],a[n]=e}return a},d.choose=function(a){return a[Math.floor(d.random()*a.length)]},d.isElement=function(a){return typeof HTMLElement<"u"?a instanceof HTMLElement:!!(a&&a.nodeType&&a.nodeName)},d.isArray=function(a){return Object.prototype.toString.call(a)==="[object Array]"},d.isFunction=function(a){return typeof a=="function"},d.isPlainObject=function(a){return typeof a=="object"&&a.constructor===Object},d.isString=function(a){return toString.call(a)==="[object String]"},d.clamp=function(a,r,n){return an?n:a},d.sign=function(a){return a<0?-1:1},d.now=function(){if(typeof window<"u"&&window.performance){if(window.performance.now)return window.performance.now();if(window.performance.webkitNow)return window.performance.webkitNow()}return Date.now?Date.now():new Date-d._nowStartTime},d.random=function(a,r){return a=typeof a<"u"?a:0,r=typeof r<"u"?r:1,a+p()*(r-a)};var p=function(){return d._seed=(d._seed*9301+49297)%233280,d._seed/233280};d.colorToNumber=function(a){return a=a.replace("#",""),a.length==3&&(a=a.charAt(0)+a.charAt(0)+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2)),parseInt(a,16)},d.logLevel=1,d.log=function(){console&&d.logLevel>0&&d.logLevel<=3&&console.log.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},d.info=function(){console&&d.logLevel>0&&d.logLevel<=2&&console.info.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},d.warn=function(){console&&d.logLevel>0&&d.logLevel<=3&&console.warn.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},d.warnOnce=function(){var a=Array.prototype.slice.call(arguments).join(" ");d._warnedOnce[a]||(d.warn(a),d._warnedOnce[a]=!0)},d.deprecated=function(a,r,n){a[r]=d.chain(function(){d.warnOnce("🔅 deprecated 🔅",n)},a[r])},d.nextId=function(){return d._nextId++},d.indexOf=function(a,r){if(a.indexOf)return a.indexOf(r);for(var n=0;n{var d={};c.exports=d;var p=t(53614),a=t(66272),r=t(81388),n=t(99561),e=t(35810),s=t(69351),l=t(48140),i=t(53402),o=t(22562);(function(){d.create=function(u){u=u||{};var h={positionIterations:6,velocityIterations:4,constraintIterations:2,enableSleeping:!1,events:[],plugin:{},gravity:{x:0,y:1,scale:.001},timing:{timestamp:0,timeScale:1,lastDelta:0,lastElapsed:0}},f=i.extend(h,u);return f.world=u.world||s.create({label:"World"}),f.pairs=u.pairs||n.create(),f.detector=u.detector||r.create(),f.grid={buckets:[]},f.world.gravity=f.gravity,f.broadphase=f.grid,f.metrics={},f},d.update=function(u,h){var f=i.now(),v=u.world,m=u.detector,x=u.pairs,g=u.timing,y=g.timestamp,S;h=typeof h<"u"?h:i._baseDelta,h*=g.timeScale,g.timestamp+=h,g.lastDelta=h;var C={timestamp:g.timestamp,delta:h};e.trigger(u,"beforeUpdate",C);var E=s.allBodies(v),A=s.allConstraints(v);for(v.isModified&&(r.setBodies(m,E),s.setModified(v,!1,!1,!0)),u.enableSleeping&&p.update(E,h),d._bodiesApplyGravity(E,u.gravity),h>0&&d._bodiesUpdate(E,h),e.trigger(u,"beforeSolve",C),l.preSolveAll(E),S=0;S0&&e.trigger(u,"collisionStart",{pairs:x.collisionStart,timestamp:g.timestamp,delta:h});var M=i.clamp(20/u.positionIterations,0,1);for(a.preSolvePosition(x.list),S=0;S0&&e.trigger(u,"collisionActive",{pairs:x.collisionActive,timestamp:g.timestamp,delta:h}),x.collisionEnd.length>0&&e.trigger(u,"collisionEnd",{pairs:x.collisionEnd,timestamp:g.timestamp,delta:h}),d._bodiesClearForces(E),e.trigger(u,"afterUpdate",C),u.timing.lastElapsed=i.now()-f,u},d.merge=function(u,h){if(i.extend(u,h),h.world){u.world=h.world,d.clear(u);for(var f=s.allBodies(u.world),v=0;v{var d={};c.exports=d;var p=t(53402);(function(){d.on=function(a,r,n){for(var e=r.split(" "),s,l=0;l0){n||(n={}),e=r.split(" ");for(var u=0;u{var d={};c.exports=d;var p=t(73832),a=t(53402);(function(){d.name="matter-js",d.version="0.19.0",d.uses=[],d.used=[],d.use=function(){p.use(d,Array.prototype.slice.call(arguments))},d.before=function(r,n){return r=r.replace(/^Matter./,""),a.chainPathBefore(d,r,n)},d.after=function(r,n){return r=r.replace(/^Matter./,""),a.chainPathAfter(d,r,n)}})()},73832:(c,T,t)=>{var d={};c.exports=d;var p=t(53402);(function(){d._registry={},d.register=function(a){if(d.isPlugin(a)||p.warn("Plugin.register:",d.toString(a),"does not implement all required fields."),a.name in d._registry){var r=d._registry[a.name],n=d.versionParse(a.version).number,e=d.versionParse(r.version).number;n>e?(p.warn("Plugin.register:",d.toString(r),"was upgraded to",d.toString(a)),d._registry[a.name]=a):n-1},d.isFor=function(a,r){var n=a.for&&d.dependencyParse(a.for);return!a.for||r.name===n.name&&d.versionSatisfies(r.version,n.range)},d.use=function(a,r){if(a.uses=(a.uses||[]).concat(r||[]),a.uses.length===0){p.warn("Plugin.use:",d.toString(a),"does not specify any dependencies to install.");return}for(var n=d.dependencies(a),e=p.topologicalSort(n),s=[],l=0;l0&&!i.silent&&p.info(s.join(" "))},d.dependencies=function(a,r){var n=d.dependencyParse(a),e=n.name;if(r=r||{},!(e in r)){a=d.resolve(a)||a,r[e]=p.map(a.uses||[],function(l){d.isPlugin(l)&&d.register(l);var i=d.dependencyParse(l),o=d.resolve(l);return o&&!d.versionSatisfies(o.version,i.range)?(p.warn("Plugin.dependencies:",d.toString(o),"does not satisfy",d.toString(i),"used by",d.toString(n)+"."),o._warned=!0,a._warned=!0):o||(p.warn("Plugin.dependencies:",d.toString(l),"used by",d.toString(n),"could not be resolved."),a._warned=!0),i.name});for(var s=0;s=|>)?\s*((\d+)\.(\d+)\.(\d+))(-[0-9A-Za-z-+]+)?$/;r.test(a)||p.warn("Plugin.versionParse:",a,"is not a valid version or range.");var n=r.exec(a),e=Number(n[4]),s=Number(n[5]),l=Number(n[6]);return{isRange:!!(n[1]||n[2]),version:n[3],range:a,operator:n[1]||n[2]||"",major:e,minor:s,patch:l,parts:[e,s,l],prerelease:n[7],number:e*1e8+s*1e4+l}},d.versionSatisfies=function(a,r){r=r||"*";var n=d.versionParse(r),e=d.versionParse(a);if(n.isRange){if(n.operator==="*"||a==="*")return!0;if(n.operator===">")return e.number>n.number;if(n.operator===">=")return e.number>=n.number;if(n.operator==="~")return e.major===n.major&&e.minor===n.minor&&e.patch>=n.patch;if(n.operator==="^")return n.major>0?e.major===n.major&&e.number>=n.number:n.minor>0?e.minor===n.minor&&e.patch>=n.patch:e.patch===n.patch}return a===r||a==="*"}})()},53614:(c,T,t)=>{var d={};c.exports=d;var p=t(22562),a=t(35810),r=t(53402);(function(){d._motionWakeThreshold=.18,d._motionSleepThreshold=.08,d._minBias=.9,d.update=function(n,e){for(var s=e/r._baseDelta,l=d._motionSleepThreshold,i=0;i0&&o.motion=o.sleepThreshold/s&&d.set(o,!0)):o.sleepCounter>0&&(o.sleepCounter-=1)}},d.afterCollisions=function(n){for(var e=d._motionSleepThreshold,s=0;se&&d.set(h,!1)}}}},d.set=function(n,e){var s=n.isSleeping;e?(n.isSleeping=!0,n.sleepCounter=n.sleepThreshold,n.positionImpulse.x=0,n.positionImpulse.y=0,n.positionPrev.x=n.position.x,n.positionPrev.y=n.position.y,n.anglePrev=n.angle,n.speed=0,n.angularSpeed=0,n.motion=0,s||a.trigger(n,"sleepStart")):(n.isSleeping=!1,n.sleepCounter=0,s&&a.trigger(n,"sleepEnd"))}})()},66280:(c,T,t)=>{var d={};c.exports=d;var p=t(41598),a=t(53402),r=t(22562),n=t(15647),e=t(31725);(function(){d.rectangle=function(s,l,i,o,u){u=u||{};var h={label:"Rectangle Body",position:{x:s,y:l},vertices:p.fromPath("L 0 0 L "+i+" 0 L "+i+" "+o+" L 0 "+o)};if(u.chamfer){var f=u.chamfer;h.vertices=p.chamfer(h.vertices,f.radius,f.quality,f.qualityMin,f.qualityMax),delete u.chamfer}return r.create(a.extend({},h,u))},d.trapezoid=function(s,l,i,o,u,h){h=h||{},u*=.5;var f=(1-u*2)*i,v=i*u,m=v+f,x=m+v,g;u<.5?g="L 0 0 L "+v+" "+-o+" L "+m+" "+-o+" L "+x+" 0":g="L 0 0 L "+m+" "+-o+" L "+x+" 0";var y={label:"Trapezoid Body",position:{x:s,y:l},vertices:p.fromPath(g)};if(h.chamfer){var S=h.chamfer;y.vertices=p.chamfer(y.vertices,S.radius,S.quality,S.qualityMin,S.qualityMax),delete h.chamfer}return r.create(a.extend({},y,h))},d.circle=function(s,l,i,o,u){o=o||{};var h={label:"Circle Body",circleRadius:i};u=u||25;var f=Math.ceil(Math.max(10,Math.min(u,i)));return f%2===1&&(f+=1),d.polygon(s,l,f,i,a.extend({},h,o))},d.polygon=function(s,l,i,o,u){if(u=u||{},i<3)return d.circle(s,l,o,u);for(var h=2*Math.PI/i,f="",v=h*.5,m=0;m0&&p.area(X)1?(g=r.create(a.extend({parts:y.slice(0)},o)),r.setPosition(g,{x:s,y:l}),g):y[0]},d.flagCoincidentParts=function(s,l){l===void 0&&(l=5);for(var i=0;i{var d={};c.exports=d;var p=t(69351),a=t(48140),r=t(53402),n=t(22562),e=t(66280);(function(){d.stack=function(s,l,i,o,u,h,f){for(var v=p.create({label:"Stack"}),m=s,x=l,g,y=0,S=0;SC&&(C=P),n.translate(A,{x:M*.5,y:P*.5}),m=A.bounds.max.x+u,p.addBody(v,A),g=A,y+=1}else m+=u}x+=C+h,m=s}return v},d.chain=function(s,l,i,o,u,h){for(var f=s.bodies,v=1;v0)for(v=0;v0&&(g=h[v-1+(f-1)*l],p.addConstraint(s,a.create(r.extend({bodyA:g,bodyB:x},u)))),o&&vC)){g=C-g;var A=g,P=i-1-g;if(!(xP)){S===1&&n.translate(y,{x:(x+(i%2===1?1:-1))*E,y:0});var M=y?x*E:0;return f(s+M+x*u,m,x,g,y,S)}}})},d.newtonsCradle=function(s,l,i,o,u){for(var h=p.create({label:"Newtons Cradle"}),f=0;f{var d={};c.exports=d;var p=t(31725),a=t(53402);(function(){d.fromVertices=function(r){for(var n={},e=0;e{var T={};c.exports=T,function(){T.create=function(t){var d={min:{x:0,y:0},max:{x:0,y:0}};return t&&T.update(d,t),d},T.update=function(t,d,p){t.min.x=1/0,t.max.x=-1/0,t.min.y=1/0,t.max.y=-1/0;for(var a=0;at.max.x&&(t.max.x=r.x),r.xt.max.y&&(t.max.y=r.y),r.y0?t.max.x+=p.x:t.min.x+=p.x,p.y>0?t.max.y+=p.y:t.min.y+=p.y)},T.contains=function(t,d){return d.x>=t.min.x&&d.x<=t.max.x&&d.y>=t.min.y&&d.y<=t.max.y},T.overlaps=function(t,d){return t.min.x<=d.max.x&&t.max.x>=d.min.x&&t.max.y>=d.min.y&&t.min.y<=d.max.y},T.translate=function(t,d){t.min.x+=d.x,t.max.x+=d.x,t.min.y+=d.y,t.max.y+=d.y},T.shift=function(t,d){var p=t.max.x-t.min.x,a=t.max.y-t.min.y;t.min.x=d.x,t.max.x=d.x+p,t.min.y=d.y,t.max.y=d.y+a}}()},74058:(c,T,t)=>{var d={};c.exports=d,t(15647);var p=t(53402);(function(){d.pathToVertices=function(a,r){typeof window<"u"&&!("SVGPathSeg"in window)&&p.warn("Svg.pathToVertices: SVGPathSeg not defined, a polyfill is required.");var n,e,s,l,i,o,u,h,f,v,m=[],x,g,y=0,S=0,C=0;r=r||15;var E=function(P,M,F){var L=F%2===1&&F>1;if(!f||P!=f.x||M!=f.y){f&&L?(x=f.x,g=f.y):(x=0,g=0);var b={x:x+P,y:g+M};(L||!f)&&(f=b),m.push(b),S=x+P,C=g+M}},A=function(P){var M=P.pathSegTypeAsLetter.toUpperCase();if(M!=="Z"){switch(M){case"M":case"L":case"T":case"C":case"S":case"Q":S=P.x,C=P.y;break;case"H":S=P.x;break;case"V":C=P.y;break}E(S,C,P.pathSegType)}};for(d._svgPathToAbsolute(a),s=a.getTotalLength(),o=[],n=0;n{var T={};c.exports=T,function(){T.create=function(t,d){return{x:t||0,y:d||0}},T.clone=function(t){return{x:t.x,y:t.y}},T.magnitude=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},T.magnitudeSquared=function(t){return t.x*t.x+t.y*t.y},T.rotate=function(t,d,p){var a=Math.cos(d),r=Math.sin(d);p||(p={});var n=t.x*a-t.y*r;return p.y=t.x*r+t.y*a,p.x=n,p},T.rotateAbout=function(t,d,p,a){var r=Math.cos(d),n=Math.sin(d);a||(a={});var e=p.x+((t.x-p.x)*r-(t.y-p.y)*n);return a.y=p.y+((t.x-p.x)*n+(t.y-p.y)*r),a.x=e,a},T.normalise=function(t){var d=T.magnitude(t);return d===0?{x:0,y:0}:{x:t.x/d,y:t.y/d}},T.dot=function(t,d){return t.x*d.x+t.y*d.y},T.cross=function(t,d){return t.x*d.y-t.y*d.x},T.cross3=function(t,d,p){return(d.x-t.x)*(p.y-t.y)-(d.y-t.y)*(p.x-t.x)},T.add=function(t,d,p){return p||(p={}),p.x=t.x+d.x,p.y=t.y+d.y,p},T.sub=function(t,d,p){return p||(p={}),p.x=t.x-d.x,p.y=t.y-d.y,p},T.mult=function(t,d){return{x:t.x*d,y:t.y*d}},T.div=function(t,d){return{x:t.x/d,y:t.y/d}},T.perp=function(t,d){return d=d===!0?-1:1,{x:d*-t.y,y:d*t.x}},T.neg=function(t){return{x:-t.x,y:-t.y}},T.angle=function(t,d){return Math.atan2(d.y-t.y,d.x-t.x)},T._temp=[T.create(),T.create(),T.create(),T.create(),T.create(),T.create()]}()},41598:(c,T,t)=>{var d={};c.exports=d;var p=t(31725),a=t(53402);(function(){d.create=function(r,n){for(var e=[],s=0;s0)return!1;i=o}return!0},d.scale=function(r,n,e,s){if(n===1&&e===1)return r;s=s||d.centre(r);for(var l,i,o=0;o=0?o-1:r.length-1],h=r[o],f=r[(o+1)%r.length],v=n[o0&&(n|=2),n===3)return!1;return n!==0?!0:null},d.hull=function(r){var n=[],e=[],s,l;for(r=r.slice(0),r.sort(function(i,o){var u=i.x-o.x;return u!==0?u:i.y-o.y}),l=0;l=2&&p.cross3(e[e.length-2],e[e.length-1],s)<=0;)e.pop();e.push(s)}for(l=r.length-1;l>=0;l-=1){for(s=r[l];n.length>=2&&p.cross3(n[n.length-2],n[n.length-1],s)<=0;)n.pop();n.push(s)}return n.pop(),e.pop(),n.concat(e)}})()},18210:(c,T,t)=>{var d=t(19933),p={name:"matter-attractors",version:"0.1.7",for:"matter-js@^0.19.0",silent:!0,install:function(a){a.after("Body.create",function(){p.Body.init(this)}),a.before("Engine.update",function(r){p.Engine.update(r)})},Body:{init:function(a){a.plugin.attractors=a.plugin.attractors||[]}},Engine:{update:function(a){for(var r=d.Composite.allBodies(a.world),n=0;n0)for(var l=0;l{/** - * @author @dxu https://github.com/dxu/matter-collision-events - * @author Richard Davey - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T={name:"matter-collision-events",version:"0.1.6",for:"matter-js@^0.19.0",silent:!0,install:function(t){t.after("Engine.create",function(){t.Events.on(this,"collisionStart",function(d){d.pairs.map(function(p){var a=p.bodyA,r=p.bodyB;a.gameObject&&a.gameObject.emit("collide",a,r,p),r.gameObject&&r.gameObject.emit("collide",r,a,p),t.Events.trigger(a,"onCollide",{pair:p}),t.Events.trigger(r,"onCollide",{pair:p}),a.onCollideCallback&&a.onCollideCallback(p),r.onCollideCallback&&r.onCollideCallback(p),a.onCollideWith[r.id]&&a.onCollideWith[r.id](r,p),r.onCollideWith[a.id]&&r.onCollideWith[a.id](a,p)})}),t.Events.on(this,"collisionActive",function(d){d.pairs.map(function(p){var a=p.bodyA,r=p.bodyB;a.gameObject&&a.gameObject.emit("collideActive",a,r,p),r.gameObject&&r.gameObject.emit("collideActive",r,a,p),t.Events.trigger(a,"onCollideActive",{pair:p}),t.Events.trigger(r,"onCollideActive",{pair:p}),a.onCollideActiveCallback&&a.onCollideActiveCallback(p),r.onCollideActiveCallback&&r.onCollideActiveCallback(p)})}),t.Events.on(this,"collisionEnd",function(d){d.pairs.map(function(p){var a=p.bodyA,r=p.bodyB;a.gameObject&&a.gameObject.emit("collideEnd",a,r,p),r.gameObject&&r.gameObject.emit("collideEnd",r,a,p),t.Events.trigger(a,"onCollideEnd",{pair:p}),t.Events.trigger(r,"onCollideEnd",{pair:p}),a.onCollideEndCallback&&a.onCollideEndCallback(p),r.onCollideEndCallback&&r.onCollideEndCallback(p)})})})}};c.exports=T},74507:(c,T,t)=>{var d=t(19933),p={name:"matter-wrap",version:"0.1.4",for:"matter-js@^0.19.0",silent:!0,install:function(a){a.after("Engine.update",function(){p.Engine.update(this)})},Engine:{update:function(a){for(var r=a.world,n=d.Composite.allBodies(r),e=d.Composite.allComposites(r),s=0;sr.max.x?n=r.min.x-a.max.x:a.max.xr.max.y?e=r.min.y-a.max.y:a.max.y{/** + */c.exports={BodyBounds:t(68174),Components:t(31884),Events:t(1121),Factory:t(28137),MatterGameObject:t(75803),Image:t(23181),Matter:t(19933),MatterPhysics:t(42045),PolyDecomp:t(55973),Sprite:t(34803),TileBody:t(73834),PhysicsEditorParser:t(19496),PhysicsJSONParser:t(85791),PointerConstraint:t(98713),World:t(68243)}},22562:(c,T,t)=>{var d={};c.exports=d;var p=t(41598),l=t(31725),r=t(53614),n=t(53402),e=t(15647),s=t(66615);(function(){d._timeCorrection=!0,d._inertiaScale=4,d._nextCollidingGroupId=1,d._nextNonCollidingGroupId=-1,d._nextCategory=1,d._baseDelta=16.666666666666668,d.create=function(i){var a={id:n.nextId(),type:"body",label:"Body",parts:[],plugin:{},attractors:i.attractors||[],wrapBounds:null,angle:0,vertices:null,position:{x:0,y:0},force:{x:0,y:0},torque:0,positionImpulse:{x:0,y:0},constraintImpulse:{x:0,y:0,angle:0},totalContacts:0,speed:0,angularSpeed:0,velocity:{x:0,y:0},angularVelocity:0,isSensor:!1,isStatic:!1,isSleeping:!1,motion:0,sleepThreshold:60,density:.001,restitution:0,friction:.1,frictionStatic:.5,frictionAir:.01,collisionFilter:{category:1,mask:4294967295,group:0},slop:.05,timeScale:1,events:null,bounds:null,chamfer:null,circleRadius:0,positionPrev:null,anglePrev:0,parent:null,axes:null,area:0,mass:0,inverseMass:0,inertia:0,deltaTime:16.666666666666668,inverseInertia:0,_original:null,render:{visible:!0,opacity:1,sprite:{xOffset:0,yOffset:0},fillColor:null,fillOpacity:null,lineColor:null,lineOpacity:null,lineThickness:null},gameObject:null,scale:{x:1,y:1},centerOfMass:{x:0,y:0},centerOffset:{x:0,y:0},gravityScale:{x:1,y:1},ignoreGravity:!1,ignorePointer:!1,onCollideCallback:null,onCollideEndCallback:null,onCollideActiveCallback:null,onCollideWith:{}};!i.hasOwnProperty("position")&&i.hasOwnProperty("vertices")?i.position=p.centre(i.vertices):i.hasOwnProperty("vertices")||(a.vertices=p.fromPath("L 0 0 L 40 0 L 40 40 L 0 40"));var u=n.extend(a,i);return o(u,i),u.setOnCollideWith=function(h,f){return f?this.onCollideWith[h.id]=f:delete this.onCollideWith[h.id],this},u},d.nextGroup=function(i){return i?d._nextNonCollidingGroupId--:d._nextCollidingGroupId++},d.nextCategory=function(){return d._nextCategory=d._nextCategory<<1,d._nextCategory};var o=function(i,a){if(a=a||{},d.set(i,{bounds:i.bounds||e.create(i.vertices),positionPrev:i.positionPrev||l.clone(i.position),anglePrev:i.anglePrev||i.angle,vertices:i.vertices,parts:i.parts||[i],isStatic:i.isStatic,isSleeping:i.isSleeping,parent:i.parent||i}),p.rotate(i.vertices,i.angle,i.position),s.rotate(i.axes,i.angle),e.update(i.bounds,i.vertices,i.velocity),d.set(i,{axes:a.axes||i.axes,area:a.area||i.area,mass:a.mass||i.mass,inertia:a.inertia||i.inertia}),i.parts.length===1){var u=i.bounds,h=i.centerOfMass,f=i.centerOffset,v=u.max.x-u.min.x,m=u.max.y-u.min.y;h.x=-(u.min.x-i.position.x)/v,h.y=-(u.min.y-i.position.y)/m,f.x=v*h.x,f.y=m*h.y}};d.set=function(i,a,u){var h;typeof a=="string"&&(h=a,a={},a[h]=u);for(h in a)if(Object.prototype.hasOwnProperty.call(a,h))switch(u=a[h],h){case"isStatic":d.setStatic(i,u);break;case"isSleeping":r.set(i,u);break;case"mass":d.setMass(i,u);break;case"density":d.setDensity(i,u);break;case"inertia":d.setInertia(i,u);break;case"vertices":d.setVertices(i,u);break;case"position":d.setPosition(i,u);break;case"angle":d.setAngle(i,u);break;case"velocity":d.setVelocity(i,u);break;case"angularVelocity":d.setAngularVelocity(i,u);break;case"speed":d.setSpeed(i,u);break;case"angularSpeed":d.setAngularSpeed(i,u);break;case"parts":d.setParts(i,u);break;case"centre":d.setCentre(i,u);break;default:i[h]=u}},d.setStatic=function(i,a){for(var u=0;u0&&l.rotateAbout(v.position,h,i.position,v.position)}},d.setVelocity=function(i,a){var u=i.deltaTime/d._baseDelta;i.positionPrev.x=i.position.x-a.x*u,i.positionPrev.y=i.position.y-a.y*u,i.velocity.x=(i.position.x-i.positionPrev.x)/u,i.velocity.y=(i.position.y-i.positionPrev.y)/u,i.speed=l.magnitude(i.velocity)},d.getVelocity=function(i){var a=d._baseDelta/i.deltaTime;return{x:(i.position.x-i.positionPrev.x)*a,y:(i.position.y-i.positionPrev.y)*a}},d.getSpeed=function(i){return l.magnitude(d.getVelocity(i))},d.setSpeed=function(i,a){d.setVelocity(i,l.mult(l.normalise(d.getVelocity(i)),a))},d.setAngularVelocity=function(i,a){var u=i.deltaTime/d._baseDelta;i.anglePrev=i.angle-a*u,i.angularVelocity=(i.angle-i.anglePrev)/u,i.angularSpeed=Math.abs(i.angularVelocity)},d.getAngularVelocity=function(i){return(i.angle-i.anglePrev)*d._baseDelta/i.deltaTime},d.getAngularSpeed=function(i){return Math.abs(d.getAngularVelocity(i))},d.setAngularSpeed=function(i,a){d.setAngularVelocity(i,n.sign(d.getAngularVelocity(i))*a)},d.translate=function(i,a,u){d.setPosition(i,l.add(i.position,a),u)},d.rotate=function(i,a,u,h){if(!u)d.setAngle(i,i.angle+a,h);else{var f=Math.cos(a),v=Math.sin(a),m=i.position.x-u.x,g=i.position.y-u.y;d.setPosition(i,{x:u.x+(m*f-g*v),y:u.y+(m*v+g*f)},h),d.setAngle(i,i.angle+a,h)}},d.scale=function(i,a,u,h){var f=0,v=0;h=h||i.position;for(var m=i.inertia===1/0,g=0;g0&&(f+=x.area,v+=x.inertia),x.position.x=h.x+(x.position.x-h.x)*a,x.position.y=h.y+(x.position.y-h.y)*u,e.update(x.bounds,x.vertices,i.velocity)}i.parts.length>1&&(i.area=f,i.isStatic||(d.setMass(i,i.density*f),d.setInertia(i,v))),i.circleRadius&&(a===u?i.circleRadius*=a:i.circleRadius=null),m&&d.setInertia(i,1/0)},d.update=function(i,a){a=(typeof a<"u"?a:16.666666666666668)*i.timeScale;var u=a*a,h=d._timeCorrection?a/(i.deltaTime||a):1,f=1-i.frictionAir*(a/n._baseDelta),v=(i.position.x-i.positionPrev.x)*h,m=(i.position.y-i.positionPrev.y)*h;i.velocity.x=v*f+i.force.x/i.mass*u,i.velocity.y=m*f+i.force.y/i.mass*u,i.positionPrev.x=i.position.x,i.positionPrev.y=i.position.y,i.position.x+=i.velocity.x,i.position.y+=i.velocity.y,i.deltaTime=a,i.angularVelocity=(i.angle-i.anglePrev)*f*h+i.torque/i.inertia*u,i.anglePrev=i.angle,i.angle+=i.angularVelocity,i.speed=l.magnitude(i.velocity),i.angularSpeed=Math.abs(i.angularVelocity);for(var g=0;g0&&(x.position.x+=i.velocity.x,x.position.y+=i.velocity.y),i.angularVelocity!==0&&(p.rotate(x.vertices,i.angularVelocity,i.position),s.rotate(x.axes,i.angularVelocity),g>0&&l.rotateAbout(x.position,i.angularVelocity,i.position,x.position)),e.update(x.bounds,x.vertices,i.velocity)}},d.updateVelocities=function(i){var a=d._baseDelta/i.deltaTime,u=i.velocity;u.x=(i.position.x-i.positionPrev.x)*a,u.y=(i.position.y-i.positionPrev.y)*a,i.speed=Math.sqrt(u.x*u.x+u.y*u.y),i.angularVelocity=(i.angle-i.anglePrev)*a,i.angularSpeed=Math.abs(i.angularVelocity)},d.applyForce=function(i,a,u){var h={x:a.x-i.position.x,y:a.y-i.position.y};i.force.x+=u.x,i.force.y+=u.y,i.torque+=h.x*u.y-h.y*u.x},d._totalProperties=function(i){for(var a={mass:0,area:0,inertia:0,centre:{x:0,y:0}},u=i.parts.length===1?0:1;u{var d={};c.exports=d;var p=t(35810),l=t(53402),r=t(15647),n=t(22562);(function(){d.create=function(e){return l.extend({id:l.nextId(),type:"composite",parent:null,isModified:!1,bodies:[],constraints:[],composites:[],label:"Composite",plugin:{},wrapBounds:null,cache:{allBodies:null,allConstraints:null,allComposites:null}},e)},d.setModified=function(e,s,o,i){if(p.trigger(e,"compositeModified",e),e.isModified=s,s&&e.cache&&(e.cache.allBodies=null,e.cache.allConstraints=null,e.cache.allComposites=null),o&&e.parent&&d.setModified(e.parent,s,o,i),i)for(var a=0;a{var d={};c.exports=d;var p=t(69351);(function(){d.create=p.create,d.add=p.add,d.remove=p.remove,d.clear=p.clear,d.addComposite=p.addComposite,d.addBody=p.addBody,d.addConstraint=p.addConstraint})()},52284:(c,T,t)=>{var d={};c.exports=d;var p=t(41598),l=t(4506);(function(){var r=[],n={overlap:0,axis:null},e={overlap:0,axis:null};d.create=function(s,o){return{pair:null,collided:!1,bodyA:s,bodyB:o,parentA:s.parent,parentB:o.parent,depth:0,normal:{x:0,y:0},tangent:{x:0,y:0},penetration:{x:0,y:0},supports:[null,null],supportCount:0}},d.collides=function(s,o,i){if(d._overlapAxes(n,s.vertices,o.vertices,s.axes),n.overlap<=0||(d._overlapAxes(e,o.vertices,s.vertices,o.axes),e.overlap<=0))return null;var a=i&&i.table[l.id(s,o)],u;a?u=a.collision:(u=d.create(s,o),u.collided=!0,u.bodyA=s.id=0&&(S=-S,C=-C),f.x=S,f.y=C,v.x=-C,v.y=S,m.x=S*x,m.y=C*x,u.depth=x;var P=d._findSupports(s,o,f,1),A=0;if(p.contains(s.vertices,P[0])&&(g[A++]=P[0]),p.contains(s.vertices,P[1])&&(g[A++]=P[1]),A<2){var R=d._findSupports(o,s,f,-1);p.contains(o.vertices,R[0])&&(g[A++]=R[0]),A<2&&p.contains(o.vertices,R[1])&&(g[A++]=R[1])}return A===0&&(g[A++]=P[0]),u.supportCount=A,u},d._overlapAxes=function(s,o,i,a){var u=o.length,h=i.length,f=o[0].x,v=o[0].y,m=i[0].x,g=i[0].y,x=a.length,y=Number.MAX_VALUE,S=0,C,E,M,P,A,R;for(A=0;Ab?b=P:PB?B=P:P{var T={};c.exports=T,function(){T.create=function(t){return{vertex:t,normalImpulse:0,tangentImpulse:0}}}()},81388:(c,T,t)=>{var d={};c.exports=d;var p=t(53402),l=t(52284);(function(){d.create=function(r){var n={bodies:[],collisions:[],pairs:null};return p.extend(n,r)},d.setBodies=function(r,n){r.bodies=n.slice(0)},d.clear=function(r){r.bodies=[],r.collisions=[]},d.collisions=function(r){var n=r.pairs,e=r.bodies,s=e.length,o=d.canCollide,i=l.collides,a=r.collisions,u=0,h,f;for(e.sort(d._compareBoundsX),h=0;hg)break;if(!(xP.max.y)&&!(S&&(M.isStatic||M.isSleeping))&&o(v.collisionFilter,M.collisionFilter)){var A=M.parts.length;if(E&&A===1){var R=i(v,M,n);R&&(a[u++]=R)}else for(var F=C>1?1:0,D=A>1?1:0,w=F;wP.max.x||m.max.xP.max.y)){var R=i(G,b,n);R&&(a[u++]=R)}}}}}return a.length!==u&&(a.length=u),a},d.canCollide=function(r,n){return r.group===n.group&&r.group!==0?r.group>0:(r.mask&n.category)!==0&&(n.mask&r.category)!==0},d._compareBoundsX=function(r,n){return r.bounds.min.x-n.bounds.min.x}})()},4506:(c,T,t)=>{var d={};c.exports=d;var p=t(43424);(function(){d.create=function(l,r){var n=l.bodyA,e=l.bodyB,s={id:d.id(n,e),bodyA:n,bodyB:e,collision:l,contacts:[p.create(),p.create()],contactCount:0,separation:0,isActive:!0,isSensor:n.isSensor||e.isSensor,timeCreated:r,timeUpdated:r,inverseMass:0,friction:0,frictionStatic:0,restitution:0,slop:0};return d.update(s,l,r),s},d.update=function(l,r,n){var e=r.supports,s=r.supportCount,o=l.contacts,i=r.parentA,a=r.parentB;l.isActive=!0,l.timeUpdated=n,l.collision=r,l.separation=r.depth,l.inverseMass=i.inverseMass+a.inverseMass,l.friction=i.frictiona.frictionStatic?i.frictionStatic:a.frictionStatic,l.restitution=i.restitution>a.restitution?i.restitution:a.restitution,l.slop=i.slop>a.slop?i.slop:a.slop,l.contactCount=s,r.pair=l;var u=e[0],h=o[0],f=e[1],v=o[1];(v.vertex===u||h.vertex===f)&&(o[1]=h,o[0]=h=v,v=o[1]),h.vertex=u,v.vertex=f},d.setActive=function(l,r,n){r?(l.isActive=!0,l.timeUpdated=n):(l.isActive=!1,l.contactCount=0)},d.id=function(l,r){return l.id{var d={};c.exports=d;var p=t(4506),l=t(53402);(function(){d.create=function(r){return l.extend({table:{},list:[],collisionStart:[],collisionActive:[],collisionEnd:[]},r)},d.update=function(r,n,e){var s=p.update,o=p.create,i=p.setActive,a=r.table,u=r.list,h=u.length,f=h,v=r.collisionStart,m=r.collisionEnd,g=r.collisionActive,x=n.length,y=0,S=0,C=0,E,M,P;for(P=0;P=e?u[f++]=M:(i(M,!1,e),M.collision.bodyA.sleepCounter>0&&M.collision.bodyB.sleepCounter>0?u[f++]=M:(m[S++]=M,delete a[M.id]));u.length!==f&&(u.length=f),v.length!==y&&(v.length=y),m.length!==S&&(m.length=S),g.length!==C&&(g.length=C)},d.clear=function(r){return r.table={},r.list.length=0,r.collisionStart.length=0,r.collisionActive.length=0,r.collisionEnd.length=0,r}})()},73296:(c,T,t)=>{var d={};c.exports=d;var p=t(31725),l=t(52284),r=t(15647),n=t(66280),e=t(41598);(function(){d.collides=function(s,o){for(var i=[],a=o.length,u=s.bounds,h=l.collides,f=r.overlaps,v=0;v{var d={};c.exports=d;var p=t(41598),l=t(53402),r=t(15647);(function(){d._restingThresh=2,d._restingThreshTangent=Math.sqrt(6),d._positionDampen=.9,d._positionWarming=.8,d._frictionNormalMultiplier=5,d._frictionMaxStatic=Number.MAX_VALUE,d.preSolvePosition=function(n){var e,s,o,i=n.length;for(e=0;eft?(g=it>0?it:-it,m=S.friction*(it>0?1:-1)*i,m<-g?m=-g:m>g&&(m=g)):(m=it,g=f);var mt=Y*A-W*P,pt=H*A-K*P,xt=b/(D+E.inverseInertia*mt*mt+M.inverseInertia*pt*pt),vt=(1+S.restitution)*Q*xt;if(m*=xt,Q0&&(z.normalImpulse=0),vt=z.normalImpulse-yt}if(it<-u||it>u)z.tangentImpulse=0;else{var dt=z.tangentImpulse;z.tangentImpulse+=m,z.tangentImpulse<-g&&(z.tangentImpulse=-g),z.tangentImpulse>g&&(z.tangentImpulse=g),m=z.tangentImpulse-dt}var St=P*vt+R*m,gt=A*vt+F*m;E.isStatic||E.isSleeping||(E.positionPrev.x+=St*E.inverseMass,E.positionPrev.y+=gt*E.inverseMass,E.anglePrev+=(Y*gt-W*St)*E.inverseInertia),M.isStatic||M.isSleeping||(M.positionPrev.x-=St*M.inverseMass,M.positionPrev.y-=gt*M.inverseMass,M.anglePrev-=(H*gt-K*St)*M.inverseInertia)}}}}})()},48140:(c,T,t)=>{var d={};c.exports=d;var p=t(41598),l=t(31725),r=t(53614),n=t(15647),e=t(66615),s=t(53402);(function(){d._warming=.4,d._torqueDampen=1,d._minLength=1e-6,d.create=function(o){var i=o;i.bodyA&&!i.pointA&&(i.pointA={x:0,y:0}),i.bodyB&&!i.pointB&&(i.pointB={x:0,y:0});var a=i.bodyA?l.add(i.bodyA.position,i.pointA):i.pointA,u=i.bodyB?l.add(i.bodyB.position,i.pointB):i.pointB,h=l.magnitude(l.sub(a,u));i.length=typeof i.length<"u"?i.length:h,i.id=i.id||s.nextId(),i.label=i.label||"Constraint",i.type="constraint",i.stiffness=i.stiffness||(i.length>0?1:.7),i.damping=i.damping||0,i.angularStiffness=i.angularStiffness||0,i.angleA=i.bodyA?i.bodyA.angle:i.angleA,i.angleB=i.bodyB?i.bodyB.angle:i.angleB,i.plugin={};var f={visible:!0,type:"line",anchors:!0,lineColor:null,lineOpacity:null,lineThickness:null,pinSize:null,anchorColor:null,anchorSize:null};return i.length===0&&i.stiffness>.1?(f.type="pin",f.anchors=!1):i.stiffness<.9&&(f.type="spring"),i.render=s.extend(f,i.render),i},d.preSolveAll=function(o){for(var i=0;i=1||o.length===0,C=S?o.stiffness*i:o.stiffness*i*i,E=o.damping*i,M=l.mult(g,y*C),P=(a?a.inverseMass:0)+(u?u.inverseMass:0),A=(a?a.inverseInertia:0)+(u?u.inverseInertia:0),R=P+A,F,D,w,G,N;if(E>0){var b=l.create();w=l.div(g,x),N=l.sub(u&&l.sub(u.position,u.positionPrev)||b,a&&l.sub(a.position,a.positionPrev)||b),G=l.dot(w,N)}a&&!a.isStatic&&(D=a.inverseMass/P,a.constraintImpulse.x-=M.x*D,a.constraintImpulse.y-=M.y*D,a.position.x-=M.x*D,a.position.y-=M.y*D,E>0&&(a.positionPrev.x-=E*w.x*G*D,a.positionPrev.y-=E*w.y*G*D),F=l.cross(h,M)/R*d._torqueDampen*a.inverseInertia*(1-o.angularStiffness),a.constraintImpulse.angle-=F,a.angle-=F),u&&!u.isStatic&&(D=u.inverseMass/P,u.constraintImpulse.x+=M.x*D,u.constraintImpulse.y+=M.y*D,u.position.x+=M.x*D,u.position.y+=M.y*D,E>0&&(u.positionPrev.x+=E*w.x*G*D,u.positionPrev.y+=E*w.y*G*D),F=l.cross(f,M)/R*d._torqueDampen*u.inverseInertia*(1-o.angularStiffness),u.constraintImpulse.angle+=F,u.angle+=F)}}},d.postSolveAll=function(o){for(var i=0;i0&&(f.position.x+=u.x,f.position.y+=u.y),u.angle!==0&&(p.rotate(f.vertices,u.angle,a.position),e.rotate(f.axes,u.angle),h>0&&l.rotateAbout(f.position,u.angle,a.position,f.position)),n.update(f.bounds,f.vertices,a.velocity)}u.angle*=d._warming,u.x*=d._warming,u.y*=d._warming}}},d.pointAWorld=function(o){return{x:(o.bodyA?o.bodyA.position.x:0)+(o.pointA?o.pointA.x:0),y:(o.bodyA?o.bodyA.position.y:0)+(o.pointA?o.pointA.y:0)}},d.pointBWorld=function(o){return{x:(o.bodyB?o.bodyB.position.x:0)+(o.pointB?o.pointB.x:0),y:(o.bodyB?o.bodyB.position.y:0)+(o.pointB?o.pointB.y:0)}},d.currentLength=function(o){var i=(o.bodyA?o.bodyA.position.x:0)+(o.pointA?o.pointA.x:0),a=(o.bodyA?o.bodyA.position.y:0)+(o.pointA?o.pointA.y:0),u=(o.bodyB?o.bodyB.position.x:0)+(o.pointB?o.pointB.x:0),h=(o.bodyB?o.bodyB.position.y:0)+(o.pointB?o.pointB.y:0),f=i-u,v=a-h;return Math.sqrt(f*f+v*v)}})()},53402:(c,T,t)=>{var d={};c.exports=d,function(){d._baseDelta=16.666666666666668,d._nextId=0,d._seed=0,d._nowStartTime=+new Date,d._warnedOnce={},d._decomp=null,d.extend=function(l,r){var n,e;typeof r=="boolean"?(n=2,e=r):(n=1,e=!0);for(var s=n;s0;r--){var n=Math.floor(d.random()*(r+1)),e=l[r];l[r]=l[n],l[n]=e}return l},d.choose=function(l){return l[Math.floor(d.random()*l.length)]},d.isElement=function(l){return typeof HTMLElement<"u"?l instanceof HTMLElement:!!(l&&l.nodeType&&l.nodeName)},d.isArray=function(l){return Object.prototype.toString.call(l)==="[object Array]"},d.isFunction=function(l){return typeof l=="function"},d.isPlainObject=function(l){return typeof l=="object"&&l.constructor===Object},d.isString=function(l){return toString.call(l)==="[object String]"},d.clamp=function(l,r,n){return ln?n:l},d.sign=function(l){return l<0?-1:1},d.now=function(){if(typeof window<"u"&&window.performance){if(window.performance.now)return window.performance.now();if(window.performance.webkitNow)return window.performance.webkitNow()}return Date.now?Date.now():new Date-d._nowStartTime},d.random=function(l,r){return l=typeof l<"u"?l:0,r=typeof r<"u"?r:1,l+p()*(r-l)};var p=function(){return d._seed=(d._seed*9301+49297)%233280,d._seed/233280};d.colorToNumber=function(l){return l=l.replace("#",""),l.length==3&&(l=l.charAt(0)+l.charAt(0)+l.charAt(1)+l.charAt(1)+l.charAt(2)+l.charAt(2)),parseInt(l,16)},d.logLevel=1,d.log=function(){console&&d.logLevel>0&&d.logLevel<=3&&console.log.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},d.info=function(){console&&d.logLevel>0&&d.logLevel<=2&&console.info.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},d.warn=function(){console&&d.logLevel>0&&d.logLevel<=3&&console.warn.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},d.warnOnce=function(){var l=Array.prototype.slice.call(arguments).join(" ");d._warnedOnce[l]||(d.warn(l),d._warnedOnce[l]=!0)},d.deprecated=function(l,r,n){l[r]=d.chain(function(){d.warnOnce("🔅 deprecated 🔅",n)},l[r])},d.nextId=function(){return d._nextId++},d.indexOf=function(l,r){if(l.indexOf)return l.indexOf(r);for(var n=0;n{var d={};c.exports=d;var p=t(53614),l=t(66272),r=t(81388),n=t(99561),e=t(35810),s=t(69351),o=t(48140),i=t(53402),a=t(22562);(function(){d._deltaMax=16.666666666666668,d.create=function(u){u=u||{};var h={positionIterations:6,velocityIterations:4,constraintIterations:2,enableSleeping:!1,events:[],plugin:{},gravity:{x:0,y:1,scale:.001},timing:{timestamp:0,timeScale:1,lastDelta:0,lastElapsed:0,lastUpdatesPerFrame:0}},f=i.extend(h,u);return f.world=u.world||s.create({label:"World"}),f.pairs=u.pairs||n.create(),f.detector=u.detector||r.create(),f.detector.pairs=f.pairs,f.grid={buckets:[]},f.world.gravity=f.gravity,f.broadphase=f.grid,f.metrics={},f},d.update=function(u,h){var f=i.now(),v=u.world,m=u.detector,g=u.pairs,x=u.timing,y=x.timestamp,S;h>d._deltaMax&&i.warnOnce("Matter.Engine.update: delta argument is recommended to be less than or equal to",d._deltaMax.toFixed(3),"ms."),h=typeof h<"u"?h:i._baseDelta,h*=x.timeScale,x.timestamp+=h,x.lastDelta=h;var C={timestamp:x.timestamp,delta:h};e.trigger(u,"beforeUpdate",C);var E=s.allBodies(v),M=s.allConstraints(v),P=s.allComposites(v);for(v.isModified&&(r.setBodies(m,E),s.setModified(v,!1,!1,!0)),u.enableSleeping&&p.update(E,h),d._bodiesApplyGravity(E,u.gravity),d.wrap(E,P),d.attractors(E),h>0&&d._bodiesUpdate(E,h),e.trigger(u,"beforeSolve",C),o.preSolveAll(E),S=0;S0&&e.trigger(u,"collisionStart",{pairs:g.collisionStart,timestamp:x.timestamp,delta:h});var R=i.clamp(20/u.positionIterations,0,1);for(l.preSolvePosition(g.list),S=0;S0&&e.trigger(u,"collisionActive",{pairs:g.collisionActive,timestamp:x.timestamp,delta:h}),g.collisionEnd.length>0&&e.trigger(u,"collisionEnd",{pairs:g.collisionEnd,timestamp:x.timestamp,delta:h}),d._bodiesClearForces(E),e.trigger(u,"afterUpdate",C),u.timing.lastElapsed=i.now()-f,u},d.merge=function(u,h){if(i.extend(u,h),h.world){u.world=h.world,d.clear(u);for(var f=s.allBodies(u.world),v=0;v0)for(var m=0;m{var d={};c.exports=d;var p=t(53402);(function(){d.on=function(l,r,n){for(var e=r.split(" "),s,o=0;o0){n||(n={}),e=r.split(" ");for(var u=0;u{var d={};c.exports=d;var p=t(73832),l=t(53402);(function(){d.name="matter-js",d.version="0.20.0",d.uses=[],d.used=[],d.use=function(){p.use(d,Array.prototype.slice.call(arguments))},d.before=function(r,n){return r=r.replace(/^Matter./,""),l.chainPathBefore(d,r,n)},d.after=function(r,n){return r=r.replace(/^Matter./,""),l.chainPathAfter(d,r,n)}})()},73832:(c,T,t)=>{var d={};c.exports=d;var p=t(53402);(function(){d._registry={},d.register=function(l){if(d.isPlugin(l)||p.warn("Plugin.register:",d.toString(l),"does not implement all required fields."),l.name in d._registry){var r=d._registry[l.name],n=d.versionParse(l.version).number,e=d.versionParse(r.version).number;n>e?(p.warn("Plugin.register:",d.toString(r),"was upgraded to",d.toString(l)),d._registry[l.name]=l):n-1},d.isFor=function(l,r){var n=l.for&&d.dependencyParse(l.for);return!l.for||r.name===n.name&&d.versionSatisfies(r.version,n.range)},d.use=function(l,r){if(l.uses=(l.uses||[]).concat(r||[]),l.uses.length===0){p.warn("Plugin.use:",d.toString(l),"does not specify any dependencies to install.");return}for(var n=d.dependencies(l),e=p.topologicalSort(n),s=[],o=0;o0&&!i.silent&&p.info(s.join(" "))},d.dependencies=function(l,r){var n=d.dependencyParse(l),e=n.name;if(r=r||{},!(e in r)){l=d.resolve(l)||l,r[e]=p.map(l.uses||[],function(o){d.isPlugin(o)&&d.register(o);var i=d.dependencyParse(o),a=d.resolve(o);return a&&!d.versionSatisfies(a.version,i.range)?(p.warn("Plugin.dependencies:",d.toString(a),"does not satisfy",d.toString(i),"used by",d.toString(n)+"."),a._warned=!0,l._warned=!0):a||(p.warn("Plugin.dependencies:",d.toString(o),"used by",d.toString(n),"could not be resolved."),l._warned=!0),i.name});for(var s=0;s=|>)?\s*((\d+)\.(\d+)\.(\d+))(-[0-9A-Za-z-+]+)?$/;r.test(l)||p.warn("Plugin.versionParse:",l,"is not a valid version or range.");var n=r.exec(l),e=Number(n[4]),s=Number(n[5]),o=Number(n[6]);return{isRange:!!(n[1]||n[2]),version:n[3],range:l,operator:n[1]||n[2]||"",major:e,minor:s,patch:o,parts:[e,s,o],prerelease:n[7],number:e*1e8+s*1e4+o}},d.versionSatisfies=function(l,r){r=r||"*";var n=d.versionParse(r),e=d.versionParse(l);if(n.isRange){if(n.operator==="*"||l==="*")return!0;if(n.operator===">")return e.number>n.number;if(n.operator===">=")return e.number>=n.number;if(n.operator==="~")return e.major===n.major&&e.minor===n.minor&&e.patch>=n.patch;if(n.operator==="^")return n.major>0?e.major===n.major&&e.number>=n.number:n.minor>0?e.minor===n.minor&&e.patch>=n.patch:e.patch===n.patch}return l===r||l==="*"}})()},13037:(c,T,t)=>{var d={};c.exports=d;var p=t(35810),l=t(48413),r=t(53402);(function(){d._maxFrameDelta=66.66666666666667,d._frameDeltaFallback=16.666666666666668,d._timeBufferMargin=1.5,d._elapsedNextEstimate=1,d._smoothingLowerBound=.1,d._smoothingUpperBound=.9,d.create=function(e){var s={delta:16.666666666666668,frameDelta:null,frameDeltaSmoothing:!0,frameDeltaSnapping:!0,frameDeltaHistory:[],frameDeltaHistorySize:100,frameRequestId:null,timeBuffer:0,timeLastTick:null,maxUpdates:null,maxFrameTime:33.333333333333336,lastUpdatesDeferred:0,enabled:!0},o=r.extend(s,e);return o.fps=0,o},d.run=function(e,s){return e.timeBuffer=d._frameDeltaFallback,function o(i){e.frameRequestId=d._onNextFrame(e,o),i&&e.enabled&&d.tick(e,s,i)}(),e},d.tick=function(e,s,o){var i=r.now(),a=e.delta,u=0,h=o-e.timeLastTick;if((!h||!e.timeLastTick||h>Math.max(d._maxFrameDelta,e.maxFrameTime))&&(h=e.frameDelta||d._frameDeltaFallback),e.frameDeltaSmoothing){e.frameDeltaHistory.push(h),e.frameDeltaHistory=e.frameDeltaHistory.slice(-e.frameDeltaHistorySize);var f=e.frameDeltaHistory.slice(0).sort(),v=e.frameDeltaHistory.slice(f.length*d._smoothingLowerBound,f.length*d._smoothingUpperBound),m=n(v);h=m||h}e.frameDeltaSnapping&&(h=1e3/Math.round(1e3/h)),e.frameDelta=h,e.timeLastTick=o,e.timeBuffer+=e.frameDelta,e.timeBuffer=r.clamp(e.timeBuffer,0,e.frameDelta+a*d._timeBufferMargin),e.lastUpdatesDeferred=0;var g=e.maxUpdates||Math.ceil(e.maxFrameTime/a),x={timestamp:s.timing.timestamp};p.trigger(e,"beforeTick",x),p.trigger(e,"tick",x);for(var y=r.now();a>0&&e.timeBuffer>=a*d._timeBufferMargin;){p.trigger(e,"beforeUpdate",x),l.update(s,a),p.trigger(e,"afterUpdate",x),e.timeBuffer-=a,u+=1;var S=r.now()-i,C=r.now()-y,E=S+d._elapsedNextEstimate*C/u;if(u>=g||E>e.maxFrameTime){e.lastUpdatesDeferred=Math.round(Math.max(0,e.timeBuffer/a-d._timeBufferMargin));break}}s.timing.lastUpdatesPerFrame=u,p.trigger(e,"afterTick",x),e.frameDeltaHistory.length>=100&&(e.lastUpdatesDeferred&&Math.round(e.frameDelta/a)>g?r.warnOnce("Matter.Runner: runner reached runner.maxUpdates, see docs."):e.lastUpdatesDeferred&&r.warnOnce("Matter.Runner: runner reached runner.maxFrameTime, see docs."),typeof e.isFixed<"u"&&r.warnOnce("Matter.Runner: runner.isFixed is now redundant, see docs."),(e.deltaMin||e.deltaMax)&&r.warnOnce("Matter.Runner: runner.deltaMin and runner.deltaMax were removed, see docs."),e.fps!==0&&r.warnOnce("Matter.Runner: runner.fps was replaced by runner.delta, see docs."))},d.stop=function(e){d._cancelNextFrame(e)},d._onNextFrame=function(e,s){if(typeof window<"u"&&window.requestAnimationFrame)e.frameRequestId=window.requestAnimationFrame(s);else throw new Error("Matter.Runner: missing required global window.requestAnimationFrame.");return e.frameRequestId},d._cancelNextFrame=function(e){if(typeof window<"u"&&window.cancelAnimationFrame)window.cancelAnimationFrame(e.frameRequestId);else throw new Error("Matter.Runner: missing required global window.cancelAnimationFrame.")};var n=function(e){for(var s=0,o=e.length,i=0;i{var d={};c.exports=d;var p=t(22562),l=t(35810),r=t(53402);(function(){d._motionWakeThreshold=.18,d._motionSleepThreshold=.08,d._minBias=.9,d.update=function(n,e){for(var s=e/r._baseDelta,o=d._motionSleepThreshold,i=0;i0&&a.motion=a.sleepThreshold/s&&d.set(a,!0)):a.sleepCounter>0&&(a.sleepCounter-=1)}},d.afterCollisions=function(n){for(var e=d._motionSleepThreshold,s=0;se&&d.set(h,!1)}}}},d.set=function(n,e){var s=n.isSleeping;e?(n.isSleeping=!0,n.sleepCounter=n.sleepThreshold,n.positionImpulse.x=0,n.positionImpulse.y=0,n.positionPrev.x=n.position.x,n.positionPrev.y=n.position.y,n.anglePrev=n.angle,n.speed=0,n.angularSpeed=0,n.motion=0,s||l.trigger(n,"sleepStart")):(n.isSleeping=!1,n.sleepCounter=0,s&&l.trigger(n,"sleepEnd"))}})()},66280:(c,T,t)=>{var d={};c.exports=d;var p=t(41598),l=t(53402),r=t(22562),n=t(15647),e=t(31725);(function(){d.rectangle=function(s,o,i,a,u){u=u||{};var h={label:"Rectangle Body",position:{x:s,y:o},vertices:p.fromPath("L 0 0 L "+i+" 0 L "+i+" "+a+" L 0 "+a)};if(u.chamfer){var f=u.chamfer;h.vertices=p.chamfer(h.vertices,f.radius,f.quality,f.qualityMin,f.qualityMax),delete u.chamfer}return r.create(l.extend({},h,u))},d.trapezoid=function(s,o,i,a,u,h){h=h||{},u>=1&&l.warn("Bodies.trapezoid: slope parameter must be < 1."),u*=.5;var f=(1-u*2)*i,v=i*u,m=v+f,g=m+v,x;u<.5?x="L 0 0 L "+v+" "+-a+" L "+m+" "+-a+" L "+g+" 0":x="L 0 0 L "+m+" "+-a+" L "+g+" 0";var y={label:"Trapezoid Body",position:{x:s,y:o},vertices:p.fromPath(x)};if(h.chamfer){var S=h.chamfer;y.vertices=p.chamfer(y.vertices,S.radius,S.quality,S.qualityMin,S.qualityMax),delete h.chamfer}return r.create(l.extend({},y,h))},d.circle=function(s,o,i,a,u){a=a||{};var h={label:"Circle Body",circleRadius:i};u=u||25;var f=Math.ceil(Math.max(10,Math.min(u,i)));return f%2===1&&(f+=1),d.polygon(s,o,f,i,l.extend({},h,a))},d.polygon=function(s,o,i,a,u){if(u=u||{},i<3)return d.circle(s,o,a,u);for(var h=2*Math.PI/i,f="",v=h*.5,m=0;m0&&p.area(N)1?(x=r.create(l.extend({parts:y.slice(0)},a)),r.setPosition(x,{x:s,y:o}),x):y[0]},d.flagCoincidentParts=function(s,o){o===void 0&&(o=5);for(var i=0;i{var d={};c.exports=d;var p=t(69351),l=t(48140),r=t(53402),n=t(22562),e=t(66280);(function(){d.stack=function(s,o,i,a,u,h,f){for(var v=p.create({label:"Stack"}),m=s,g=o,x,y=0,S=0;SC&&(C=P),n.translate(M,{x:A*.5,y:P*.5}),m=M.bounds.max.x+u,p.addBody(v,M),x=M,y+=1}else m+=u}g+=C+h,m=s}return v},d.chain=function(s,o,i,a,u,h){for(var f=s.bodies,v=1;v0)for(v=0;v0&&(x=h[v-1+(f-1)*o],p.addConstraint(s,l.create(r.extend({bodyA:x,bodyB:g},u)))),a&&vC)){x=C-x;var M=x,P=i-1-x;if(!(gP)){S===1&&n.translate(y,{x:(g+(i%2===1?1:-1))*E,y:0});var A=y?g*E:0;return f(s+A+g*u,m,g,x,y,S)}}})},d.newtonsCradle=function(s,o,i,a,u){for(var h=p.create({label:"Newtons Cradle"}),f=0;f{var d={};c.exports=d;var p=t(31725),l=t(53402);(function(){d.fromVertices=function(r){for(var n={},e=0;e{var T={};c.exports=T,function(){T.create=function(t){var d={min:{x:0,y:0},max:{x:0,y:0}};return t&&T.update(d,t),d},T.update=function(t,d,p){t.min.x=1/0,t.max.x=-1/0,t.min.y=1/0,t.max.y=-1/0;for(var l=0;lt.max.x&&(t.max.x=r.x),r.xt.max.y&&(t.max.y=r.y),r.y0?t.max.x+=p.x:t.min.x+=p.x,p.y>0?t.max.y+=p.y:t.min.y+=p.y)},T.contains=function(t,d){return d.x>=t.min.x&&d.x<=t.max.x&&d.y>=t.min.y&&d.y<=t.max.y},T.overlaps=function(t,d){return t.min.x<=d.max.x&&t.max.x>=d.min.x&&t.max.y>=d.min.y&&t.min.y<=d.max.y},T.translate=function(t,d){t.min.x+=d.x,t.max.x+=d.x,t.min.y+=d.y,t.max.y+=d.y},T.shift=function(t,d){var p=t.max.x-t.min.x,l=t.max.y-t.min.y;t.min.x=d.x,t.max.x=d.x+p,t.min.y=d.y,t.max.y=d.y+l},T.wrap=function(t,d,p){var l=null,r=null;if(typeof d.min.x<"u"&&typeof d.max.x<"u"&&(t.min.x>d.max.x?l=d.min.x-t.max.x:t.max.xd.max.y?r=d.min.y-t.max.y:t.max.y{var d={};c.exports=d,t(15647);var p=t(53402);(function(){d.pathToVertices=function(l,r){typeof window<"u"&&!("SVGPathSeg"in window)&&p.warn("Svg.pathToVertices: SVGPathSeg not defined, a polyfill is required.");var n,e,s,o,i,a,u,h,f,v,m=[],g,x,y=0,S=0,C=0;r=r||15;var E=function(P,A,R){var F=R%2===1&&R>1;if(!f||P!=f.x||A!=f.y){f&&F?(g=f.x,x=f.y):(g=0,x=0);var D={x:g+P,y:x+A};(F||!f)&&(f=D),m.push(D),S=g+P,C=x+A}},M=function(P){var A=P.pathSegTypeAsLetter.toUpperCase();if(A!=="Z"){switch(A){case"M":case"L":case"T":case"C":case"S":case"Q":S=P.x,C=P.y;break;case"H":S=P.x;break;case"V":C=P.y;break}E(S,C,P.pathSegType)}};for(d._svgPathToAbsolute(l),s=l.getTotalLength(),a=[],n=0;n{var T={};c.exports=T,function(){T.create=function(t,d){return{x:t||0,y:d||0}},T.clone=function(t){return{x:t.x,y:t.y}},T.magnitude=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},T.magnitudeSquared=function(t){return t.x*t.x+t.y*t.y},T.rotate=function(t,d,p){var l=Math.cos(d),r=Math.sin(d);p||(p={});var n=t.x*l-t.y*r;return p.y=t.x*r+t.y*l,p.x=n,p},T.rotateAbout=function(t,d,p,l){var r=Math.cos(d),n=Math.sin(d);l||(l={});var e=p.x+((t.x-p.x)*r-(t.y-p.y)*n);return l.y=p.y+((t.x-p.x)*n+(t.y-p.y)*r),l.x=e,l},T.normalise=function(t){var d=T.magnitude(t);return d===0?{x:0,y:0}:{x:t.x/d,y:t.y/d}},T.dot=function(t,d){return t.x*d.x+t.y*d.y},T.cross=function(t,d){return t.x*d.y-t.y*d.x},T.cross3=function(t,d,p){return(d.x-t.x)*(p.y-t.y)-(d.y-t.y)*(p.x-t.x)},T.add=function(t,d,p){return p||(p={}),p.x=t.x+d.x,p.y=t.y+d.y,p},T.sub=function(t,d,p){return p||(p={}),p.x=t.x-d.x,p.y=t.y-d.y,p},T.mult=function(t,d){return{x:t.x*d,y:t.y*d}},T.div=function(t,d){return{x:t.x/d,y:t.y/d}},T.perp=function(t,d){return d=d===!0?-1:1,{x:d*-t.y,y:d*t.x}},T.neg=function(t){return{x:-t.x,y:-t.y}},T.angle=function(t,d){return Math.atan2(d.y-t.y,d.x-t.x)},T._temp=[T.create(),T.create(),T.create(),T.create(),T.create(),T.create()]}()},41598:(c,T,t)=>{var d={};c.exports=d;var p=t(31725),l=t(53402);(function(){d.create=function(r,n){for(var e=[],s=0;s0)return!1;i=a}return!0},d.scale=function(r,n,e,s){if(n===1&&e===1)return r;s=s||d.centre(r);for(var o,i,a=0;a=0?a-1:r.length-1],h=r[a],f=r[(a+1)%r.length],v=n[a0&&(n|=2),n===3)return!1;return n!==0?!0:null},d.hull=function(r){var n=[],e=[],s,o;for(r=r.slice(0),r.sort(function(i,a){var u=i.x-a.x;return u!==0?u:i.y-a.y}),o=0;o=2&&p.cross3(e[e.length-2],e[e.length-1],s)<=0;)e.pop();e.push(s)}for(o=r.length-1;o>=0;o-=1){for(s=r[o];n.length>=2&&p.cross3(n[n.length-2],n[n.length-1],s)<=0;)n.pop();n.push(s)}return n.pop(),e.pop(),n.concat(e)}})()},55973:c=>{/** * @author Stefan Hedman (http://steffe.se) * @license {@link https://opensource.org/licenses/MIT|MIT License} - */c.exports={decomp:A,quickDecomp:L,isSimple:M,removeCollinearPoints:b,removeDuplicatePoints:B,makeCCW:f};function T(D,I,R){R=R||0;var O=[0,0],w,G,U,z,V,Y,W;return w=D[1][1]-D[0][1],G=D[0][0]-D[1][0],U=w*D[0][0]+G*D[0][1],z=I[1][1]-I[0][1],V=I[0][0]-I[1][0],Y=z*I[0][0]+V*I[0][1],W=w*V-z*G,N(W,0,R)||(O[0]=(V*U-G*Y)/W,O[1]=(w*Y-z*U)/W),O}function t(D,I,R,O){var w=I[0]-D[0],G=I[1]-D[1],U=O[0]-R[0],z=O[1]-R[1];if(U*G-z*w===0)return!1;var V=(w*(R[1]-D[1])+G*(D[0]-R[0]))/(U*G-z*w),Y=(U*(D[1]-R[1])+z*(R[0]-D[0]))/(z*w-U*G);return V>=0&&V<=1&&Y>=0&&Y<=1}function d(D,I,R){return(I[0]-D[0])*(R[1]-D[1])-(R[0]-D[0])*(I[1]-D[1])}function p(D,I,R){return d(D,I,R)>0}function a(D,I,R){return d(D,I,R)>=0}function r(D,I,R){return d(D,I,R)<0}function n(D,I,R){return d(D,I,R)<=0}var e=[],s=[];function l(D,I,R,O){if(O){var w=e,G=s;w[0]=I[0]-D[0],w[1]=I[1]-D[1],G[0]=R[0]-I[0],G[1]=R[1]-I[1];var U=w[0]*G[0]+w[1]*G[1],z=Math.sqrt(w[0]*w[0]+w[1]*w[1]),V=Math.sqrt(G[0]*G[0]+G[1]*G[1]),Y=Math.acos(U/(z*V));return YR[I][0])&&(I=O);return p(o(D,I-1),o(D,I),o(D,I+1))?!1:(v(D),!0)}function v(D){for(var I=[],R=D.length,O=0;O!==R;O++)I.push(D.pop());for(var O=0;O!==R;O++)D[O]=I[O]}function m(D,I){return r(o(D,I-1),o(D,I),o(D,I+1))}var x=[],g=[];function y(D,I,R){var O,w,G=x,U=g;if(a(o(D,I+1),o(D,I),o(D,R))&&n(o(D,I-1),o(D,I),o(D,R)))return!1;w=i(o(D,I),o(D,R));for(var z=0;z!==D.length;++z)if(!((z+1)%D.length===I||z===I)&&a(o(D,I),o(D,R),o(D,z+1))&&n(o(D,I),o(D,R),o(D,z))&&(G[0]=o(D,I),G[1]=o(D,R),U[0]=o(D,z),U[1]=o(D,z+1),O=T(G,U),i(o(D,I),O)0?P(D,I):[D]}function P(D,I){if(I.length===0)return[D];if(I instanceof Array&&I.length&&I[0]instanceof Array&&I[0].length===2&&I[0][0]instanceof Array){for(var R=[D],O=0;OG)return console.warn("quickDecomp: max level ("+G+") reached."),I;for(var it=0;itZ&&(Z+=D.length),Q=Number.MAX_VALUE,Z<_)return I;for(var ut=_;ut<=Z;++ut)a(o(j,it-1),o(j,it),o(j,ut))&&n(o(j,it+1),o(j,it),o(j,ut))&&(K=i(o(j,it),o(j,ut)),K3&&O>=0;--O)l(o(D,O-1),o(D,O),o(D,O+1),I)&&(D.splice(O%D.length,1),R++);return R}function B(D,I){for(var R=D.length-1;R>=1;--R)for(var O=D[R],w=R-1;w>=0;--w)if(X(O,D[w],I)){D.splice(R,1);continue}}function N(D,I,R){return R=R||0,Math.abs(D-I)<=R}function X(D,I,R){return N(D[0],I[0],R)&&N(D[1],I[1],R)}},52018:(c,T,t)=>{/** + */c.exports={decomp:M,quickDecomp:F,isSimple:A,removeCollinearPoints:D,removeDuplicatePoints:w,makeCCW:f};function T(b,B,O){O=O||0;var L=[0,0],I,U,X,z,V,Y,W;return I=b[1][1]-b[0][1],U=b[0][0]-b[1][0],X=I*b[0][0]+U*b[0][1],z=B[1][1]-B[0][1],V=B[0][0]-B[1][0],Y=z*B[0][0]+V*B[0][1],W=I*V-z*U,G(W,0,O)||(L[0]=(V*X-U*Y)/W,L[1]=(I*Y-z*X)/W),L}function t(b,B,O,L){var I=B[0]-b[0],U=B[1]-b[1],X=L[0]-O[0],z=L[1]-O[1];if(X*U-z*I===0)return!1;var V=(I*(O[1]-b[1])+U*(b[0]-O[0]))/(X*U-z*I),Y=(X*(b[1]-O[1])+z*(O[0]-b[0]))/(z*I-X*U);return V>=0&&V<=1&&Y>=0&&Y<=1}function d(b,B,O){return(B[0]-b[0])*(O[1]-b[1])-(O[0]-b[0])*(B[1]-b[1])}function p(b,B,O){return d(b,B,O)>0}function l(b,B,O){return d(b,B,O)>=0}function r(b,B,O){return d(b,B,O)<0}function n(b,B,O){return d(b,B,O)<=0}var e=[],s=[];function o(b,B,O,L){if(L){var I=e,U=s;I[0]=B[0]-b[0],I[1]=B[1]-b[1],U[0]=O[0]-B[0],U[1]=O[1]-B[1];var X=I[0]*U[0]+I[1]*U[1],z=Math.sqrt(I[0]*I[0]+I[1]*I[1]),V=Math.sqrt(U[0]*U[0]+U[1]*U[1]),Y=Math.acos(X/(z*V));return YO[B][0])&&(B=L);return p(a(b,B-1),a(b,B),a(b,B+1))?!1:(v(b),!0)}function v(b){for(var B=[],O=b.length,L=0;L!==O;L++)B.push(b.pop());for(var L=0;L!==O;L++)b[L]=B[L]}function m(b,B){return r(a(b,B-1),a(b,B),a(b,B+1))}var g=[],x=[];function y(b,B,O){var L,I,U=g,X=x;if(l(a(b,B+1),a(b,B),a(b,O))&&n(a(b,B-1),a(b,B),a(b,O)))return!1;I=i(a(b,B),a(b,O));for(var z=0;z!==b.length;++z)if(!((z+1)%b.length===B||z===B)&&l(a(b,B),a(b,O),a(b,z+1))&&n(a(b,B),a(b,O),a(b,z))&&(U[0]=a(b,B),U[1]=a(b,O),X[0]=a(b,z),X[1]=a(b,z+1),L=T(U,X),i(a(b,B),L)0?P(b,B):[b]}function P(b,B){if(B.length===0)return[b];if(B instanceof Array&&B.length&&B[0]instanceof Array&&B[0].length===2&&B[0][0]instanceof Array){for(var O=[b],L=0;LU)return console.warn("quickDecomp: max level ("+U+") reached."),B;for(var st=0;stZ&&(Z+=b.length),j=Number.MAX_VALUE,Z<_)return B;for(var ut=_;ut<=Z;++ut)l(a(Q,st-1),a(Q,st),a(Q,ut))&&n(a(Q,st+1),a(Q,st),a(Q,ut))&&(K=i(a(Q,st),a(Q,ut)),K3&&L>=0;--L)o(a(b,L-1),a(b,L),a(b,L+1),B)&&(b.splice(L%b.length,1),O++);return O}function w(b,B){for(var O=b.length-1;O>=1;--O)for(var L=b[O],I=O-1;I>=0;--I)if(N(L,b[I],B)){b.splice(O,1);continue}}function G(b,B,O){return O=O||0,Math.abs(b-B)<=O}function N(b,B,O){return G(b[0],B[0],O)&&G(b[1],B[1],O)}},52018:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://github.com/photonstorm/phaser3-plugin-template/blob/master/LICENSE|MIT License} @@ -4592,19 +4592,19 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T={},t={},d={};d.register=function(p,a,r,n){n===void 0&&(n=!1),T[p]={plugin:a,mapping:r,custom:n}},d.registerCustom=function(p,a,r,n){t[p]={plugin:a,mapping:r,data:n}},d.hasCore=function(p){return T.hasOwnProperty(p)},d.hasCustom=function(p){return t.hasOwnProperty(p)},d.getCore=function(p){return T[p]},d.getCustom=function(p){return t[p]},d.getCustomClass=function(p){return t.hasOwnProperty(p)?t[p].plugin:null},d.remove=function(p){T.hasOwnProperty(p)&&delete T[p]},d.removeCustom=function(p){t.hasOwnProperty(p)&&delete t[p]},d.destroyCorePlugins=function(){for(var p in T)T.hasOwnProperty(p)&&delete T[p]},d.destroyCustomPlugins=function(){for(var p in t)t.hasOwnProperty(p)&&delete t[p]},c.exports=d},77332:(c,T,t)=>{/** + */var T={},t={},d={};d.register=function(p,l,r,n){n===void 0&&(n=!1),T[p]={plugin:l,mapping:r,custom:n}},d.registerCustom=function(p,l,r,n){t[p]={plugin:l,mapping:r,data:n}},d.hasCore=function(p){return T.hasOwnProperty(p)},d.hasCustom=function(p){return t.hasOwnProperty(p)},d.getCore=function(p){return T[p]},d.getCustom=function(p){return t[p]},d.getCustomClass=function(p){return t.hasOwnProperty(p)?t[p].plugin:null},d.remove=function(p){T.hasOwnProperty(p)&&delete T[p]},d.removeCustom=function(p){t.hasOwnProperty(p)&&delete t[p]},d.destroyCorePlugins=function(){for(var p in T)T.hasOwnProperty(p)&&delete T[p]},d.destroyCustomPlugins=function(){for(var p in t)t.hasOwnProperty(p)&&delete t[p]},c.exports=d},77332:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(8443),a=t(50792),r=t(74099),n=t(44603),e=t(39429),s=t(95540),l=t(37277),i=t(72905),o=new d({Extends:a,initialize:function(h){a.call(this),this.game=h,this.plugins=[],this.scenePlugins=[],this._pendingGlobal=[],this._pendingScene=[],h.isBooted?this.boot():h.events.once(p.BOOT,this.boot,this)},boot:function(){var u,h,f,v,m,x,g,y=this.game.config,S=y.installGlobalPlugins;for(S=S.concat(this._pendingGlobal),u=0;u{/** + */var d=t(83419),p=t(8443),l=t(50792),r=t(74099),n=t(44603),e=t(39429),s=t(95540),o=t(37277),i=t(72905),a=new d({Extends:l,initialize:function(h){l.call(this),this.game=h,this.plugins=[],this.scenePlugins=[],this._pendingGlobal=[],this._pendingScene=[],h.isBooted?this.boot():h.events.once(p.BOOT,this.boot,this)},boot:function(){var u,h,f,v,m,g,x,y=this.game.config,S=y.installGlobalPlugins;for(S=S.concat(this._pendingGlobal),u=0;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://github.com/photonstorm/phaser3-plugin-template/blob/master/LICENSE|MIT License} -*/var d=t(52018),p=t(83419),a=t(44594),r=new p({Extends:d,initialize:function(e,s,l){d.call(this,s),this.scene=e,this.systems=e.sys,this.pluginKey=l,e.sys.events.once(a.BOOT,this.boot,this)},boot:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});c.exports=r},18922:(c,T,t)=>{/** +*/var d=t(52018),p=t(83419),l=t(44594),r=new p({Extends:d,initialize:function(e,s,o){d.call(this,s),this.scene=e,this.systems=e.sys,this.pluginKey=o,e.sys.events.once(l.BOOT,this.boot,this)},boot:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});c.exports=r},18922:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */c.exports={BasePlugin:t(52018),DefaultPlugins:t(42363),PluginCache:t(37277),PluginManager:t(77332),ScenePlugin:t(45145)}},63595:()=>{HTMLVideoElement&&!("requestVideoFrameCallback"in HTMLVideoElement.prototype)&&"getVideoPlaybackQuality"in HTMLVideoElement.prototype&&(HTMLVideoElement.prototype._rvfcpolyfillmap={},HTMLVideoElement.prototype.requestVideoFrameCallback=function(c){const T=performance.now(),t=this.getVideoPlaybackQuality(),d=this.mozPresentedFrames||this.mozPaintedFrames||t.totalVideoFrames-t.droppedVideoFrames,p=(a,r)=>{const n=this.getVideoPlaybackQuality(),e=this.mozPresentedFrames||this.mozPaintedFrames||n.totalVideoFrames-n.droppedVideoFrames;if(e>d){const s=this.mozFrameDelay||n.totalFrameDelay-t.totalFrameDelay||0,l=r-a;c(r,{presentationTime:r+s*1e3,expectedDisplayTime:r+l,width:this.videoWidth,height:this.videoHeight,mediaTime:Math.max(0,this.currentTime||0)+l/1e3,presentedFrames:e,processingDuration:s}),delete this._rvfcpolyfillmap[T]}else this._rvfcpolyfillmap[T]=requestAnimationFrame(s=>p(r,s))};return this._rvfcpolyfillmap[T]=requestAnimationFrame(a=>p(T,a)),T},HTMLVideoElement.prototype.cancelVideoFrameCallback=function(c){cancelAnimationFrame(this._rvfcpolyfillmap[c]),delete this._rvfcpolyfillmap[c]})},10312:c=>{/** + */c.exports={BasePlugin:t(52018),DefaultPlugins:t(42363),PluginCache:t(37277),PluginManager:t(77332),ScenePlugin:t(45145)}},63595:()=>{typeof HTMLVideoElement<"u"&&!("requestVideoFrameCallback"in HTMLVideoElement.prototype)&&"getVideoPlaybackQuality"in HTMLVideoElement.prototype&&(HTMLVideoElement.prototype._rvfcpolyfillmap={},HTMLVideoElement.prototype.requestVideoFrameCallback=function(c){const T=performance.now(),t=this.getVideoPlaybackQuality(),d=this.mozPresentedFrames||this.mozPaintedFrames||t.totalVideoFrames-t.droppedVideoFrames,p=(l,r)=>{const n=this.getVideoPlaybackQuality(),e=this.mozPresentedFrames||this.mozPaintedFrames||n.totalVideoFrames-n.droppedVideoFrames;if(e>d){const s=this.mozFrameDelay||n.totalFrameDelay-t.totalFrameDelay||0,o=r-l;c(r,{presentationTime:r+s*1e3,expectedDisplayTime:r+o,width:this.videoWidth,height:this.videoHeight,mediaTime:Math.max(0,this.currentTime||0)+o/1e3,presentedFrames:e,processingDuration:s}),delete this._rvfcpolyfillmap[T]}else this._rvfcpolyfillmap[T]=requestAnimationFrame(s=>p(r,s))};return this._rvfcpolyfillmap[T]=requestAnimationFrame(l=>p(T,l)),T},HTMLVideoElement.prototype.cancelVideoFrameCallback=function(c){cancelAnimationFrame(this._rvfcpolyfillmap[c]),delete this._rvfcpolyfillmap[c]})},10312:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4617,7 +4617,7 @@ return new `+this.key+`(); * @author Felipe Alfonso <@bitnenfer> * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(19715),p=t(32880),a=t(83419),r=t(8054),n=t(50792),e=t(92503),s=t(56373),l=t(97480),i=t(69442),o=t(61340),u=new a({Extends:n,initialize:function(f){n.call(this);var v=f.config;this.config={clearBeforeRender:v.clearBeforeRender,backgroundColor:v.backgroundColor,antialias:v.antialias,roundPixels:v.roundPixels},this.game=f,this.type=r.CANVAS,this.drawCount=0,this.width=0,this.height=0,this.gameCanvas=f.canvas;var m={alpha:f.config.transparent,desynchronized:f.config.desynchronized,willReadFrequently:!1};this.gameContext=v.context?v.context:this.gameCanvas.getContext("2d",m),this.currentContext=this.gameContext,this.antialias=f.config.antialias,this.blendModes=s(),this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92},this._tempMatrix1=new o,this._tempMatrix2=new o,this._tempMatrix3=new o,this.isBooted=!1,this.init()},init:function(){this.game.textures.once(i.READY,this.boot,this)},boot:function(){var h=this.game,f=h.scale.baseSize;this.width=f.width,this.height=f.height,this.isBooted=!0,h.scale.on(l.RESIZE,this.onResize,this),this.resize(f.width,f.height)},onResize:function(h,f){(f.width!==this.width||f.height!==this.height)&&this.resize(f.width,f.height)},resize:function(h,f){this.width=h,this.height=f,this.emit(e.RESIZE,h,f)},resetTransform:function(){this.currentContext.setTransform(1,0,0,1,0,0)},setBlendMode:function(h){return this.currentContext.globalCompositeOperation=h,this},setContext:function(h){return this.currentContext=h||this.gameContext,this},setAlpha:function(h){return this.currentContext.globalAlpha=h,this},preRender:function(){var h=this.gameContext,f=this.config,v=this.width,m=this.height;h.globalAlpha=1,h.globalCompositeOperation="source-over",h.setTransform(1,0,0,1,0,0),f.clearBeforeRender&&(h.clearRect(0,0,v,m),f.transparent||(h.fillStyle=f.backgroundColor.rgba,h.fillRect(0,0,v,m))),h.save(),this.drawCount=0,this.emit(e.PRE_RENDER)},render:function(h,f,v){var m=f.length;this.emit(e.RENDER,h,v);var x=v.x,g=v.y,y=v.width,S=v.height,C=v.renderToTexture?v.context:h.sys.context;C.save(),this.game.scene.customViewports&&(C.beginPath(),C.rect(x,g,y,S),C.clip()),v.emit(d.PRE_RENDER,v),this.currentContext=C;var E=v.mask;E&&E.preRenderCanvas(this,null,v._maskCamera),v.transparent||(C.fillStyle=v.backgroundColor.rgba,C.fillRect(x,g,y,S)),C.globalAlpha=v.alpha,C.globalCompositeOperation="source-over",this.drawCount+=m,v.renderToTexture&&v.emit(d.PRE_RENDER,v),v.matrix.copyToContext(C);for(var A=0;A=0?N=-(N+P):N<0&&(N=Math.abs(N)-P)),h.flipY&&(X>=0?X=-(X+M):X<0&&(X=Math.abs(X)-M))}var I=1,R=1;h.flipX&&(F||(N+=-f.realWidth+b*2),I=-1),h.flipY&&(F||(X+=-f.realHeight+B*2),R=-1);var O=h.x,w=h.y;S.applyITRS(O,w,h.rotation,h.scaleX*I,h.scaleY*R),y.copyFrom(v.matrix),m?(y.multiplyWithOffset(m,-v.scrollX*h.scrollFactorX,-v.scrollY*h.scrollFactorY),S.e=O,S.f=w):(S.e-=v.scrollX*h.scrollFactorX,S.f-=v.scrollY*h.scrollFactorY),y.multiply(S),v.roundPixels&&(y.e=Math.round(y.e),y.f=Math.round(y.f)),g.save(),y.setToContext(g),g.globalCompositeOperation=this.blendModes[h.blendMode],g.globalAlpha=x,g.imageSmoothingEnabled=!f.source.scaleMode,h.mask&&h.mask.preRenderCanvas(this,h,v),P>0&&M>0&&(v.roundPixels?g.drawImage(f.source.image,E,A,P,M,Math.round(N),Math.round(X),Math.round(P/L),Math.round(M/L)):g.drawImage(f.source.image,E,A,P,M,N,X,P/L,M/L)),h.mask&&h.mask.postRenderCanvas(this,h,v),g.restore()}},destroy:function(){this.removeAllListeners(),this.game=null,this.gameCanvas=null,this.gameContext=null}});c.exports=u},55830:(c,T,t)=>{/** + */var d=t(19715),p=t(32880),l=t(83419),r=t(8054),n=t(50792),e=t(92503),s=t(56373),o=t(97480),i=t(69442),a=t(61340),u=new l({Extends:n,initialize:function(f){n.call(this);var v=f.config;this.config={clearBeforeRender:v.clearBeforeRender,backgroundColor:v.backgroundColor,antialias:v.antialias,roundPixels:v.roundPixels},this.game=f,this.type=r.CANVAS,this.drawCount=0,this.width=0,this.height=0,this.gameCanvas=f.canvas;var m={alpha:f.config.transparent,desynchronized:f.config.desynchronized,willReadFrequently:!1};this.gameContext=v.context?v.context:this.gameCanvas.getContext("2d",m),this.currentContext=this.gameContext,this.antialias=f.config.antialias,this.blendModes=s(),this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92},this._tempMatrix1=new a,this._tempMatrix2=new a,this._tempMatrix3=new a,this.isBooted=!1,this.init()},init:function(){this.game.textures.once(i.READY,this.boot,this)},boot:function(){var h=this.game,f=h.scale.baseSize;this.width=f.width,this.height=f.height,this.isBooted=!0,h.scale.on(o.RESIZE,this.onResize,this),this.resize(f.width,f.height)},onResize:function(h,f){(f.width!==this.width||f.height!==this.height)&&this.resize(f.width,f.height)},resize:function(h,f){this.width=h,this.height=f,this.emit(e.RESIZE,h,f)},resetTransform:function(){this.currentContext.setTransform(1,0,0,1,0,0)},setBlendMode:function(h){return this.currentContext.globalCompositeOperation=h,this},setContext:function(h){return this.currentContext=h||this.gameContext,this},setAlpha:function(h){return this.currentContext.globalAlpha=h,this},preRender:function(){var h=this.gameContext,f=this.config,v=this.width,m=this.height;h.globalAlpha=1,h.globalCompositeOperation="source-over",h.setTransform(1,0,0,1,0,0),this.emit(e.PRE_RENDER_CLEAR),f.clearBeforeRender&&(h.clearRect(0,0,v,m),f.transparent||(h.fillStyle=f.backgroundColor.rgba,h.fillRect(0,0,v,m))),h.save(),this.drawCount=0,this.emit(e.PRE_RENDER)},render:function(h,f,v){var m=f.length;this.emit(e.RENDER,h,v);var g=v.x,x=v.y,y=v.width,S=v.height,C=v.renderToTexture?v.context:h.sys.context;C.save(),this.game.scene.customViewports&&(C.beginPath(),C.rect(g,x,y,S),C.clip()),v.emit(d.PRE_RENDER,v),this.currentContext=C;var E=v.mask;E&&E.preRenderCanvas(this,null,v._maskCamera),v.transparent||(C.fillStyle=v.backgroundColor.rgba,C.fillRect(g,x,y,S)),C.globalAlpha=v.alpha,C.globalCompositeOperation="source-over",this.drawCount+=m,v.renderToTexture&&v.emit(d.PRE_RENDER,v),v.matrix.copyToContext(C);for(var M=0;M=0?G=-(G+P):G<0&&(G=Math.abs(G)-P)),h.flipY&&(N>=0?N=-(N+A):N<0&&(N=Math.abs(N)-A))}var B=1,O=1;h.flipX&&(R||(G+=-f.realWidth+D*2),B=-1),h.flipY&&(R||(N+=-f.realHeight+w*2),O=-1);var L=h.x,I=h.y;S.applyITRS(L,I,h.rotation,h.scaleX*B,h.scaleY*O),y.copyFrom(v.matrix),m?(y.multiplyWithOffset(m,-v.scrollX*h.scrollFactorX,-v.scrollY*h.scrollFactorY),S.e=L,S.f=I):(S.e-=v.scrollX*h.scrollFactorX,S.f-=v.scrollY*h.scrollFactorY),y.multiply(S),v.roundPixels&&(y.e=Math.round(y.e),y.f=Math.round(y.f)),x.save(),y.setToContext(x),x.globalCompositeOperation=this.blendModes[h.blendMode],x.globalAlpha=g,x.imageSmoothingEnabled=!f.source.scaleMode,h.mask&&h.mask.preRenderCanvas(this,h,v),P>0&&A>0&&(v.roundPixels?x.drawImage(f.source.image,E,M,P,A,Math.round(G),Math.round(N),Math.round(P/F),Math.round(A/F)):x.drawImage(f.source.image,E,M,P,A,G,N,P/F,A/F)),h.mask&&h.mask.postRenderCanvas(this,h,v),x.restore()}},destroy:function(){this.removeAllListeners(),this.game=null,this.gameCanvas=null,this.gameContext=null}});c.exports=u},55830:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4625,11 +4625,11 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(10312),p=t(89289),a=function(){var r=[],n=p.supportNewBlendModes,e="source-over";return r[d.NORMAL]=e,r[d.ADD]="lighter",r[d.MULTIPLY]=n?"multiply":e,r[d.SCREEN]=n?"screen":e,r[d.OVERLAY]=n?"overlay":e,r[d.DARKEN]=n?"darken":e,r[d.LIGHTEN]=n?"lighten":e,r[d.COLOR_DODGE]=n?"color-dodge":e,r[d.COLOR_BURN]=n?"color-burn":e,r[d.HARD_LIGHT]=n?"hard-light":e,r[d.SOFT_LIGHT]=n?"soft-light":e,r[d.DIFFERENCE]=n?"difference":e,r[d.EXCLUSION]=n?"exclusion":e,r[d.HUE]=n?"hue":e,r[d.SATURATION]=n?"saturation":e,r[d.COLOR]=n?"color":e,r[d.LUMINOSITY]=n?"luminosity":e,r[d.ERASE]="destination-out",r[d.SOURCE_IN]="source-in",r[d.SOURCE_OUT]="source-out",r[d.SOURCE_ATOP]="source-atop",r[d.DESTINATION_OVER]="destination-over",r[d.DESTINATION_IN]="destination-in",r[d.DESTINATION_OUT]="destination-out",r[d.DESTINATION_ATOP]="destination-atop",r[d.LIGHTER]="lighter",r[d.COPY]="copy",r[d.XOR]="xor",r};c.exports=a},20926:(c,T,t)=>{/** + */var d=t(10312),p=t(89289),l=function(){var r=[],n=p.supportNewBlendModes,e="source-over";return r[d.NORMAL]=e,r[d.ADD]="lighter",r[d.MULTIPLY]=n?"multiply":e,r[d.SCREEN]=n?"screen":e,r[d.OVERLAY]=n?"overlay":e,r[d.DARKEN]=n?"darken":e,r[d.LIGHTEN]=n?"lighten":e,r[d.COLOR_DODGE]=n?"color-dodge":e,r[d.COLOR_BURN]=n?"color-burn":e,r[d.HARD_LIGHT]=n?"hard-light":e,r[d.SOFT_LIGHT]=n?"soft-light":e,r[d.DIFFERENCE]=n?"difference":e,r[d.EXCLUSION]=n?"exclusion":e,r[d.HUE]=n?"hue":e,r[d.SATURATION]=n?"saturation":e,r[d.COLOR]=n?"color":e,r[d.LUMINOSITY]=n?"luminosity":e,r[d.ERASE]="destination-out",r[d.SOURCE_IN]="source-in",r[d.SOURCE_OUT]="source-out",r[d.SOURCE_ATOP]="source-atop",r[d.DESTINATION_OVER]="destination-over",r[d.DESTINATION_IN]="destination-in",r[d.DESTINATION_OUT]="destination-out",r[d.DESTINATION_ATOP]="destination-atop",r[d.LIGHTER]="lighter",r[d.COPY]="copy",r[d.XOR]="xor",r};c.exports=l},20926:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91296),p=function(a,r,n,e,s){var l=e.alpha*n.alpha;if(l<=0)return!1;var i=d(n,e,s).calc;return r.globalCompositeOperation=a.blendModes[n.blendMode],r.globalAlpha=l,r.save(),i.setToContext(r),r.imageSmoothingEnabled=n.frame?!n.frame.source.scaleMode:a.antialias,!0};c.exports=p},63899:c=>{/** + */var d=t(91296),p=function(l,r,n,e,s){var o=e.alpha*n.alpha;if(o<=0)return!1;var i=d(n,e,s).calc;return r.globalCompositeOperation=l.blendModes[n.blendMode],r.globalAlpha=o,r.save(),i.setToContext(r),r.imageSmoothingEnabled=n.frame?!n.frame.source.scaleMode:l.antialias,!0};c.exports=p},63899:c=>{/** * @author Benjamin D. Richards * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4665,11 +4665,11 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(27919),p=t(40987),a=t(95540),r=function(n,e){var s=a(e,"callback"),l=a(e,"type","image/png"),i=a(e,"encoder",.92),o=Math.abs(Math.round(a(e,"x",0))),u=Math.abs(Math.round(a(e,"y",0))),h=Math.floor(a(e,"width",n.width)),f=Math.floor(a(e,"height",n.height)),v=a(e,"getPixel",!1);if(v){var m=n.getContext("2d",{willReadFrequently:!1}),x=m.getImageData(o,u,1,1),g=x.data;s.call(null,new p(g[0],g[1],g[2],g[3]))}else if(o!==0||u!==0||h!==n.width||f!==n.height){var y=d.createWebGL(this,h,f),S=y.getContext("2d",{willReadFrequently:!0});h>0&&f>0&&S.drawImage(n,o,u,h,f,0,0,h,f);var C=new Image;C.onerror=function(){s.call(null),d.remove(y)},C.onload=function(){s.call(null,C),d.remove(y)},C.src=y.toDataURL(l,i)}else{var E=new Image;E.onerror=function(){s.call(null)},E.onload=function(){s.call(null,E)},E.src=n.toDataURL(l,i)}};c.exports=r},88815:(c,T,t)=>{/** + */var d=t(27919),p=t(40987),l=t(95540),r=function(n,e){var s=l(e,"callback"),o=l(e,"type","image/png"),i=l(e,"encoder",.92),a=Math.abs(Math.round(l(e,"x",0))),u=Math.abs(Math.round(l(e,"y",0))),h=Math.floor(l(e,"width",n.width)),f=Math.floor(l(e,"height",n.height)),v=l(e,"getPixel",!1);if(v){var m=n.getContext("2d",{willReadFrequently:!1}),g=m.getImageData(a,u,1,1),x=g.data;s.call(null,new p(x[0],x[1],x[2],x[3]))}else if(a!==0||u!==0||h!==n.width||f!==n.height){var y=d.createWebGL(this,h,f),S=y.getContext("2d",{willReadFrequently:!0});h>0&&f>0&&S.drawImage(n,a,u,h,f,0,0,h,f);var C=new Image;C.onerror=function(){s.call(null),d.remove(y)},C.onload=function(){s.call(null,C),d.remove(y)},C.src=y.toDataURL(o,i)}else{var E=new Image;E.onerror=function(){s.call(null)},E.onload=function(){s.call(null,E)},E.src=n.toDataURL(o,i)}};c.exports=r},88815:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(27919),p=t(40987),a=t(95540),r=function(n,e){var s=n,l=a(e,"callback"),i=a(e,"type","image/png"),o=a(e,"encoder",.92),u=Math.abs(Math.round(a(e,"x",0))),h=Math.abs(Math.round(a(e,"y",0))),f=a(e,"getPixel",!1),v=a(e,"isFramebuffer",!1),m=v?a(e,"bufferWidth",1):s.drawingBufferWidth,x=v?a(e,"bufferHeight",1):s.drawingBufferHeight;if(f){var g=new Uint8Array(4),y=v?h:x-h;s.readPixels(u,y,1,1,s.RGBA,s.UNSIGNED_BYTE,g),l.call(null,new p(g[0],g[1],g[2],g[3]))}else{var S=Math.floor(a(e,"width",m)),C=Math.floor(a(e,"height",x)),E=S*C*4,A=new Uint8Array(E);s.readPixels(u,x-h-C,S,C,s.RGBA,s.UNSIGNED_BYTE,A);for(var P=d.createWebGL(this,S,C),M=P.getContext("2d",{willReadFrequently:!0}),F=M.getImageData(0,0,S,C),L=F.data,b=0;b{/** + */var d=t(27919),p=t(40987),l=t(95540),r=function(n,e){var s=n,o=l(e,"callback"),i=l(e,"type","image/png"),a=l(e,"encoder",.92),u=Math.abs(Math.round(l(e,"x",0))),h=Math.abs(Math.round(l(e,"y",0))),f=l(e,"getPixel",!1),v=l(e,"isFramebuffer",!1),m=v?l(e,"bufferWidth",1):s.drawingBufferWidth,g=v?l(e,"bufferHeight",1):s.drawingBufferHeight;if(f){var x=new Uint8Array(4),y=v?h:g-h;s.readPixels(u,y,1,1,s.RGBA,s.UNSIGNED_BYTE,x),o.call(null,new p(x[0],x[1],x[2],x[3]))}else{var S=Math.floor(l(e,"width",m)),C=Math.floor(l(e,"height",g)),E=S*C*4,M=new Uint8Array(E);s.readPixels(u,g-h-C,S,C,s.RGBA,s.UNSIGNED_BYTE,M);for(var P=d.createWebGL(this,S,C),A=P.getContext("2d",{willReadFrequently:!0}),R=A.getImageData(0,0,S,C),F=R.data,D=0;D{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4677,17 +4677,17 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(36060),a=t(90330),r=t(82264),n=t(95540),e=t(32302),s=t(63448),l=t(31302),i=t(58918),o=t(14811),u=t(92651),h=t(96569),f=t(56527),v=t(57516),m=t(43439),x=t(81041),g=t(12385),y=t(7589),S=t(95428),C=t(72905),E=new d({initialize:function(P){this.game=P.game,this.renderer=P,this.classes=new a([[p.UTILITY_PIPELINE,y],[p.MULTI_PIPELINE,v],[p.BITMAPMASK_PIPELINE,l],[p.SINGLE_PIPELINE,g],[p.ROPE_PIPELINE,x],[p.LIGHT_PIPELINE,h],[p.POINTLIGHT_PIPELINE,m],[p.MOBILE_PIPELINE,f]]),this.postPipelineClasses=new a,this.pipelines=new a,this.postPipelineInstances=[],this.default=null,this.current=null,this.previous=null,this.MULTI_PIPELINE=null,this.BITMAPMASK_PIPELINE=null,this.UTILITY_PIPELINE=null,this.MOBILE_PIPELINE=null,this.FX_PIPELINE=null,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2,this.renderTargets=[],this.maxDimension=0,this.frameInc=32,this.targetIndex=0},boot:function(A,P,M){var F=this.renderer,L=this.renderTargets;this.frameInc=Math.floor(n(A,"frameInc",32));var b=F.width,B=F.height,N=this.game.config.disablePreFX,X=this.game.config.disablePostFX;if(X||this.postPipelineClasses.setAll([[String(o.BARREL),i.Barrel],[String(o.BLOOM),i.Bloom],[String(o.BLUR),i.Blur],[String(o.BOKEH),i.Bokeh],[String(o.CIRCLE),i.Circle],[String(o.COLOR_MATRIX),i.ColorMatrix],[String(o.DISPLACEMENT),i.Displacement],[String(o.GLOW),i.Glow],[String(o.GRADIENT),i.Gradient],[String(o.PIXELATE),i.Pixelate],[String(o.SHADOW),i.Shadow],[String(o.SHINE),i.Shine],[String(o.VIGNETTE),i.Vignette],[String(o.WIPE),i.Wipe]]),!N){this.classes.set(p.FX_PIPELINE,u);for(var D=Math.min(b,B),I=Math.ceil(D/this.frameInc),R=1;R=0;M--){var F=P[M];F.active&&F.preBatch(A)}}},postBatch:function(A){if(A.hasPostPipeline){this.flush();for(var P=A.postPipelines,M=0;M=0;M--){var F=P[M];F.active&&F.preBatch(A)}}},postBatchCamera:function(A){if(A.hasPostPipeline){this.flush();for(var P=A.postPipelines,M=0;Mthis.maxDimension)return this.targetIndex=P.length-M,P[this.targetIndex];var F=(s(A,this.frameInc,0,!0)-1)*M;return this.targetIndex=F,P[F]},getSwapRenderTarget:function(){return this.renderTargets[this.targetIndex+1]},getAltSwapRenderTarget:function(){return this.renderTargets[this.targetIndex+2]},destroy:function(){this.flush(),this.classes.clear(),this.postPipelineClasses.clear(),this.pipelines.clear(),this.renderer=null,this.game=null,this.classes=null,this.postPipelineClasses=null,this.pipelines=null,this.default=null,this.current=null,this.previous=null}});c.exports=E},32302:(c,T,t)=>{/** + */var d=t(83419),p=t(36060),l=t(90330),r=t(82264),n=t(95540),e=t(32302),s=t(63448),o=t(31302),i=t(58918),a=t(14811),u=t(92651),h=t(96569),f=t(56527),v=t(57516),m=t(43439),g=t(81041),x=t(12385),y=t(7589),S=t(95428),C=t(72905),E=new d({initialize:function(P){this.game=P.game,this.renderer=P,this.classes=new l([[p.UTILITY_PIPELINE,y],[p.MULTI_PIPELINE,v],[p.BITMAPMASK_PIPELINE,o],[p.SINGLE_PIPELINE,x],[p.ROPE_PIPELINE,g],[p.LIGHT_PIPELINE,h],[p.POINTLIGHT_PIPELINE,m],[p.MOBILE_PIPELINE,f]]),this.postPipelineClasses=new l,this.pipelines=new l,this.postPipelineInstances=[],this.default=null,this.current=null,this.previous=null,this.MULTI_PIPELINE=null,this.BITMAPMASK_PIPELINE=null,this.UTILITY_PIPELINE=null,this.MOBILE_PIPELINE=null,this.FX_PIPELINE=null,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2,this.renderTargets=[],this.maxDimension=0,this.frameInc=32,this.targetIndex=0},boot:function(M,P,A){var R=this.renderer,F=this.renderTargets;this.frameInc=Math.floor(n(M,"frameInc",32));var D=R.width,w=R.height,G=this.game.config.disablePreFX,N=this.game.config.disablePostFX;if(N||this.postPipelineClasses.setAll([[String(a.BARREL),i.Barrel],[String(a.BLOOM),i.Bloom],[String(a.BLUR),i.Blur],[String(a.BOKEH),i.Bokeh],[String(a.CIRCLE),i.Circle],[String(a.COLOR_MATRIX),i.ColorMatrix],[String(a.DISPLACEMENT),i.Displacement],[String(a.GLOW),i.Glow],[String(a.GRADIENT),i.Gradient],[String(a.PIXELATE),i.Pixelate],[String(a.SHADOW),i.Shadow],[String(a.SHINE),i.Shine],[String(a.VIGNETTE),i.Vignette],[String(a.WIPE),i.Wipe]]),!G){this.classes.set(p.FX_PIPELINE,u);for(var b=Math.min(D,w),B=Math.ceil(b/this.frameInc),O=1;O=0;A--){var R=P[A];R.active&&R.preBatch(M)}}},postBatch:function(M){if(M.hasPostPipeline){this.flush();for(var P=M.postPipelines,A=0;A=0;A--){var R=P[A];R.active&&R.preBatch(M)}}},postBatchCamera:function(M){if(M.hasPostPipeline){this.flush();for(var P=M.postPipelines,A=0;Athis.maxDimension)return this.targetIndex=P.length-A,P[this.targetIndex];var R=(s(M,this.frameInc,0,!0)-1)*A;return this.targetIndex=R,P[R]},getSwapRenderTarget:function(){return this.renderTargets[this.targetIndex+1]},getAltSwapRenderTarget:function(){return this.renderTargets[this.targetIndex+2]},destroy:function(){this.flush(),this.classes.clear(),this.postPipelineClasses.clear(),this.pipelines.clear(),this.renderer=null,this.game=null,this.classes=null,this.postPipelineClasses=null,this.pipelines=null,this.default=null,this.current=null,this.previous=null}});c.exports=E},32302:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(92503),a=new d({initialize:function(n,e,s,l,i,o,u,h,f){l===void 0&&(l=1),i===void 0&&(i=0),o===void 0&&(o=!0),u===void 0&&(u=!1),h===void 0&&(h=!0),f===void 0&&(f=!0),this.renderer=n,this.framebuffer=null,this.texture=null,this.width=0,this.height=0,this.scale=l,this.minFilter=i,this.autoClear=o,this.autoResize=!0,this.hasDepthBuffer=h,this.forceClamp=f,this.resize(e,s),u?this.setAutoResize(!0):this.autoResize=!1},setAutoResize:function(r){return r&&!this.autoResize?(this.renderer.on(p.RESIZE,this.resize,this),this.autoResize=!0):!r&&this.autoResize&&(this.renderer.off(p.RESIZE,this.resize,this),this.autoResize=!1),this},resize:function(r,n){if(r=Math.round(r*this.scale),n=Math.round(n*this.scale),r<=0&&(r=1),n<=0&&(n=1),this.autoResize&&(r!==this.width||n!==this.height)){var e=this.renderer;e.deleteFramebuffer(this.framebuffer),e.deleteTexture(this.texture),this.texture=e.createTextureFromSource(null,r,n,this.minFilter,this.forceClamp),this.framebuffer=e.createFramebuffer(r,n,this.texture,this.hasDepthBuffer),this.width=r,this.height=n}return this},willResize:function(r,n){return r=Math.round(r*this.scale),n=Math.round(n*this.scale),r<=0&&(r=1),n<=0&&(n=1),r!==this.width||n!==this.height},bind:function(r,n,e){r===void 0&&(r=!1);var s=this.renderer;if(r&&s.flush(),n&&e&&this.resize(n,e),s.pushFramebuffer(this.framebuffer,!1,!1),r&&this.adjustViewport(),this.autoClear){var l=this.renderer.gl;l.clearColor(0,0,0,0),l.clear(l.COLOR_BUFFER_BIT)}s.clearStencilMask()},adjustViewport:function(){var r=this.renderer.gl;r.viewport(0,0,this.width,this.height),r.disable(r.SCISSOR_TEST)},clear:function(){var r=this.renderer,n=r.gl;r.pushFramebuffer(this.framebuffer),n.disable(n.SCISSOR_TEST),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),r.popFramebuffer(),r.resetScissor()},unbind:function(r){r===void 0&&(r=!1);var n=this.renderer;return r&&n.flush(),n.popFramebuffer()},destroy:function(){var r=this.renderer;r.off(p.RESIZE,this.resize,this),r.deleteFramebuffer(this.framebuffer),r.deleteTexture(this.texture),this.renderer=null,this.framebuffer=null,this.texture=null}});c.exports=a},70554:c=>{/** + */var d=t(83419),p=t(92503),l=new d({initialize:function(n,e,s,o,i,a,u,h,f){o===void 0&&(o=1),i===void 0&&(i=0),a===void 0&&(a=!0),u===void 0&&(u=!1),h===void 0&&(h=!0),f===void 0&&(f=!0),this.renderer=n,this.framebuffer=null,this.texture=null,this.width=0,this.height=0,this.scale=o,this.minFilter=i,this.autoClear=a,this.autoResize=!0,this.hasDepthBuffer=h,this.forceClamp=f,this.resize(e,s),u?this.renderer.on(p.RESIZE,this.resize,this):this.autoResize=!1},setAutoResize:function(r){return r&&!this.autoResize?(this.renderer.on(p.RESIZE,this.resize,this),this.autoResize=!0):!r&&this.autoResize&&(this.renderer.off(p.RESIZE,this.resize,this),this.autoResize=!1),this},resize:function(r,n){if(this.willResize(r,n)){var e=this.renderer;e.deleteFramebuffer(this.framebuffer),e.deleteTexture(this.texture),this.texture=e.createTextureFromSource(null,r,n,this.minFilter,this.forceClamp),this.framebuffer=e.createFramebuffer(r,n,this.texture,this.hasDepthBuffer),this.width=r,this.height=n}return this},willResize:function(r,n){return r=Math.round(r*this.scale),n=Math.round(n*this.scale),r<=0&&(r=1),n<=0&&(n=1),r!==this.width||n!==this.height},bind:function(r,n,e){r===void 0&&(r=!1);var s=this.renderer;if(r&&s.flush(),n&&e&&this.resize(n,e),s.pushFramebuffer(this.framebuffer,!1,!1),r&&this.adjustViewport(),this.autoClear){var o=this.renderer.gl;o.clearColor(0,0,0,0),o.clear(o.COLOR_BUFFER_BIT)}s.clearStencilMask()},adjustViewport:function(){var r=this.renderer.gl;r.viewport(0,0,this.width,this.height),r.disable(r.SCISSOR_TEST)},clear:function(r,n,e,s){var o=this.renderer,i=o.gl;o.pushFramebuffer(this.framebuffer),r!==void 0&&n!==void 0&&e!==void 0&&s!==void 0?(i.enable(i.SCISSOR_TEST),i.scissor(r,n,e,s)):i.disable(i.SCISSOR_TEST),i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT),o.popFramebuffer(),o.resetScissor()},unbind:function(r){r===void 0&&(r=!1);var n=this.renderer;return r&&n.flush(),n.popFramebuffer()},destroy:function(){var r=this.renderer;r.off(p.RESIZE,this.resize,this),r.deleteFramebuffer(this.framebuffer),r.deleteTexture(this.texture),this.renderer=null,this.framebuffer=null,this.texture=null}});c.exports=l},70554:c=>{/** * @author Richard Davey * @author Felipe Alfonso <@bitnenfer> * @author Matthew Groves <@doormat> * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */c.exports={getTintFromFloats:function(T,t,d,p){var a=(T*255|0)&255,r=(t*255|0)&255,n=(d*255|0)&255,e=(p*255|0)&255;return(e<<24|a<<16|r<<8|n)>>>0},getTintAppendFloatAlpha:function(T,t){var d=(t*255|0)&255;return(d<<24|T)>>>0},getTintAppendFloatAlphaAndSwap:function(T,t){var d=(T>>16|0)&255,p=(T>>8|0)&255,a=(T|0)&255,r=(t*255|0)&255;return(r<<24|a<<16|p<<8|d)>>>0},getFloatsFromUintRGB:function(T){var t=(T>>16|0)&255,d=(T>>8|0)&255,p=(T|0)&255;return[t/255,d/255,p/255]},checkShaderMax:function(T,t){var d=Math.min(16,T.getParameter(T.MAX_TEXTURE_IMAGE_UNITS));return!t||t===-1?d:Math.min(d,t)},parseFragmentShaderMaxTextures:function(T,t){if(!T)return"";for(var d="",p=0;p0&&(d+=` + */c.exports={getTintFromFloats:function(T,t,d,p){var l=(T*255|0)&255,r=(t*255|0)&255,n=(d*255|0)&255,e=(p*255|0)&255;return(e<<24|l<<16|r<<8|n)>>>0},getTintAppendFloatAlpha:function(T,t){var d=(t*255|0)&255;return(d<<24|T)>>>0},getTintAppendFloatAlphaAndSwap:function(T,t){var d=(T>>16|0)&255,p=(T>>8|0)&255,l=(T|0)&255,r=(t*255|0)&255;return(r<<24|l<<16|p<<8|d)>>>0},getFloatsFromUintRGB:function(T){var t=(T>>16|0)&255,d=(T>>8|0)&255,p=(T|0)&255;return[t/255,d/255,p/255]},checkShaderMax:function(T,t){var d=Math.min(16,T.getParameter(T.MAX_TEXTURE_IMAGE_UNITS));return!t||t===-1?d:Math.min(d,t)},parseFragmentShaderMaxTextures:function(T,t){if(!T)return"";for(var d="",p=0;p0&&(d+=` else `),p * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(62644),a=t(50792),r=t(77085),n=t(95540),e=t(37867),s=t(92503),l=t(32302),i=t(70554),o=t(38683),u=new d({Extends:a,initialize:function(f){a.call(this);var v=f.game,m=v.renderer,x=m.gl;this.name=n(f,"name","WebGLPipeline"),this.game=v,this.renderer=m,this.manager,this.gl=x,this.view=v.canvas,this.width=0,this.height=0,this.vertexCount=0,this.vertexCapacity=0,this.vertexData,this.vertexBuffer,this.activeBuffer,this.topology=n(f,"topology",x.TRIANGLES),this.bytes,this.vertexViewF32,this.vertexViewU32,this.active=!0,this.forceZero=n(f,"forceZero",!1),this.hasBooted=!1,this.isPostFX=!1,this.isPreFX=!1,this.renderTargets=[],this.currentRenderTarget,this.shaders=[],this.currentShader,this.projectionMatrix,this.projectionWidth=0,this.projectionHeight=0,this.config=f,this.glReset=!1,this.batch=[],this.currentBatch=null,this.currentTexture=null,this.currentUnit=0,this.activeTextures=[],this.resizeUniform=n(f,"resizeUniform","")},boot:function(){var h,f=this.gl,v=this.config,m=this.renderer;this.isPostFX||(this.projectionMatrix=new e().identity());var x=this.renderTargets,g=n(v,"renderTarget",!1);typeof g=="boolean"&&g&&(g=1);var y=m.width,S=m.height;if(typeof g=="number")for(h=0;hb&&(b=L[h].vertexSize);var B=n(v,"batchSize",m.config.batchSize);this.vertexCapacity=B*6;var N=new ArrayBuffer(this.vertexCapacity*b);this.vertexData=N,this.bytes=new Uint8Array(N),this.vertexViewF32=new Float32Array(N),this.vertexViewU32=new Uint32Array(N);var X=n(v,"vertices",null);for(X?(this.vertexViewF32.set(X),this.vertexBuffer=m.createVertexBuffer(N,f.STATIC_DRAW)):this.vertexBuffer=m.createVertexBuffer(N.byteLength,f.DYNAMIC_DRAW),this.setVertexBuffer(),h=L.length-1;h>=0;h--)L[h].rebind();this.hasBooted=!0,m.on(s.RESIZE,this.resize,this),m.on(s.PRE_RENDER,this.onPreRender,this),m.on(s.RENDER,this.onRender,this),m.on(s.POST_RENDER,this.onPostRender,this),this.emit(r.BOOT,this),this.onBoot()},onBoot:function(){},onResize:function(){},setShader:function(h,f,v){var m=this.renderer;if(h!==this.currentShader||m.currentProgram!==this.currentShader.program){this.flush();var x=this.setVertexBuffer(v);x&&!f&&(f=!0),h.bind(f,!1),this.currentShader=h}return this},getShaderByName:function(h){for(var f=this.shaders,v=0;v-1&&(L=D.substring(20))}b&&B&&M.push(new o(this,L,b,B,p(N)))}this.shaders=M}return this.shaders.length===0?console.warn("Pipeline: "+this.name+" - Invalid shader config"):this.currentShader=this.shaders[0],this},createBatch:function(h){return this.currentBatch={start:this.vertexCount,count:0,texture:[h],unit:0,maxUnit:0},this.currentUnit=0,this.currentTexture=h,this.batch.push(this.currentBatch),0},addTextureToBatch:function(h){var f=this.currentBatch;f&&(f.texture.push(h),f.unit++,f.maxUnit++)},pushBatch:function(h){if(!this.currentBatch||this.forceZero&&h!==this.currentTexture)return this.createBatch(h);if(h===this.currentTexture)return this.currentUnit;var f=this.currentBatch,v=f.texture.indexOf(h);return v===-1?f.texture.length===this.renderer.maxTextures?this.createBatch(h):(f.unit++,f.maxUnit++,f.texture.push(h),this.currentUnit=f.unit,this.currentTexture=h,f.unit):(this.currentUnit=v,this.currentTexture=h,v)},setGameObject:function(h,f){return f===void 0&&(f=h.frame),this.pushBatch(f.source.glTexture)},shouldFlush:function(h){return h===void 0&&(h=0),this.vertexCount+h>this.vertexCapacity},vertexAvailable:function(){return this.vertexCapacity-this.vertexCount},resize:function(h,f){(h!==this.width||f!==this.height)&&this.flush(),this.width=h,this.height=f;for(var v=this.renderTargets,m=0;m=0;v--){var m=f[v].rebind();(!h||m===h)&&(this.currentShader=m)}return this.activeTextures.length=0,this.emit(r.REBIND,this.currentShader),this.onActive(this.currentShader),this.onRebind(),this.glReset=!1,this},restoreContext:function(){var h=this.shaders,f=!!this.vertexBuffer;this.activeBuffer=null,this.activeTextures.length=0,this.batch.length=0,this.currentBatch=null,this.currentTexture=null,this.currentUnit=0,f&&this.setVertexBuffer();for(var v=0;v0){this.emit(r.BEFORE_FLUSH,this,h),this.onBeforeFlush(h);var f=this.gl,v=this.vertexCount,m=this.currentShader.vertexSize,x=this.topology;if(this.active){this.setVertexBuffer(),v===this.vertexCapacity?f.bufferData(f.ARRAY_BUFFER,this.vertexData,f.DYNAMIC_DRAW):f.bufferSubData(f.ARRAY_BUFFER,0,this.bytes.subarray(0,v*m));var g,y,S,C=this.batch,E=this.activeTextures;if(this.forceZero)for(E[0]||f.activeTexture(f.TEXTURE0),g=0;g{/** + */var d=t(83419),p=t(62644),l=t(50792),r=t(77085),n=t(95540),e=t(37867),s=t(92503),o=t(32302),i=t(70554),a=t(38683),u=new d({Extends:l,initialize:function(f){l.call(this);var v=f.game,m=v.renderer,g=m.gl;this.name=n(f,"name","WebGLPipeline"),this.game=v,this.renderer=m,this.manager,this.gl=g,this.view=v.canvas,this.width=0,this.height=0,this.vertexCount=0,this.vertexCapacity=0,this.vertexData,this.vertexBuffer,this.activeBuffer,this.topology=n(f,"topology",g.TRIANGLES),this.bytes,this.vertexViewF32,this.vertexViewU32,this.active=!0,this.forceZero=n(f,"forceZero",!1),this.hasBooted=!1,this.isPostFX=!1,this.isPreFX=!1,this.renderTargets=[],this.currentRenderTarget,this.shaders=[],this.currentShader,this.projectionMatrix,this.projectionWidth=0,this.projectionHeight=0,this.config=f,this.glReset=!1,this.batch=[],this.currentBatch=null,this.currentTexture=null,this.currentUnit=0,this.activeTextures=[],this.resizeUniform=n(f,"resizeUniform","")},boot:function(){var h,f=this.gl,v=this.config,m=this.renderer;this.isPostFX||(this.projectionMatrix=new e().identity());var g=this.renderTargets,x=n(v,"renderTarget",!1);typeof x=="boolean"&&x&&(x=1);var y=m.width,S=m.height;if(typeof x=="number")for(h=0;hD&&(D=F[h].vertexSize);var w=n(v,"batchSize",m.config.batchSize);this.vertexCapacity=w*6;var G=new ArrayBuffer(this.vertexCapacity*D);this.vertexData=G,this.bytes=new Uint8Array(G),this.vertexViewF32=new Float32Array(G),this.vertexViewU32=new Uint32Array(G);var N=n(v,"vertices",null);for(N?(this.vertexViewF32.set(N),this.vertexBuffer=m.createVertexBuffer(G,f.STATIC_DRAW)):this.vertexBuffer=m.createVertexBuffer(G.byteLength,f.DYNAMIC_DRAW),this.setVertexBuffer(),h=F.length-1;h>=0;h--)F[h].rebind();this.hasBooted=!0,m.on(s.RESIZE,this.resize,this),m.on(s.PRE_RENDER,this.onPreRender,this),m.on(s.RENDER,this.onRender,this),m.on(s.POST_RENDER,this.onPostRender,this),this.emit(r.BOOT,this),this.onBoot()},onBoot:function(){},onResize:function(){},setShader:function(h,f,v){var m=this.renderer;if(h!==this.currentShader||m.currentProgram!==this.currentShader.program){this.flush();var g=this.setVertexBuffer(v);g&&!f&&(f=!0),h.bind(f,!1),this.currentShader=h}return this},getShaderByName:function(h){for(var f=this.shaders,v=0;v-1&&(F=b.substring(20))}D&&w&&A.push(new a(this,F,D,w,p(G)))}this.shaders=A}return this.shaders.length===0?console.warn("Pipeline: "+this.name+" - Invalid shader config"):this.currentShader=this.shaders[0],this},createBatch:function(h){return this.currentBatch={start:this.vertexCount,count:0,texture:[h],unit:0,maxUnit:0},this.currentUnit=0,this.currentTexture=h,this.batch.push(this.currentBatch),0},addTextureToBatch:function(h){var f=this.currentBatch;f&&(f.texture.push(h),f.unit++,f.maxUnit++)},pushBatch:function(h){if(!this.currentBatch||this.forceZero&&h!==this.currentTexture)return this.createBatch(h);if(h===this.currentTexture)return this.currentUnit;var f=this.currentBatch,v=f.texture.indexOf(h);return v===-1?f.texture.length===this.renderer.maxTextures?this.createBatch(h):(f.unit++,f.maxUnit++,f.texture.push(h),this.currentUnit=f.unit,this.currentTexture=h,f.unit):(this.currentUnit=v,this.currentTexture=h,v)},setGameObject:function(h,f){return f===void 0&&(f=h.frame),this.pushBatch(f.source.glTexture)},shouldFlush:function(h){return h===void 0&&(h=0),this.vertexCount+h>this.vertexCapacity},vertexAvailable:function(){return this.vertexCapacity-this.vertexCount},resize:function(h,f){(h!==this.width||f!==this.height)&&this.flush(),this.width=h,this.height=f;for(var v=this.renderTargets,m=0;m=0;v--){var m=f[v].rebind();(!h||m===h)&&(this.currentShader=m)}return this.activeTextures.length=0,this.emit(r.REBIND,this.currentShader),this.onActive(this.currentShader),this.onRebind(),this.glReset=!1,this},restoreContext:function(){var h=this.shaders,f=!!this.vertexBuffer;this.activeBuffer=null,this.activeTextures.length=0,this.batch.length=0,this.currentBatch=null,this.currentTexture=null,this.currentUnit=0,f&&this.setVertexBuffer();for(var v=0;v0){this.emit(r.BEFORE_FLUSH,this,h),this.onBeforeFlush(h);var f=this.gl,v=this.vertexCount,m=this.currentShader.vertexSize,g=this.topology;if(this.active){this.setVertexBuffer(),v===this.vertexCapacity?f.bufferData(f.ARRAY_BUFFER,this.vertexData,f.DYNAMIC_DRAW):f.bufferSubData(f.ARRAY_BUFFER,0,this.bytes.subarray(0,v*m));var x,y,S,C=this.batch,E=this.activeTextures;if(this.forceZero)for(E[0]||f.activeTexture(f.TEXTURE0),x=0;x{/** * @author Richard Davey * @author Felipe Alfonso <@bitnenfer> * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(95428),p=t(72905),a=t(19715),r=t(83419),n=t(8054),e=t(50792),s=t(92503),l=t(50030),i=t(37867),o=t(29747),u=t(7530),h=t(32302),f=t(97480),v=t(69442),m=t(70554),x=t(88815),g=t(26128),y=t(1482),S=t(82751),C=t(84387),E=t(93567),A=t(57183),P=new r({Extends:e,initialize:function(F){e.call(this);var L=F.config,b={alpha:L.transparent,desynchronized:L.desynchronized,depth:!0,antialias:L.antialiasGL,premultipliedAlpha:L.premultipliedAlpha,stencil:!0,failIfMajorPerformanceCaveat:L.failIfMajorPerformanceCaveat,powerPreference:L.powerPreference,preserveDrawingBuffer:L.preserveDrawingBuffer,willReadFrequently:!1};this.config={clearBeforeRender:L.clearBeforeRender,antialias:L.antialias,backgroundColor:L.backgroundColor,contextCreation:b,roundPixels:L.roundPixels,maxTextures:L.maxTextures,maxTextureSize:L.maxTextureSize,batchSize:L.batchSize,maxLights:L.maxLights,mipmapFilter:L.mipmapFilter},this.game=F,this.type=n.WEBGL,this.pipelines=null,this.width=0,this.height=0,this.canvas=F.canvas,this.blendModes=[],this.contextLost=!1,this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92,isFramebuffer:!1,bufferWidth:0,bufferHeight:0},this.maxTextures=0,this.textureIndexes,this.glBufferWrappers=[],this.glProgramWrappers=[],this.glTextureWrappers=[],this.glFramebufferWrappers=[],this.glAttribLocationWrappers=[],this.glUniformLocationWrappers=[],this.currentFramebuffer=null,this.fboStack=[],this.currentProgram=null,this.currentBlendMode=1/0,this.currentScissorEnabled=!1,this.currentScissor=null,this.scissorStack=[],this.contextLostHandler=o,this.contextRestoredHandler=o,this.gl=null,this.supportedExtensions=null,this.instancedArraysExtension=null,this.vaoExtension=null,this.extensions={},this.glFormats,this.compression,this.drawingBufferHeight=0,this.blankTexture=null,this.normalTexture=null,this.whiteTexture=null,this.maskCount=0,this.maskStack=[],this.currentMask={mask:null,camera:null},this.currentCameraMask={mask:null,camera:null},this.glFuncMap=null,this.currentType="",this.newType=!1,this.nextTypeMatch=!1,this.finalType=!1,this.mipmapFilter=null,this.defaultScissor=[0,0,0,0],this.isBooted=!1,this.renderTarget=null,this.projectionMatrix,this.projectionWidth=0,this.projectionHeight=0,this.maskSource=null,this.maskTarget=null,this.spector=null,this._debugCapture=!1,this.init(this.config)},init:function(M){var F,L=this.game,b=this.canvas,B=M.backgroundColor;if(L.config.context?F=L.config.context:F=b.getContext("webgl",M.contextCreation)||b.getContext("experimental-webgl",M.contextCreation),!F||F.isContextLost())throw this.contextLost=!0,new Error("WebGL unsupported");this.gl=F;var N=this,X=function(){var R=F.getSupportedExtensions();N.supportedExtensions=R;var O="ANGLE_instanced_arrays";N.instancedArraysExtension=R.indexOf(O)>-1?F.getExtension(O):null;var w="OES_vertex_array_object";N.vaoExtension=R.indexOf(w)>-1?F.getExtension(w):null};X(),this.contextLostHandler=function(R){N.contextLost=!0,console&&console.warn("WebGL Context lost. Renderer disabled"),N.emit(s.LOSE_WEBGL,N),R.preventDefault()},b.addEventListener("webglcontextlost",this.contextLostHandler,!1),this.contextRestoredHandler=function(R){if(F.isContextLost()){console&&console.log("WebGL Context restored, but context is still lost");return}N.currentProgram=null,N.currentFramebuffer=null,N.setBlendMode(n.BlendModes.NORMAL),F.disable(F.BLEND),F.disable(F.DEPTH_TEST),F.enable(F.CULL_FACE),N.compression=N.getCompressedTextures();var O=function(w){w.createResource()};d(N.glTextureWrappers,O),d(N.glBufferWrappers,O),d(N.glFramebufferWrappers,O),d(N.glProgramWrappers,O),d(N.glAttribLocationWrappers,O),d(N.glUniformLocationWrappers,O),N.createTemporaryTextures(),N.pipelines.restoreContext(),N.resize(N.game.scale.baseSize.width,N.game.scale.baseSize.height),X(),N.contextLost=!1,console&&console.warn("WebGL Context restored. Renderer running again."),N.emit(s.RESTORE_WEBGL,N),R.preventDefault()},b.addEventListener("webglcontextrestored",this.contextRestoredHandler,!1),L.context=F;for(var D=0;D<=27;D++)this.blendModes.push({func:[F.ONE,F.ONE_MINUS_SRC_ALPHA],equation:F.FUNC_ADD});this.blendModes[1].func=[F.ONE,F.DST_ALPHA],this.blendModes[2].func=[F.DST_COLOR,F.ONE_MINUS_SRC_ALPHA],this.blendModes[3].func=[F.ONE,F.ONE_MINUS_SRC_COLOR],this.blendModes[17]={func:[F.ZERO,F.ONE_MINUS_SRC_ALPHA],equation:F.FUNC_REVERSE_SUBTRACT},this.glFormats=[F.BYTE,F.SHORT,F.UNSIGNED_BYTE,F.UNSIGNED_SHORT,F.FLOAT],this.glFuncMap={mat2:{func:F.uniformMatrix2fv,length:1,matrix:!0},mat3:{func:F.uniformMatrix3fv,length:1,matrix:!0},mat4:{func:F.uniformMatrix4fv,length:1,matrix:!0},"1f":{func:F.uniform1f,length:1},"1fv":{func:F.uniform1fv,length:1},"1i":{func:F.uniform1i,length:1},"1iv":{func:F.uniform1iv,length:1},"2f":{func:F.uniform2f,length:2},"2fv":{func:F.uniform2fv,length:1},"2i":{func:F.uniform2i,length:2},"2iv":{func:F.uniform2iv,length:1},"3f":{func:F.uniform3f,length:3},"3fv":{func:F.uniform3fv,length:1},"3i":{func:F.uniform3i,length:3},"3iv":{func:F.uniform3iv,length:1},"4f":{func:F.uniform4f,length:4},"4fv":{func:F.uniform4fv,length:1},"4i":{func:F.uniform4i,length:4},"4iv":{func:F.uniform4iv,length:1}},(!M.maxTextures||M.maxTextures===-1)&&(M.maxTextures=F.getParameter(F.MAX_TEXTURE_IMAGE_UNITS)),M.maxTextureSize||(M.maxTextureSize=F.getParameter(F.MAX_TEXTURE_SIZE)),this.compression=this.getCompressedTextures(),F.disable(F.DEPTH_TEST),F.disable(F.CULL_FACE),F.enable(F.BLEND),F.clearColor(B.redGL,B.greenGL,B.blueGL,B.alphaGL);var I=["NEAREST","LINEAR","NEAREST_MIPMAP_NEAREST","LINEAR_MIPMAP_NEAREST","NEAREST_MIPMAP_LINEAR","LINEAR_MIPMAP_LINEAR"];return I.indexOf(M.mipmapFilter)!==-1&&(this.mipmapFilter=F[M.mipmapFilter]),this.maxTextures=m.checkShaderMax(F,M.maxTextures),this.textureIndexes=[],this.createTemporaryTextures(),this.pipelines=new u(this),this.setBlendMode(n.BlendModes.NORMAL),this.projectionMatrix=new i().identity(),L.textures.once(v.READY,this.boot,this),this},boot:function(){var M=this.game,F=this.pipelines,L=M.scale.baseSize,b=L.width,B=L.height;this.width=b,this.height=B,this.isBooted=!0,this.renderTarget=new h(this,b,B,1,0,!0,!0),this.maskTarget=new h(this,b,B,1,0,!0,!0),this.maskSource=new h(this,b,B,1,0,!0,!0);var N=M.config;F.boot(N.pipeline,N.defaultPipeline,N.autoMobilePipeline),this.blankTexture=M.textures.getFrame("__DEFAULT").glTexture,this.normalTexture=M.textures.getFrame("__NORMAL").glTexture,this.whiteTexture=M.textures.getFrame("__WHITE").glTexture;var X=this.gl;X.bindFramebuffer(X.FRAMEBUFFER,null),X.enable(X.SCISSOR_TEST),M.scale.on(f.RESIZE,this.onResize,this),this.resize(b,B)},createTemporaryTextures:function(){for(var M=this.gl,F=0;F0&&b>0;if(X&&D){var I=X[0],R=X[1],O=X[2],w=X[3];D=I!==M||R!==F||O!==L||w!==b}D&&(this.flush(),N.scissor(M,B-F-b,L,b))},resetScissor:function(){var M=this.gl;M.enable(M.SCISSOR_TEST);var F=this.currentScissor;if(F){var L=F[0],b=F[1],B=F[2],N=F[3];B>0&&N>0&&M.scissor(L,this.drawingBufferHeight-b-N,B,N)}},popScissor:function(){var M=this.scissorStack;M.pop();var F=M[M.length-1];F&&this.setScissor(F[0],F[1],F[2],F[3]),this.currentScissor=F},hasActiveStencilMask:function(){var M=this.currentMask.mask,F=this.currentCameraMask.mask;return M&&M.isStencil||F&&F.isStencil},resetViewport:function(){var M=this.gl;M.viewport(0,0,this.width,this.height),this.drawingBufferHeight=M.drawingBufferHeight},setBlendMode:function(M,F){F===void 0&&(F=!1);var L=this.gl,b=this.blendModes[M];return F||M!==n.BlendModes.SKIP_CHECK&&this.currentBlendMode!==M?(this.flush(),L.enable(L.BLEND),L.blendEquation(b.equation),b.func.length>2?L.blendFuncSeparate(b.func[0],b.func[1],b.func[2],b.func[3]):L.blendFunc(b.func[0],b.func[1]),this.currentBlendMode=M,!0):!1},addBlendMode:function(M,F){var L=this.blendModes.push({func:M,equation:F});return L-1},updateBlendMode:function(M,F,L){return this.blendModes[M]&&(this.blendModes[M].func=F,L&&(this.blendModes[M].equation=L)),this},removeBlendMode:function(M){return M>17&&this.blendModes[M]&&this.blendModes.splice(M,1),this},pushFramebuffer:function(M,F,L,b,B){return M===this.currentFramebuffer?this:(this.fboStack.push(M),this.setFramebuffer(M,F,L,b,B))},setFramebuffer:function(M,F,L,b,B){if(F===void 0&&(F=!1),L===void 0&&(L=!0),b===void 0&&(b=null),B===void 0&&(B=!1),M===this.currentFramebuffer)return this;var N=this.gl,X=this.width,D=this.height;return M&&M.renderTexture&&L?(X=M.renderTexture.width,D=M.renderTexture.height):this.flush(),M?N.bindFramebuffer(N.FRAMEBUFFER,M.webGLFramebuffer):N.bindFramebuffer(N.FRAMEBUFFER,null),L&&N.viewport(0,0,X,D),b&&N.framebufferTexture2D(N.FRAMEBUFFER,N.COLOR_ATTACHMENT0,N.TEXTURE_2D,b.webGLTexture,0),B&&(N.clearColor(0,0,0,0),N.clear(N.COLOR_BUFFER_BIT)),F&&(M?(this.drawingBufferHeight=D,this.pushScissor(0,0,X,D)):(this.drawingBufferHeight=this.height,this.popScissor())),this.currentFramebuffer=M,this},popFramebuffer:function(M,F){M===void 0&&(M=!1),F===void 0&&(F=!0);var L=this.fboStack;L.pop();var b=L[L.length-1];return b||(b=null),this.setFramebuffer(b,M,F),b},restoreFramebuffer:function(M,F){M===void 0&&(M=!1),F===void 0&&(F=!0);var L=this.fboStack,b=L[L.length-1];b||(b=null),this.currentFramebuffer=null,this.setFramebuffer(b,M,F)},setProgram:function(M){return M!==this.currentProgram?(this.flush(),this.gl.useProgram(M.webGLProgram),this.currentProgram=M,!0):!1},resetProgram:function(){return this.gl.useProgram(this.currentProgram.webGLProgramWrapper),this},createTextureFromSource:function(M,F,L,b,B){B===void 0&&(B=!1);var N=this.gl,X=N.NEAREST,D=N.NEAREST,I=N.CLAMP_TO_EDGE,R=null;F=M?M.width:F,L=M?M.height:L;var O=l(F,L);if(O&&!B&&(I=N.REPEAT),b===n.ScaleModes.LINEAR&&this.config.antialias){var w=M&&M.compressed,G=!w&&O||w&&M.mipmaps.length>1;X=this.mipmapFilter&&G?this.mipmapFilter:N.LINEAR,D=N.LINEAR}return!M&&typeof F=="number"&&typeof L=="number"?R=this.createTexture2D(0,X,D,I,I,N.RGBA,null,F,L):R=this.createTexture2D(0,X,D,I,I,N.RGBA,M),R},createTexture2D:function(M,F,L,b,B,N,X,D,I,R,O,w){typeof D!="number"&&(D=X?X.width:1),typeof I!="number"&&(I=X?X.height:1);var G=new S(this.gl,M,F,L,b,B,N,X,D,I,R,O,w);return this.glTextureWrappers.push(G),G},createFramebuffer:function(M,F,L,b){this.currentFramebuffer=null;var B=new C(this.gl,M,F,L,b);return this.glFramebufferWrappers.push(B),B},beginBitmapMask:function(M,F){var L=this.gl;L&&(this.flush(),this.maskTarget.bind(!0),this.currentCameraMask.mask!==M&&(this.currentMask.mask=M,this.currentMask.camera=F))},drawBitmapMask:function(M,F,L){this.flush(),this.maskSource.bind(),this.setBlendMode(0,!0),M.renderWebGL(this,M,F),this.maskSource.unbind(!0),this.maskTarget.unbind();var b=this.gl,B=this.getCurrentStencilMask();B?(b.enable(b.STENCIL_TEST),B.mask.applyStencil(this,B.camera,!0)):this.currentMask.mask=null,this.pipelines.set(L),b.activeTexture(b.TEXTURE0),b.bindTexture(b.TEXTURE_2D,this.maskTarget.texture.webGLTexture),b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,this.maskSource.texture.webGLTexture)},createProgram:function(M,F){var L=new y(this.gl,M,F);return this.glProgramWrappers.push(L),L},createVertexBuffer:function(M,F){var L=this.gl,b=new g(L,M,L.ARRAY_BUFFER,F);return this.glBufferWrappers.push(b),b},createAttribLocation:function(M,F){var L=new E(this.gl,M,F);return this.glAttribLocationWrappers.push(L),L},createUniformLocation:function(M,F){var L=new A(this.gl,M,F);return this.glUniformLocationWrappers.push(L),L},createIndexBuffer:function(M,F){var L=this.gl,b=new g(L,M,L.ELEMENT_ARRAY_BUFFER,F);return this.glBufferWrappers.push(b),b},deleteTexture:function(M){if(M)return p(this.glTextureWrappers,M),M.destroy(),this},deleteFramebuffer:function(M){return M?(p(this.fboStack,M),p(this.glFramebufferWrappers,M),M.destroy(),this):this},deleteProgram:function(M){return M&&(p(this.glProgramWrappers,M),M.destroy()),this},deleteAttribLocation:function(M){return M&&(p(this.glAttribLocationWrappers,M),M.destroy()),this},deleteUniformLocation:function(M){return M&&(p(this.glUniformLocationWrappers,M),M.destroy()),this},deleteBuffer:function(M){return M?(p(this.glBufferWrappers,M),M.destroy(),this):this},preRenderCamera:function(M){var F=M.x,L=M.y,b=M.width,B=M.height,N=M.backgroundColor;if(M.emit(a.PRE_RENDER,M),this.pipelines.preBatchCamera(M),this.pushScissor(F,L,b,B),M.mask&&(this.currentCameraMask.mask=M.mask,this.currentCameraMask.camera=M._maskCamera,M.mask.preRenderWebGL(this,M,M._maskCamera)),N.alphaGL>0){var X=this.pipelines.setMulti();X.drawFillRect(F,L,b,B,m.getTintFromFloats(N.blueGL,N.greenGL,N.redGL,1),N.alphaGL)}},getCurrentStencilMask:function(){var M=null,F=this.maskStack,L=this.currentCameraMask;return F.length>0?M=F[F.length-1]:L.mask&&L.mask.isStencil&&(M=L),M},postRenderCamera:function(M){var F=M.flashEffect,L=M.fadeEffect;if(F.isRunning||L.isRunning||L.isComplete){var b=this.pipelines.setMulti();F.postRenderWebGL(b,m.getTintFromFloats),L.postRenderWebGL(b,m.getTintFromFloats)}M.dirty=!1,this.popScissor(),M.mask&&(this.currentCameraMask.mask=null,M.mask.postRenderWebGL(this,M._maskCamera)),this.pipelines.postBatchCamera(M),M.emit(a.POST_RENDER,M)},preRender:function(){if(!this.contextLost){var M=this.gl;if(M.bindFramebuffer(M.FRAMEBUFFER,null),this.config.clearBeforeRender){var F=this.config.backgroundColor;M.clearColor(F.redGL,F.greenGL,F.blueGL,F.alphaGL),M.clear(M.COLOR_BUFFER_BIT|M.DEPTH_BUFFER_BIT|M.STENCIL_BUFFER_BIT)}M.enable(M.SCISSOR_TEST),this.currentScissor=this.defaultScissor,this.scissorStack.length=0,this.scissorStack.push(this.currentScissor),this.game.scene.customViewports&&M.scissor(0,this.drawingBufferHeight-this.height,this.width,this.height),this.currentMask.mask=null,this.currentCameraMask.mask=null,this.maskStack.length=0,this.emit(s.PRE_RENDER)}},render:function(M,F,L){if(!this.contextLost){var b=F.length;if(this.emit(s.RENDER,M,L),this.preRenderCamera(L),b===0){this.setBlendMode(n.BlendModes.NORMAL),this.postRenderCamera(L);return}this.currentType="";for(var B=this.currentMask,N=0;N{/** + */var d=t(95428),p=t(72905),l=t(19715),r=t(83419),n=t(8054),e=t(50792),s=t(92503),o=t(50030),i=t(37867),a=t(29747),u=t(7530),h=t(32302),f=t(97480),v=t(69442),m=t(70554),g=t(88815),x=t(26128),y=t(1482),S=t(82751),C=t(84387),E=t(93567),M=t(57183),P=new r({Extends:e,initialize:function(R){e.call(this);var F=R.config,D={alpha:F.transparent,desynchronized:F.desynchronized,depth:!0,antialias:F.antialiasGL,premultipliedAlpha:F.premultipliedAlpha,stencil:!0,failIfMajorPerformanceCaveat:F.failIfMajorPerformanceCaveat,powerPreference:F.powerPreference,preserveDrawingBuffer:F.preserveDrawingBuffer,willReadFrequently:!1};this.config={clearBeforeRender:F.clearBeforeRender,antialias:F.antialias,backgroundColor:F.backgroundColor,contextCreation:D,roundPixels:F.roundPixels,maxTextures:F.maxTextures,maxTextureSize:F.maxTextureSize,batchSize:F.batchSize,maxLights:F.maxLights,mipmapFilter:F.mipmapFilter},this.game=R,this.type=n.WEBGL,this.pipelines=null,this.width=0,this.height=0,this.canvas=R.canvas,this.blendModes=[],this.contextLost=!1,this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92,isFramebuffer:!1,bufferWidth:0,bufferHeight:0},this.maxTextures=0,this.textureIndexes,this.glBufferWrappers=[],this.glProgramWrappers=[],this.glTextureWrappers=[],this.glFramebufferWrappers=[],this.glAttribLocationWrappers=[],this.glUniformLocationWrappers=[],this.currentFramebuffer=null,this.fboStack=[],this.currentProgram=null,this.currentBlendMode=1/0,this.currentScissorEnabled=!1,this.currentScissor=null,this.scissorStack=[],this.contextLostHandler=a,this.contextRestoredHandler=a,this.previousContextLostHandler=a,this.previousContextRestoredHandler=a,this.gl=null,this.supportedExtensions=null,this.instancedArraysExtension=null,this.vaoExtension=null,this.extensions={},this.glFormats,this.compression,this.drawingBufferHeight=0,this.blankTexture=null,this.normalTexture=null,this.whiteTexture=null,this.maskCount=0,this.maskStack=[],this.currentMask={mask:null,camera:null},this.currentCameraMask={mask:null,camera:null},this.glFuncMap=null,this.currentType="",this.newType=!1,this.nextTypeMatch=!1,this.finalType=!1,this.mipmapFilter=null,this.defaultScissor=[0,0,0,0],this.isBooted=!1,this.renderTarget=null,this.projectionMatrix,this.projectionWidth=0,this.projectionHeight=0,this.maskSource=null,this.maskTarget=null,this.spector=null,this._debugCapture=!1,this.init(this.config)},init:function(A){var R,F=this.game,D=this.canvas,w=A.backgroundColor;if(F.config.context?R=F.config.context:R=D.getContext("webgl",A.contextCreation)||D.getContext("experimental-webgl",A.contextCreation),!R||R.isContextLost())throw this.contextLost=!0,new Error("WebGL unsupported");this.gl=R;var G=this,N=function(){var O=R.getSupportedExtensions();G.supportedExtensions=O;var L="ANGLE_instanced_arrays";G.instancedArraysExtension=O.indexOf(L)>-1?R.getExtension(L):null;var I="OES_vertex_array_object";G.vaoExtension=O.indexOf(I)>-1?R.getExtension(I):null};N(),this.setContextHandlers(),F.context=R;for(var b=0;b<=27;b++)this.blendModes.push({func:[R.ONE,R.ONE_MINUS_SRC_ALPHA],equation:R.FUNC_ADD});this.blendModes[1].func=[R.ONE,R.DST_ALPHA],this.blendModes[2].func=[R.DST_COLOR,R.ONE_MINUS_SRC_ALPHA],this.blendModes[3].func=[R.ONE,R.ONE_MINUS_SRC_COLOR],this.blendModes[17]={func:[R.ZERO,R.ONE_MINUS_SRC_ALPHA],equation:R.FUNC_REVERSE_SUBTRACT},this.glFormats=[R.BYTE,R.SHORT,R.UNSIGNED_BYTE,R.UNSIGNED_SHORT,R.FLOAT],this.glFuncMap={mat2:{func:R.uniformMatrix2fv,length:1,matrix:!0},mat3:{func:R.uniformMatrix3fv,length:1,matrix:!0},mat4:{func:R.uniformMatrix4fv,length:1,matrix:!0},"1f":{func:R.uniform1f,length:1},"1fv":{func:R.uniform1fv,length:1},"1i":{func:R.uniform1i,length:1},"1iv":{func:R.uniform1iv,length:1},"2f":{func:R.uniform2f,length:2},"2fv":{func:R.uniform2fv,length:1},"2i":{func:R.uniform2i,length:2},"2iv":{func:R.uniform2iv,length:1},"3f":{func:R.uniform3f,length:3},"3fv":{func:R.uniform3fv,length:1},"3i":{func:R.uniform3i,length:3},"3iv":{func:R.uniform3iv,length:1},"4f":{func:R.uniform4f,length:4},"4fv":{func:R.uniform4fv,length:1},"4i":{func:R.uniform4i,length:4},"4iv":{func:R.uniform4iv,length:1}},(!A.maxTextures||A.maxTextures===-1)&&(A.maxTextures=R.getParameter(R.MAX_TEXTURE_IMAGE_UNITS)),A.maxTextureSize||(A.maxTextureSize=R.getParameter(R.MAX_TEXTURE_SIZE)),this.compression=this.getCompressedTextures(),R.disable(R.DEPTH_TEST),R.disable(R.CULL_FACE),R.enable(R.BLEND),R.clearColor(w.redGL,w.greenGL,w.blueGL,w.alphaGL);var B=["NEAREST","LINEAR","NEAREST_MIPMAP_NEAREST","LINEAR_MIPMAP_NEAREST","NEAREST_MIPMAP_LINEAR","LINEAR_MIPMAP_LINEAR"];return B.indexOf(A.mipmapFilter)!==-1&&(this.mipmapFilter=R[A.mipmapFilter]),this.maxTextures=m.checkShaderMax(R,A.maxTextures),this.textureIndexes=[],this.createTemporaryTextures(),this.pipelines=new u(this),this.setBlendMode(n.BlendModes.NORMAL),this.projectionMatrix=new i().identity(),F.textures.once(v.READY,this.boot,this),this},boot:function(){var A=this.game,R=this.pipelines,F=A.scale.baseSize,D=F.width,w=F.height;this.width=D,this.height=w,this.isBooted=!0,this.renderTarget=new h(this,D,w,1,0,!0,!0),this.maskTarget=new h(this,D,w,1,0,!0,!0),this.maskSource=new h(this,D,w,1,0,!0,!0);var G=A.config;R.boot(G.pipeline,G.defaultPipeline,G.autoMobilePipeline),this.blankTexture=A.textures.getFrame("__DEFAULT").glTexture,this.normalTexture=A.textures.getFrame("__NORMAL").glTexture,this.whiteTexture=A.textures.getFrame("__WHITE").glTexture;var N=this.gl;N.bindFramebuffer(N.FRAMEBUFFER,null),N.enable(N.SCISSOR_TEST),A.scale.on(f.RESIZE,this.onResize,this),this.resize(D,w)},setContextHandlers:function(A,R){this.previousContextLostHandler&&this.canvas.removeEventListener("webglcontextlost",this.previousContextLostHandler,!1),this.previousContextRestoredHandler&&this.canvas.removeEventListener("webglcontextlost",this.previousContextRestoredHandler,!1),typeof A=="function"?this.contextLostHandler=A.bind(this):this.contextLostHandler=this.dispatchContextLost.bind(this),typeof R=="function"?this.contextRestoredHandler=R.bind(this):this.contextRestoredHandler=this.dispatchContextRestored.bind(this),this.canvas.addEventListener("webglcontextlost",this.contextLostHandler,!1),this.canvas.addEventListener("webglcontextrestored",this.contextRestoredHandler,!1),this.previousContextLostHandler=this.contextLostHandler,this.previousContextRestoredHandler=this.contextRestoredHandler},dispatchContextLost:function(A){this.contextLost=!0,console&&console.warn("WebGL Context lost. Renderer disabled"),this.emit(s.LOSE_WEBGL,this),A.preventDefault()},dispatchContextRestored:function(A){var R=this.gl;if(R.isContextLost()){console&&console.log("WebGL Context restored, but context is still lost");return}this.currentProgram=null,this.currentFramebuffer=null,this.setBlendMode(n.BlendModes.NORMAL),R.disable(R.BLEND),R.disable(R.DEPTH_TEST),R.enable(R.CULL_FACE),this.compression=this.getCompressedTextures();var F=function(D){D.createResource()};d(this.glTextureWrappers,F),d(this.glBufferWrappers,F),d(this.glFramebufferWrappers,F),d(this.glProgramWrappers,F),d(this.glAttribLocationWrappers,F),d(this.glUniformLocationWrappers,F),this.createTemporaryTextures(),this.pipelines.restoreContext(),this.resize(this.game.scale.baseSize.width,this.game.scale.baseSize.height),this.init.setupExtensions(),this.contextLost=!1,console&&console.warn("WebGL Context restored. Renderer running again."),this.emit(s.RESTORE_WEBGL,this),A.preventDefault()},createTemporaryTextures:function(){for(var A=this.gl,R=0;R0&&D>0;if(N&&b){var B=N[0],O=N[1],L=N[2],I=N[3];b=B!==A||O!==R||L!==F||I!==D}b&&(this.flush(),G.scissor(A,w-R-D,F,D))},resetScissor:function(){var A=this.gl;A.enable(A.SCISSOR_TEST);var R=this.currentScissor;if(R){var F=R[0],D=R[1],w=R[2],G=R[3];w>0&&G>0&&A.scissor(F,this.drawingBufferHeight-D-G,w,G)}},popScissor:function(){var A=this.scissorStack;A.pop();var R=A[A.length-1];R&&this.setScissor(R[0],R[1],R[2],R[3]),this.currentScissor=R},hasActiveStencilMask:function(){var A=this.currentMask.mask,R=this.currentCameraMask.mask;return A&&A.isStencil||R&&R.isStencil},resetViewport:function(){var A=this.gl;A.viewport(0,0,this.width,this.height),this.drawingBufferHeight=A.drawingBufferHeight},setBlendMode:function(A,R){R===void 0&&(R=!1);var F=this.gl,D=this.blendModes[A];return R||A!==n.BlendModes.SKIP_CHECK&&this.currentBlendMode!==A?(this.flush(),F.enable(F.BLEND),F.blendEquation(D.equation),D.func.length>2?F.blendFuncSeparate(D.func[0],D.func[1],D.func[2],D.func[3]):F.blendFunc(D.func[0],D.func[1]),this.currentBlendMode=A,!0):!1},addBlendMode:function(A,R){var F=this.blendModes.push({func:A,equation:R});return F-1},updateBlendMode:function(A,R,F){return this.blendModes[A]&&(this.blendModes[A].func=R,F&&(this.blendModes[A].equation=F)),this},removeBlendMode:function(A){return A>17&&this.blendModes[A]&&this.blendModes.splice(A,1),this},pushFramebuffer:function(A,R,F,D,w){return A===this.currentFramebuffer?this:(this.fboStack.push(A),this.setFramebuffer(A,R,F,D,w))},setFramebuffer:function(A,R,F,D,w){if(R===void 0&&(R=!1),F===void 0&&(F=!0),D===void 0&&(D=null),w===void 0&&(w=!1),A===this.currentFramebuffer)return this;var G=this.gl,N=this.width,b=this.height;return A&&A.renderTexture&&F?(N=A.renderTexture.width,b=A.renderTexture.height):this.flush(),A?G.bindFramebuffer(G.FRAMEBUFFER,A.webGLFramebuffer):G.bindFramebuffer(G.FRAMEBUFFER,null),F&&G.viewport(0,0,N,b),D&&G.framebufferTexture2D(G.FRAMEBUFFER,G.COLOR_ATTACHMENT0,G.TEXTURE_2D,D.webGLTexture,0),w&&(G.clearColor(0,0,0,0),G.clear(G.COLOR_BUFFER_BIT)),R&&(A?(this.drawingBufferHeight=b,this.pushScissor(0,0,N,b)):(this.drawingBufferHeight=this.height,this.popScissor())),this.currentFramebuffer=A,this},popFramebuffer:function(A,R){A===void 0&&(A=!1),R===void 0&&(R=!0);var F=this.fboStack;F.pop();var D=F[F.length-1];return D||(D=null),this.setFramebuffer(D,A,R),D},restoreFramebuffer:function(A,R){A===void 0&&(A=!1),R===void 0&&(R=!0);var F=this.fboStack,D=F[F.length-1];D||(D=null),this.currentFramebuffer=null,this.setFramebuffer(D,A,R)},setProgram:function(A){return A!==this.currentProgram?(this.flush(),this.gl.useProgram(A.webGLProgram),this.currentProgram=A,!0):!1},resetProgram:function(){return this.gl.useProgram(this.currentProgram.webGLProgramWrapper),this},createTextureFromSource:function(A,R,F,D,w){w===void 0&&(w=!1);var G=this.gl,N=G.NEAREST,b=G.NEAREST,B=G.CLAMP_TO_EDGE,O=null;R=A?A.width:R,F=A?A.height:F;var L=o(R,F);if(L&&!w&&(B=G.REPEAT),D===n.ScaleModes.LINEAR&&this.config.antialias){var I=A&&A.compressed,U=!I&&L||I&&A.mipmaps.length>1;N=this.mipmapFilter&&U?this.mipmapFilter:G.LINEAR,b=G.LINEAR}return!A&&typeof R=="number"&&typeof F=="number"?O=this.createTexture2D(0,N,b,B,B,G.RGBA,null,R,F):O=this.createTexture2D(0,N,b,B,B,G.RGBA,A),O},createTexture2D:function(A,R,F,D,w,G,N,b,B,O,L,I){typeof b!="number"&&(b=N?N.width:1),typeof B!="number"&&(B=N?N.height:1);var U=new S(this.gl,A,R,F,D,w,G,N,b,B,O,L,I);return this.glTextureWrappers.push(U),U},createFramebuffer:function(A,R,F,D){this.currentFramebuffer=null;var w=new C(this.gl,A,R,F,D);return this.glFramebufferWrappers.push(w),w},beginBitmapMask:function(A,R){var F=this.gl;F&&(this.flush(),this.maskTarget.bind(!0),this.currentCameraMask.mask!==A&&(this.currentMask.mask=A,this.currentMask.camera=R))},drawBitmapMask:function(A,R,F){this.flush(),this.maskSource.bind(),this.setBlendMode(0,!0),A.renderWebGL(this,A,R),this.maskSource.unbind(!0),this.maskTarget.unbind();var D=this.gl,w=this.getCurrentStencilMask();w?(D.enable(D.STENCIL_TEST),w.mask.applyStencil(this,w.camera,!0)):this.currentMask.mask=null,this.pipelines.set(F),D.activeTexture(D.TEXTURE0),D.bindTexture(D.TEXTURE_2D,this.maskTarget.texture.webGLTexture),D.activeTexture(D.TEXTURE1),D.bindTexture(D.TEXTURE_2D,this.maskSource.texture.webGLTexture)},createProgram:function(A,R){var F=new y(this.gl,A,R);return this.glProgramWrappers.push(F),F},createVertexBuffer:function(A,R){var F=this.gl,D=new x(F,A,F.ARRAY_BUFFER,R);return this.glBufferWrappers.push(D),D},createAttribLocation:function(A,R){var F=new E(this.gl,A,R);return this.glAttribLocationWrappers.push(F),F},createUniformLocation:function(A,R){var F=new M(this.gl,A,R);return this.glUniformLocationWrappers.push(F),F},createIndexBuffer:function(A,R){var F=this.gl,D=new x(F,A,F.ELEMENT_ARRAY_BUFFER,R);return this.glBufferWrappers.push(D),D},deleteTexture:function(A){if(A)return p(this.glTextureWrappers,A),A.destroy(),this},deleteFramebuffer:function(A){return A?(p(this.fboStack,A),p(this.glFramebufferWrappers,A),A.destroy(),this):this},deleteProgram:function(A){return A&&(p(this.glProgramWrappers,A),A.destroy()),this},deleteAttribLocation:function(A){return A&&(p(this.glAttribLocationWrappers,A),A.destroy()),this},deleteUniformLocation:function(A){return A&&(p(this.glUniformLocationWrappers,A),A.destroy()),this},deleteBuffer:function(A){return A?(p(this.glBufferWrappers,A),A.destroy(),this):this},preRenderCamera:function(A){var R=A.x,F=A.y,D=A.width,w=A.height,G=A.backgroundColor;if(A.emit(l.PRE_RENDER,A),this.pipelines.preBatchCamera(A),this.pushScissor(R,F,D,w),A.mask&&(this.currentCameraMask.mask=A.mask,this.currentCameraMask.camera=A._maskCamera,A.mask.preRenderWebGL(this,A,A._maskCamera)),G.alphaGL>0){var N=this.pipelines.setMulti();N.drawFillRect(R,F,D,w,m.getTintFromFloats(G.blueGL,G.greenGL,G.redGL,1),G.alphaGL)}},getCurrentStencilMask:function(){var A=null,R=this.maskStack,F=this.currentCameraMask;return R.length>0?A=R[R.length-1]:F.mask&&F.mask.isStencil&&(A=F),A},postRenderCamera:function(A){var R=A.flashEffect,F=A.fadeEffect;if(R.isRunning||F.isRunning||F.isComplete){var D=this.pipelines.setMulti();R.postRenderWebGL(D,m.getTintFromFloats),F.postRenderWebGL(D,m.getTintFromFloats)}A.dirty=!1,this.popScissor(),A.mask&&(this.currentCameraMask.mask=null,A.mask.postRenderWebGL(this,A._maskCamera)),this.pipelines.postBatchCamera(A),A.emit(l.POST_RENDER,A)},preRender:function(){if(!this.contextLost){var A=this.gl;if(A.bindFramebuffer(A.FRAMEBUFFER,null),this.emit(s.PRE_RENDER_CLEAR),this.config.clearBeforeRender){var R=this.config.backgroundColor;A.clearColor(R.redGL,R.greenGL,R.blueGL,R.alphaGL),A.clear(A.COLOR_BUFFER_BIT|A.DEPTH_BUFFER_BIT|A.STENCIL_BUFFER_BIT)}A.enable(A.SCISSOR_TEST),this.currentScissor=this.defaultScissor,this.scissorStack.length=0,this.scissorStack.push(this.currentScissor),this.game.scene.customViewports&&A.scissor(0,this.drawingBufferHeight-this.height,this.width,this.height),this.currentMask.mask=null,this.currentCameraMask.mask=null,this.maskStack.length=0,this.emit(s.PRE_RENDER)}},render:function(A,R,F){if(!this.contextLost){var D=R.length;if(this.emit(s.RENDER,A,F),this.preRenderCamera(F),D===0){this.setBlendMode(n.BlendModes.NORMAL),this.postRenderCamera(F);return}this.currentType="";for(var w=this.currentMask,G=0;G{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(95428),a=t(95540),r=t(14500),n=new d({initialize:function(s,l,i,o,u){this.pipeline=s,this.name=l,this.renderer=s.renderer,this.gl=this.renderer.gl,this.fragSrc=o,this.vertSrc=i,this.program=this.renderer.createProgram(i,o),this.attributes,this.vertexComponentCount=0,this.vertexSize=0,this.uniforms={},this.createAttributes(u),this.createUniforms()},createAttributes:function(e){var s=0,l=0,i=[];this.vertexComponentCount=0;for(var o=0;o=0?(s.enableVertexAttribArray(C.webGLAttribLocation),s.vertexAttribPointer(C.webGLAttribLocation,v,m,S,i,x),f.enabled=!0,f.location=C):C.webGLAttribLocation!==-1&&s.disableVertexAttribArray(C.webGLAttribLocation)}else g?s.vertexAttribPointer(y.webGLAttribLocation,v,m,S,i,x):!g&&y!==-1&&y.webGLAttribLocation>-1&&(s.disableVertexAttribArray(y.webGLAttribLocation),f.location=-1)}return this},createUniforms:function(){var e=this.gl,s=this.program,l=this.uniforms,i,o,u,h=e.getProgramParameter(s.webGLProgram,e.ACTIVE_UNIFORMS);for(i=0;i0&&(o=o.substr(0,v),l.hasOwnProperty(o)||(u=this.renderer.createUniformLocation(s,o),u!==null&&(l[o]={name:o,location:u,setter:null,value1:null,value2:null,value3:null,value4:null})))}}return this},syncUniforms:function(){var e=this.gl;this.renderer.setProgram(this.program);for(var s in this.uniforms){var l=this.uniforms[s];l.setter&&l.setter.call(e,l.location.webGLUniformLocation,l.value1,l.value2,l.value3,l.value4)}},hasUniform:function(e){return this.uniforms.hasOwnProperty(e)},resetUniform:function(e){var s=this.uniforms[e];return s&&(s.value1=null,s.value2=null,s.value3=null,s.value4=null),this},setUniform1:function(e,s,l,i){var o=this.uniforms[s];return o?((i||o.value1!==l)&&(o.setter||(o.setter=e),o.value1=l,this.renderer.setProgram(this.program),e.call(this.gl,o.location.webGLUniformLocation,l),this.pipeline.currentShader=this),this):this},setUniform2:function(e,s,l,i,o){var u=this.uniforms[s];return u?((o||u.value1!==l||u.value2!==i)&&(u.setter||(u.setter=e),u.value1=l,u.value2=i,this.renderer.setProgram(this.program),e.call(this.gl,u.location.webGLUniformLocation,l,i),this.pipeline.currentShader=this),this):this},setUniform3:function(e,s,l,i,o,u){var h=this.uniforms[s];return h?((u||h.value1!==l||h.value2!==i||h.value3!==o)&&(h.setter||(h.setter=e),h.value1=l,h.value2=i,h.value3=o,this.renderer.setProgram(this.program),e.call(this.gl,h.location.webGLUniformLocation,l,i,o),this.pipeline.currentShader=this),this):this},setUniform4:function(e,s,l,i,o,u,h){var f=this.uniforms[s];return f?((h||f.value1!==l||f.value2!==i||f.value3!==o||f.value4!==u)&&(f.setter||(f.setter=e),f.value1=l,f.value2=i,f.value3=o,f.value4=u,this.renderer.setProgram(this.program),e.call(this.gl,f.location.webGLUniformLocation,l,i,o,u),this.pipeline.currentShader=this),this):this},setBoolean:function(e,s){return this.setUniform1(this.gl.uniform1i,e,Number(s))},set1f:function(e,s){return this.setUniform1(this.gl.uniform1f,e,s)},set2f:function(e,s,l){return this.setUniform2(this.gl.uniform2f,e,s,l)},set3f:function(e,s,l,i){return this.setUniform3(this.gl.uniform3f,e,s,l,i)},set4f:function(e,s,l,i,o){return this.setUniform4(this.gl.uniform4f,e,s,l,i,o)},set1fv:function(e,s){return this.setUniform1(this.gl.uniform1fv,e,s,!0)},set2fv:function(e,s){return this.setUniform1(this.gl.uniform2fv,e,s,!0)},set3fv:function(e,s){return this.setUniform1(this.gl.uniform3fv,e,s,!0)},set4fv:function(e,s){return this.setUniform1(this.gl.uniform4fv,e,s,!0)},set1iv:function(e,s){return this.setUniform1(this.gl.uniform1iv,e,s,!0)},set2iv:function(e,s){return this.setUniform1(this.gl.uniform2iv,e,s,!0)},set3iv:function(e,s){return this.setUniform1(this.gl.uniform3iv,e,s,!0)},set4iv:function(e,s){return this.setUniform1(this.gl.uniform4iv,e,s,!0)},set1i:function(e,s){return this.setUniform1(this.gl.uniform1i,e,s)},set2i:function(e,s,l){return this.setUniform2(this.gl.uniform2i,e,s,l)},set3i:function(e,s,l,i){return this.setUniform3(this.gl.uniform3i,e,s,l,i)},set4i:function(e,s,l,i,o){return this.setUniform4(this.gl.uniform4i,e,s,l,i,o)},setMatrix2fv:function(e,s,l){return this.setUniform2(this.gl.uniformMatrix2fv,e,s,l,!0)},setMatrix3fv:function(e,s,l){return this.setUniform2(this.gl.uniformMatrix3fv,e,s,l,!0)},setMatrix4fv:function(e,s,l){return this.setUniform2(this.gl.uniformMatrix4fv,e,s,l,!0)},createProgram:function(e,s){return e===void 0&&(e=this.vertSrc),s===void 0&&(s=this.fragSrc),this.program&&this.renderer.deleteProgram(this.program),this.vertSrc=e,this.fragSrc=s,this.program=this.renderer.createProgram(e,s),this.createUniforms(),this.rebind()},destroy:function(){var e=this.renderer;p(this.uniforms,function(s){e.deleteUniformLocation(s.location)}),this.uniforms=null,p(this.attributes,function(s){e.deleteAttribLocation(s.location)}),this.attributes=null,e.deleteProgram(this.program),this.pipeline=null,this.renderer=null,this.gl=null,this.program=null}});c.exports=n},14500:c=>{/** + */var d=t(83419),p=t(95428),l=t(95540),r=t(14500),n=new d({initialize:function(s,o,i,a,u){this.pipeline=s,this.name=o,this.renderer=s.renderer,this.gl=this.renderer.gl,this.fragSrc=a,this.vertSrc=i,this.program=this.renderer.createProgram(i,a),this.attributes,this.vertexComponentCount=0,this.vertexSize=0,this.uniforms={},this.createAttributes(u),this.createUniforms()},createAttributes:function(e){var s=0,o=0,i=[];this.vertexComponentCount=0;for(var a=0;a=0?(s.enableVertexAttribArray(C.webGLAttribLocation),s.vertexAttribPointer(C.webGLAttribLocation,v,m,S,i,g),f.enabled=!0,f.location=C):C.webGLAttribLocation!==-1&&s.disableVertexAttribArray(C.webGLAttribLocation)}else x?s.vertexAttribPointer(y.webGLAttribLocation,v,m,S,i,g):!x&&y!==-1&&y.webGLAttribLocation>-1&&(s.disableVertexAttribArray(y.webGLAttribLocation),f.location=-1)}return this},createUniforms:function(){var e=this.gl,s=this.program,o=this.uniforms,i,a,u,h=e.getProgramParameter(s.webGLProgram,e.ACTIVE_UNIFORMS);for(i=0;i0&&(a=a.substr(0,v),o.hasOwnProperty(a)||(u=this.renderer.createUniformLocation(s,a),u!==null&&(o[a]={name:a,location:u,setter:null,value1:null,value2:null,value3:null,value4:null})))}}return this},syncUniforms:function(){var e=this.gl;this.renderer.setProgram(this.program);for(var s in this.uniforms){var o=this.uniforms[s];o.setter&&o.setter.call(e,o.location.webGLUniformLocation,o.value1,o.value2,o.value3,o.value4)}},hasUniform:function(e){return this.uniforms.hasOwnProperty(e)},resetUniform:function(e){var s=this.uniforms[e];return s&&(s.value1=null,s.value2=null,s.value3=null,s.value4=null),this},setUniform1:function(e,s,o,i){var a=this.uniforms[s];return a?((i||a.value1!==o)&&(a.setter||(a.setter=e),a.value1=o,this.renderer.setProgram(this.program),e.call(this.gl,a.location.webGLUniformLocation,o),this.pipeline.currentShader=this),this):this},setUniform2:function(e,s,o,i,a){var u=this.uniforms[s];return u?((a||u.value1!==o||u.value2!==i)&&(u.setter||(u.setter=e),u.value1=o,u.value2=i,this.renderer.setProgram(this.program),e.call(this.gl,u.location.webGLUniformLocation,o,i),this.pipeline.currentShader=this),this):this},setUniform3:function(e,s,o,i,a,u){var h=this.uniforms[s];return h?((u||h.value1!==o||h.value2!==i||h.value3!==a)&&(h.setter||(h.setter=e),h.value1=o,h.value2=i,h.value3=a,this.renderer.setProgram(this.program),e.call(this.gl,h.location.webGLUniformLocation,o,i,a),this.pipeline.currentShader=this),this):this},setUniform4:function(e,s,o,i,a,u,h){var f=this.uniforms[s];return f?((h||f.value1!==o||f.value2!==i||f.value3!==a||f.value4!==u)&&(f.setter||(f.setter=e),f.value1=o,f.value2=i,f.value3=a,f.value4=u,this.renderer.setProgram(this.program),e.call(this.gl,f.location.webGLUniformLocation,o,i,a,u),this.pipeline.currentShader=this),this):this},setBoolean:function(e,s){return this.setUniform1(this.gl.uniform1i,e,Number(s))},set1f:function(e,s){return this.setUniform1(this.gl.uniform1f,e,s)},set2f:function(e,s,o){return this.setUniform2(this.gl.uniform2f,e,s,o)},set3f:function(e,s,o,i){return this.setUniform3(this.gl.uniform3f,e,s,o,i)},set4f:function(e,s,o,i,a){return this.setUniform4(this.gl.uniform4f,e,s,o,i,a)},set1fv:function(e,s){return this.setUniform1(this.gl.uniform1fv,e,s,!0)},set2fv:function(e,s){return this.setUniform1(this.gl.uniform2fv,e,s,!0)},set3fv:function(e,s){return this.setUniform1(this.gl.uniform3fv,e,s,!0)},set4fv:function(e,s){return this.setUniform1(this.gl.uniform4fv,e,s,!0)},set1iv:function(e,s){return this.setUniform1(this.gl.uniform1iv,e,s,!0)},set2iv:function(e,s){return this.setUniform1(this.gl.uniform2iv,e,s,!0)},set3iv:function(e,s){return this.setUniform1(this.gl.uniform3iv,e,s,!0)},set4iv:function(e,s){return this.setUniform1(this.gl.uniform4iv,e,s,!0)},set1i:function(e,s){return this.setUniform1(this.gl.uniform1i,e,s)},set2i:function(e,s,o){return this.setUniform2(this.gl.uniform2i,e,s,o)},set3i:function(e,s,o,i){return this.setUniform3(this.gl.uniform3i,e,s,o,i)},set4i:function(e,s,o,i,a){return this.setUniform4(this.gl.uniform4i,e,s,o,i,a)},setMatrix2fv:function(e,s,o){return this.setUniform2(this.gl.uniformMatrix2fv,e,s,o,!0)},setMatrix3fv:function(e,s,o){return this.setUniform2(this.gl.uniformMatrix3fv,e,s,o,!0)},setMatrix4fv:function(e,s,o){return this.setUniform2(this.gl.uniformMatrix4fv,e,s,o,!0)},createProgram:function(e,s){return e===void 0&&(e=this.vertSrc),s===void 0&&(s=this.fragSrc),this.program&&this.renderer.deleteProgram(this.program),this.vertSrc=e,this.fragSrc=s,this.program=this.renderer.createProgram(e,s),this.createUniforms(),this.rebind()},destroy:function(){var e=this.renderer;p(this.uniforms,function(s){e.deleteUniformLocation(s.location)}),this.uniforms=null,p(this.attributes,function(s){e.deleteAttribLocation(s.location)}),this.attributes=null,e.deleteProgram(this.program),this.pipeline=null,this.renderer=null,this.gl=null,this.program=null}});c.exports=n},14500:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4713,54 +4713,54 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(14500),p=t(79291),a={PipelineManager:t(7530),Pipelines:t(96615),RenderTarget:t(32302),Utils:t(70554),WebGLPipeline:t(29100),WebGLRenderer:t(74797),WebGLShader:t(38683),Wrappers:t(9503)};a=p(!1,a,d),c.exports=a},31302:(c,T,t)=>{/** + */var d=t(14500),p=t(79291),l={PipelineManager:t(7530),Pipelines:t(96615),RenderTarget:t(32302),Utils:t(70554),WebGLPipeline:t(29100),WebGLRenderer:t(74797),WebGLShader:t(38683),Wrappers:t(9503)};l=p(!1,l,d),c.exports=l},31302:(c,T,t)=>{/** * @author Richard Davey * @author Felipe Alfonso <@bitnenfer> * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(95540),a=t(78908),r=t(85191),n=t(14500),e=t(29100),s=new d({Extends:e,initialize:function(i){i.fragShader=p(i,"fragShader",a),i.vertShader=p(i,"vertShader",r),i.batchSize=p(i,"batchSize",1),i.vertices=p(i,"vertices",[-1,1,-1,-7,7,1]),i.attributes=p(i,"attributes",[{name:"inPosition",size:2,type:n.FLOAT}]),e.call(this,i)},boot:function(){e.prototype.boot.call(this),this.set1i("uMainSampler",0),this.set1i("uMaskSampler",1)},resize:function(l,i){e.prototype.resize.call(this,l,i),this.set2f("uResolution",l,i)},beginMask:function(l,i,o){this.renderer.beginBitmapMask(l,o)},endMask:function(l,i,o){var u=this.gl,h=this.renderer,f=l.bitmapMask;f&&u&&(h.drawBitmapMask(f,i,this),o&&this.set2f("uResolution",o.width,o.height),this.set1i("uInvertMaskAlpha",l.invertAlpha),u.drawArrays(this.topology,0,3),o&&this.set2f("uResolution",this.width,this.height),u.bindTexture(u.TEXTURE_2D,null))}});c.exports=s},92651:(c,T,t)=>{/** + */var d=t(83419),p=t(95540),l=t(78908),r=t(85191),n=t(14500),e=t(29100),s=new d({Extends:e,initialize:function(i){i.fragShader=p(i,"fragShader",l),i.vertShader=p(i,"vertShader",r),i.batchSize=p(i,"batchSize",1),i.vertices=p(i,"vertices",[-1,1,-1,-7,7,1]),i.attributes=p(i,"attributes",[{name:"inPosition",size:2,type:n.FLOAT}]),e.call(this,i)},boot:function(){e.prototype.boot.call(this),this.set1i("uMainSampler",0),this.set1i("uMaskSampler",1)},resize:function(o,i){e.prototype.resize.call(this,o,i),this.set2f("uResolution",o,i)},beginMask:function(o,i,a){this.renderer.beginBitmapMask(o,a)},endMask:function(o,i,a){var u=this.gl,h=this.renderer,f=o.bitmapMask;f&&u&&(h.drawBitmapMask(f,i,this),a&&this.set2f("uResolution",a.width,a.height),this.set1i("uInvertMaskAlpha",o.invertAlpha),u.drawArrays(this.topology,0,3),a&&this.set2f("uResolution",this.width,this.height),u.bindTexture(u.TEXTURE_2D,null))}});c.exports=s},92651:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(58918),a=t(14811),r=t(95540),n=t(43558),e=t(89350),s=t(70554),l=new d({Extends:n,initialize:function(o){o.shaders=[s.setGlowQuality(e.FXGlowFrag,o.game),e.FXShadowFrag,e.FXPixelateFrag,e.FXVignetteFrag,e.FXShineFrag,e.FXBlurLowFrag,e.FXBlurMedFrag,e.FXBlurHighFrag,e.FXGradientFrag,e.FXBloomFrag,e.ColorMatrixFrag,e.FXCircleFrag,e.FXBarrelFrag,e.FXDisplacementFrag,e.FXWipeFrag,e.FXBokehFrag],n.call(this,o);var u=this.game;this.glow=new p.Glow(u),this.shadow=new p.Shadow(u),this.pixelate=new p.Pixelate(u),this.vignette=new p.Vignette(u),this.shine=new p.Shine(u),this.gradient=new p.Gradient(u),this.circle=new p.Circle(u),this.barrel=new p.Barrel(u),this.wipe=new p.Wipe(u),this.bokeh=new p.Bokeh(u);var h=[];h[a.GLOW]=this.onGlow,h[a.SHADOW]=this.onShadow,h[a.PIXELATE]=this.onPixelate,h[a.VIGNETTE]=this.onVignette,h[a.SHINE]=this.onShine,h[a.BLUR]=this.onBlur,h[a.GRADIENT]=this.onGradient,h[a.BLOOM]=this.onBloom,h[a.COLOR_MATRIX]=this.onColorMatrix,h[a.CIRCLE]=this.onCircle,h[a.BARREL]=this.onBarrel,h[a.DISPLACEMENT]=this.onDisplacement,h[a.WIPE]=this.onWipe,h[a.BOKEH]=this.onBokeh,this.fxHandlers=h,this.source,this.target,this.swap},onDraw:function(i,o,u){this.source=i,this.target=o,this.swap=u;var h=i.width,f=i.height,v=this.tempSprite,m=this.fxHandlers;if(v&&v.preFX)for(var x=v.preFX.list,g=0;g{/** + */var d=t(83419),p=t(58918),l=t(14811),r=t(95540),n=t(43558),e=t(89350),s=t(70554),o=new d({Extends:n,initialize:function(a){a.shaders=[s.setGlowQuality(e.FXGlowFrag,a.game),e.FXShadowFrag,e.FXPixelateFrag,e.FXVignetteFrag,e.FXShineFrag,e.FXBlurLowFrag,e.FXBlurMedFrag,e.FXBlurHighFrag,e.FXGradientFrag,e.FXBloomFrag,e.ColorMatrixFrag,e.FXCircleFrag,e.FXBarrelFrag,e.FXDisplacementFrag,e.FXWipeFrag,e.FXBokehFrag],n.call(this,a);var u=this.game;this.glow=new p.Glow(u),this.shadow=new p.Shadow(u),this.pixelate=new p.Pixelate(u),this.vignette=new p.Vignette(u),this.shine=new p.Shine(u),this.gradient=new p.Gradient(u),this.circle=new p.Circle(u),this.barrel=new p.Barrel(u),this.wipe=new p.Wipe(u),this.bokeh=new p.Bokeh(u);var h=[];h[l.GLOW]=this.onGlow,h[l.SHADOW]=this.onShadow,h[l.PIXELATE]=this.onPixelate,h[l.VIGNETTE]=this.onVignette,h[l.SHINE]=this.onShine,h[l.BLUR]=this.onBlur,h[l.GRADIENT]=this.onGradient,h[l.BLOOM]=this.onBloom,h[l.COLOR_MATRIX]=this.onColorMatrix,h[l.CIRCLE]=this.onCircle,h[l.BARREL]=this.onBarrel,h[l.DISPLACEMENT]=this.onDisplacement,h[l.WIPE]=this.onWipe,h[l.BOKEH]=this.onBokeh,this.fxHandlers=h,this.source,this.target,this.swap},onDraw:function(i,a,u){this.source=i,this.target=a,this.swap=u;var h=i.width,f=i.height,v=this.tempSprite,m=this.fxHandlers;if(v&&v.preFX)for(var g=v.preFX.list,x=0;x{/** * @author Richard Davey * @author Felipe Alfonso <@bitnenfer> * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(95540),a=t(31063),r=t(57516),n=t(61340),e=t(26099),s=t(29100),l=new d({Extends:r,initialize:function(o){var u=p(o,"fragShader",a);o.fragShader=u.replace("%LIGHT_COUNT%",o.game.renderer.config.maxLights),r.call(this,o),this.inverseRotationMatrix=new Float32Array([1,0,0,0,1,0,0,0,1]),this.currentNormalMap,this.lightsActive=!0,this.tempVec2=new e,this._tempMatrix=new n,this._tempMatrix2=new n},boot:function(){s.prototype.boot.call(this)},onRender:function(i,o){var u=i.sys.lights;if(this.lightsActive=!1,!(!u||!u.active)){var h=u.getLights(o),f=h.length;this.lightsActive=!0;var v,m=this.renderer,x=m.height,g=o.matrix,y=this.tempVec2;for(this.set1i("uMainSampler",0),this.set1i("uNormSampler",1),this.set2f("uResolution",this.width/2,this.height/2),this.set4f("uCamera",o.x,o.y,o.rotation,o.zoom),this.set3f("uAmbientLightColor",u.ambientColor.r,u.ambientColor.g,u.ambientColor.b),this.set1i("uLightCount",f),v=0;v0&&this.flush();var o=this.inverseRotationMatrix;if(i){var u=-i,h=Math.cos(u),f=Math.sin(u);o[1]=f,o[3]=-f,o[0]=o[4]=h}else o[0]=o[4]=1,o[1]=o[3]=0;this.setMatrix3fv("uInverseRotationMatrix",!1,o),this.currentNormalMapRotation=i}},setTexture2D:function(i,o){var u=this.renderer;i===void 0&&(i=u.whiteTexture);var h=this.getNormalMap(o);this.isNewNormalMap(i,h)&&(this.flush(),this.createBatch(i),this.addTextureToBatch(h),this.currentNormalMap=h);var f=0;if(o&&o.parentContainer){var v=o.getWorldTransformMatrix(this._tempMatrix,this._tempMatrix2);f=v.rotationNormalized}else o&&(f=o.rotation);return this.setNormalMapRotation(f),0},setGameObject:function(i,o){o===void 0&&(o=i.frame);var u=o.glTexture,h=this.getNormalMap(i);if(this.isNewNormalMap(u,h)&&(this.flush(),this.createBatch(u),this.addTextureToBatch(h),this.currentNormalMap=h),i.parentContainer){var f=i.getWorldTransformMatrix(this._tempMatrix,this._tempMatrix2);this.setNormalMapRotation(f.rotationNormalized)}else this.setNormalMapRotation(i.rotation);return 0},isNewNormalMap:function(i,o){return this.currentTexture!==i||this.currentNormalMap!==o},getNormalMap:function(i){var o;if(i)i.displayTexture?o=i.displayTexture.dataSource[i.displayFrame.sourceIndex]:i.texture?o=i.texture.dataSource[i.frame.sourceIndex]:i.tileset&&(Array.isArray(i.tileset)?o=i.tileset[0].image.dataSource[0]:o=i.tileset.image.dataSource[0]);else return this.renderer.normalTexture;return o?o.glTexture:this.renderer.normalTexture},batchSprite:function(i,o,u){this.lightsActive&&r.prototype.batchSprite.call(this,i,o,u)},batchTexture:function(i,o,u,h,f,v,m,x,g,y,S,C,E,A,P,M,F,L,b,B,N,X,D,I,R,O,w,G,U,z,V,Y){this.lightsActive&&r.prototype.batchTexture.call(this,i,o,u,h,f,v,m,x,g,y,S,C,E,A,P,M,F,L,b,B,N,X,D,I,R,O,w,G,U,z,V,Y)},batchTextureFrame:function(i,o,u,h,f,v,m){this.lightsActive&&r.prototype.batchTextureFrame.call(this,i,o,u,h,f,v,m)}});c.exports=l},56527:(c,T,t)=>{/** + */var d=t(83419),p=t(95540),l=t(31063),r=t(57516),n=t(61340),e=t(26099),s=t(29100),o=new d({Extends:r,initialize:function(a){var u=p(a,"fragShader",l);a.fragShader=u.replace("%LIGHT_COUNT%",a.game.renderer.config.maxLights),r.call(this,a),this.inverseRotationMatrix=new Float32Array([1,0,0,0,1,0,0,0,1]),this.currentNormalMap,this.lightsActive=!0,this.tempVec2=new e,this._tempMatrix=new n,this._tempMatrix2=new n},boot:function(){s.prototype.boot.call(this)},onRender:function(i,a){var u=i.sys.lights;if(this.lightsActive=!1,!(!u||!u.active)){var h=u.getLights(a),f=h.length;this.lightsActive=!0;var v,m=this.renderer,g=m.height,x=a.matrix,y=this.tempVec2;for(this.set1i("uMainSampler",0),this.set1i("uNormSampler",1),this.set2f("uResolution",this.width/2,this.height/2),this.set4f("uCamera",a.x,a.y,a.rotation,a.zoom),this.set3f("uAmbientLightColor",u.ambientColor.r,u.ambientColor.g,u.ambientColor.b),this.set1i("uLightCount",f),v=0;v0&&this.flush();var a=this.inverseRotationMatrix;if(i){var u=-i,h=Math.cos(u),f=Math.sin(u);a[1]=f,a[3]=-f,a[0]=a[4]=h}else a[0]=a[4]=1,a[1]=a[3]=0;this.setMatrix3fv("uInverseRotationMatrix",!1,a),this.currentNormalMapRotation=i}},setTexture2D:function(i,a){var u=this.renderer;i===void 0&&(i=u.whiteTexture);var h=this.getNormalMap(a);this.isNewNormalMap(i,h)&&(this.flush(),this.createBatch(i),this.addTextureToBatch(h),this.currentNormalMap=h);var f=0;if(a&&a.parentContainer){var v=a.getWorldTransformMatrix(this._tempMatrix,this._tempMatrix2);f=v.rotationNormalized}else a&&(f=a.rotation);return this.currentBatch===null&&(this.createBatch(i),this.addTextureToBatch(h)),this.setNormalMapRotation(f),0},setGameObject:function(i,a){a===void 0&&(a=i.frame);var u=a.glTexture,h=this.getNormalMap(i);if(this.isNewNormalMap(u,h)&&(this.flush(),this.createBatch(u),this.addTextureToBatch(h),this.currentNormalMap=h),i.parentContainer){var f=i.getWorldTransformMatrix(this._tempMatrix,this._tempMatrix2);this.setNormalMapRotation(f.rotationNormalized)}else this.setNormalMapRotation(i.rotation);return this.currentBatch===null&&(this.createBatch(u),this.addTextureToBatch(h)),0},isNewNormalMap:function(i,a){return this.currentTexture!==i||this.currentNormalMap!==a},getNormalMap:function(i){var a;if(i)i.displayTexture?a=i.displayTexture.dataSource[i.displayFrame.sourceIndex]:i.texture?a=i.texture.dataSource[i.frame.sourceIndex]:i.tileset&&(Array.isArray(i.tileset)?a=i.tileset[0].image.dataSource[0]:a=i.tileset.image.dataSource[0]);else return this.renderer.normalTexture;return a?a.glTexture:this.renderer.normalTexture},batchSprite:function(i,a,u){this.lightsActive&&r.prototype.batchSprite.call(this,i,a,u)},batchTexture:function(i,a,u,h,f,v,m,g,x,y,S,C,E,M,P,A,R,F,D,w,G,N,b,B,O,L,I,U,X,z,V,Y){this.lightsActive&&r.prototype.batchTexture.call(this,i,a,u,h,f,v,m,g,x,y,S,C,E,M,P,A,R,F,D,w,G,N,b,B,O,L,I,U,X,z,V,Y)},batchTextureFrame:function(i,a,u,h,f,v,m){this.lightsActive&&r.prototype.batchTextureFrame.call(this,i,a,u,h,f,v,m)}});c.exports=o},56527:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(95540),a=t(57516),r=t(45561),n=t(60722),e=t(14500),s=t(29100),l=new d({Extends:a,initialize:function(o){o.fragShader=p(o,"fragShader",r),o.vertShader=p(o,"vertShader",n),o.attributes=p(o,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2},{name:"inTexId"},{name:"inTintEffect"},{name:"inTint",size:4,type:e.UNSIGNED_BYTE,normalized:!0}]),o.forceZero=!0,o.resizeUniform="uResolution",a.call(this,o)},boot:function(){s.prototype.boot.call(this);var i=this.renderer;this.set1i("uMainSampler",0),this.set2f("uResolution",i.width,i.height),this.set1i("uRoundPixels",i.config.roundPixels)}});c.exports=l},57516:(c,T,t)=>{/** + */var d=t(83419),p=t(95540),l=t(57516),r=t(45561),n=t(60722),e=t(14500),s=t(29100),o=new d({Extends:l,initialize:function(a){a.fragShader=p(a,"fragShader",r),a.vertShader=p(a,"vertShader",n),a.attributes=p(a,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2},{name:"inTexId"},{name:"inTintEffect"},{name:"inTint",size:4,type:e.UNSIGNED_BYTE,normalized:!0}]),a.forceZero=!0,a.resizeUniform="uResolution",l.call(this,a)},boot:function(){s.prototype.boot.call(this);var i=this.renderer;this.set1i("uMainSampler",0),this.set2f("uResolution",i.width,i.height)}});c.exports=o},57516:(c,T,t)=>{/** * @author Richard Davey * @author Felipe Alfonso <@bitnenfer> * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(94811),a=t(95540),r=t(98840),n=t(44667),e=t(61340),s=t(70554),l=t(14500),i=t(29100),o=new d({Extends:i,initialize:function(h){var f=h.game.renderer,v=a(h,"fragShader",r);h.fragShader=s.parseFragmentShaderMaxTextures(v,f.maxTextures),h.vertShader=a(h,"vertShader",n),h.attributes=a(h,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2},{name:"inTexId"},{name:"inTintEffect"},{name:"inTint",size:4,type:l.UNSIGNED_BYTE,normalized:!0}]),h.resizeUniform="uResolution",i.call(this,h),this._tempMatrix1=new e,this._tempMatrix2=new e,this._tempMatrix3=new e,this.calcMatrix=new e,this.tempTriangle=[{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0}],this.strokeTint={TL:0,TR:0,BL:0,BR:0},this.fillTint={TL:0,TR:0,BL:0,BR:0},this.currentFrame={u0:0,v0:0,u1:1,v1:1},this.firstQuad=[0,0,0,0,0],this.prevQuad=[0,0,0,0,0],this.polygonCache=[]},boot:function(){i.prototype.boot.call(this);var u=this.renderer;this.set1iv("uMainSampler",u.textureIndexes),this.set2f("uResolution",u.width,u.height),this.set1i("uRoundPixels",u.config.roundPixels)},batchSprite:function(u,h,f){this.manager.set(this,u);var v=this._tempMatrix1,m=this._tempMatrix2,x=this._tempMatrix3,g=u.frame,y=g.glTexture,S=g.u0,C=g.v0,E=g.u1,A=g.v1,P=g.x,M=g.y,F=g.cutWidth,L=g.cutHeight,b=g.customPivot,B=u.displayOriginX,N=u.displayOriginY,X=-B+P,D=-N+M;if(u.isCropped){var I=u._crop;(I.flipX!==u.flipX||I.flipY!==u.flipY)&&g.updateCropUVs(I,u.flipX,u.flipY),S=I.u0,C=I.v0,E=I.u1,A=I.v1,F=I.width,L=I.height,P=I.x,M=I.y,X=-B+P,D=-N+M}var R=1,O=1;u.flipX&&(b||(X+=-g.realWidth+B*2),R=-1),u.flipY&&(b||(D+=-g.realHeight+N*2),O=-1);var w=u.x,G=u.y;m.applyITRS(w,G,u.rotation,u.scaleX*R,u.scaleY*O),v.copyFrom(h.matrix),f?(v.multiplyWithOffset(f,-h.scrollX*u.scrollFactorX,-h.scrollY*u.scrollFactorY),m.e=w,m.f=G):(m.e-=h.scrollX*u.scrollFactorX,m.f-=h.scrollY*u.scrollFactorY),v.multiply(m,x);var U=x.setQuad(X,D,X+F,D+L),z=s.getTintAppendFloatAlpha,V=h.alpha,Y=z(u.tintTopLeft,V*u._alphaTL),W=z(u.tintTopRight,V*u._alphaTR),H=z(u.tintBottomLeft,V*u._alphaBL),K=z(u.tintBottomRight,V*u._alphaBR);this.shouldFlush(6)&&this.flush();var Q=this.setGameObject(u,g);this.manager.preBatch(u),this.currentShader.set1i("uRoundPixels",h.roundPixels),this.batchQuad(u,U[0],U[1],U[2],U[3],U[4],U[5],U[6],U[7],S,C,E,A,Y,W,H,K,u.tintFill,y,Q),this.manager.postBatch(u)},batchTexture:function(u,h,f,v,m,x,g,y,S,C,E,A,P,M,F,L,b,B,N,X,D,I,R,O,w,G,U,z,V,Y,W,H,K){K===void 0&&(K=!1),this.manager.set(this,u);var Q=this._tempMatrix1,Z=this._tempMatrix2,_=this._tempMatrix3,rt=B/f+U,ot=N/v+z,at=(B+X)/f+U,j=(N+D)/v+z,st=g,it=y,ut=-L,ft=-b;if(u.isCropped){var mt=u._crop,ct=mt.width,vt=mt.height;st=ct,it=vt,g=ct,y=vt,B=mt.x,N=mt.y;var dt=B,gt=N;A&&(dt=X-mt.x-ct),P&&(gt=D-mt.y-vt),rt=dt/f+U,ot=gt/v+z,at=(dt+ct)/f+U,j=(gt+vt)/v+z,ut=-L+B,ft=-b+N}P=P^(!W&&h.isRenderTexture?1:0),A&&(st*=-1,ut+=g),P&&(it*=-1,ft+=y),Z.applyITRS(m,x,E,S,C),Q.copyFrom(V.matrix),Y?(Q.multiplyWithOffset(Y,-V.scrollX*M,-V.scrollY*F),Z.e=m,Z.f=x):(Z.e-=V.scrollX*M,Z.f-=V.scrollY*F),Q.multiply(Z,_);var pt=_.setQuad(ut,ft,ut+st,ft+it);H==null&&(H=this.setTexture2D(h)),u&&!K&&this.manager.preBatch(u),this.currentShader.set1i("uRoundPixels",V.roundPixels),this.batchQuad(u,pt[0],pt[1],pt[2],pt[3],pt[4],pt[5],pt[6],pt[7],rt,ot,at,j,I,R,O,w,G,h,H),u&&!K&&this.manager.postBatch(u)},batchTextureFrame:function(u,h,f,v,m,x,g){this.manager.set(this);var y=this._tempMatrix1.copyFrom(x),S=this._tempMatrix2;g?y.multiply(g,S):S=y;var C=S.setQuad(h,f,h+u.width,f+u.height),E=this.setTexture2D(u.source.glTexture);v=s.getTintAppendFloatAlpha(v,m),this.batchQuad(null,C[0],C[1],C[2],C[3],C[4],C[5],C[6],C[7],u.u0,u.v0,u.u1,u.v1,v,v,v,v,0,u.glTexture,E)},batchFillRect:function(u,h,f,v,m,x){this.renderer.pipelines.set(this);var g=this.calcMatrix;x&&x.multiply(m,g);var y=g.setQuad(u,h,u+f,h+v),S=this.fillTint;this.batchQuad(null,y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],0,0,1,1,S.TL,S.TR,S.BL,S.BR,2)},batchFillTriangle:function(u,h,f,v,m,x,g,y){this.renderer.pipelines.set(this);var S=this.calcMatrix;y&&y.multiply(g,S);var C=S.getX(u,h),E=S.getY(u,h),A=S.getX(f,v),P=S.getY(f,v),M=S.getX(m,x),F=S.getY(m,x),L=this.fillTint;this.currentShader.set1i("uRoundPixels",!1),this.batchTri(null,C,E,A,P,M,F,0,0,1,1,L.TL,L.TR,L.BL,2)},batchStrokeTriangle:function(u,h,f,v,m,x,g,y,S){var C=this.tempTriangle;C[0].x=u,C[0].y=h,C[0].width=g,C[1].x=f,C[1].y=v,C[1].width=g,C[2].x=m,C[2].y=x,C[2].width=g,C[3].x=u,C[3].y=h,C[3].width=g,this.batchStrokePath(C,g,!1,y,S)},batchFillPath:function(u,h,f){this.renderer.pipelines.set(this);var v=this.calcMatrix;f&&f.multiply(h,v);for(var m=u.length,x=this.polygonCache,g,y,S=this.fillTint.TL,C=this.fillTint.TR,E=this.fillTint.BL,A=0;A0&&st[4]?this.batchQuad(null,Q,Z,Y,W,st[0],st[1],st[2],st[3],0,0,1,1,rt,ot,at,j,2):(it[0]=Q,it[1]=Z,it[2]=Y,it[3]=W,it[4]=1),S&&it[4]?this.batchQuad(null,z,V,H,K,it[0],it[1],it[2],it[3],0,0,1,1,rt,ot,at,j,2):(st[0]=z,st[1]=V,st[2]=H,st[3]=K,st[4]=1)}}},destroy:function(){return this._tempMatrix1.destroy(),this._tempMatrix2.destroy(),this._tempMatrix3.destroy(),this._tempMatrix1=null,this._tempMatrix1=null,this._tempMatrix1=null,i.prototype.destroy.call(this),this}});c.exports=o},43439:(c,T,t)=>{/** + */var d=t(83419),p=t(94811),l=t(95540),r=t(98840),n=t(44667),e=t(61340),s=t(70554),o=t(14500),i=t(29100),a=new d({Extends:i,initialize:function(h){var f=h.game.renderer,v=l(h,"fragShader",r);h.fragShader=s.parseFragmentShaderMaxTextures(v,f.maxTextures),h.vertShader=l(h,"vertShader",n),h.attributes=l(h,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2},{name:"inTexId"},{name:"inTintEffect"},{name:"inTint",size:4,type:o.UNSIGNED_BYTE,normalized:!0}]),h.resizeUniform="uResolution",i.call(this,h),this._tempMatrix1=new e,this._tempMatrix2=new e,this._tempMatrix3=new e,this.calcMatrix=new e,this.tempTriangle=[{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0}],this.strokeTint={TL:0,TR:0,BL:0,BR:0},this.fillTint={TL:0,TR:0,BL:0,BR:0},this.currentFrame={u0:0,v0:0,u1:1,v1:1},this.firstQuad=[0,0,0,0,0],this.prevQuad=[0,0,0,0,0],this.polygonCache=[]},boot:function(){i.prototype.boot.call(this);var u=this.renderer;this.set1iv("uMainSampler",u.textureIndexes),this.set2f("uResolution",u.width,u.height)},batchSprite:function(u,h,f){this.manager.set(this,u);var v=this._tempMatrix1,m=this._tempMatrix2,g=this._tempMatrix3,x=u.frame,y=x.glTexture,S=x.u0,C=x.v0,E=x.u1,M=x.v1,P=x.x,A=x.y,R=x.cutWidth,F=x.cutHeight,D=x.customPivot,w=u.displayOriginX,G=u.displayOriginY,N=-w+P,b=-G+A;if(u.isCropped){var B=u._crop;(B.flipX!==u.flipX||B.flipY!==u.flipY)&&x.updateCropUVs(B,u.flipX,u.flipY),S=B.u0,C=B.v0,E=B.u1,M=B.v1,R=B.width,F=B.height,P=B.x,A=B.y,N=-w+P,b=-G+A}var O=1,L=1;u.flipX&&(D||(N+=-x.realWidth+w*2),O=-1),u.flipY&&(D||(b+=-x.realHeight+G*2),L=-1);var I=u.x,U=u.y;h.roundPixels&&(I=Math.floor(I),U=Math.floor(U)),m.applyITRS(I,U,u.rotation,u.scaleX*O,u.scaleY*L),v.copyFrom(h.matrix),f?(v.multiplyWithOffset(f,-h.scrollX*u.scrollFactorX,-h.scrollY*u.scrollFactorY),m.e=I,m.f=U):(m.e-=h.scrollX*u.scrollFactorX,m.f-=h.scrollY*u.scrollFactorY),v.multiply(m,g);var X=g.setQuad(N,b,N+R,b+F,h.roundPixels),z=s.getTintAppendFloatAlpha,V=h.alpha,Y=z(u.tintTopLeft,V*u._alphaTL),W=z(u.tintTopRight,V*u._alphaTR),H=z(u.tintBottomLeft,V*u._alphaBL),K=z(u.tintBottomRight,V*u._alphaBR);this.shouldFlush(6)&&this.flush();var j=this.setGameObject(u,x);this.manager.preBatch(u),this.batchQuad(u,X[0],X[1],X[2],X[3],X[4],X[5],X[6],X[7],S,C,E,M,Y,W,H,K,u.tintFill,y,j),this.manager.postBatch(u)},batchTexture:function(u,h,f,v,m,g,x,y,S,C,E,M,P,A,R,F,D,w,G,N,b,B,O,L,I,U,X,z,V,Y,W,H,K){K===void 0&&(K=!1),this.manager.set(this,u);var j=this._tempMatrix1,Z=this._tempMatrix2,_=this._tempMatrix3,rt=w/f+X,at=G/v+z,ot=(w+N)/f+X,Q=(G+b)/v+z,it=x,st=y,ut=-F,ft=-D;if(u.isCropped){var mt=u._crop,pt=mt.width,xt=mt.height;it=pt,st=xt,x=pt,y=xt,w=mt.x,G=mt.y;var vt=w,yt=G;M&&(vt=N-mt.x-pt),P&&(yt=b-mt.y-xt),rt=vt/f+X,at=yt/v+z,ot=(vt+pt)/f+X,Q=(yt+xt)/v+z,ut=-F+w,ft=-D+G}P=P^(!W&&h.isRenderTexture?1:0),M&&(it*=-1,ut+=x),P&&(st*=-1,ft+=y),V.roundPixels&&(m=Math.floor(m),g=Math.floor(g)),Z.applyITRS(m,g,E,S,C),j.copyFrom(V.matrix),Y?(j.multiplyWithOffset(Y,-V.scrollX*A,-V.scrollY*R),Z.e=m,Z.f=g):(Z.e-=V.scrollX*A,Z.f-=V.scrollY*R),j.multiply(Z,_);var dt=_.setQuad(ut,ft,ut+it,ft+st,V.roundPixels);H==null&&(H=this.setTexture2D(h)),u&&!K&&this.manager.preBatch(u),this.batchQuad(u,dt[0],dt[1],dt[2],dt[3],dt[4],dt[5],dt[6],dt[7],rt,at,ot,Q,B,O,L,I,U,h,H),u&&!K&&this.manager.postBatch(u)},batchTextureFrame:function(u,h,f,v,m,g,x){this.manager.set(this);var y=this._tempMatrix1.copyFrom(g),S=this._tempMatrix2;x?y.multiply(x,S):S=y;var C=S.setQuad(h,f,h+u.width,f+u.height),E=this.setTexture2D(u.source.glTexture);v=s.getTintAppendFloatAlpha(v,m),this.batchQuad(null,C[0],C[1],C[2],C[3],C[4],C[5],C[6],C[7],u.u0,u.v0,u.u1,u.v1,v,v,v,v,0,u.glTexture,E)},batchFillRect:function(u,h,f,v,m,g){this.renderer.pipelines.set(this);var x=this.calcMatrix;g&&g.multiply(m,x);var y=x.setQuad(u,h,u+f,h+v),S=this.fillTint;this.batchQuad(null,y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],0,0,1,1,S.TL,S.TR,S.BL,S.BR,2)},batchFillTriangle:function(u,h,f,v,m,g,x,y){this.renderer.pipelines.set(this);var S=this.calcMatrix;y&&y.multiply(x,S);var C=S.getX(u,h),E=S.getY(u,h),M=S.getX(f,v),P=S.getY(f,v),A=S.getX(m,g),R=S.getY(m,g),F=this.fillTint;this.batchTri(null,C,E,M,P,A,R,0,0,1,1,F.TL,F.TR,F.BL,2)},batchStrokeTriangle:function(u,h,f,v,m,g,x,y,S){var C=this.tempTriangle;C[0].x=u,C[0].y=h,C[0].width=x,C[1].x=f,C[1].y=v,C[1].width=x,C[2].x=m,C[2].y=g,C[2].width=x,C[3].x=u,C[3].y=h,C[3].width=x,this.batchStrokePath(C,x,!1,y,S)},batchFillPath:function(u,h,f){this.renderer.pipelines.set(this);var v=this.calcMatrix;f&&f.multiply(h,v);for(var m=u.length,g=this.polygonCache,x,y,S=this.fillTint.TL,C=this.fillTint.TR,E=this.fillTint.BL,M=0;M0&&it[4]?this.batchQuad(null,j,Z,Y,W,it[0],it[1],it[2],it[3],0,0,1,1,rt,at,ot,Q,2):(st[0]=j,st[1]=Z,st[2]=Y,st[3]=W,st[4]=1),S&&st[4]?this.batchQuad(null,z,V,H,K,st[0],st[1],st[2],st[3],0,0,1,1,rt,at,ot,Q,2):(it[0]=z,it[1]=V,it[2]=H,it[3]=K,it[4]=1)}}},destroy:function(){return this._tempMatrix1.destroy(),this._tempMatrix2.destroy(),this._tempMatrix3.destroy(),this._tempMatrix1=null,this._tempMatrix1=null,this._tempMatrix1=null,i.prototype.destroy.call(this),this}});c.exports=a},43439:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(95540),a=t(4127),r=t(89924),n=t(29100),e=new d({Extends:n,initialize:function(l){l.vertShader=p(l,"vertShader",r),l.fragShader=p(l,"fragShader",a),l.attributes=p(l,"attributes",[{name:"inPosition",size:2},{name:"inLightPosition",size:2},{name:"inLightRadius"},{name:"inLightAttenuation"},{name:"inLightColor",size:4}]),n.call(this,l)},onRender:function(s,l){this.set2f("uResolution",this.width,this.height),this.set1f("uCameraZoom",l.zoom)},batchPointLight:function(s,l,i,o,u,h,f,v,m,x,g,y){var S=s.color,C=s.intensity,E=s.radius,A=s.attenuation,P=S.r*C,M=S.g*C,F=S.b*C,L=l.alpha*s.alpha;this.shouldFlush(6)&&this.flush(),this.currentBatch||this.setTexture2D(),this.batchLightVert(i,o,g,y,E,A,P,M,F,L),this.batchLightVert(u,h,g,y,E,A,P,M,F,L),this.batchLightVert(f,v,g,y,E,A,P,M,F,L),this.batchLightVert(i,o,g,y,E,A,P,M,F,L),this.batchLightVert(f,v,g,y,E,A,P,M,F,L),this.batchLightVert(m,x,g,y,E,A,P,M,F,L),this.currentBatch.count=this.vertexCount-this.currentBatch.start},batchLightVert:function(s,l,i,o,u,h,f,v,m,x){var g=this.vertexViewF32,y=this.vertexCount*this.currentShader.vertexComponentCount-1;g[++y]=s,g[++y]=l,g[++y]=i,g[++y]=o,g[++y]=u,g[++y]=h,g[++y]=f,g[++y]=v,g[++y]=m,g[++y]=x,this.vertexCount++}});c.exports=e},84057:(c,T,t)=>{/** + */var d=t(83419),p=t(95540),l=t(4127),r=t(89924),n=t(29100),e=new d({Extends:n,initialize:function(o){o.vertShader=p(o,"vertShader",r),o.fragShader=p(o,"fragShader",l),o.attributes=p(o,"attributes",[{name:"inPosition",size:2},{name:"inLightPosition",size:2},{name:"inLightRadius"},{name:"inLightAttenuation"},{name:"inLightColor",size:4}]),n.call(this,o)},onRender:function(s,o){this.set2f("uResolution",this.width,this.height),this.set1f("uCameraZoom",o.zoom)},batchPointLight:function(s,o,i,a,u,h,f,v,m,g,x,y){var S=s.color,C=s.intensity,E=s.radius,M=s.attenuation,P=S.r*C,A=S.g*C,R=S.b*C,F=o.alpha*s.alpha;this.shouldFlush(6)&&this.flush(),this.currentBatch||this.setTexture2D(),this.batchLightVert(i,a,x,y,E,M,P,A,R,F),this.batchLightVert(u,h,x,y,E,M,P,A,R,F),this.batchLightVert(f,v,x,y,E,M,P,A,R,F),this.batchLightVert(i,a,x,y,E,M,P,A,R,F),this.batchLightVert(f,v,x,y,E,M,P,A,R,F),this.batchLightVert(m,g,x,y,E,M,P,A,R,F),this.currentBatch.count=this.vertexCount-this.currentBatch.start},batchLightVert:function(s,o,i,a,u,h,f,v,m,g){var x=this.vertexViewF32,y=this.vertexCount*this.currentShader.vertexComponentCount-1;x[++y]=s,x[++y]=o,x[++y]=i,x[++y]=a,x[++y]=u,x[++y]=h,x[++y]=f,x[++y]=v,x[++y]=m,x[++y]=g,this.vertexCount++}});c.exports=e},84057:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(89422),a=t(95540),r=t(27681),n=t(49627),e=t(29100),s=new d({Extends:e,initialize:function(i){i.renderTarget=a(i,"renderTarget",1),i.fragShader=a(i,"fragShader",r),i.vertShader=a(i,"vertShader",n),i.attributes=a(i,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2}]),i.batchSize=1,i.vertices=[-1,-1,0,0,-1,1,0,1,1,1,1,1,-1,-1,0,0,1,1,1,1,1,-1,1,0],e.call(this,i),this.isPostFX=!0,this.gameObject,this.controller,this.colorMatrix=new p,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2,this.renderer.isBooted&&(this.manager=this.renderer.pipelines)},bootFX:function(){e.prototype.boot.call(this);var l=this.manager.UTILITY_PIPELINE;this.fullFrame1=l.fullFrame1,this.fullFrame2=l.fullFrame2,this.halfFrame1=l.halfFrame1,this.halfFrame2=l.halfFrame2;var i=this.renderer;this.set1i("uMainSampler",0),this.set2f("uResolution",i.width,i.height),this.set1i("uRoundPixels",i.config.roundPixels);for(var o=this.renderTargets,u=0;u{/** + */var d=t(83419),p=t(89422),l=t(95540),r=t(27681),n=t(49627),e=t(29100),s=new d({Extends:e,initialize:function(i){i.renderTarget=l(i,"renderTarget",1),i.fragShader=l(i,"fragShader",r),i.vertShader=l(i,"vertShader",n),i.attributes=l(i,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2}]),i.batchSize=1,i.vertices=[-1,-1,0,0,-1,1,0,1,1,1,1,1,-1,-1,0,0,1,1,1,1,1,-1,1,0],e.call(this,i),this.isPostFX=!0,this.gameObject,this.controller,this.colorMatrix=new p,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2,this.renderer.isBooted&&(this.manager=this.renderer.pipelines)},bootFX:function(){e.prototype.boot.call(this);var o=this.manager.UTILITY_PIPELINE;this.fullFrame1=o.fullFrame1,this.fullFrame2=o.fullFrame2,this.halfFrame1=o.halfFrame1,this.halfFrame2=o.halfFrame2;var i=this.renderer;this.set1i("uMainSampler",0),this.set2f("uResolution",i.width,i.height);for(var a=this.renderTargets,u=0;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(10312),p=t(67502),a=t(83419),r=t(96293),n=t(95540),e=t(57516),s=t(27681),l=t(87841),i=t(32302),o=t(45561),u=t(60722),h=t(29100),f=new a({Extends:e,initialize:function(m){var x=n(m,"fragShader",s),g=n(m,"vertShader",u),y=n(m,"drawShader",s),S=[{name:"DrawSprite",fragShader:o,vertShader:u},{name:"CopySprite",fragShader:x,vertShader:g},{name:"DrawGame",fragShader:y,vertShader:u},{name:"ColorMatrix",fragShader:r}],C=n(m,"shaders",[]);m.shaders=S.concat(C),m.vertShader||(m.vertShader=g),m.batchSize=1,e.call(this,m),this.isPreFX=!0,this.customMainSampler=null,this.drawSpriteShader,this.copyShader,this.gameShader,this.colorMatrixShader,this.quadVertexData,this.quadVertexBuffer,this.quadVertexViewF32,this.spriteBounds=new l,this.targetBounds=new l,this.fsTarget,this.tempSprite,this.renderer.isBooted&&(this.manager=this.renderer.pipelines,this.boot())},boot:function(){h.prototype.boot.call(this);var v=this.shaders,m=this.renderer;this.drawSpriteShader=v[0],this.copyShader=v[1],this.gameShader=v[2],this.colorMatrixShader=v[3],this.fsTarget=new i(m,m.width,m.height,1,0,!0,!0),this.renderTargets=this.manager.renderTargets.concat(this.fsTarget);var x=new ArrayBuffer(168);this.quadVertexData=x,this.quadVertexViewF32=new Float32Array(x),this.quadVertexBuffer=m.createVertexBuffer(x,this.gl.STATIC_DRAW),this.onResize(m.width,m.height),this.currentShader=this.copyShader,this.set2f("uResolution",m.width,m.height),this.set1i("uRoundPixels",m.config.roundPixels)},onResize:function(v,m){var x=this.quadVertexViewF32;x[1]=m,x[22]=m,x[14]=v,x[28]=v,x[35]=v,x[36]=m},batchQuad:function(v,m,x,g,y,S,C,E,A,P,M,F,L,b,B,N,X,D,I){var R=Math.min(m,g,S,E),O=Math.min(x,y,C,A),w=Math.max(m,g,S,E),G=Math.max(x,y,C,A),U=w-R,z=G-O,V=this.spriteBounds.setTo(R,O,U,z),Y=v?v.preFX.padding:0,W=U+Y*2,H=z+Y*2,K=Math.abs(Math.max(W,H)),Q=this.manager.getRenderTarget(K),Z=this.targetBounds.setTo(0,0,Q.width,Q.height);p(Z,V.centerX,V.centerY),this.tempSprite=v;var _=this.gl,rt=this.renderer;rt.clearStencilMask(),this.setShader(this.drawSpriteShader),this.set1i("uMainSampler",0),this.set2f("uResolution",rt.width,rt.height),this.set1i("uRoundPixels",rt.config.roundPixels),this.flipProjectionMatrix(!0),v&&(this.onDrawSprite(v,Q),v.preFX.onFX(this));var ot=this.fsTarget;return this.flush(),_.viewport(0,0,rt.width,rt.height),_.bindFramebuffer(_.FRAMEBUFFER,ot.framebuffer.webGLFramebuffer),_.framebufferTexture2D(_.FRAMEBUFFER,_.COLOR_ATTACHMENT0,_.TEXTURE_2D,ot.texture.webGLTexture,0),_.clearColor(0,0,0,0),_.clear(_.COLOR_BUFFER_BIT),this.setTexture2D(I),this.batchVert(m,x,P,M,0,D,b),this.batchVert(g,y,P,L,0,D,N),this.batchVert(S,C,F,L,0,D,X),this.batchVert(m,x,P,M,0,D,b),this.batchVert(S,C,F,L,0,D,X),this.batchVert(E,A,F,M,0,D,B),this.flush(),this.flipProjectionMatrix(!1),_.activeTexture(_.TEXTURE0),_.bindTexture(_.TEXTURE_2D,Q.texture.webGLTexture),_.copyTexSubImage2D(_.TEXTURE_2D,0,0,0,Z.x,Z.y,Z.width,Z.height),_.bindFramebuffer(_.FRAMEBUFFER,null),_.bindTexture(_.TEXTURE_2D,null),this.onBatch(v),this.currentShader=this.copyShader,this.onDraw(Q,this.manager.getSwapRenderTarget(),this.manager.getAltSwapRenderTarget()),!0},onDrawSprite:function(){},onCopySprite:function(){},copySprite:function(v,m,x,g,y,S,C){x===void 0&&(x=!0),g===void 0&&(g=!0),y===void 0&&(y=!1),C===void 0&&(C=this.copyShader);var E=this.gl,A=this.tempSprite;S&&(C=this.colorMatrixShader),this.currentShader=C;var P=this.setVertexBuffer(this.quadVertexBuffer);C.bind(P,!1);var M=this.renderer;if(this.set1i("uMainSampler",0),this.set2f("uResolution",M.width,M.height),this.set1i("uRoundPixels",M.config.roundPixels),A.preFX.onFXCopy(this),this.onCopySprite(v,m,A),S&&(this.set1fv("uColorMatrix",S.getData()),this.set1f("uAlpha",S.alpha)),E.activeTexture(E.TEXTURE0),E.bindTexture(E.TEXTURE_2D,v.texture.webGLTexture),v.height>m.height)E.viewport(0,0,v.width,v.height),this.setTargetUVs(v,m);else{var F=m.height-v.height;E.viewport(0,F,v.width,v.height),this.resetUVs()}if(E.bindFramebuffer(E.FRAMEBUFFER,m.framebuffer.webGLFramebuffer),E.framebufferTexture2D(E.FRAMEBUFFER,E.COLOR_ATTACHMENT0,E.TEXTURE_2D,m.texture.webGLTexture,0),x&&(E.clearColor(0,0,0,+!g),E.clear(E.COLOR_BUFFER_BIT)),y){var L=this.renderer.currentBlendMode;this.renderer.setBlendMode(d.ERASE)}E.bufferData(E.ARRAY_BUFFER,this.quadVertexData,E.STATIC_DRAW),E.drawArrays(E.TRIANGLES,0,6),y&&this.renderer.setBlendMode(L),E.bindFramebuffer(E.FRAMEBUFFER,null)},copy:function(v,m){var x=this.gl;this.set1i("uMainSampler",0),x.activeTexture(x.TEXTURE0),x.bindTexture(x.TEXTURE_2D,v.texture.webGLTexture),x.viewport(0,0,v.width,v.height),this.setUVs(0,0,0,1,1,1,1,0),x.bindFramebuffer(x.FRAMEBUFFER,m.framebuffer.webGLFramebuffer),x.framebufferTexture2D(x.FRAMEBUFFER,x.COLOR_ATTACHMENT0,x.TEXTURE_2D,m.texture.webGLTexture,0),x.clearColor(0,0,0,0),x.clear(x.COLOR_BUFFER_BIT),x.bufferData(x.ARRAY_BUFFER,this.quadVertexData,x.STATIC_DRAW),x.drawArrays(x.TRIANGLES,0,6),x.bindFramebuffer(x.FRAMEBUFFER,null)},blendFrames:function(v,m,x,g,y){this.manager.blendFrames(v,m,x,g,y)},blendFramesAdditive:function(v,m,x,g,y){this.manager.blendFramesAdditive(v,m,x,g,y)},drawToGame:function(v){this.currentShader=null,this.setShader(this.copyShader),this.bindAndDraw(v)},copyToGame:function(v){this.currentShader=null,this.setShader(this.gameShader),this.bindAndDraw(v)},bindAndDraw:function(v){var m=this.gl,x=this.renderer;this.set1i("uMainSampler",0),this.customMainSampler?this.setTexture2D(this.customMainSampler):this.setTexture2D(v.texture);var g=this._tempMatrix1.loadIdentity(),y=this.targetBounds.x,S=this.targetBounds.y,C=y+v.width,E=S+v.height,A=g.getX(y,S),P=g.getX(y,E),M=g.getX(C,E),F=g.getX(C,S),L=g.getY(y,S),b=g.getY(y,E),B=g.getY(C,E),N=g.getY(C,S),X=16777215;this.batchVert(A,L,0,0,0,0,X),this.batchVert(P,b,0,1,0,0,X),this.batchVert(M,B,1,1,0,0,X),this.batchVert(A,L,0,0,0,0,X),this.batchVert(M,B,1,1,0,0,X),this.batchVert(F,N,1,0,0,0,X),x.restoreFramebuffer(!1,!0),x.currentFramebuffer||m.viewport(0,0,x.width,x.height),x.restoreStencilMask(),this.flush(),this.tempSprite=null},onDraw:function(v){this.drawToGame(v)},setUVs:function(v,m,x,g,y,S,C,E){var A=this.quadVertexViewF32;A[2]=v,A[3]=m,A[9]=x,A[10]=g,A[16]=y,A[17]=S,A[23]=v,A[24]=m,A[30]=y,A[31]=S,A[37]=C,A[38]=E},setTargetUVs:function(v,m){var x=m.height/v.height;x>.5?x=.5-(x-.5):x=.5+(.5-x),this.setUVs(0,x,0,1+x,1,1+x,1,x)},resetUVs:function(){this.setUVs(0,0,0,1,1,1,1,0)},destroy:function(){return this.renderer.deleteBuffer(this.quadVertexBuffer),this.drawSpriteShader=null,this.copyShader=null,this.gameShader=null,this.colorMatrixShader=null,this.quadVertexData=null,this.quadVertexBuffer=null,this.quadVertexViewF32=null,this.fsTarget=null,this.tempSprite=null,e.prototype.destroy.call(this),this}});c.exports=f},81041:(c,T,t)=>{/** + */var d=t(10312),p=t(67502),l=t(83419),r=t(96293),n=t(95540),e=t(57516),s=t(27681),o=t(87841),i=t(32302),a=t(45561),u=t(60722),h=t(29100),f=new l({Extends:e,initialize:function(m){var g=n(m,"fragShader",s),x=n(m,"vertShader",u),y=n(m,"drawShader",s),S=[{name:"DrawSprite",fragShader:a,vertShader:u},{name:"CopySprite",fragShader:g,vertShader:x},{name:"DrawGame",fragShader:y,vertShader:u},{name:"ColorMatrix",fragShader:r}],C=n(m,"shaders",[]);m.shaders=S.concat(C),m.vertShader||(m.vertShader=x),m.batchSize=1,e.call(this,m),this.isPreFX=!0,this.customMainSampler=null,this.drawSpriteShader,this.copyShader,this.gameShader,this.colorMatrixShader,this.quadVertexData,this.quadVertexBuffer,this.quadVertexViewF32,this.spriteBounds=new o,this.targetBounds=new o,this.fsTarget,this.tempSprite,this.renderer.isBooted&&(this.manager=this.renderer.pipelines,this.boot())},boot:function(){h.prototype.boot.call(this);var v=this.shaders,m=this.renderer;this.drawSpriteShader=v[0],this.copyShader=v[1],this.gameShader=v[2],this.colorMatrixShader=v[3],this.fsTarget=new i(m,m.width,m.height,1,0,!0,!0),this.renderTargets=this.manager.renderTargets.concat(this.fsTarget);var g=new ArrayBuffer(168);this.quadVertexData=g,this.quadVertexViewF32=new Float32Array(g),this.quadVertexBuffer=m.createVertexBuffer(g,this.gl.STATIC_DRAW),this.onResize(m.width,m.height),this.currentShader=this.copyShader,this.set2f("uResolution",m.width,m.height)},onResize:function(v,m){var g=this.quadVertexViewF32;g[1]=m,g[22]=m,g[14]=v,g[28]=v,g[35]=v,g[36]=m},batchQuad:function(v,m,g,x,y,S,C,E,M,P,A,R,F,D,w,G,N,b,B){var O=Math.min(m,x,S,E),L=Math.min(g,y,C,M),I=Math.max(m,x,S,E),U=Math.max(g,y,C,M),X=I-O,z=U-L,V=this.spriteBounds.setTo(O,L,X,z),Y=v?v.preFX.padding:0,W=X+Y*2,H=z+Y*2,K=Math.abs(Math.max(W,H)),j=this.manager.getRenderTarget(K),Z=this.targetBounds.setTo(0,0,j.width,j.height);p(Z,Math.round(V.centerX),Math.round(V.centerY)),this.tempSprite=v;var _=this.gl,rt=this.renderer;rt.clearStencilMask(),this.setShader(this.drawSpriteShader),this.set1i("uMainSampler",0),this.set2f("uResolution",rt.width,rt.height),this.flipProjectionMatrix(!0),v&&(this.onDrawSprite(v,j),v.preFX.onFX(this));var at=this.fsTarget;return this.flush(),_.viewport(0,0,rt.width,rt.height),_.bindFramebuffer(_.FRAMEBUFFER,at.framebuffer.webGLFramebuffer),_.framebufferTexture2D(_.FRAMEBUFFER,_.COLOR_ATTACHMENT0,_.TEXTURE_2D,at.texture.webGLTexture,0),_.clearColor(0,0,0,0),_.clear(_.COLOR_BUFFER_BIT),this.setTexture2D(B),this.batchVert(m,g,P,A,0,b,D),this.batchVert(x,y,P,F,0,b,G),this.batchVert(S,C,R,F,0,b,N),this.batchVert(m,g,P,A,0,b,D),this.batchVert(S,C,R,F,0,b,N),this.batchVert(E,M,R,A,0,b,w),this.flush(),this.flipProjectionMatrix(!1),_.activeTexture(_.TEXTURE0),_.bindTexture(_.TEXTURE_2D,j.texture.webGLTexture),_.copyTexSubImage2D(_.TEXTURE_2D,0,0,0,Z.x,Z.y,Z.width,Z.height),_.bindFramebuffer(_.FRAMEBUFFER,null),_.bindTexture(_.TEXTURE_2D,null),this.onBatch(v),this.currentShader=this.copyShader,this.onDraw(j,this.manager.getSwapRenderTarget(),this.manager.getAltSwapRenderTarget()),!0},onDrawSprite:function(){},onCopySprite:function(){},copySprite:function(v,m,g,x,y,S,C){g===void 0&&(g=!0),x===void 0&&(x=!0),y===void 0&&(y=!1),C===void 0&&(C=this.copyShader);var E=this.gl,M=this.tempSprite;S&&(C=this.colorMatrixShader),this.currentShader=C;var P=this.setVertexBuffer(this.quadVertexBuffer);C.bind(P,!1);var A=this.renderer;if(this.set1i("uMainSampler",0),this.set2f("uResolution",A.width,A.height),M.preFX.onFXCopy(this),this.onCopySprite(v,m,M),S&&(this.set1fv("uColorMatrix",S.getData()),this.set1f("uAlpha",S.alpha)),E.activeTexture(E.TEXTURE0),E.bindTexture(E.TEXTURE_2D,v.texture.webGLTexture),v.height>m.height)E.viewport(0,0,v.width,v.height),this.setTargetUVs(v,m);else{var R=m.height-v.height;E.viewport(0,R,v.width,v.height),this.resetUVs()}if(E.bindFramebuffer(E.FRAMEBUFFER,m.framebuffer.webGLFramebuffer),E.framebufferTexture2D(E.FRAMEBUFFER,E.COLOR_ATTACHMENT0,E.TEXTURE_2D,m.texture.webGLTexture,0),g&&(E.clearColor(0,0,0,+!x),E.clear(E.COLOR_BUFFER_BIT)),y){var F=this.renderer.currentBlendMode;this.renderer.setBlendMode(d.ERASE)}E.bufferData(E.ARRAY_BUFFER,this.quadVertexData,E.STATIC_DRAW),E.drawArrays(E.TRIANGLES,0,6),y&&this.renderer.setBlendMode(F),E.bindFramebuffer(E.FRAMEBUFFER,null)},copy:function(v,m){var g=this.gl;this.set1i("uMainSampler",0),g.activeTexture(g.TEXTURE0),g.bindTexture(g.TEXTURE_2D,v.texture.webGLTexture),g.viewport(0,0,v.width,v.height),this.setUVs(0,0,0,1,1,1,1,0),g.bindFramebuffer(g.FRAMEBUFFER,m.framebuffer.webGLFramebuffer),g.framebufferTexture2D(g.FRAMEBUFFER,g.COLOR_ATTACHMENT0,g.TEXTURE_2D,m.texture.webGLTexture,0),g.clearColor(0,0,0,0),g.clear(g.COLOR_BUFFER_BIT),g.bufferData(g.ARRAY_BUFFER,this.quadVertexData,g.STATIC_DRAW),g.drawArrays(g.TRIANGLES,0,6),g.bindFramebuffer(g.FRAMEBUFFER,null)},blendFrames:function(v,m,g,x,y){this.manager.blendFrames(v,m,g,x,y)},blendFramesAdditive:function(v,m,g,x,y){this.manager.blendFramesAdditive(v,m,g,x,y)},drawToGame:function(v){this.currentShader=null,this.setShader(this.copyShader),this.bindAndDraw(v)},copyToGame:function(v){this.currentShader=null,this.setShader(this.gameShader),this.bindAndDraw(v)},bindAndDraw:function(v){var m=this.gl,g=this.renderer;this.set1i("uMainSampler",0),this.customMainSampler?this.setTexture2D(this.customMainSampler):this.setTexture2D(v.texture);var x=this._tempMatrix1.loadIdentity(),y=this.targetBounds.x,S=this.targetBounds.y,C=y+v.width,E=S+v.height,M=x.getX(y,S),P=x.getX(y,E),A=x.getX(C,E),R=x.getX(C,S),F=x.getY(y,S),D=x.getY(y,E),w=x.getY(C,E),G=x.getY(C,S),N=16777215;this.batchVert(M,F,0,0,0,0,N),this.batchVert(P,D,0,1,0,0,N),this.batchVert(A,w,1,1,0,0,N),this.batchVert(M,F,0,0,0,0,N),this.batchVert(A,w,1,1,0,0,N),this.batchVert(R,G,1,0,0,0,N),g.restoreFramebuffer(!1,!0),g.currentFramebuffer||m.viewport(0,0,g.width,g.height),g.restoreStencilMask(),this.flush(),this.tempSprite=null},onDraw:function(v){this.drawToGame(v)},setUVs:function(v,m,g,x,y,S,C,E){var M=this.quadVertexViewF32;M[2]=v,M[3]=m,M[9]=g,M[10]=x,M[16]=y,M[17]=S,M[23]=v,M[24]=m,M[30]=y,M[31]=S,M[37]=C,M[38]=E},setTargetUVs:function(v,m){var g=m.height/v.height;g>.5?g=.5-(g-.5):g=.5+(.5-g),this.setUVs(0,g,0,1+g,1,1+g,1,g)},resetUVs:function(){this.setUVs(0,0,0,1,1,1,1,0)},destroy:function(){return this.renderer.deleteBuffer(this.quadVertexBuffer),this.drawSpriteShader=null,this.copyShader=null,this.gameShader=null,this.colorMatrixShader=null,this.quadVertexData=null,this.quadVertexBuffer=null,this.quadVertexViewF32=null,this.fsTarget=null,this.tempSprite=null,e.prototype.destroy.call(this),this}});c.exports=f},81041:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(95540),a=t(57516),r=new d({Extends:a,initialize:function(e){e.topology=5,e.batchSize=p(e,"batchSize",256),a.call(this,e)}});c.exports=r},12385:(c,T,t)=>{/** + */var d=t(83419),p=t(95540),l=t(57516),r=new d({Extends:l,initialize:function(e){e.topology=5,e.batchSize=p(e,"batchSize",256),l.call(this,e)}});c.exports=r},12385:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(95540),a=t(57516),r=t(45561),n=t(60722),e=t(29100),s=new d({Extends:a,initialize:function(i){i.fragShader=p(i,"fragShader",r),i.vertShader=p(i,"vertShader",n),i.forceZero=!0,a.call(this,i)},boot:function(){e.prototype.boot.call(this);var l=this.renderer;this.set1i("uMainSampler",0),this.set2f("uResolution",l.width,l.height),this.set1i("uRoundPixels",l.config.roundPixels)}});c.exports=s},7589:(c,T,t)=>{/** + */var d=t(83419),p=t(95540),l=t(57516),r=t(45561),n=t(60722),e=t(29100),s=new d({Extends:l,initialize:function(i){i.fragShader=p(i,"fragShader",r),i.vertShader=p(i,"vertShader",n),i.forceZero=!0,l.call(this,i)},boot:function(){e.prototype.boot.call(this);var o=this.renderer;this.set1i("uMainSampler",0),this.set2f("uResolution",o.width,o.height)}});c.exports=s},7589:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(35407),p=t(10312),a=t(83419),r=t(89422),n=t(96293),e=t(36682),s=t(95540),l=t(48247),i=t(49627),o=t(29100),u=new a({Extends:o,initialize:function(f){f.renderTarget=s(f,"renderTarget",[{scale:1,autoResize:!0},{scale:1,autoResize:!0},{scale:.5,autoResize:!0},{scale:.5,autoResize:!0}]),f.vertShader=s(f,"vertShader",i),f.shaders=s(f,"shaders",[{name:"Copy",fragShader:e},{name:"AddBlend",fragShader:d},{name:"LinearBlend",fragShader:l},{name:"ColorMatrix",fragShader:n}]),f.attributes=s(f,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2}]),f.vertices=[-1,-1,0,0,-1,1,0,1,1,1,1,1,-1,-1,0,0,1,1,1,1,1,-1,1,0],f.batchSize=1,o.call(this,f),this.colorMatrix=new r,this.copyShader,this.addShader,this.linearShader,this.colorMatrixShader,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2},boot:function(){o.prototype.boot.call(this);var h=this.shaders,f=this.renderTargets;this.copyShader=h[0],this.addShader=h[1],this.linearShader=h[2],this.colorMatrixShader=h[3],this.fullFrame1=f[0],this.fullFrame2=f[1],this.halfFrame1=f[2],this.halfFrame2=f[3]},copyFrame:function(h,f,v,m,x){v===void 0&&(v=1),m===void 0&&(m=!0),x===void 0&&(x=!0);var g=this.gl;this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",v),g.activeTexture(g.TEXTURE0),g.bindTexture(g.TEXTURE_2D,h.texture.webGLTexture),f?(g.viewport(0,0,f.width,f.height),g.bindFramebuffer(g.FRAMEBUFFER,f.framebuffer.webGLFramebuffer),g.framebufferTexture2D(g.FRAMEBUFFER,g.COLOR_ATTACHMENT0,g.TEXTURE_2D,f.texture.webGLTexture,0)):g.viewport(0,0,h.width,h.height),m&&(x?g.clearColor(0,0,0,0):g.clearColor(0,0,0,1),g.clear(g.COLOR_BUFFER_BIT)),g.bufferData(g.ARRAY_BUFFER,this.vertexData,g.STATIC_DRAW),g.drawArrays(g.TRIANGLES,0,6),g.bindFramebuffer(g.FRAMEBUFFER,null),g.bindTexture(g.TEXTURE_2D,null)},blitFrame:function(h,f,v,m,x,g,y){v===void 0&&(v=1),m===void 0&&(m=!0),x===void 0&&(x=!0),g===void 0&&(g=!1),y===void 0&&(y=!1);var S=this.gl;if(this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",v),S.activeTexture(S.TEXTURE0),S.bindTexture(S.TEXTURE_2D,h.texture.webGLTexture),h.height>f.height)S.viewport(0,0,h.width,h.height),this.setTargetUVs(h,f);else{var C=f.height-h.height;S.viewport(0,C,h.width,h.height)}if(S.bindFramebuffer(S.FRAMEBUFFER,f.framebuffer.webGLFramebuffer),S.framebufferTexture2D(S.FRAMEBUFFER,S.COLOR_ATTACHMENT0,S.TEXTURE_2D,f.texture.webGLTexture,0),m&&(x?S.clearColor(0,0,0,0):S.clearColor(0,0,0,1),S.clear(S.COLOR_BUFFER_BIT)),g){var E=this.renderer.currentBlendMode;this.renderer.setBlendMode(p.ERASE)}y&&this.flipY(),S.bufferData(S.ARRAY_BUFFER,this.vertexData,S.STATIC_DRAW),S.drawArrays(S.TRIANGLES,0,6),g&&this.renderer.setBlendMode(E),S.bindFramebuffer(S.FRAMEBUFFER,null),S.bindTexture(S.TEXTURE_2D,null),this.resetUVs()},copyFrameRect:function(h,f,v,m,x,g,y,S){y===void 0&&(y=!0),S===void 0&&(S=!0);var C=this.gl;C.bindFramebuffer(C.FRAMEBUFFER,h.framebuffer.webGLFramebuffer),C.framebufferTexture2D(C.FRAMEBUFFER,C.COLOR_ATTACHMENT0,C.TEXTURE_2D,h.texture.webGLTexture,0),y&&(S?C.clearColor(0,0,0,0):C.clearColor(0,0,0,1),C.clear(C.COLOR_BUFFER_BIT)),C.activeTexture(C.TEXTURE0),C.bindTexture(C.TEXTURE_2D,f.texture.webGLTexture),C.copyTexSubImage2D(C.TEXTURE_2D,0,0,0,v,m,x,g),C.bindFramebuffer(C.FRAMEBUFFER,null),C.bindTexture(C.TEXTURE_2D,null)},copyToGame:function(h){var f=this.gl;this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",1),this.renderer.popFramebuffer(),f.activeTexture(f.TEXTURE0),f.bindTexture(f.TEXTURE_2D,h.texture.webGLTexture),f.bufferData(f.ARRAY_BUFFER,this.vertexData,f.STATIC_DRAW),f.drawArrays(f.TRIANGLES,0,6)},drawFrame:function(h,f,v,m){v===void 0&&(v=!0),m===void 0&&(m=this.colorMatrix);var x=this.gl;this.setShader(this.colorMatrixShader),this.set1i("uMainSampler",0),this.set1fv("uColorMatrix",m.getData()),this.set1f("uAlpha",m.alpha),x.activeTexture(x.TEXTURE0),x.bindTexture(x.TEXTURE_2D,h.texture.webGLTexture),f?(x.viewport(0,0,f.width,f.height),x.bindFramebuffer(x.FRAMEBUFFER,f.framebuffer.webGLFramebuffer),x.framebufferTexture2D(x.FRAMEBUFFER,x.COLOR_ATTACHMENT0,x.TEXTURE_2D,f.texture.webGLTexture,0)):x.viewport(0,0,h.width,h.height),v?x.clearColor(0,0,0,0):x.clearColor(0,0,0,1),x.clear(x.COLOR_BUFFER_BIT),x.bufferData(x.ARRAY_BUFFER,this.vertexData,x.STATIC_DRAW),x.drawArrays(x.TRIANGLES,0,6),x.bindFramebuffer(x.FRAMEBUFFER,null),x.bindTexture(x.TEXTURE_2D,null)},blendFrames:function(h,f,v,m,x,g){m===void 0&&(m=1),x===void 0&&(x=!0),g===void 0&&(g=this.linearShader);var y=this.gl;this.setShader(g),this.set1i("uMainSampler1",0),this.set1i("uMainSampler2",1),this.set1f("uStrength",m),y.activeTexture(y.TEXTURE0),y.bindTexture(y.TEXTURE_2D,h.texture.webGLTexture),y.activeTexture(y.TEXTURE1),y.bindTexture(y.TEXTURE_2D,f.texture.webGLTexture),v?(y.bindFramebuffer(y.FRAMEBUFFER,v.framebuffer.webGLFramebuffer),y.framebufferTexture2D(y.FRAMEBUFFER,y.COLOR_ATTACHMENT0,y.TEXTURE_2D,v.texture.webGLTexture,0),y.viewport(0,0,v.width,v.height)):y.viewport(0,0,h.width,h.height),x?y.clearColor(0,0,0,0):y.clearColor(0,0,0,1),y.clear(y.COLOR_BUFFER_BIT),y.bufferData(y.ARRAY_BUFFER,this.vertexData,y.STATIC_DRAW),y.drawArrays(y.TRIANGLES,0,6),y.bindFramebuffer(y.FRAMEBUFFER,null),y.bindTexture(y.TEXTURE_2D,null)},blendFramesAdditive:function(h,f,v,m,x){this.blendFrames(h,f,v,m,x,this.addShader)},clearFrame:function(h,f){f===void 0&&(f=!0);var v=this.gl;v.viewport(0,0,h.width,h.height),v.bindFramebuffer(v.FRAMEBUFFER,h.framebuffer.webGLFramebuffer),f?v.clearColor(0,0,0,0):v.clearColor(0,0,0,1),v.clear(v.COLOR_BUFFER_BIT);var m=this.renderer.currentFramebuffer;v.bindFramebuffer(v.FRAMEBUFFER,m.webGLFramebuffer)},setUVs:function(h,f,v,m,x,g,y,S){var C=this.vertexViewF32;C[2]=h,C[3]=f,C[6]=v,C[7]=m,C[10]=x,C[11]=g,C[14]=h,C[15]=f,C[18]=x,C[19]=g,C[22]=y,C[23]=S},setTargetUVs:function(h,f){var v=f.height/h.height;v>.5?v=.5-(v-.5):v=.5+(.5-v),this.setUVs(0,v,0,1+v,1,1+v,1,v)},flipX:function(){this.setUVs(1,0,1,1,0,1,0,0)},flipY:function(){this.setUVs(0,1,0,0,1,0,1,1)},resetUVs:function(){this.setUVs(0,0,0,1,1,1,1,0)}});c.exports=u},36060:c=>{/** + */var d=t(35407),p=t(10312),l=t(83419),r=t(89422),n=t(96293),e=t(36682),s=t(95540),o=t(48247),i=t(49627),a=t(29100),u=new l({Extends:a,initialize:function(f){f.renderTarget=s(f,"renderTarget",[{scale:1,autoResize:!0},{scale:1,autoResize:!0},{scale:.5,autoResize:!0},{scale:.5,autoResize:!0}]),f.vertShader=s(f,"vertShader",i),f.shaders=s(f,"shaders",[{name:"Copy",fragShader:e},{name:"AddBlend",fragShader:d},{name:"LinearBlend",fragShader:o},{name:"ColorMatrix",fragShader:n}]),f.attributes=s(f,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2}]),f.vertices=[-1,-1,0,0,-1,1,0,1,1,1,1,1,-1,-1,0,0,1,1,1,1,1,-1,1,0],f.batchSize=1,a.call(this,f),this.colorMatrix=new r,this.copyShader,this.addShader,this.linearShader,this.colorMatrixShader,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2},boot:function(){a.prototype.boot.call(this);var h=this.shaders,f=this.renderTargets;this.copyShader=h[0],this.addShader=h[1],this.linearShader=h[2],this.colorMatrixShader=h[3],this.fullFrame1=f[0],this.fullFrame2=f[1],this.halfFrame1=f[2],this.halfFrame2=f[3]},copyFrame:function(h,f,v,m,g){v===void 0&&(v=1),m===void 0&&(m=!0),g===void 0&&(g=!0);var x=this.gl;this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",v),x.activeTexture(x.TEXTURE0),x.bindTexture(x.TEXTURE_2D,h.texture.webGLTexture),f?(x.viewport(0,0,f.width,f.height),x.bindFramebuffer(x.FRAMEBUFFER,f.framebuffer.webGLFramebuffer),x.framebufferTexture2D(x.FRAMEBUFFER,x.COLOR_ATTACHMENT0,x.TEXTURE_2D,f.texture.webGLTexture,0)):x.viewport(0,0,h.width,h.height),m&&(g?x.clearColor(0,0,0,0):x.clearColor(0,0,0,1),x.clear(x.COLOR_BUFFER_BIT)),x.bufferData(x.ARRAY_BUFFER,this.vertexData,x.STATIC_DRAW),x.drawArrays(x.TRIANGLES,0,6),x.bindFramebuffer(x.FRAMEBUFFER,null),x.bindTexture(x.TEXTURE_2D,null)},blitFrame:function(h,f,v,m,g,x,y){v===void 0&&(v=1),m===void 0&&(m=!0),g===void 0&&(g=!0),x===void 0&&(x=!1),y===void 0&&(y=!1);var S=this.gl;if(this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",v),S.activeTexture(S.TEXTURE0),S.bindTexture(S.TEXTURE_2D,h.texture.webGLTexture),h.height>f.height)S.viewport(0,0,h.width,h.height),this.setTargetUVs(h,f);else{var C=f.height-h.height;S.viewport(0,C,h.width,h.height)}if(S.bindFramebuffer(S.FRAMEBUFFER,f.framebuffer.webGLFramebuffer),S.framebufferTexture2D(S.FRAMEBUFFER,S.COLOR_ATTACHMENT0,S.TEXTURE_2D,f.texture.webGLTexture,0),m&&(g?S.clearColor(0,0,0,0):S.clearColor(0,0,0,1),S.clear(S.COLOR_BUFFER_BIT)),x){var E=this.renderer.currentBlendMode;this.renderer.setBlendMode(p.ERASE)}y&&this.flipY(),S.bufferData(S.ARRAY_BUFFER,this.vertexData,S.STATIC_DRAW),S.drawArrays(S.TRIANGLES,0,6),x&&this.renderer.setBlendMode(E),S.bindFramebuffer(S.FRAMEBUFFER,null),S.bindTexture(S.TEXTURE_2D,null),this.resetUVs()},copyFrameRect:function(h,f,v,m,g,x,y,S){y===void 0&&(y=!0),S===void 0&&(S=!0);var C=this.gl;C.bindFramebuffer(C.FRAMEBUFFER,h.framebuffer.webGLFramebuffer),C.framebufferTexture2D(C.FRAMEBUFFER,C.COLOR_ATTACHMENT0,C.TEXTURE_2D,h.texture.webGLTexture,0),y&&(S?C.clearColor(0,0,0,0):C.clearColor(0,0,0,1),C.clear(C.COLOR_BUFFER_BIT)),C.activeTexture(C.TEXTURE0),C.bindTexture(C.TEXTURE_2D,f.texture.webGLTexture),C.copyTexSubImage2D(C.TEXTURE_2D,0,0,0,v,m,g,x),C.bindFramebuffer(C.FRAMEBUFFER,null),C.bindTexture(C.TEXTURE_2D,null)},copyToGame:function(h){var f=this.gl;this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",1),this.renderer.popFramebuffer(),f.activeTexture(f.TEXTURE0),f.bindTexture(f.TEXTURE_2D,h.texture.webGLTexture),f.bufferData(f.ARRAY_BUFFER,this.vertexData,f.STATIC_DRAW),f.drawArrays(f.TRIANGLES,0,6)},drawFrame:function(h,f,v,m){v===void 0&&(v=!0),m===void 0&&(m=this.colorMatrix);var g=this.gl;this.setShader(this.colorMatrixShader),this.set1i("uMainSampler",0),this.set1fv("uColorMatrix",m.getData()),this.set1f("uAlpha",m.alpha),g.activeTexture(g.TEXTURE0),g.bindTexture(g.TEXTURE_2D,h.texture.webGLTexture),f?(g.viewport(0,0,f.width,f.height),g.bindFramebuffer(g.FRAMEBUFFER,f.framebuffer.webGLFramebuffer),g.framebufferTexture2D(g.FRAMEBUFFER,g.COLOR_ATTACHMENT0,g.TEXTURE_2D,f.texture.webGLTexture,0)):g.viewport(0,0,h.width,h.height),v?g.clearColor(0,0,0,0):g.clearColor(0,0,0,1),g.clear(g.COLOR_BUFFER_BIT),g.bufferData(g.ARRAY_BUFFER,this.vertexData,g.STATIC_DRAW),g.drawArrays(g.TRIANGLES,0,6),g.bindFramebuffer(g.FRAMEBUFFER,null),g.bindTexture(g.TEXTURE_2D,null)},blendFrames:function(h,f,v,m,g,x){m===void 0&&(m=1),g===void 0&&(g=!0),x===void 0&&(x=this.linearShader);var y=this.gl;this.setShader(x),this.set1i("uMainSampler1",0),this.set1i("uMainSampler2",1),this.set1f("uStrength",m),y.activeTexture(y.TEXTURE0),y.bindTexture(y.TEXTURE_2D,h.texture.webGLTexture),y.activeTexture(y.TEXTURE1),y.bindTexture(y.TEXTURE_2D,f.texture.webGLTexture),v?(y.bindFramebuffer(y.FRAMEBUFFER,v.framebuffer.webGLFramebuffer),y.framebufferTexture2D(y.FRAMEBUFFER,y.COLOR_ATTACHMENT0,y.TEXTURE_2D,v.texture.webGLTexture,0),y.viewport(0,0,v.width,v.height)):y.viewport(0,0,h.width,h.height),g?y.clearColor(0,0,0,0):y.clearColor(0,0,0,1),y.clear(y.COLOR_BUFFER_BIT),y.bufferData(y.ARRAY_BUFFER,this.vertexData,y.STATIC_DRAW),y.drawArrays(y.TRIANGLES,0,6),y.bindFramebuffer(y.FRAMEBUFFER,null),y.bindTexture(y.TEXTURE_2D,null)},blendFramesAdditive:function(h,f,v,m,g){this.blendFrames(h,f,v,m,g,this.addShader)},clearFrame:function(h,f){f===void 0&&(f=!0);var v=this.gl;v.viewport(0,0,h.width,h.height),v.bindFramebuffer(v.FRAMEBUFFER,h.framebuffer.webGLFramebuffer),f?v.clearColor(0,0,0,0):v.clearColor(0,0,0,1),v.clear(v.COLOR_BUFFER_BIT);var m=this.renderer.currentFramebuffer;v.bindFramebuffer(v.FRAMEBUFFER,m.webGLFramebuffer)},setUVs:function(h,f,v,m,g,x,y,S){var C=this.vertexViewF32;C[2]=h,C[3]=f,C[6]=v,C[7]=m,C[10]=g,C[11]=x,C[14]=h,C[15]=f,C[18]=g,C[19]=x,C[22]=y,C[23]=S},setTargetUVs:function(h,f){var v=f.height/h.height;v>.5?v=.5-(v-.5):v=.5+(.5-v),this.setUVs(0,v,0,1+v,1,1+v,1,v)},flipX:function(){this.setUVs(1,0,1,1,0,1,0,0)},flipY:function(){this.setUVs(0,1,0,0,1,0,1,1)},resetUVs:function(){this.setUVs(0,0,0,1,1,1,1,0)}});c.exports=u},36060:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4800,59 +4800,59 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(99155),a=t(84057),r=new d({Extends:a,initialize:function(e){a.call(this,{game:e,fragShader:p}),this.amount=1},onPreRender:function(n,e){n=this.getController(n),this.set1f("amount",n.amount,e)}});c.exports=r},67329:(c,T,t)=>{/** + */var d=t(83419),p=t(99155),l=t(84057),r=new d({Extends:l,initialize:function(e){l.call(this,{game:e,fragShader:p}),this.amount=1},onPreRender:function(n,e){n=this.getController(n),this.set1f("amount",n.amount,e)}});c.exports=r},67329:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(24400),a=t(84057),r=new d({Extends:a,initialize:function(e){a.call(this,{game:e,fragShader:p}),this.steps=4,this.offsetX=1,this.offsetY=1,this.blurStrength=1,this.strength=1,this.glcolor=[1,1,1]},onPreRender:function(n){n=this.getController(n),this.set1f("strength",n.blurStrength),this.set3fv("color",n.glcolor)},onDraw:function(n){var e=this.getController(),s=this.fullFrame1,l=this.fullFrame2;this.copyFrame(n,l);for(var i=2/n.width*e.offsetX,o=2/n.height*e.offsetY,u=0;u{/** + */var d=t(83419),p=t(24400),l=t(84057),r=new d({Extends:l,initialize:function(e){l.call(this,{game:e,fragShader:p}),this.steps=4,this.offsetX=1,this.offsetY=1,this.blurStrength=1,this.strength=1,this.glcolor=[1,1,1]},onPreRender:function(n){n=this.getController(n),this.set1f("strength",n.blurStrength),this.set3fv("color",n.glcolor)},onDraw:function(n){var e=this.getController(),s=this.fullFrame1,o=this.fullFrame2;this.copyFrame(n,o);for(var i=2/n.width*e.offsetX,a=2/n.height*e.offsetY,u=0;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(41514),a=t(51078),r=t(94328),n=t(84057),e=new d({Extends:n,initialize:function(l){n.call(this,{game:l,shaders:[{name:"Gaussian5",fragShader:p},{name:"Gaussian9",fragShader:a},{name:"Gaussian13",fragShader:r}]}),this.activeShader=this.shaders[0],this.x=2,this.y=2,this.steps=4,this.strength=1,this.glcolor=[1,1,1]},setQualityLow:function(){return this.activeShader=this.shaders[0],this},setQualityMedium:function(){return this.activeShader=this.shaders[1],this},setQualityHigh:function(){return this.activeShader=this.shaders[2],this},onDraw:function(s){var l=this.getController(),i=this.gl,o=this.fullFrame1,u=i.getParameter(i.FRAMEBUFFER_BINDING);this.bind(this.shaders[l.quality]),i.activeTexture(i.TEXTURE0),i.viewport(0,0,s.width,s.height),this.set1i("uMainSampler",0),this.set2f("resolution",s.width,s.height),this.set1f("strength",l.strength),this.set3fv("color",l.glcolor);for(var h=0;h{/** + */var d=t(83419),p=t(41514),l=t(51078),r=t(94328),n=t(84057),e=new d({Extends:n,initialize:function(o){n.call(this,{game:o,shaders:[{name:"Gaussian5",fragShader:p},{name:"Gaussian9",fragShader:l},{name:"Gaussian13",fragShader:r}]}),this.activeShader=this.shaders[0],this.x=2,this.y=2,this.steps=4,this.strength=1,this.glcolor=[1,1,1]},setQualityLow:function(){return this.activeShader=this.shaders[0],this},setQualityMedium:function(){return this.activeShader=this.shaders[1],this},setQualityHigh:function(){return this.activeShader=this.shaders[2],this},onDraw:function(s){var o=this.getController(),i=this.gl,a=this.fullFrame1,u=i.getParameter(i.FRAMEBUFFER_BINDING);this.bind(this.shaders[o.quality]),i.activeTexture(i.TEXTURE0),i.viewport(0,0,s.width,s.height),this.set1i("uMainSampler",0),this.set2f("resolution",s.width,s.height),this.set1f("strength",o.strength),this.set3fv("color",o.glcolor);for(var h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(90610),a=t(84057),r=new d({Extends:a,initialize:function(e){a.call(this,{game:e,fragShader:p}),this.isTiltShift=!1,this.strength=1,this.blurX=1,this.blurY=1,this.radius=.5,this.amount=1,this.contrast=.2},onPreRender:function(n,e,s,l){n=this.getController(n),this.set1f("radius",n.radius,e),this.set1f("amount",n.amount,e),this.set1f("contrast",n.contrast,e),this.set1f("strength",n.strength,e),this.set2f("blur",n.blurX,n.blurY,e),this.setBoolean("isTiltShift",n.isTiltShift,e),s&&l&&this.set2f("resolution",s,l,e)},onDraw:function(n){this.set2f("resolution",n.width,n.height),this.bindAndDraw(n)}});c.exports=r},89428:(c,T,t)=>{/** + */var d=t(83419),p=t(90610),l=t(84057),r=new d({Extends:l,initialize:function(e){l.call(this,{game:e,fragShader:p}),this.isTiltShift=!1,this.strength=1,this.blurX=1,this.blurY=1,this.radius=.5,this.amount=1,this.contrast=.2},onPreRender:function(n,e,s,o){n=this.getController(n),this.set1f("radius",n.radius,e),this.set1f("amount",n.amount,e),this.set1f("contrast",n.contrast,e),this.set1f("strength",n.strength,e),this.set2f("blur",n.blurX,n.blurY,e),this.setBoolean("isTiltShift",n.isTiltShift,e),s&&o&&this.set2f("resolution",s,o,e)},onDraw:function(n){this.set2f("resolution",n.width,n.height),this.bindAndDraw(n)}});c.exports=r},89428:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(91899),a=t(84057),r=new d({Extends:a,initialize:function(e){a.call(this,{game:e,fragShader:p}),this.scale=1,this.feather=.005,this.thickness=8,this.glcolor=[1,.2,.7],this.glcolor2=[1,0,0,.4]},onPreRender:function(n,e,s,l){n=this.getController(n),this.set1f("scale",n.scale,e),this.set1f("feather",n.feather,e),this.set1f("thickness",n.thickness,e),this.set3fv("color",n.glcolor,e),this.set4fv("backgroundColor",n.glcolor2,e),s&&l&&this.set2f("resolution",s,l,e)},onDraw:function(n){this.set2f("resolution",n.width,n.height),this.bindAndDraw(n)}});c.exports=r},88904:(c,T,t)=>{/** + */var d=t(83419),p=t(91899),l=t(84057),r=new d({Extends:l,initialize:function(e){l.call(this,{game:e,fragShader:p}),this.scale=1,this.feather=.005,this.thickness=8,this.glcolor=[1,.2,.7],this.glcolor2=[1,0,0,.4]},onPreRender:function(n,e,s,o){n=this.getController(n),this.set1f("scale",n.scale,e),this.set1f("feather",n.feather,e),this.set1f("thickness",n.thickness,e),this.set3fv("color",n.glcolor,e),this.set4fv("backgroundColor",n.glcolor2,e),s&&o&&this.set2f("resolution",s,o,e)},onDraw:function(n){this.set2f("resolution",n.width,n.height),this.bindAndDraw(n)}});c.exports=r},88904:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(84057),a=new d({Extends:p,initialize:function(n){p.call(this,{game:n})},onDraw:function(r){var n=this.fullFrame1;this.controller?this.manager.drawFrame(r,n,!0,this.controller):this.drawFrame(r,n),this.copyToGame(n)}});c.exports=a},63563:(c,T,t)=>{/** + */var d=t(83419),p=t(84057),l=new d({Extends:p,initialize:function(n){p.call(this,{game:n})},onDraw:function(r){var n=this.fullFrame1;this.controller?this.manager.drawFrame(r,n,!0,this.controller):this.drawFrame(r,n),this.copyToGame(n)}});c.exports=l},63563:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(47838),a=t(84057),r=new d({Extends:a,initialize:function(e){a.call(this,{game:e,fragShader:p}),this.x=.005,this.y=.005,this.glTexture},onBoot:function(){this.setTexture("__WHITE")},setTexture:function(n){var e=this.game.textures.getFrame(n);e&&(this.glTexture=e.glTexture)},onDraw:function(n){var e=this.getController(),s=this.fullFrame1;this.bind(),this.set1i("uMainSampler",0),this.set1i("uDisplacementSampler",1),this.set2f("amount",e.x,e.y),this.bindTexture(e.glTexture,1),this.copySprite(n,s),this.copyToGame(s)}});c.exports=r},94045:(c,T,t)=>{/** + */var d=t(83419),p=t(47838),l=t(84057),r=new d({Extends:l,initialize:function(e){l.call(this,{game:e,fragShader:p}),this.x=.005,this.y=.005,this.glTexture},onBoot:function(){this.setTexture("__WHITE")},setTexture:function(n){var e=this.game.textures.getFrame(n);e&&(this.glTexture=e.glTexture)},onDraw:function(n){var e=this.getController(),s=this.fullFrame1;this.bind(),this.set1i("uMainSampler",0),this.set1i("uDisplacementSampler",1),this.set2f("amount",e.x,e.y),this.bindTexture(e.glTexture,1),this.copySprite(n,s),this.copyToGame(s)}});c.exports=r},94045:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(95540),a=t(98656),r=t(84057),n=t(70554),e=new d({Extends:r,initialize:function(l,i){var o=p(i,"quality",.1),u=p(i,"distance",10);r.call(this,{game:l,fragShader:n.setGlowQuality(a,l,o,u)}),this.outerStrength=4,this.innerStrength=0,this.knockout=!1,this.glcolor=[1,1,1,1]},onPreRender:function(s,l,i,o){s=this.getController(s),this.set1f("outerStrength",s.outerStrength,l),this.set1f("innerStrength",s.innerStrength,l),this.set4fv("glowColor",s.glcolor,l),this.setBoolean("knockout",s.knockout,l),i&&o&&this.set2f("resolution",i,o,l)},onDraw:function(s){this.set2f("resolution",s.width,s.height),this.bindAndDraw(s)}});c.exports=e},74088:(c,T,t)=>{/** + */var d=t(83419),p=t(95540),l=t(98656),r=t(84057),n=t(70554),e=new d({Extends:r,initialize:function(o,i){var a=p(i,"quality",.1),u=p(i,"distance",10);r.call(this,{game:o,fragShader:n.setGlowQuality(l,o,a,u)}),this.outerStrength=4,this.innerStrength=0,this.knockout=!1,this.glcolor=[1,1,1,1]},onPreRender:function(s,o,i,a){s=this.getController(s),this.set1f("outerStrength",s.outerStrength,o),this.set1f("innerStrength",s.innerStrength,o),this.set4fv("glowColor",s.glcolor,o),this.setBoolean("knockout",s.knockout,o),i&&a&&this.set2f("resolution",i,a,o)},onDraw:function(s){this.set2f("resolution",s.width,s.height),this.bindAndDraw(s)}});c.exports=e},74088:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(70463),a=t(84057),r=new d({Extends:a,initialize:function(e){a.call(this,{game:e,fragShader:p}),this.alpha=.2,this.size=0,this.fromX=0,this.fromY=0,this.toX=0,this.toY=1,this.glcolor1=[255,0,0],this.glcolor2=[0,255,0]},onPreRender:function(n,e){n=this.getController(n),this.set1f("alpha",n.alpha,e),this.set1i("size",n.size,e),this.set3fv("color1",n.glcolor1,e),this.set3fv("color2",n.glcolor2,e),this.set2f("positionFrom",n.fromX,n.fromY,e),this.set2f("positionTo",n.toX,n.toY,e)}});c.exports=r},99636:(c,T,t)=>{/** + */var d=t(83419),p=t(70463),l=t(84057),r=new d({Extends:l,initialize:function(e){l.call(this,{game:e,fragShader:p}),this.alpha=.2,this.size=0,this.fromX=0,this.fromY=0,this.toX=0,this.toY=1,this.glcolor1=[255,0,0],this.glcolor2=[0,255,0]},onPreRender:function(n,e){n=this.getController(n),this.set1f("alpha",n.alpha,e),this.set1i("size",n.size,e),this.set3fv("color1",n.glcolor1,e),this.set3fv("color2",n.glcolor2,e),this.set2f("positionFrom",n.fromX,n.fromY,e),this.set2f("positionTo",n.toX,n.toY,e)}});c.exports=r},99636:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(50831),a=t(84057),r=new d({Extends:a,initialize:function(e){a.call(this,{game:e,fragShader:p}),this.amount=1},onPreRender:function(n,e,s,l){n=this.getController(n),this.set1f("amount",n.amount,e),s&&l&&this.set2f("resolution",s,l,e)},onDraw:function(n){this.set2f("resolution",n.width,n.height),this.bindAndDraw(n)}});c.exports=r},34700:(c,T,t)=>{/** + */var d=t(83419),p=t(50831),l=t(84057),r=new d({Extends:l,initialize:function(e){l.call(this,{game:e,fragShader:p}),this.amount=1},onPreRender:function(n,e,s,o){n=this.getController(n),this.set1f("amount",n.amount,e),s&&o&&this.set2f("resolution",s,o,e)},onDraw:function(n){this.set2f("resolution",n.width,n.height),this.bindAndDraw(n)}});c.exports=r},34700:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(92595),a=t(84057),r=new d({Extends:a,initialize:function(e){a.call(this,{game:e,fragShader:p}),this.x=0,this.y=0,this.decay=.1,this.power=1,this.glcolor=[0,0,0,1],this.samples=6,this.intensity=1},onPreRender:function(n,e){n=this.getController(n);var s=n.samples;this.set1i("samples",s,e),this.set1f("intensity",n.intensity,e),this.set1f("decay",n.decay,e),this.set1f("power",n.power/s,e),this.set2f("lightPosition",n.x,n.y,e),this.set4fv("color",n.glcolor,e)}});c.exports=r},91157:(c,T,t)=>{/** + */var d=t(83419),p=t(92595),l=t(84057),r=new d({Extends:l,initialize:function(e){l.call(this,{game:e,fragShader:p}),this.x=0,this.y=0,this.decay=.1,this.power=1,this.glcolor=[0,0,0,1],this.samples=6,this.intensity=1},onPreRender:function(n,e){n=this.getController(n);var s=n.samples;this.set1i("samples",s,e),this.set1f("intensity",n.intensity,e),this.set1f("decay",n.decay,e),this.set1f("power",n.power/s,e),this.set2f("lightPosition",n.x,n.y,e),this.set4fv("color",n.glcolor,e)}});c.exports=r},91157:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(72464),a=t(84057),r=new d({Extends:a,initialize:function(e){a.call(this,{game:e,fragShader:p}),this.speed=.5,this.lineWidth=.5,this.gradient=3,this.reveal=!1},onPreRender:function(n,e,s,l){n=this.getController(n),this.setTime("time",e),this.set1f("speed",n.speed,e),this.set1f("lineWidth",n.lineWidth,e),this.set1f("gradient",n.gradient,e),this.setBoolean("reveal",n.reveal,e),s&&l&&this.set2f("resolution",s,l,e)},onDraw:function(n){this.set2f("resolution",n.width,n.height),this.bindAndDraw(n)}});c.exports=r},27797:(c,T,t)=>{/** + */var d=t(83419),p=t(72464),l=t(84057),r=new d({Extends:l,initialize:function(e){l.call(this,{game:e,fragShader:p}),this.speed=.5,this.lineWidth=.5,this.gradient=3,this.reveal=!1},onPreRender:function(n,e,s,o){n=this.getController(n),this.setTime("time",e),this.set1f("speed",n.speed,e),this.set1f("lineWidth",n.lineWidth,e),this.set1f("gradient",n.gradient,e),this.setBoolean("reveal",n.reveal,e),s&&o&&this.set2f("resolution",s,o,e)},onDraw:function(n){this.set2f("resolution",n.width,n.height),this.bindAndDraw(n)}});c.exports=r},27797:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(39249),a=t(84057),r=new d({Extends:a,initialize:function(e){a.call(this,{game:e,fragShader:p}),this.x=.5,this.y=.5,this.radius=.5,this.strength=.5},onPreRender:function(n,e){n=this.getController(n),this.set1f("radius",n.radius,e),this.set1f("strength",n.strength,e),this.set2f("position",n.x,n.y,e)}});c.exports=r},67603:(c,T,t)=>{/** + */var d=t(83419),p=t(39249),l=t(84057),r=new d({Extends:l,initialize:function(e){l.call(this,{game:e,fragShader:p}),this.x=.5,this.y=.5,this.radius=.5,this.strength=.5},onPreRender:function(n,e){n=this.getController(n),this.set1f("radius",n.radius,e),this.set1f("strength",n.strength,e),this.set2f("position",n.x,n.y,e)}});c.exports=r},67603:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(2878),a=t(84057),r=new d({Extends:a,initialize:function(e){a.call(this,{game:e,fragShader:p}),this.progress=0,this.wipeWidth=.1,this.direction=0,this.axis=0,this.reveal=!1},onPreRender:function(n,e){n=this.getController(n);var s=n.progress,l=n.wipeWidth,i=n.direction,o=n.axis;this.set4f("config",s,l,i,o,e),this.setBoolean("reveal",n.reveal,e)}});c.exports=r},58918:(c,T,t)=>{/** + */var d=t(83419),p=t(2878),l=t(84057),r=new d({Extends:l,initialize:function(e){l.call(this,{game:e,fragShader:p}),this.progress=0,this.wipeWidth=.1,this.direction=0,this.axis=0,this.reveal=!1},onPreRender:function(n,e){n=this.getController(n);var s=n.progress,o=n.wipeWidth,i=n.direction,a=n.axis;this.set4f("config",s,o,i,a,e),this.setBoolean("reveal",n.reveal,e)}});c.exports=r},58918:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4860,7 +4860,7 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(36060),p=t(79291),a={FX:t(58918),BitmapMaskPipeline:t(31302),Events:t(77085),FXPipeline:t(92651),LightPipeline:t(96569),MobilePipeline:t(56527),MultiPipeline:t(57516),PointLightPipeline:t(43439),PostFXPipeline:t(84057),PreFXPipeline:t(43558),RopePipeline:t(81041),SinglePipeline:t(12385),UtilityPipeline:t(7589)};a=p(!1,a,d),c.exports=a},35407:c=>{c.exports=["#define SHADER_NAME PHASER_ADD_BLEND_FS","precision mediump float;","uniform sampler2D uMainSampler1;","uniform sampler2D uMainSampler2;","uniform float uStrength;","varying vec2 outTexCoord;","void main ()","{"," vec4 frame1 = texture2D(uMainSampler1, outTexCoord);"," vec4 frame2 = texture2D(uMainSampler2, outTexCoord);"," gl_FragColor = frame1 + frame2 * uStrength;","}"].join(` + */var d=t(36060),p=t(79291),l={FX:t(58918),BitmapMaskPipeline:t(31302),Events:t(77085),FXPipeline:t(92651),LightPipeline:t(96569),MobilePipeline:t(56527),MultiPipeline:t(57516),PointLightPipeline:t(43439),PostFXPipeline:t(84057),PreFXPipeline:t(43558),RopePipeline:t(81041),SinglePipeline:t(12385),UtilityPipeline:t(7589)};l=p(!1,l,d),c.exports=l},35407:c=>{c.exports=["#define SHADER_NAME PHASER_ADD_BLEND_FS","precision mediump float;","uniform sampler2D uMainSampler1;","uniform sampler2D uMainSampler2;","uniform float uStrength;","varying vec2 outTexCoord;","void main ()","{"," vec4 frame1 = texture2D(uMainSampler1, outTexCoord);"," vec4 frame2 = texture2D(uMainSampler2, outTexCoord);"," gl_FragColor = frame1 + frame2 * uStrength;","}"].join(` `)},78908:c=>{c.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_FS","precision mediump float;","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uMaskSampler;","uniform bool uInvertMaskAlpha;","void main ()","{"," vec2 uv = gl_FragCoord.xy / uResolution;"," vec4 mainColor = texture2D(uMainSampler, uv);"," vec4 maskColor = texture2D(uMaskSampler, uv);"," if (!uInvertMaskAlpha)"," {"," mainColor *= maskColor.a;"," }"," else"," {"," mainColor *= (1.0 - maskColor.a);"," }"," gl_FragColor = mainColor;","}"].join(` `)},85191:c=>{c.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_VS","precision mediump float;","attribute vec2 inPosition;","void main ()","{"," gl_Position = vec4(inPosition, 0.0, 1.0);","}"].join(` `)},96293:c=>{c.exports=["#define SHADER_NAME PHASER_COLORMATRIX_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float uColorMatrix[20];","uniform float uAlpha;","varying vec2 outTexCoord;","void main ()","{"," vec4 c = texture2D(uMainSampler, outTexCoord);"," if (uAlpha == 0.0)"," {"," gl_FragColor = c;"," return;"," }"," if (c.a > 0.0)"," {"," c.rgb /= c.a;"," }"," vec4 result;"," result.r = (uColorMatrix[0] * c.r) + (uColorMatrix[1] * c.g) + (uColorMatrix[2] * c.b) + (uColorMatrix[3] * c.a) + uColorMatrix[4];"," result.g = (uColorMatrix[5] * c.r) + (uColorMatrix[6] * c.g) + (uColorMatrix[7] * c.b) + (uColorMatrix[8] * c.a) + uColorMatrix[9];"," result.b = (uColorMatrix[10] * c.r) + (uColorMatrix[11] * c.g) + (uColorMatrix[12] * c.b) + (uColorMatrix[13] * c.a) + uColorMatrix[14];"," result.a = (uColorMatrix[15] * c.r) + (uColorMatrix[16] * c.g) + (uColorMatrix[17] * c.b) + (uColorMatrix[18] * c.a) + uColorMatrix[19];"," vec3 rgb = mix(c.rgb, result.rgb, uAlpha);"," rgb *= result.a;"," gl_FragColor = vec4(rgb, result.a);","}"].join(` @@ -4885,45 +4885,45 @@ return new `+this.key+`(); `)},41214:c=>{c.exports=["#define SHADER_NAME PHASER_MESH_FS","precision mediump float;","uniform vec3 uLightPosition;","uniform vec3 uLightAmbient;","uniform vec3 uLightDiffuse;","uniform vec3 uLightSpecular;","uniform vec3 uFogColor;","uniform float uFogNear;","uniform float uFogFar;","uniform vec3 uMaterialAmbient;","uniform vec3 uMaterialDiffuse;","uniform vec3 uMaterialSpecular;","uniform float uMaterialShine;","uniform vec3 uCameraPosition;","uniform sampler2D uTexture;","varying vec2 vTextureCoord;","varying vec3 vNormal;","varying vec3 vPosition;","void main (void)","{"," vec4 color = texture2D(uTexture, vTextureCoord);"," vec3 ambient = uLightAmbient * uMaterialAmbient;"," vec3 norm = normalize(vNormal);"," vec3 lightDir = normalize(uLightPosition - vPosition);"," float diff = max(dot(norm, lightDir), 0.0);"," vec3 diffuse = uLightDiffuse * (diff * uMaterialDiffuse);"," vec3 viewDir = normalize(uCameraPosition - vPosition);"," vec3 reflectDir = reflect(-lightDir, norm);"," float spec = pow(max(dot(viewDir, reflectDir), 0.0), uMaterialShine);"," vec3 specular = uLightSpecular * (spec * uMaterialSpecular);"," vec3 result = (ambient + diffuse + specular) * color.rgb;"," float depth = gl_FragCoord.z / gl_FragCoord.w;"," float fogFactor = smoothstep(uFogNear, uFogFar, depth);"," gl_FragColor.rgb = mix(result.rgb, uFogColor, fogFactor);"," gl_FragColor.a = color.a;","}"].join(` `)},39653:c=>{c.exports=["#define SHADER_NAME PHASER_MESH_VS","precision mediump float;","attribute vec3 aVertexPosition;","attribute vec3 aVertexNormal;","attribute vec2 aTextureCoord;","uniform mat4 uViewProjectionMatrix;","uniform mat4 uModelMatrix;","uniform mat4 uNormalMatrix;","varying vec2 vTextureCoord;","varying vec3 vNormal;","varying vec3 vPosition;","void main ()","{"," vTextureCoord = aTextureCoord;"," vPosition = vec3(uModelMatrix * vec4(aVertexPosition, 1.0));"," vNormal = vec3(uNormalMatrix * vec4(aVertexNormal, 1.0));"," gl_Position = uViewProjectionMatrix * uModelMatrix * vec4(aVertexPosition, 1.0);","}"].join(` `)},62143:c=>{c.exports=["#define SHADER_NAME PHASER_MOBILE_FS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," gl_FragColor = color;","}"].join(` -`)},47940:c=>{c.exports=["#define SHADER_NAME PHASER_MOBILE_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","uniform int uRoundPixels;","uniform vec2 uResolution;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTexId;","attribute float inTintEffect;","attribute vec4 inTint;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);"," if (uRoundPixels == 1)"," {"," gl_Position.xy = floor(((gl_Position.xy + 1.0) * 0.5 * uResolution) + 0.5) / uResolution * 2.0 - 1.0;"," }"," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join(` +`)},47940:c=>{c.exports=["#define SHADER_NAME PHASER_MOBILE_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","uniform vec2 uResolution;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTexId;","attribute float inTintEffect;","attribute vec4 inTint;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);"," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join(` `)},98840:c=>{c.exports=["#define SHADER_NAME PHASER_MULTI_FS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform sampler2D uMainSampler[%count%];","varying vec2 outTexCoord;","varying float outTexId;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec4 texture;"," %forloop%"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," gl_FragColor = color;","}"].join(` -`)},44667:c=>{c.exports=["#define SHADER_NAME PHASER_MULTI_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","uniform int uRoundPixels;","uniform vec2 uResolution;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTexId;","attribute float inTintEffect;","attribute vec4 inTint;","varying vec2 outTexCoord;","varying float outTexId;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);"," if (uRoundPixels == 1)"," {"," gl_Position.xy = floor(((gl_Position.xy + 1.0) * 0.5 * uResolution) + 0.5) / uResolution * 2.0 - 1.0;"," }"," outTexCoord = inTexCoord;"," outTexId = inTexId;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join(` +`)},44667:c=>{c.exports=["#define SHADER_NAME PHASER_MULTI_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","uniform vec2 uResolution;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTexId;","attribute float inTintEffect;","attribute vec4 inTint;","varying vec2 outTexCoord;","varying float outTexId;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);"," outTexCoord = inTexCoord;"," outTexId = inTexId;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join(` `)},4127:c=>{c.exports=["#define SHADER_NAME PHASER_POINTLIGHT_FS","precision mediump float;","uniform vec2 uResolution;","uniform float uCameraZoom;","varying vec4 lightPosition;","varying vec4 lightColor;","varying float lightRadius;","varying float lightAttenuation;","void main ()","{"," vec2 center = (lightPosition.xy + 1.0) * (uResolution.xy * 0.5);"," float distToSurf = length(center - gl_FragCoord.xy);"," float radius = 1.0 - distToSurf / (lightRadius * uCameraZoom);"," float intensity = smoothstep(0.0, 1.0, radius * lightAttenuation);"," vec4 color = vec4(intensity, intensity, intensity, 0.0) * lightColor;"," gl_FragColor = vec4(color.rgb * lightColor.a, color.a);","}"].join(` `)},89924:c=>{c.exports=["#define SHADER_NAME PHASER_POINTLIGHT_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","attribute vec2 inPosition;","attribute vec2 inLightPosition;","attribute vec4 inLightColor;","attribute float inLightRadius;","attribute float inLightAttenuation;","varying vec4 lightPosition;","varying vec4 lightColor;","varying float lightRadius;","varying float lightAttenuation;","void main ()","{"," lightColor = inLightColor;"," lightRadius = inLightRadius;"," lightAttenuation = inLightAttenuation;"," lightPosition = uProjectionMatrix * vec4(inLightPosition, 1.0, 1.0);"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);","}"].join(` `)},27681:c=>{c.exports=["#define SHADER_NAME PHASER_POSTFX_FS","precision mediump float;","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","void main ()","{"," gl_FragColor = texture2D(uMainSampler, outTexCoord);","}"].join(` `)},49627:c=>{c.exports=["#define SHADER_NAME PHASER_QUAD_VS","precision mediump float;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","varying vec2 outFragCoord;","varying vec2 outTexCoord;","void main ()","{"," outFragCoord = inPosition.xy * 0.5 + 0.5;"," outTexCoord = inTexCoord;"," gl_Position = vec4(inPosition, 0, 1);","}"].join(` `)},45561:c=>{c.exports=["#define SHADER_NAME PHASER_SINGLE_FS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," gl_FragColor = color;","}"].join(` -`)},60722:c=>{c.exports=["#define SHADER_NAME PHASER_SINGLE_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","uniform int uRoundPixels;","uniform vec2 uResolution;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTexId;","attribute float inTintEffect;","attribute vec4 inTint;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);"," if (uRoundPixels == 1)"," {"," gl_Position.xy = floor(((gl_Position.xy + 1.0) * 0.5 * uResolution) + 0.5) / uResolution * 2.0 - 1.0;"," }"," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join(` +`)},60722:c=>{c.exports=["#define SHADER_NAME PHASER_SINGLE_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","uniform vec2 uResolution;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTexId;","attribute float inTintEffect;","attribute vec4 inTint;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);"," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join(` `)},89350:(c,T,t)=>{/** - * @author Richard Davey - * @copyright 2013-2024 Phaser Studio Inc. + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */c.exports={AddBlendFrag:t(35407),BitmapMaskFrag:t(78908),BitmapMaskVert:t(85191),ColorMatrixFrag:t(96293),CopyFrag:t(36682),FXBarrelFrag:t(99155),FXBloomFrag:t(24400),FXBlurHighFrag:t(94328),FXBlurLowFrag:t(41514),FXBlurMedFrag:t(51078),FXBokehFrag:t(90610),FXCircleFrag:t(91899),FXDisplacementFrag:t(47838),FXGlowFrag:t(98656),FXGradientFrag:t(70463),FXPixelateFrag:t(50831),FXShadowFrag:t(92595),FXShineFrag:t(72464),FXVignetteFrag:t(39249),FXWipeFrag:t(2878),LightFrag:t(31063),LinearBlendFrag:t(48247),MeshFrag:t(41214),MeshVert:t(39653),MobileFrag:t(62143),MobileVert:t(47940),MultiFrag:t(98840),MultiVert:t(44667),PointLightFrag:t(4127),PointLightVert:t(89924),PostFXFrag:t(27681),QuadVert:t(49627),SingleFrag:t(45561),SingleVert:t(60722)}},93567:(c,T,t)=>{/** * @author Benjamin D. Richards * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=new d({initialize:function(r,n,e){this.webGLAttribLocation=-1,this.gl=r,this.program=n,this.name=e,this.createResource()},createResource:function(){if(this.program.webGLProgram===null){this.webGLAttribLocation=-1;return}var a=this.gl;a.isContextLost()||(this.webGLAttribLocation=a.getAttribLocation(this.program.webGLProgram,this.name))},destroy:function(){this.gl=null,this.program=null,this.name=null,this.webGLAttribLocation=-1}});c.exports=p},26128:(c,T,t)=>{/** + */var d=t(83419),p=new d({initialize:function(r,n,e){this.webGLAttribLocation=-1,this.gl=r,this.program=n,this.name=e,this.createResource()},createResource:function(){if(this.program.webGLProgram===null){this.webGLAttribLocation=-1;return}var l=this.gl;l.isContextLost()||(this.webGLAttribLocation=l.getAttribLocation(this.program.webGLProgram,this.name))},destroy:function(){this.gl=null,this.program=null,this.name=null,this.webGLAttribLocation=-1}});c.exports=p},26128:(c,T,t)=>{/** * @author Benjamin D. Richards * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=new d({initialize:function(r,n,e,s){this.webGLBuffer=null,this.gl=r,this.initialDataOrSize=n,this.bufferType=e,this.bufferUsage=s,this.createResource()},createResource:function(){if(this.initialDataOrSize!==null){var a=this.gl;if(!a.isContextLost()){var r=this.bufferType,n=a.createBuffer();this.webGLBuffer=n,a.bindBuffer(r,this.webGLBuffer),a.bufferData(r,this.initialDataOrSize,this.bufferUsage),a.bindBuffer(r,null)}}},destroy:function(){var a=this.gl;a.isContextLost()||a.deleteBuffer(this.webGLBuffer),this.webGLBuffer=null,this.initialDataOrSize=null,this.gl=null}});c.exports=p},84387:(c,T,t)=>{/** + */var d=t(83419),p=new d({initialize:function(r,n,e,s){this.webGLBuffer=null,this.gl=r,this.initialDataOrSize=n,this.bufferType=e,this.bufferUsage=s,this.createResource()},createResource:function(){if(this.initialDataOrSize!==null){var l=this.gl;if(!l.isContextLost()){var r=this.bufferType,n=l.createBuffer();this.webGLBuffer=n,l.bindBuffer(r,this.webGLBuffer),l.bufferData(r,this.initialDataOrSize,this.bufferUsage),l.bindBuffer(r,null)}}},destroy:function(){var l=this.gl;l.isContextLost()||l.deleteBuffer(this.webGLBuffer),this.webGLBuffer=null,this.initialDataOrSize=null,this.gl=null}});c.exports=p},84387:(c,T,t)=>{/** * @author Benjamin D. Richards * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p={36054:"Incomplete Attachment",36055:"Missing Attachment",36057:"Incomplete Dimensions",36061:"Framebuffer Unsupported"},a=new d({initialize:function(n,e,s,l,i){this.webGLFramebuffer=null,this.gl=n,this.width=e,this.height=s,this.renderTexture=l,this.addDepthStencilBuffer=!!i,this.createResource()},createResource:function(){var r=this.gl;if(!r.isContextLost()){var n=this.renderTexture,e=0,s=r.createFramebuffer();if(this.webGLFramebuffer=s,r.bindFramebuffer(r.FRAMEBUFFER,s),n.isRenderTexture=!0,n.isAlphaPremultiplied=!1,r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,n.webGLTexture,0),e=r.checkFramebufferStatus(r.FRAMEBUFFER),e!==r.FRAMEBUFFER_COMPLETE)throw new Error("Framebuffer status: "+(p[e]||e));if(this.addDepthStencilBuffer){var l=r.createRenderbuffer();r.bindRenderbuffer(r.RENDERBUFFER,l),r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,this.width,this.height),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,l)}r.bindFramebuffer(r.FRAMEBUFFER,null)}},destroy:function(){if(this.webGLFramebuffer!==null){var r=this.gl;if(!r.isContextLost()){r.bindFramebuffer(r.FRAMEBUFFER,this.webGLFramebuffer);var n=r.getFramebufferAttachmentParameter(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME);n!==null&&(r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,null,0),r.deleteTexture(n));var e=r.getFramebufferAttachmentParameter(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME);e!==null&&r.deleteRenderbuffer(e),r.bindFramebuffer(r.FRAMEBUFFER,null),r.deleteFramebuffer(this.webGLFramebuffer)}this.renderTexture=null,this.webGLFramebuffer=null,this.gl=null}}});c.exports=a},1482:(c,T,t)=>{/** + */var d=t(83419),p={36054:"Incomplete Attachment",36055:"Missing Attachment",36057:"Incomplete Dimensions",36061:"Framebuffer Unsupported"},l=new d({initialize:function(n,e,s,o,i){this.webGLFramebuffer=null,this.gl=n,this.width=e,this.height=s,this.renderTexture=o,this.addDepthStencilBuffer=!!i,this.createResource()},createResource:function(){var r=this.gl;if(!r.isContextLost()){var n=this.renderTexture,e=0,s=r.createFramebuffer();if(this.webGLFramebuffer=s,r.bindFramebuffer(r.FRAMEBUFFER,s),n.isRenderTexture=!0,n.isAlphaPremultiplied=!1,r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,n.webGLTexture,0),e=r.checkFramebufferStatus(r.FRAMEBUFFER),e!==r.FRAMEBUFFER_COMPLETE)throw new Error("Framebuffer status: "+(p[e]||e));if(this.addDepthStencilBuffer){var o=r.createRenderbuffer();r.bindRenderbuffer(r.RENDERBUFFER,o),r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,this.width,this.height),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,o)}r.bindFramebuffer(r.FRAMEBUFFER,null)}},destroy:function(){if(this.webGLFramebuffer!==null){var r=this.gl;if(!r.isContextLost()){r.bindFramebuffer(r.FRAMEBUFFER,this.webGLFramebuffer);var n=r.getFramebufferAttachmentParameter(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME);n!==null&&(r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,null,0),r.deleteTexture(n));var e=r.getFramebufferAttachmentParameter(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME);e!==null&&r.deleteRenderbuffer(e),r.bindFramebuffer(r.FRAMEBUFFER,null),r.deleteFramebuffer(this.webGLFramebuffer)}this.renderTexture=null,this.webGLFramebuffer=null,this.gl=null}}});c.exports=l},1482:(c,T,t)=>{/** * @author Benjamin D. Richards * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=new d({initialize:function(r,n,e){this.webGLProgram=null,this.gl=r,this.vertexSource=n,this.fragmentSource=e,this.createResource()},createResource:function(){var a=this.gl;if(!a.isContextLost()){var r=a.createProgram(),n=a.createShader(a.VERTEX_SHADER),e=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(n,this.vertexSource),a.shaderSource(e,this.fragmentSource),a.compileShader(n),a.compileShader(e);var s=`Shader failed: -`;if(!a.getShaderParameter(n,a.COMPILE_STATUS))throw new Error("Vertex "+s+a.getShaderInfoLog(n));if(!a.getShaderParameter(e,a.COMPILE_STATUS))throw new Error("Fragment "+s+a.getShaderInfoLog(e));if(a.attachShader(r,n),a.attachShader(r,e),a.linkProgram(r),!a.getProgramParameter(r,a.LINK_STATUS))throw new Error("Link "+s+a.getProgramInfoLog(r));a.useProgram(r),this.webGLProgram=r}},destroy:function(){this.webGLProgram&&(this.gl.isContextLost()||this.gl.deleteProgram(this.webGLProgram),this.webGLProgram=null,this.gl=null)}});c.exports=p},82751:(c,T,t)=>{/** + */var d=t(83419),p=new d({initialize:function(r,n,e){this.webGLProgram=null,this.gl=r,this.vertexSource=n,this.fragmentSource=e,this.createResource()},createResource:function(){var l=this.gl;if(!l.isContextLost()){var r=l.createProgram(),n=l.createShader(l.VERTEX_SHADER),e=l.createShader(l.FRAGMENT_SHADER);l.shaderSource(n,this.vertexSource),l.shaderSource(e,this.fragmentSource),l.compileShader(n),l.compileShader(e);var s=`Shader failed: +`;if(!l.getShaderParameter(n,l.COMPILE_STATUS))throw new Error("Vertex "+s+l.getShaderInfoLog(n));if(!l.getShaderParameter(e,l.COMPILE_STATUS))throw new Error("Fragment "+s+l.getShaderInfoLog(e));if(l.attachShader(r,n),l.attachShader(r,e),l.linkProgram(r),!l.getProgramParameter(r,l.LINK_STATUS))throw new Error("Link "+s+l.getProgramInfoLog(r));l.useProgram(r),this.webGLProgram=r}},destroy:function(){this.webGLProgram&&(this.gl.isContextLost()||this.gl.deleteProgram(this.webGLProgram),this.webGLProgram=null,this.gl=null)}});c.exports=p},82751:(c,T,t)=>{/** * @author Benjamin D. Richards * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(50030),a=new d({initialize:function(n,e,s,l,i,o,u,h,f,v,m,x,g){this.webGLTexture=null,this.isRenderTexture=!1,this.gl=n,this.mipLevel=e,this.minFilter=s,this.magFilter=l,this.wrapT=i,this.wrapS=o,this.format=u,this.pixels=h,this.width=f,this.height=v,this.pma=m??!0,this.forceSize=!!x,this.flipY=!!g,this.__SPECTOR_Metadata={},this.createResource()},createResource:function(){var r=this.gl;if(!r.isContextLost()){if(this.pixels instanceof a){this.webGLTexture=this.pixels.webGLTexture;return}var n=r.createTexture();n.__SPECTOR_Metadata=this.__SPECTOR_Metadata,this.webGLTexture=n,this._processTexture()}},update:function(r,n,e,s,l,i,o,u,h){if(!(n===0||e===0)){this.pixels=r,this.width=n,this.height=e,this.flipY=s,this.wrapS=l,this.wrapT=i,this.minFilter=o,this.magFilter=u,this.format=h;var f=this.gl;f.isContextLost()||this._processTexture()}},_processTexture:function(){var r=this.gl;r.activeTexture(r.TEXTURE0);var n=r.getParameter(r.TEXTURE_BINDING_2D);r.bindTexture(r.TEXTURE_2D,this.webGLTexture),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.minFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.magFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,this.wrapS),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,this.wrapT),r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.pma),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,this.flipY);var e=this.pixels,s=this.mipLevel,l=this.width,i=this.height,o=this.format,u=!1;if(e==null)r.texImage2D(r.TEXTURE_2D,s,o,l,i,0,o,r.UNSIGNED_BYTE,null),u=p(l,i);else if(e.compressed){l=e.width,i=e.height,u=e.generateMipmap;for(var h=0;h{/** + */var d=t(83419),p=t(50030),l=new d({initialize:function(n,e,s,o,i,a,u,h,f,v,m,g,x){this.webGLTexture=null,this.isRenderTexture=!1,this.gl=n,this.mipLevel=e,this.minFilter=s,this.magFilter=o,this.wrapT=i,this.wrapS=a,this.format=u,this.pixels=h,this.width=f,this.height=v,this.pma=m??!0,this.forceSize=!!g,this.flipY=!!x,this.__SPECTOR_Metadata={},this.createResource()},createResource:function(){var r=this.gl;if(!r.isContextLost()){if(this.pixels instanceof l){this.webGLTexture=this.pixels.webGLTexture;return}var n=r.createTexture();n.__SPECTOR_Metadata=this.__SPECTOR_Metadata,this.webGLTexture=n,this._processTexture()}},update:function(r,n,e,s,o,i,a,u,h){if(!(n===0||e===0)){this.pixels=r,this.width=n,this.height=e,this.flipY=s,this.wrapS=o,this.wrapT=i,this.minFilter=a,this.magFilter=u,this.format=h;var f=this.gl;f.isContextLost()||this._processTexture()}},_processTexture:function(){var r=this.gl;r.activeTexture(r.TEXTURE0);var n=r.getParameter(r.TEXTURE_BINDING_2D);r.bindTexture(r.TEXTURE_2D,this.webGLTexture),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.minFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.magFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,this.wrapS),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,this.wrapT),r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.pma),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,this.flipY);var e=this.pixels,s=this.mipLevel,o=this.width,i=this.height,a=this.format,u=!1;if(e==null)r.texImage2D(r.TEXTURE_2D,s,a,o,i,0,a,r.UNSIGNED_BYTE,null),u=p(o,i);else if(e.compressed){o=e.width,i=e.height,u=e.generateMipmap;for(var h=0;h{/** * @author Benjamin D. Richards * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=new d({initialize:function(r,n,e){this.webGLUniformLocation=null,this.gl=r,this.program=n,this.name=e,this.createResource()},createResource:function(){if(this.program.webGLProgram===null){this.webGLUniformLocation=null;return}var a=this.gl;a.isContextLost()||(this.webGLUniformLocation=a.getUniformLocation(this.program.webGLProgram,this.name))},destroy:function(){this.gl=null,this.program=null,this.name=null,this.webGLUniformLocation=null}});c.exports=p},9503:(c,T,t)=>{/** + */var d=t(83419),p=new d({initialize:function(r,n,e){this.webGLUniformLocation=null,this.gl=r,this.program=n,this.name=e,this.createResource()},createResource:function(){if(this.program.webGLProgram===null){this.webGLUniformLocation=null;return}var l=this.gl;l.isContextLost()||(this.webGLUniformLocation=l.getUniformLocation(this.program.webGLProgram,this.name))},destroy:function(){this.gl=null,this.program=null,this.name=null,this.webGLUniformLocation=null}});c.exports=p},9503:(c,T,t)=>{/** * @author Benjamin D. Richards * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4931,7 +4931,7 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(13560),p=t(83419),a=t(50792),r=t(97480),n=t(8443),e=t(57811),s=t(74403),l=t(45818),i=t(29747),o=t(87841),u=t(86555),h=t(56583),f=t(26099),v=t(38058),m=new p({Extends:a,initialize:function(g){a.call(this),this.game=g,this.canvas,this.canvasBounds=new o,this.parent=null,this.parentIsWindow=!1,this.parentSize=new u,this.gameSize=new u,this.baseSize=new u,this.displaySize=new u,this.scaleMode=d.SCALE_MODE.NONE,this.zoom=1,this._resetZoom=!1,this.displayScale=new f(1,1),this.autoRound=!1,this.autoCenter=d.CENTER.NO_CENTER,this.orientation=d.ORIENTATION.LANDSCAPE,this.fullscreen,this.fullscreenTarget=null,this._createdFullscreenTarget=!1,this.dirty=!1,this.resizeInterval=500,this._lastCheck=0,this._checkOrientation=!1,this.domlisteners={orientationChange:i,windowResize:i,fullScreenChange:i,fullScreenError:i}},preBoot:function(){this.parseConfig(this.game.config),this.game.events.once(n.BOOT,this.boot,this)},boot:function(){var x=this.game;this.canvas=x.canvas,this.fullscreen=x.device.fullscreen,this.scaleMode!==d.SCALE_MODE.RESIZE&&this.scaleMode!==d.SCALE_MODE.EXPAND&&this.displaySize.setAspectMode(this.scaleMode),this.scaleMode===d.SCALE_MODE.NONE?this.resize(this.width,this.height):(this.getParentBounds(),this.parentSize.width>0&&this.parentSize.height>0&&this.displaySize.setParent(this.parentSize),this.refresh()),x.events.on(n.PRE_STEP,this.step,this),x.events.once(n.READY,this.refresh,this),x.events.once(n.DESTROY,this.destroy,this),this.startListeners()},parseConfig:function(x){this.getParent(x),this.getParentBounds();var g=x.width,y=x.height,S=x.scaleMode,C=x.zoom,E=x.autoRound;if(typeof g=="string")if(g.substr(-1)!=="%")g=parseInt(g,10);else{var A=this.parentSize.width;A===0&&(A=window.innerWidth);var P=parseInt(g,10)/100;g=Math.floor(A*P)}if(typeof y=="string")if(y.substr(-1)!=="%")y=parseInt(y,10);else{var M=this.parentSize.height;M===0&&(M=window.innerHeight);var F=parseInt(y,10)/100;y=Math.floor(M*F)}this.scaleMode=S,this.autoRound=E,this.autoCenter=x.autoCenter,this.resizeInterval=x.resizeInterval,E&&(g=Math.floor(g),y=Math.floor(y)),this.gameSize.setSize(g,y),C===d.ZOOM.MAX_ZOOM&&(C=this.getMaxZoom()),this.zoom=C,C!==1&&(this._resetZoom=!0),this.baseSize.setSize(g,y),E&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),x.minWidth>0&&this.displaySize.setMin(x.minWidth*C,x.minHeight*C),x.maxWidth>0&&this.displaySize.setMax(x.maxWidth*C,x.maxHeight*C),this.displaySize.setSize(g,y),(x.snapWidth>0||x.snapHeight>0)&&this.displaySize.setSnap(x.snapWidth,x.snapHeight),this.orientation=l(g,y)},getParent:function(x){var g=x.parent;if(g!==null){if(this.parent=s(g),this.parentIsWindow=this.parent===document.body,x.expandParent&&x.scaleMode!==d.SCALE_MODE.NONE){var y=this.parent.getBoundingClientRect();(this.parentIsWindow||y.height===0)&&(document.documentElement.style.height="100%",document.body.style.height="100%",y=this.parent.getBoundingClientRect(),!this.parentIsWindow&&y.height===0&&(this.parent.style.overflow="hidden",this.parent.style.width="100%",this.parent.style.height="100%"))}x.fullscreenTarget&&!this.fullscreenTarget&&(this.fullscreenTarget=s(x.fullscreenTarget))}},getParentBounds:function(){if(!this.parent)return!1;var x=this.parentSize,g=this.parent.getBoundingClientRect();this.parentIsWindow&&this.game.device.os.iOS&&(g.height=e(!0));var y=g.width,S=g.height;if(x.width!==y||x.height!==S)return x.setSize(y,S),!0;if(this.canvas){var C=this.canvasBounds,E=this.canvas.getBoundingClientRect();if(E.x!==C.x||E.y!==C.y)return!0}return!1},lockOrientation:function(x){var g=screen.lockOrientation||screen.mozLockOrientation||screen.msLockOrientation;return g?g.call(screen,x):!1},setParentSize:function(x,g){return this.parentSize.setSize(x,g),this.refresh()},setGameSize:function(x,g){var y=this.autoRound;y&&(x=Math.floor(x),g=Math.floor(g));var S=this.width,C=this.height;return this.gameSize.resize(x,g),this.baseSize.resize(x,g),y&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setAspectRatio(x/g),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height,this.refresh(S,C)},resize:function(x,g){var y=this.zoom,S=this.autoRound;S&&(x=Math.floor(x),g=Math.floor(g));var C=this.width,E=this.height;this.gameSize.resize(x,g),this.baseSize.resize(x,g),S&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(x*y,g*y),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height;var A=this.canvas.style,P=x*y,M=g*y;return S&&(P=Math.floor(P),M=Math.floor(M)),(P!==x||M!==g)&&(A.width=P+"px",A.height=M+"px"),this.refresh(C,E)},setZoom:function(x){return this.zoom=x,this._resetZoom=!0,this.refresh()},setMaxZoom:function(){return this.zoom=this.getMaxZoom(),this._resetZoom=!0,this.refresh()},setSnap:function(x,g){return x===void 0&&(x=0),g===void 0&&(g=x),this.displaySize.setSnap(x,g),this.refresh()},refresh:function(x,g){x===void 0&&(x=this.width),g===void 0&&(g=this.height),this.updateScale(),this.updateBounds(),this.updateOrientation(),this.displayScale.set(this.baseSize.width/this.canvasBounds.width,this.baseSize.height/this.canvasBounds.height);var y=this.game.domContainer;if(y){this.baseSize.setCSS(y);var S=this.canvas.style,C=y.style;C.transform="scale("+this.displaySize.width/this.baseSize.width+","+this.displaySize.height/this.baseSize.height+")",C.marginLeft=S.marginLeft,C.marginTop=S.marginTop}return this.emit(r.RESIZE,this.gameSize,this.baseSize,this.displaySize,x,g),this},updateOrientation:function(){if(this._checkOrientation){this._checkOrientation=!1;var x=l(this.width,this.height);x!==this.orientation&&(this.orientation=x,this.emit(r.ORIENTATION_CHANGE,x))}},updateScale:function(){var x=this.canvas.style,g=this.gameSize.width,y=this.gameSize.height,S,C,E=this.zoom,A=this.autoRound;if(this.scaleMode===d.SCALE_MODE.NONE)this.displaySize.setSize(g*E,y*E),S=this.displaySize.width,C=this.displaySize.height,A&&(S=Math.floor(S),C=Math.floor(C)),this._resetZoom&&(x.width=S+"px",x.height=C+"px",this._resetZoom=!1);else if(this.scaleMode===d.SCALE_MODE.RESIZE)this.displaySize.setSize(this.parentSize.width,this.parentSize.height),this.gameSize.setSize(this.displaySize.width,this.displaySize.height),this.baseSize.setSize(this.displaySize.width,this.displaySize.height),S=this.displaySize.width,C=this.displaySize.height,A&&(S=Math.floor(S),C=Math.floor(C)),this.canvas.width=S,this.canvas.height=C;else if(this.scaleMode===d.SCALE_MODE.EXPAND){this.displaySize.setSize(this.parentSize.width,this.parentSize.height),S=this.displaySize.width,C=this.displaySize.height,A&&(S=Math.floor(S),C=Math.floor(C)),x.width=S+"px",x.height=C+"px";var P=this.parentSize.width/this.gameSize.width,M=this.parentSize.height/this.gameSize.height;P=0?0:-(C.x*E.x),P=C.y>=0?0:-(C.y*E.y),M;S.width>=C.width?M=y.width:M=y.width-(C.width-S.width)*E.x;var F;return S.height>=C.height?F=y.height:F=y.height-(C.height-S.height)*E.y,g.setTo(A,P,M,F),x&&(g.width/=x.zoomX,g.height/=x.zoomY,g.centerX=x.centerX+x.scrollX,g.centerY=x.centerY+x.scrollY),g},step:function(x,g){this.parent&&(this._lastCheck+=g,(this.dirty||this._lastCheck>this.resizeInterval)&&(this.getParentBounds()&&this.refresh(),this.dirty=!1,this._lastCheck=0))},stopListeners:function(){var x=this.domlisteners;window.removeEventListener("orientationchange",x.orientationChange,!1),window.removeEventListener("resize",x.windowResize,!1);var g=["webkit","moz",""];g.forEach(function(y){document.removeEventListener(y+"fullscreenchange",x.fullScreenChange,!1),document.removeEventListener(y+"fullscreenerror",x.fullScreenError,!1)}),document.removeEventListener("MSFullscreenChange",x.fullScreenChange,!1),document.removeEventListener("MSFullscreenError",x.fullScreenError,!1)},destroy:function(){this.removeAllListeners(),this.stopListeners(),this.game=null,this.canvas=null,this.canvasBounds=null,this.parent=null,this.fullscreenTarget=null,this.parentSize.destroy(),this.gameSize.destroy(),this.baseSize.destroy(),this.displaySize.destroy()},isFullscreen:{get:function(){return this.fullscreen.active}},width:{get:function(){return this.gameSize.width}},height:{get:function(){return this.gameSize.height}},isPortrait:{get:function(){return this.orientation===d.ORIENTATION.PORTRAIT}},isLandscape:{get:function(){return this.orientation===d.ORIENTATION.LANDSCAPE}},isGamePortrait:{get:function(){return this.height>this.width}},isGameLandscape:{get:function(){return this.width>this.height}}});c.exports=m},64743:c=>{/** + */var d=t(13560),p=t(83419),l=t(50792),r=t(97480),n=t(8443),e=t(57811),s=t(74403),o=t(45818),i=t(29747),a=t(87841),u=t(86555),h=t(56583),f=t(26099),v=t(38058),m=new p({Extends:l,initialize:function(x){l.call(this),this.game=x,this.canvas,this.canvasBounds=new a,this.parent=null,this.parentIsWindow=!1,this.parentSize=new u,this.gameSize=new u,this.baseSize=new u,this.displaySize=new u,this.scaleMode=d.SCALE_MODE.NONE,this.zoom=1,this._resetZoom=!1,this.displayScale=new f(1,1),this.autoRound=!1,this.autoCenter=d.CENTER.NO_CENTER,this.orientation=d.ORIENTATION.LANDSCAPE,this.fullscreen,this.fullscreenTarget=null,this._createdFullscreenTarget=!1,this.dirty=!1,this.resizeInterval=500,this._lastCheck=0,this._checkOrientation=!1,this.domlisteners={orientationChange:i,windowResize:i,fullScreenChange:i,fullScreenError:i}},preBoot:function(){this.parseConfig(this.game.config),this.game.events.once(n.BOOT,this.boot,this)},boot:function(){var g=this.game;this.canvas=g.canvas,this.fullscreen=g.device.fullscreen,this.scaleMode!==d.SCALE_MODE.RESIZE&&this.scaleMode!==d.SCALE_MODE.EXPAND&&this.displaySize.setAspectMode(this.scaleMode),this.scaleMode===d.SCALE_MODE.NONE?this.resize(this.width,this.height):(this.getParentBounds(),this.parentSize.width>0&&this.parentSize.height>0&&this.displaySize.setParent(this.parentSize),this.refresh()),g.events.on(n.PRE_STEP,this.step,this),g.events.once(n.READY,this.refresh,this),g.events.once(n.DESTROY,this.destroy,this),this.startListeners()},parseConfig:function(g){this.getParent(g),this.getParentBounds();var x=g.width,y=g.height,S=g.scaleMode,C=g.zoom,E=g.autoRound;if(typeof x=="string")if(x.substr(-1)!=="%")x=parseInt(x,10);else{var M=this.parentSize.width;M===0&&(M=window.innerWidth);var P=parseInt(x,10)/100;x=Math.floor(M*P)}if(typeof y=="string")if(y.substr(-1)!=="%")y=parseInt(y,10);else{var A=this.parentSize.height;A===0&&(A=window.innerHeight);var R=parseInt(y,10)/100;y=Math.floor(A*R)}this.scaleMode=S,this.autoRound=E,this.autoCenter=g.autoCenter,this.resizeInterval=g.resizeInterval,E&&(x=Math.floor(x),y=Math.floor(y)),this.gameSize.setSize(x,y),C===d.ZOOM.MAX_ZOOM&&(C=this.getMaxZoom()),this.zoom=C,C!==1&&(this._resetZoom=!0),this.baseSize.setSize(x,y),E&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),g.minWidth>0&&this.displaySize.setMin(g.minWidth*C,g.minHeight*C),g.maxWidth>0&&this.displaySize.setMax(g.maxWidth*C,g.maxHeight*C),this.displaySize.setSize(x,y),(g.snapWidth>0||g.snapHeight>0)&&this.displaySize.setSnap(g.snapWidth,g.snapHeight),this.orientation=o(x,y)},getParent:function(g){var x=g.parent;if(x!==null){if(this.parent=s(x),this.parentIsWindow=this.parent===document.body,g.expandParent&&g.scaleMode!==d.SCALE_MODE.NONE){var y=this.parent.getBoundingClientRect();(this.parentIsWindow||y.height===0)&&(document.documentElement.style.height="100%",document.body.style.height="100%",y=this.parent.getBoundingClientRect(),!this.parentIsWindow&&y.height===0&&(this.parent.style.overflow="hidden",this.parent.style.width="100%",this.parent.style.height="100%"))}g.fullscreenTarget&&!this.fullscreenTarget&&(this.fullscreenTarget=s(g.fullscreenTarget))}},getParentBounds:function(){if(!this.parent)return!1;var g=this.parentSize,x=this.parent.getBoundingClientRect();this.parentIsWindow&&this.game.device.os.iOS&&(x.height=e(!0));var y=x.width,S=x.height;if(g.width!==y||g.height!==S)return g.setSize(y,S),!0;if(this.canvas){var C=this.canvasBounds,E=this.canvas.getBoundingClientRect();if(E.x!==C.x||E.y!==C.y)return!0}return!1},lockOrientation:function(g){var x=screen.lockOrientation||screen.mozLockOrientation||screen.msLockOrientation;return x?x.call(screen,g):!1},setParentSize:function(g,x){return this.parentSize.setSize(g,x),this.refresh()},setGameSize:function(g,x){var y=this.autoRound;y&&(g=Math.floor(g),x=Math.floor(x));var S=this.width,C=this.height;return this.gameSize.resize(g,x),this.baseSize.resize(g,x),y&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setAspectRatio(g/x),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height,this.refresh(S,C)},resize:function(g,x){var y=this.zoom,S=this.autoRound;S&&(g=Math.floor(g),x=Math.floor(x));var C=this.width,E=this.height;this.gameSize.resize(g,x),this.baseSize.resize(g,x),S&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(g*y,x*y),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height;var M=this.canvas.style,P=g*y,A=x*y;return S&&(P=Math.floor(P),A=Math.floor(A)),(P!==g||A!==x)&&(M.width=P+"px",M.height=A+"px"),this.refresh(C,E)},setZoom:function(g){return this.zoom=g,this._resetZoom=!0,this.refresh()},setMaxZoom:function(){return this.zoom=this.getMaxZoom(),this._resetZoom=!0,this.refresh()},setSnap:function(g,x){return g===void 0&&(g=0),x===void 0&&(x=g),this.displaySize.setSnap(g,x),this.refresh()},refresh:function(g,x){g===void 0&&(g=this.width),x===void 0&&(x=this.height),this.updateScale(),this.updateBounds(),this.updateOrientation(),this.displayScale.set(this.baseSize.width/this.canvasBounds.width,this.baseSize.height/this.canvasBounds.height);var y=this.game.domContainer;if(y){this.baseSize.setCSS(y);var S=this.canvas.style,C=y.style;C.transform="scale("+this.displaySize.width/this.baseSize.width+","+this.displaySize.height/this.baseSize.height+")",C.marginLeft=S.marginLeft,C.marginTop=S.marginTop}return this.emit(r.RESIZE,this.gameSize,this.baseSize,this.displaySize,g,x),this},updateOrientation:function(){if(this._checkOrientation){this._checkOrientation=!1;var g=o(this.width,this.height);g!==this.orientation&&(this.orientation=g,this.emit(r.ORIENTATION_CHANGE,g))}},updateScale:function(){var g=this.canvas.style,x=this.gameSize.width,y=this.gameSize.height,S,C,E=this.zoom,M=this.autoRound;if(this.scaleMode===d.SCALE_MODE.NONE)this.displaySize.setSize(x*E,y*E),S=this.displaySize.width,C=this.displaySize.height,M&&(S=Math.floor(S),C=Math.floor(C)),this._resetZoom&&(g.width=S+"px",g.height=C+"px",this._resetZoom=!1);else if(this.scaleMode===d.SCALE_MODE.RESIZE)this.displaySize.setSize(this.parentSize.width,this.parentSize.height),this.gameSize.setSize(this.displaySize.width,this.displaySize.height),this.baseSize.setSize(this.displaySize.width,this.displaySize.height),S=this.displaySize.width,C=this.displaySize.height,M&&(S=Math.floor(S),C=Math.floor(C)),this.canvas.width=S,this.canvas.height=C;else if(this.scaleMode===d.SCALE_MODE.EXPAND){var P=this.game.config.width,A=this.game.config.height;this.displaySize.setSize(this.parentSize.width,this.parentSize.height),S=this.displaySize.width,C=this.displaySize.height,M&&(S=Math.floor(S),C=Math.floor(C)),g.width=S+"px",g.height=C+"px";var R=this.parentSize.width/P,F=this.parentSize.height/A;R=0?0:-(C.x*E.x),P=C.y>=0?0:-(C.y*E.y),A;S.width>=C.width?A=y.width:A=y.width-(C.width-S.width)*E.x;var R;return S.height>=C.height?R=y.height:R=y.height-(C.height-S.height)*E.y,x.setTo(M,P,A,R),g&&(x.width/=g.zoomX,x.height/=g.zoomY,x.centerX=g.centerX+g.scrollX,x.centerY=g.centerY+g.scrollY),x},step:function(g,x){this.parent&&(this._lastCheck+=x,(this.dirty||this._lastCheck>this.resizeInterval)&&(this.getParentBounds()&&this.refresh(),this.dirty=!1,this._lastCheck=0))},stopListeners:function(){var g=this.domlisteners;screen.orientation&&screen.orientation.addEventListener?screen.orientation.removeEventListener("change",g.orientationChange,!1):window.removeEventListener("orientationchange",g.orientationChange,!1),window.removeEventListener("resize",g.windowResize,!1);var x=["webkit","moz",""];x.forEach(function(y){document.removeEventListener(y+"fullscreenchange",g.fullScreenChange,!1),document.removeEventListener(y+"fullscreenerror",g.fullScreenError,!1)}),document.removeEventListener("MSFullscreenChange",g.fullScreenChange,!1),document.removeEventListener("MSFullscreenError",g.fullScreenError,!1)},destroy:function(){this.removeAllListeners(),this.stopListeners(),this.game=null,this.canvas=null,this.canvasBounds=null,this.parent=null,this.fullscreenTarget=null,this.parentSize.destroy(),this.gameSize.destroy(),this.baseSize.destroy(),this.displaySize.destroy()},isFullscreen:{get:function(){return this.fullscreen.active}},width:{get:function(){return this.gameSize.width}},height:{get:function(){return this.gameSize.height}},isPortrait:{get:function(){return this.orientation===d.ORIENTATION.PORTRAIT}},isLandscape:{get:function(){return this.orientation===d.ORIENTATION.LANDSCAPE}},isGamePortrait:{get:function(){return this.height>this.width}},isGameLandscape:{get:function(){return this.width>this.height}}});c.exports=m},64743:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4939,7 +4939,7 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */c.exports={LANDSCAPE:"landscape-primary",PORTRAIT:"portrait-primary"}},81050:c=>{/** + */c.exports={LANDSCAPE:"landscape-primary",LANDSCAPE_SECONDARY:"landscape-secondary",PORTRAIT:"portrait-primary",PORTRAIT_SECONDARY:"portrait-secondary"}},81050:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4983,15 +4983,15 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(79291),p=t(13560),a={Center:t(64743),Events:t(97480),Orientation:t(39218),ScaleManager:t(76531),ScaleModes:t(81050),Zoom:t(80805)};a=d(!1,a,p.CENTER),a=d(!1,a,p.ORIENTATION),a=d(!1,a,p.SCALE_MODE),a=d(!1,a,p.ZOOM),c.exports=a},27397:(c,T,t)=>{/** + */var d=t(79291),p=t(13560),l={Center:t(64743),Events:t(97480),Orientation:t(39218),ScaleManager:t(76531),ScaleModes:t(81050),Zoom:t(80805)};l=d(!1,l,p.CENTER),l=d(!1,l,p.ORIENTATION),l=d(!1,l,p.SCALE_MODE),l=d(!1,l,p.ZOOM),c.exports=l},27397:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(95540),p=t(35355),a=function(r){var n=r.game.config.defaultPhysicsSystem,e=d(r.settings,"physics",!1);if(!(!n&&!e)){var s=[];if(n&&s.push(p(n+"Physics")),e)for(var l in e)l=p(l.concat("Physics")),s.indexOf(l)===-1&&s.push(l);return s}};c.exports=a},52106:(c,T,t)=>{/** + */var d=t(95540),p=t(35355),l=function(r){var n=r.game.config.defaultPhysicsSystem,e=d(r.settings,"physics",!1);if(!(!n&&!e)){var s=[];if(n&&s.push(p(n+"Physics")),e)for(var o in e)o=p(o.concat("Physics")),s.indexOf(o)===-1&&s.push(o);return s}};c.exports=l},52106:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(95540),p=function(a){var r=a.plugins.getDefaultScenePlugins(),n=d(a.settings,"plugins",!1);return Array.isArray(n)?n:r||[]};c.exports=p},87033:c=>{/** + */var d=t(95540),p=function(l){var r=l.plugins.getDefaultScenePlugins(),n=d(l.settings,"plugins",!1);return Array.isArray(n)?n:r||[]};c.exports=p},87033:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -4999,24 +4999,24 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(2368),a=new d({initialize:function(n){this.sys=new p(this,n),this.game,this.anims,this.cache,this.registry,this.sound,this.textures,this.events,this.cameras,this.add,this.make,this.scene,this.children,this.lights,this.data,this.input,this.load,this.time,this.tweens,this.physics,this.matter,this.scale,this.plugins,this.renderer},update:function(){}});c.exports=a},60903:(c,T,t)=>{/** + */var d=t(83419),p=t(2368),l=new d({initialize:function(n){this.sys=new p(this,n),this.game,this.anims,this.cache,this.registry,this.sound,this.textures,this.events,this.cameras,this.add,this.make,this.scene,this.children,this.lights,this.data,this.input,this.load,this.time,this.tweens,this.physics,this.matter,this.scale,this.plugins,this.renderer},update:function(){}});c.exports=l},60903:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(89993),a=t(44594),r=t(8443),n=t(35154),e=t(54899),s=t(29747),l=t(97482),i=t(2368),o=new d({initialize:function(h,f){if(this.game=h,this.keys={},this.scenes=[],this._pending=[],this._start=[],this._queue=[],this._data={},this.isProcessing=!1,this.isBooted=!1,this.customViewports=0,this.systemScene,f){Array.isArray(f)||(f=[f]);for(var v=0;v-1&&(delete this.keys[v],this.scenes.splice(f,1),this._start.indexOf(v)>-1&&(f=this._start.indexOf(v),this._start.splice(f,1)),h.sys.destroy())}return this},bootScene:function(u){var h=u.sys,f=h.settings;h.sceneUpdate=s,u.init&&(u.init.call(u,f.data),f.status=p.INIT,f.isTransition&&h.events.emit(a.TRANSITION_INIT,f.transitionFrom,f.transitionDuration));var v;h.load&&(v=h.load,v.reset()),v&&u.preload?(u.preload.call(u),f.status=p.LOADING,v.once(e.COMPLETE,this.loadComplete,this),v.start()):this.create(u)},loadComplete:function(u){this.game.sound&&this.game.sound.onBlurPausedSounds&&this.game.sound.unlock(),this.create(u.scene)},payloadComplete:function(u){this.bootScene(u.scene)},update:function(u,h){this.processQueue(),this.isProcessing=!0;for(var f=this.scenes.length-1;f>=0;f--){var v=this.scenes[f].sys;v.settings.status>p.START&&v.settings.status<=p.RUNNING&&v.step(u,h),v.scenePlugin&&v.scenePlugin._target&&v.scenePlugin.step(u,h)}},render:function(u){for(var h=0;h=p.LOADING&&f.settings.status=p.START&&m<=p.CREATING)return this;if(m>=p.RUNNING&&m<=p.SLEEPING)v.shutdown(),v.sceneUpdate=s,v.start(h);else{v.sceneUpdate=s,v.start(h);var x;if(v.load&&(x=v.load),x&&v.settings.hasOwnProperty("pack")&&(x.reset(),x.addPack({payload:v.settings.pack})))return v.settings.status=p.LOADING,x.once(e.COMPLETE,this.payloadComplete,this),x.start(),this}return this.bootScene(f),this},stop:function(u,h){var f=this.getScene(u);if(f&&!f.sys.isTransitioning()&&f.sys.settings.status!==p.SHUTDOWN){var v=f.sys.load;v&&(v.off(e.COMPLETE,this.loadComplete,this),v.off(e.COMPLETE,this.payloadComplete,this)),f.sys.shutdown(h)}return this},switch:function(u,h){var f=this.getScene(u),v=this.getScene(h);return f&&v&&f!==v&&(this.sleep(u),this.isSleeping(h)?this.wake(h):this.start(h)),this},getAt:function(u){return this.scenes[u]},getIndex:function(u){var h=this.getScene(u);return this.scenes.indexOf(h)},bringToTop:function(u){if(this.isProcessing)this._queue.push({op:"bringToTop",keyA:u,keyB:null});else{var h=this.getIndex(u);if(h!==-1&&h0){var f=this.getScene(u);this.scenes.splice(h,1),this.scenes.unshift(f)}}return this},moveDown:function(u){if(this.isProcessing)this._queue.push({op:"moveDown",keyA:u,keyB:null});else{var h=this.getIndex(u);if(h>0){var f=h-1,v=this.getScene(u),m=this.getAt(f);this.scenes[h]=m,this.scenes[f]=v}}return this},moveUp:function(u){if(this.isProcessing)this._queue.push({op:"moveUp",keyA:u,keyB:null});else{var h=this.getIndex(u);if(hf),0,m)}}return this},moveBelow:function(u,h){if(u===h)return this;if(this.isProcessing)this._queue.push({op:"moveBelow",keyA:u,keyB:h});else{var f=this.getIndex(u),v=this.getIndex(h);if(f!==-1&&v!==-1&&v>f){var m=this.getAt(v);this.scenes.splice(v,1),f===0?this.scenes.unshift(m):this.scenes.splice(f-(v{/** + */var d=t(83419),p=t(89993),l=t(44594),r=t(8443),n=t(35154),e=t(54899),s=t(29747),o=t(97482),i=t(2368),a=new d({initialize:function(h,f){if(this.game=h,this.keys={},this.scenes=[],this._pending=[],this._start=[],this._queue=[],this._data={},this.isProcessing=!1,this.isBooted=!1,this.customViewports=0,this.systemScene,f){Array.isArray(f)||(f=[f]);for(var v=0;v-1&&(delete this.keys[v],this.scenes.splice(f,1),this._start.indexOf(v)>-1&&(f=this._start.indexOf(v),this._start.splice(f,1)),h.sys.destroy()),this},bootScene:function(u){var h=u.sys,f=h.settings;h.sceneUpdate=s,u.init&&(u.init.call(u,f.data),f.status=p.INIT,f.isTransition&&h.events.emit(l.TRANSITION_INIT,f.transitionFrom,f.transitionDuration));var v;h.load&&(v=h.load,v.reset()),v&&u.preload?(u.preload.call(u),f.status=p.LOADING,v.once(e.COMPLETE,this.loadComplete,this),v.start()):this.create(u)},loadComplete:function(u){this.create(u.scene)},payloadComplete:function(u){this.bootScene(u.scene)},update:function(u,h){this.processQueue(),this.isProcessing=!0;for(var f=this.scenes.length-1;f>=0;f--){var v=this.scenes[f].sys;v.settings.status>p.START&&v.settings.status<=p.RUNNING&&v.step(u,h),v.scenePlugin&&v.scenePlugin._target&&v.scenePlugin.step(u,h)}},render:function(u){for(var h=0;h=p.LOADING&&f.settings.status=p.START&&m<=p.CREATING)return this;if(m>=p.RUNNING&&m<=p.SLEEPING)v.shutdown(),v.sceneUpdate=s,v.start(h);else{v.sceneUpdate=s,v.start(h);var g;if(v.load&&(g=v.load),g&&v.settings.hasOwnProperty("pack")&&(g.reset(),g.addPack({payload:v.settings.pack})))return v.settings.status=p.LOADING,g.once(e.COMPLETE,this.payloadComplete,this),g.start(),this}return this.bootScene(f),this},stop:function(u,h){var f=this.getScene(u);if(f&&!f.sys.isTransitioning()&&f.sys.settings.status!==p.SHUTDOWN){var v=f.sys.load;v&&(v.off(e.COMPLETE,this.loadComplete,this),v.off(e.COMPLETE,this.payloadComplete,this)),f.sys.shutdown(h)}return this},switch:function(u,h,f){var v=this.getScene(u),m=this.getScene(h);return v&&m&&v!==m&&(this.sleep(u),this.isSleeping(h)?this.wake(h,f):this.start(h,f)),this},getAt:function(u){return this.scenes[u]},getIndex:function(u){var h=this.getScene(u);return this.scenes.indexOf(h)},bringToTop:function(u){if(this.isProcessing)return this.queueOp("bringToTop",u);var h=this.getIndex(u),f=this.scenes;if(h!==-1&&h0){var f=this.getScene(u);this.scenes.splice(h,1),this.scenes.unshift(f)}return this},moveDown:function(u){if(this.isProcessing)return this.queueOp("moveDown",u);var h=this.getIndex(u);if(h>0){var f=h-1,v=this.getScene(u),m=this.getAt(f);this.scenes[h]=m,this.scenes[f]=v}return this},moveUp:function(u){if(this.isProcessing)return this.queueOp("moveUp",u);var h=this.getIndex(u);if(hf),0,m)}return this},moveBelow:function(u,h){if(u===h)return this;if(this.isProcessing)return this.queueOp("moveBelow",u,h);var f=this.getIndex(u),v=this.getIndex(h);if(f!==-1&&v!==-1&&v>f){var m=this.getAt(v);this.scenes.splice(v,1),f===0?this.scenes.unshift(m):this.scenes.splice(f-(v{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(45319),p=t(83419),a=t(44594),r=t(95540),n=t(37277),e=new p({initialize:function(l){this.scene=l,this.systems=l.sys,this.settings=l.sys.settings,this.key=l.sys.settings.key,this.manager=l.sys.game.scene,this.transitionProgress=0,this._elapsed=0,this._target=null,this._duration=0,this._onUpdate,this._onUpdateScope,this._willSleep=!1,this._willRemove=!1,l.sys.events.once(a.BOOT,this.boot,this),l.sys.events.on(a.START,this.pluginStart,this)},boot:function(){this.systems.events.once(a.DESTROY,this.destroy,this)},pluginStart:function(){this._target=null,this.systems.events.once(a.SHUTDOWN,this.shutdown,this)},start:function(s,l){return s===void 0&&(s=this.key),this.manager.queueOp("stop",this.key),this.manager.queueOp("start",s,l),this},restart:function(s){var l=this.key;return this.manager.queueOp("stop",l),this.manager.queueOp("start",l,s),this},transition:function(s){s===void 0&&(s={});var l=r(s,"target",!1),i=this.manager.getScene(l);if(!l||!this.checkValidTransition(i))return!1;var o=r(s,"duration",1e3);this._elapsed=0,this._target=i,this._duration=o,this._willSleep=r(s,"sleep",!1),this._willRemove=r(s,"remove",!1);var u=r(s,"onUpdate",null);u&&(this._onUpdate=u,this._onUpdateScope=r(s,"onUpdateScope",this.scene));var h=r(s,"allowInput",!1);this.settings.transitionAllowInput=h;var f=i.sys.settings;f.isTransition=!0,f.transitionFrom=this.scene,f.transitionDuration=o,f.transitionAllowInput=h,r(s,"moveAbove",!1)?this.manager.moveAbove(this.key,l):r(s,"moveBelow",!1)&&this.manager.moveBelow(this.key,l),i.sys.isSleeping()?i.sys.wake(r(s,"data")):this.manager.start(l,r(s,"data"));var v=r(s,"onStart",null),m=r(s,"onStartScope",this.scene);return v&&v.call(m,this.scene,i,o),this.systems.events.emit(a.TRANSITION_OUT,i,o),!0},checkValidTransition:function(s){return!(!s||s.sys.isActive()||s.sys.isTransitioning()||s===this.scene||this.systems.isTransitioning())},step:function(s,l){this._elapsed+=l,this.transitionProgress=d(this._elapsed/this._duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.transitionProgress),this._elapsed>=this._duration&&this.transitionComplete()},transitionComplete:function(){var s=this._target.sys,l=this._target.sys.settings;s.events.emit(a.TRANSITION_COMPLETE,this.scene),l.isTransition=!1,l.transitionFrom=null,this._duration=0,this._target=null,this._onUpdate=null,this._onUpdateScope=null,this._willRemove?this.manager.remove(this.key):this._willSleep?this.systems.sleep():this.manager.stop(this.key)},add:function(s,l,i,o){return this.manager.add(s,l,i,o)},launch:function(s,l){return s&&s!==this.key&&this.manager.queueOp("start",s,l),this},run:function(s,l){return s&&s!==this.key&&this.manager.queueOp("run",s,l),this},pause:function(s,l){return s===void 0&&(s=this.key),this.manager.queueOp("pause",s,l),this},resume:function(s,l){return s===void 0&&(s=this.key),this.manager.queueOp("resume",s,l),this},sleep:function(s,l){return s===void 0&&(s=this.key),this.manager.queueOp("sleep",s,l),this},wake:function(s,l){return s===void 0&&(s=this.key),this.manager.queueOp("wake",s,l),this},switch:function(s){return s!==this.key&&this.manager.queueOp("switch",this.key,s),this},stop:function(s,l){return s===void 0&&(s=this.key),this.manager.queueOp("stop",s,l),this},setActive:function(s,l,i){l===void 0&&(l=this.key);var o=this.manager.getScene(l);return o&&o.sys.setActive(s,i),this},setVisible:function(s,l){l===void 0&&(l=this.key);var i=this.manager.getScene(l);return i&&i.sys.setVisible(s),this},isSleeping:function(s){return s===void 0&&(s=this.key),this.manager.isSleeping(s)},isActive:function(s){return s===void 0&&(s=this.key),this.manager.isActive(s)},isPaused:function(s){return s===void 0&&(s=this.key),this.manager.isPaused(s)},isVisible:function(s){return s===void 0&&(s=this.key),this.manager.isVisible(s)},swapPosition:function(s,l){return l===void 0&&(l=this.key),s!==l&&this.manager.swapPosition(s,l),this},moveAbove:function(s,l){return l===void 0&&(l=this.key),s!==l&&this.manager.moveAbove(s,l),this},moveBelow:function(s,l){return l===void 0&&(l=this.key),s!==l&&this.manager.moveBelow(s,l),this},remove:function(s){return s===void 0&&(s=this.key),this.manager.remove(s),this},moveUp:function(s){return s===void 0&&(s=this.key),this.manager.moveUp(s),this},moveDown:function(s){return s===void 0&&(s=this.key),this.manager.moveDown(s),this},bringToTop:function(s){return s===void 0&&(s=this.key),this.manager.bringToTop(s),this},sendToBack:function(s){return s===void 0&&(s=this.key),this.manager.sendToBack(s),this},get:function(s){return this.manager.getScene(s)},getStatus:function(s){var l=this.manager.getScene(s);if(l)return l.sys.getStatus()},getIndex:function(s){return s===void 0&&(s=this.key),this.manager.getIndex(s)},shutdown:function(){var s=this.systems.events;s.off(a.SHUTDOWN,this.shutdown,this),s.off(a.TRANSITION_OUT)},destroy:function(){this.shutdown(),this.scene.sys.events.off(a.START,this.start,this),this.scene=null,this.systems=null,this.settings=null,this.manager=null}});n.register("ScenePlugin",e,"scenePlugin"),c.exports=e},55681:(c,T,t)=>{/** + */var d=t(45319),p=t(83419),l=t(44594),r=t(95540),n=t(37277),e=new p({initialize:function(o){this.scene=o,this.systems=o.sys,this.settings=o.sys.settings,this.key=o.sys.settings.key,this.manager=o.sys.game.scene,this.transitionProgress=0,this._elapsed=0,this._target=null,this._duration=0,this._onUpdate,this._onUpdateScope,this._willSleep=!1,this._willRemove=!1,o.sys.events.once(l.BOOT,this.boot,this),o.sys.events.on(l.START,this.pluginStart,this)},boot:function(){this.systems.events.once(l.DESTROY,this.destroy,this)},pluginStart:function(){this._target=null,this.systems.events.once(l.SHUTDOWN,this.shutdown,this)},start:function(s,o){return s===void 0&&(s=this.key),this.manager.queueOp("stop",this.key),this.manager.queueOp("start",s,o),this},restart:function(s){var o=this.key;return this.manager.queueOp("stop",o),this.manager.queueOp("start",o,s),this},transition:function(s){s===void 0&&(s={});var o=r(s,"target",!1),i=this.manager.getScene(o);if(!o||!this.checkValidTransition(i))return!1;var a=r(s,"duration",1e3);this._elapsed=0,this._target=i,this._duration=a,this._willSleep=r(s,"sleep",!1),this._willRemove=r(s,"remove",!1);var u=r(s,"onUpdate",null);u&&(this._onUpdate=u,this._onUpdateScope=r(s,"onUpdateScope",this.scene));var h=r(s,"allowInput",!1);this.settings.transitionAllowInput=h;var f=i.sys.settings;f.isTransition=!0,f.transitionFrom=this.scene,f.transitionDuration=a,f.transitionAllowInput=h,r(s,"moveAbove",!1)?this.manager.moveAbove(this.key,o):r(s,"moveBelow",!1)&&this.manager.moveBelow(this.key,o),i.sys.isSleeping()?i.sys.wake(r(s,"data")):this.manager.start(o,r(s,"data"));var v=r(s,"onStart",null),m=r(s,"onStartScope",this.scene);return v&&v.call(m,this.scene,i,a),this.systems.events.emit(l.TRANSITION_OUT,i,a),!0},checkValidTransition:function(s){return!(!s||s.sys.isActive()||s.sys.isTransitioning()||s===this.scene||this.systems.isTransitioning())},step:function(s,o){this._elapsed+=o,this.transitionProgress=d(this._elapsed/this._duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.transitionProgress),this._elapsed>=this._duration&&this.transitionComplete()},transitionComplete:function(){var s=this._target.sys,o=this._target.sys.settings;s.events.emit(l.TRANSITION_COMPLETE,this.scene),o.isTransition=!1,o.transitionFrom=null,this._duration=0,this._target=null,this._onUpdate=null,this._onUpdateScope=null,this._willRemove?this.manager.remove(this.key):this._willSleep?this.systems.sleep():this.manager.stop(this.key)},add:function(s,o,i,a){return this.manager.add(s,o,i,a)},launch:function(s,o){return s&&s!==this.key&&this.manager.queueOp("start",s,o),this},run:function(s,o){return s&&s!==this.key&&this.manager.queueOp("run",s,o),this},pause:function(s,o){return s===void 0&&(s=this.key),this.manager.queueOp("pause",s,o),this},resume:function(s,o){return s===void 0&&(s=this.key),this.manager.queueOp("resume",s,o),this},sleep:function(s,o){return s===void 0&&(s=this.key),this.manager.queueOp("sleep",s,o),this},wake:function(s,o){return s===void 0&&(s=this.key),this.manager.queueOp("wake",s,o),this},switch:function(s,o){return s!==this.key&&this.manager.queueOp("switch",this.key,s,o),this},stop:function(s,o){return s===void 0&&(s=this.key),this.manager.queueOp("stop",s,o),this},setActive:function(s,o,i){o===void 0&&(o=this.key);var a=this.manager.getScene(o);return a&&a.sys.setActive(s,i),this},setVisible:function(s,o){o===void 0&&(o=this.key);var i=this.manager.getScene(o);return i&&i.sys.setVisible(s),this},isSleeping:function(s){return s===void 0&&(s=this.key),this.manager.isSleeping(s)},isActive:function(s){return s===void 0&&(s=this.key),this.manager.isActive(s)},isPaused:function(s){return s===void 0&&(s=this.key),this.manager.isPaused(s)},isVisible:function(s){return s===void 0&&(s=this.key),this.manager.isVisible(s)},swapPosition:function(s,o){return o===void 0&&(o=this.key),s!==o&&this.manager.swapPosition(s,o),this},moveAbove:function(s,o){return o===void 0&&(o=this.key),s!==o&&this.manager.moveAbove(s,o),this},moveBelow:function(s,o){return o===void 0&&(o=this.key),s!==o&&this.manager.moveBelow(s,o),this},remove:function(s){return s===void 0&&(s=this.key),this.manager.remove(s),this},moveUp:function(s){return s===void 0&&(s=this.key),this.manager.moveUp(s),this},moveDown:function(s){return s===void 0&&(s=this.key),this.manager.moveDown(s),this},bringToTop:function(s){return s===void 0&&(s=this.key),this.manager.bringToTop(s),this},sendToBack:function(s){return s===void 0&&(s=this.key),this.manager.sendToBack(s),this},get:function(s){return this.manager.getScene(s)},getStatus:function(s){var o=this.manager.getScene(s);if(o)return o.sys.getStatus()},getIndex:function(s){return s===void 0&&(s=this.key),this.manager.getIndex(s)},shutdown:function(){var s=this.systems.events;s.off(l.SHUTDOWN,this.shutdown,this),s.off(l.TRANSITION_OUT)},destroy:function(){this.shutdown(),this.scene.sys.events.off(l.START,this.start,this),this.scene=null,this.systems=null,this.settings=null,this.manager=null}});n.register("ScenePlugin",e,"scenePlugin"),c.exports=e},55681:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(89993),p=t(35154),a=t(46975),r=t(87033),n={create:function(e){return typeof e=="string"?e={key:e}:e===void 0&&(e={}),{status:d.PENDING,key:p(e,"key",""),active:p(e,"active",!1),visible:p(e,"visible",!0),isBooted:!1,isTransition:!1,transitionFrom:null,transitionDuration:0,transitionAllowInput:!0,data:{},pack:p(e,"pack",!1),cameras:p(e,"cameras",null),map:p(e,"map",a(r,p(e,"mapAdd",{}))),physics:p(e,"physics",{}),loader:p(e,"loader",{}),plugins:p(e,"plugins",!1),input:p(e,"input",{})}}};c.exports=n},2368:(c,T,t)=>{/** + */var d=t(89993),p=t(35154),l=t(46975),r=t(87033),n={create:function(e){return typeof e=="string"?e={key:e}:e===void 0&&(e={}),{status:d.PENDING,key:p(e,"key",""),active:p(e,"active",!1),visible:p(e,"visible",!0),isBooted:!1,isTransition:!1,transitionFrom:null,transitionDuration:0,transitionAllowInput:!0,data:{},pack:p(e,"pack",!1),cameras:p(e,"cameras",null),map:p(e,"map",l(r,p(e,"mapAdd",{}))),physics:p(e,"physics",{}),loader:p(e,"loader",{}),plugins:p(e,"plugins",!1),input:p(e,"input",{})}}};c.exports=n},2368:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(89993),a=t(42363),r=t(44594),n=t(27397),e=t(52106),s=t(29747),l=t(55681),i=new d({initialize:function(u,h){this.scene=u,this.game,this.renderer,this.config=h,this.settings=l.create(h),this.canvas,this.context,this.anims,this.cache,this.plugins,this.registry,this.scale,this.sound,this.textures,this.add,this.cameras,this.displayList,this.events,this.make,this.scenePlugin,this.updateList,this.sceneUpdate=s},init:function(o){this.settings.status=p.INIT,this.sceneUpdate=s,this.game=o,this.renderer=o.renderer,this.canvas=o.canvas,this.context=o.context;var u=o.plugins;this.plugins=u,u.addToScene(this,a.Global,[a.CoreScene,e(this),n(this)]),this.events.emit(r.BOOT,this),this.settings.isBooted=!0},step:function(o,u){var h=this.events;h.emit(r.PRE_UPDATE,o,u),h.emit(r.UPDATE,o,u),this.sceneUpdate.call(this.scene,o,u),h.emit(r.POST_UPDATE,o,u)},render:function(o){var u=this.displayList;u.depthSort(),this.events.emit(r.PRE_RENDER,o),this.cameras.render(o,u),this.events.emit(r.RENDER,o)},queueDepthSort:function(){this.displayList.queueDepthSort()},depthSort:function(){this.displayList.depthSort()},pause:function(o){var u=this.settings,h=this.getStatus();return h!==p.CREATING&&h!==p.RUNNING?console.warn("Cannot pause non-running Scene",u.key):this.settings.active&&(u.status=p.PAUSED,u.active=!1,this.events.emit(r.PAUSE,this,o)),this},resume:function(o){var u=this.events,h=this.settings;return this.settings.active||(h.status=p.RUNNING,h.active=!0,u.emit(r.RESUME,this,o)),this},sleep:function(o){var u=this.settings,h=this.getStatus();return h!==p.CREATING&&h!==p.RUNNING?console.warn("Cannot sleep non-running Scene",u.key):(u.status=p.SLEEPING,u.active=!1,u.visible=!1,this.events.emit(r.SLEEP,this,o)),this},wake:function(o){var u=this.events,h=this.settings;return h.status=p.RUNNING,h.active=!0,h.visible=!0,u.emit(r.WAKE,this,o),h.isTransition&&u.emit(r.TRANSITION_WAKE,h.transitionFrom,h.transitionDuration),this},getData:function(){return this.settings.data},getStatus:function(){return this.settings.status},canInput:function(){var o=this.settings.status;return o>p.PENDING&&o<=p.RUNNING},isSleeping:function(){return this.settings.status===p.SLEEPING},isActive:function(){return this.settings.status===p.RUNNING},isPaused:function(){return this.settings.status===p.PAUSED},isTransitioning:function(){return this.settings.isTransition||this.scenePlugin._target!==null},isTransitionOut:function(){return this.scenePlugin._target!==null&&this.scenePlugin._duration>0},isTransitionIn:function(){return this.settings.isTransition},isVisible:function(){return this.settings.visible},setVisible:function(o){return this.settings.visible=o,this},setActive:function(o,u){return o?this.resume(u):this.pause(u)},start:function(o){var u=this.events,h=this.settings;o&&(h.data=o),h.status=p.START,h.active=!0,h.visible=!0,u.emit(r.START,this),u.emit(r.READY,this,o)},shutdown:function(o){var u=this.events,h=this.settings;u.off(r.TRANSITION_INIT),u.off(r.TRANSITION_START),u.off(r.TRANSITION_COMPLETE),u.off(r.TRANSITION_OUT),h.status=p.SHUTDOWN,h.active=!1,h.visible=!1,u.emit(r.SHUTDOWN,this,o)},destroy:function(){var o=this.events,u=this.settings;u.status=p.DESTROYED,u.active=!1,u.visible=!1,o.emit(r.DESTROY,this),o.removeAllListeners();for(var h=["scene","game","anims","cache","plugins","registry","sound","textures","add","camera","displayList","events","make","scenePlugin","updateList"],f=0;f{/** + */var d=t(83419),p=t(89993),l=t(42363),r=t(44594),n=t(27397),e=t(52106),s=t(29747),o=t(55681),i=new d({initialize:function(u,h){this.scene=u,this.game,this.renderer,this.config=h,this.settings=o.create(h),this.canvas,this.context,this.anims,this.cache,this.plugins,this.registry,this.scale,this.sound,this.textures,this.add,this.cameras,this.displayList,this.events,this.make,this.scenePlugin,this.updateList,this.sceneUpdate=s},init:function(a){this.settings.status=p.INIT,this.sceneUpdate=s,this.game=a,this.renderer=a.renderer,this.canvas=a.canvas,this.context=a.context;var u=a.plugins;this.plugins=u,u.addToScene(this,l.Global,[l.CoreScene,e(this),n(this)]),this.events.emit(r.BOOT,this),this.settings.isBooted=!0},step:function(a,u){var h=this.events;h.emit(r.PRE_UPDATE,a,u),h.emit(r.UPDATE,a,u),this.sceneUpdate.call(this.scene,a,u),h.emit(r.POST_UPDATE,a,u)},render:function(a){var u=this.displayList;u.depthSort(),this.events.emit(r.PRE_RENDER,a),this.cameras.render(a,u),this.events.emit(r.RENDER,a)},queueDepthSort:function(){this.displayList.queueDepthSort()},depthSort:function(){this.displayList.depthSort()},pause:function(a){var u=this.settings,h=this.getStatus();return h!==p.CREATING&&h!==p.RUNNING?console.warn("Cannot pause non-running Scene",u.key):this.settings.active&&(u.status=p.PAUSED,u.active=!1,this.events.emit(r.PAUSE,this,a)),this},resume:function(a){var u=this.events,h=this.settings;return this.settings.active||(h.status=p.RUNNING,h.active=!0,u.emit(r.RESUME,this,a)),this},sleep:function(a){var u=this.settings,h=this.getStatus();return h!==p.CREATING&&h!==p.RUNNING?console.warn("Cannot sleep non-running Scene",u.key):(u.status=p.SLEEPING,u.active=!1,u.visible=!1,this.events.emit(r.SLEEP,this,a)),this},wake:function(a){var u=this.events,h=this.settings;return h.status=p.RUNNING,h.active=!0,h.visible=!0,u.emit(r.WAKE,this,a),h.isTransition&&u.emit(r.TRANSITION_WAKE,h.transitionFrom,h.transitionDuration),this},getData:function(){return this.settings.data},getStatus:function(){return this.settings.status},canInput:function(){var a=this.settings.status;return a>p.PENDING&&a<=p.RUNNING},isSleeping:function(){return this.settings.status===p.SLEEPING},isActive:function(){return this.settings.status===p.RUNNING},isPaused:function(){return this.settings.status===p.PAUSED},isTransitioning:function(){return this.settings.isTransition||this.scenePlugin._target!==null},isTransitionOut:function(){return this.scenePlugin._target!==null&&this.scenePlugin._duration>0},isTransitionIn:function(){return this.settings.isTransition},isVisible:function(){return this.settings.visible},setVisible:function(a){return this.settings.visible=a,this},setActive:function(a,u){return a?this.resume(u):this.pause(u)},start:function(a){var u=this.events,h=this.settings;a&&(h.data=a),h.status=p.START,h.active=!0,h.visible=!0,u.emit(r.START,this),u.emit(r.READY,this,a)},shutdown:function(a){var u=this.events,h=this.settings;u.off(r.TRANSITION_INIT),u.off(r.TRANSITION_START),u.off(r.TRANSITION_COMPLETE),u.off(r.TRANSITION_OUT),h.status=p.SHUTDOWN,h.active=!1,h.visible=!1,u.emit(r.SHUTDOWN,this,a)},destroy:function(){var a=this.events,u=this.settings;u.status=p.DESTROYED,u.active=!1,u.visible=!1,a.emit(r.DESTROY,this),a.removeAllListeners();for(var h=["scene","game","anims","cache","plugins","registry","sound","textures","add","camera","displayList","events","make","scenePlugin","updateList"],f=0;f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -5116,22 +5116,22 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(89993),p=t(79291),a={Events:t(44594),GetPhysicsPlugins:t(27397),GetScenePlugins:t(52106),SceneManager:t(60903),ScenePlugin:t(52209),Settings:t(55681),Systems:t(2368)};a=p(!1,a,d),c.exports=a},30341:(c,T,t)=>{/** + */var d=t(89993),p=t(79291),l={Events:t(44594),GetPhysicsPlugins:t(27397),GetScenePlugins:t(52106),SceneManager:t(60903),ScenePlugin:t(52209),Settings:t(55681),Systems:t(2368)};l=p(!1,l,d),c.exports=l},30341:(c,T,t)=>{/** * @author Richard Davey * @author Pavle Goloskokovic (http://prunegames.com) * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(50792),a=t(14463),r=t(79291),n=t(29747),e=new d({Extends:p,initialize:function(l,i,o){p.call(this),this.manager=l,this.key=i,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=this.duration||0,this.totalDuration=this.totalDuration||0,this.config={mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0},this.currentConfig=this.config,this.config=r(this.config,o),this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(s){return!s||!s.name||typeof s.name!="string"?!1:this.markers[s.name]?(console.error("addMarker "+s.name+" already exists in Sound"),!1):(s=r(!0,{name:"",start:0,duration:this.totalDuration-(s.start||0),config:{mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0}},s),this.markers[s.name]=s,!0)},updateMarker:function(s){return!s||!s.name||typeof s.name!="string"?!1:this.markers[s.name]?(this.markers[s.name]=r(!0,this.markers[s.name],s),!0):(console.warn("Audio Marker: "+s.name+" missing in Sound: "+this.key),!1)},removeMarker:function(s){var l=this.markers[s];return l?(this.markers[s]=null,l):null},play:function(s,l){if(s===void 0&&(s=""),typeof s=="object"&&(l=s,s=""),typeof s!="string")return!1;if(!s)this.currentMarker=null,this.currentConfig=this.config,this.duration=this.totalDuration;else{if(!this.markers[s])return console.warn("Marker: "+s+" missing in Sound: "+this.key),!1;this.currentMarker=this.markers[s],this.currentConfig=this.currentMarker.config,this.duration=this.currentMarker.duration}return this.resetConfig(),this.currentConfig=r(this.currentConfig,l),this.isPlaying=!0,this.isPaused=!1,!0},pause:function(){return this.isPaused||!this.isPlaying?!1:(this.isPlaying=!1,this.isPaused=!0,!0)},resume:function(){return!this.isPaused||this.isPlaying?!1:(this.isPlaying=!0,this.isPaused=!1,!0)},stop:function(){return!this.isPaused&&!this.isPlaying?!1:(this.isPlaying=!1,this.isPaused=!1,this.resetConfig(),!0)},applyConfig:function(){this.mute=this.currentConfig.mute,this.volume=this.currentConfig.volume,this.rate=this.currentConfig.rate,this.detune=this.currentConfig.detune,this.loop=this.currentConfig.loop,this.pan=this.currentConfig.pan},resetConfig:function(){this.currentConfig.seek=0,this.currentConfig.delay=0},update:n,calculateRate:function(){var s=1.0005777895065548,l=this.currentConfig.detune+this.manager.detune,i=Math.pow(s,l);this.totalRate=this.currentConfig.rate*this.manager.rate*i},destroy:function(){this.pendingRemove||(this.stop(),this.emit(a.DESTROY,this),this.removeAllListeners(),this.pendingRemove=!0,this.manager=null,this.config=null,this.currentConfig=null,this.markers=null,this.currentMarker=null)}});c.exports=e},85034:(c,T,t)=>{/** + */var d=t(83419),p=t(50792),l=t(14463),r=t(79291),n=t(29747),e=new d({Extends:p,initialize:function(o,i,a){p.call(this),this.manager=o,this.key=i,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=this.duration||0,this.totalDuration=this.totalDuration||0,this.config={mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0},this.currentConfig=this.config,this.config=r(this.config,a),this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(s){return!s||!s.name||typeof s.name!="string"?!1:this.markers[s.name]?(console.error("addMarker "+s.name+" already exists in Sound"),!1):(s=r(!0,{name:"",start:0,duration:this.totalDuration-(s.start||0),config:{mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0}},s),this.markers[s.name]=s,!0)},updateMarker:function(s){return!s||!s.name||typeof s.name!="string"?!1:this.markers[s.name]?(this.markers[s.name]=r(!0,this.markers[s.name],s),!0):(console.warn("Audio Marker: "+s.name+" missing in Sound: "+this.key),!1)},removeMarker:function(s){var o=this.markers[s];return o?(this.markers[s]=null,o):null},play:function(s,o){if(s===void 0&&(s=""),typeof s=="object"&&(o=s,s=""),typeof s!="string")return!1;if(!s)this.currentMarker=null,this.currentConfig=this.config,this.duration=this.totalDuration;else{if(!this.markers[s])return console.warn("Marker: "+s+" missing in Sound: "+this.key),!1;this.currentMarker=this.markers[s],this.currentConfig=this.currentMarker.config,this.duration=this.currentMarker.duration}return this.resetConfig(),this.currentConfig=r(this.currentConfig,o),this.isPlaying=!0,this.isPaused=!1,!0},pause:function(){return this.isPaused||!this.isPlaying?!1:(this.isPlaying=!1,this.isPaused=!0,!0)},resume:function(){return!this.isPaused||this.isPlaying?!1:(this.isPlaying=!0,this.isPaused=!1,!0)},stop:function(){return!this.isPaused&&!this.isPlaying?!1:(this.isPlaying=!1,this.isPaused=!1,this.resetConfig(),!0)},applyConfig:function(){this.mute=this.currentConfig.mute,this.volume=this.currentConfig.volume,this.rate=this.currentConfig.rate,this.detune=this.currentConfig.detune,this.loop=this.currentConfig.loop,this.pan=this.currentConfig.pan},resetConfig:function(){this.currentConfig.seek=0,this.currentConfig.delay=0},update:n,calculateRate:function(){var s=1.0005777895065548,o=this.currentConfig.detune+this.manager.detune,i=Math.pow(s,o);this.totalRate=this.currentConfig.rate*this.manager.rate*i},destroy:function(){this.pendingRemove||(this.stop(),this.emit(l.DESTROY,this),this.removeAllListeners(),this.pendingRemove=!0,this.manager=null,this.config=null,this.currentConfig=null,this.markers=null,this.currentMarker=null)}});c.exports=e},85034:(c,T,t)=>{/** * @author Richard Davey * @author Pavle Goloskokovic (http://prunegames.com) * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(41786),a=t(50792),r=t(14463),n=t(8443),e=t(46710),s=t(58731),l=t(29747),i=t(26099),o=new d({Extends:a,initialize:function(h){a.call(this),this.game=h,this.jsonCache=h.cache.json,this.sounds=[],this.mute=!1,this.volume=1,this.pauseOnBlur=!0,this._rate=1,this._detune=0,this.locked=this.locked||!1,this.unlocked=!1,this.gameLostFocus=!1,this.listenerPosition=new i,h.events.on(n.BLUR,this.onGameBlur,this),h.events.on(n.FOCUS,this.onGameFocus,this),h.events.on(n.PRE_STEP,this.update,this),h.events.once(n.DESTROY,this.destroy,this)},add:l,addAudioSprite:function(u,h){h===void 0&&(h={});var f=this.add(u,h);f.spritemap=this.jsonCache.get(u).spritemap;for(var v in f.spritemap)if(f.spritemap.hasOwnProperty(v)){var m=p(h),x=f.spritemap[v];m.loop=x.hasOwnProperty("loop")?x.loop:!1,f.addMarker({name:v,start:x.start,duration:x.end-x.start,config:m})}return f},get:function(u){return s(this.sounds,"key",u)},getAll:function(u){return u?e(this.sounds,"key",u):e(this.sounds)},getAllPlaying:function(){return e(this.sounds,"isPlaying",!0)},play:function(u,h){var f=this.add(u);return f.once(r.COMPLETE,f.destroy,f),h?h.name?(f.addMarker(h),f.play(h.name)):f.play(h):f.play()},playAudioSprite:function(u,h,f){var v=this.addAudioSprite(u);return v.once(r.COMPLETE,v.destroy,v),v.play(h,f)},remove:function(u){var h=this.sounds.indexOf(u);return h!==-1?(u.destroy(),this.sounds.splice(h,1),!0):!1},removeAll:function(){this.sounds.forEach(function(u){u.destroy()}),this.sounds.length=0},removeByKey:function(u){for(var h=0,f=this.sounds.length-1;f>=0;f--){var v=this.sounds[f];v.key===u&&(v.destroy(),this.sounds.splice(f,1),h++)}return h},pauseAll:function(){this.forEachActiveSound(function(u){u.pause()}),this.emit(r.PAUSE_ALL,this)},resumeAll:function(){this.forEachActiveSound(function(u){u.resume()}),this.emit(r.RESUME_ALL,this)},setListenerPosition:l,stopAll:function(){this.forEachActiveSound(function(u){u.stop()}),this.emit(r.STOP_ALL,this)},stopByKey:function(u){var h=0;return this.getAll(u).forEach(function(f){f.stop()&&h++}),h},unlock:l,onBlur:l,onFocus:l,onGameBlur:function(){this.gameLostFocus=!0,this.pauseOnBlur&&this.onBlur()},onGameFocus:function(){this.gameLostFocus=!1,this.pauseOnBlur&&this.onFocus()},update:function(u,h){this.unlocked&&(this.unlocked=!1,this.locked=!1,this.emit(r.UNLOCKED,this));for(var f=this.sounds.length-1;f>=0;f--)this.sounds[f].pendingRemove&&this.sounds.splice(f,1);this.sounds.forEach(function(v){v.update(u,h)})},destroy:function(){this.game.events.off(n.BLUR,this.onGameBlur,this),this.game.events.off(n.FOCUS,this.onGameFocus,this),this.game.events.off(n.PRE_STEP,this.update,this),this.removeAllListeners(),this.removeAll(),this.sounds.length=0,this.sounds=null,this.listenerPosition=null,this.game=null},forEachActiveSound:function(u,h){var f=this;this.sounds.forEach(function(v,m){v&&!v.pendingRemove&&u.call(h||f,v,m,f.sounds)})},setRate:function(u){return this.rate=u,this},rate:{get:function(){return this._rate},set:function(u){this._rate=u,this.forEachActiveSound(function(h){h.calculateRate()}),this.emit(r.GLOBAL_RATE,this,u)}},setDetune:function(u){return this.detune=u,this},detune:{get:function(){return this._detune},set:function(u){this._detune=u,this.forEachActiveSound(function(h){h.calculateRate()}),this.emit(r.GLOBAL_DETUNE,this,u)}}});c.exports=o},14747:(c,T,t)=>{/** + */var d=t(83419),p=t(41786),l=t(50792),r=t(14463),n=t(8443),e=t(46710),s=t(58731),o=t(29747),i=t(26099),a=new d({Extends:l,initialize:function(h){l.call(this),this.game=h,this.jsonCache=h.cache.json,this.sounds=[],this.mute=!1,this.volume=1,this.pauseOnBlur=!0,this._rate=1,this._detune=0,this.locked=this.locked||!1,this.unlocked=!1,this.gameLostFocus=!1,this.listenerPosition=new i,h.events.on(n.BLUR,this.onGameBlur,this),h.events.on(n.FOCUS,this.onGameFocus,this),h.events.on(n.PRE_STEP,this.update,this),h.events.once(n.DESTROY,this.destroy,this)},add:o,addAudioSprite:function(u,h){h===void 0&&(h={});var f=this.add(u,h);f.spritemap=this.jsonCache.get(u).spritemap;for(var v in f.spritemap)if(f.spritemap.hasOwnProperty(v)){var m=p(h),g=f.spritemap[v];m.loop=g.hasOwnProperty("loop")?g.loop:!1,f.addMarker({name:v,start:g.start,duration:g.end-g.start,config:m})}return f},get:function(u){return s(this.sounds,"key",u)},getAll:function(u){return u?e(this.sounds,"key",u):e(this.sounds)},getAllPlaying:function(){return e(this.sounds,"isPlaying",!0)},play:function(u,h){var f=this.add(u);return f.once(r.COMPLETE,f.destroy,f),h?h.name?(f.addMarker(h),f.play(h.name)):f.play(h):f.play()},playAudioSprite:function(u,h,f){var v=this.addAudioSprite(u);return v.once(r.COMPLETE,v.destroy,v),v.play(h,f)},remove:function(u){var h=this.sounds.indexOf(u);return h!==-1?(u.destroy(),this.sounds.splice(h,1),!0):!1},removeAll:function(){this.sounds.forEach(function(u){u.destroy()}),this.sounds.length=0},removeByKey:function(u){for(var h=0,f=this.sounds.length-1;f>=0;f--){var v=this.sounds[f];v.key===u&&(v.destroy(),this.sounds.splice(f,1),h++)}return h},pauseAll:function(){this.forEachActiveSound(function(u){u.pause()}),this.emit(r.PAUSE_ALL,this)},resumeAll:function(){this.forEachActiveSound(function(u){u.resume()}),this.emit(r.RESUME_ALL,this)},setListenerPosition:o,stopAll:function(){this.forEachActiveSound(function(u){u.stop()}),this.emit(r.STOP_ALL,this)},stopByKey:function(u){var h=0;return this.getAll(u).forEach(function(f){f.stop()&&h++}),h},isPlaying:function(u){var h=this.sounds,f=h.length-1,v;if(u===void 0){for(;f>=0;f--)if(v=this.sounds[f],v.isPlaying)return!0}else for(;f>=0;f--)if(v=this.sounds[f],v.key===u&&v.isPlaying)return!0;return!1},unlock:o,onBlur:o,onFocus:o,onGameBlur:function(){this.gameLostFocus=!0,this.pauseOnBlur&&this.onBlur()},onGameFocus:function(){this.gameLostFocus=!1,this.pauseOnBlur&&this.onFocus()},update:function(u,h){this.unlocked&&(this.unlocked=!1,this.locked=!1,this.emit(r.UNLOCKED,this));for(var f=this.sounds.length-1;f>=0;f--)this.sounds[f].pendingRemove&&this.sounds.splice(f,1);this.sounds.forEach(function(v){v.update(u,h)})},destroy:function(){this.game.events.off(n.BLUR,this.onGameBlur,this),this.game.events.off(n.FOCUS,this.onGameFocus,this),this.game.events.off(n.PRE_STEP,this.update,this),this.removeAllListeners(),this.removeAll(),this.sounds.length=0,this.sounds=null,this.listenerPosition=null,this.game=null},forEachActiveSound:function(u,h){var f=this;this.sounds.forEach(function(v,m){v&&!v.pendingRemove&&u.call(h||f,v,m,f.sounds)})},setRate:function(u){return this.rate=u,this},rate:{get:function(){return this._rate},set:function(u){this._rate=u,this.forEachActiveSound(function(h){h.calculateRate()}),this.emit(r.GLOBAL_RATE,this,u)}},setDetune:function(u){return this.detune=u,this},detune:{get:function(){return this._detune},set:function(u){this._detune=u,this.forEachActiveSound(function(h){h.calculateRate()}),this.emit(r.GLOBAL_DETUNE,this,u)}}});c.exports=a},14747:(c,T,t)=>{/** * @author Richard Davey * @author Pavle Goloskokovic (http://prunegames.com) * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(33684),p=t(25960),a=t(57490),r={create:function(n){var e=n.config.audio,s=n.device.audio;return e.noAudio||!s.webAudio&&!s.audioData?new p(n):s.webAudio&&!e.disableWebAudio?new a(n):new d(n)}};c.exports=r},19723:c=>{/** + */var d=t(33684),p=t(25960),l=t(57490),r={create:function(n){var e=n.config.audio,s=n.device.audio;return e.noAudio||!s.webAudio&&!s.audioData?new p(n):s.webAudio&&!e.disableWebAudio?new l(n):new d(n)}};c.exports=r},19723:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -5236,12 +5236,12 @@ return new `+this.key+`(); * @author Pavle Goloskokovic (http://prunegames.com) * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(30341),p=t(83419),a=t(14463),r=t(45319),n=new p({Extends:d,initialize:function(s,l,i){if(i===void 0&&(i={}),this.tags=s.game.cache.audio.get(l),!this.tags)throw new Error('No cached audio asset with key "'+l);this.audio=null,this.startTime=0,this.previousTime=0,this.duration=this.tags[0].duration,this.totalDuration=this.tags[0].duration,d.call(this,s,l,i)},play:function(e,s){return this.manager.isLocked(this,"play",[e,s])||!d.prototype.play.call(this,e,s)||!this.pickAndPlayAudioTag()?!1:(this.emit(a.PLAY,this),!0)},pause:function(){return this.manager.isLocked(this,"pause")||this.startTime>0||!d.prototype.pause.call(this)?!1:(this.currentConfig.seek=this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0),this.stopAndReleaseAudioTag(),this.emit(a.PAUSE,this),!0)},resume:function(){return this.manager.isLocked(this,"resume")||this.startTime>0||!d.prototype.resume.call(this)||!this.pickAndPlayAudioTag()?!1:(this.emit(a.RESUME,this),!0)},stop:function(){return this.manager.isLocked(this,"stop")||!d.prototype.stop.call(this)?!1:(this.stopAndReleaseAudioTag(),this.emit(a.STOP,this),!0)},pickAndPlayAudioTag:function(){if(!this.pickAudioTag())return this.reset(),!1;var e=this.currentConfig.seek,s=this.currentConfig.delay,l=(this.currentMarker?this.currentMarker.start:0)+e;return this.previousTime=l,this.audio.currentTime=l,this.applyConfig(),s===0?(this.startTime=0,this.audio.paused&&this.playCatchPromise()):(this.startTime=window.performance.now()+s*1e3,this.audio.paused||this.audio.pause()),this.resetConfig(),!0},pickAudioTag:function(){if(this.audio)return!0;for(var e=0;e0){this.startTime=l-this.manager.loopEndOffset?(this.audio.currentTime=s+Math.max(0,i-l),i=this.audio.currentTime):i=l){this.reset(),this.stopAndReleaseAudioTag(),this.emit(a.COMPLETE,this);return}this.previousTime=i}},destroy:function(){d.prototype.destroy.call(this),this.tags=null,this.audio&&this.stopAndReleaseAudioTag()},updateMute:function(){this.audio&&(this.audio.muted=this.currentConfig.mute||this.manager.mute)},updateVolume:function(){this.audio&&(this.audio.volume=r(this.currentConfig.volume*this.manager.volume,0,1))},calculateRate:function(){d.prototype.calculateRate.call(this),this.audio&&(this.audio.playbackRate=this.totalRate)},mute:{get:function(){return this.currentConfig.mute},set:function(e){this.currentConfig.mute=e,!this.manager.isLocked(this,"mute",e)&&(this.updateMute(),this.emit(a.MUTE,this,e))}},setMute:function(e){return this.mute=e,this},volume:{get:function(){return this.currentConfig.volume},set:function(e){this.currentConfig.volume=e,!this.manager.isLocked(this,"volume",e)&&(this.updateVolume(),this.emit(a.VOLUME,this,e))}},setVolume:function(e){return this.volume=e,this},rate:{get:function(){return this.currentConfig.rate},set:function(e){this.currentConfig.rate=e,!this.manager.isLocked(this,a.RATE,e)&&(this.calculateRate(),this.emit(a.RATE,this,e))}},setRate:function(e){return this.rate=e,this},detune:{get:function(){return this.currentConfig.detune},set:function(e){this.currentConfig.detune=e,!this.manager.isLocked(this,a.DETUNE,e)&&(this.calculateRate(),this.emit(a.DETUNE,this,e))}},setDetune:function(e){return this.detune=e,this},seek:{get:function(){return this.isPlaying?this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0):this.isPaused?this.currentConfig.seek:0},set:function(e){this.manager.isLocked(this,"seek",e)||this.startTime>0||(this.isPlaying||this.isPaused)&&(e=Math.min(Math.max(0,e),this.duration),this.isPlaying?(this.previousTime=e,this.audio.currentTime=e):this.isPaused&&(this.currentConfig.seek=e),this.emit(a.SEEK,this,e))}},setSeek:function(e){return this.seek=e,this},loop:{get:function(){return this.currentConfig.loop},set:function(e){this.currentConfig.loop=e,!this.manager.isLocked(this,"loop",e)&&(this.audio&&(this.audio.loop=e),this.emit(a.LOOP,this,e))}},setLoop:function(e){return this.loop=e,this},pan:{get:function(){return this.currentConfig.pan},set:function(e){this.currentConfig.pan=e,this.emit(a.PAN,this,e)}},setPan:function(e){return this.pan=e,this}});c.exports=n},33684:(c,T,t)=>{/** + */var d=t(30341),p=t(83419),l=t(14463),r=t(45319),n=new p({Extends:d,initialize:function(s,o,i){if(i===void 0&&(i={}),this.tags=s.game.cache.audio.get(o),!this.tags)throw new Error('No cached audio asset with key "'+o);this.audio=null,this.startTime=0,this.previousTime=0,this.duration=this.tags[0].duration,this.totalDuration=this.tags[0].duration,d.call(this,s,o,i)},play:function(e,s){return this.manager.isLocked(this,"play",[e,s])||!d.prototype.play.call(this,e,s)||!this.pickAndPlayAudioTag()?!1:(this.emit(l.PLAY,this),!0)},pause:function(){return this.manager.isLocked(this,"pause")||this.startTime>0||!d.prototype.pause.call(this)?!1:(this.currentConfig.seek=this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0),this.stopAndReleaseAudioTag(),this.emit(l.PAUSE,this),!0)},resume:function(){return this.manager.isLocked(this,"resume")||this.startTime>0||!d.prototype.resume.call(this)||!this.pickAndPlayAudioTag()?!1:(this.emit(l.RESUME,this),!0)},stop:function(){return this.manager.isLocked(this,"stop")||!d.prototype.stop.call(this)?!1:(this.stopAndReleaseAudioTag(),this.emit(l.STOP,this),!0)},pickAndPlayAudioTag:function(){if(!this.pickAudioTag())return this.reset(),!1;var e=this.currentConfig.seek,s=this.currentConfig.delay,o=(this.currentMarker?this.currentMarker.start:0)+e;return this.previousTime=o,this.audio.currentTime=o,this.applyConfig(),s===0?(this.startTime=0,this.audio.paused&&this.playCatchPromise()):(this.startTime=window.performance.now()+s*1e3,this.audio.paused||this.audio.pause()),this.resetConfig(),!0},pickAudioTag:function(){if(this.audio)return!0;for(var e=0;e0){this.startTime=o-this.manager.loopEndOffset?(this.audio.currentTime=s+Math.max(0,i-o),i=this.audio.currentTime):i=o){this.reset(),this.stopAndReleaseAudioTag(),this.emit(l.COMPLETE,this);return}this.previousTime=i}},destroy:function(){d.prototype.destroy.call(this),this.tags=null,this.audio&&this.stopAndReleaseAudioTag()},updateMute:function(){this.audio&&(this.audio.muted=this.currentConfig.mute||this.manager.mute)},updateVolume:function(){this.audio&&(this.audio.volume=r(this.currentConfig.volume*this.manager.volume,0,1))},calculateRate:function(){d.prototype.calculateRate.call(this),this.audio&&(this.audio.playbackRate=this.totalRate)},mute:{get:function(){return this.currentConfig.mute},set:function(e){this.currentConfig.mute=e,!this.manager.isLocked(this,"mute",e)&&(this.updateMute(),this.emit(l.MUTE,this,e))}},setMute:function(e){return this.mute=e,this},volume:{get:function(){return this.currentConfig.volume},set:function(e){this.currentConfig.volume=e,!this.manager.isLocked(this,"volume",e)&&(this.updateVolume(),this.emit(l.VOLUME,this,e))}},setVolume:function(e){return this.volume=e,this},rate:{get:function(){return this.currentConfig.rate},set:function(e){this.currentConfig.rate=e,!this.manager.isLocked(this,l.RATE,e)&&(this.calculateRate(),this.emit(l.RATE,this,e))}},setRate:function(e){return this.rate=e,this},detune:{get:function(){return this.currentConfig.detune},set:function(e){this.currentConfig.detune=e,!this.manager.isLocked(this,l.DETUNE,e)&&(this.calculateRate(),this.emit(l.DETUNE,this,e))}},setDetune:function(e){return this.detune=e,this},seek:{get:function(){return this.isPlaying?this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0):this.isPaused?this.currentConfig.seek:0},set:function(e){this.manager.isLocked(this,"seek",e)||this.startTime>0||(this.isPlaying||this.isPaused)&&(e=Math.min(Math.max(0,e),this.duration),this.isPlaying?(this.previousTime=e,this.audio.currentTime=e):this.isPaused&&(this.currentConfig.seek=e),this.emit(l.SEEK,this,e))}},setSeek:function(e){return this.seek=e,this},loop:{get:function(){return this.currentConfig.loop},set:function(e){this.currentConfig.loop=e,!this.manager.isLocked(this,"loop",e)&&(this.audio&&(this.audio.loop=e),this.emit(l.LOOP,this,e))}},setLoop:function(e){return this.loop=e,this},pan:{get:function(){return this.currentConfig.pan},set:function(e){this.currentConfig.pan=e,this.emit(l.PAN,this,e)}},setPan:function(e){return this.pan=e,this}});c.exports=n},33684:(c,T,t)=>{/** * @author Richard Davey * @author Pavle Goloskokovic (http://prunegames.com) * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(85034),p=t(83419),a=t(14463),r=t(64895),n=new p({Extends:d,initialize:function(s){this.override=!0,this.audioPlayDelay=.1,this.loopEndOffset=.05,this.onBlurPausedSounds=[],this.locked="ontouchstart"in window,this.lockedActionsQueue=this.locked?[]:null,this._mute=!1,this._volume=1,d.call(this,s)},add:function(e,s){var l=new r(this,e,s);return this.sounds.push(l),l},unlock:function(){this.locked=!1;var e=this;if(this.game.cache.audio.entries.each(function(o,u){for(var h=0;h{/** + */var d=t(85034),p=t(83419),l=t(14463),r=t(64895),n=new p({Extends:d,initialize:function(s){this.override=!0,this.audioPlayDelay=.1,this.loopEndOffset=.05,this.onBlurPausedSounds=[],this.locked="ontouchstart"in window,this.lockedActionsQueue=this.locked?[]:null,this._mute=!1,this._volume=1,d.call(this,s)},add:function(e,s){var o=new r(this,e,s);return this.sounds.push(o),o},unlock:function(){this.locked=!1;var e=this;if(this.game.cache.audio.entries.each(function(a,u){for(var h=0;h{/** * @author Richard Davey * @author Pavle Goloskokovic (http://prunegames.com) * @copyright 2013-2024 Phaser Studio Inc. @@ -5251,47 +5251,47 @@ return new `+this.key+`(); * @author Pavle Goloskokovic (http://prunegames.com) * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(30341),p=t(83419),a=t(50792),r=t(79291),n=t(29747),e=function(){return!1},s=function(){return null},l=function(){return this},i=new p({Extends:a,initialize:function(u,h,f){f===void 0&&(f={}),a.call(this),this.manager=u,this.key=h,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=0,this.totalDuration=0,this.config=r({mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0},f),this.currentConfig=this.config,this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.seek=0,this.loop=!1,this.pan=0,this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:e,updateMarker:e,removeMarker:s,play:e,pause:e,resume:e,stop:e,setMute:l,setVolume:l,setRate:l,setDetune:l,setSeek:l,setLoop:l,setPan:l,applyConfig:s,resetConfig:s,update:n,calculateRate:s,destroy:function(){d.prototype.destroy.call(this)}});c.exports=i},25960:(c,T,t)=>{/** + */var d=t(30341),p=t(83419),l=t(50792),r=t(79291),n=t(29747),e=function(){return!1},s=function(){return null},o=function(){return this},i=new p({Extends:l,initialize:function(u,h,f){f===void 0&&(f={}),l.call(this),this.manager=u,this.key=h,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=0,this.totalDuration=0,this.config=r({mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0},f),this.currentConfig=this.config,this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.seek=0,this.loop=!1,this.pan=0,this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:e,updateMarker:e,removeMarker:s,play:e,pause:e,resume:e,stop:e,setMute:o,setVolume:o,setRate:o,setDetune:o,setSeek:o,setLoop:o,setPan:o,applyConfig:s,resetConfig:s,update:n,calculateRate:s,destroy:function(){d.prototype.destroy.call(this)}});c.exports=i},25960:(c,T,t)=>{/** * @author Richard Davey * @author Pavle Goloskokovic (http://prunegames.com) * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(85034),p=t(83419),a=t(50792),r=t(4603),n=t(29747),e=new p({Extends:a,initialize:function(l){a.call(this),this.game=l,this.sounds=[],this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.pauseOnBlur=!0,this.locked=!1},add:function(s,l){var i=new r(this,s,l);return this.sounds.push(i),i},addAudioSprite:function(s,l){var i=this.add(s,l);return i.spritemap={},i},get:function(s){return d.prototype.get.call(this,s)},getAll:function(s){return d.prototype.getAll.call(this,s)},play:function(s,l){return!1},playAudioSprite:function(s,l,i){return!1},remove:function(s){return d.prototype.remove.call(this,s)},removeAll:function(){return d.prototype.removeAll.call(this)},removeByKey:function(s){return d.prototype.removeByKey.call(this,s)},stopByKey:function(s){return d.prototype.stopByKey.call(this,s)},onBlur:n,onFocus:n,onGameBlur:n,onGameFocus:n,pauseAll:n,resumeAll:n,stopAll:n,update:n,setRate:n,setDetune:n,setMute:n,setVolume:n,unlock:n,forEachActiveSound:function(s,l){d.prototype.forEachActiveSound.call(this,s,l)},destroy:function(){d.prototype.destroy.call(this)}});c.exports=e},71741:(c,T,t)=>{/** + */var d=t(85034),p=t(83419),l=t(50792),r=t(4603),n=t(29747),e=new p({Extends:l,initialize:function(o){l.call(this),this.game=o,this.sounds=[],this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.pauseOnBlur=!0,this.locked=!1},add:function(s,o){var i=new r(this,s,o);return this.sounds.push(i),i},addAudioSprite:function(s,o){var i=this.add(s,o);return i.spritemap={},i},get:function(s){return d.prototype.get.call(this,s)},getAll:function(s){return d.prototype.getAll.call(this,s)},play:function(s,o){return!1},playAudioSprite:function(s,o,i){return!1},remove:function(s){return d.prototype.remove.call(this,s)},removeAll:function(){return d.prototype.removeAll.call(this)},removeByKey:function(s){return d.prototype.removeByKey.call(this,s)},stopByKey:function(s){return d.prototype.stopByKey.call(this,s)},onBlur:n,onFocus:n,onGameBlur:n,onGameFocus:n,pauseAll:n,resumeAll:n,stopAll:n,update:n,setRate:n,setDetune:n,setMute:n,setVolume:n,unlock:n,forEachActiveSound:function(s,o){d.prototype.forEachActiveSound.call(this,s,o)},destroy:function(){d.prototype.destroy.call(this)}});c.exports=e},71741:(c,T,t)=>{/** * @author Richard Davey * @author Pavle Goloskokovic (http://prunegames.com) * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(30341),p=t(83419),a=t(14463),r=t(95540),n=new p({Extends:d,initialize:function(s,l,i){if(i===void 0&&(i={}),this.audioBuffer=s.game.cache.audio.get(l),!this.audioBuffer)throw new Error('Audio key "'+l+'" missing from cache');this.source=null,this.loopSource=null,this.muteNode=s.context.createGain(),this.volumeNode=s.context.createGain(),this.pannerNode=null,this.spatialNode=null,this.spatialSource=null,this.playTime=0,this.startTime=0,this.loopTime=0,this.rateUpdates=[],this.hasEnded=!1,this.hasLooped=!1,this.muteNode.connect(this.volumeNode),s.context.createPanner&&(this.spatialNode=s.context.createPanner(),this.volumeNode.connect(this.spatialNode)),s.context.createStereoPanner?(this.pannerNode=s.context.createStereoPanner(),s.context.createPanner?this.spatialNode.connect(this.pannerNode):this.volumeNode.connect(this.pannerNode),this.pannerNode.connect(s.destination)):s.context.createPanner?this.spatialNode.connect(s.destination):this.volumeNode.connect(s.destination),this.duration=this.audioBuffer.duration,this.totalDuration=this.audioBuffer.duration,d.call(this,s,l,i)},play:function(e,s){return d.prototype.play.call(this,e,s)?(this.stopAndRemoveBufferSource(),this.createAndStartBufferSource(),this.emit(a.PLAY,this),!0):!1},pause:function(){return this.manager.context.currentTime{/** + */var d=t(30341),p=t(83419),l=t(14463),r=t(95540),n=new p({Extends:d,initialize:function(s,o,i){if(i===void 0&&(i={}),this.audioBuffer=s.game.cache.audio.get(o),!this.audioBuffer)throw new Error('Audio key "'+o+'" not found in cache');this.source=null,this.loopSource=null,this.muteNode=s.context.createGain(),this.volumeNode=s.context.createGain(),this.pannerNode=null,this.spatialNode=null,this.spatialSource=null,this.playTime=0,this.startTime=0,this.loopTime=0,this.rateUpdates=[],this.hasEnded=!1,this.hasLooped=!1,this.muteNode.connect(this.volumeNode),s.context.createPanner&&(this.spatialNode=s.context.createPanner(),this.volumeNode.connect(this.spatialNode)),s.context.createStereoPanner?(this.pannerNode=s.context.createStereoPanner(),s.context.createPanner?this.spatialNode.connect(this.pannerNode):this.volumeNode.connect(this.pannerNode),this.pannerNode.connect(s.destination)):s.context.createPanner?this.spatialNode.connect(s.destination):this.volumeNode.connect(s.destination),this.duration=this.audioBuffer.duration,this.totalDuration=this.audioBuffer.duration,d.call(this,s,o,i)},play:function(e,s){return d.prototype.play.call(this,e,s)?(this.stopAndRemoveBufferSource(),this.createAndStartBufferSource(),this.emit(l.PLAY,this),!0):!1},pause:function(){return this.manager.context.currentTime{/** * @author Richard Davey * @author Pavle Goloskokovic (http://prunegames.com) * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(53134),p=t(85034),a=t(83419),r=t(14463),n=t(8443),e=t(71741),s=t(95540),l=new a({Extends:p,initialize:function(o){this.context=this.createAudioContext(o),this.masterMuteNode=this.context.createGain(),this.masterVolumeNode=this.context.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(this.context.destination),this.destination=this.masterMuteNode,this.locked=this.context.state==="suspended"&&("ontouchstart"in window||"onclick"in window),p.call(this,o),this.locked&&o.isBooted?this.unlock():o.events.once(n.BOOT,this.unlock,this)},createAudioContext:function(i){var o=i.config.audio;if(o.context)return o.context.resume(),o.context;if(window.hasOwnProperty("AudioContext"))return new AudioContext;if(window.hasOwnProperty("webkitAudioContext"))return new window.webkitAudioContext},setAudioContext:function(i){return this.context&&this.context.close(),this.masterMuteNode&&this.masterMuteNode.disconnect(),this.masterVolumeNode&&this.masterVolumeNode.disconnect(),this.context=i,this.masterMuteNode=i.createGain(),this.masterVolumeNode=i.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(i.destination),this.destination=this.masterMuteNode,this},add:function(i,o){var u=new e(this,i,o);return this.sounds.push(u),u},decodeAudio:function(i,o){var u;Array.isArray(i)?u=i:u=[{key:i,data:o}];for(var h=this.game.cache.audio,f=u.length,v=0;v{/** + */var d=t(53134),p=t(85034),l=t(83419),r=t(14463),n=t(8443),e=t(71741),s=t(95540),o=new l({Extends:p,initialize:function(a){this.context=this.createAudioContext(a),this.masterMuteNode=this.context.createGain(),this.masterVolumeNode=this.context.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(this.context.destination),this.destination=this.masterMuteNode,this.locked=this.context.state==="suspended"&&("ontouchstart"in window||"onclick"in window),p.call(this,a),this.locked&&a.isBooted?this.unlock():a.events.once(n.BOOT,this.unlock,this)},createAudioContext:function(i){var a=i.config.audio;if(a.context)return a.context.resume(),a.context;if(window.hasOwnProperty("AudioContext"))return new AudioContext;if(window.hasOwnProperty("webkitAudioContext"))return new window.webkitAudioContext},setAudioContext:function(i){return this.context&&this.context.close(),this.masterMuteNode&&this.masterMuteNode.disconnect(),this.masterVolumeNode&&this.masterVolumeNode.disconnect(),this.context=i,this.masterMuteNode=i.createGain(),this.masterVolumeNode=i.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(i.destination),this.destination=this.masterMuteNode,this},add:function(i,a){var u=new e(this,i,a);return this.sounds.push(u),u},decodeAudio:function(i,a){var u;Array.isArray(i)?u=i:u=[{key:i,data:a}];for(var h=this.game.cache.audio,f=u.length,v=0;v{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(37105),p=t(83419),a=t(29747),r=t(19186),n=new p({initialize:function(s){this.parent=s,this.list=[],this.position=0,this.addCallback=a,this.removeCallback=a,this._sortKey=""},add:function(e,s){return s?d.Add(this.list,e):d.Add(this.list,e,0,this.addCallback,this)},addAt:function(e,s,l){return l?d.AddAt(this.list,e,s):d.AddAt(this.list,e,s,0,this.addCallback,this)},getAt:function(e){return this.list[e]},getIndex:function(e){return this.list.indexOf(e)},sort:function(e,s){return e?(s===void 0&&(s=function(l,i){return l[e]-i[e]}),r(this.list,s),this):this},getByName:function(e){return d.GetFirst(this.list,"name",e)},getRandom:function(e,s){return d.GetRandom(this.list,e,s)},getFirst:function(e,s,l,i){return d.GetFirst(this.list,e,s,l,i)},getAll:function(e,s,l,i){return d.GetAll(this.list,e,s,l,i)},count:function(e,s){return d.CountAllMatching(this.list,e,s)},swap:function(e,s){d.Swap(this.list,e,s)},moveTo:function(e,s){return d.MoveTo(this.list,e,s)},moveAbove:function(e,s){return d.MoveAbove(this.list,e,s)},moveBelow:function(e,s){return d.MoveBelow(this.list,e,s)},remove:function(e,s){return s?d.Remove(this.list,e):d.Remove(this.list,e,this.removeCallback,this)},removeAt:function(e,s){return s?d.RemoveAt(this.list,e):d.RemoveAt(this.list,e,this.removeCallback,this)},removeBetween:function(e,s,l){return l?d.RemoveBetween(this.list,e,s):d.RemoveBetween(this.list,e,s,this.removeCallback,this)},removeAll:function(e){for(var s=this.list.length;s--;)this.remove(this.list[s],e);return this},bringToTop:function(e){return d.BringToTop(this.list,e)},sendToBack:function(e){return d.SendToBack(this.list,e)},moveUp:function(e){return d.MoveUp(this.list,e),e},moveDown:function(e){return d.MoveDown(this.list,e),e},reverse:function(){return this.list.reverse(),this},shuffle:function(){return d.Shuffle(this.list),this},replace:function(e,s){return d.Replace(this.list,e,s)},exists:function(e){return this.list.indexOf(e)>-1},setAll:function(e,s,l,i){return d.SetAll(this.list,e,s,l,i),this},each:function(e,s){for(var l=[null],i=2;i0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}}});c.exports=n},90330:(c,T,t)=>{/** + */var d=t(37105),p=t(83419),l=t(29747),r=t(19186),n=new p({initialize:function(s){this.parent=s,this.list=[],this.position=0,this.addCallback=l,this.removeCallback=l,this._sortKey=""},add:function(e,s){return s?d.Add(this.list,e):d.Add(this.list,e,0,this.addCallback,this)},addAt:function(e,s,o){return o?d.AddAt(this.list,e,s):d.AddAt(this.list,e,s,0,this.addCallback,this)},getAt:function(e){return this.list[e]},getIndex:function(e){return this.list.indexOf(e)},sort:function(e,s){return e?(s===void 0&&(s=function(o,i){return o[e]-i[e]}),r(this.list,s),this):this},getByName:function(e){return d.GetFirst(this.list,"name",e)},getRandom:function(e,s){return d.GetRandom(this.list,e,s)},getFirst:function(e,s,o,i){return d.GetFirst(this.list,e,s,o,i)},getAll:function(e,s,o,i){return d.GetAll(this.list,e,s,o,i)},count:function(e,s){return d.CountAllMatching(this.list,e,s)},swap:function(e,s){d.Swap(this.list,e,s)},moveTo:function(e,s){return d.MoveTo(this.list,e,s)},moveAbove:function(e,s){return d.MoveAbove(this.list,e,s)},moveBelow:function(e,s){return d.MoveBelow(this.list,e,s)},remove:function(e,s){return s?d.Remove(this.list,e):d.Remove(this.list,e,this.removeCallback,this)},removeAt:function(e,s){return s?d.RemoveAt(this.list,e):d.RemoveAt(this.list,e,this.removeCallback,this)},removeBetween:function(e,s,o){return o?d.RemoveBetween(this.list,e,s):d.RemoveBetween(this.list,e,s,this.removeCallback,this)},removeAll:function(e){for(var s=this.list.length;s--;)this.remove(this.list[s],e);return this},bringToTop:function(e){return d.BringToTop(this.list,e)},sendToBack:function(e){return d.SendToBack(this.list,e)},moveUp:function(e){return d.MoveUp(this.list,e),e},moveDown:function(e){return d.MoveDown(this.list,e),e},reverse:function(){return this.list.reverse(),this},shuffle:function(){return d.Shuffle(this.list),this},replace:function(e,s){return d.Replace(this.list,e,s)},exists:function(e){return this.list.indexOf(e)>-1},setAll:function(e,s,o,i){return d.SetAll(this.list,e,s,o,i),this},each:function(e,s){for(var o=[null],i=2;i0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}}});c.exports=n},90330:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=new d({initialize:function(r){this.entries={},this.size=0,this.setAll(r)},setAll:function(a){if(Array.isArray(a))for(var r=0;r{/** + */var d=t(83419),p=new d({initialize:function(r){this.entries={},this.size=0,this.setAll(r)},setAll:function(l){if(Array.isArray(l))for(var r=0;r{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(50792),a=t(82348),r=new d({Extends:p,initialize:function(){p.call(this),this._pending=[],this._active=[],this._destroy=[],this._toProcess=0,this.checkQueue=!1},isActive:function(n){return this._active.indexOf(n)>-1},isPending:function(n){return this._toProcess>0&&this._pending.indexOf(n)>-1},isDestroying:function(n){return this._destroy.indexOf(n)>-1},add:function(n){return this.checkQueue&&this.isActive(n)&&!this.isDestroying(n)||this.isPending(n)||(this._pending.push(n),this._toProcess++),n},remove:function(n){if(this.isPending(n)){var e=this._pending,s=e.indexOf(n);s!==-1&&e.splice(s,1)}else this.isActive(n)&&(this._destroy.push(n),this._toProcess++);return n},removeAll:function(){for(var n=this._active,e=this._destroy,s=n.length;s--;)e.push(n[s]),this._toProcess++;return this},update:function(){if(this._toProcess===0)return this._active;var n=this._destroy,e=this._active,s,l;for(s=0;s{/** + */var d=t(83419),p=t(50792),l=t(82348),r=new d({Extends:p,initialize:function(){p.call(this),this._pending=[],this._active=[],this._destroy=[],this._toProcess=0,this.checkQueue=!1},isActive:function(n){return this._active.indexOf(n)>-1},isPending:function(n){return this._toProcess>0&&this._pending.indexOf(n)>-1},isDestroying:function(n){return this._destroy.indexOf(n)>-1},add:function(n){return this.checkQueue&&this.isActive(n)&&!this.isDestroying(n)||this.isPending(n)||(this._pending.push(n),this._toProcess++),n},remove:function(n){if(this.isPending(n)){var e=this._pending,s=e.indexOf(n);s!==-1&&e.splice(s,1)}else this.isActive(n)&&(this._destroy.push(n),this._toProcess++);return n},removeAll:function(){for(var n=this._active,e=this._destroy,s=n.length;s--;)e.push(n[s]),this._toProcess++;return this},update:function(){if(this._toProcess===0)return this._active;var n=this._destroy,e=this._active,s,o;for(s=0;s{/** * @author Vladimir Agafonkin * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(43886);function p(g){if(!(this instanceof p))return new p(g);this._maxEntries=Math.max(4,g||9),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}p.prototype={all:function(){return this._all(this.data,[])},search:function(g){var y=this.data,S=[],C=this.toBBox;if(!v(g,y))return S;for(var E=[],A,P,M,F;y;){for(A=0,P=y.children.length;A=0&&A[y].children.length>this._maxEntries;)this._split(A,y),y--;this._adjustParentBBoxes(E,A,y)},_split:function(g,y){var S=g[y],C=S.children.length,E=this._minEntries;this._chooseSplitAxis(S,E,C);var A=this._chooseSplitIndex(S,E,C),P=m(S.children.splice(A,S.children.length-A));P.height=S.height,P.leaf=S.leaf,r(S,this.toBBox),r(P,this.toBBox),y?g[y-1].children.push(P):this._splitRoot(S,P)},_splitRoot:function(g,y){this.data=m([g,y]),this.data.height=g.height+1,this.data.leaf=!1,r(this.data,this.toBBox)},_chooseSplitIndex:function(g,y,S){var C,E,A,P,M,F,L,b;for(F=L=1/0,C=y;C<=S-y;C++)E=n(g,0,C,this.toBBox),A=n(g,C,S,this.toBBox),P=h(E,A),M=i(E)+i(A),P=y;F--)L=g.children[F],e(P,g.leaf?E(L):L),M+=o(P);return M},_adjustParentBBoxes:function(g,y,S){for(var C=S;C>=0;C--)e(y[C],g)},_condense:function(g){for(var y=g.length-1,S;y>=0;y--)g[y].children.length===0?y>0?(S=g[y-1].children,S.splice(S.indexOf(g[y]),1)):this.clear():r(g[y],this.toBBox)},compareMinX:function(g,y){return g.left-y.left},compareMinY:function(g,y){return g.top-y.top},toBBox:function(g){return{minX:g.left,minY:g.top,maxX:g.right,maxY:g.bottom}}};function a(g,y,S){if(!S)return y.indexOf(g);for(var C=0;C=g.minX&&y.maxY>=g.minY}function m(g){return{children:g,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function x(g,y,S,C,E){for(var A=[y,S],P;A.length;)S=A.pop(),y=A.pop(),!(S-y<=C)&&(P=y+Math.ceil((S-y)/C/2)*C,d(g,P,y,S,E),A.push(y,P,P,S))}c.exports=p},35072:(c,T,t)=>{/** + */var d=t(43886);function p(x){if(!(this instanceof p))return new p(x);this._maxEntries=Math.max(4,x||9),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}p.prototype={all:function(){return this._all(this.data,[])},search:function(x){var y=this.data,S=[],C=this.toBBox;if(!v(x,y))return S;for(var E=[],M,P,A,R;y;){for(M=0,P=y.children.length;M=0&&M[y].children.length>this._maxEntries;)this._split(M,y),y--;this._adjustParentBBoxes(E,M,y)},_split:function(x,y){var S=x[y],C=S.children.length,E=this._minEntries;this._chooseSplitAxis(S,E,C);var M=this._chooseSplitIndex(S,E,C),P=m(S.children.splice(M,S.children.length-M));P.height=S.height,P.leaf=S.leaf,r(S,this.toBBox),r(P,this.toBBox),y?x[y-1].children.push(P):this._splitRoot(S,P)},_splitRoot:function(x,y){this.data=m([x,y]),this.data.height=x.height+1,this.data.leaf=!1,r(this.data,this.toBBox)},_chooseSplitIndex:function(x,y,S){var C,E,M,P,A,R,F,D;for(R=F=1/0,C=y;C<=S-y;C++)E=n(x,0,C,this.toBBox),M=n(x,C,S,this.toBBox),P=h(E,M),A=i(E)+i(M),P=y;R--)F=x.children[R],e(P,x.leaf?E(F):F),A+=a(P);return A},_adjustParentBBoxes:function(x,y,S){for(var C=S;C>=0;C--)e(y[C],x)},_condense:function(x){for(var y=x.length-1,S;y>=0;y--)x[y].children.length===0?y>0?(S=x[y-1].children,S.splice(S.indexOf(x[y]),1)):this.clear():r(x[y],this.toBBox)},compareMinX:function(x,y){return x.left-y.left},compareMinY:function(x,y){return x.top-y.top},toBBox:function(x){return{minX:x.left,minY:x.top,maxX:x.right,maxY:x.bottom}}};function l(x,y,S){if(!S)return y.indexOf(x);for(var C=0;C=x.minX&&y.maxY>=x.minY}function m(x){return{children:x,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(x,y,S,C,E){for(var M=[y,S],P;M.length;)S=M.pop(),y=M.pop(),!(S-y<=C)&&(P=y+Math.ceil((S-y)/C/2)*C,d(x,P,y,S,E),M.push(y,P,P,S))}c.exports=p},35072:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=new d({initialize:function(r){if(this.entries=[],Array.isArray(r))for(var n=0;n-1&&this.entries.splice(r,1),this},dump:function(){console.group("Set");for(var a=0;a-1},union:function(a){var r=new p;return a.entries.forEach(function(n){r.set(n)}),this.entries.forEach(function(n){r.set(n)}),r},intersect:function(a){var r=new p;return this.entries.forEach(function(n){a.contains(n)&&r.set(n)}),r},difference:function(a){var r=new p;return this.entries.forEach(function(n){a.contains(n)||r.set(n)}),r},size:{get:function(){return this.entries.length},set:function(a){return a{/** + */var d=t(83419),p=new d({initialize:function(r){if(this.entries=[],Array.isArray(r))for(var n=0;n-1&&this.entries.splice(r,1),this},dump:function(){console.group("Set");for(var l=0;l-1},union:function(l){var r=new p;return l.entries.forEach(function(n){r.set(n)}),this.entries.forEach(function(n){r.set(n)}),r},intersect:function(l){var r=new p;return this.entries.forEach(function(n){l.contains(n)&&r.set(n)}),r},difference:function(l){var r=new p;return this.entries.forEach(function(n){l.contains(n)||r.set(n)}),r},size:{get:function(){return this.entries.length},set:function(l){return l{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(45319),p=t(83419),a=t(56583),r=t(26099),n=new p({initialize:function(s,l,i,o){s===void 0&&(s=0),l===void 0&&(l=s),i===void 0&&(i=0),o===void 0&&(o=null),this._width=s,this._height=l,this._parent=o,this.aspectMode=i,this.aspectRatio=l===0?1:s/l,this.minWidth=0,this.minHeight=0,this.maxWidth=Number.MAX_VALUE,this.maxHeight=Number.MAX_VALUE,this.snapTo=new r},setAspectMode:function(e){return e===void 0&&(e=0),this.aspectMode=e,this.setSize(this._width,this._height)},setSnap:function(e,s){return e===void 0&&(e=0),s===void 0&&(s=e),this.snapTo.set(e,s),this.setSize(this._width,this._height)},setParent:function(e){return this._parent=e,this.setSize(this._width,this._height)},setMin:function(e,s){return e===void 0&&(e=0),s===void 0&&(s=e),this.minWidth=d(e,0,this.maxWidth),this.minHeight=d(s,0,this.maxHeight),this.setSize(this._width,this._height)},setMax:function(e,s){return e===void 0&&(e=Number.MAX_VALUE),s===void 0&&(s=e),this.maxWidth=d(e,this.minWidth,Number.MAX_VALUE),this.maxHeight=d(s,this.minHeight,Number.MAX_VALUE),this.setSize(this._width,this._height)},setSize:function(e,s){switch(e===void 0&&(e=0),s===void 0&&(s=e),this.aspectMode){case n.NONE:this._width=this.getNewWidth(a(e,this.snapTo.x)),this._height=this.getNewHeight(a(s,this.snapTo.y)),this.aspectRatio=this._height===0?1:this._width/this._height;break;case n.WIDTH_CONTROLS_HEIGHT:this._width=this.getNewWidth(a(e,this.snapTo.x)),this._height=this.getNewHeight(this._width*(1/this.aspectRatio),!1);break;case n.HEIGHT_CONTROLS_WIDTH:this._height=this.getNewHeight(a(s,this.snapTo.y)),this._width=this.getNewWidth(this._height*this.aspectRatio,!1);break;case n.FIT:this.constrain(e,s,!0);break;case n.ENVELOP:this.constrain(e,s,!1);break}return this},setAspectRatio:function(e){return this.aspectRatio=e,this.setSize(this._width,this._height)},resize:function(e,s){return this._width=this.getNewWidth(a(e,this.snapTo.x)),this._height=this.getNewHeight(a(s,this.snapTo.y)),this.aspectRatio=this._height===0?1:this._width/this._height,this},getNewWidth:function(e,s){return s===void 0&&(s=!0),e=d(e,this.minWidth,this.maxWidth),s&&this._parent&&e>this._parent.width&&(e=Math.max(this.minWidth,this._parent.width)),e},getNewHeight:function(e,s){return s===void 0&&(s=!0),e=d(e,this.minHeight,this.maxHeight),s&&this._parent&&e>this._parent.height&&(e=Math.max(this.minHeight,this._parent.height)),e},constrain:function(e,s,l){e===void 0&&(e=0),s===void 0&&(s=e),l===void 0&&(l=!0),e=this.getNewWidth(e),s=this.getNewHeight(s);var i=this.snapTo,o=s===0?1:e/s;return l&&this.aspectRatio>o||!l&&this.aspectRatio0&&(s=a(s,i.y),e=s*this.aspectRatio)):(l&&this.aspectRatioo)&&(s=a(s,i.y),e=s*this.aspectRatio,i.x>0&&(e=a(e,i.x),s=e*(1/this.aspectRatio))),this._width=e,this._height=s,this},fitTo:function(e,s){return this.constrain(e,s,!0)},envelop:function(e,s){return this.constrain(e,s,!1)},setWidth:function(e){return this.setSize(e,this._height)},setHeight:function(e){return this.setSize(this._width,e)},toString:function(){return"[{ Size (width="+this._width+" height="+this._height+" aspectRatio="+this.aspectRatio+" aspectMode="+this.aspectMode+") }]"},setCSS:function(e){e&&e.style&&(e.style.width=this._width+"px",e.style.height=this._height+"px")},copy:function(e){return e.setAspectMode(this.aspectMode),e.aspectRatio=this.aspectRatio,e.setSize(this.width,this.height)},destroy:function(){this._parent=null,this.snapTo=null},width:{get:function(){return this._width},set:function(e){this.setSize(e,this._height)}},height:{get:function(){return this._height},set:function(e){this.setSize(this._width,e)}}});n.NONE=0,n.WIDTH_CONTROLS_HEIGHT=1,n.HEIGHT_CONTROLS_WIDTH=2,n.FIT=3,n.ENVELOP=4,c.exports=n},15238:c=>{/** + */var d=t(45319),p=t(83419),l=t(56583),r=t(26099),n=new p({initialize:function(s,o,i,a){s===void 0&&(s=0),o===void 0&&(o=s),i===void 0&&(i=0),a===void 0&&(a=null),this._width=s,this._height=o,this._parent=a,this.aspectMode=i,this.aspectRatio=o===0?1:s/o,this.minWidth=0,this.minHeight=0,this.maxWidth=Number.MAX_VALUE,this.maxHeight=Number.MAX_VALUE,this.snapTo=new r},setAspectMode:function(e){return e===void 0&&(e=0),this.aspectMode=e,this.setSize(this._width,this._height)},setSnap:function(e,s){return e===void 0&&(e=0),s===void 0&&(s=e),this.snapTo.set(e,s),this.setSize(this._width,this._height)},setParent:function(e){return this._parent=e,this.setSize(this._width,this._height)},setMin:function(e,s){return e===void 0&&(e=0),s===void 0&&(s=e),this.minWidth=d(e,0,this.maxWidth),this.minHeight=d(s,0,this.maxHeight),this.setSize(this._width,this._height)},setMax:function(e,s){return e===void 0&&(e=Number.MAX_VALUE),s===void 0&&(s=e),this.maxWidth=d(e,this.minWidth,Number.MAX_VALUE),this.maxHeight=d(s,this.minHeight,Number.MAX_VALUE),this.setSize(this._width,this._height)},setSize:function(e,s){switch(e===void 0&&(e=0),s===void 0&&(s=e),this.aspectMode){case n.NONE:this._width=this.getNewWidth(l(e,this.snapTo.x)),this._height=this.getNewHeight(l(s,this.snapTo.y)),this.aspectRatio=this._height===0?1:this._width/this._height;break;case n.WIDTH_CONTROLS_HEIGHT:this._width=this.getNewWidth(l(e,this.snapTo.x)),this._height=this.getNewHeight(this._width*(1/this.aspectRatio),!1);break;case n.HEIGHT_CONTROLS_WIDTH:this._height=this.getNewHeight(l(s,this.snapTo.y)),this._width=this.getNewWidth(this._height*this.aspectRatio,!1);break;case n.FIT:this.constrain(e,s,!0);break;case n.ENVELOP:this.constrain(e,s,!1);break}return this},setAspectRatio:function(e){return this.aspectRatio=e,this.setSize(this._width,this._height)},resize:function(e,s){return this._width=this.getNewWidth(l(e,this.snapTo.x)),this._height=this.getNewHeight(l(s,this.snapTo.y)),this.aspectRatio=this._height===0?1:this._width/this._height,this},getNewWidth:function(e,s){return s===void 0&&(s=!0),e=d(e,this.minWidth,this.maxWidth),s&&this._parent&&e>this._parent.width&&(e=Math.max(this.minWidth,this._parent.width)),e},getNewHeight:function(e,s){return s===void 0&&(s=!0),e=d(e,this.minHeight,this.maxHeight),s&&this._parent&&e>this._parent.height&&(e=Math.max(this.minHeight,this._parent.height)),e},constrain:function(e,s,o){e===void 0&&(e=0),s===void 0&&(s=e),o===void 0&&(o=!0),e=this.getNewWidth(e),s=this.getNewHeight(s);var i=this.snapTo,a=s===0?1:e/s;return o&&this.aspectRatio>a||!o&&this.aspectRatio0&&(s=l(s,i.y),e=s*this.aspectRatio)):(o&&this.aspectRatioa)&&(s=l(s,i.y),e=s*this.aspectRatio,i.x>0&&(e=l(e,i.x),s=e*(1/this.aspectRatio))),this._width=e,this._height=s,this},fitTo:function(e,s){return this.constrain(e,s,!0)},envelop:function(e,s){return this.constrain(e,s,!1)},setWidth:function(e){return this.setSize(e,this._height)},setHeight:function(e){return this.setSize(this._width,e)},toString:function(){return"[{ Size (width="+this._width+" height="+this._height+" aspectRatio="+this.aspectRatio+" aspectMode="+this.aspectMode+") }]"},setCSS:function(e){e&&e.style&&(e.style.width=this._width+"px",e.style.height=this._height+"px")},copy:function(e){return e.setAspectMode(this.aspectMode),e.aspectRatio=this.aspectRatio,e.setSize(this.width,this.height)},destroy:function(){this._parent=null,this.snapTo=null},width:{get:function(){return this._width},set:function(e){this.setSize(e,this._height)}},height:{get:function(){return this._height},set:function(e){this.setSize(this._width,e)}}});n.NONE=0,n.WIDTH_CONTROLS_HEIGHT=1,n.HEIGHT_CONTROLS_WIDTH=2,n.FIT=3,n.ENVELOP=4,c.exports=n},15238:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -5311,27 +5311,27 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(45319),a=t(40987),r=t(8054),n=t(50030),e=t(79237),s=new d({Extends:e,initialize:function(i,o,u,h,f){e.call(this,i,o,u,h,f),this.add("__BASE",0,0,0,h,f),this._source=this.frames.__BASE.source,this.canvas=this._source.image,this.context=this.canvas.getContext("2d",{willReadFrequently:!0}),this.width=h,this.height=f,this.imageData=this.context.getImageData(0,0,h,f),this.data=null,this.imageData&&(this.data=this.imageData.data),this.pixels=null,this.buffer,this.data&&(this.imageData.data.buffer?(this.buffer=this.imageData.data.buffer,this.pixels=new Uint32Array(this.buffer)):window.ArrayBuffer?(this.buffer=new ArrayBuffer(this.imageData.data.length),this.pixels=new Uint32Array(this.buffer)):this.pixels=this.imageData.data)},update:function(){return this.imageData=this.context.getImageData(0,0,this.width,this.height),this.data=this.imageData.data,this.imageData.data.buffer?(this.buffer=this.imageData.data.buffer,this.pixels=new Uint32Array(this.buffer)):window.ArrayBuffer?(this.buffer=new ArrayBuffer(this.imageData.data.length),this.pixels=new Uint32Array(this.buffer)):this.pixels=this.imageData.data,this.manager.game.config.renderType===r.WEBGL&&this.refresh(),this},draw:function(l,i,o,u){return u===void 0&&(u=!0),this.context.drawImage(o,l,i),u&&this.update(),this},drawFrame:function(l,i,o,u,h){o===void 0&&(o=0),u===void 0&&(u=0),h===void 0&&(h=!0);var f=this.manager.getFrame(l,i);if(f){var v=f.canvasData,m=f.cutWidth,x=f.cutHeight,g=f.source.resolution;this.context.drawImage(f.source.image,v.x,v.y,m,x,o,u,m/g,x/g),h&&this.update()}return this},setPixel:function(l,i,o,u,h,f){f===void 0&&(f=255),l=Math.abs(Math.floor(l)),i=Math.abs(Math.floor(i));var v=this.getIndex(l,i);if(v>-1){var m=this.context.getImageData(l,i,1,1);m.data[0]=o,m.data[1]=u,m.data[2]=h,m.data[3]=f,this.context.putImageData(m,l,i)}return this},putData:function(l,i,o,u,h,f,v){return u===void 0&&(u=0),h===void 0&&(h=0),f===void 0&&(f=l.width),v===void 0&&(v=l.height),this.context.putImageData(l,i,o,u,h,f,v),this},getData:function(l,i,o,u){l=p(Math.floor(l),0,this.width-1),i=p(Math.floor(i),0,this.height-1),o=p(o,1,this.width-l),u=p(u,1,this.height-i);var h=this.context.getImageData(l,i,o,u);return h},getPixel:function(l,i,o){o||(o=new a);var u=this.getIndex(l,i);if(u>-1){var h=this.data,f=h[u+0],v=h[u+1],m=h[u+2],x=h[u+3];o.setTo(f,v,m,x)}return o},getPixels:function(l,i,o,u){l===void 0&&(l=0),i===void 0&&(i=0),o===void 0&&(o=this.width),u===void 0&&(u=o),l=Math.abs(Math.round(l)),i=Math.abs(Math.round(i));for(var h=p(l,0,this.width),f=p(l+o,0,this.width),v=p(i,0,this.height),m=p(i+u,0,this.height),x=new a,g=[],y=v;y{/** + */var d=t(83419),p=t(45319),l=t(40987),r=t(8054),n=t(50030),e=t(79237),s=new d({Extends:e,initialize:function(i,a,u,h,f){e.call(this,i,a,u,h,f),this.add("__BASE",0,0,0,h,f),this._source=this.frames.__BASE.source,this.canvas=this._source.image,this.context=this.canvas.getContext("2d",{willReadFrequently:!0}),this.width=h,this.height=f,this.imageData=this.context.getImageData(0,0,h,f),this.data=null,this.imageData&&(this.data=this.imageData.data),this.pixels=null,this.buffer,this.data&&(this.imageData.data.buffer?(this.buffer=this.imageData.data.buffer,this.pixels=new Uint32Array(this.buffer)):window.ArrayBuffer?(this.buffer=new ArrayBuffer(this.imageData.data.length),this.pixels=new Uint32Array(this.buffer)):this.pixels=this.imageData.data)},update:function(){return this.imageData=this.context.getImageData(0,0,this.width,this.height),this.data=this.imageData.data,this.imageData.data.buffer?(this.buffer=this.imageData.data.buffer,this.pixels=new Uint32Array(this.buffer)):window.ArrayBuffer?(this.buffer=new ArrayBuffer(this.imageData.data.length),this.pixels=new Uint32Array(this.buffer)):this.pixels=this.imageData.data,this.manager.game.config.renderType===r.WEBGL&&this.refresh(),this},draw:function(o,i,a,u){return u===void 0&&(u=!0),this.context.drawImage(a,o,i),u&&this.update(),this},drawFrame:function(o,i,a,u,h){a===void 0&&(a=0),u===void 0&&(u=0),h===void 0&&(h=!0);var f=this.manager.getFrame(o,i);if(f){var v=f.canvasData,m=f.cutWidth,g=f.cutHeight,x=f.source.resolution;this.context.drawImage(f.source.image,v.x,v.y,m,g,a,u,m/x,g/x),h&&this.update()}return this},setPixel:function(o,i,a,u,h,f){f===void 0&&(f=255),o=Math.abs(Math.floor(o)),i=Math.abs(Math.floor(i));var v=this.getIndex(o,i);if(v>-1){var m=this.context.getImageData(o,i,1,1);m.data[0]=a,m.data[1]=u,m.data[2]=h,m.data[3]=f,this.context.putImageData(m,o,i)}return this},putData:function(o,i,a,u,h,f,v){return u===void 0&&(u=0),h===void 0&&(h=0),f===void 0&&(f=o.width),v===void 0&&(v=o.height),this.context.putImageData(o,i,a,u,h,f,v),this},getData:function(o,i,a,u){o=p(Math.floor(o),0,this.width-1),i=p(Math.floor(i),0,this.height-1),a=p(a,1,this.width-o),u=p(u,1,this.height-i);var h=this.context.getImageData(o,i,a,u);return h},getPixel:function(o,i,a){a||(a=new l);var u=this.getIndex(o,i);if(u>-1){var h=this.data,f=h[u+0],v=h[u+1],m=h[u+2],g=h[u+3];a.setTo(f,v,m,g)}return a},getPixels:function(o,i,a,u){o===void 0&&(o=0),i===void 0&&(i=0),a===void 0&&(a=this.width),u===void 0&&(u=a),o=Math.abs(Math.round(o)),i=Math.abs(Math.round(i));for(var h=p(o,0,this.width),f=p(o+a,0,this.width),v=p(i,0,this.height),m=p(i+u,0,this.height),g=new l,x=[],y=v;y{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(10312),p=t(71911),a=t(27919),r=t(83419),n=t(8054),e=t(4327),s=t(95540),l=t(36060),i=t(32302),o=t(79237),u=t(70554),h=new r({Extends:o,initialize:function(v,m,x,g){x===void 0&&(x=256),g===void 0&&(g=256),this.type="DynamicTexture";var y=v.game.renderer,S=y&&y.type===n.CANVAS,C=S?a.create2D(this,x,g):[this];o.call(this,v,m,C,x,g),this.add("__BASE",0,0,0,x,g),this.renderer=y,this.width=-1,this.height=-1,this.isDrawing=!1,this.canvas=S?C:null,this.context=S?C.getContext("2d",{willReadFrequently:!0}):null,this.dirty=!1,this.isSpriteTexture=!0,this._eraseMode=!1,this.camera=new p(0,0,x,g).setScene(v.game.scene.systemScene,!1),this.renderTarget=S?null:new i(y,x,g,1,0,!1,!0,!0,!1),this.pipeline=S?null:y.pipelines.get(l.SINGLE_PIPELINE),this.setSize(x,g)},setSize:function(f,v){v===void 0&&(v=f);var m=this.get(),x=m.source;if(f!==this.width||v!==this.height){this.canvas&&(this.canvas.width=f,this.canvas.height=v);var g=this.renderTarget;g&&(g.willResize(f,v)&&g.resize(f,v),g.texture!==x.glTexture&&this.renderer.deleteTexture(x.glTexture),this.setFromRenderTarget()),this.camera.setSize(f,v),x.width=f,x.height=v,m.setSize(f,v),this.width=f,this.height=v}else{var y=this.getSourceImage();m.cutX+f>y.width&&(f=y.width-m.cutX),m.cutY+v>y.height&&(v=y.height-m.cutY),m.setSize(f,v,m.cutX,m.cutY)}return this},setFromRenderTarget:function(){var f=this.get(),v=f.source,m=this.renderTarget;return v.isRenderTexture=!0,v.isGLTexture=!0,v.glTexture=m.texture,this},setIsSpriteTexture:function(f){return this.isSpriteTexture=f,this},fill:function(f,v,m,x,g,y){var S=this.camera,C=this.renderer;v===void 0&&(v=1),m===void 0&&(m=0),x===void 0&&(x=0),g===void 0&&(g=this.width),y===void 0&&(y=this.height);var E=f>>16&255,A=f>>8&255,P=f&255,M=this.renderTarget;if(S.preRender(),M){M.bind(!0);var F=this.pipeline.manager.set(this.pipeline),L=C.width/M.width,b=C.height/M.height,B=M.height-(x+y);F.drawFillRect(m*L,B*b,g*L,y*b,u.getTintFromFloats(P/255,A/255,E/255,1),v),M.unbind(!0)}else{var N=this.context;C.setContext(N),N.globalCompositeOperation="source-over",N.fillStyle="rgba("+E+","+A+","+P+","+v+")",N.fillRect(m,x,g,y),C.setContext()}return this.dirty=!0,this},clear:function(){if(this.dirty){var f=this.context,v=this.renderTarget;v?v.clear():f&&(f.save(),f.setTransform(1,0,0,1,0,0),f.clearRect(0,0,this.width,this.height),f.restore()),this.dirty=!1}return this},stamp:function(f,v,m,x,g){m===void 0&&(m=0),x===void 0&&(x=0);var y=s(g,"alpha",1),S=s(g,"tint",16777215),C=s(g,"angle",0),E=s(g,"rotation",0),A=s(g,"scale",1),P=s(g,"scaleX",A),M=s(g,"scaleY",A),F=s(g,"originX",.5),L=s(g,"originY",.5),b=s(g,"blendMode",0),B=s(g,"erase",!1),N=s(g,"skipBatch",!1),X=this.manager.resetStamp(y,S);return X.setAngle(0),C!==0?X.setAngle(C):E!==0&&X.setRotation(E),X.setScale(P,M),X.setTexture(f,v),X.setOrigin(F,L),X.setBlendMode(b),B&&(this._eraseMode=!0),N?this.batchGameObject(X,m,x):this.draw(X,m,x),B&&(this._eraseMode=!1),this},erase:function(f,v,m){return this._eraseMode=!0,this.draw(f,v,m),this._eraseMode=!1,this},draw:function(f,v,m,x,g){return this.beginDraw(),this.batchDraw(f,v,m,x,g),this.endDraw(),this},drawFrame:function(f,v,m,x,g,y){return this.beginDraw(),this.batchDrawFrame(f,v,m,x,g,y),this.endDraw(),this},repeat:function(f,v,m,x,g,y,S,C,E){if(m===void 0&&(m=0),x===void 0&&(x=0),g===void 0&&(g=this.width),y===void 0&&(y=this.height),S===void 0&&(S=1),C===void 0&&(C=16777215),E===void 0&&(E=!1),f instanceof e?v=f:v=this.manager.getFrame(f,v),!v)return this;var A=this.manager.resetStamp(S,C);A.setFrame(v),A.setOrigin(0);var P=v.width,M=v.height;g=Math.floor(g),y=Math.floor(y);var F=Math.ceil(g/P),L=Math.ceil(y/M),b=F*P-g,B=L*M-y;b>0&&(b=P-b),B>0&&(B=M-B),m<0&&(F+=Math.ceil(Math.abs(m)/P)),x<0&&(L+=Math.ceil(Math.abs(x)/M));var N=m,X=x,D=!1,I=this.manager.stampCrop.setTo(0,0,P,M);E||this.beginDraw();for(var R=0;R0&&O===F-1&&(D=!0,I.width=b),B>0&&R===L-1&&(D=!0,I.height=B),D&&A.setCrop(I),this.batchGameObject(A,N,X),A.isCropped=!1,I.setTo(0,0,P,M),N+=P}N=m,X+=M}return E||this.endDraw(),this},beginDraw:function(){if(!this.isDrawing){var f=this.camera,v=this.renderer,m=this.renderTarget;f.preRender(),m?v.beginCapture(m.width,m.height):v.setContext(this.context),this.isDrawing=!0}return this},batchDraw:function(f,v,m,x,g){return Array.isArray(f)||(f=[f]),this.batchList(f,v,m,x,g),this},batchDrawFrame:function(f,v,m,x,g,y){m===void 0&&(m=0),x===void 0&&(x=0),g===void 0&&(g=1),y===void 0&&(y=16777215);var S=this.manager.getFrame(f,v);return S&&(this.renderTarget?this.pipeline.batchTextureFrame(S,m,x,y,g,this.camera.matrix,null):this.batchTextureFrame(S,m,x,g,y)),this},endDraw:function(f){if(f===void 0&&(f=this._eraseMode),this.isDrawing){var v=this.renderer,m=this.renderTarget;if(m){var x=v.endCapture(),g=v.pipelines.setUtility();g.blitFrame(x,m,1,!1,!1,f,this.isSpriteTexture),v.resetScissor(),v.resetViewport()}else v.setContext();this.dirty=!0,this.isDrawing=!1}return this},batchList:function(f,v,m,x,g){var y=f.length;if(y!==0)for(var S=0;S0&&E.height>0&&C.drawImage(A,E.x,E.y,E.width,E.height,v,m,E.width,E.height),C.restore()}},snapshotArea:function(f,v,m,x,g,y,S){return this.renderTarget?this.renderer.snapshotFramebuffer(this.renderTarget.framebuffer,this.width,this.height,g,!1,f,v,m,x,y,S):this.renderer.snapshotCanvas(this.canvas,g,!1,f,v,m,x,y,S),this},snapshot:function(f,v,m){return this.snapshotArea(0,0,this.width,this.height,f,v,m)},snapshotPixel:function(f,v,m){return this.snapshotArea(f,v,1,1,m,"pixel")},getWebGLTexture:function(){if(this.renderTarget)return this.renderTarget.texture},renderWebGL:function(f,v,m,x){var g=this.manager.resetStamp();g.setTexture(this),g.setOrigin(0),g.renderWebGL(f,g,m,x)},renderCanvas:function(){},destroy:function(){var f=this.manager.stamp;f&&f.texture===this&&this.manager.resetStamp(),o.prototype.destroy.call(this),a.remove(this.canvas),this.renderTarget&&this.renderTarget.destroy(),this.camera.destroy(),this.canvas=null,this.context=null,this.renderer=null}});c.exports=h},4327:(c,T,t)=>{/** + */var d=t(10312),p=t(38058),l=t(27919),r=t(83419),n=t(8054),e=t(4327),s=t(95540),o=t(36060),i=t(32302),a=t(79237),u=t(70554),h=new r({Extends:a,initialize:function(v,m,g,x){g===void 0&&(g=256),x===void 0&&(x=256),this.type="DynamicTexture";var y=v.game.renderer,S=y&&y.type===n.CANVAS,C=S?l.create2D(this,g,x):[this];a.call(this,v,m,C,g,x),this.add("__BASE",0,0,0,g,x),this.renderer=y,this.width=-1,this.height=-1,this.isDrawing=!1,this.canvas=S?C:null,this.context=S?C.getContext("2d",{willReadFrequently:!0}):null,this.dirty=!1,this.isSpriteTexture=!0,this._eraseMode=!1,this.camera=new p(0,0,g,x).setScene(v.game.scene.systemScene,!1),this.renderTarget=S?null:new i(y,g,x,1,0,!1,!1,!0,!1),this.pipeline=S?null:y.pipelines.get(o.SINGLE_PIPELINE),this.setSize(g,x)},setSize:function(f,v){v===void 0&&(v=f);var m=this.get(),g=m.source;if(f!==this.width||v!==this.height){this.canvas&&(this.canvas.width=f,this.canvas.height=v);var x=this.renderTarget;x&&(x.willResize(f,v)&&x.resize(f,v),x.texture!==g.glTexture&&this.renderer.deleteTexture(g.glTexture),this.setFromRenderTarget()),this.camera.setSize(f,v),g.width=f,g.height=v,m.setSize(f,v),this.width=f,this.height=v}else{var y=this.getSourceImage();m.cutX+f>y.width&&(f=y.width-m.cutX),m.cutY+v>y.height&&(v=y.height-m.cutY),m.setSize(f,v,m.cutX,m.cutY)}return this},setFromRenderTarget:function(){var f=this.get(),v=f.source,m=this.renderTarget;return v.isRenderTexture=!0,v.isGLTexture=!0,v.glTexture=m.texture,this},setIsSpriteTexture:function(f){return this.isSpriteTexture=f,this},fill:function(f,v,m,g,x,y){var S=this.camera,C=this.renderer;v===void 0&&(v=1),m===void 0&&(m=0),g===void 0&&(g=0),x===void 0&&(x=this.width),y===void 0&&(y=this.height);var E=f>>16&255,M=f>>8&255,P=f&255,A=this.renderTarget;if(S.preRender(),A){A.bind(!0);var R=this.pipeline.manager.set(this.pipeline),F=C.width/A.width,D=C.height/A.height,w=A.height-(g+y);R.drawFillRect(m*F,w*D,x*F,y*D,u.getTintFromFloats(P/255,M/255,E/255,1),v),A.unbind(!0)}else{var G=this.context;C.setContext(G),G.globalCompositeOperation="source-over",G.fillStyle="rgba("+E+","+M+","+P+","+v+")",G.fillRect(m,g,x,y),C.setContext()}return this.dirty=!0,this},clear:function(f,v,m,g){if(this.dirty){var x=this.context,y=this.renderTarget;y?y.clear(f,v,m,g):x&&(f!==void 0&&v!==void 0&&m!==void 0&&g!==void 0?x.clearRect(f,v,m,g):(x.save(),x.setTransform(1,0,0,1,0,0),x.clearRect(0,0,this.width,this.height),x.restore())),this.dirty=!1}return this},stamp:function(f,v,m,g,x){m===void 0&&(m=0),g===void 0&&(g=0);var y=s(x,"alpha",1),S=s(x,"tint",16777215),C=s(x,"angle",0),E=s(x,"rotation",0),M=s(x,"scale",1),P=s(x,"scaleX",M),A=s(x,"scaleY",M),R=s(x,"originX",.5),F=s(x,"originY",.5),D=s(x,"blendMode",0),w=s(x,"erase",!1),G=s(x,"skipBatch",!1),N=this.manager.resetStamp(y,S);return N.setAngle(0),C!==0?N.setAngle(C):E!==0&&N.setRotation(E),N.setScale(P,A),N.setTexture(f,v),N.setOrigin(R,F),N.setBlendMode(D),w&&(this._eraseMode=!0),G?this.batchGameObject(N,m,g):this.draw(N,m,g),w&&(this._eraseMode=!1),this},erase:function(f,v,m){return this._eraseMode=!0,this.draw(f,v,m),this._eraseMode=!1,this},draw:function(f,v,m,g,x){return this.beginDraw(),this.batchDraw(f,v,m,g,x),this.endDraw(),this},drawFrame:function(f,v,m,g,x,y){return this.beginDraw(),this.batchDrawFrame(f,v,m,g,x,y),this.endDraw(),this},repeat:function(f,v,m,g,x,y,S,C,E){if(m===void 0&&(m=0),g===void 0&&(g=0),x===void 0&&(x=this.width),y===void 0&&(y=this.height),S===void 0&&(S=1),C===void 0&&(C=16777215),E===void 0&&(E=!1),f instanceof e?v=f:v=this.manager.getFrame(f,v),!v)return this;var M=this.manager.resetStamp(S,C);M.setFrame(v),M.setOrigin(0);var P=v.width,A=v.height;x=Math.floor(x),y=Math.floor(y);var R=Math.ceil(x/P),F=Math.ceil(y/A),D=R*P-x,w=F*A-y;D>0&&(D=P-D),w>0&&(w=A-w),m<0&&(R+=Math.ceil(Math.abs(m)/P)),g<0&&(F+=Math.ceil(Math.abs(g)/A));var G=m,N=g,b=!1,B=this.manager.stampCrop.setTo(0,0,P,A);E||this.beginDraw();for(var O=0;O0&&L===R-1&&(b=!0,B.width=D),w>0&&O===F-1&&(b=!0,B.height=w),b&&M.setCrop(B),this.batchGameObject(M,G,N),M.isCropped=!1,B.setTo(0,0,P,A),G+=P}G=m,N+=A}return E||this.endDraw(),this},beginDraw:function(){if(!this.isDrawing){var f=this.camera,v=this.renderer,m=this.renderTarget;f.preRender(),m?v.beginCapture(m.width,m.height):v.setContext(this.context),this.isDrawing=!0}return this},batchDraw:function(f,v,m,g,x){return Array.isArray(f)||(f=[f]),this.batchList(f,v,m,g,x),this},batchDrawFrame:function(f,v,m,g,x,y){m===void 0&&(m=0),g===void 0&&(g=0),x===void 0&&(x=1),y===void 0&&(y=16777215);var S=this.manager.getFrame(f,v);return S&&(this.renderTarget?this.pipeline.batchTextureFrame(S,m,g,y,x,this.camera.matrix,null):this.batchTextureFrame(S,m,g,x,y)),this},endDraw:function(f){if(f===void 0&&(f=this._eraseMode),this.isDrawing){var v=this.renderer,m=this.renderTarget;if(m){var g=v.endCapture(),x=v.pipelines.setUtility();x.blitFrame(g,m,1,!1,!1,f,this.isSpriteTexture),v.resetScissor(),v.resetViewport()}else v.setContext();this.dirty=!0,this.isDrawing=!1}return this},batchList:function(f,v,m,g,x){var y=f.length;if(y!==0)for(var S=0;S0&&E.height>0&&C.drawImage(M,E.x,E.y,E.width,E.height,v,m,E.width,E.height),C.restore()}},snapshotArea:function(f,v,m,g,x,y,S){return this.renderTarget?this.renderer.snapshotFramebuffer(this.renderTarget.framebuffer,this.width,this.height,x,!1,f,v,m,g,y,S):this.renderer.snapshotCanvas(this.canvas,x,!1,f,v,m,g,y,S),this},snapshot:function(f,v,m){return this.snapshotArea(0,0,this.width,this.height,f,v,m)},snapshotPixel:function(f,v,m){return this.snapshotArea(f,v,1,1,m,"pixel")},getWebGLTexture:function(){if(this.renderTarget)return this.renderTarget.texture},renderWebGL:function(f,v,m,g){var x=this.manager.resetStamp();x.setTexture(this),x.setOrigin(0),x.renderWebGL(f,x,m,g)},renderCanvas:function(){},destroy:function(){var f=this.manager.stamp;f&&f.texture===this&&this.manager.resetStamp(),a.prototype.destroy.call(this),l.remove(this.canvas),this.renderTarget&&this.renderTarget.destroy(),this.camera.destroy(),this.canvas=null,this.context=null,this.renderer=null}});c.exports=h},4327:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(45319),a=t(79291),r=new d({initialize:function(e,s,l,i,o,u,h){this.texture=e,this.name=s,this.source=e.source[l],this.sourceIndex=l,this.cutX,this.cutY,this.cutWidth,this.cutHeight,this.x=0,this.y=0,this.width,this.height,this.halfWidth,this.halfHeight,this.centerX,this.centerY,this.pivotX=0,this.pivotY=0,this.customPivot=!1,this.rotated=!1,this.autoRound=-1,this.customData={},this.u0=0,this.v0=0,this.u1=0,this.v1=0,this.data={cut:{x:0,y:0,w:0,h:0,r:0,b:0},trim:!1,sourceSize:{w:0,h:0},spriteSourceSize:{x:0,y:0,w:0,h:0,r:0,b:0},radius:0,drawImage:{x:0,y:0,width:0,height:0},is3Slice:!1,scale9:!1,scale9Borders:{x:0,y:0,w:0,h:0}},this.setSize(u,h,i,o)},setSize:function(n,e,s,l){s===void 0&&(s=0),l===void 0&&(l=0),this.cutX=s,this.cutY=l,this.cutWidth=n,this.cutHeight=e,this.width=n,this.height=e,this.halfWidth=Math.floor(n*.5),this.halfHeight=Math.floor(e*.5),this.centerX=Math.floor(n/2),this.centerY=Math.floor(e/2);var i=this.data,o=i.cut;o.x=s,o.y=l,o.w=n,o.h=e,o.r=s+n,o.b=l+e,i.sourceSize.w=n,i.sourceSize.h=e,i.spriteSourceSize.w=n,i.spriteSourceSize.h=e,i.radius=.5*Math.sqrt(n*n+e*e);var u=i.drawImage;return u.x=s,u.y=l,u.width=n,u.height=e,this.updateUVs()},setTrim:function(n,e,s,l,i,o){var u=this.data,h=u.spriteSourceSize;return u.trim=!0,u.sourceSize.w=n,u.sourceSize.h=e,h.x=s,h.y=l,h.w=i,h.h=o,h.r=s+i,h.b=l+o,this.x=s,this.y=l,this.width=i,this.height=o,this.halfWidth=i*.5,this.halfHeight=o*.5,this.centerX=Math.floor(i/2),this.centerY=Math.floor(o/2),this.updateUVs()},setScale9:function(n,e,s,l){var i=this.data;return i.scale9=!0,i.is3Slice=e===0&&l===this.height,i.scale9Borders.x=n,i.scale9Borders.y=e,i.scale9Borders.w=s,i.scale9Borders.h=l,this},setCropUVs:function(n,e,s,l,i,o,u){var h=this.cutX,f=this.cutY,v=this.cutWidth,m=this.cutHeight,x=this.realWidth,g=this.realHeight;e=p(e,0,x),s=p(s,0,g),l=p(l,0,x-e),i=p(i,0,g-s);var y=h+e,S=f+s,C=l,E=i,A=this.data;if(A.trim){var P=A.spriteSourceSize;l=p(l,0,v-e),i=p(i,0,m-s);var M=e+l,F=s+i,L=!(P.rM||P.y>F);if(L){var b=Math.max(P.x,e),B=Math.max(P.y,s),N=Math.min(P.r,M)-b,X=Math.min(P.b,F)-B;C=N,E=X,o?y=h+(v-(b-P.x)-N):y=h+(b-P.x),u?S=f+(m-(B-P.y)-X):S=f+(B-P.y),e=b,s=B,l=N,i=X}else y=0,S=0,C=0,E=0}else o&&(y=h+(v-e-l)),u&&(S=f+(m-s-i));var D=this.source.width,I=this.source.height;return n.u0=Math.max(0,y/D),n.v0=Math.max(0,S/I),n.u1=Math.min(1,(y+C)/D),n.v1=Math.min(1,(S+E)/I),n.x=e,n.y=s,n.cx=y,n.cy=S,n.cw=C,n.ch=E,n.width=l,n.height=i,n.flipX=o,n.flipY=u,n},updateCropUVs:function(n,e,s){return this.setCropUVs(n,n.x,n.y,n.width,n.height,e,s)},setUVs:function(n,e,s,l,i,o){var u=this.data.drawImage;return u.width=n,u.height=e,this.u0=s,this.v0=l,this.u1=i,this.v1=o,this},updateUVs:function(){var n=this.cutX,e=this.cutY,s=this.cutWidth,l=this.cutHeight,i=this.data.drawImage;i.width=s,i.height=l;var o=this.source.width,u=this.source.height;return this.u0=n/o,this.v0=e/u,this.u1=(n+s)/o,this.v1=(e+l)/u,this},updateUVsInverted:function(){var n=this.source.width,e=this.source.height;return this.u0=(this.cutX+this.cutHeight)/n,this.v0=this.cutY/e,this.u1=this.cutX/n,this.v1=(this.cutY+this.cutWidth)/e,this},clone:function(){var n=new r(this.texture,this.name,this.sourceIndex);return n.cutX=this.cutX,n.cutY=this.cutY,n.cutWidth=this.cutWidth,n.cutHeight=this.cutHeight,n.x=this.x,n.y=this.y,n.width=this.width,n.height=this.height,n.halfWidth=this.halfWidth,n.halfHeight=this.halfHeight,n.centerX=this.centerX,n.centerY=this.centerY,n.rotated=this.rotated,n.data=a(!0,n.data,this.data),n.updateUVs(),n},destroy:function(){this.texture=null,this.source=null,this.customData=null,this.data=null},glTexture:{get:function(){return this.source.glTexture}},realWidth:{get:function(){return this.data.sourceSize.w}},realHeight:{get:function(){return this.data.sourceSize.h}},radius:{get:function(){return this.data.radius}},trimmed:{get:function(){return this.data.trim}},scale9:{get:function(){return this.data.scale9}},is3Slice:{get:function(){return this.data.is3Slice}},canvasData:{get:function(){return this.data.drawImage}}});c.exports=r},79237:(c,T,t)=>{/** + */var d=t(83419),p=t(45319),l=t(79291),r=new d({initialize:function(e,s,o,i,a,u,h){this.texture=e,this.name=s,this.source=e.source[o],this.sourceIndex=o,this.cutX,this.cutY,this.cutWidth,this.cutHeight,this.x=0,this.y=0,this.width,this.height,this.halfWidth,this.halfHeight,this.centerX,this.centerY,this.pivotX=0,this.pivotY=0,this.customPivot=!1,this.rotated=!1,this.autoRound=-1,this.customData={},this.u0=0,this.v0=0,this.u1=0,this.v1=0,this.data={cut:{x:0,y:0,w:0,h:0,r:0,b:0},trim:!1,sourceSize:{w:0,h:0},spriteSourceSize:{x:0,y:0,w:0,h:0,r:0,b:0},radius:0,drawImage:{x:0,y:0,width:0,height:0},is3Slice:!1,scale9:!1,scale9Borders:{x:0,y:0,w:0,h:0}},this.setSize(u,h,i,a)},setCutPosition:function(n,e){return n===void 0&&(n=0),e===void 0&&(e=0),this.cutX=n,this.cutY=e,this.updateUVs()},setCutSize:function(n,e){return this.cutWidth=n,this.cutHeight=e,this.updateUVs()},setSize:function(n,e,s,o){s===void 0&&(s=0),o===void 0&&(o=0),this.setCutPosition(s,o),this.setCutSize(n,e),this.width=n,this.height=e,this.halfWidth=Math.floor(n*.5),this.halfHeight=Math.floor(e*.5),this.centerX=Math.floor(n/2),this.centerY=Math.floor(e/2);var i=this.data,a=i.cut;a.x=s,a.y=o,a.w=n,a.h=e,a.r=s+n,a.b=o+e,i.sourceSize.w=n,i.sourceSize.h=e,i.spriteSourceSize.w=n,i.spriteSourceSize.h=e,i.radius=.5*Math.sqrt(n*n+e*e);var u=i.drawImage;return u.x=s,u.y=o,u.width=n,u.height=e,this.updateUVs()},setTrim:function(n,e,s,o,i,a){var u=this.data,h=u.spriteSourceSize;return u.trim=!0,u.sourceSize.w=n,u.sourceSize.h=e,h.x=s,h.y=o,h.w=i,h.h=a,h.r=s+i,h.b=o+a,this.x=s,this.y=o,this.width=i,this.height=a,this.halfWidth=i*.5,this.halfHeight=a*.5,this.centerX=Math.floor(i/2),this.centerY=Math.floor(a/2),this.updateUVs()},setScale9:function(n,e,s,o){var i=this.data;return i.scale9=!0,i.is3Slice=e===0&&o===this.height,i.scale9Borders.x=n,i.scale9Borders.y=e,i.scale9Borders.w=s,i.scale9Borders.h=o,this},setCropUVs:function(n,e,s,o,i,a,u){var h=this.cutX,f=this.cutY,v=this.cutWidth,m=this.cutHeight,g=this.realWidth,x=this.realHeight;e=p(e,0,g),s=p(s,0,x),o=p(o,0,g-e),i=p(i,0,x-s);var y=h+e,S=f+s,C=o,E=i,M=this.data;if(M.trim){var P=M.spriteSourceSize;o=p(o,0,v-e),i=p(i,0,m-s);var A=e+o,R=s+i,F=!(P.rA||P.y>R);if(F){var D=Math.max(P.x,e),w=Math.max(P.y,s),G=Math.min(P.r,A)-D,N=Math.min(P.b,R)-w;C=G,E=N,a?y=h+(v-(D-P.x)-G):y=h+(D-P.x),u?S=f+(m-(w-P.y)-N):S=f+(w-P.y),e=D,s=w,o=G,i=N}else y=0,S=0,C=0,E=0}else a&&(y=h+(v-e-o)),u&&(S=f+(m-s-i));var b=this.source.width,B=this.source.height;return n.u0=Math.max(0,y/b),n.v0=Math.max(0,S/B),n.u1=Math.min(1,(y+C)/b),n.v1=Math.min(1,(S+E)/B),n.x=e,n.y=s,n.cx=y,n.cy=S,n.cw=C,n.ch=E,n.width=o,n.height=i,n.flipX=a,n.flipY=u,n},updateCropUVs:function(n,e,s){return this.setCropUVs(n,n.x,n.y,n.width,n.height,e,s)},setUVs:function(n,e,s,o,i,a){var u=this.data.drawImage;return u.width=n,u.height=e,this.u0=s,this.v0=o,this.u1=i,this.v1=a,this},updateUVs:function(){var n=this.cutX,e=this.cutY,s=this.cutWidth,o=this.cutHeight,i=this.data.drawImage;i.width=s,i.height=o;var a=this.source.width,u=this.source.height;return this.u0=n/a,this.v0=e/u,this.u1=(n+s)/a,this.v1=(e+o)/u,this},updateUVsInverted:function(){var n=this.source.width,e=this.source.height;return this.u0=(this.cutX+this.cutHeight)/n,this.v0=this.cutY/e,this.u1=this.cutX/n,this.v1=(this.cutY+this.cutWidth)/e,this},clone:function(){var n=new r(this.texture,this.name,this.sourceIndex);return n.cutX=this.cutX,n.cutY=this.cutY,n.cutWidth=this.cutWidth,n.cutHeight=this.cutHeight,n.x=this.x,n.y=this.y,n.width=this.width,n.height=this.height,n.halfWidth=this.halfWidth,n.halfHeight=this.halfHeight,n.centerX=this.centerX,n.centerY=this.centerY,n.rotated=this.rotated,n.data=l(!0,n.data,this.data),n.updateUVs(),n},destroy:function(){this.texture=null,this.source=null,this.customData=null,this.data=null},glTexture:{get:function(){return this.source.glTexture}},realWidth:{get:function(){return this.data.sourceSize.w}},realHeight:{get:function(){return this.data.sourceSize.h}},radius:{get:function(){return this.data.radius}},trimmed:{get:function(){return this.data.trim}},scale9:{get:function(){return this.data.scale9}},is3Slice:{get:function(){return this.data.is3Slice}},canvasData:{get:function(){return this.data.drawImage}}});c.exports=r},79237:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(4327),a=t(11876),r='Texture "%s" has no frame "%s"',n=new d({initialize:function(s,l,i,o,u){Array.isArray(i)||(i=[i]),this.manager=s,this.key=l,this.source=[],this.dataSource=[],this.frames={},this.customData={},this.firstFrame="__BASE",this.frameTotal=0;for(var h=0;ho&&(o=f.cutX+f.cutWidth),f.cutY+f.cutHeight>u&&(u=f.cutY+f.cutHeight)}return{x:l,y:i,width:o-l,height:u-i}},getFrameNames:function(e){e===void 0&&(e=!1);var s=Object.keys(this.frames);if(!e){var l=s.indexOf("__BASE");l!==-1&&s.splice(l,1)}return s},getSourceImage:function(e){(e==null||this.frameTotal===1)&&(e="__BASE");var s=this.frames[e];return s?s.source.image:(console.warn(r,this.key,e),this.frames.__BASE.source.image)},getDataSourceImage:function(e){(e==null||this.frameTotal===1)&&(e="__BASE");var s=this.frames[e],l;return s?l=s.sourceIndex:(console.warn(r,this.key,e),l=this.frames.__BASE.sourceIndex),this.dataSource[l].image},setDataSource:function(e){Array.isArray(e)||(e=[e]);for(var s=0;s{/** + */var d=t(83419),p=t(4327),l=t(11876),r='Texture "%s" has no frame "%s"',n=new d({initialize:function(s,o,i,a,u){Array.isArray(i)||(i=[i]),this.manager=s,this.key=o,this.source=[],this.dataSource=[],this.frames={},this.customData={},this.firstFrame="__BASE",this.frameTotal=0;for(var h=0;hu&&(u=v.cutX+v.cutWidth),v.cutY+v.cutHeight>h&&(h=v.cutY+v.cutHeight)}return{x:i,y:a,width:u-i,height:h-a}},getFrameNames:function(e){e===void 0&&(e=!1);var s=Object.keys(this.frames);if(!e){var o=s.indexOf("__BASE");o!==-1&&s.splice(o,1)}return s},getSourceImage:function(e){(e==null||this.frameTotal===1)&&(e="__BASE");var s=this.frames[e];return s?s.source.image:(console.warn(r,this.key,e),this.frames.__BASE.source.image)},getDataSourceImage:function(e){(e==null||this.frameTotal===1)&&(e="__BASE");var s=this.frames[e],o;return s?o=s.sourceIndex:(console.warn(r,this.key,e),o=this.frames.__BASE.sourceIndex),this.dataSource[o].image},setDataSource:function(e){Array.isArray(e)||(e=[e]);for(var s=0;s{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(27919),p=t(57382),a=t(83419),r=t(40987),n=t(8054),e=t(81320),s=t(50792),l=t(69442),i=t(4327),o=t(8443),u=t(99584),h=t(35154),f=t(88571),v=t(41212),m=t(61309),x=t(87841),g=t(79237),y=new a({Extends:s,initialize:function(C){s.call(this),this.game=C,this.name="TextureManager",this.list={},this._tempCanvas=d.create2D(this),this._tempContext=this._tempCanvas.getContext("2d",{willReadFrequently:!0}),this._pending=0,this.stamp,this.stampCrop=new x,this.silentWarnings=!1,C.events.once(o.BOOT,this.boot,this)},boot:function(){this._pending=3,this.on(l.LOAD,this.updatePending,this),this.on(l.ERROR,this.updatePending,this);var S=this.game.config;this.addBase64("__DEFAULT",S.defaultImage),this.addBase64("__MISSING",S.missingImage),this.addBase64("__WHITE",S.whiteImage),this.game.renderer&&this.game.renderer.gl&&this.addUint8Array("__NORMAL",new Uint8Array([127,127,255,255]),1,1),this.game.events.once(o.DESTROY,this.destroy,this),this.game.events.once(o.SYSTEM_READY,function(C){this.stamp=new f(C).setOrigin(0)},this)},updatePending:function(){this._pending--,this._pending===0&&(this.off(l.LOAD),this.off(l.ERROR),this.emit(l.READY))},checkKey:function(S){return this.exists(S)?(this.silentWarnings||console.error("Texture key already in use: "+S),!1):!0},remove:function(S){if(typeof S=="string")if(this.exists(S))S=this.get(S);else return this.silentWarnings||console.warn("No texture found matching key: "+S),this;var C=S.key;return this.list.hasOwnProperty(C)&&(S.destroy(),this.emit(l.REMOVE,C),this.emit(l.REMOVE_KEY+C)),this},removeKey:function(S){return this.list.hasOwnProperty(S)&&delete this.list[S],this},addBase64:function(S,C){if(this.checkKey(S)){var E=this,A=new Image;A.onerror=function(){E.emit(l.ERROR,S)},A.onload=function(){var P=E.create(S,A);m.Image(P,0),E.emit(l.ADD,S,P),E.emit(l.ADD_KEY+S,P),E.emit(l.LOAD,S,P)},A.src=C}return this},getBase64:function(S,C,E,A){E===void 0&&(E="image/png"),A===void 0&&(A=.92);var P="",M=this.getFrame(S,C);if(M&&(M.source.isRenderTexture||M.source.isGLTexture))this.silentWarnings||console.warn("Cannot getBase64 from WebGL Texture");else if(M){var F=M.canvasData,L=d.create2D(this,F.width,F.height),b=L.getContext("2d",{willReadFrequently:!0});F.width>0&&F.height>0&&b.drawImage(M.source.image,F.x,F.y,F.width,F.height,0,0,F.width,F.height),P=L.toDataURL(E,A),d.remove(L)}return P},addImage:function(S,C,E){var A=null;return this.checkKey(S)&&(A=this.create(S,C),m.Image(A,0),E&&A.setDataSource(E),this.emit(l.ADD,S,A),this.emit(l.ADD_KEY+S,A)),A},addGLTexture:function(S,C){var E=null;if(this.checkKey(S)){var A=C.width,P=C.height;E=this.create(S,C,A,P),E.add("__BASE",0,0,0,A,P),this.emit(l.ADD,S,E),this.emit(l.ADD_KEY+S,E)}return E},addCompressedTexture:function(S,C,E){var A=null;if(this.checkKey(S)){if(A=this.create(S,C),A.add("__BASE",0,0,0,C.width,C.height),E){var P=function(F,L,b){Array.isArray(b.textures)||Array.isArray(b.frames)?m.JSONArray(F,L,b):m.JSONHash(F,L,b)};if(Array.isArray(E))for(var M=0;M=M.x&&S=M.y&&C=M.x&&S=M.y&&C{/** + */var d=t(27919),p=t(57382),l=t(83419),r=t(40987),n=t(8054),e=t(81320),s=t(50792),o=t(69442),i=t(4327),a=t(8443),u=t(99584),h=t(35154),f=t(88571),v=t(41212),m=t(61309),g=t(87841),x=t(79237),y=new l({Extends:s,initialize:function(C){s.call(this),this.game=C,this.name="TextureManager",this.list={},this._tempCanvas=d.create2D(this),this._tempContext=this._tempCanvas.getContext("2d",{willReadFrequently:!0}),this._pending=0,this.stamp,this.stampCrop=new g,this.silentWarnings=!1,C.events.once(a.BOOT,this.boot,this)},boot:function(){this._pending=3,this.on(o.LOAD,this.updatePending,this),this.on(o.ERROR,this.updatePending,this);var S=this.game.config;S.defaultImage!==null&&this.addBase64("__DEFAULT",S.defaultImage),S.missingImage!==null&&this.addBase64("__MISSING",S.missingImage),S.whiteImage!==null&&this.addBase64("__WHITE",S.whiteImage),this.game.renderer&&this.game.renderer.gl&&this.addUint8Array("__NORMAL",new Uint8Array([127,127,255,255]),1,1),this.game.events.once(a.DESTROY,this.destroy,this),this.game.events.once(a.SYSTEM_READY,function(C){this.stamp=new f(C).setOrigin(0)},this)},updatePending:function(){this._pending--,this._pending===0&&(this.off(o.LOAD),this.off(o.ERROR),this.emit(o.READY))},checkKey:function(S){return!S||typeof S!="string"||this.exists(S)?(this.silentWarnings||console.error("Texture key already in use: "+S),!1):!0},remove:function(S){if(typeof S=="string")if(this.exists(S))S=this.get(S);else return this.silentWarnings||console.warn("No texture found matching key: "+S),this;var C=S.key;return this.list.hasOwnProperty(C)&&(S.destroy(),this.emit(o.REMOVE,C),this.emit(o.REMOVE_KEY+C)),this},removeKey:function(S){return this.list.hasOwnProperty(S)&&delete this.list[S],this},addBase64:function(S,C){if(this.checkKey(S)){var E=this,M=new Image;M.onerror=function(){E.emit(o.ERROR,S)},M.onload=function(){var P=E.create(S,M);m.Image(P,0),E.emit(o.ADD,S,P),E.emit(o.ADD_KEY+S,P),E.emit(o.LOAD,S,P)},M.src=C}return this},getBase64:function(S,C,E,M){E===void 0&&(E="image/png"),M===void 0&&(M=.92);var P="",A=this.getFrame(S,C);if(A&&(A.source.isRenderTexture||A.source.isGLTexture))this.silentWarnings||console.warn("Cannot getBase64 from WebGL Texture");else if(A){var R=A.canvasData,F=d.create2D(this,R.width,R.height),D=F.getContext("2d",{willReadFrequently:!0});R.width>0&&R.height>0&&D.drawImage(A.source.image,R.x,R.y,R.width,R.height,0,0,R.width,R.height),P=F.toDataURL(E,M),d.remove(F)}return P},addImage:function(S,C,E){var M=null;return this.checkKey(S)&&(M=this.create(S,C),m.Image(M,0),E&&M.setDataSource(E),this.emit(o.ADD,S,M),this.emit(o.ADD_KEY+S,M)),M},addGLTexture:function(S,C){var E=null;if(this.checkKey(S)){var M=C.width,P=C.height;E=this.create(S,C,M,P),E.add("__BASE",0,0,0,M,P),this.emit(o.ADD,S,E),this.emit(o.ADD_KEY+S,E)}return E},addCompressedTexture:function(S,C,E){var M=null;if(this.checkKey(S)){if(M=this.create(S,C),M.add("__BASE",0,0,0,C.width,C.height),E){var P=function(R,F,D){Array.isArray(D.textures)||Array.isArray(D.frames)?m.JSONArray(R,F,D):m.JSONHash(R,F,D)};if(Array.isArray(E))for(var A=0;A=A.x&&S=A.y&&C=A.x&&S=A.y&&C{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(27919),p=t(83419),a=t(50030),r=t(29795),n=t(82751),e=new p({initialize:function(l,i,o,u,h){h===void 0&&(h=!1);var f=l.manager.game;this.renderer=f.renderer,this.texture=l,this.source=i,this.image=i.compressed?null:i,this.compressionAlgorithm=i.compressed?i.format:null,this.resolution=1,this.width=o||i.naturalWidth||i.videoWidth||i.width||0,this.height=u||i.naturalHeight||i.videoHeight||i.height||0,this.scaleMode=r.DEFAULT,this.isCanvas=i instanceof HTMLCanvasElement,this.isVideo=window.hasOwnProperty("HTMLVideoElement")&&i instanceof HTMLVideoElement,this.isRenderTexture=i.type==="RenderTexture"||i.type==="DynamicTexture",this.isGLTexture=i instanceof n,this.isPowerOf2=a(this.width,this.height),this.glTexture=null,this.flipY=h,this.init(f)},init:function(s){var l=this.renderer;if(l){var i=this.source;if(l.gl){var o=this.image,u=this.flipY,h=this.width,f=this.height,v=this.scaleMode;this.isCanvas?this.glTexture=l.createCanvasTexture(o,!1,u):this.isVideo?this.glTexture=l.createVideoTexture(o,!1,u):this.isRenderTexture?this.glTexture=l.createTextureFromSource(null,h,f,v):this.isGLTexture?this.glTexture=i:this.compressionAlgorithm?this.glTexture=l.createTextureFromSource(i,void 0,void 0,v):i instanceof Uint8Array?this.glTexture=l.createUint8ArrayTexture(i,h,f,v):this.glTexture=l.createTextureFromSource(o,h,f,v)}else this.isRenderTexture&&(this.image=i.canvas)}s.config.antialias||this.setFilter(1)},setFilter:function(s){this.renderer&&this.renderer.gl&&this.renderer.setTextureFilter(this.glTexture,s),this.scaleMode=s},setFlipY:function(s){return s===void 0&&(s=!0),s===this.flipY?this:(this.flipY=s,this.update(),this)},update:function(){var s=this.renderer,l=this.image,i=this.flipY,o=s.gl;o&&this.isCanvas?s.updateCanvasTexture(l,this.glTexture,i):o&&this.isVideo&&s.updateVideoTexture(l,this.glTexture,i)},destroy:function(){this.glTexture&&this.renderer.deleteTexture(this.glTexture),this.isCanvas&&d.remove(this.image),this.renderer=null,this.texture=null,this.source=null,this.image=null,this.glTexture=null}});c.exports=e},19673:c=>{/** + */var d=t(27919),p=t(83419),l=t(50030),r=t(29795),n=t(82751),e=new p({initialize:function(o,i,a,u,h){h===void 0&&(h=!1);var f=o.manager.game;this.renderer=f.renderer,this.texture=o,this.source=i,this.image=i.compressed?null:i,this.compressionAlgorithm=i.compressed?i.format:null,this.resolution=1,this.width=a||i.naturalWidth||i.videoWidth||i.width||0,this.height=u||i.naturalHeight||i.videoHeight||i.height||0,this.scaleMode=r.DEFAULT,this.isCanvas=i instanceof HTMLCanvasElement,this.isVideo=window.hasOwnProperty("HTMLVideoElement")&&i instanceof HTMLVideoElement,this.isRenderTexture=i.type==="RenderTexture"||i.type==="DynamicTexture",this.isGLTexture=i instanceof n,this.isPowerOf2=l(this.width,this.height),this.glTexture=null,this.flipY=h,this.init(f)},init:function(s){var o=this.renderer;if(o){var i=this.source;if(o.gl){var a=this.image,u=this.flipY,h=this.width,f=this.height,v=this.scaleMode;this.isCanvas?this.glTexture=o.createCanvasTexture(a,!1,u):this.isVideo?this.glTexture=o.createVideoTexture(a,!1,u):this.isRenderTexture?this.glTexture=o.createTextureFromSource(null,h,f,v):this.isGLTexture?this.glTexture=i:this.compressionAlgorithm?this.glTexture=o.createTextureFromSource(i,void 0,void 0,v):i instanceof Uint8Array?this.glTexture=o.createUint8ArrayTexture(i,h,f,v):this.glTexture=o.createTextureFromSource(a,h,f,v)}else this.isRenderTexture&&(this.image=i.canvas)}s.config.antialias||this.setFilter(1)},setFilter:function(s){this.renderer&&this.renderer.gl&&this.renderer.setTextureFilter(this.glTexture,s),this.scaleMode=s},setFlipY:function(s){return s===void 0&&(s=!0),s===this.flipY?this:(this.flipY=s,this.update(),this)},update:function(){var s=this.renderer,o=this.image,i=this.flipY,a=s.gl;a&&this.isCanvas?s.updateCanvasTexture(o,this.glTexture,i):a&&this.isVideo&&s.updateVideoTexture(o,this.glTexture,i)},destroy:function(){this.glTexture&&this.renderer.deleteTexture(this.glTexture),this.isCanvas&&d.remove(this.image),this.renderer=null,this.texture=null,this.source=null,this.image=null,this.glTexture=null}});c.exports=e},19673:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -5371,11 +5371,11 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(79291),p=t(19673),a={CanvasTexture:t(57382),DynamicTexture:t(81320),Events:t(69442),FilterMode:p,Frame:t(4327),Parsers:t(61309),Texture:t(79237),TextureManager:t(17130),TextureSource:t(11876)};a=d(!1,a,p),c.exports=a},89905:c=>{/** + */var d=t(79291),p=t(19673),l={CanvasTexture:t(57382),DynamicTexture:t(81320),Events:t(69442),FilterMode:p,Frame:t(4327),Parsers:t(61309),Texture:t(79237),TextureManager:t(17130),TextureSource:t(11876)};l=d(!1,l,p),c.exports=l},89905:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){if(!p.getElementsByTagName("TextureAtlas")){console.warn("Invalid Texture Atlas XML given");return}var a=t.source[d];t.add("__BASE",d,0,0,a.width,a.height);for(var r=p.getElementsByTagName("SubTexture"),n,e=0;e{/** + */var T=function(t,d,p){if(!p.getElementsByTagName("TextureAtlas")){console.warn("Invalid Texture Atlas XML given");return}var l=t.source[d];t.add("__BASE",d,0,0,l.width,l.height);for(var r=p.getElementsByTagName("SubTexture"),n,e=0;e{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -5387,36 +5387,36 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(41786),p=function(a,r,n){if(!n.frames&&!n.textures){console.warn("Invalid Texture Atlas JSON Array");return}var e=a.source[r];a.add("__BASE",r,0,0,e.width,e.height);for(var s=Array.isArray(n.textures)?n.textures[r].frames:n.frames,l,i=0;i{/** + */var d=t(41786),p=function(l,r,n){if(!n.frames&&!n.textures){console.warn("Invalid Texture Atlas JSON Array");return}var e=l.source[r];l.add("__BASE",r,0,0,e.width,e.height);for(var s=Array.isArray(n.textures)?n.textures[r].frames:n.frames,o,i=0;i{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(41786),p=function(a,r,n){if(!n.frames){console.warn("Invalid Texture Atlas JSON Hash given, missing 'frames' Object");return}var e=a.source[r];a.add("__BASE",r,0,0,e.width,e.height);var s=n.frames,l;for(var i in s)if(s.hasOwnProperty(i)){var o=s[i];if(l=a.add(i,r,o.frame.x,o.frame.y,o.frame.w,o.frame.h),!l){console.warn("Invalid atlas json, frame already exists: "+i);continue}o.trimmed&&l.setTrim(o.sourceSize.w,o.sourceSize.h,o.spriteSourceSize.x,o.spriteSourceSize.y,o.spriteSourceSize.w,o.spriteSourceSize.h),o.rotated&&(l.rotated=!0,l.updateUVsInverted());var u=o.anchor||o.pivot;u&&(l.customPivot=!0,l.pivotX=u.x,l.pivotY=u.y),o.scale9Borders&&l.setScale9(o.scale9Borders.x,o.scale9Borders.y,o.scale9Borders.w,o.scale9Borders.h),l.customData=d(o)}for(var h in n)h!=="frames"&&(Array.isArray(n[h])?a.customData[h]=n[h].slice(0):a.customData[h]=n[h]);return a};c.exports=p},31403:c=>{/** + */var d=t(41786),p=function(l,r,n){if(!n.frames){console.warn("Invalid Texture Atlas JSON Hash given, missing 'frames' Object");return}var e=l.source[r];l.add("__BASE",r,0,0,e.width,e.height);var s=n.frames,o;for(var i in s)if(s.hasOwnProperty(i)){var a=s[i];if(o=l.add(i,r,a.frame.x,a.frame.y,a.frame.w,a.frame.h),!o){console.warn("Invalid atlas json, frame already exists: "+i);continue}a.trimmed&&o.setTrim(a.sourceSize.w,a.sourceSize.h,a.spriteSourceSize.x,a.spriteSourceSize.y,a.spriteSourceSize.w,a.spriteSourceSize.h),a.rotated&&(o.rotated=!0,o.updateUVsInverted());var u=a.anchor||a.pivot;u&&(o.customPivot=!0,o.pivotX=u.x,o.pivotY=u.y),a.scale9Borders&&o.setScale9(a.scale9Borders.x,a.scale9Borders.y,a.scale9Borders.w,a.scale9Borders.h),o.customData=d(a)}for(var h in n)h!=="frames"&&(Array.isArray(n[h])?l.customData[h]=n[h].slice(0):l.customData[h]=n[h]);return l};c.exports=p},31403:c=>{/** * @author Richard Davey * @copyright 2021 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t){var d=[171,75,84,88,32,49,49,187,13,10,26,10],p,a=new Uint8Array(t,0,12);for(p=0;p>1),x=Math.max(1,x>>1),v+=g}return{mipmaps:f,width:i,height:o,internalFormat:l,compressed:!0,generateMipmap:!1}};c.exports=T},82038:c=>{/** + */var T=function(t){var d=[171,75,84,88,32,49,49,187,13,10,26,10],p,l=new Uint8Array(t,0,12);for(p=0;p>1),g=Math.max(1,g>>1),v+=x}return{mipmaps:f,width:i,height:a,internalFormat:o,compressed:!0,generateMipmap:!1}};c.exports=T},82038:c=>{/** * @author Richard Davey * @copyright 2021 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */function T(C,E,A,P,M,F,L){return L===void 0&&(L=16),Math.floor((C+A)/M)*Math.floor((E+P)/F)*L}function t(C,E){return C=Math.max(C,16),E=Math.max(E,8),C*E/4}function d(C,E){return C=Math.max(C,8),E=Math.max(E,8),C*E/2}function p(C,E){return Math.ceil(C/4)*Math.ceil(E/4)*16}function a(C,E){return T(C,E,3,3,4,4,8)}function r(C,E){return T(C,E,3,3,4,4)}function n(C,E){return T(C,E,4,3,5,4)}function e(C,E){return T(C,E,4,4,5,5)}function s(C,E){return T(C,E,5,4,6,5)}function l(C,E){return T(C,E,5,5,6,6)}function i(C,E){return T(C,E,7,4,8,5)}function o(C,E){return T(C,E,7,5,8,6)}function u(C,E){return T(C,E,7,7,8,8)}function h(C,E){return T(C,E,9,4,10,5)}function f(C,E){return T(C,E,9,5,10,6)}function v(C,E){return T(C,E,9,7,10,8)}function m(C,E){return T(C,E,9,9,10,10)}function x(C,E){return T(C,E,11,9,12,10)}function g(C,E){return T(C,E,11,11,12,12)}var y={0:{sizeFunc:t,glFormat:[35841]},1:{sizeFunc:t,glFormat:[35843]},2:{sizeFunc:d,glFormat:[35840]},3:{sizeFunc:d,glFormat:[35842]},6:{sizeFunc:a,glFormat:[36196]},7:{sizeFunc:a,glFormat:[33776,35916]},8:{sizeFunc:r,glFormat:[33777,35917]},9:{sizeFunc:r,glFormat:[33778,35918]},11:{sizeFunc:r,glFormat:[33779,35919]},14:{sizeFunc:p,glFormat:[36494,36495]},15:{sizeFunc:p,glFormat:[36492,36493]},22:{sizeFunc:a,glFormat:[37492,37493]},23:{sizeFunc:r,glFormat:[37496,37497]},24:{sizeFunc:a,glFormat:[37494,37495]},25:{sizeFunc:a,glFormat:[37488]},26:{sizeFunc:r,glFormat:[37490]},27:{sizeFunc:r,glFormat:[37808,37840]},28:{sizeFunc:n,glFormat:[37809,37841]},29:{sizeFunc:e,glFormat:[37810,37842]},30:{sizeFunc:s,glFormat:[37811,37843]},31:{sizeFunc:l,glFormat:[37812,37844]},32:{sizeFunc:i,glFormat:[37813,37845]},33:{sizeFunc:o,glFormat:[37814,37846]},34:{sizeFunc:u,glFormat:[37815,37847]},35:{sizeFunc:h,glFormat:[37816,37848]},36:{sizeFunc:f,glFormat:[37817,37849]},37:{sizeFunc:v,glFormat:[37818,37850]},38:{sizeFunc:m,glFormat:[37819,37851]},39:{sizeFunc:x,glFormat:[37820,37852]},40:{sizeFunc:g,glFormat:[37821,37853]}},S=function(C){for(var E=new Uint32Array(C,0,13),A=E[0],P=A===55727696,M=P?E[2]:E[3],F=E[4],L=y[M].glFormat[F],b=y[M].sizeFunc,B=E[11],N=E[7],X=E[6],D=52+E[12],I=new Uint8Array(C,D),R=new Array(B),O=0,w=N,G=X,U=0;U>1),G=Math.max(1,G>>1),O+=z}return{mipmaps:R,width:N,height:X,internalFormat:L,compressed:!0,generateMipmap:!1}};c.exports=S},75549:(c,T,t)=>{/** + */function T(C,E,M,P,A,R,F){return F===void 0&&(F=16),Math.floor((C+M)/A)*Math.floor((E+P)/R)*F}function t(C,E){return C=Math.max(C,16),E=Math.max(E,8),C*E/4}function d(C,E){return C=Math.max(C,8),E=Math.max(E,8),C*E/2}function p(C,E){return Math.ceil(C/4)*Math.ceil(E/4)*16}function l(C,E){return T(C,E,3,3,4,4,8)}function r(C,E){return T(C,E,3,3,4,4)}function n(C,E){return T(C,E,4,3,5,4)}function e(C,E){return T(C,E,4,4,5,5)}function s(C,E){return T(C,E,5,4,6,5)}function o(C,E){return T(C,E,5,5,6,6)}function i(C,E){return T(C,E,7,4,8,5)}function a(C,E){return T(C,E,7,5,8,6)}function u(C,E){return T(C,E,7,7,8,8)}function h(C,E){return T(C,E,9,4,10,5)}function f(C,E){return T(C,E,9,5,10,6)}function v(C,E){return T(C,E,9,7,10,8)}function m(C,E){return T(C,E,9,9,10,10)}function g(C,E){return T(C,E,11,9,12,10)}function x(C,E){return T(C,E,11,11,12,12)}var y={0:{sizeFunc:t,glFormat:[35841]},1:{sizeFunc:t,glFormat:[35843]},2:{sizeFunc:d,glFormat:[35840]},3:{sizeFunc:d,glFormat:[35842]},6:{sizeFunc:l,glFormat:[36196]},7:{sizeFunc:l,glFormat:[33776,35916]},8:{sizeFunc:r,glFormat:[33777,35917]},9:{sizeFunc:r,glFormat:[33778,35918]},11:{sizeFunc:r,glFormat:[33779,35919]},14:{sizeFunc:p,glFormat:[36494,36495]},15:{sizeFunc:p,glFormat:[36492,36493]},22:{sizeFunc:l,glFormat:[37492,37493]},23:{sizeFunc:r,glFormat:[37496,37497]},24:{sizeFunc:l,glFormat:[37494,37495]},25:{sizeFunc:l,glFormat:[37488]},26:{sizeFunc:r,glFormat:[37490]},27:{sizeFunc:r,glFormat:[37808,37840]},28:{sizeFunc:n,glFormat:[37809,37841]},29:{sizeFunc:e,glFormat:[37810,37842]},30:{sizeFunc:s,glFormat:[37811,37843]},31:{sizeFunc:o,glFormat:[37812,37844]},32:{sizeFunc:i,glFormat:[37813,37845]},33:{sizeFunc:a,glFormat:[37814,37846]},34:{sizeFunc:u,glFormat:[37815,37847]},35:{sizeFunc:h,glFormat:[37816,37848]},36:{sizeFunc:f,glFormat:[37817,37849]},37:{sizeFunc:v,glFormat:[37818,37850]},38:{sizeFunc:m,glFormat:[37819,37851]},39:{sizeFunc:g,glFormat:[37820,37852]},40:{sizeFunc:x,glFormat:[37821,37853]}},S=function(C){for(var E=new Uint32Array(C,0,13),M=E[0],P=M===55727696,A=P?E[2]:E[3],R=E[4],F=y[A].glFormat[R],D=y[A].sizeFunc,w=E[11],G=E[7],N=E[6],b=52+E[12],B=new Uint8Array(C,b),O=new Array(w),L=0,I=G,U=N,X=0;X>1),U=Math.max(1,U>>1),L+=z}return{mipmaps:O,width:G,height:N,internalFormat:F,compressed:!0,generateMipmap:!1}};c.exports=S},75549:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(95540),p=function(a,r,n,e,s,l,i){var o=d(i,"frameWidth",null),u=d(i,"frameHeight",o);if(o===null)throw new Error("TextureManager.SpriteSheet: Invalid frameWidth given.");var h=a.source[r];a.add("__BASE",r,0,0,h.width,h.height);var f=d(i,"startFrame",0),v=d(i,"endFrame",-1),m=d(i,"margin",0),x=d(i,"spacing",0),g=Math.floor((s-m+x)/(o+x)),y=Math.floor((l-m+x)/(u+x)),S=g*y;S===0&&console.warn("SpriteSheet frame dimensions will result in zero frames for texture:",a.key),(f>S||f<-S)&&(f=0),f<0&&(f=S+f),(v===-1||v>S||vs&&(A=L-s),b>l&&(P=b-l),F>=f&&F<=v&&(a.add(M,r,n+C,e+E,o-A,u-P),M++),C+=o+x,C+o>s&&(C=m,E+=u+x)}return a};c.exports=p},47534:(c,T,t)=>{/** + */var d=t(95540),p=function(l,r,n,e,s,o,i){var a=d(i,"frameWidth",null),u=d(i,"frameHeight",a);if(a===null)throw new Error("TextureManager.SpriteSheet: Invalid frameWidth given.");var h=l.source[r];l.add("__BASE",r,0,0,h.width,h.height);var f=d(i,"startFrame",0),v=d(i,"endFrame",-1),m=d(i,"margin",0),g=d(i,"spacing",0),x=Math.floor((s-m+g)/(a+g)),y=Math.floor((o-m+g)/(u+g)),S=x*y;S===0&&console.warn("SpriteSheet frame dimensions will result in zero frames for texture:",l.key),(f>S||f<-S)&&(f=0),f<0&&(f=S+f),(v===-1||v>S||vs&&(M=F-s),D>o&&(P=D-o),R>=f&&R<=v&&(l.add(A,r,n+C,e+E,a-M,u-P),A++),C+=a+g,C+a>s&&(C=m,E+=u+g)}return l};c.exports=p},47534:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(95540),p=function(a,r,n){var e=d(n,"frameWidth",null),s=d(n,"frameHeight",e);if(!e)throw new Error("TextureManager.SpriteSheetFromAtlas: Invalid frameWidth given.");var l=a.source[0];a.add("__BASE",0,0,0,l.width,l.height),d(n,"startFrame",0),d(n,"endFrame",-1);for(var i=d(n,"margin",0),o=d(n,"spacing",0),u=r.cutX,h=r.cutY,f=r.cutWidth,v=r.cutHeight,m=r.realWidth,x=r.realHeight,g=Math.floor((m-i+o)/(e+o)),y=Math.floor((x-i+o)/(s+o)),S=r.x,C=e-S,E=e-(m-f-S),A=r.y,P=s-A,M=s-(x-v-A),F,L=i,b=i,B=0,N=0,X=0;X{/** + */var d=t(95540),p=function(l,r,n){var e=d(n,"frameWidth",null),s=d(n,"frameHeight",e);if(!e)throw new Error("TextureManager.SpriteSheetFromAtlas: Invalid frameWidth given.");var o=l.source[0];l.add("__BASE",0,0,0,o.width,o.height),d(n,"startFrame",0),d(n,"endFrame",-1);for(var i=d(n,"margin",0),a=d(n,"spacing",0),u=r.cutX,h=r.cutY,f=r.cutWidth,v=r.cutHeight,m=r.realWidth,g=r.realHeight,x=Math.floor((m-i+a)/(e+a)),y=Math.floor((g-i+a)/(s+a)),S=r.x,C=e-S,E=e-(m-f-S),M=r.y,P=s-M,A=s-(g-v-M),R,F=i,D=i,w=0,G=0,N=0;N{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=0,t=function(p,a,r,n){var e=T-n.y-n.height;p.add(r,a,n.x,e,n.width,n.height)},d=function(p,a,r){var n=p.source[a];p.add("__BASE",a,0,0,n.width,n.height),T=n.height;for(var e=r.split(` -`),s=/^[ ]*(- )*(\w+)+[: ]+(.*)/,l="",i="",o={x:0,y:0,width:0,height:0},u=0;u{/** + */var T=0,t=function(p,l,r,n){var e=T-n.y-n.height;p.add(r,l,n.x,e,n.width,n.height)},d=function(p,l,r){var n=p.source[l];p.add("__BASE",l,0,0,n.width,n.height),T=n.height;for(var e=r.split(` +`),s=/^[ ]*(- )*(\w+)+[: ]+(.*)/,o="",i="",a={x:0,y:0,width:0,height:0},u=0;u{/** * @author Ben Richards * @copyright 2024 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(50030),p=function(l){for(var i=l.mipmaps,o=1;o{/** + */var d=t(50030),p=function(o){for(var i=o.mipmaps,a=1;a{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -5428,183 +5428,183 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=new d({initialize:function(r,n,e,s,l,i,o){(e===void 0||e<=0)&&(e=32),(s===void 0||s<=0)&&(s=32),l===void 0&&(l=0),i===void 0&&(i=0),this.name=r,this.firstgid=n|0,this.imageWidth=e|0,this.imageHeight=s|0,this.imageMargin=l|0,this.imageSpacing=i|0,this.properties=o||{},this.images=[],this.total=0},containsImageIndex:function(a){return a>=this.firstgid&&a{/** + */var d=t(83419),p=new d({initialize:function(r,n,e,s,o,i,a){(e===void 0||e<=0)&&(e=32),(s===void 0||s<=0)&&(s=32),o===void 0&&(o=0),i===void 0&&(i=0),this.name=r,this.firstgid=n|0,this.imageWidth=e|0,this.imageHeight=s|0,this.imageMargin=o|0,this.imageSpacing=i|0,this.properties=a||{},this.images=[],this.total=0},containsImageIndex:function(l){return l>=this.firstgid&&l{/** * @author Richard Davey * @copyright 2021 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=new d({initialize:function(r){if(this.gids=[],r!==void 0)for(var n=0;n{/** + */var d=t(83419),p=new d({initialize:function(r){if(this.gids=[],r!==void 0)for(var n=0;n{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(80341),p=t(87010),a=t(46177),r=t(49075),n=function(e,s,l,i,o,u,h,f){l===void 0&&(l=32),i===void 0&&(i=32),o===void 0&&(o=10),u===void 0&&(u=10),f===void 0&&(f=!1);var v=null;if(Array.isArray(h)){var m=s!==void 0?s:"map";v=a(m,d.ARRAY_2D,h,l,i,f)}else if(s!==void 0){var x=e.cache.tilemap.get(s);x?v=a(s,x.format,x.data,l,i,f):console.warn("No map data found for key "+s)}return v===null&&(v=new p({tileWidth:l,tileHeight:i,width:o,height:u})),new r(e,v)};c.exports=n},23029:(c,T,t)=>{/** + */var d=t(80341),p=t(87010),l=t(46177),r=t(49075),n=function(e,s,o,i,a,u,h,f){o===void 0&&(o=32),i===void 0&&(i=32),a===void 0&&(a=10),u===void 0&&(u=10),f===void 0&&(f=!1);var v=null;if(Array.isArray(h)){var m=s!==void 0?s:"map";v=l(m,d.ARRAY_2D,h,o,i,f)}else if(s!==void 0){var g=e.cache.tilemap.get(s);g?v=l(s,g.format,g.data,o,i,f):console.warn("No map data found for key "+s)}return v===null&&(v=new p({tileWidth:o,tileHeight:i,width:a,height:u})),new r(e,v)};c.exports=n},23029:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(31401),a=t(91907),r=t(62644),n=t(93232),e=new d({Mixins:[p.AlphaSingle,p.Flip,p.Visible],initialize:function(l,i,o,u,h,f,v,m){this.layer=l,this.index=i,this.x=o,this.y=u,this.width=h,this.height=f,this.right,this.bottom,this.baseWidth=v!==void 0?v:h,this.baseHeight=m!==void 0?m:f,this.pixelX=0,this.pixelY=0,this.updatePixelXY(),this.properties={},this.rotation=0,this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceLeft=!1,this.faceRight=!1,this.faceTop=!1,this.faceBottom=!1,this.collisionCallback=void 0,this.collisionCallbackContext=this,this.tint=16777215,this.tintFill=!1,this.physics={}},containsPoint:function(s,l){return!(sthis.right||l>this.bottom)},copy:function(s){return this.index=s.index,this.alpha=s.alpha,this.properties=r(s.properties),this.visible=s.visible,this.setFlip(s.flipX,s.flipY),this.tint=s.tint,this.rotation=s.rotation,this.collideUp=s.collideUp,this.collideDown=s.collideDown,this.collideLeft=s.collideLeft,this.collideRight=s.collideRight,this.collisionCallback=s.collisionCallback,this.collisionCallbackContext=s.collisionCallbackContext,this},getCollisionGroup:function(){return this.tileset?this.tileset.getTileCollisionGroup(this.index):null},getTileData:function(){return this.tileset?this.tileset.getTileData(this.index):null},getLeft:function(s){var l=this.tilemapLayer;if(l){var i=l.tileToWorldXY(this.x,this.y,void 0,s);return i.x}return this.x*this.baseWidth},getRight:function(s){var l=this.tilemapLayer;return l?this.getLeft(s)+this.width*l.scaleX:this.getLeft(s)+this.width},getTop:function(s){var l=this.tilemapLayer;if(l){var i=l.tileToWorldXY(this.x,this.y,void 0,s);return i.y}return this.y*this.baseWidth-(this.height-this.baseHeight)},getBottom:function(s){var l=this.tilemapLayer;return l?this.getTop(s)+this.height*l.scaleY:this.getTop(s)+this.height},getBounds:function(s,l){return l===void 0&&(l=new n),l.x=this.getLeft(s),l.y=this.getTop(s),l.width=this.getRight(s)-l.x,l.height=this.getBottom(s)-l.y,l},getCenterX:function(s){return(this.getLeft(s)+this.getRight(s))/2},getCenterY:function(s){return(this.getTop(s)+this.getBottom(s))/2},intersects:function(s,l,i,o){return!(i<=this.pixelX||o<=this.pixelY||s>=this.right||l>=this.bottom)},isInteresting:function(s,l){return s&&l?this.canCollide||this.hasInterestingFace:s?this.collides:l?this.hasInterestingFace:!1},resetCollision:function(s){if(s===void 0&&(s=!0),this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,s){var l=this.tilemapLayer;l&&this.tilemapLayer.calculateFacesAt(this.x,this.y)}return this},resetFaces:function(){return this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,this},setCollision:function(s,l,i,o,u){if(l===void 0&&(l=s),i===void 0&&(i=s),o===void 0&&(o=s),u===void 0&&(u=!0),this.collideLeft=s,this.collideRight=l,this.collideUp=i,this.collideDown=o,this.faceLeft=s,this.faceRight=l,this.faceTop=i,this.faceBottom=o,u){var h=this.tilemapLayer;h&&this.tilemapLayer.calculateFacesAt(this.x,this.y)}return this},setCollisionCallback:function(s,l){return s===null?(this.collisionCallback=void 0,this.collisionCallbackContext=void 0):(this.collisionCallback=s,this.collisionCallbackContext=l),this},setSize:function(s,l,i,o){return s!==void 0&&(this.width=s),l!==void 0&&(this.height=l),i!==void 0&&(this.baseWidth=i),o!==void 0&&(this.baseHeight=o),this.updatePixelXY(),this},updatePixelXY:function(){var s=this.layer.orientation;if(s===a.ORTHOGONAL)this.pixelX=this.x*this.baseWidth,this.pixelY=this.y*this.baseHeight;else if(s===a.ISOMETRIC)this.pixelX=(this.x-this.y)*this.baseWidth*.5,this.pixelY=(this.x+this.y)*this.baseHeight*.5;else if(s===a.STAGGERED)this.pixelX=this.x*this.baseWidth+this.y%2*(this.baseWidth/2),this.pixelY=this.y*(this.baseHeight/2);else if(s===a.HEXAGONAL){var l=this.layer.staggerAxis,i=this.layer.staggerIndex,o=this.layer.hexSideLength,u,h;l==="y"?(h=(this.baseHeight-o)/2+o,i==="odd"?this.pixelX=this.x*this.baseWidth+this.y%2*(this.baseWidth/2):this.pixelX=this.x*this.baseWidth-this.y%2*(this.baseWidth/2),this.pixelY=this.y*h):l==="x"&&(u=(this.baseWidth-o)/2+o,this.pixelX=this.x*u,i==="odd"?this.pixelY=this.y*this.baseHeight+this.x%2*(this.baseHeight/2):this.pixelY=this.y*this.baseHeight-this.x%2*(this.baseHeight/2))}return this.right=this.pixelX+this.baseWidth,this.bottom=this.pixelY+this.baseHeight,this},destroy:function(){this.collisionCallback=void 0,this.collisionCallbackContext=void 0,this.properties=void 0},canCollide:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown||this.collisionCallback!==void 0}},collides:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown}},hasInterestingFace:{get:function(){return this.faceTop||this.faceBottom||this.faceLeft||this.faceRight}},tileset:{get:function(){var s=this.layer.tilemapLayer;if(s){var l=s.gidMap[this.index];if(l)return l}return null}},tilemapLayer:{get:function(){return this.layer.tilemapLayer}},tilemap:{get:function(){var s=this.tilemapLayer;return s?s.tilemap:null}}});c.exports=e},49075:(c,T,t)=>{/** + */var d=t(83419),p=t(31401),l=t(91907),r=t(62644),n=t(93232),e=new d({Mixins:[p.AlphaSingle,p.Flip,p.Visible],initialize:function(o,i,a,u,h,f,v,m){this.layer=o,this.index=i,this.x=a,this.y=u,this.width=h,this.height=f,this.right,this.bottom,this.baseWidth=v!==void 0?v:h,this.baseHeight=m!==void 0?m:f,this.pixelX=0,this.pixelY=0,this.updatePixelXY(),this.properties={},this.rotation=0,this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceLeft=!1,this.faceRight=!1,this.faceTop=!1,this.faceBottom=!1,this.collisionCallback=void 0,this.collisionCallbackContext=this,this.tint=16777215,this.tintFill=!1,this.physics={}},containsPoint:function(s,o){return!(sthis.right||o>this.bottom)},copy:function(s){return this.index=s.index,this.alpha=s.alpha,this.properties=r(s.properties),this.visible=s.visible,this.setFlip(s.flipX,s.flipY),this.tint=s.tint,this.rotation=s.rotation,this.collideUp=s.collideUp,this.collideDown=s.collideDown,this.collideLeft=s.collideLeft,this.collideRight=s.collideRight,this.collisionCallback=s.collisionCallback,this.collisionCallbackContext=s.collisionCallbackContext,this},getCollisionGroup:function(){return this.tileset?this.tileset.getTileCollisionGroup(this.index):null},getTileData:function(){return this.tileset?this.tileset.getTileData(this.index):null},getLeft:function(s){var o=this.tilemapLayer;if(o){var i=o.tileToWorldXY(this.x,this.y,void 0,s);return i.x}return this.x*this.baseWidth},getRight:function(s){var o=this.tilemapLayer;return o?this.getLeft(s)+this.width*o.scaleX:this.getLeft(s)+this.width},getTop:function(s){var o=this.tilemapLayer;if(o){var i=o.tileToWorldXY(this.x,this.y,void 0,s);return i.y}return this.y*this.baseWidth-(this.height-this.baseHeight)},getBottom:function(s){var o=this.tilemapLayer;return o?this.getTop(s)+this.height*o.scaleY:this.getTop(s)+this.height},getBounds:function(s,o){return o===void 0&&(o=new n),o.x=this.getLeft(s),o.y=this.getTop(s),o.width=this.getRight(s)-o.x,o.height=this.getBottom(s)-o.y,o},getCenterX:function(s){return(this.getLeft(s)+this.getRight(s))/2},getCenterY:function(s){return(this.getTop(s)+this.getBottom(s))/2},intersects:function(s,o,i,a){return!(i<=this.pixelX||a<=this.pixelY||s>=this.right||o>=this.bottom)},isInteresting:function(s,o){return s&&o?this.canCollide||this.hasInterestingFace:s?this.collides:o?this.hasInterestingFace:!1},resetCollision:function(s){if(s===void 0&&(s=!0),this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,s){var o=this.tilemapLayer;o&&this.tilemapLayer.calculateFacesAt(this.x,this.y)}return this},resetFaces:function(){return this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,this},setCollision:function(s,o,i,a,u){if(o===void 0&&(o=s),i===void 0&&(i=s),a===void 0&&(a=s),u===void 0&&(u=!0),this.collideLeft=s,this.collideRight=o,this.collideUp=i,this.collideDown=a,this.faceLeft=s,this.faceRight=o,this.faceTop=i,this.faceBottom=a,u){var h=this.tilemapLayer;h&&this.tilemapLayer.calculateFacesAt(this.x,this.y)}return this},setCollisionCallback:function(s,o){return s===null?(this.collisionCallback=void 0,this.collisionCallbackContext=void 0):(this.collisionCallback=s,this.collisionCallbackContext=o),this},setSize:function(s,o,i,a){return s!==void 0&&(this.width=s),o!==void 0&&(this.height=o),i!==void 0&&(this.baseWidth=i),a!==void 0&&(this.baseHeight=a),this.updatePixelXY(),this},updatePixelXY:function(){var s=this.layer.orientation;if(s===l.ORTHOGONAL)this.pixelX=this.x*this.baseWidth,this.pixelY=this.y*this.baseHeight;else if(s===l.ISOMETRIC)this.pixelX=(this.x-this.y)*this.baseWidth*.5,this.pixelY=(this.x+this.y)*this.baseHeight*.5;else if(s===l.STAGGERED)this.pixelX=this.x*this.baseWidth+this.y%2*(this.baseWidth/2),this.pixelY=this.y*(this.baseHeight/2);else if(s===l.HEXAGONAL){var o=this.layer.staggerAxis,i=this.layer.staggerIndex,a=this.layer.hexSideLength,u,h;o==="y"?(h=(this.baseHeight-a)/2+a,i==="odd"?this.pixelX=this.x*this.baseWidth+this.y%2*(this.baseWidth/2):this.pixelX=this.x*this.baseWidth-this.y%2*(this.baseWidth/2),this.pixelY=this.y*h):o==="x"&&(u=(this.baseWidth-a)/2+a,this.pixelX=this.x*u,i==="odd"?this.pixelY=this.y*this.baseHeight+this.x%2*(this.baseHeight/2):this.pixelY=this.y*this.baseHeight-this.x%2*(this.baseHeight/2))}return this.right=this.pixelX+this.baseWidth,this.bottom=this.pixelY+this.baseHeight,this},destroy:function(){this.collisionCallback=void 0,this.collisionCallbackContext=void 0,this.properties=void 0},canCollide:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown||this.collisionCallback!==void 0}},collides:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown}},hasInterestingFace:{get:function(){return this.faceTop||this.faceBottom||this.faceLeft||this.faceRight}},tileset:{get:function(){var s=this.layer.tilemapLayer;if(s){var o=s.gidMap[this.index];if(o)return o}return null}},tilemapLayer:{get:function(){return this.layer.tilemapLayer}},tilemap:{get:function(){var s=this.tilemapLayer;return s?s.tilemap:null}}});c.exports=e},49075:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(84101),p=t(83419),a=t(39506),r=t(80341),n=t(95540),e=t(14977),s=t(27462),l=t(91907),i=t(36305),o=t(19133),u=t(68287),h=t(23029),f=t(81086),v=t(20442),m=t(33629),x=new p({initialize:function(y,S){this.scene=y,this.tileWidth=S.tileWidth,this.tileHeight=S.tileHeight,this.width=S.width,this.height=S.height,this.orientation=S.orientation,this.renderOrder=S.renderOrder,this.format=S.format,this.version=S.version,this.properties=S.properties,this.widthInPixels=S.widthInPixels,this.heightInPixels=S.heightInPixels,this.imageCollections=S.imageCollections,this.images=S.images,this.layers=S.layers,this.tiles=S.tiles,this.tilesets=S.tilesets,this.objects=S.objects,this.currentLayerIndex=0,this.hexSideLength=S.hexSideLength;var C=this.orientation;this._convert={WorldToTileXY:f.GetWorldToTileXYFunction(C),WorldToTileX:f.GetWorldToTileXFunction(C),WorldToTileY:f.GetWorldToTileYFunction(C),TileToWorldXY:f.GetTileToWorldXYFunction(C),TileToWorldX:f.GetTileToWorldXFunction(C),TileToWorldY:f.GetTileToWorldYFunction(C),GetTileCorners:f.GetTileCornersFunction(C)}},setRenderOrder:function(g){var y=["right-down","left-down","right-up","left-up"];return typeof g=="number"&&(g=y[g]),y.indexOf(g)>-1&&(this.renderOrder=g),this},addTilesetImage:function(g,y,S,C,E,A,P,M){if(g===void 0)return null;y==null&&(y=g);var F=this.scene.sys.textures;if(!F.exists(y))return console.warn('Texture key "%s" not found',y),null;var L=F.get(y),b=this.getTilesetIndex(g);if(b===null&&this.format===r.TILED_JSON)return console.warn('Tilemap has no tileset "%s". Its tilesets are %o',g,this.tilesets),null;var B=this.tilesets[b];return B?(B.setTileSize(S,C),B.setSpacing(E,A),B.setImage(L),B):(S===void 0&&(S=this.tileWidth),C===void 0&&(C=this.tileHeight),E===void 0&&(E=0),A===void 0&&(A=0),P===void 0&&(P=0),M===void 0&&(M={x:0,y:0}),B=new m(g,P,S,C,E,A,void 0,void 0,M),B.setImage(L),this.tilesets.push(B),this.tiles=d(this),B)},copy:function(g,y,S,C,E,A,P,M){return M=this.getLayer(M),M!==null?(f.Copy(g,y,S,C,E,A,P,M),this):null},createBlankLayer:function(g,y,S,C,E,A,P,M){S===void 0&&(S=0),C===void 0&&(C=0),E===void 0&&(E=this.width),A===void 0&&(A=this.height),P===void 0&&(P=this.tileWidth),M===void 0&&(M=this.tileHeight);var F=this.getLayerIndex(g);if(F!==null)return console.warn("Invalid Tilemap Layer ID: "+g),null;for(var L=new e({name:g,tileWidth:P,tileHeight:M,width:E,height:A,orientation:this.orientation}),b,B=0;B-1&&this.putTileAt(y,A.x,A.y,S,A.tilemapLayer)}return C},removeTileAt:function(g,y,S,C,E){return S===void 0&&(S=!0),C===void 0&&(C=!0),E=this.getLayer(E),E===null?null:f.RemoveTileAt(g,y,S,C,E)},removeTileAtWorldXY:function(g,y,S,C,E,A){return S===void 0&&(S=!0),C===void 0&&(C=!0),A=this.getLayer(A),A===null?null:f.RemoveTileAtWorldXY(g,y,S,C,E,A)},renderDebug:function(g,y,S){return S=this.getLayer(S),S===null?null:(this.orientation===l.ORTHOGONAL&&f.RenderDebug(g,y,S),this)},renderDebugFull:function(g,y){for(var S=this.layers,C=0;C{/** + */var d=t(84101),p=t(83419),l=t(39506),r=t(80341),n=t(95540),e=t(14977),s=t(27462),o=t(91907),i=t(36305),a=t(19133),u=t(68287),h=t(23029),f=t(81086),v=t(20442),m=t(33629),g=new p({initialize:function(y,S){this.scene=y,this.tileWidth=S.tileWidth,this.tileHeight=S.tileHeight,this.width=S.width,this.height=S.height,this.orientation=S.orientation,this.renderOrder=S.renderOrder,this.format=S.format,this.version=S.version,this.properties=S.properties,this.widthInPixels=S.widthInPixels,this.heightInPixels=S.heightInPixels,this.imageCollections=S.imageCollections,this.images=S.images,this.layers=S.layers,this.tiles=S.tiles,this.tilesets=S.tilesets,this.objects=S.objects,this.currentLayerIndex=0,this.hexSideLength=S.hexSideLength;var C=this.orientation;this._convert={WorldToTileXY:f.GetWorldToTileXYFunction(C),WorldToTileX:f.GetWorldToTileXFunction(C),WorldToTileY:f.GetWorldToTileYFunction(C),TileToWorldXY:f.GetTileToWorldXYFunction(C),TileToWorldX:f.GetTileToWorldXFunction(C),TileToWorldY:f.GetTileToWorldYFunction(C),GetTileCorners:f.GetTileCornersFunction(C)}},setRenderOrder:function(x){var y=["right-down","left-down","right-up","left-up"];return typeof x=="number"&&(x=y[x]),y.indexOf(x)>-1&&(this.renderOrder=x),this},addTilesetImage:function(x,y,S,C,E,M,P,A){if(x===void 0)return null;y==null&&(y=x);var R=this.scene.sys.textures;if(!R.exists(y))return console.warn('Texture key "%s" not found',y),null;var F=R.get(y),D=this.getTilesetIndex(x);if(D===null&&this.format===r.TILED_JSON)return console.warn('Tilemap has no tileset "%s". Its tilesets are %o',x,this.tilesets),null;var w=this.tilesets[D];return w?((S||C)&&w.setTileSize(S,C),(E||M)&&w.setSpacing(E,M),w.setImage(F),w):(S===void 0&&(S=this.tileWidth),C===void 0&&(C=this.tileHeight),E===void 0&&(E=0),M===void 0&&(M=0),P===void 0&&(P=0),A===void 0&&(A={x:0,y:0}),w=new m(x,P,S,C,E,M,void 0,void 0,A),w.setImage(F),this.tilesets.push(w),this.tiles=d(this),w)},copy:function(x,y,S,C,E,M,P,A){return A=this.getLayer(A),A!==null?(f.Copy(x,y,S,C,E,M,P,A),this):null},createBlankLayer:function(x,y,S,C,E,M,P,A){S===void 0&&(S=0),C===void 0&&(C=0),E===void 0&&(E=this.width),M===void 0&&(M=this.height),P===void 0&&(P=this.tileWidth),A===void 0&&(A=this.tileHeight);var R=this.getLayerIndex(x);if(R!==null)return console.warn("Invalid Tilemap Layer ID: "+x),null;for(var F=new e({name:x,tileWidth:P,tileHeight:A,width:E,height:M,orientation:this.orientation}),D,w=0;w-1&&this.putTileAt(y,M.x,M.y,S,M.tilemapLayer)}return C},removeTileAt:function(x,y,S,C,E){return S===void 0&&(S=!0),C===void 0&&(C=!0),E=this.getLayer(E),E===null?null:f.RemoveTileAt(x,y,S,C,E)},removeTileAtWorldXY:function(x,y,S,C,E,M){return S===void 0&&(S=!0),C===void 0&&(C=!0),M=this.getLayer(M),M===null?null:f.RemoveTileAtWorldXY(x,y,S,C,E,M)},renderDebug:function(x,y,S){return S=this.getLayer(S),S===null?null:(this.orientation===o.ORTHOGONAL&&f.RenderDebug(x,y,S),this)},renderDebugFull:function(x,y){for(var S=this.layers,C=0;C{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(44603),p=t(31989);d.register("tilemap",function(a){var r=a!==void 0?a:{};return p(this.scene,r.key,r.tileWidth,r.tileHeight,r.width,r.height,r.data,r.insertNull)})},46029:(c,T,t)=>{/** + */var d=t(44603),p=t(31989);d.register("tilemap",function(l){var r=l!==void 0?l:{};return p(this.scene,r.key,r.tileWidth,r.tileHeight,r.width,r.height,r.data,r.insertNull)})},46029:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(39429),p=t(31989);d.register("tilemap",function(a,r,n,e,s,l,i){return a===null&&(a=void 0),r===null&&(r=void 0),n===null&&(n=void 0),e===null&&(e=void 0),s===null&&(s=void 0),p(this.scene,a,r,n,e,s,l,i)})},20442:(c,T,t)=>{/** + */var d=t(39429),p=t(31989);d.register("tilemap",function(l,r,n,e,s,o,i){return l===null&&(l=void 0),r===null&&(r=void 0),n===null&&(n=void 0),e===null&&(e=void 0),s===null&&(s=void 0),p(this.scene,l,r,n,e,s,o,i)})},20442:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(78389),a=t(31401),r=t(95643),n=t(81086),e=t(19218),s=t(26099),l=new d({Extends:r,Mixins:[a.Alpha,a.BlendMode,a.ComputedSize,a.Depth,a.Flip,a.GetBounds,a.Mask,a.Origin,a.Pipeline,a.PostPipeline,a.Transform,a.Visible,a.ScrollFactor,p,e],initialize:function(o,u,h,f,v,m){r.call(this,o,"TilemapLayer"),this.isTilemap=!0,this.tilemap=u,this.layerIndex=h,this.layer=u.layers[h],this.layer.tilemapLayer=this,this.tileset=[],this.tilesDrawn=0,this.tilesTotal=this.layer.width*this.layer.height,this.culledTiles=[],this.skipCull=!1,this.cullPaddingX=1,this.cullPaddingY=1,this.cullCallback=n.GetCullTilesFunction(this.layer.orientation),this._renderOrder=0,this.gidMap=[],this.tempVec=new s,this.collisionCategory=1,this.collisionMask=1,this.setTilesets(f),this.setAlpha(this.layer.alpha),this.setPosition(v,m),this.setOrigin(0,0),this.setSize(u.tileWidth*this.layer.width,u.tileHeight*this.layer.height),this.initPipeline(),this.initPostPipeline(!1)},setTilesets:function(i){var o=[],u=[],h=this.tilemap;Array.isArray(i)||(i=[i]);for(var f=0;f=0&&i<4&&(this._renderOrder=i),this},calculateFacesAt:function(i,o){return n.CalculateFacesAt(i,o,this.layer),this},calculateFacesWithin:function(i,o,u,h){return n.CalculateFacesWithin(i,o,u,h,this.layer),this},createFromTiles:function(i,o,u,h,f){return n.CreateFromTiles(i,o,u,h,f,this.layer)},cull:function(i){return this.cullCallback(this.layer,i,this.culledTiles,this._renderOrder)},copy:function(i,o,u,h,f,v,m){return n.Copy(i,o,u,h,f,v,m,this.layer),this},fill:function(i,o,u,h,f,v){return n.Fill(i,o,u,h,f,v,this.layer),this},filterTiles:function(i,o,u,h,f,v,m){return n.FilterTiles(i,o,u,h,f,v,m,this.layer)},findByIndex:function(i,o,u){return n.FindByIndex(i,o,u,this.layer)},findTile:function(i,o,u,h,f,v,m){return n.FindTile(i,o,u,h,f,v,m,this.layer)},forEachTile:function(i,o,u,h,f,v,m){return n.ForEachTile(i,o,u,h,f,v,m,this.layer),this},setTint:function(i,o,u,h,f,v){i===void 0&&(i=16777215);var m=function(x){x.tint=i,x.tintFill=!1};return this.forEachTile(m,this,o,u,h,f,v)},setTintFill:function(i,o,u,h,f,v){i===void 0&&(i=16777215);var m=function(x){x.tint=i,x.tintFill=!0};return this.forEachTile(m,this,o,u,h,f,v)},getTileAt:function(i,o,u){return n.GetTileAt(i,o,u,this.layer)},getTileAtWorldXY:function(i,o,u,h){return n.GetTileAtWorldXY(i,o,u,h,this.layer)},getIsoTileAtWorldXY:function(i,o,u,h,f){u===void 0&&(u=!0);var v=this.tempVec;return n.IsometricWorldToTileXY(i,o,!0,v,f,this.layer,u),this.getTileAt(v.x,v.y,h)},getTilesWithin:function(i,o,u,h,f){return n.GetTilesWithin(i,o,u,h,f,this.layer)},getTilesWithinShape:function(i,o,u){return n.GetTilesWithinShape(i,o,u,this.layer)},getTilesWithinWorldXY:function(i,o,u,h,f,v){return n.GetTilesWithinWorldXY(i,o,u,h,f,v,this.layer)},hasTileAt:function(i,o){return n.HasTileAt(i,o,this.layer)},hasTileAtWorldXY:function(i,o,u){return n.HasTileAtWorldXY(i,o,u,this.layer)},putTileAt:function(i,o,u,h){return n.PutTileAt(i,o,u,h,this.layer)},putTileAtWorldXY:function(i,o,u,h,f){return n.PutTileAtWorldXY(i,o,u,h,f,this.layer)},putTilesAt:function(i,o,u,h){return n.PutTilesAt(i,o,u,h,this.layer),this},randomize:function(i,o,u,h,f){return n.Randomize(i,o,u,h,f,this.layer),this},removeTileAt:function(i,o,u,h){return n.RemoveTileAt(i,o,u,h,this.layer)},removeTileAtWorldXY:function(i,o,u,h,f){return n.RemoveTileAtWorldXY(i,o,u,h,f,this.layer)},renderDebug:function(i,o){return n.RenderDebug(i,o,this.layer),this},replaceByIndex:function(i,o,u,h,f,v){return n.ReplaceByIndex(i,o,u,h,f,v,this.layer),this},setSkipCull:function(i){return i===void 0&&(i=!0),this.skipCull=i,this},setCullPadding:function(i,o){return i===void 0&&(i=1),o===void 0&&(o=1),this.cullPaddingX=i,this.cullPaddingY=o,this},setCollision:function(i,o,u,h){return n.SetCollision(i,o,u,this.layer,h),this},setCollisionBetween:function(i,o,u,h){return n.SetCollisionBetween(i,o,u,h,this.layer),this},setCollisionByProperty:function(i,o,u){return n.SetCollisionByProperty(i,o,u,this.layer),this},setCollisionByExclusion:function(i,o,u){return n.SetCollisionByExclusion(i,o,u,this.layer),this},setCollisionFromCollisionGroup:function(i,o){return n.SetCollisionFromCollisionGroup(i,o,this.layer),this},setTileIndexCallback:function(i,o,u){return n.SetTileIndexCallback(i,o,u,this.layer),this},setTileLocationCallback:function(i,o,u,h,f,v){return n.SetTileLocationCallback(i,o,u,h,f,v,this.layer),this},shuffle:function(i,o,u,h){return n.Shuffle(i,o,u,h,this.layer),this},swapByIndex:function(i,o,u,h,f,v){return n.SwapByIndex(i,o,u,h,f,v,this.layer),this},tileToWorldX:function(i,o){return this.tilemap.tileToWorldX(i,o,this)},tileToWorldY:function(i,o){return this.tilemap.tileToWorldY(i,o,this)},tileToWorldXY:function(i,o,u,h){return this.tilemap.tileToWorldXY(i,o,u,h,this)},getTileCorners:function(i,o,u){return this.tilemap.getTileCorners(i,o,u,this)},weightedRandomize:function(i,o,u,h,f){return n.WeightedRandomize(o,u,h,f,i,this.layer),this},worldToTileX:function(i,o,u){return this.tilemap.worldToTileX(i,o,u,this)},worldToTileY:function(i,o,u){return this.tilemap.worldToTileY(i,o,u,this)},worldToTileXY:function(i,o,u,h,f){return this.tilemap.worldToTileXY(i,o,u,h,f,this)},destroy:function(i){i===void 0&&(i=!0),this.tilemap&&(this.layer.tilemapLayer===this&&(this.layer.tilemapLayer=void 0),i&&this.tilemap.removeLayer(this),this.tilemap=void 0,this.layer=void 0,this.culledTiles.length=0,this.cullCallback=null,this.gidMap=[],this.tileset=[],r.prototype.destroy.call(this))}});c.exports=l},16153:(c,T,t)=>{/** + */var d=t(83419),p=t(78389),l=t(31401),r=t(95643),n=t(81086),e=t(19218),s=t(26099),o=new d({Extends:r,Mixins:[l.Alpha,l.BlendMode,l.ComputedSize,l.Depth,l.Flip,l.GetBounds,l.Mask,l.Origin,l.Pipeline,l.PostPipeline,l.Transform,l.Visible,l.ScrollFactor,p,e],initialize:function(a,u,h,f,v,m){r.call(this,a,"TilemapLayer"),this.isTilemap=!0,this.tilemap=u,this.layerIndex=h,this.layer=u.layers[h],this.layer.tilemapLayer=this,this.tileset=[],this.tilesDrawn=0,this.tilesTotal=this.layer.width*this.layer.height,this.culledTiles=[],this.skipCull=!1,this.cullPaddingX=1,this.cullPaddingY=1,this.cullCallback=n.GetCullTilesFunction(this.layer.orientation),this._renderOrder=0,this.gidMap=[],this.tempVec=new s,this.collisionCategory=1,this.collisionMask=1,this.setTilesets(f),this.setAlpha(this.layer.alpha),this.setPosition(v,m),this.setOrigin(0,0),this.setSize(u.tileWidth*this.layer.width,u.tileHeight*this.layer.height),this.initPipeline(),this.initPostPipeline(!1)},setTilesets:function(i){var a=[],u=[],h=this.tilemap;Array.isArray(i)||(i=[i]);for(var f=0;f=0&&i<4&&(this._renderOrder=i),this},calculateFacesAt:function(i,a){return n.CalculateFacesAt(i,a,this.layer),this},calculateFacesWithin:function(i,a,u,h){return n.CalculateFacesWithin(i,a,u,h,this.layer),this},createFromTiles:function(i,a,u,h,f){return n.CreateFromTiles(i,a,u,h,f,this.layer)},cull:function(i){return this.cullCallback(this.layer,i,this.culledTiles,this._renderOrder)},copy:function(i,a,u,h,f,v,m){return n.Copy(i,a,u,h,f,v,m,this.layer),this},fill:function(i,a,u,h,f,v){return n.Fill(i,a,u,h,f,v,this.layer),this},filterTiles:function(i,a,u,h,f,v,m){return n.FilterTiles(i,a,u,h,f,v,m,this.layer)},findByIndex:function(i,a,u){return n.FindByIndex(i,a,u,this.layer)},findTile:function(i,a,u,h,f,v,m){return n.FindTile(i,a,u,h,f,v,m,this.layer)},forEachTile:function(i,a,u,h,f,v,m){return n.ForEachTile(i,a,u,h,f,v,m,this.layer),this},setTint:function(i,a,u,h,f,v){i===void 0&&(i=16777215);var m=function(g){g.tint=i,g.tintFill=!1};return this.forEachTile(m,this,a,u,h,f,v)},setTintFill:function(i,a,u,h,f,v){i===void 0&&(i=16777215);var m=function(g){g.tint=i,g.tintFill=!0};return this.forEachTile(m,this,a,u,h,f,v)},getTileAt:function(i,a,u){return n.GetTileAt(i,a,u,this.layer)},getTileAtWorldXY:function(i,a,u,h){return n.GetTileAtWorldXY(i,a,u,h,this.layer)},getIsoTileAtWorldXY:function(i,a,u,h,f){u===void 0&&(u=!0);var v=this.tempVec;return n.IsometricWorldToTileXY(i,a,!0,v,f,this.layer,u),this.getTileAt(v.x,v.y,h)},getTilesWithin:function(i,a,u,h,f){return n.GetTilesWithin(i,a,u,h,f,this.layer)},getTilesWithinShape:function(i,a,u){return n.GetTilesWithinShape(i,a,u,this.layer)},getTilesWithinWorldXY:function(i,a,u,h,f,v){return n.GetTilesWithinWorldXY(i,a,u,h,f,v,this.layer)},hasTileAt:function(i,a){return n.HasTileAt(i,a,this.layer)},hasTileAtWorldXY:function(i,a,u){return n.HasTileAtWorldXY(i,a,u,this.layer)},putTileAt:function(i,a,u,h){return n.PutTileAt(i,a,u,h,this.layer)},putTileAtWorldXY:function(i,a,u,h,f){return n.PutTileAtWorldXY(i,a,u,h,f,this.layer)},putTilesAt:function(i,a,u,h){return n.PutTilesAt(i,a,u,h,this.layer),this},randomize:function(i,a,u,h,f){return n.Randomize(i,a,u,h,f,this.layer),this},removeTileAt:function(i,a,u,h){return n.RemoveTileAt(i,a,u,h,this.layer)},removeTileAtWorldXY:function(i,a,u,h,f){return n.RemoveTileAtWorldXY(i,a,u,h,f,this.layer)},renderDebug:function(i,a){return n.RenderDebug(i,a,this.layer),this},replaceByIndex:function(i,a,u,h,f,v){return n.ReplaceByIndex(i,a,u,h,f,v,this.layer),this},setSkipCull:function(i){return i===void 0&&(i=!0),this.skipCull=i,this},setCullPadding:function(i,a){return i===void 0&&(i=1),a===void 0&&(a=1),this.cullPaddingX=i,this.cullPaddingY=a,this},setCollision:function(i,a,u,h){return n.SetCollision(i,a,u,this.layer,h),this},setCollisionBetween:function(i,a,u,h){return n.SetCollisionBetween(i,a,u,h,this.layer),this},setCollisionByProperty:function(i,a,u){return n.SetCollisionByProperty(i,a,u,this.layer),this},setCollisionByExclusion:function(i,a,u){return n.SetCollisionByExclusion(i,a,u,this.layer),this},setCollisionFromCollisionGroup:function(i,a){return n.SetCollisionFromCollisionGroup(i,a,this.layer),this},setTileIndexCallback:function(i,a,u){return n.SetTileIndexCallback(i,a,u,this.layer),this},setTileLocationCallback:function(i,a,u,h,f,v){return n.SetTileLocationCallback(i,a,u,h,f,v,this.layer),this},shuffle:function(i,a,u,h){return n.Shuffle(i,a,u,h,this.layer),this},swapByIndex:function(i,a,u,h,f,v){return n.SwapByIndex(i,a,u,h,f,v,this.layer),this},tileToWorldX:function(i,a){return this.tilemap.tileToWorldX(i,a,this)},tileToWorldY:function(i,a){return this.tilemap.tileToWorldY(i,a,this)},tileToWorldXY:function(i,a,u,h){return this.tilemap.tileToWorldXY(i,a,u,h,this)},getTileCorners:function(i,a,u){return this.tilemap.getTileCorners(i,a,u,this)},weightedRandomize:function(i,a,u,h,f){return n.WeightedRandomize(a,u,h,f,i,this.layer),this},worldToTileX:function(i,a,u){return this.tilemap.worldToTileX(i,a,u,this)},worldToTileY:function(i,a,u){return this.tilemap.worldToTileY(i,a,u,this)},worldToTileXY:function(i,a,u,h,f){return this.tilemap.worldToTileXY(i,a,u,h,f,this)},destroy:function(i){i===void 0&&(i=!0),this.tilemap&&(this.layer.tilemapLayer===this&&(this.layer.tilemapLayer=void 0),i&&this.tilemap.removeLayer(this),this.tilemap=void 0,this.layer=void 0,this.culledTiles.length=0,this.cullCallback=null,this.gidMap=[],this.tileset=[],r.prototype.destroy.call(this))}});c.exports=o},16153:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(61340),p=new d,a=new d,r=new d,n=function(e,s,l,i){var o=s.cull(l),u=o.length,h=l.alpha*s.alpha;if(!(u===0||h<=0)){var f=p,v=a,m=r;v.applyITRS(s.x,s.y,s.rotation,s.scaleX,s.scaleY),f.copyFrom(l.matrix);var x=e.currentContext,g=s.gidMap;x.save(),i?(f.multiplyWithOffset(i,-l.scrollX*s.scrollFactorX,-l.scrollY*s.scrollFactorY),v.e=s.x,v.f=s.y,f.multiply(v,m),m.copyToContext(x)):(v.e-=l.scrollX*s.scrollFactorX,v.f-=l.scrollY*s.scrollFactorY,v.copyToContext(x)),(!e.antialias||s.scaleX>1||s.scaleY>1)&&(x.imageSmoothingEnabled=!1);for(var y=0;y{/** + */var d=t(61340),p=new d,l=new d,r=new d,n=function(e,s,o,i){var a=s.cull(o),u=a.length,h=o.alpha*s.alpha;if(!(u===0||h<=0)){var f=p,v=l,m=r;v.applyITRS(s.x,s.y,s.rotation,s.scaleX,s.scaleY),f.copyFrom(o.matrix);var g=e.currentContext,x=s.gidMap;g.save(),i?(f.multiplyWithOffset(i,-o.scrollX*s.scrollFactorX,-o.scrollY*s.scrollFactorY),v.e=s.x,v.f=s.y,f.multiply(v,m),m.copyToContext(g)):(v.e-=o.scrollX*s.scrollFactorX,v.f-=o.scrollY*s.scrollFactorY,v.copyToContext(g)),(!e.antialias||s.scaleX>1||s.scaleY>1)&&(g.imageSmoothingEnabled=!1);for(var y=0;y{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(29747),p=d,a=d;p=t(99558),a=t(16153),c.exports={renderWebGL:p,renderCanvas:a}},99558:(c,T,t)=>{/** + */var d=t(29747),p=d,l=d;p=t(99558),l=t(16153),c.exports={renderWebGL:p,renderCanvas:l}},99558:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(70554),p=function(a,r,n){var e=r.cull(n),s=e.length,l=n.alpha*r.alpha;if(!(s===0||l<=0)){var i=r.gidMap,o=a.pipelines.set(r.pipeline,r),u=d.getTintAppendFloatAlpha,h=r.scrollFactorX,f=r.scrollFactorY,v=r.x,m=r.y,x=r.scaleX,g=r.scaleY;a.pipelines.preBatch(r);for(var y=0;y{/** + */var d=t(70554),p=function(l,r,n){var e=r.cull(n),s=e.length,o=n.alpha*r.alpha;if(!(s===0||o<=0)){var i=r.gidMap,a=l.pipelines.set(r.pipeline,r),u=d.getTintAppendFloatAlpha,h=r.scrollFactorX,f=r.scrollFactorY,v=r.x,m=r.y,g=r.scaleX,x=r.scaleY;l.pipelines.preBatch(r);for(var y=0;y{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(26099),a=new d({initialize:function(n,e,s,l,i,o,u,h,f){(s===void 0||s<=0)&&(s=32),(l===void 0||l<=0)&&(l=32),i===void 0&&(i=0),o===void 0&&(o=0),u===void 0&&(u={}),h===void 0&&(h={}),this.name=n,this.firstgid=e,this.tileWidth=s,this.tileHeight=l,this.tileMargin=i,this.tileSpacing=o,this.tileProperties=u,this.tileData=h,this.tileOffset=new p,f!==void 0&&this.tileOffset.set(f.x,f.y),this.image=null,this.glTexture=null,this.rows=0,this.columns=0,this.total=0,this.texCoordinates=[]},getTileProperties:function(r){return this.containsTileIndex(r)?this.tileProperties[r-this.firstgid]:null},getTileData:function(r){return this.containsTileIndex(r)?this.tileData[r-this.firstgid]:null},getTileCollisionGroup:function(r){var n=this.getTileData(r);return n&&n.objectgroup?n.objectgroup:null},containsTileIndex:function(r){return r>=this.firstgid&&re.width||n.height>e.height?this.updateTileData(n.width,n.height):this.updateTileData(e.width,e.height,e.x,e.y),this},setTileSize:function(r,n){return r!==void 0&&(this.tileWidth=r),n!==void 0&&(this.tileHeight=n),this.image&&this.updateTileData(this.image.source[0].width,this.image.source[0].height),this},setSpacing:function(r,n){return r!==void 0&&(this.tileMargin=r),n!==void 0&&(this.tileSpacing=n),this.image&&this.updateTileData(this.image.source[0].width,this.image.source[0].height),this},updateTileData:function(r,n,e,s){e===void 0&&(e=0),s===void 0&&(s=0);var l=(n-this.tileMargin*2+this.tileSpacing)/(this.tileHeight+this.tileSpacing),i=(r-this.tileMargin*2+this.tileSpacing)/(this.tileWidth+this.tileSpacing);(l%1!==0||i%1!==0)&&console.warn("Image tile area not tile size multiple in: "+this.name),l=Math.floor(l),i=Math.floor(i),this.rows=l,this.columns=i,this.total=l*i,this.texCoordinates.length=0;for(var o=this.tileMargin+e,u=this.tileMargin+s,h=0;h{/** + */var d=t(83419),p=t(26099),l=new d({initialize:function(n,e,s,o,i,a,u,h,f){(s===void 0||s<=0)&&(s=32),(o===void 0||o<=0)&&(o=32),i===void 0&&(i=0),a===void 0&&(a=0),u===void 0&&(u={}),h===void 0&&(h={}),this.name=n,this.firstgid=e,this.tileWidth=s,this.tileHeight=o,this.tileMargin=i,this.tileSpacing=a,this.tileProperties=u,this.tileData=h,this.tileOffset=new p,f!==void 0&&this.tileOffset.set(f.x,f.y),this.image=null,this.glTexture=null,this.rows=0,this.columns=0,this.total=0,this.texCoordinates=[]},getTileProperties:function(r){return this.containsTileIndex(r)?this.tileProperties[r-this.firstgid]:null},getTileData:function(r){return this.containsTileIndex(r)?this.tileData[r-this.firstgid]:null},getTileCollisionGroup:function(r){var n=this.getTileData(r);return n&&n.objectgroup?n.objectgroup:null},containsTileIndex:function(r){return r>=this.firstgid&&re.width||n.height>e.height?this.updateTileData(n.width,n.height):this.updateTileData(e.width,e.height,e.x,e.y),this},setTileSize:function(r,n){return r!==void 0&&(this.tileWidth=r),n!==void 0&&(this.tileHeight=n),this.image&&this.updateTileData(this.image.source[0].width,this.image.source[0].height),this},setSpacing:function(r,n){return r!==void 0&&(this.tileMargin=r),n!==void 0&&(this.tileSpacing=n),this.image&&this.updateTileData(this.image.source[0].width,this.image.source[0].height),this},updateTileData:function(r,n,e,s){e===void 0&&(e=0),s===void 0&&(s=0);var o=(n-this.tileMargin*2+this.tileSpacing)/(this.tileHeight+this.tileSpacing),i=(r-this.tileMargin*2+this.tileSpacing)/(this.tileWidth+this.tileSpacing);(o%1!==0||i%1!==0)&&console.warn("Image tile area not tile size multiple in: "+this.name),o=Math.floor(o),i=Math.floor(i),this.rows=o,this.columns=i,this.total=o*i,this.texCoordinates.length=0;for(var a=this.tileMargin+e,u=this.tileMargin+s,h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(7423),p=function(a,r,n){var e=d(a,r,!0,n),s=d(a,r-1,!0,n),l=d(a,r+1,!0,n),i=d(a-1,r,!0,n),o=d(a+1,r,!0,n),u=e&&e.collides;return u&&(e.faceTop=!0,e.faceBottom=!0,e.faceLeft=!0,e.faceRight=!0),s&&s.collides&&(u&&(e.faceTop=!1),s.faceBottom=!u),l&&l.collides&&(u&&(e.faceBottom=!1),l.faceTop=!u),i&&i.collides&&(u&&(e.faceLeft=!1),i.faceRight=!u),o&&o.collides&&(u&&(e.faceRight=!1),o.faceLeft=!u),e&&!e.collides&&e.resetFaces(),e};c.exports=p},42573:(c,T,t)=>{/** + */var d=t(7423),p=function(l,r,n){var e=d(l,r,!0,n),s=d(l,r-1,!0,n),o=d(l,r+1,!0,n),i=d(l-1,r,!0,n),a=d(l+1,r,!0,n),u=e&&e.collides;return u&&(e.faceTop=!0,e.faceBottom=!0,e.faceLeft=!0,e.faceRight=!0),s&&s.collides&&(u&&(e.faceTop=!1),s.faceBottom=!u),o&&o.collides&&(u&&(e.faceBottom=!1),o.faceTop=!u),i&&i.collides&&(u&&(e.faceLeft=!1),i.faceRight=!u),a&&a.collides&&(u&&(e.faceRight=!1),a.faceLeft=!u),e&&!e.collides&&e.resetFaces(),e};c.exports=p},42573:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(7423),p=t(7386),a=function(r,n,e,s,l){for(var i=null,o=null,u=null,h=null,f=p(r,n,e,s,null,l),v=0;v{/** + */var d=t(7423),p=t(7386),l=function(r,n,e,s,o){for(var i=null,a=null,u=null,h=null,f=p(r,n,e,s,null,o),v=0;v{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(26099),p=new d,a=function(r,n,e,s){var l=e.tilemapLayer,i=l.cullPaddingX,o=l.cullPaddingY,u=l.tilemap.tileToWorldXY(r,n,p,s,l);return u.x>s.worldView.x+l.scaleX*e.tileWidth*(-i-.5)&&u.xs.worldView.y+l.scaleY*e.tileHeight*(-o-1)&&u.y{/** + */var d=t(26099),p=new d,l=function(r,n,e,s){var o=e.tilemapLayer,i=o.cullPaddingX,a=o.cullPaddingY,u=o.tilemap.tileToWorldXY(r,n,p,s,o);return u.x>s.worldView.x+o.scaleX*e.tileWidth*(-i-.5)&&u.xs.worldView.y+o.scaleY*e.tileHeight*(-a-1)&&u.y{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(42573),p=t(7386),a=t(62991),r=t(23029),n=function(e,s,l,i,o,u,h,f){h===void 0&&(h=!0);var v=p(e,s,l,i,null,f),m=[];v.forEach(function(A){var P=new r(A.layer,A.index,A.x,A.y,A.width,A.height,A.baseWidth,A.baseHeight);P.copy(A),m.push(P)});for(var x=o-e,g=u-s,y=0;y{/** + */var d=t(42573),p=t(7386),l=t(62991),r=t(23029),n=function(e,s,o,i,a,u,h,f){h===void 0&&(h=!0);var v=p(e,s,o,i,null,f),m=[];v.forEach(function(M){var P=new r(M.layer,M.index,M.x,M.y,M.width,M.height,M.baseWidth,M.baseHeight);P.copy(M),m.push(P)});for(var g=a-e,x=u-s,y=0;y{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(62644),p=t(7386),a=t(27987),r=function(n,e,s,l,i,o){s||(s={}),Array.isArray(n)||(n=[n]);var u=o.tilemapLayer;l||(l=u.scene),i||(i=l.cameras.main);var h=o.width,f=o.height,v=p(0,0,h,f,null,o),m=[],x,g=function(E,A,P){for(var M=0;M{/** + */var d=t(62644),p=t(7386),l=t(27987),r=function(n,e,s,o,i,a){s||(s={}),Array.isArray(n)||(n=[n]);var u=a.tilemapLayer;o||(o=u.scene),i||(i=o.cameras.main);var h=a.width,f=a.height,v=p(0,0,h,f,null,a),m=[],g,x=function(E,M,P){for(var A=0;A{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(87841),p=t(63448),a=t(56583),r=new d,n=function(e,s){var l=e.tilemapLayer.tilemap,i=e.tilemapLayer,o=Math.floor(l.tileWidth*i.scaleX),u=Math.floor(l.tileHeight*i.scaleY),h=a(s.worldView.x-i.x,o,0,!0)-i.cullPaddingX,f=p(s.worldView.right-i.x,o,0,!0)+i.cullPaddingX,v=a(s.worldView.y-i.y,u,0,!0)-i.cullPaddingY,m=p(s.worldView.bottom-i.y,u,0,!0)+i.cullPaddingY;return r.setTo(h,v,f-h,m-v)};c.exports=n},30003:(c,T,t)=>{/** + */var d=t(87841),p=t(63448),l=t(56583),r=new d,n=function(e,s){var o=e.tilemapLayer.tilemap,i=e.tilemapLayer,a=Math.floor(o.tileWidth*i.scaleX),u=Math.floor(o.tileHeight*i.scaleY),h=l(s.worldView.x-i.x,a,0,!0)-i.cullPaddingX,f=p(s.worldView.right-i.x,a,0,!0)+i.cullPaddingX,v=l(s.worldView.y-i.y,u,0,!0)-i.cullPaddingY,m=p(s.worldView.bottom-i.y,u,0,!0)+i.cullPaddingY;return r.setTo(h,v,f-h,m-v)};c.exports=n},30003:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(19545),p=t(32483),a=function(r,n,e,s){e===void 0&&(e=[]),s===void 0&&(s=0),e.length=0;var l=r.tilemapLayer,i=d(r,n);return(l.skipCull||l.scrollFactorX!==1||l.scrollFactorY!==1)&&(i.left=0,i.right=r.width,i.top=0,i.bottom=r.height),p(r,i,s,e),e};c.exports=a},35137:(c,T,t)=>{/** + */var d=t(19545),p=t(32483),l=function(r,n,e,s){e===void 0&&(e=[]),s===void 0&&(s=0),e.length=0;var o=r.tilemapLayer,i=d(r,n);return(o.skipCull||o.scrollFactorX!==1||o.scrollFactorY!==1)&&(i.left=0,i.right=r.width,i.top=0,i.bottom=r.height),p(r,i,s,e),e};c.exports=l},35137:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(7386),p=t(42573),a=t(20576),r=function(n,e,s,l,i,o,u){for(var h=u.collideIndexes.indexOf(n)!==-1,f=d(e,s,l,i,null,u),v=0;v{/** + */var d=t(7386),p=t(42573),l=t(20576),r=function(n,e,s,o,i,a,u){for(var h=u.collideIndexes.indexOf(n)!==-1,f=d(e,s,o,i,null,u),v=0;v{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(7386),p=function(a,r,n,e,s,l,i,o){var u=d(n,e,s,l,i,o);return u.filter(a,r)};c.exports=p},52692:c=>{/** + */var d=t(7386),p=function(l,r,n,e,s,o,i,a){var u=d(n,e,s,o,i,a);return u.filter(l,r)};c.exports=p},52692:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){d===void 0&&(d=0),p===void 0&&(p=!1);var r=0,n,e,s;if(p){for(e=a.height-1;e>=0;e--)for(n=a.width-1;n>=0;n--)if(s=a.data[e][n],s&&s.index===t){if(r===d)return s;r+=1}}else for(e=0;e{/** + */var T=function(t,d,p,l){d===void 0&&(d=0),p===void 0&&(p=!1);var r=0,n,e,s;if(p){for(e=l.height-1;e>=0;e--)for(n=l.width-1;n>=0;n--)if(s=l.data[e][n],s&&s.index===t){if(r===d)return s;r+=1}}else for(e=0;e{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(7386),p=function(a,r,n,e,s,l,i,o){var u=d(n,e,s,l,i,o);return u.find(a,r)||null};c.exports=p},97560:(c,T,t)=>{/** + */var d=t(7386),p=function(l,r,n,e,s,o,i,a){var u=d(n,e,s,o,i,a);return u.find(l,r)||null};c.exports=p},97560:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(7386),p=function(a,r,n,e,s,l,i,o){var u=d(n,e,s,l,i,o);u.forEach(a,r)};c.exports=p},43305:(c,T,t)=>{/** + */var d=t(7386),p=function(l,r,n,e,s,o,i,a){var u=d(n,e,s,o,i,a);u.forEach(l,r)};c.exports=p},43305:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91907),p=t(30003),a=t(9474),r=t(14018),n=t(29747),e=t(54503),s=function(l){return l===d.ORTHOGONAL?p:l===d.HEXAGONAL?a:l===d.STAGGERED?e:l===d.ISOMETRIC?r:n};c.exports=s},7423:(c,T,t)=>{/** + */var d=t(91907),p=t(30003),l=t(9474),r=t(14018),n=t(29747),e=t(54503),s=function(o){return o===d.ORTHOGONAL?p:o===d.HEXAGONAL?l:o===d.STAGGERED?e:o===d.ISOMETRIC?r:n};c.exports=s},7423:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(62991),p=function(a,r,n,e){if(n===void 0&&(n=!1),d(a,r,e)){var s=e.data[r][a]||null;return s?s.index===-1?n?s:null:s:null}else return null};c.exports=p},60540:(c,T,t)=>{/** + */var d=t(62991),p=function(l,r,n,e){if(d(l,r,e)){var s=e.data[r][l]||null;return s?s.index===-1?n?s:null:s:null}else return null};c.exports=p},60540:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(7423),p=t(26099),a=new p,r=function(n,e,s,l,i){return i.tilemapLayer.worldToTileXY(n,e,!0,a,l),d(a.x,a.y,s,i)};c.exports=r},55826:(c,T,t)=>{/** + */var d=t(7423),p=t(26099),l=new p,r=function(n,e,s,o,i){return i.tilemapLayer.worldToTileXY(n,e,!0,l,o),d(l.x,l.y,s,i)};c.exports=r},55826:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(26099),p=function(a,r,n,e){var s=e.baseTileWidth,l=e.baseTileHeight,i=e.tilemapLayer,o=0,u=0;i&&(n||(n=i.scene.cameras.main),o=i.x+n.scrollX*(1-i.scrollFactorX),u=i.y+n.scrollY*(1-i.scrollFactorY),s*=i.scaleX,l*=i.scaleY);var h=o+a*s,f=u+r*l;return[new d(h,f),new d(h+s,f),new d(h+s,f+l),new d(h,f+l)]};c.exports=p},11758:(c,T,t)=>{/** + */var d=t(26099),p=function(l,r,n,e){var s=e.baseTileWidth,o=e.baseTileHeight,i=e.tilemapLayer,a=0,u=0;i&&(n||(n=i.scene.cameras.main),a=i.x+n.scrollX*(1-i.scrollFactorX),u=i.y+n.scrollY*(1-i.scrollFactorY),s*=i.scaleX,o*=i.scaleY);var h=a+l*s,f=u+r*o;return[new d(h,f),new d(h+s,f),new d(h+s,f+o),new d(h,f+o)]};c.exports=p},11758:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91907),p=t(27229),a=t(29747),r=t(55826),n=function(e){return e===d.ORTHOGONAL?r:e===d.ISOMETRIC?a:e===d.HEXAGONAL?p:(e===d.STAGGERED,a)};c.exports=n},39167:(c,T,t)=>{/** + */var d=t(91907),p=t(27229),l=t(29747),r=t(55826),n=function(e){return e===d.ORTHOGONAL?r:e===d.ISOMETRIC?l:e===d.HEXAGONAL?p:(e===d.STAGGERED,l)};c.exports=n},39167:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91907),p=t(29747),a=t(97281),r=function(n){return n===d.ORTHOGONAL?a:p};c.exports=r},62e3:(c,T,t)=>{/** + */var d=t(91907),p=t(29747),l=t(97281),r=function(n){return n===d.ORTHOGONAL?l:p};c.exports=r},62e3:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91907),p=t(19951),a=t(14127),r=t(29747),n=t(97202),e=t(70326),s=function(l){return l===d.ORTHOGONAL?e:l===d.ISOMETRIC?a:l===d.HEXAGONAL?p:l===d.STAGGERED?n:r};c.exports=s},5984:(c,T,t)=>{/** + */var d=t(91907),p=t(19951),l=t(14127),r=t(29747),n=t(97202),e=t(70326),s=function(o){return o===d.ORTHOGONAL?e:o===d.ISOMETRIC?l:o===d.HEXAGONAL?p:o===d.STAGGERED?n:r};c.exports=s},5984:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91907),p=t(29747),a=t(28054),r=t(29650),n=function(e){return e===d.ORTHOGONAL?r:e===d.STAGGERED?a:p};c.exports=n},7386:(c,T,t)=>{/** + */var d=t(91907),p=t(29747),l=t(28054),r=t(29650),n=function(e){return e===d.ORTHOGONAL?r:e===d.STAGGERED?l:p};c.exports=n},7386:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(95540),p=function(a,r,n,e,s,l){a===void 0&&(a=0),r===void 0&&(r=0),n===void 0&&(n=l.width),e===void 0&&(e=l.height),s||(s={});var i=d(s,"isNotEmpty",!1),o=d(s,"isColliding",!1),u=d(s,"hasInterestingFace",!1);a<0&&(n+=a,a=0),r<0&&(e+=r,r=0),a+n>l.width&&(n=Math.max(l.width-a,0)),r+e>l.height&&(e=Math.max(l.height-r,0));for(var h=[],f=r;f{/** + */var d=t(95540),p=function(l,r,n,e,s,o){l===void 0&&(l=0),r===void 0&&(r=0),n===void 0&&(n=o.width),e===void 0&&(e=o.height),s||(s={});var i=d(s,"isNotEmpty",!1),a=d(s,"isColliding",!1),u=d(s,"hasInterestingFace",!1);l<0&&(n+=l,l=0),r<0&&(e+=r,r=0),l+n>o.width&&(n=Math.max(o.width-l,0)),r+e>o.height&&(e=Math.max(o.height-r,0));for(var h=[],f=r;f{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(55738),p=t(7386),a=t(91865),r=t(29747),n=t(26099),e=function(u,h){return a.RectangleToTriangle(h,u)},s=new n,l=new n,i=new n,o=function(u,h,f,v){if(u===void 0)return[];var m=r;u instanceof d.Circle?m=a.CircleToRectangle:u instanceof d.Rectangle?m=a.RectangleToRectangle:u instanceof d.Triangle?m=e:u instanceof d.Line&&(m=a.LineToRectangle),v.tilemapLayer.worldToTileXY(u.left,u.top,!0,l,f);var x=l.x,g=l.y;v.tilemapLayer.worldToTileXY(u.right,u.bottom,!1,i,f);var y=Math.ceil(i.x),S=Math.ceil(i.y),C=Math.max(y-x,1),E=Math.max(S-g,1),A=p(x,g,C,E,h,v),P=v.tileWidth,M=v.tileHeight;v.tilemapLayer&&(P*=v.tilemapLayer.scaleX,M*=v.tilemapLayer.scaleY);for(var F=[],L=new d.Rectangle(0,0,P,M),b=0;b{/** + */var d=t(55738),p=t(7386),l=t(91865),r=t(29747),n=t(26099),e=function(u,h){return l.RectangleToTriangle(h,u)},s=new n,o=new n,i=new n,a=function(u,h,f,v){if(u===void 0)return[];var m=r;u instanceof d.Circle?m=l.CircleToRectangle:u instanceof d.Rectangle?m=l.RectangleToRectangle:u instanceof d.Triangle?m=e:u instanceof d.Line&&(m=l.LineToRectangle),v.tilemapLayer.worldToTileXY(u.left,u.top,!0,o,f);var g=o.x,x=o.y;v.tilemapLayer.worldToTileXY(u.right,u.bottom,!1,i,f);var y=Math.ceil(i.x),S=Math.ceil(i.y),C=Math.max(y-g,1),E=Math.max(S-x,1),M=p(g,x,C,E,h,v),P=v.tileWidth,A=v.tileHeight;v.tilemapLayer&&(P*=v.tilemapLayer.scaleX,A*=v.tilemapLayer.scaleY);for(var R=[],F=new d.Rectangle(0,0,P,A),D=0;D{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(7386),p=t(26099),a=new p,r=new p,n=function(e,s,l,i,o,u,h){var f=h.tilemapLayer.tilemap._convert.WorldToTileXY;f(e,s,!0,a,u,h);var v=a.x,m=a.y;f(e+l,s+i,!1,r,u,h);var x=Math.ceil(r.x),g=Math.ceil(r.y);return d(v,m,x-v,g-m,o,h)};c.exports=n},96113:(c,T,t)=>{/** + */var d=t(7386),p=t(26099),l=new p,r=new p,n=function(e,s,o,i,a,u,h){var f=h.tilemapLayer.tilemap._convert.WorldToTileXY;f(e,s,!0,l,u,h);var v=l.x,m=l.y;f(e+o,s+i,!1,r,u,h);var g=Math.ceil(r.x),x=Math.ceil(r.y);return d(v,m,g-v,x-m,a,h)};c.exports=n},96113:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91907),p=t(20242),a=t(10095),r=function(n){return n===d.ORTHOGONAL?a:p};c.exports=r},16926:(c,T,t)=>{/** + */var d=t(91907),p=t(20242),l=t(10095),r=function(n){return n===d.ORTHOGONAL?l:p};c.exports=r},16926:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91907),p=t(86625),a=t(96897),r=t(29747),n=t(15108),e=t(85896),s=function(l){return l===d.ORTHOGONAL?e:l===d.ISOMETRIC?a:l===d.HEXAGONAL?p:l===d.STAGGERED?n:r};c.exports=s},55762:(c,T,t)=>{/** + */var d=t(91907),p=t(86625),l=t(96897),r=t(29747),n=t(15108),e=t(85896),s=function(o){return o===d.ORTHOGONAL?e:o===d.ISOMETRIC?l:o===d.HEXAGONAL?p:o===d.STAGGERED?n:r};c.exports=s},55762:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91907),p=t(20242),a=t(51900),r=t(63288),n=function(e){return e===d.ORTHOGONAL?r:e===d.STAGGERED?a:p};c.exports=n},45091:(c,T,t)=>{/** + */var d=t(91907),p=t(20242),l=t(51900),r=t(63288),n=function(e){return e===d.ORTHOGONAL?r:e===d.STAGGERED?l:p};c.exports=n},45091:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(62991),p=function(a,r,n){if(d(a,r,n)){var e=n.data[r][a];return e!==null&&e.index>-1}else return!1};c.exports=p},24152:(c,T,t)=>{/** + */var d=t(62991),p=function(l,r,n){if(d(l,r,n)){var e=n.data[r][l];return e!==null&&e.index>-1}else return!1};c.exports=p},24152:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(45091),p=t(26099),a=new p,r=function(n,e,s,l){l.tilemapLayer.worldToTileXY(n,e,!0,a,s);var i=a.x,o=a.y;return d(i,o,l)};c.exports=r},90454:(c,T,t)=>{/** + */var d=t(45091),p=t(26099),l=new p,r=function(n,e,s,o){o.tilemapLayer.worldToTileXY(n,e,!0,l,s);var i=l.x,a=l.y;return d(i,a,o)};c.exports=r},90454:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(63448),p=t(56583),a=function(r,n){var e=r.tilemapLayer.tilemap,s=r.tilemapLayer,l=Math.floor(e.tileWidth*s.scaleX),i=Math.floor(e.tileHeight*s.scaleY),o=r.hexSideLength,u,h,f,v;if(r.staggerAxis==="y"){var m=(i-o)/2+o;u=p(n.worldView.x-s.x,l,0,!0)-s.cullPaddingX,h=d(n.worldView.right-s.x,l,0,!0)+s.cullPaddingX,f=p(n.worldView.y-s.y,m,0,!0)-s.cullPaddingY,v=d(n.worldView.bottom-s.y,m,0,!0)+s.cullPaddingY}else{var x=(l-o)/2+o;u=p(n.worldView.x-s.x,x,0,!0)-s.cullPaddingX,h=d(n.worldView.right-s.x,x,0,!0)+s.cullPaddingX,f=p(n.worldView.y-s.y,i,0,!0)-s.cullPaddingY,v=d(n.worldView.bottom-s.y,i,0,!0)+s.cullPaddingY}return{left:u,right:h,top:f,bottom:v}};c.exports=a},9474:(c,T,t)=>{/** + */var d=t(63448),p=t(56583),l=function(r,n){var e=r.tilemapLayer.tilemap,s=r.tilemapLayer,o=Math.floor(e.tileWidth*s.scaleX),i=Math.floor(e.tileHeight*s.scaleY),a=r.hexSideLength,u,h,f,v;if(r.staggerAxis==="y"){var m=(i-a)/2+a;u=p(n.worldView.x-s.x,o,0,!0)-s.cullPaddingX,h=d(n.worldView.right-s.x,o,0,!0)+s.cullPaddingX,f=p(n.worldView.y-s.y,m,0,!0)-s.cullPaddingY,v=d(n.worldView.bottom-s.y,m,0,!0)+s.cullPaddingY}else{var g=(o-a)/2+a;u=p(n.worldView.x-s.x,g,0,!0)-s.cullPaddingX,h=d(n.worldView.right-s.x,g,0,!0)+s.cullPaddingX,f=p(n.worldView.y-s.y,i,0,!0)-s.cullPaddingY,v=d(n.worldView.bottom-s.y,i,0,!0)+s.cullPaddingY}return{left:u,right:h,top:f,bottom:v}};c.exports=l},9474:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(90454),p=t(32483),a=function(r,n,e,s){e===void 0&&(e=[]),s===void 0&&(s=0),e.length=0;var l=r.tilemapLayer,i=d(r,n);return l.skipCull&&l.scrollFactorX===1&&l.scrollFactorY===1&&(i.left=0,i.right=r.width,i.top=0,i.bottom=r.height),p(r,i,s,e),e};c.exports=a},27229:(c,T,t)=>{/** + */var d=t(90454),p=t(32483),l=function(r,n,e,s){e===void 0&&(e=[]),s===void 0&&(s=0),e.length=0;var o=r.tilemapLayer,i=d(r,n);return o.skipCull&&o.scrollFactorX===1&&o.scrollFactorY===1&&(i.left=0,i.right=r.width,i.top=0,i.bottom=r.height),p(r,i,s,e),e};c.exports=l},27229:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(19951),p=t(26099),a=new p,r=function(n,e,s,l){var i=l.baseTileWidth,o=l.baseTileHeight,u=l.tilemapLayer;u&&(i*=u.scaleX,o*=u.scaleY);var h=d(n,e,a,s,l),f=[],v=.5773502691896257,m,x;l.staggerAxis==="y"?(m=v*i,x=o/2):(m=i/2,x=v*o);for(var g=0;g<6;g++){var y=2*Math.PI*(.5-g)/6;f.push(new p(h.x+m*Math.cos(y),h.y+x*Math.sin(y)))}return f};c.exports=r},19951:(c,T,t)=>{/** + */var d=t(19951),p=t(26099),l=new p,r=function(n,e,s,o){var i=o.baseTileWidth,a=o.baseTileHeight,u=o.tilemapLayer;u&&(i*=u.scaleX,a*=u.scaleY);var h=d(n,e,l,s,o),f=[],v=.5773502691896257,m,g;o.staggerAxis==="y"?(m=v*i,g=a/2):(m=i/2,g=v*a);for(var x=0;x<6;x++){var y=2*Math.PI*(.5-x)/6;f.push(new p(h.x+m*Math.cos(y),h.y+g*Math.sin(y)))}return f};c.exports=r},19951:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(26099),p=function(a,r,n,e,s){n||(n=new d);var l=s.baseTileWidth,i=s.baseTileHeight,o=s.tilemapLayer,u=0,h=0;o&&(e||(e=o.scene.cameras.main),u=o.x+e.scrollX*(1-o.scrollFactorX),h=o.y+e.scrollY*(1-o.scrollFactorY),l*=o.scaleX,i*=o.scaleY);var f=l/2,v=i/2,m,x;return s.staggerAxis==="y"?(m=u+l*a+l,x=h+1.5*r*v+v,r%2===0&&(this.staggerIndex==="odd"?m-=f:m+=f)):this.staggerAxis==="x"&&this.staggerIndex==="odd"&&(m=u+1.5*a*f+f,x=h+i*a+i,a%2===0&&(this.staggerIndex==="odd"?x-=v:x+=v)),n.set(m,x)};c.exports=p},86625:(c,T,t)=>{/** + */var d=t(26099),p=function(l,r,n,e,s){n||(n=new d);var o=s.baseTileWidth,i=s.baseTileHeight,a=s.tilemapLayer,u=0,h=0;a&&(e||(e=a.scene.cameras.main),u=a.x+e.scrollX*(1-a.scrollFactorX),h=a.y+e.scrollY*(1-a.scrollFactorY),o*=a.scaleX,i*=a.scaleY);var f=o/2,v=i/2,m,g;return s.staggerAxis==="y"?(m=u+o*l+o,g=h+1.5*r*v+v,r%2===0&&(this.staggerIndex==="odd"?m-=f:m+=f)):this.staggerAxis==="x"&&this.staggerIndex==="odd"&&(m=u+1.5*l*f+f,g=h+i*l+i,l%2===0&&(this.staggerIndex==="odd"?g-=v:g+=v)),n.set(m,g)};c.exports=p},86625:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(26099),p=function(a,r,n,e,s,l){e||(e=new d);var i=l.baseTileWidth,o=l.baseTileHeight,u=l.tilemapLayer;u&&(s||(s=u.scene.cameras.main),a=a-(u.x+s.scrollX*(1-u.scrollFactorX)),r=r-(u.y+s.scrollY*(1-u.scrollFactorY)),i*=u.scaleX,o*=u.scaleY);var h=.5773502691896257,f=-.3333333333333333,v=0,m=.6666666666666666,x=i/2,g=o/2,y,S,C,E,A;l.staggerAxis==="y"?(y=(a-x)/(h*i),S=(r-g)/g,C=h*y+f*S,E=v*y+m*S):(y=(a-x)/x,S=(r-g)/(h*o),C=f*y+h*S,E=m*y+v*S),A=-C-E;var P=Math.round(C),M=Math.round(E),F=Math.round(A),L=Math.abs(P-C),b=Math.abs(M-E),B=Math.abs(F-A);L>b&&L>B?P=-M-F:b>B&&(M=-P-F);var N,X=M;return l.staggerIndex==="odd"?N=X%2===0?M/2+P:M/2+P-.5:N=X%2===0?M/2+P:M/2+P+.5,e.set(N,X)};c.exports=p},62991:c=>{/** + */var d=t(26099),p=function(l,r,n,e,s,o){e||(e=new d);var i=o.baseTileWidth,a=o.baseTileHeight,u=o.tilemapLayer;u&&(s||(s=u.scene.cameras.main),l=l-(u.x+s.scrollX*(1-u.scrollFactorX)),r=r-(u.y+s.scrollY*(1-u.scrollFactorY)),i*=u.scaleX,a*=u.scaleY);var h=.5773502691896257,f=-.3333333333333333,v=0,m=.6666666666666666,g=i/2,x=a/2,y,S,C,E,M;o.staggerAxis==="y"?(y=(l-g)/(h*i),S=(r-x)/x,C=h*y+f*S,E=v*y+m*S):(y=(l-g)/g,S=(r-x)/(h*a),C=f*y+h*S,E=m*y+v*S),M=-C-E;var P=Math.round(C),A=Math.round(E),R=Math.round(M),F=Math.abs(P-C),D=Math.abs(A-E),w=Math.abs(R-M);F>D&&F>w?P=-A-R:D>w&&(A=-P-R);var G,N=A;return o.staggerIndex==="odd"?G=N%2===0?A/2+P:A/2+P-.5:G=N%2===0?A/2+P:A/2+P+.5,e.set(G,N)};c.exports=p},62991:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -5612,75 +5612,75 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(33528),p=function(a,r,n,e){n===void 0&&(n=[]),e===void 0&&(e=0),n.length=0;var s=a.tilemapLayer,l=a.data,i=a.width,o=a.height,u=s.skipCull,h=0,f=i,v=0,m=o,x,g,y;if(e===0)for(g=v;g=h;x--)y=l[g][x],!(!y||y.index===-1||!y.visible||y.alpha===0)&&(!u&&!d(x,g,a,r)||n.push(y));else if(e===2)for(g=m;g>=v;g--)for(x=h;x=v;g--)for(x=f;x>=h;x--)y=l[g][x],!(!y||y.index===-1||!y.visible||y.alpha===0)&&(!u&&!d(x,g,a,r)||n.push(y));return s.tilesDrawn=n.length,s.tilesTotal=i*o,n};c.exports=p},14127:(c,T,t)=>{/** + */var d=t(33528),p=function(l,r,n,e){n===void 0&&(n=[]),e===void 0&&(e=0),n.length=0;var s=l.tilemapLayer,o=l.data,i=l.width,a=l.height,u=s.skipCull,h=0,f=i,v=0,m=a,g,x,y;if(e===0)for(x=v;x=h;g--)y=o[x][g],!(!y||y.index===-1||!y.visible||y.alpha===0)&&(!u&&!d(g,x,l,r)||n.push(y));else if(e===2)for(x=m;x>=v;x--)for(g=h;g=v;x--)for(g=f;g>=h;g--)y=o[x][g],!(!y||y.index===-1||!y.visible||y.alpha===0)&&(!u&&!d(g,x,l,r)||n.push(y));return s.tilesDrawn=n.length,s.tilesTotal=i*a,n};c.exports=p},14127:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(26099),p=function(a,r,n,e,s){n||(n=new d);var l=s.baseTileWidth,i=s.baseTileHeight,o=s.tilemapLayer,u=0,h=0;o&&(e||(e=o.scene.cameras.main),u=o.x+e.scrollX*(1-o.scrollFactorX),l*=o.scaleX,h=o.y+e.scrollY*(1-o.scrollFactorY),i*=o.scaleY);var f=u+(a-r)*(l/2),v=h+(a+r)*(i/2);return n.set(f,v)};c.exports=p},96897:(c,T,t)=>{/** + */var d=t(26099),p=function(l,r,n,e,s){n||(n=new d);var o=s.baseTileWidth,i=s.baseTileHeight,a=s.tilemapLayer,u=0,h=0;a&&(e||(e=a.scene.cameras.main),u=a.x+e.scrollX*(1-a.scrollFactorX),o*=a.scaleX,h=a.y+e.scrollY*(1-a.scrollFactorY),i*=a.scaleY);var f=u+(l-r)*(o/2),v=h+(l+r)*(i/2);return n.set(f,v)};c.exports=p},96897:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(26099),p=function(a,r,n,e,s,l,i){e||(e=new d);var o=l.baseTileWidth,u=l.baseTileHeight,h=l.tilemapLayer;h&&(s||(s=h.scene.cameras.main),r=r-(h.y+s.scrollY*(1-h.scrollFactorY)),u*=h.scaleY,a=a-(h.x+s.scrollX*(1-h.scrollFactorX)),o*=h.scaleX);var f=o/2,v=u/2;a=a-f,i||(r=r-u);var m=.5*(a/f+r/v),x=.5*(-a/f+r/v);return n&&(m=Math.floor(m),x=Math.floor(x)),e.set(m,x)};c.exports=p},71558:(c,T,t)=>{/** + */var d=t(26099),p=function(l,r,n,e,s,o,i){e||(e=new d);var a=o.baseTileWidth,u=o.baseTileHeight,h=o.tilemapLayer;h&&(s||(s=h.scene.cameras.main),r=r-(h.y+s.scrollY*(1-h.scrollFactorY)),u*=h.scaleY,l=l-(h.x+s.scrollX*(1-h.scrollFactorX)),a*=h.scaleX);var f=a/2,v=u/2;l=l-f,i||(r=r-u);var m=.5*(l/f+r/v),g=.5*(-l/f+r/v);return n&&(m=Math.floor(m),g=Math.floor(g)),e.set(m,g)};c.exports=p},71558:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(23029),p=t(62991),a=t(72023),r=t(20576),n=function(e,s,l,i,o){if(i===void 0&&(i=!0),!p(s,l,o))return null;var u,h=o.data[l][s],f=h&&h.collides;e instanceof d?(o.data[l][s]===null&&(o.data[l][s]=new d(o,e.index,s,l,o.tileWidth,o.tileHeight)),o.data[l][s].copy(e)):(u=e,o.data[l][s]===null?o.data[l][s]=new d(o,u,s,l,o.tileWidth,o.tileHeight):o.data[l][s].index=u);var v=o.data[l][s],m=o.collideIndexes.indexOf(v.index)!==-1;if(u=e instanceof d?e.index:e,u===-1)v.width=o.tileWidth,v.height=o.tileHeight;else{var x=o.tilemapLayer.tilemap,g=x.tiles,y=g[u][2],S=x.tilesets[y];v.width=S.tileWidth,v.height=S.tileHeight}return r(v,m),i&&f!==v.collides&&a(s,l,o),v};c.exports=n},26303:(c,T,t)=>{/** + */var d=t(23029),p=t(62991),l=t(72023),r=t(20576),n=function(e,s,o,i,a){if(i===void 0&&(i=!0),!p(s,o,a))return null;var u,h=a.data[o][s],f=h&&h.collides;e instanceof d?(a.data[o][s]===null&&(a.data[o][s]=new d(a,e.index,s,o,a.tileWidth,a.tileHeight)),a.data[o][s].copy(e)):(u=e,a.data[o][s]===null?a.data[o][s]=new d(a,u,s,o,a.tileWidth,a.tileHeight):a.data[o][s].index=u);var v=a.data[o][s],m=a.collideIndexes.indexOf(v.index)!==-1;if(u=e instanceof d?e.index:e,u===-1)v.width=a.tileWidth,v.height=a.tileHeight;else{var g=a.tilemapLayer.tilemap,x=g.tiles,y=x[u][2],S=g.tilesets[y];v.width=S.tileWidth,v.height=S.tileHeight}return r(v,m),i&&f!==v.collides&&l(s,o,a),v};c.exports=n},26303:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(71558),p=t(26099),a=new p,r=function(n,e,s,l,i,o){return o.tilemapLayer.worldToTileXY(e,s,!0,a,i,o),d(n,a.x,a.y,l,o)};c.exports=r},14051:(c,T,t)=>{/** + */var d=t(71558),p=t(26099),l=new p,r=function(n,e,s,o,i,a){return a.tilemapLayer.worldToTileXY(e,s,!0,l,i,a),d(n,l.x,l.y,o,a)};c.exports=r},14051:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(42573),p=t(71558),a=function(r,n,e,s,l){if(s===void 0&&(s=!0),!Array.isArray(r))return null;Array.isArray(r[0])||(r=[r]);for(var i=r.length,o=r[0].length,u=0;u{/** + */var d=t(42573),p=t(71558),l=function(r,n,e,s,o){if(s===void 0&&(s=!0),!Array.isArray(r))return null;Array.isArray(r[0])||(r=[r]);for(var i=r.length,a=r[0].length,u=0;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(7386),p=t(26546),a=function(r,n,e,s,l,i){var o,u=d(r,n,e,s,{},i);if(!l)for(l=[],o=0;o{/** + */var d=t(7386),p=t(26546),l=function(r,n,e,s,o,i){var a,u=d(r,n,e,s,{},i);if(!o)for(o=[],a=0;a{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(23029),p=t(62991),a=t(72023),r=function(n,e,s,l,i){if(s===void 0&&(s=!0),l===void 0&&(l=!0),!p(n,e,i))return null;var o=i.data[e][n];if(o)i.data[e][n]=s?null:new d(i,-1,n,e,i.tileWidth,i.tileHeight);else return null;return l&&o&&o.collides&&a(n,e,i),o};c.exports=r},94178:(c,T,t)=>{/** + */var d=t(23029),p=t(62991),l=t(72023),r=function(n,e,s,o,i){if(s===void 0&&(s=!0),o===void 0&&(o=!0),!p(n,e,i))return null;var a=i.data[e][n];if(a)i.data[e][n]=s?null:new d(i,-1,n,e,i.tileWidth,i.tileHeight);else return null;return o&&a&&a.collides&&l(n,e,i),a};c.exports=r},94178:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(63557),p=t(26099),a=new p,r=function(n,e,s,l,i,o){return o.tilemapLayer.worldToTileXY(n,e,!0,a,i,o),d(a.x,a.y,s,l,o)};c.exports=r},15533:(c,T,t)=>{/** + */var d=t(63557),p=t(26099),l=new p,r=function(n,e,s,o,i,a){return a.tilemapLayer.worldToTileXY(n,e,!0,l,i,a),d(l.x,l.y,s,o,a)};c.exports=r},15533:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(7386),p=t(3956),a=new p(105,210,231,150),r=new p(243,134,48,200),n=new p(40,39,37,150),e=function(s,l,i){l===void 0&&(l={});var o=l.tileColor!==void 0?l.tileColor:a,u=l.collidingTileColor!==void 0?l.collidingTileColor:r,h=l.faceColor!==void 0?l.faceColor:n,f=d(0,0,i.width,i.height,null,i);s.translateCanvas(i.tilemapLayer.x,i.tilemapLayer.y),s.scaleCanvas(i.tilemapLayer.scaleX,i.tilemapLayer.scaleY);for(var v=0;v{/** + */var d=t(7386),p=t(3956),l=new p(105,210,231,150),r=new p(243,134,48,200),n=new p(40,39,37,150),e=function(s,o,i){o===void 0&&(o={});var a=o.tileColor!==void 0?o.tileColor:l,u=o.collidingTileColor!==void 0?o.collidingTileColor:r,h=o.faceColor!==void 0?o.faceColor:n,f=d(0,0,i.width,i.height,null,i);s.translateCanvas(i.tilemapLayer.x,i.tilemapLayer.y),s.scaleCanvas(i.tilemapLayer.scaleX,i.tilemapLayer.scaleY);for(var v=0;v{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(7386),p=function(a,r,n,e,s,l,i){for(var o=d(n,e,s,l,null,i),u=0;u{/** + */var d=t(7386),p=function(l,r,n,e,s,o,i){for(var a=d(n,e,s,o,null,i),u=0;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){var r=t.data,n=t.width,e=t.height,s=t.tilemapLayer,l=Math.max(0,d.left),i=Math.min(n,d.right),o=Math.max(0,d.top),u=Math.min(e,d.bottom),h,f,v;if(p===0)for(f=o;f=l;h--)v=r[f][h],!(!v||v.index===-1||!v.visible||v.alpha===0)&&a.push(v);else if(p===2)for(f=u;f>=o;f--)for(h=l;r[f]&&h=o;f--)for(h=i;r[f]&&h>=l;h--)v=r[f][h],!(!v||v.index===-1||!v.visible||v.alpha===0)&&a.push(v);return s.tilesDrawn=a.length,s.tilesTotal=n*e,a};c.exports=T},57068:(c,T,t)=>{/** + */var T=function(t,d,p,l){var r=t.data,n=t.width,e=t.height,s=t.tilemapLayer,o=Math.max(0,d.left),i=Math.min(n,d.right),a=Math.max(0,d.top),u=Math.min(e,d.bottom),h,f,v;if(p===0)for(f=a;f=o;h--)v=r[f][h],!(!v||v.index===-1||!v.visible||v.alpha===0)&&l.push(v);else if(p===2)for(f=u;f>=a;f--)for(h=o;r[f]&&h=a;f--)for(h=i;r[f]&&h>=o;h--)v=r[f][h],!(!v||v.index===-1||!v.visible||v.alpha===0)&&l.push(v);return s.tilesDrawn=l.length,s.tilesTotal=n*e,l};c.exports=T},57068:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(20576),p=t(42573),a=t(9589),r=function(n,e,s,l,i){e===void 0&&(e=!0),s===void 0&&(s=!0),i===void 0&&(i=!0),Array.isArray(n)||(n=[n]);for(var o=0;o{/** + */var d=t(20576),p=t(42573),l=t(9589),r=function(n,e,s,o,i){e===void 0&&(e=!0),s===void 0&&(s=!0),i===void 0&&(i=!0),Array.isArray(n)||(n=[n]);for(var a=0;a{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(20576),p=t(42573),a=t(9589),r=function(n,e,s,l,i,o){if(s===void 0&&(s=!0),l===void 0&&(l=!0),o===void 0&&(o=!0),!(n>e)){for(var u=n;u<=e;u++)a(u,s,i);if(o)for(var h=0;h=n&&v.index<=e&&d(v,s)}l&&p(0,0,i.width,i.height,i)}};c.exports=r},75661:(c,T,t)=>{/** + */var d=t(20576),p=t(42573),l=t(9589),r=function(n,e,s,o,i,a){if(s===void 0&&(s=!0),o===void 0&&(o=!0),a===void 0&&(a=!0),!(n>e)){for(var u=n;u<=e;u++)l(u,s,i);if(a)for(var h=0;h=n&&v.index<=e&&d(v,s)}o&&p(0,0,i.width,i.height,i)}};c.exports=r},75661:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(20576),p=t(42573),a=t(9589),r=function(n,e,s,l){e===void 0&&(e=!0),s===void 0&&(s=!0),Array.isArray(n)||(n=[n]);for(var i=0;i{/** + */var d=t(20576),p=t(42573),l=t(9589),r=function(n,e,s,o){e===void 0&&(e=!0),s===void 0&&(s=!0),Array.isArray(n)||(n=[n]);for(var i=0;i{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(20576),p=t(42573),a=t(97022),r=function(n,e,s,l){e===void 0&&(e=!0),s===void 0&&(s=!0);for(var i=0;i{/** + */var d=t(20576),p=t(42573),l=t(97022),r=function(n,e,s,o){e===void 0&&(e=!0),s===void 0&&(s=!0);for(var i=0;i{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(20576),p=t(42573),a=function(r,n,e){r===void 0&&(r=!0),n===void 0&&(n=!0);for(var s=0;s0&&d(i,r)}}n&&p(0,0,e.width,e.height,e)};c.exports=a},9589:c=>{/** + */var d=t(20576),p=t(42573),l=function(r,n,e){r===void 0&&(r=!0),n===void 0&&(n=!0);for(var s=0;s0&&d(i,r)}}n&&p(0,0,e.width,e.height,e)};c.exports=l},9589:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){var a=p.collideIndexes.indexOf(t);d&&a===-1?p.collideIndexes.push(t):!d&&a!==-1&&p.collideIndexes.splice(a,1)};c.exports=T},20576:c=>{/** + */var T=function(t,d,p){var l=p.collideIndexes.indexOf(t);d&&l===-1?p.collideIndexes.push(t):!d&&l!==-1&&p.collideIndexes.splice(l,1)};c.exports=T},20576:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -5688,71 +5688,71 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){if(typeof t=="number")a.callbacks[t]=d!==null?{callback:d,callbackContext:p}:void 0;else for(var r=0,n=t.length;r{/** + */var T=function(t,d,p,l){if(typeof t=="number")l.callbacks[t]=d!==null?{callback:d,callbackContext:p}:void 0;else for(var r=0,n=t.length;r{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(7386),p=function(a,r,n,e,s,l,i){for(var o=d(a,r,n,e,null,i),u=0;u{/** + */var d=t(7386),p=function(l,r,n,e,s,o,i){for(var a=d(l,r,n,e,null,i),u=0;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(7386),p=t(33680),a=function(r,n,e,s,l){var i=d(r,n,e,s,null,l),o=i.map(function(h){return h.index});p(o);for(var u=0;u{/** + */var d=t(7386),p=t(33680),l=function(r,n,e,s,o){var i=d(r,n,e,s,null,o),a=i.map(function(h){return h.index});p(a);for(var u=0;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(63448),p=t(56583),a=function(r,n){var e=r.tilemapLayer.tilemap,s=r.tilemapLayer,l=Math.floor(e.tileWidth*s.scaleX),i=Math.floor(e.tileHeight*s.scaleY),o=p(n.worldView.x-s.x,l,0,!0)-s.cullPaddingX,u=d(n.worldView.right-s.x,l,0,!0)+s.cullPaddingX,h=p(n.worldView.y-s.y,i/2,0,!0)-s.cullPaddingY,f=d(n.worldView.bottom-s.y,i/2,0,!0)+s.cullPaddingY;return{left:o,right:u,top:h,bottom:f}};c.exports=a},54503:(c,T,t)=>{/** + */var d=t(63448),p=t(56583),l=function(r,n){var e=r.tilemapLayer.tilemap,s=r.tilemapLayer,o=Math.floor(e.tileWidth*s.scaleX),i=Math.floor(e.tileHeight*s.scaleY),a=p(n.worldView.x-s.x,o,0,!0)-s.cullPaddingX,u=d(n.worldView.right-s.x,o,0,!0)+s.cullPaddingX,h=p(n.worldView.y-s.y,i/2,0,!0)-s.cullPaddingY,f=d(n.worldView.bottom-s.y,i/2,0,!0)+s.cullPaddingY;return{left:a,right:u,top:h,bottom:f}};c.exports=l},54503:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(61325),p=t(32483),a=function(r,n,e,s){e===void 0&&(e=[]),s===void 0&&(s=0),e.length=0;var l=r.tilemapLayer,i=d(r,n);return l.skipCull&&l.scrollFactorX===1&&l.scrollFactorY===1&&(i.left=0,i.right=r.width,i.top=0,i.bottom=r.height),p(r,i,s,e),e};c.exports=a},97202:(c,T,t)=>{/** + */var d=t(61325),p=t(32483),l=function(r,n,e,s){e===void 0&&(e=[]),s===void 0&&(s=0),e.length=0;var o=r.tilemapLayer,i=d(r,n);return o.skipCull&&o.scrollFactorX===1&&o.scrollFactorY===1&&(i.left=0,i.right=r.width,i.top=0,i.bottom=r.height),p(r,i,s,e),e};c.exports=l},97202:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(26099),p=function(a,r,n,e,s){n||(n=new d);var l=s.baseTileWidth,i=s.baseTileHeight,o=s.tilemapLayer,u=0,h=0;o&&(e||(e=o.scene.cameras.main),u=o.x+e.scrollX*(1-o.scrollFactorX),l*=o.scaleX,h=o.y+e.scrollY*(1-o.scrollFactorY),i*=o.scaleY);var f=u+a*l+r%2*(l/2),v=h+r*(i/2);return n.set(f,v)};c.exports=p},28054:c=>{/** + */var d=t(26099),p=function(l,r,n,e,s){n||(n=new d);var o=s.baseTileWidth,i=s.baseTileHeight,a=s.tilemapLayer,u=0,h=0;a&&(e||(e=a.scene.cameras.main),u=a.x+e.scrollX*(1-a.scrollFactorX),o*=a.scaleX,h=a.y+e.scrollY*(1-a.scrollFactorY),i*=a.scaleY);var f=u+l*o+r%2*(o/2),v=h+r*(i/2);return n.set(f,v)};c.exports=p},28054:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){var a=p.baseTileHeight,r=p.tilemapLayer,n=0;return r&&(d===void 0&&(d=r.scene.cameras.main),n=r.y+d.scrollY*(1-r.scrollFactorY),a*=r.scaleY),n+t*(a/2)+a};c.exports=T},15108:(c,T,t)=>{/** + */var T=function(t,d,p){var l=p.baseTileHeight,r=p.tilemapLayer,n=0;return r&&(d===void 0&&(d=r.scene.cameras.main),n=r.y+d.scrollY*(1-r.scrollFactorY),l*=r.scaleY),n+t*(l/2)+l};c.exports=T},15108:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(26099),p=function(a,r,n,e,s,l){e||(e=new d);var i=l.baseTileWidth,o=l.baseTileHeight,u=l.tilemapLayer;u&&(s||(s=u.scene.cameras.main),r=r-(u.y+s.scrollY*(1-u.scrollFactorY)),o*=u.scaleY,a=a-(u.x+s.scrollX*(1-u.scrollFactorX)),i*=u.scaleX);var h=n?Math.floor(r/(o/2)):r/(o/2),f=n?Math.floor((a+h%2*.5*i)/i):(a+h%2*.5*i)/i;return e.set(f,h)};c.exports=p},51900:c=>{/** + */var d=t(26099),p=function(l,r,n,e,s,o){e||(e=new d);var i=o.baseTileWidth,a=o.baseTileHeight,u=o.tilemapLayer;u&&(s||(s=u.scene.cameras.main),r=r-(u.y+s.scrollY*(1-u.scrollFactorY)),a*=u.scaleY,l=l-(u.x+s.scrollX*(1-u.scrollFactorX)),i*=u.scaleX);var h=n?Math.floor(r/(a/2)):r/(a/2),f=n?Math.floor((l+h%2*.5*i)/i):(l+h%2*.5*i)/i;return e.set(f,h)};c.exports=p},51900:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){var r=a.baseTileHeight,n=a.tilemapLayer;return n&&(p||(p=n.scene.cameras.main),t=t-(n.y+p.scrollY*(1-n.scrollFactorY)),r*=n.scaleY),d?Math.floor(t/(r/2)):t/(r/2)};c.exports=T},86560:(c,T,t)=>{/** + */var T=function(t,d,p,l){var r=l.baseTileHeight,n=l.tilemapLayer;return n&&(p||(p=n.scene.cameras.main),t=t-(n.y+p.scrollY*(1-n.scrollFactorY)),r*=n.scaleY),d?Math.floor(t/(r/2)):t/(r/2)};c.exports=T},86560:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(7386),p=function(a,r,n,e,s,l,i){for(var o=d(n,e,s,l,null,i),u=0;u{/** + */var d=t(7386),p=function(l,r,n,e,s,o,i){for(var a=d(n,e,s,o,null,i),u=0;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){var a=p.baseTileWidth,r=p.tilemapLayer,n=0;return r&&(d||(d=r.scene.cameras.main),n=r.x+d.scrollX*(1-r.scrollFactorX),a*=r.scaleX),n+t*a};c.exports=T},70326:(c,T,t)=>{/** + */var T=function(t,d,p){var l=p.baseTileWidth,r=p.tilemapLayer,n=0;return r&&(d||(d=r.scene.cameras.main),n=r.x+d.scrollX*(1-r.scrollFactorX),l*=r.scaleX),n+t*l};c.exports=T},70326:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(97281),p=t(29650),a=t(26099),r=function(n,e,s,l,i){return s||(s=new a(0,0)),s.x=d(n,l,i),s.y=p(e,l,i),s};c.exports=r},29650:c=>{/** + */var d=t(97281),p=t(29650),l=t(26099),r=function(n,e,s,o,i){return s||(s=new l(0,0)),s.x=d(n,o,i),s.y=p(e,o,i),s};c.exports=r},29650:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){var a=p.baseTileHeight,r=p.tilemapLayer,n=0;return r&&(d||(d=r.scene.cameras.main),n=r.y+d.scrollY*(1-r.scrollFactorY),a*=r.scaleY),n+t*a};c.exports=T},77366:(c,T,t)=>{/** + */var T=function(t,d,p){var l=p.baseTileHeight,r=p.tilemapLayer,n=0;return r&&(d||(d=r.scene.cameras.main),n=r.y+d.scrollY*(1-r.scrollFactorY),l*=r.scaleY),n+t*l};c.exports=T},77366:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(7386),p=t(75508),a=function(r,n,e,s,l,i){if(l){var o,u=d(r,n,e,s,null,i),h=0;for(o=0;o{/** + */var d=t(7386),p=t(75508),l=function(r,n,e,s,o,i){if(o){var a,u=d(r,n,e,s,null,i),h=0;for(a=0;a{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(85896),p=t(26099),a=new p,r=function(n,e,s,l){return d(n,0,e,a,s,l),a.x};c.exports=r},85896:(c,T,t)=>{/** + */var d=t(85896),p=t(26099),l=new p,r=function(n,e,s,o){return d(n,0,e,l,s,o),l.x};c.exports=r},85896:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(26099),p=function(a,r,n,e,s,l){n===void 0&&(n=!0),e||(e=new d);var i=l.baseTileWidth,o=l.baseTileHeight,u=l.tilemapLayer;u&&(s||(s=u.scene.cameras.main),a=a-(u.x+s.scrollX*(1-u.scrollFactorX)),r=r-(u.y+s.scrollY*(1-u.scrollFactorY)),i*=u.scaleX,o*=u.scaleY);var h=a/i,f=r/o;return n&&(h=Math.floor(h),f=Math.floor(f)),e.set(h,f)};c.exports=p},63288:(c,T,t)=>{/** + */var d=t(26099),p=function(l,r,n,e,s,o){n===void 0&&(n=!0),e||(e=new d);var i=o.baseTileWidth,a=o.baseTileHeight,u=o.tilemapLayer;u&&(s||(s=u.scene.cameras.main),l=l-(u.x+s.scrollX*(1-u.scrollFactorX)),r=r-(u.y+s.scrollY*(1-u.scrollFactorY)),i*=u.scaleX,a*=u.scaleY);var h=l/i,f=r/a;return n&&(h=Math.floor(h),f=Math.floor(f)),e.set(h,f)};c.exports=p},63288:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(85896),p=t(26099),a=new p,r=function(n,e,s,l){return d(0,n,e,a,s,l),a.y};c.exports=r},81086:(c,T,t)=>{/** + */var d=t(85896),p=t(26099),l=new p,r=function(n,e,s,o){return d(0,n,e,l,s,o),l.y};c.exports=r},81086:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -5768,48 +5768,48 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(79291),p=t(21829),a={Components:t(81086),Parsers:t(57442),Formats:t(80341),ImageCollection:t(16536),ParseToTilemap:t(31989),Tile:t(23029),Tilemap:t(49075),TilemapCreator:t(45939),TilemapFactory:t(46029),Tileset:t(33629),TilemapLayer:t(20442),Orientation:t(91907),LayerData:t(14977),MapData:t(87010),ObjectLayer:t(48700)};a=d(!1,a,p.ORIENTATION),c.exports=a},14977:(c,T,t)=>{/** + */var d=t(79291),p=t(21829),l={Components:t(81086),Parsers:t(57442),Formats:t(80341),ImageCollection:t(16536),ParseToTilemap:t(31989),Tile:t(23029),Tilemap:t(49075),TilemapCreator:t(45939),TilemapFactory:t(46029),Tileset:t(33629),TilemapLayer:t(20442),Orientation:t(91907),LayerData:t(14977),MapData:t(87010),ObjectLayer:t(48700)};l=d(!1,l,p.ORIENTATION),c.exports=l},14977:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(91907),a=t(95540),r=new d({initialize:function(e){e===void 0&&(e={}),this.name=a(e,"name","layer"),this.id=a(e,"id",0),this.x=a(e,"x",0),this.y=a(e,"y",0),this.width=a(e,"width",0),this.height=a(e,"height",0),this.tileWidth=a(e,"tileWidth",0),this.tileHeight=a(e,"tileHeight",0),this.baseTileWidth=a(e,"baseTileWidth",this.tileWidth),this.baseTileHeight=a(e,"baseTileHeight",this.tileHeight),this.orientation=a(e,"orientation",p.ORTHOGONAL),this.widthInPixels=a(e,"widthInPixels",this.width*this.baseTileWidth),this.heightInPixels=a(e,"heightInPixels",this.height*this.baseTileHeight),this.alpha=a(e,"alpha",1),this.visible=a(e,"visible",!0),this.properties=a(e,"properties",[]),this.indexes=a(e,"indexes",[]),this.collideIndexes=a(e,"collideIndexes",[]),this.callbacks=a(e,"callbacks",[]),this.bodies=a(e,"bodies",[]),this.data=a(e,"data",[]),this.tilemapLayer=a(e,"tilemapLayer",null),this.hexSideLength=a(e,"hexSideLength",0),this.staggerAxis=a(e,"staggerAxis","y"),this.staggerIndex=a(e,"staggerIndex","odd")}});c.exports=r},87010:(c,T,t)=>{/** + */var d=t(83419),p=t(91907),l=t(95540),r=new d({initialize:function(e){e===void 0&&(e={}),this.name=l(e,"name","layer"),this.id=l(e,"id",0),this.x=l(e,"x",0),this.y=l(e,"y",0),this.width=l(e,"width",0),this.height=l(e,"height",0),this.tileWidth=l(e,"tileWidth",0),this.tileHeight=l(e,"tileHeight",0),this.baseTileWidth=l(e,"baseTileWidth",this.tileWidth),this.baseTileHeight=l(e,"baseTileHeight",this.tileHeight),this.orientation=l(e,"orientation",p.ORTHOGONAL),this.widthInPixels=l(e,"widthInPixels",this.width*this.baseTileWidth),this.heightInPixels=l(e,"heightInPixels",this.height*this.baseTileHeight),this.alpha=l(e,"alpha",1),this.visible=l(e,"visible",!0),this.properties=l(e,"properties",[]),this.indexes=l(e,"indexes",[]),this.collideIndexes=l(e,"collideIndexes",[]),this.callbacks=l(e,"callbacks",[]),this.bodies=l(e,"bodies",[]),this.data=l(e,"data",[]),this.tilemapLayer=l(e,"tilemapLayer",null),this.hexSideLength=l(e,"hexSideLength",0),this.staggerAxis=l(e,"staggerAxis","y"),this.staggerIndex=l(e,"staggerIndex","odd")}});c.exports=r},87010:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(91907),a=t(95540),r=new d({initialize:function(e){e===void 0&&(e={}),this.name=a(e,"name","map"),this.width=a(e,"width",0),this.height=a(e,"height",0),this.infinite=a(e,"infinite",!1),this.tileWidth=a(e,"tileWidth",0),this.tileHeight=a(e,"tileHeight",0),this.widthInPixels=a(e,"widthInPixels",this.width*this.tileWidth),this.heightInPixels=a(e,"heightInPixels",this.height*this.tileHeight),this.format=a(e,"format",null),this.orientation=a(e,"orientation",p.ORTHOGONAL),this.renderOrder=a(e,"renderOrder","right-down"),this.version=a(e,"version","1"),this.properties=a(e,"properties",{}),this.layers=a(e,"layers",[]),this.images=a(e,"images",[]),this.objects=a(e,"objects",[]),Array.isArray(this.objects)||(this.objects=[]),this.collision=a(e,"collision",{}),this.tilesets=a(e,"tilesets",[]),this.imageCollections=a(e,"imageCollections",[]),this.tiles=a(e,"tiles",[]),this.hexSideLength=a(e,"hexSideLength",0),this.staggerAxis=a(e,"staggerAxis","y"),this.staggerIndex=a(e,"staggerIndex","odd")}});c.exports=r},48700:(c,T,t)=>{/** + */var d=t(83419),p=t(91907),l=t(95540),r=new d({initialize:function(e){e===void 0&&(e={}),this.name=l(e,"name","map"),this.width=l(e,"width",0),this.height=l(e,"height",0),this.infinite=l(e,"infinite",!1),this.tileWidth=l(e,"tileWidth",0),this.tileHeight=l(e,"tileHeight",0),this.widthInPixels=l(e,"widthInPixels",this.width*this.tileWidth),this.heightInPixels=l(e,"heightInPixels",this.height*this.tileHeight),this.format=l(e,"format",null),this.orientation=l(e,"orientation",p.ORTHOGONAL),this.renderOrder=l(e,"renderOrder","right-down"),this.version=l(e,"version","1"),this.properties=l(e,"properties",{}),this.layers=l(e,"layers",[]),this.images=l(e,"images",[]),this.objects=l(e,"objects",[]),Array.isArray(this.objects)||(this.objects=[]),this.collision=l(e,"collision",{}),this.tilesets=l(e,"tilesets",[]),this.imageCollections=l(e,"imageCollections",[]),this.tiles=l(e,"tiles",[]),this.hexSideLength=l(e,"hexSideLength",0),this.staggerAxis=l(e,"staggerAxis","y"),this.staggerIndex=l(e,"staggerIndex","odd")}});c.exports=r},48700:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(95540),a=new d({initialize:function(n){n===void 0&&(n={}),this.name=p(n,"name","object layer"),this.id=p(n,"id",0),this.opacity=p(n,"opacity",1),this.properties=p(n,"properties",{}),this.propertyTypes=p(n,"propertytypes",{}),this.type=p(n,"type","objectgroup"),this.visible=p(n,"visible",!0),this.objects=p(n,"objects",[]),Array.isArray(this.objects)||(this.objects=[])}});c.exports=a},6641:(c,T,t)=>{/** + */var d=t(83419),p=t(95540),l=new d({initialize:function(n){n===void 0&&(n={}),this.name=p(n,"name","object layer"),this.id=p(n,"id",0),this.opacity=p(n,"opacity",1),this.properties=p(n,"properties",{}),this.propertyTypes=p(n,"propertytypes",{}),this.type=p(n,"type","objectgroup"),this.visible=p(n,"visible",!0),this.objects=p(n,"objects",[]),Array.isArray(this.objects)||(this.objects=[])}});c.exports=l},6641:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(91907),p=function(a){return a=a.toLowerCase(),a==="isometric"?d.ISOMETRIC:a==="staggered"?d.STAGGERED:a==="hexagonal"?d.HEXAGONAL:d.ORTHOGONAL};c.exports=p},46177:(c,T,t)=>{/** + */var d=t(91907),p=function(l){return l=l.toLowerCase(),l==="isometric"?d.ISOMETRIC:l==="staggered"?d.STAGGERED:l==="hexagonal"?d.HEXAGONAL:d.ORTHOGONAL};c.exports=p},46177:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(80341),p=t(2342),a=t(82593),r=t(46594),n=t(87021),e=function(s,l,i,o,u,h){var f;switch(l){case d.ARRAY_2D:f=p(s,i,o,u,h);break;case d.CSV:f=a(s,i,o,u,h);break;case d.TILED_JSON:f=r(s,i,h);break;case d.WELTMEISTER:f=n(s,i,h);break;default:console.warn("Unrecognized tilemap data format: "+l),f=null}return f};c.exports=e},2342:(c,T,t)=>{/** + */var d=t(80341),p=t(2342),l=t(82593),r=t(46594),n=t(87021),e=function(s,o,i,a,u,h){var f;switch(o){case d.ARRAY_2D:f=p(s,i,a,u,h);break;case d.CSV:f=l(s,i,a,u,h);break;case d.TILED_JSON:f=r(s,i,h);break;case d.WELTMEISTER:f=n(s,i,h);break;default:console.warn("Unrecognized tilemap data format: "+o),f=null}return f};c.exports=e},2342:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(80341),p=t(14977),a=t(87010),r=t(23029),n=function(e,s,l,i,o){for(var u=new p({tileWidth:l,tileHeight:i}),h=new a({name:e,tileWidth:l,tileHeight:i,format:d.ARRAY_2D,layers:[u]}),f=[],v=s.length,m=0,x=0;x{/** + */var d=t(80341),p=t(14977),l=t(87010),r=t(23029),n=function(e,s,o,i,a){for(var u=new p({tileWidth:o,tileHeight:i}),h=new l({name:e,tileWidth:o,tileHeight:i,format:d.ARRAY_2D,layers:[u]}),f=[],v=s.length,m=0,g=0;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(80341),p=t(2342),a=function(r,n,e,s,l){var i=n.trim().split(` -`).map(function(u){return u.split(",")}),o=p(r,i,e,s,l);return o.format=d.CSV,o};c.exports=a},6656:(c,T,t)=>{/** + */var d=t(80341),p=t(2342),l=function(r,n,e,s,o){var i=n.trim().split(` +`).map(function(u){return u.split(",")}),a=p(r,i,e,s,o);return a.format=d.CSV,a};c.exports=l},6656:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(14977),p=t(23029),a=function(r,n){for(var e=[],s=0;s-1?m=new p(i,v,f,h,l.tilesize,l.tilesize):m=n?null:new p(i,-1,f,h,l.tilesize,l.tilesize),o.push(m)}u.push(o),o=[]}i.data=u,e.push(i)}return e};c.exports=a},96483:(c,T,t)=>{/** + */var d=t(14977),p=t(23029),l=function(r,n){for(var e=[],s=0;s-1?m=new p(i,v,f,h,o.tilesize,o.tilesize):m=n?null:new p(i,-1,f,h,o.tilesize,o.tilesize),a.push(m)}u.push(a),a=[]}i.data=u,e.push(i)}return e};c.exports=l},96483:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(33629),p=function(a){for(var r=[],n=[],e=0;e{/** + */var d=t(33629),p=function(l){for(var r=[],n=[],e=0;e{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(80341),p=t(87010),a=t(6656),r=t(96483),n=function(e,s,l){if(s.layer.length===0)return console.warn("No layers found in the Weltmeister map: "+e),null;for(var i=0,o=0,u=0;ui&&(i=s.layer[u].width),s.layer[u].height>o&&(o=s.layer[u].height);var h=new p({width:i,height:o,name:e,tileWidth:s.layer[0].tilesize,tileHeight:s.layer[0].tilesize,format:d.WELTMEISTER});return h.layers=a(s,l),h.tilesets=r(s),h};c.exports=n},52833:(c,T,t)=>{/** + */var d=t(80341),p=t(87010),l=t(6656),r=t(96483),n=function(e,s,o){if(s.layer.length===0)return console.warn("No layers found in the Weltmeister map: "+e),null;for(var i=0,a=0,u=0;ui&&(i=s.layer[u].width),s.layer[u].height>a&&(a=s.layer[u].height);var h=new p({width:i,height:a,name:e,tileWidth:s.layer[0].tilesize,tileHeight:s.layer[0].tilesize,format:d.WELTMEISTER});return h.layers=l(s,o),h.tilesets=r(s),h};c.exports=n},52833:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -5821,51 +5821,51 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(79291),p=function(a){for(var r,n,e,s,l,i=0;i{/** + */var d=t(79291),p=function(l){for(var r,n,e,s,o,i=0;i{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t){for(var d=window.atob(t),p=d.length,a=new Array(p/4),r=0;r>>0;return a};c.exports=T},84101:(c,T,t)=>{/** + */var T=function(t){for(var d=window.atob(t),p=d.length,l=new Array(p/4),r=0;r>>0;return l};c.exports=T},84101:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(33629),p=function(a){var r,n,e=[];for(r=0;r{/** + */var d=t(33629),p=function(l){var r,n,e=[];for(r=0;r{/** * @author Seth Berrier * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(95540),p=function(a,r,n){if(!r)return{i:0,layers:a.layers,name:"",opacity:1,visible:!0,x:0,y:0};var e=r.x+d(r,"startx",0)*a.tilewidth+d(r,"offsetx",0),s=r.y+d(r,"starty",0)*a.tileheight+d(r,"offsety",0);return{i:0,layers:r.layers,name:n.name+r.name+"/",opacity:n.opacity*r.opacity,visible:n.visible&&r.visible,x:n.x+e,y:n.y+s}};c.exports=p},29920:c=>{/** + */var d=t(95540),p=function(l,r,n){if(!r)return{i:0,layers:l.layers,name:"",opacity:1,visible:!0,x:0,y:0};var e=r.x+d(r,"startx",0)*l.tilewidth+d(r,"offsetx",0),s=r.y+d(r,"starty",0)*l.tileheight+d(r,"offsety",0);return{i:0,layers:r.layers,name:n.name+r.name+"/",opacity:n.opacity*r.opacity,visible:n.visible&&r.visible,x:n.x+e,y:n.y+s}};c.exports=p},29920:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=2147483648,t=1073741824,d=536870912,p=function(a){var r=!!(a&T),n=!!(a&t),e=!!(a&d);a=a&~(T|t|d);var s=0,l=!1;return r&&n&&e?(s=Math.PI/2,l=!0):r&&n&&!e?(s=Math.PI,l=!1):r&&!n&&e?(s=Math.PI/2,l=!1):r&&!n&&!e?(s=0,l=!0):!r&&n&&e?(s=3*Math.PI/2,l=!1):!r&&n&&!e?(s=Math.PI,l=!0):!r&&!n&&e?(s=3*Math.PI/2,l=!0):!r&&!n&&!e&&(s=0,l=!1),{gid:a,flippedHorizontal:r,flippedVertical:n,flippedAntiDiagonal:e,rotation:s,flipped:l}};c.exports=p},12635:(c,T,t)=>{/** + */var T=2147483648,t=1073741824,d=536870912,p=function(l){var r=!!(l&T),n=!!(l&t),e=!!(l&d);l=l&~(T|t|d);var s=0,o=!1;return r&&n&&e?(s=Math.PI/2,o=!0):r&&n&&!e?(s=Math.PI,o=!1):r&&!n&&e?(s=Math.PI/2,o=!1):r&&!n&&!e?(s=0,o=!0):!r&&n&&e?(s=3*Math.PI/2,o=!1):!r&&n&&!e?(s=Math.PI,o=!0):!r&&!n&&e?(s=3*Math.PI/2,o=!0):!r&&!n&&!e&&(s=0,o=!1),{gid:l,flippedHorizontal:r,flippedVertical:n,flippedAntiDiagonal:e,rotation:s,flipped:o}};c.exports=p},12635:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(95540),p=t(79677),a=function(r){for(var n=[],e=[],s=p(r);s.i0;){if(s.i>=s.layers.length){if(e.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}s=e.pop();continue}var l=s.layers[s.i];if(s.i++,l.type!=="imagelayer"){if(l.type==="group"){var i=p(r,l,s);e.push(s),s=i}continue}var o=d(l,"offsetx",0)+d(l,"startx",0),u=d(l,"offsety",0)+d(l,"starty",0);n.push({name:s.name+l.name,image:l.image,x:s.x+o+l.x,y:s.y+u+l.y,alpha:s.opacity*l.opacity,visible:s.visible&&l.visible,properties:d(l,"properties",{})})}return n};c.exports=a},46594:(c,T,t)=>{/** + */var d=t(95540),p=t(79677),l=function(r){for(var n=[],e=[],s=p(r);s.i0;){if(s.i>=s.layers.length){if(e.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}s=e.pop();continue}var o=s.layers[s.i];if(s.i++,o.type!=="imagelayer"){if(o.type==="group"){var i=p(r,o,s);e.push(s),s=i}continue}var a=d(o,"offsetx",0)+d(o,"startx",0),u=d(o,"offsety",0)+d(o,"starty",0);n.push({name:s.name+o.name,image:o.image,x:s.x+a+o.x,y:s.y+u+o.y,alpha:s.opacity*o.opacity,visible:s.visible&&o.visible,properties:d(o,"properties",{})})}return n};c.exports=l},46594:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(51233),p=t(84101),a=t(91907),r=t(62644),n=t(80341),e=t(6641),s=t(87010),l=t(12635),i=t(22611),o=t(28200),u=t(24619),h=function(f,v,m){var x=r(v),g=new s({width:x.width,height:x.height,name:f,tileWidth:x.tilewidth,tileHeight:x.tileheight,orientation:e(x.orientation),format:n.TILED_JSON,version:x.version,properties:x.properties,renderOrder:x.renderorder,infinite:x.infinite});g.orientation===a.HEXAGONAL&&(g.hexSideLength=x.hexsidelength,g.staggerAxis=x.staggeraxis,g.staggerIndex=x.staggerindex),g.layers=o(x,m),g.images=l(x);var y=u(x);return g.tilesets=y.tilesets,g.imageCollections=y.imageCollections,g.objects=i(x),g.tiles=p(g),d(g),g};c.exports=h},52205:(c,T,t)=>{/** + */var d=t(51233),p=t(84101),l=t(91907),r=t(62644),n=t(80341),e=t(6641),s=t(87010),o=t(12635),i=t(22611),a=t(28200),u=t(24619),h=function(f,v,m){var g=r(v),x=new s({width:g.width,height:g.height,name:f,tileWidth:g.tilewidth,tileHeight:g.tileheight,orientation:e(g.orientation),format:n.TILED_JSON,version:g.version,properties:g.properties,renderOrder:g.renderorder,infinite:g.infinite});x.orientation===l.HEXAGONAL&&(x.hexSideLength=g.hexsidelength,x.staggerAxis=g.staggeraxis,x.staggerIndex=g.staggerindex),x.layers=a(g,m),x.images=o(g);var y=u(g);return x.tilesets=y.tilesets,x.imageCollections=y.imageCollections,x.objects=i(g),x.tiles=p(x),d(x),x};c.exports=h},52205:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(18254),p=t(29920),a=function(e){return{x:e.x,y:e.y}},r=["id","name","type","rotation","properties","visible","x","y","width","height"],n=function(e,s,l){s===void 0&&(s=0),l===void 0&&(l=0);var i=d(e,r);if(i.x+=s,i.y+=l,e.gid){var o=p(e.gid);i.gid=o.gid,i.flippedHorizontal=o.flippedHorizontal,i.flippedVertical=o.flippedVertical,i.flippedAntiDiagonal=o.flippedAntiDiagonal}else e.polyline?i.polyline=e.polyline.map(a):e.polygon?i.polygon=e.polygon.map(a):e.ellipse?i.ellipse=e.ellipse:e.text?i.text=e.text:e.point?i.point=!0:i.rectangle=!0;return i};c.exports=n},22611:(c,T,t)=>{/** + */var d=t(18254),p=t(29920),l=function(e){return{x:e.x,y:e.y}},r=["id","name","type","rotation","properties","visible","x","y","width","height"],n=function(e,s,o){s===void 0&&(s=0),o===void 0&&(o=0);var i=d(e,r);if(i.x+=s,i.y+=o,e.gid){var a=p(e.gid);i.gid=a.gid,i.flippedHorizontal=a.flippedHorizontal,i.flippedVertical=a.flippedVertical,i.flippedAntiDiagonal=a.flippedAntiDiagonal}else e.polyline?i.polyline=e.polyline.map(l):e.polygon?i.polygon=e.polygon.map(l):e.ellipse?i.ellipse=e.ellipse:e.text?i.text=e.text:e.point?i.point=!0:i.rectangle=!0;return i};c.exports=n},22611:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(95540),p=t(52205),a=t(48700),r=t(79677),n=function(e){for(var s=[],l=[],i=r(e);i.i0;){if(i.i>=i.layers.length){if(l.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}i=l.pop();continue}var o=i.layers[i.i];if(i.i++,o.opacity*=i.opacity,o.visible=i.visible&&o.visible,o.type!=="objectgroup"){if(o.type==="group"){var u=r(e,o,i);l.push(i),i=u}continue}o.name=i.name+o.name;for(var h=i.x+d(o,"startx",0)+d(o,"offsetx",0),f=i.y+d(o,"starty",0)+d(o,"offsety",0),v=[],m=0;m{/** + */var d=t(95540),p=t(52205),l=t(48700),r=t(79677),n=function(e){for(var s=[],o=[],i=r(e);i.i0;){if(i.i>=i.layers.length){if(o.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}i=o.pop();continue}var a=i.layers[i.i];if(i.i++,a.opacity*=i.opacity,a.visible=i.visible&&a.visible,a.type!=="objectgroup"){if(a.type==="group"){var u=r(e,a,i);o.push(i),i=u}continue}a.name=i.name+a.name;for(var h=i.x+d(a,"startx",0)+d(a,"offsetx",0),f=i.y+d(a,"starty",0)+d(a,"offsety",0),v=[],m=0;m{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(41868),p=t(91907),a=t(79677),r=t(6641),n=t(95540),e=t(14977),s=t(29920),l=t(23029),i=function(o,u){for(var h=n(o,"infinite",!1),f=[],v=[],m=a(o);m.i0;){if(m.i>=m.layers.length){if(v.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}m=v.pop();continue}var x=m.layers[m.i];if(m.i++,x.type!=="tilelayer"){if(x.type==="group"){var g=a(o,x,m);v.push(m),m=g}continue}if(x.compression){console.warn("TilemapParser.parseTiledJSON - Layer compression is unsupported, skipping layer '"+x.name+"'");continue}else if(x.encoding&&x.encoding==="base64"){if(x.chunks)for(var y=0;y0?(E=new l(S,C.gid,w,G,o.tilewidth,o.tileheight),E.rotation=C.rotation,E.flipX=C.flipped,P[G][w]=E):(A=u?null:new l(S,-1,w,G,o.tilewidth,o.tileheight),P[G][w]=A),M++,M===N.width&&(I++,M=0)}}else{S=new e({name:m.name+x.name,id:x.id,x:m.x+n(x,"offsetx",0)+x.x,y:m.y+n(x,"offsety",0)+x.y,width:x.width,height:x.height,tileWidth:o.tilewidth,tileHeight:o.tileheight,alpha:m.opacity*x.opacity,visible:m.visible&&x.visible,properties:n(x,"properties",[]),orientation:r(o.orientation)}),S.orientation===p.HEXAGONAL&&(S.hexSideLength=o.hexsidelength,S.staggerAxis=o.staggeraxis,S.staggerIndex=o.staggerindex);for(var U=[],z=0,V=x.data.length;z0?(E=new l(S,C.gid,M,P.length,o.tilewidth,o.tileheight),E.rotation=C.rotation,E.flipX=C.flipped,U.push(E)):(A=u?null:new l(S,-1,M,P.length,o.tilewidth,o.tileheight),U.push(A)),M++,M===x.width&&(P.push(U),M=0,U=[])}S.data=P,f.push(S)}return f};c.exports=i},24619:(c,T,t)=>{/** + */var d=t(41868),p=t(91907),l=t(79677),r=t(6641),n=t(95540),e=t(14977),s=t(29920),o=t(23029),i=function(a,u){for(var h=n(a,"infinite",!1),f=[],v=[],m=l(a);m.i0;){if(m.i>=m.layers.length){if(v.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}m=v.pop();continue}var g=m.layers[m.i];if(m.i++,g.type!=="tilelayer"){if(g.type==="group"){var x=l(a,g,m);v.push(m),m=x}continue}if(g.compression){console.warn("TilemapParser.parseTiledJSON - Layer compression is unsupported, skipping layer '"+g.name+"'");continue}else if(g.encoding&&g.encoding==="base64"){if(g.chunks)for(var y=0;y0?(E=new o(S,C.gid,I,U,a.tilewidth,a.tileheight),E.rotation=C.rotation,E.flipX=C.flipped,P[U][I]=E):(M=u?null:new o(S,-1,I,U,a.tilewidth,a.tileheight),P[U][I]=M),A++,A===G.width&&(B++,A=0)}}else{S=new e({name:m.name+g.name,id:g.id,x:m.x+n(g,"offsetx",0)+g.x,y:m.y+n(g,"offsety",0)+g.y,width:g.width,height:g.height,tileWidth:a.tilewidth,tileHeight:a.tileheight,alpha:m.opacity*g.opacity,visible:m.visible&&g.visible,properties:n(g,"properties",[]),orientation:r(a.orientation)}),S.orientation===p.HEXAGONAL&&(S.hexSideLength=a.hexsidelength,S.staggerAxis=a.staggeraxis,S.staggerIndex=a.staggerindex);for(var X=[],z=0,V=g.data.length;z0?(E=new o(S,C.gid,A,P.length,a.tilewidth,a.tileheight),E.rotation=C.rotation,E.flipX=C.flipped,X.push(E)):(M=u?null:new o(S,-1,A,P.length,a.tilewidth,a.tileheight),X.push(M)),A++,A===g.width&&(P.push(X),A=0,X=[])}S.data=P,f.push(S)}return f};c.exports=i},24619:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(33629),p=t(16536),a=t(52205),r=t(57880),n=function(e){for(var s=[],l=[],i=null,o,u=0;u1){var v=void 0,m=void 0;if(Array.isArray(h.tiles)){v=v||{},m=m||{};for(var x=0;x{/** + */var d=t(33629),p=t(16536),l=t(52205),r=t(57880),n=function(e){for(var s=[],o=[],i=null,a,u=0;u1){var v=void 0,m=void 0;if(Array.isArray(h.tiles)){v=v||{},m=m||{};for(var g=0;g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d){for(var p=0;p0){var n={},e={},s,l,i;if(Array.isArray(a.edgecolors))for(s=0;s{/** + */var T=function(t,d){for(var p=0;p0){var n={},e={},s,o,i;if(Array.isArray(l.edgecolors))for(s=0;s{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -5873,15 +5873,15 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(37277),a=t(44594),r=t(94880),n=t(72905),e=new d({initialize:function(l){this.scene=l,this.systems=l.sys,this.now=0,this.startTime=0,this.timeScale=1,this.paused=!1,this._active=[],this._pendingInsertion=[],this._pendingRemoval=[],l.sys.events.once(a.BOOT,this.boot,this),l.sys.events.on(a.START,this.start,this)},boot:function(){this.now=this.systems.game.loop.time,this.systems.events.once(a.DESTROY,this.destroy,this)},start:function(){this.startTime=this.systems.game.loop.time;var s=this.systems.events;s.on(a.PRE_UPDATE,this.preUpdate,this),s.on(a.UPDATE,this.update,this),s.once(a.SHUTDOWN,this.shutdown,this)},addEvent:function(s){var l;return s instanceof r?(l=s,this.removeEvent(l),l.elapsed=l.startAt,l.hasDispatched=!1,l.repeatCount=l.repeat===-1||l.loop?999999999999:l.repeat):l=new r(s),this._pendingInsertion.push(l),l},delayedCall:function(s,l,i,o){return this.addEvent({delay:s,callback:l,args:i,callbackScope:o})},clearPendingEvents:function(){return this._pendingInsertion=[],this},removeEvent:function(s){Array.isArray(s)||(s=[s]);for(var l=0;l-1&&this._active.splice(u,1),o.destroy()}for(i=0;i=o.delay)){var u=o.elapsed-o.delay;if(o.elapsed=o.delay,!o.hasDispatched&&o.callback&&(o.hasDispatched=!0,o.callback.apply(o.callbackScope,o.args)),o.repeatCount>0){if(o.repeatCount--,u>=o.delay)for(;u>=o.delay&&o.repeatCount>0;)o.callback&&o.callback.apply(o.callbackScope,o.args),u-=o.delay,o.repeatCount--;o.elapsed=u,o.hasDispatched=!1}else o.hasDispatched&&this._pendingRemoval.push(o)}}}},shutdown:function(){var s;for(s=0;s{/** + */var d=t(83419),p=t(37277),l=t(44594),r=t(94880),n=t(72905),e=new d({initialize:function(o){this.scene=o,this.systems=o.sys,this.now=0,this.startTime=0,this.timeScale=1,this.paused=!1,this._active=[],this._pendingInsertion=[],this._pendingRemoval=[],o.sys.events.once(l.BOOT,this.boot,this),o.sys.events.on(l.START,this.start,this)},boot:function(){this.now=this.systems.game.loop.time,this.systems.events.once(l.DESTROY,this.destroy,this)},start:function(){this.startTime=this.systems.game.loop.time;var s=this.systems.events;s.on(l.PRE_UPDATE,this.preUpdate,this),s.on(l.UPDATE,this.update,this),s.once(l.SHUTDOWN,this.shutdown,this)},addEvent:function(s){var o;return s instanceof r?(o=s,this.removeEvent(o),o.elapsed=o.startAt,o.hasDispatched=!1,o.repeatCount=o.repeat===-1||o.loop?999999999999:o.repeat):o=new r(s),this._pendingInsertion.push(o),o},delayedCall:function(s,o,i,a){return this.addEvent({delay:s,callback:o,args:i,callbackScope:a})},clearPendingEvents:function(){return this._pendingInsertion=[],this},removeEvent:function(s){Array.isArray(s)||(s=[s]);for(var o=0;o-1&&this._active.splice(u,1),a.destroy()}for(i=0;i=a.delay)){var u=a.elapsed-a.delay;if(a.elapsed=a.delay,!a.hasDispatched&&a.callback&&(a.hasDispatched=!0,a.callback.apply(a.callbackScope,a.args)),a.repeatCount>0){if(a.repeatCount--,u>=a.delay)for(;u>=a.delay&&a.repeatCount>0;)a.callback&&a.callback.apply(a.callbackScope,a.args),u-=a.delay,a.repeatCount--;a.elapsed=u,a.hasDispatched=!1}else a.hasDispatched&&this._pendingRemoval.push(a)}}}},shutdown:function(){var s;for(s=0;s{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(50792),a=t(39429),r=t(95540),n=t(44594),e=t(89809),s=new d({Extends:p,initialize:function(i,o){p.call(this),this.scene=i,this.systems=i.sys,this.elapsed=0,this.paused=!0,this.complete=!1,this.totalComplete=0,this.loop=0,this.iteration=0,this.events=[];var u=this.systems.events;u.on(n.PRE_UPDATE,this.preUpdate,this),u.on(n.UPDATE,this.update,this),u.once(n.SHUTDOWN,this.destroy,this),o&&this.add(o)},preUpdate:function(l,i){this.paused||(this.elapsed+=i)},update:function(){if(!(this.paused||this.complete)){var l,i=this.events,o=!1,u=this.systems,h;for(l=0;l=i.length&&(this.loop!==0&&(this.loop===-1||this.loop>this.iteration)?(this.iteration++,this.reset(!0)):this.complete=!0),this.complete&&this.emit(e.COMPLETE,this)}},play:function(l){return l===void 0&&(l=!0),this.paused=!1,this.complete=!1,this.totalComplete=0,l&&this.reset(),this},pause:function(){return this.paused=!0,this},repeat:function(l){return(l===void 0||l===!0)&&(l=-1),l===!1&&(l=0),this.loop=l,this},resume:function(){return this.paused=!1,this},stop:function(){return this.paused=!0,this.complete=!0,this},reset:function(l){l===void 0&&(l=!1),this.elapsed=0,l||(this.iteration=0);for(var i=0;i0&&(o=i[i.length-1].time);for(var u=0;u{/** + */var d=t(83419),p=t(50792),l=t(39429),r=t(95540),n=t(44594),e=t(89809),s=new d({Extends:p,initialize:function(i,a){p.call(this),this.scene=i,this.systems=i.sys,this.elapsed=0,this.timeScale=1,this.paused=!0,this.complete=!1,this.totalComplete=0,this.loop=0,this.iteration=0,this.events=[];var u=this.systems.events;u.on(n.PRE_UPDATE,this.preUpdate,this),u.on(n.UPDATE,this.update,this),u.once(n.SHUTDOWN,this.destroy,this),a&&this.add(a)},preUpdate:function(o,i){this.paused||(this.elapsed+=i*this.timeScale)},update:function(){if(!(this.paused||this.complete)){var o,i=this.events,a=!1,u=this.systems,h;for(o=0;o=i.length&&(this.loop!==0&&(this.loop===-1||this.loop>this.iteration)?(this.iteration++,this.reset(!0)):this.complete=!0),this.complete&&this.emit(e.COMPLETE,this)}},play:function(o){return o===void 0&&(o=!0),this.paused=!1,this.complete=!1,this.totalComplete=0,o&&this.reset(),this},pause:function(){this.paused=!0;for(var o=this.events,i=0;i0&&(a=i[i.length-1].time);for(var u=0;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(95540),a=new d({initialize:function(n){this.delay=0,this.repeat=0,this.repeatCount=0,this.loop=!1,this.callback,this.callbackScope,this.args,this.timeScale=1,this.startAt=0,this.elapsed=0,this.paused=!1,this.hasDispatched=!1,this.reset(n)},reset:function(r){if(this.delay=p(r,"delay",0),this.repeat=p(r,"repeat",0),this.loop=p(r,"loop",!1),this.callback=p(r,"callback",void 0),this.callbackScope=p(r,"callbackScope",this),this.args=p(r,"args",[]),this.timeScale=p(r,"timeScale",1),this.startAt=p(r,"startAt",0),this.paused=p(r,"paused",!1),this.elapsed=this.startAt,this.hasDispatched=!1,this.repeatCount=this.repeat===-1||this.loop?999999999999:this.repeat,this.delay===0&&(this.repeat>0||this.loop))throw new Error("TimerEvent infinite loop created via zero delay");return this},getProgress:function(){return this.elapsed/this.delay},getOverallProgress:function(){if(this.repeat>0){var r=this.delay+this.delay*this.repeat,n=this.elapsed+this.delay*(this.repeat-this.repeatCount);return n/r}else return this.getProgress()},getRepeatCount:function(){return this.repeatCount},getElapsed:function(){return this.elapsed},getElapsedSeconds:function(){return this.elapsed*.001},getRemaining:function(){return this.delay-this.elapsed},getRemainingSeconds:function(){return this.getRemaining()*.001},getOverallRemaining:function(){return this.delay*(1+this.repeatCount)-this.elapsed},getOverallRemainingSeconds:function(){return this.getOverallRemaining()*.001},remove:function(r){r===void 0&&(r=!1),this.elapsed=this.delay,this.hasDispatched=!r,this.repeatCount=0},destroy:function(){this.callback=void 0,this.callbackScope=void 0,this.args=[]}});c.exports=a},35945:c=>{/** + */var d=t(83419),p=t(95540),l=new d({initialize:function(n){this.delay=0,this.repeat=0,this.repeatCount=0,this.loop=!1,this.callback,this.callbackScope,this.args,this.timeScale=1,this.startAt=0,this.elapsed=0,this.paused=!1,this.hasDispatched=!1,this.reset(n)},reset:function(r){if(this.delay=p(r,"delay",0),this.repeat=p(r,"repeat",0),this.loop=p(r,"loop",!1),this.callback=p(r,"callback",void 0),this.callbackScope=p(r,"callbackScope",this),this.args=p(r,"args",[]),this.timeScale=p(r,"timeScale",1),this.startAt=p(r,"startAt",0),this.paused=p(r,"paused",!1),this.elapsed=this.startAt,this.hasDispatched=!1,this.repeatCount=this.repeat===-1||this.loop?999999999999:this.repeat,this.delay===0&&(this.repeat>0||this.loop))throw new Error("TimerEvent infinite loop created via zero delay");return this},getProgress:function(){return this.elapsed/this.delay},getOverallProgress:function(){if(this.repeat>0){var r=this.delay+this.delay*this.repeat,n=this.elapsed+this.delay*(this.repeat-this.repeatCount);return n/r}else return this.getProgress()},getRepeatCount:function(){return this.repeatCount},getElapsed:function(){return this.elapsed},getElapsedSeconds:function(){return this.elapsed*.001},getRemaining:function(){return this.delay-this.elapsed},getRemainingSeconds:function(){return this.getRemaining()*.001},getOverallRemaining:function(){return this.delay*(1+this.repeatCount)-this.elapsed},getOverallRemainingSeconds:function(){return this.getOverallRemaining()*.001},remove:function(r){r===void 0&&(r=!1),this.elapsed=this.delay,this.hasDispatched=!r,this.repeatCount=0},destroy:function(){this.callback=void 0,this.callbackScope=void 0,this.args=[]}});c.exports=l},35945:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -5897,7 +5897,7 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(72905),p=t(83419),a=t(43491),r=t(88032),n=t(37277),e=t(44594),s=t(93109),l=t(86081),i=t(8357),o=t(43960),u=t(26012),h=new p({initialize:function(v){this.scene=v,this.events=v.sys.events,this.timeScale=1,this.paused=!1,this.processing=!1,this.tweens=[],this.time=0,this.startTime=0,this.nextTime=0,this.prevTime=0,this.maxLag=500,this.lagSkip=33,this.gap=1e3/240,this.events.once(e.BOOT,this.boot,this),this.events.on(e.START,this.start,this)},boot:function(){this.events.once(e.DESTROY,this.destroy,this)},start:function(){this.timeScale=1,this.paused=!1,this.startTime=Date.now(),this.prevTime=this.startTime,this.nextTime=this.gap,this.events.on(e.UPDATE,this.update,this),this.events.once(e.SHUTDOWN,this.shutdown,this)},create:function(f){Array.isArray(f)||(f=[f]);for(var v=[],m=0;m-1},existing:function(f){return this.has(f)||this.tweens.push(f.reset()),this},addCounter:function(f){var v=r(this,f);return this.tweens.push(v.reset()),v},stagger:function(f,v){return s(f,v)},setLagSmooth:function(f,v){return f===void 0&&(f=1/1e-8),v===void 0&&(v=0),this.maxLag=f,this.lagSkip=Math.min(v,this.maxLag),this},setFps:function(f){return f===void 0&&(f=240),this.gap=1e3/f,this.nextTime=this.time*1e3+this.gap,this},getDelta:function(f){var v=Date.now()-this.prevTime;v>this.maxLag&&(this.startTime+=v-this.lagSkip),this.prevTime+=v;var m=this.prevTime-this.startTime,x=m-this.nextTime,g=m-this.time*1e3;return x>0||f?(m/=1e3,this.time=m,this.nextTime+=x+(x>=this.gap?4:this.gap-x)):g=0,g},tick:function(){return this.step(!0),this},update:function(){this.paused||this.step(!1)},step:function(f){f===void 0&&(f=!1);var v=this.getDelta(f);if(!(v<=0)){this.processing=!0;var m,x,g=[],y=this.tweens;for(m=0;m0){for(m=0;m-1&&(x.isPendingRemove()||x.isDestroyed())&&(y.splice(C,1),x.destroy())}g.length=0}this.processing=!1}},remove:function(f){return this.processing?f.setPendingRemoveState():(d(this.tweens,f),f.setRemovedState()),this},reset:function(f){return this.existing(f),f.seek(),f.setActiveState(),this},makeActive:function(f){return this.existing(f),f.setActiveState(),this},each:function(f,v){var m,x=[null];for(m=1;m{/** + */var d=t(72905),p=t(83419),l=t(43491),r=t(88032),n=t(37277),e=t(44594),s=t(93109),o=t(86081),i=t(8357),a=t(43960),u=t(26012),h=new p({initialize:function(v){this.scene=v,this.events=v.sys.events,this.timeScale=1,this.paused=!1,this.processing=!1,this.tweens=[],this.time=0,this.startTime=0,this.nextTime=0,this.prevTime=0,this.maxLag=500,this.lagSkip=33,this.gap=1e3/240,this.events.once(e.BOOT,this.boot,this),this.events.on(e.START,this.start,this)},boot:function(){this.events.once(e.DESTROY,this.destroy,this)},start:function(){this.timeScale=1,this.paused=!1,this.startTime=Date.now(),this.prevTime=this.startTime,this.nextTime=this.gap,this.events.on(e.UPDATE,this.update,this),this.events.once(e.SHUTDOWN,this.shutdown,this)},create:function(f){Array.isArray(f)||(f=[f]);for(var v=[],m=0;m-1},existing:function(f){return this.has(f)||this.tweens.push(f.reset()),this},addCounter:function(f){var v=r(this,f);return this.tweens.push(v.reset()),v},stagger:function(f,v){return s(f,v)},setLagSmooth:function(f,v){return f===void 0&&(f=1/1e-8),v===void 0&&(v=0),this.maxLag=f,this.lagSkip=Math.min(v,this.maxLag),this},setFps:function(f){return f===void 0&&(f=240),this.gap=1e3/f,this.nextTime=this.time*1e3+this.gap,this},getDelta:function(f){var v=Date.now()-this.prevTime;v>this.maxLag&&(this.startTime+=v-this.lagSkip),this.prevTime+=v;var m=this.prevTime-this.startTime,g=m-this.nextTime,x=m-this.time*1e3;return g>0||f?(m/=1e3,this.time=m,this.nextTime+=g+(g>=this.gap?4:this.gap-g)):x=0,x},tick:function(){return this.step(!0),this},update:function(){this.paused||this.step(!1)},step:function(f){f===void 0&&(f=!1);var v=this.getDelta(f);if(!(v<=0)){this.processing=!0;var m,g,x=[],y=this.tweens;for(m=0;m0){for(m=0;m-1&&(g.isPendingRemove()||g.isDestroyed())&&(y.splice(C,1),g.destroy())}x.length=0}this.processing=!1}},remove:function(f){return this.processing?f.setPendingRemoveState():(d(this.tweens,f),f.setRemovedState()),this},reset:function(f){return this.existing(f),f.seek(),f.setActiveState(),this},makeActive:function(f){return this.existing(f),f.setActiveState(),this},each:function(f,v){var m,g=[null];for(m=1;m{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -5905,43 +5905,43 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(62640),p=t(35355),a=function(r,n){var e=d.Power0;if(typeof r=="string")if(d.hasOwnProperty(r))e=d[r];else{var s="";if(r.indexOf(".")){s=r.substring(r.indexOf(".")+1);var l=s.toLowerCase();l==="in"?s="easeIn":l==="out"?s="easeOut":l==="inout"&&(s="easeInOut")}r=p(r.substring(0,r.indexOf(".")+1)+s),d.hasOwnProperty(r)&&(e=d[r])}else typeof r=="function"&&(e=r);if(!n)return e;var i=n.slice(0);return i.unshift(0),function(o){return i[0]=o,e.apply(this,i)}};c.exports=a},91389:(c,T,t)=>{/** + */var d=t(62640),p=t(35355),l=function(r,n){var e=d.Power0;if(typeof r=="string")if(d.hasOwnProperty(r))e=d[r];else{var s="";if(r.indexOf(".")){s=r.substring(r.indexOf(".")+1);var o=s.toLowerCase();o==="in"?s="easeIn":o==="out"?s="easeOut":o==="inout"&&(s="easeInOut")}r=p(r.substring(0,r.indexOf(".")+1)+s),d.hasOwnProperty(r)&&(e=d[r])}else typeof r=="function"&&(e=r);if(!n)return e;var i=n.slice(0);return i.unshift(0),function(a){return i[0]=a,e.apply(this,i)}};c.exports=l},91389:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(89318),p=t(77259),a=t(28392),r={bezier:d,catmull:p,catmullrom:p,linear:a},n=function(e){if(e===null)return null;var s=r.linear;return typeof e=="string"?r.hasOwnProperty(e)&&(s=r[e]):typeof e=="function"&&(s=e),s};c.exports=n},55292:c=>{/** + */var d=t(89318),p=t(77259),l=t(28392),r={bezier:d,catmull:p,catmullrom:p,linear:l},n=function(e){if(e===null)return null;var s=r.linear;return typeof e=="string"?r.hasOwnProperty(e)&&(s=r[e]):typeof e=="function"&&(s=e),s};c.exports=n},55292:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){var a;if(t.hasOwnProperty(d)){var r=typeof t[d];r==="function"?a=function(n,e,s,l,i,o){return t[d](n,e,s,l,i,o)}:a=function(){return t[d]}}else typeof p=="function"?a=p:a=function(){return p};return a};c.exports=T},82985:(c,T,t)=>{/** + */var T=function(t,d,p){var l;if(t.hasOwnProperty(d)){var r=typeof t[d];r==="function"?l=function(n,e,s,o,i,a){return t[d](n,e,s,o,i,a)}:l=function(){return t[d]}}else typeof p=="function"?l=p:l=function(){return p};return l};c.exports=T},82985:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(81076),p=function(a){var r,n=[];if(a.hasOwnProperty("props"))for(r in a.props)r.substring(0,1)!=="_"&&n.push({key:r,value:a.props[r]});else for(r in a)d.indexOf(r)===-1&&r.substring(0,1)!=="_"&&n.push({key:r,value:a[r]});return n};c.exports=p},62329:(c,T,t)=>{/** + */var d=t(81076),p=function(l){var r,n=[];if(l.hasOwnProperty("props"))for(r in l.props)r.substring(0,1)!=="_"&&n.push({key:r,value:l.props[r]});else for(r in l)d.indexOf(r)===-1&&r.substring(0,1)!=="_"&&n.push({key:r,value:l[r]});return n};c.exports=p},62329:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(35154),p=function(a){var r=d(a,"targets",null);return r===null||(typeof r=="function"&&(r=r.call()),Array.isArray(r)||(r=[r])),r};c.exports=p},17777:(c,T,t)=>{/** + */var d=t(35154),p=function(l){var r=d(l,"targets",null);return r===null||(typeof r=="function"&&(r=r.call()),Array.isArray(r)||(r=[r])),r};c.exports=p},17777:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(30976),p=t(99472);function a(l){return!!l.getActive&&typeof l.getActive=="function"}function r(l){return!!l.getStart&&typeof l.getStart=="function"}function n(l){return!!l.getEnd&&typeof l.getEnd=="function"}function e(l){return r(l)||n(l)||a(l)}var s=function(l,i){var o,u=function(N,X,D){return D},h=function(N,X,D){return D},f=null,v=typeof i;if(v==="number")u=function(){return i};else if(Array.isArray(i))h=function(){return i[0]},u=function(){return i[i.length-1]};else if(v==="string"){var m=i.toLowerCase(),x=m.substring(0,6)==="random",g=m.substring(0,3)==="int";if(x||g){var y=m.indexOf("("),S=m.indexOf(")"),C=m.indexOf(",");if(y&&S&&C){var E=parseFloat(m.substring(y+1,C)),A=parseFloat(m.substring(C+1,S));x?u=function(){return p(E,A)}:u=function(){return d(E,A)}}else throw new Error("invalid random() format")}else{m=m[0];var P=parseFloat(i.substr(2));switch(m){case"+":u=function(N,X,D){return D+P};break;case"-":u=function(N,X,D){return D-P};break;case"*":u=function(N,X,D){return D*P};break;case"/":u=function(N,X,D){return D/P};break;default:u=function(){return parseFloat(i)}}}}else if(v==="function")u=i;else if(v==="object")if(e(i))a(i)&&(f=i.getActive),n(i)&&(u=i.getEnd),r(i)&&(h=i.getStart);else if(i.hasOwnProperty("value"))o=s(l,i.value);else{var M=i.hasOwnProperty("to"),F=i.hasOwnProperty("from"),L=i.hasOwnProperty("start");if(M&&(F||L)){if(o=s(l,i.to),L){var b=s(l,i.start);o.getActive=b.getEnd}if(F){var B=s(l,i.from);o.getStart=B.getEnd}}}return o||(o={getActive:f,getEnd:u,getStart:h}),o};c.exports=s},88032:(c,T,t)=>{/** + */var d=t(30976),p=t(99472);function l(o){return!!o.getActive&&typeof o.getActive=="function"}function r(o){return!!o.getStart&&typeof o.getStart=="function"}function n(o){return!!o.getEnd&&typeof o.getEnd=="function"}function e(o){return r(o)||n(o)||l(o)}var s=function(o,i){var a,u=function(G,N,b){return b},h=function(G,N,b){return b},f=null,v=typeof i;if(v==="number")u=function(){return i};else if(Array.isArray(i))h=function(){return i[0]},u=function(){return i[i.length-1]};else if(v==="string"){var m=i.toLowerCase(),g=m.substring(0,6)==="random",x=m.substring(0,3)==="int";if(g||x){var y=m.indexOf("("),S=m.indexOf(")"),C=m.indexOf(",");if(y&&S&&C){var E=parseFloat(m.substring(y+1,C)),M=parseFloat(m.substring(C+1,S));g?u=function(){return p(E,M)}:u=function(){return d(E,M)}}else throw new Error("invalid random() format")}else{m=m[0];var P=parseFloat(i.substr(2));switch(m){case"+":u=function(G,N,b){return b+P};break;case"-":u=function(G,N,b){return b-P};break;case"*":u=function(G,N,b){return b*P};break;case"/":u=function(G,N,b){return b/P};break;default:u=function(){return parseFloat(i)}}}}else if(v==="function")u=i;else if(v==="object")if(e(i))l(i)&&(f=i.getActive),n(i)&&(u=i.getEnd),r(i)&&(h=i.getStart);else if(i.hasOwnProperty("value"))a=s(o,i.value);else{var A=i.hasOwnProperty("to"),R=i.hasOwnProperty("from"),F=i.hasOwnProperty("start");if(A&&(R||F)){if(a=s(o,i.to),F){var D=s(o,i.start);a.getActive=D.getEnd}if(R){var w=s(o,i.from);a.getStart=w.getEnd}}}return a||(a={getActive:f,getEnd:u,getStart:h}),a};c.exports=s},88032:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(70402),p=t(69902),a=t(23568),r=t(57355),n=t(6113),e=t(55292),s=t(35154),l=t(17777),i=t(269),o=t(86081),u=function(h,f,v){if(f instanceof o)return f.parent=h,f;v===void 0?v=p:v=i(p,v);var m=s(f,"from",0),x=s(f,"to",1),g=[{value:m}],y=s(f,"delay",v.delay),S=s(f,"easeParams",v.easeParams),C=s(f,"ease",v.ease),E=l("value",x),A=new o(h,g),P=A.add(0,"value",E.getEnd,E.getStart,E.getActive,n(s(f,"ease",C),s(f,"easeParams",S)),e(f,"delay",y),s(f,"duration",v.duration),r(f,"yoyo",v.yoyo),s(f,"hold",v.hold),s(f,"repeat",v.repeat),s(f,"repeatDelay",v.repeatDelay),!1,!1);P.start=m,P.current=m,A.completeDelay=a(f,"completeDelay",0),A.loop=Math.round(a(f,"loop",0)),A.loopDelay=Math.round(a(f,"loopDelay",0)),A.paused=r(f,"paused",!1),A.persist=r(f,"persist",!1),A.callbackScope=s(f,"callbackScope",A);for(var M=d.TYPES,F=0;F{/** + */var d=t(70402),p=t(69902),l=t(23568),r=t(57355),n=t(6113),e=t(55292),s=t(35154),o=t(17777),i=t(269),a=t(86081),u=function(h,f,v){if(f instanceof a)return f.parent=h,f;v===void 0?v=p:v=i(p,v);var m=s(f,"from",0),g=s(f,"to",1),x=[{value:m}],y=s(f,"delay",v.delay),S=s(f,"easeParams",v.easeParams),C=s(f,"ease",v.ease),E=o("value",g),M=new a(h,x),P=M.add(0,"value",E.getEnd,E.getStart,E.getActive,n(s(f,"ease",C),s(f,"easeParams",S)),e(f,"delay",y),s(f,"duration",v.duration),r(f,"yoyo",v.yoyo),s(f,"hold",v.hold),s(f,"repeat",v.repeat),s(f,"repeatDelay",v.repeatDelay),!1,!1);P.start=m,P.current=m,M.completeDelay=l(f,"completeDelay",0),M.loop=Math.round(l(f,"loop",0)),M.loopDelay=Math.round(l(f,"loopDelay",0)),M.paused=r(f,"paused",!1),M.persist=r(f,"persist",!1),M.callbackScope=s(f,"callbackScope",M);for(var A=d.TYPES,R=0;R{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(6113),p=t(35154),a=t(36383),r=function(n,e){e===void 0&&(e={});var s,l=p(e,"start",0),i=p(e,"ease",null),o=p(e,"grid",null),u=p(e,"from",0),h=u==="first",f=u==="center",v=u==="last",m=typeof u=="number",x=Array.isArray(n),g=parseFloat(x?n[0]:n),y=x?parseFloat(n[1]):0,S=Math.max(g,y);if(x&&(l+=g),o){var C=o[0],E=o[1],A=0,P=0,M=0,F=0,L=[];v?(A=C-1,P=E-1):m?(A=u%C,P=Math.floor(u/C)):f&&(A=(C-1)/2,P=(E-1)/2);for(var b=a.MIN_SAFE_INTEGER,B=0;Bb&&(b=X),L[B][N]=X}}}var D=i?d(i):null;return o?s=function(I,R,O,w){var G=0,U=w%C,z=Math.floor(w/C);U>=0&&U=0&&z{/** + */var d=t(6113),p=t(35154),l=t(36383),r=function(n,e){e===void 0&&(e={});var s,o=p(e,"start",0),i=p(e,"ease",null),a=p(e,"grid",null),u=p(e,"from",0),h=u==="first",f=u==="center",v=u==="last",m=typeof u=="number",g=Array.isArray(n),x=parseFloat(g?n[0]:n),y=g?parseFloat(n[1]):0,S=Math.max(x,y);if(g&&(o+=x),a){var C=a[0],E=a[1],M=0,P=0,A=0,R=0,F=[];v?(M=C-1,P=E-1):m?(M=u%C,P=Math.floor(u/C)):f&&(M=(C-1)/2,P=(E-1)/2);for(var D=l.MIN_SAFE_INTEGER,w=0;wD&&(D=N),F[w][G]=N}}}var b=i?d(i):null;return a?s=function(B,O,L,I){var U=0,X=I%C,z=Math.floor(I/C);X>=0&&X=0&&z{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(70402),p=t(69902),a=t(23568),r=t(57355),n=t(6113),e=t(91389),s=t(55292),l=t(82985),i=t(62329),o=t(35154),u=t(17777),h=t(269),f=t(86081),v=function(m,x,g){if(x instanceof f)return x.parent=m,x;g===void 0?g=p:g=h(p,g);var y=i(x);!y&&g.targets&&(y=g.targets);for(var S=l(x),C=o(x,"delay",g.delay),E=o(x,"duration",g.duration),A=o(x,"easeParams",g.easeParams),P=o(x,"ease",g.ease),M=o(x,"hold",g.hold),F=o(x,"repeat",g.repeat),L=o(x,"repeatDelay",g.repeatDelay),b=r(x,"yoyo",g.yoyo),B=r(x,"flipX",g.flipX),N=r(x,"flipY",g.flipY),X=o(x,"interpolation",g.interpolation),D=function(H,K,Q,Z){if(Q==="texture"){var _=Z,rt=void 0;Array.isArray(Z)?(_=Z[0],rt=Z[1]):Z.hasOwnProperty("value")?(_=Z.value,Array.isArray(Z.value)?(_=Z.value[0],rt=Z.value[1]):typeof Z.value=="string"&&(_=Z.value)):typeof Z=="string"&&(_=Z),H.addFrame(K,_,rt,s(Z,"delay",C),o(Z,"duration",E),o(Z,"hold",M),o(Z,"repeat",F),o(Z,"repeatDelay",L),r(Z,"flipX",B),r(Z,"flipY",N))}else{var ot=u(Q,Z),at=e(o(Z,"interpolation",X));H.add(K,Q,ot.getEnd,ot.getStart,ot.getActive,n(o(Z,"ease",P),o(Z,"easeParams",A)),s(Z,"delay",C),o(Z,"duration",E),r(Z,"yoyo",b),o(Z,"hold",M),o(Z,"repeat",F),o(Z,"repeatDelay",L),r(Z,"flipX",B),r(Z,"flipY",N),at,at?Z:null)}},I=new f(m,y),R=0;R{/** + */var d=t(70402),p=t(69902),l=t(23568),r=t(57355),n=t(6113),e=t(91389),s=t(55292),o=t(82985),i=t(62329),a=t(35154),u=t(17777),h=t(269),f=t(86081),v=function(m,g,x){if(g instanceof f)return g.parent=m,g;x===void 0?x=p:x=h(p,x);var y=i(g);!y&&x.targets&&(y=x.targets);for(var S=o(g),C=a(g,"delay",x.delay),E=a(g,"duration",x.duration),M=a(g,"easeParams",x.easeParams),P=a(g,"ease",x.ease),A=a(g,"hold",x.hold),R=a(g,"repeat",x.repeat),F=a(g,"repeatDelay",x.repeatDelay),D=r(g,"yoyo",x.yoyo),w=r(g,"flipX",x.flipX),G=r(g,"flipY",x.flipY),N=a(g,"interpolation",x.interpolation),b=function(H,K,j,Z){if(j==="texture"){var _=Z,rt=void 0;Array.isArray(Z)?(_=Z[0],rt=Z[1]):Z.hasOwnProperty("value")?(_=Z.value,Array.isArray(Z.value)?(_=Z.value[0],rt=Z.value[1]):typeof Z.value=="string"&&(_=Z.value)):typeof Z=="string"&&(_=Z),H.addFrame(K,_,rt,s(Z,"delay",C),a(Z,"duration",E),a(Z,"hold",A),a(Z,"repeat",R),a(Z,"repeatDelay",F),r(Z,"flipX",w),r(Z,"flipY",G))}else{var at=u(j,Z),ot=e(a(Z,"interpolation",N));H.add(K,j,at.getEnd,at.getStart,at.getActive,n(a(Z,"ease",P),a(Z,"easeParams",M)),s(Z,"delay",C),a(Z,"duration",E),r(Z,"yoyo",D),a(Z,"hold",A),a(Z,"repeat",R),a(Z,"repeatDelay",F),r(Z,"flipX",w),r(Z,"flipY",G),ot,ot?Z:null)}},B=new f(m,y),O=0;O{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(70402),p=t(23568),a=t(57355),r=t(62329),n=t(35154),e=t(8357),s=t(43960),l=function(i,o){if(o instanceof s)return o.parent=i,o;var u=new s(i);u.startDelay=n(o,"delay",0),u.completeDelay=p(o,"completeDelay",0),u.loop=Math.round(p(o,"loop",n(o,"repeat",0))),u.loopDelay=Math.round(p(o,"loopDelay",n(o,"repeatDelay",0))),u.paused=a(o,"paused",!1),u.persist=a(o,"persist",!1),u.callbackScope=n(o,"callbackScope",u);var h,f=d.TYPES;for(h=0;h{/** + */var d=t(70402),p=t(23568),l=t(57355),r=t(62329),n=t(35154),e=t(8357),s=t(43960),o=function(i,a){if(a instanceof s)return a.parent=i,a;var u=new s(i);u.startDelay=n(a,"delay",0),u.completeDelay=p(a,"completeDelay",0),u.loop=Math.round(p(a,"loop",n(a,"repeat",0))),u.loopDelay=Math.round(p(a,"loopDelay",n(a,"repeatDelay",0))),u.paused=l(a,"paused",!1),u.persist=l(a,"persist",!1),u.callbackScope=n(a,"callbackScope",u);var h,f=d.TYPES;for(h=0;h{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -5997,11 +5997,11 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(50792),a=t(842),r=t(86353),n=new d({Extends:p,initialize:function(s){p.call(this),this.parent=s,this.data=[],this.totalData=0,this.startDelay=0,this.hasStarted=!1,this.timeScale=1,this.loop=0,this.loopDelay=0,this.loopCounter=0,this.completeDelay=0,this.countdown=0,this.state=r.PENDING,this.paused=!1,this.callbacks={onActive:null,onComplete:null,onLoop:null,onPause:null,onRepeat:null,onResume:null,onStart:null,onStop:null,onUpdate:null,onYoyo:null},this.callbackScope,this.persist=!1},setTimeScale:function(e){return this.timeScale=e,this},getTimeScale:function(){return this.timeScale},isPlaying:function(){return!this.paused&&this.isActive()},isPaused:function(){return this.paused},pause:function(){return this.paused||(this.paused=!0,this.dispatchEvent(a.TWEEN_PAUSE,"onPause")),this},resume:function(){return this.paused&&(this.paused=!1,this.dispatchEvent(a.TWEEN_RESUME,"onResume")),this},makeActive:function(){this.parent.makeActive(this),this.dispatchEvent(a.TWEEN_ACTIVE,"onActive")},onCompleteHandler:function(){this.setPendingRemoveState(),this.dispatchEvent(a.TWEEN_COMPLETE,"onComplete")},complete:function(e){return e===void 0&&(e=0),e?(this.setCompleteDelayState(),this.countdown=e):this.onCompleteHandler(),this},completeAfterLoop:function(e){return e===void 0&&(e=0),this.loopCounter>e&&(this.loopCounter=e),this},remove:function(){return this.parent&&this.parent.remove(this),this},stop:function(){return this.parent&&!this.isRemoved()&&!this.isPendingRemove()&&!this.isDestroyed()&&(this.dispatchEvent(a.TWEEN_STOP,"onStop"),this.setPendingRemoveState()),this},updateLoopCountdown:function(e){this.countdown-=e,this.countdown<=0&&(this.setActiveState(),this.dispatchEvent(a.TWEEN_LOOP,"onLoop"))},updateStartCountdown:function(e){return this.countdown-=e,this.countdown<=0&&(this.hasStarted=!0,this.setActiveState(),this.dispatchEvent(a.TWEEN_START,"onStart"),e=0),e},updateCompleteDelay:function(e){this.countdown-=e,this.countdown<=0&&this.onCompleteHandler()},setCallback:function(e,s,l){return l===void 0&&(l=[]),this.callbacks.hasOwnProperty(e)&&(this.callbacks[e]={func:s,params:l}),this},setPendingState:function(){this.state=r.PENDING},setActiveState:function(){this.state=r.ACTIVE},setLoopDelayState:function(){this.state=r.LOOP_DELAY},setCompleteDelayState:function(){this.state=r.COMPLETE_DELAY},setStartDelayState:function(){this.state=r.START_DELAY,this.countdown=this.startDelay,this.hasStarted=!1},setPendingRemoveState:function(){this.state=r.PENDING_REMOVE},setRemovedState:function(){this.state=r.REMOVED},setFinishedState:function(){this.state=r.FINISHED},setDestroyedState:function(){this.state=r.DESTROYED},isPending:function(){return this.state===r.PENDING},isActive:function(){return this.state===r.ACTIVE},isLoopDelayed:function(){return this.state===r.LOOP_DELAY},isCompleteDelayed:function(){return this.state===r.COMPLETE_DELAY},isStartDelayed:function(){return this.state===r.START_DELAY},isPendingRemove:function(){return this.state===r.PENDING_REMOVE},isRemoved:function(){return this.state===r.REMOVED},isFinished:function(){return this.state===r.FINISHED},isDestroyed:function(){return this.state===r.DESTROYED},destroy:function(){this.data&&this.data.forEach(function(e){e.destroy()}),this.removeAllListeners(),this.callbacks=null,this.data=null,this.parent=null,this.setDestroyedState()}});n.TYPES=["onActive","onComplete","onLoop","onPause","onRepeat","onResume","onStart","onStop","onUpdate","onYoyo"],c.exports=n},95042:(c,T,t)=>{/** + */var d=t(83419),p=t(50792),l=t(842),r=t(86353),n=new d({Extends:p,initialize:function(s){p.call(this),this.parent=s,this.data=[],this.totalData=0,this.startDelay=0,this.hasStarted=!1,this.timeScale=1,this.loop=0,this.loopDelay=0,this.loopCounter=0,this.completeDelay=0,this.countdown=0,this.state=r.PENDING,this.paused=!1,this.callbacks={onActive:null,onComplete:null,onLoop:null,onPause:null,onRepeat:null,onResume:null,onStart:null,onStop:null,onUpdate:null,onYoyo:null},this.callbackScope,this.persist=!1},setTimeScale:function(e){return this.timeScale=e,this},getTimeScale:function(){return this.timeScale},isPlaying:function(){return!this.paused&&this.isActive()},isPaused:function(){return this.paused},pause:function(){return this.paused||(this.paused=!0,this.dispatchEvent(l.TWEEN_PAUSE,"onPause")),this},resume:function(){return this.paused&&(this.paused=!1,this.dispatchEvent(l.TWEEN_RESUME,"onResume")),this},makeActive:function(){this.parent.makeActive(this),this.dispatchEvent(l.TWEEN_ACTIVE,"onActive")},onCompleteHandler:function(){this.setPendingRemoveState(),this.dispatchEvent(l.TWEEN_COMPLETE,"onComplete")},complete:function(e){return e===void 0&&(e=0),e?(this.setCompleteDelayState(),this.countdown=e):this.onCompleteHandler(),this},completeAfterLoop:function(e){return e===void 0&&(e=0),this.loopCounter>e&&(this.loopCounter=e),this},remove:function(){return this.parent&&this.parent.remove(this),this},stop:function(){return this.parent&&!this.isRemoved()&&!this.isPendingRemove()&&!this.isDestroyed()&&(this.dispatchEvent(l.TWEEN_STOP,"onStop"),this.setPendingRemoveState()),this},updateLoopCountdown:function(e){this.countdown-=e,this.countdown<=0&&(this.setActiveState(),this.dispatchEvent(l.TWEEN_LOOP,"onLoop"))},updateStartCountdown:function(e){return this.countdown-=e,this.countdown<=0&&(this.hasStarted=!0,this.setActiveState(),this.dispatchEvent(l.TWEEN_START,"onStart"),e=0),e},updateCompleteDelay:function(e){this.countdown-=e,this.countdown<=0&&this.onCompleteHandler()},setCallback:function(e,s,o){return o===void 0&&(o=[]),this.callbacks.hasOwnProperty(e)&&(this.callbacks[e]={func:s,params:o}),this},setPendingState:function(){this.state=r.PENDING},setActiveState:function(){this.state=r.ACTIVE,this.hasStarted=!1},setLoopDelayState:function(){this.state=r.LOOP_DELAY},setCompleteDelayState:function(){this.state=r.COMPLETE_DELAY},setStartDelayState:function(){this.state=r.START_DELAY,this.countdown=this.startDelay,this.hasStarted=!1},setPendingRemoveState:function(){this.state=r.PENDING_REMOVE},setRemovedState:function(){this.state=r.REMOVED},setFinishedState:function(){this.state=r.FINISHED},setDestroyedState:function(){this.state=r.DESTROYED},isPending:function(){return this.state===r.PENDING},isActive:function(){return this.state===r.ACTIVE},isLoopDelayed:function(){return this.state===r.LOOP_DELAY},isCompleteDelayed:function(){return this.state===r.COMPLETE_DELAY},isStartDelayed:function(){return this.state===r.START_DELAY},isPendingRemove:function(){return this.state===r.PENDING_REMOVE},isRemoved:function(){return this.state===r.REMOVED},isFinished:function(){return this.state===r.FINISHED},isDestroyed:function(){return this.state===r.DESTROYED},destroy:function(){this.data&&this.data.forEach(function(e){e.destroy()}),this.removeAllListeners(),this.callbacks=null,this.data=null,this.parent=null,this.setDestroyedState()}});n.TYPES=["onActive","onComplete","onLoop","onPause","onRepeat","onResume","onStart","onStop","onUpdate","onYoyo"],c.exports=n},95042:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(83419),p=t(842),a=t(86353),r=new d({initialize:function(e,s,l,i,o,u,h,f,v,m){this.tween=e,this.targetIndex=s,this.duration=i,this.totalDuration=0,this.delay=0,this.getDelay=l,this.yoyo=o,this.hold=u,this.repeat=h,this.repeatDelay=f,this.repeatCounter=0,this.flipX=v,this.flipY=m,this.progress=0,this.elapsed=0,this.state=0,this.isCountdown=!1},getTarget:function(){return this.tween.targets[this.targetIndex]},setTargetValue:function(n){n===void 0&&(n=this.current),this.tween.targets[this.targetIndex][this.key]=n},setCreatedState:function(){this.state=a.CREATED,this.isCountdown=!1},setDelayState:function(){this.state=a.DELAY,this.isCountdown=!0},setPendingRenderState:function(){this.state=a.PENDING_RENDER,this.isCountdown=!1},setPlayingForwardState:function(){this.state=a.PLAYING_FORWARD,this.isCountdown=!1},setPlayingBackwardState:function(){this.state=a.PLAYING_BACKWARD,this.isCountdown=!1},setHoldState:function(){this.state=a.HOLD_DELAY,this.isCountdown=!0},setRepeatState:function(){this.state=a.REPEAT_DELAY,this.isCountdown=!0},setCompleteState:function(){this.state=a.COMPLETE,this.isCountdown=!1},isCreated:function(){return this.state===a.CREATED},isDelayed:function(){return this.state===a.DELAY},isPendingRender:function(){return this.state===a.PENDING_RENDER},isPlayingForward:function(){return this.state===a.PLAYING_FORWARD},isPlayingBackward:function(){return this.state===a.PLAYING_BACKWARD},isHolding:function(){return this.state===a.HOLD_DELAY},isRepeating:function(){return this.state===a.REPEAT_DELAY},isComplete:function(){return this.state===a.COMPLETE},setStateFromEnd:function(n){this.yoyo?this.onRepeat(n,!0,!0):this.repeatCounter>0?this.onRepeat(n,!0,!1):this.setCompleteState()},setStateFromStart:function(n){this.repeatCounter>0?this.onRepeat(n,!1):this.setCompleteState()},reset:function(){var n=this.tween,e=n.totalTargets,s=this.targetIndex,l=n.targets[s],i=this.key;this.progress=0,this.elapsed=0,this.delay=this.getDelay(l,i,0,s,e,n),this.repeatCounter=this.repeat===-1?a.MAX:this.repeat,this.setPendingRenderState();var o=this.duration+this.hold;this.yoyo&&(o+=this.duration);var u=o+this.repeatDelay;this.totalDuration=this.delay+o,this.repeat===-1?(this.totalDuration+=u*a.MAX,n.isInfinite=!0):this.repeat>0&&(this.totalDuration+=u*this.repeat),this.totalDuration>n.duration&&(n.duration=this.totalDuration),this.delay0&&(this.elapsed=this.delay,this.setDelayState())},onRepeat:function(n,e,s){var l=this.tween,i=l.totalTargets,o=this.targetIndex,u=l.targets[o],h=this.key,f=h!=="texture";if(this.elapsed=n,this.progress=n/this.duration,this.flipX&&u.toggleFlipX(),this.flipY&&u.toggleFlipY(),f&&(e||s)&&(this.start=this.getStartValue(u,h,this.start,o,i,l)),s){this.setPlayingBackwardState(),this.dispatchEvent(p.TWEEN_YOYO,"onYoyo");return}this.repeatCounter--,f&&(this.end=this.getEndValue(u,h,this.start,o,i,l)),this.repeatDelay>0?(this.elapsed=this.repeatDelay-n,f&&(this.current=this.start,u[h]=this.current),this.setRepeatState()):(this.setPlayingForwardState(),this.dispatchEvent(p.TWEEN_REPEAT,"onRepeat"))},destroy:function(){this.tween=null,this.getDelay=null,this.setCompleteState()}});c.exports=r},69902:c=>{/** + */var d=t(83419),p=t(842),l=t(86353),r=new d({initialize:function(e,s,o,i,a,u,h,f,v,m){this.tween=e,this.targetIndex=s,this.duration=i,this.totalDuration=0,this.delay=0,this.getDelay=o,this.yoyo=a,this.hold=u,this.repeat=h,this.repeatDelay=f,this.repeatCounter=0,this.flipX=v,this.flipY=m,this.progress=0,this.elapsed=0,this.state=0,this.isCountdown=!1},getTarget:function(){return this.tween.targets[this.targetIndex]},setTargetValue:function(n){n===void 0&&(n=this.current),this.tween.targets[this.targetIndex][this.key]=n},setCreatedState:function(){this.state=l.CREATED,this.isCountdown=!1},setDelayState:function(){this.state=l.DELAY,this.isCountdown=!0},setPendingRenderState:function(){this.state=l.PENDING_RENDER,this.isCountdown=!1},setPlayingForwardState:function(){this.state=l.PLAYING_FORWARD,this.isCountdown=!1},setPlayingBackwardState:function(){this.state=l.PLAYING_BACKWARD,this.isCountdown=!1},setHoldState:function(){this.state=l.HOLD_DELAY,this.isCountdown=!0},setRepeatState:function(){this.state=l.REPEAT_DELAY,this.isCountdown=!0},setCompleteState:function(){this.state=l.COMPLETE,this.isCountdown=!1},isCreated:function(){return this.state===l.CREATED},isDelayed:function(){return this.state===l.DELAY},isPendingRender:function(){return this.state===l.PENDING_RENDER},isPlayingForward:function(){return this.state===l.PLAYING_FORWARD},isPlayingBackward:function(){return this.state===l.PLAYING_BACKWARD},isHolding:function(){return this.state===l.HOLD_DELAY},isRepeating:function(){return this.state===l.REPEAT_DELAY},isComplete:function(){return this.state===l.COMPLETE},setStateFromEnd:function(n){this.yoyo?this.onRepeat(n,!0,!0):this.repeatCounter>0?this.onRepeat(n,!0,!1):this.setCompleteState()},setStateFromStart:function(n){this.repeatCounter>0?this.onRepeat(n,!1):this.setCompleteState()},reset:function(){var n=this.tween,e=n.totalTargets,s=this.targetIndex,o=n.targets[s],i=this.key;this.progress=0,this.elapsed=0,this.delay=this.getDelay(o,i,0,s,e,n),this.repeatCounter=this.repeat===-1?l.MAX:this.repeat,this.setPendingRenderState();var a=this.duration+this.hold;this.yoyo&&(a+=this.duration);var u=a+this.repeatDelay;this.totalDuration=this.delay+a,this.repeat===-1?(this.totalDuration+=u*l.MAX,n.isInfinite=!0):this.repeat>0&&(this.totalDuration+=u*this.repeat),this.totalDuration>n.duration&&(n.duration=this.totalDuration),this.delay0&&(this.elapsed=this.delay,this.setDelayState())},onRepeat:function(n,e,s){var o=this.tween,i=o.totalTargets,a=this.targetIndex,u=o.targets[a],h=this.key,f=h!=="texture";if(this.elapsed=n,this.progress=n/this.duration,this.flipX&&u.toggleFlipX(),this.flipY&&u.toggleFlipY(),f&&(e||s)&&(this.start=this.getStartValue(u,h,this.start,a,i,o)),s){this.setPlayingBackwardState(),this.dispatchEvent(p.TWEEN_YOYO,"onYoyo");return}this.repeatCounter--,f&&(this.end=this.getEndValue(u,h,this.start,a,i,o)),this.repeatDelay>0?(this.elapsed=this.repeatDelay-n,f&&(this.current=this.start,u[h]=this.current),this.setRepeatState()):(this.setPlayingForwardState(),this.dispatchEvent(p.TWEEN_REPEAT,"onRepeat"))},destroy:function(){this.tween=null,this.getDelay=null,this.setCompleteState()}});c.exports=r},69902:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -6013,19 +6013,19 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(70402),p=t(83419),a=t(842),r=t(44603),n=t(39429),e=t(36383),s=t(86353),l=t(48177),i=t(42220),o=new p({Extends:d,initialize:function(h,f){d.call(this,h),this.targets=f,this.totalTargets=f.length,this.isSeeking=!1,this.isInfinite=!1,this.elapsed=0,this.totalElapsed=0,this.duration=0,this.progress=0,this.totalDuration=0,this.totalProgress=0},add:function(u,h,f,v,m,x,g,y,S,C,E,A,P,M,F,L){var b=new l(this,u,h,f,v,m,x,g,y,S,C,E,A,P,M,F,L);return this.totalData=this.data.push(b),b},addFrame:function(u,h,f,v,m,x,g,y,S,C){var E=new i(this,u,h,f,v,m,x,g,y,S,C);return this.totalData=this.data.push(E),E},getValue:function(u){u===void 0&&(u=0);var h=null;return this.data&&(h=this.data[u].current),h},hasTarget:function(u){return this.targets&&this.targets.indexOf(u)!==-1},updateTo:function(u,h,f){if(f===void 0&&(f=!1),u!=="texture")for(var v=0;v0)this.elapsed=0,this.progress=0,this.loopCounter--,this.initTweenData(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.setLoopDelayState()):(this.setActiveState(),this.dispatchEvent(a.TWEEN_LOOP,"onLoop"));else if(this.completeDelay>0)this.countdown=this.completeDelay,this.setCompleteDelayState();else return this.onCompleteHandler(),!0;return!1},onCompleteHandler:function(){this.progress=1,this.totalProgress=1,d.prototype.onCompleteHandler.call(this)},play:function(){return this.isDestroyed()?(console.warn("Cannot play destroyed Tween",this),this):((this.isPendingRemove()||this.isFinished())&&this.seek(),this.paused=!1,this.setActiveState(),this)},seek:function(u,h,f){if(u===void 0&&(u=0),h===void 0&&(h=16.6),f===void 0&&(f=!1),this.isDestroyed())return console.warn("Cannot seek destroyed Tween",this),this;f||(this.isSeeking=!0),this.reset(!0),this.initTweenData(!0),this.setActiveState(),this.dispatchEvent(a.TWEEN_ACTIVE,"onActive");var v=this.paused;if(this.paused=!1,u>0){for(var m=Math.floor(u/h),x=u-m*h,g=0;g0&&this.update(x)}return this.paused=v,this.isSeeking=!1,this},initTweenData:function(u){u===void 0&&(u=!1),this.duration=0,this.startDelay=e.MAX_SAFE_INTEGER;for(var h=this.data,f=0;f0?this.totalDuration=v+m+(v+g)*x:this.totalDuration=v+m},reset:function(u){return u===void 0&&(u=!1),this.elapsed=0,this.totalElapsed=0,this.progress=0,this.totalProgress=0,this.loopCounter=this.loop,this.loop===-1&&(this.isInfinite=!0,this.loopCounter=s.MAX),u||(this.initTweenData(),this.setActiveState(),this.dispatchEvent(a.TWEEN_ACTIVE,"onActive")),this},update:function(u){if(this.isPendingRemove()||this.isDestroyed())return!0;if(this.paused||this.isFinished())return!1;if(u*=this.timeScale*this.parent.timeScale,this.isLoopDelayed())return this.updateLoopCountdown(u),!1;if(this.isCompleteDelayed())return this.updateCompleteDelay(u),!1;this.hasStarted||(this.startDelay-=u,this.startDelay<=0&&(this.hasStarted=!0,this.dispatchEvent(a.TWEEN_START,"onStart"),u=0));var h=!1;if(this.isActive())for(var f=this.data,v=0;v{/** + */var d=t(70402),p=t(83419),l=t(842),r=t(44603),n=t(39429),e=t(36383),s=t(86353),o=t(48177),i=t(42220),a=new p({Extends:d,initialize:function(h,f){d.call(this,h),this.targets=f,this.totalTargets=f.length,this.isSeeking=!1,this.isInfinite=!1,this.elapsed=0,this.totalElapsed=0,this.duration=0,this.progress=0,this.totalDuration=0,this.totalProgress=0},add:function(u,h,f,v,m,g,x,y,S,C,E,M,P,A,R,F){var D=new o(this,u,h,f,v,m,g,x,y,S,C,E,M,P,A,R,F);return this.totalData=this.data.push(D),D},addFrame:function(u,h,f,v,m,g,x,y,S,C){var E=new i(this,u,h,f,v,m,g,x,y,S,C);return this.totalData=this.data.push(E),E},getValue:function(u){u===void 0&&(u=0);var h=null;return this.data&&(h=this.data[u].current),h},hasTarget:function(u){return this.targets&&this.targets.indexOf(u)!==-1},updateTo:function(u,h,f){if(f===void 0&&(f=!1),u!=="texture")for(var v=0;v0)this.elapsed=0,this.progress=0,this.loopCounter--,this.initTweenData(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.setLoopDelayState()):(this.setActiveState(),this.dispatchEvent(l.TWEEN_LOOP,"onLoop"));else if(this.completeDelay>0)this.countdown=this.completeDelay,this.setCompleteDelayState();else return this.onCompleteHandler(),!0;return!1},onCompleteHandler:function(){this.progress=1,this.totalProgress=1,d.prototype.onCompleteHandler.call(this)},play:function(){return this.isDestroyed()?(console.warn("Cannot play destroyed Tween",this),this):((this.isPendingRemove()||this.isFinished())&&this.seek(),this.paused=!1,this.setActiveState(),this)},seek:function(u,h,f){if(u===void 0&&(u=0),h===void 0&&(h=16.6),f===void 0&&(f=!1),this.isDestroyed())return console.warn("Cannot seek destroyed Tween",this),this;f||(this.isSeeking=!0),this.reset(!0),this.initTweenData(!0),this.setActiveState(),this.dispatchEvent(l.TWEEN_ACTIVE,"onActive");var v=this.paused;if(this.paused=!1,u>0){for(var m=Math.floor(u/h),g=u-m*h,x=0;x0&&this.update(g)}return this.paused=v,this.isSeeking=!1,this},initTweenData:function(u){u===void 0&&(u=!1),this.duration=0,this.startDelay=e.MAX_SAFE_INTEGER;for(var h=this.data,f=0;f0?this.totalDuration=v+m+(v+x)*g:this.totalDuration=v+m},reset:function(u){return u===void 0&&(u=!1),this.elapsed=0,this.totalElapsed=0,this.progress=0,this.totalProgress=0,this.loopCounter=this.loop,this.loop===-1&&(this.isInfinite=!0,this.loopCounter=s.MAX),u||(this.initTweenData(),this.setActiveState(),this.dispatchEvent(l.TWEEN_ACTIVE,"onActive")),this},update:function(u){if(this.isPendingRemove()||this.isDestroyed())return!0;if(this.paused||this.isFinished())return!1;if(u*=this.timeScale*this.parent.timeScale,this.isLoopDelayed())return this.updateLoopCountdown(u),!1;if(this.isCompleteDelayed())return this.updateCompleteDelay(u),!1;this.hasStarted||(this.startDelay-=u,this.startDelay<=0&&(this.hasStarted=!0,this.dispatchEvent(l.TWEEN_START,"onStart"),u=0));var h=!1;if(this.isActive())for(var f=this.data,v=0;v{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(72905),p=t(70402),a=t(83419),r=t(842),n=t(44603),e=t(39429),s=t(86353),l=new a({Extends:p,initialize:function(o){p.call(this,o),this.currentTween=null,this.currentIndex=0},init:function(){return this.loopCounter=this.loop===-1?s.MAX:this.loop,this.setCurrentTween(0),this.startDelay>0&&!this.isStartDelayed()?this.setStartDelayState():this.setActiveState(),this.dispatchEvent(r.TWEEN_ACTIVE,"onActive"),this},add:function(i){var o=this.parent.create(i);Array.isArray(o)||(o=[o]);for(var u=this.data,h=0;h0)this.loopCounter--,this.resetTweens(),this.loopDelay>0?(this.countdown=this.loopDelay,this.setLoopDelayState()):(this.setActiveState(),this.dispatchEvent(r.TWEEN_LOOP,"onLoop"));else if(this.completeDelay>0)this.countdown=this.completeDelay,this.setCompleteDelayState();else return this.onCompleteHandler(),!0;return!1},play:function(){return this.isDestroyed()?(console.warn("Cannot play destroyed TweenChain",this),this):((this.isPendingRemove()||this.isPending())&&this.resetTweens(),this.paused=!1,this.startDelay>0&&!this.isStartDelayed()?this.setStartDelayState():this.setActiveState(),this)},resetTweens:function(){for(var i=this.data,o=this.totalData,u=0;u{/** + */var d=t(72905),p=t(70402),l=t(83419),r=t(842),n=t(44603),e=t(39429),s=t(86353),o=new l({Extends:p,initialize:function(a){p.call(this,a),this.currentTween=null,this.currentIndex=0},init:function(){return this.loopCounter=this.loop===-1?s.MAX:this.loop,this.setCurrentTween(0),this.startDelay>0&&!this.isStartDelayed()?this.setStartDelayState():this.setActiveState(),this},add:function(i){var a=this.parent.create(i);Array.isArray(a)||(a=[a]);for(var u=this.data,h=0;h0)this.loopCounter--,this.resetTweens(),this.loopDelay>0?(this.countdown=this.loopDelay,this.setLoopDelayState()):(this.setActiveState(),this.dispatchEvent(r.TWEEN_LOOP,"onLoop"));else if(this.completeDelay>0)this.countdown=this.completeDelay,this.setCompleteDelayState();else return this.onCompleteHandler(),!0;return!1},play:function(){return this.isDestroyed()?(console.warn("Cannot play destroyed TweenChain",this),this):((this.isPendingRemove()||this.isPending())&&this.resetTweens(),this.paused=!1,this.startDelay>0&&!this.isStartDelayed()?this.setStartDelayState():this.setActiveState(),this)},resetTweens:function(){for(var i=this.data,a=this.totalData,u=0;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(95042),p=t(45319),a=t(83419),r=t(842),n=new a({Extends:d,initialize:function(s,l,i,o,u,h,f,v,m,x,g,y,S,C,E,A,P){d.call(this,s,l,v,m,x,g,y,S,C,E),this.key=i,this.getActiveValue=h,this.getEndValue=o,this.getStartValue=u,this.ease=f,this.start=0,this.previous=0,this.current=0,this.end=0,this.interpolation=A,this.interpolationData=P},reset:function(e){d.prototype.reset.call(this);var s=this.tween.targets[this.targetIndex],l=this.key;e&&(s[l]=this.start),this.start=0,this.previous=0,this.current=0,this.end=0,this.getActiveValue&&(s[l]=this.getActiveValue(s,l,0))},update:function(e){var s=this.tween,l=s.totalTargets,i=this.targetIndex,o=s.targets[i],u=this.key;if(!o)return this.setCompleteState(),!1;if(this.isCountdown&&(this.elapsed-=e,this.elapsed<=0&&(this.elapsed=0,e=0,this.isDelayed()?this.setPendingRenderState():this.isRepeating()?(this.setPlayingForwardState(),this.dispatchEvent(r.TWEEN_REPEAT,"onRepeat")):this.isHolding()&&this.setStateFromEnd(0))),this.isPendingRender())return this.start=this.getStartValue(o,u,o[u],i,l,s),this.end=this.getEndValue(o,u,this.start,i,l,s),this.current=this.start,o[u]=this.start,this.setPlayingForwardState(),!0;var h=this.isPlayingForward(),f=this.isPlayingBackward();if(h||f){var v=this.elapsed,m=this.duration,x=0,g=!1;v+=e,v>=m?(x=v-m,v=m,g=!0):v<0&&(v=0);var y=p(v/m,0,1);if(this.elapsed=v,this.progress=y,this.previous=this.current,g)h?(this.current=this.end,o[u]=this.end,this.hold>0?(this.elapsed=this.hold,this.setHoldState()):this.setStateFromEnd(x)):(this.current=this.start,o[u]=this.start,this.setStateFromStart(x));else{h||(y=1-y);var S=this.ease(y);this.interpolation?this.current=this.interpolation(this.interpolationData,S):this.current=this.start+(this.end-this.start)*S,o[u]=this.current}this.dispatchEvent(r.TWEEN_UPDATE,"onUpdate")}return!this.isComplete()},dispatchEvent:function(e,s){var l=this.tween;if(!l.isSeeking){var i=l.targets[this.targetIndex],o=this.key,u=this.current,h=this.previous;l.emit(e,l,o,i,u,h);var f=l.callbacks[s];f&&f.func.apply(l.callbackScope,[l,i,o,u,h].concat(f.params))}},destroy:function(){d.prototype.destroy.call(this),this.getActiveValue=null,this.getEndValue=null,this.getStartValue=null,this.ease=null}});c.exports=n},42220:(c,T,t)=>{/** + */var d=t(95042),p=t(45319),l=t(83419),r=t(842),n=new l({Extends:d,initialize:function(s,o,i,a,u,h,f,v,m,g,x,y,S,C,E,M,P){d.call(this,s,o,v,m,g,x,y,S,C,E),this.key=i,this.getActiveValue=h,this.getEndValue=a,this.getStartValue=u,this.ease=f,this.start=0,this.previous=0,this.current=0,this.end=0,this.interpolation=M,this.interpolationData=P},reset:function(e){d.prototype.reset.call(this);var s=this.tween.targets[this.targetIndex],o=this.key;e&&(s[o]=this.start),this.start=0,this.previous=0,this.current=0,this.end=0,this.getActiveValue&&(s[o]=this.getActiveValue(s,o,0))},update:function(e){var s=this.tween,o=s.totalTargets,i=this.targetIndex,a=s.targets[i],u=this.key;if(!a)return this.setCompleteState(),!1;if(this.isCountdown&&(this.elapsed-=e,this.elapsed<=0&&(this.elapsed=0,e=0,this.isDelayed()?this.setPendingRenderState():this.isRepeating()?(this.setPlayingForwardState(),this.dispatchEvent(r.TWEEN_REPEAT,"onRepeat")):this.isHolding()&&this.setStateFromEnd(0))),this.isPendingRender())return this.start=this.getStartValue(a,u,a[u],i,o,s),this.end=this.getEndValue(a,u,this.start,i,o,s),this.current=this.start,a[u]=this.start,this.setPlayingForwardState(),!0;var h=this.isPlayingForward(),f=this.isPlayingBackward();if(h||f){var v=this.elapsed,m=this.duration,g=0,x=!1;v+=e,v>=m?(g=v-m,v=m,x=!0):v<0&&(v=0);var y=p(v/m,0,1);if(this.elapsed=v,this.progress=y,this.previous=this.current,x)h?(this.current=this.end,a[u]=this.end,this.hold>0?(this.elapsed=this.hold,this.setHoldState()):this.setStateFromEnd(g)):(this.current=this.start,a[u]=this.start,this.setStateFromStart(g));else{h||(y=1-y);var S=this.ease(y);this.interpolation?this.current=this.interpolation(this.interpolationData,S):this.current=this.start+(this.end-this.start)*S,a[u]=this.current}this.dispatchEvent(r.TWEEN_UPDATE,"onUpdate")}return!this.isComplete()},dispatchEvent:function(e,s){var o=this.tween;if(!o.isSeeking){var i=o.targets[this.targetIndex],a=this.key,u=this.current,h=this.previous;o.emit(e,o,a,i,u,h);var f=o.callbacks[s];f&&f.func.apply(o.callbackScope,[o,i,a,u,h].concat(f.params))}},destroy:function(){d.prototype.destroy.call(this),this.getActiveValue=null,this.getEndValue=null,this.getStartValue=null,this.ease=null}});c.exports=n},42220:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(95042),p=t(45319),a=t(83419),r=t(842),n=new a({Extends:d,initialize:function(s,l,i,o,u,h,f,v,m,x,g){d.call(this,s,l,u,h,!1,f,v,m,x,g),this.key="texture",this.startTexture=null,this.endTexture=i,this.startFrame=null,this.endFrame=o,this.yoyo=v!==0},reset:function(e){d.prototype.reset.call(this);var s=this.tween.targets[this.targetIndex];this.startTexture||(this.startTexture=s.texture.key,this.startFrame=s.frame.name),e&&s.setTexture(this.startTexture,this.startFrame)},update:function(e){var s=this.tween,l=this.targetIndex,i=s.targets[l];if(!i)return this.setCompleteState(),!1;if(this.isCountdown&&(this.elapsed-=e,this.elapsed<=0&&(this.elapsed=0,e=0,this.isDelayed()?this.setPendingRenderState():this.isRepeating()?(this.setPlayingForwardState(),this.dispatchEvent(r.TWEEN_REPEAT,"onRepeat")):this.isHolding()&&this.setStateFromEnd(0))),this.isPendingRender())return this.startTexture&&i.setTexture(this.startTexture,this.startFrame),this.setPlayingForwardState(),!0;var o=this.isPlayingForward(),u=this.isPlayingBackward();if(o||u){var h=this.elapsed,f=this.duration,v=0,m=!1;h+=e,h>=f?(v=h-f,h=f,m=!0):h<0&&(h=0);var x=p(h/f,0,1);this.elapsed=h,this.progress=x,m&&(o?(i.setTexture(this.endTexture,this.endFrame),this.hold>0?(this.elapsed=this.hold,this.setHoldState()):this.setStateFromEnd(v)):(i.setTexture(this.startTexture,this.startFrame),this.setStateFromStart(v))),this.dispatchEvent(r.TWEEN_UPDATE,"onUpdate")}return!this.isComplete()},dispatchEvent:function(e,s){var l=this.tween;if(!l.isSeeking){var i=l.targets[this.targetIndex],o=this.key;l.emit(e,l,o,i);var u=l.callbacks[s];u&&u.func.apply(l.callbackScope,[l,i,o].concat(u.params))}},destroy:function(){d.prototype.destroy.call(this),this.startTexture=null,this.endTexture=null,this.startFrame=null,this.endFrame=null}});c.exports=n},86353:c=>{/** + */var d=t(95042),p=t(45319),l=t(83419),r=t(842),n=new l({Extends:d,initialize:function(s,o,i,a,u,h,f,v,m,g,x){d.call(this,s,o,u,h,!1,f,v,m,g,x),this.key="texture",this.startTexture=null,this.endTexture=i,this.startFrame=null,this.endFrame=a,this.yoyo=v!==0},reset:function(e){d.prototype.reset.call(this);var s=this.tween.targets[this.targetIndex];this.startTexture||(this.startTexture=s.texture.key,this.startFrame=s.frame.name),e&&s.setTexture(this.startTexture,this.startFrame)},update:function(e){var s=this.tween,o=this.targetIndex,i=s.targets[o];if(!i)return this.setCompleteState(),!1;if(this.isCountdown&&(this.elapsed-=e,this.elapsed<=0&&(this.elapsed=0,e=0,this.isDelayed()?this.setPendingRenderState():this.isRepeating()?(this.setPlayingForwardState(),this.dispatchEvent(r.TWEEN_REPEAT,"onRepeat")):this.isHolding()&&this.setStateFromEnd(0))),this.isPendingRender())return this.startTexture&&i.setTexture(this.startTexture,this.startFrame),this.setPlayingForwardState(),!0;var a=this.isPlayingForward(),u=this.isPlayingBackward();if(a||u){var h=this.elapsed,f=this.duration,v=0,m=!1;h+=e,h>=f?(v=h-f,h=f,m=!0):h<0&&(h=0);var g=p(h/f,0,1);this.elapsed=h,this.progress=g,m&&(a?(i.setTexture(this.endTexture,this.endFrame),this.hold>0?(this.elapsed=this.hold,this.setHoldState()):this.setStateFromEnd(v)):(i.setTexture(this.startTexture,this.startFrame),this.setStateFromStart(v))),this.dispatchEvent(r.TWEEN_UPDATE,"onUpdate")}return!this.isComplete()},dispatchEvent:function(e,s){var o=this.tween;if(!o.isSeeking){var i=o.targets[this.targetIndex],a=this.key;o.emit(e,o,a,i);var u=o.callbacks[s];u&&u.func.apply(o.callbackScope,[o,i,a].concat(u.params))}},destroy:function(){d.prototype.destroy.call(this),this.startTexture=null,this.endTexture=null,this.startFrame=null,this.endFrame=null}});c.exports=n},86353:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -6033,7 +6033,7 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */function T(n){return!!n.get&&typeof n.get=="function"||!!n.set&&typeof n.set=="function"}function t(n,e,s){var l=s?n[e]:Object.getOwnPropertyDescriptor(n,e);return!s&&l.value&&typeof l.value=="object"&&(l=l.value),l&&T(l)?(typeof l.enumerable>"u"&&(l.enumerable=!0),typeof l.configurable>"u"&&(l.configurable=!0),l):!1}function d(n,e){var s=Object.getOwnPropertyDescriptor(n,e);return s?(s.value&&typeof s.value=="object"&&(s=s.value),s.configurable===!1):!1}function p(n,e,s,l){for(var i in e)if(e.hasOwnProperty(i)){var o=t(e,i,s);if(o!==!1){var u=l||n;if(d(u.prototype,i)){if(r.ignoreFinals)continue;throw new Error("cannot override final property '"+i+"', set Class.ignoreFinals = true to skip")}Object.defineProperty(n.prototype,i,o)}else n.prototype[i]=e[i]}}function a(n,e){if(e){Array.isArray(e)||(e=[e]);for(var s=0;s{/** + */function T(n){return!!n.get&&typeof n.get=="function"||!!n.set&&typeof n.set=="function"}function t(n,e,s){var o=s?n[e]:Object.getOwnPropertyDescriptor(n,e);return!s&&o.value&&typeof o.value=="object"&&(o=o.value),o&&T(o)?(typeof o.enumerable>"u"&&(o.enumerable=!0),typeof o.configurable>"u"&&(o.configurable=!0),o):!1}function d(n,e){var s=Object.getOwnPropertyDescriptor(n,e);return s?(s.value&&typeof s.value=="object"&&(s=s.value),s.configurable===!1):!1}function p(n,e,s,o){for(var i in e)if(e.hasOwnProperty(i)){var a=t(e,i,s);if(a!==!1){var u=o||n;if(d(u.prototype,i)){if(r.ignoreFinals)continue;throw new Error("cannot override final property '"+i+"', set Class.ignoreFinals = true to skip")}Object.defineProperty(n.prototype,i,a)}else n.prototype[i]=e[i]}}function l(n,e){if(e){Array.isArray(e)||(e=[e]);for(var s=0;s{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -6045,11 +6045,11 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a,r){if(r===void 0&&(r=t),p>0){var n=p-t.length;if(n<=0)return null}if(!Array.isArray(d))return t.indexOf(d)===-1?(t.push(d),a&&a.call(r,d),d):null;for(var e=d.length-1;e>=0;)t.indexOf(d[e])!==-1&&d.splice(e,1),e--;if(e=d.length,e===0)return null;p>0&&e>n&&(d.splice(n),e=n);for(var s=0;s{/** + */var T=function(t,d,p,l,r){if(r===void 0&&(r=t),p>0){var n=p-t.length;if(n<=0)return null}if(!Array.isArray(d))return t.indexOf(d)===-1?(t.push(d),l&&l.call(r,d),d):null;for(var e=d.length-1;e>=0;)t.indexOf(d[e])!==-1&&d.splice(e,1),e--;if(e=d.length,e===0)return null;p>0&&e>n&&(d.splice(n),e=n);for(var s=0;s{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a,r,n){if(p===void 0&&(p=0),n===void 0&&(n=t),a>0){var e=a-t.length;if(e<=0)return null}if(!Array.isArray(d))return t.indexOf(d)===-1?(t.splice(p,0,d),r&&r.call(n,d),d):null;for(var s=d.length-1;s>=0;)t.indexOf(d[s])!==-1&&d.pop(),s--;if(s=d.length,s===0)return null;a>0&&s>e&&(d.splice(e),s=e);for(var l=s-1;l>=0;l--){var i=d[l];t.splice(p,0,i),r&&r.call(n,i)}return d};c.exports=T},66905:c=>{/** + */var T=function(t,d,p,l,r,n){if(p===void 0&&(p=0),n===void 0&&(n=t),l>0){var e=l-t.length;if(e<=0)return null}if(!Array.isArray(d))return t.indexOf(d)===-1?(t.splice(p,0,d),r&&r.call(n,d),d):null;for(var s=d.length-1;s>=0;)t.indexOf(d[s])!==-1&&d.pop(),s--;if(s=d.length,s===0)return null;l>0&&s>e&&(d.splice(e),s=e);for(var o=s-1;o>=0;o--){var i=d[o];t.splice(p,0,i),r&&r.call(n,i)}return d};c.exports=T},66905:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -6057,19 +6057,19 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(82011),p=function(a,r,n,e,s){e===void 0&&(e=0),s===void 0&&(s=a.length);var l=0;if(d(a,e,s))for(var i=e;i{/** + */var d=t(82011),p=function(l,r,n,e,s){e===void 0&&(e=0),s===void 0&&(s=l.length);var o=0;if(d(l,e,s))for(var i=e;i{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){var a,r=[null];for(a=3;a{/** + */var T=function(t,d,p){var l,r=[null];for(l=3;l{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(82011),p=function(a,r,n,e,s){if(e===void 0&&(e=0),s===void 0&&(s=a.length),d(a,e,s)){var l,i=[null];for(l=5;l{/** + */var d=t(82011),p=function(l,r,n,e,s){if(e===void 0&&(e=0),s===void 0&&(s=l.length),d(l,e,s)){var o,i=[null];for(o=5;o{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){if(d.length){if(d.length===1)return d[0]}else return NaN;var a=1,r,n;if(p){if(td.length&&(a=d.length),p?(r=d[a-1][p],n=d[a][p],n-t<=t-r?d[a]:d[a-1]):(r=d[a-1],n=d[a],n-t<=t-r?n:r)};c.exports=T},43491:c=>{/** + */var T=function(t,d,p){if(d.length){if(d.length===1)return d[0]}else return NaN;var l=1,r,n;if(p){if(td.length&&(l=d.length),p?(r=d[l-1][p],n=d[l][p],n-t<=t-r?d[l]:d[l-1]):(r=d[l-1],n=d[l],n-t<=t-r?n:r)};c.exports=T},43491:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -6077,83 +6077,83 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(82011),p=function(a,r,n,e,s){e===void 0&&(e=0),s===void 0&&(s=a.length);var l=[];if(d(a,e,s))for(var i=e;i{/** + */var d=t(82011),p=function(l,r,n,e,s){e===void 0&&(e=0),s===void 0&&(s=l.length);var o=[];if(d(l,e,s))for(var i=e;i{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(82011),p=function(a,r,n,e,s){if(e===void 0&&(e=0),s===void 0&&(s=a.length),d(a,e,s))for(var l=e;l{/** + */var d=t(82011),p=function(l,r,n,e,s){if(e===void 0&&(e=0),s===void 0&&(s=l.length),d(l,e,s))for(var o=e;o{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){d===void 0&&(d=0),p===void 0&&(p=t.length);var a=d+Math.floor(Math.random()*p);return t[a]===void 0?null:t[a]};c.exports=T},85835:c=>{/** + */var T=function(t,d,p){d===void 0&&(d=0),p===void 0&&(p=t.length);var l=d+Math.floor(Math.random()*p);return t[l]===void 0?null:t[l]};c.exports=T},85835:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){if(d===p)return t;var a=t.indexOf(d),r=t.indexOf(p);if(a<0||r<0)throw new Error("Supplied items must be elements of the same array");return a>r||(t.splice(a,1),r===t.length-1?t.push(d):t.splice(r,0,d)),t};c.exports=T},83371:c=>{/** + */var T=function(t,d,p){if(d===p)return t;var l=t.indexOf(d),r=t.indexOf(p);if(l<0||r<0)throw new Error("Supplied items must be elements of the same array");return l>r||(t.splice(l,1),r===t.length-1?t.push(d):t.splice(r,0,d)),t};c.exports=T},83371:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){if(d===p)return t;var a=t.indexOf(d),r=t.indexOf(p);if(a<0||r<0)throw new Error("Supplied items must be elements of the same array");return a{/** + */var T=function(t,d,p){if(d===p)return t;var l=t.indexOf(d),r=t.indexOf(p);if(l<0||r<0)throw new Error("Supplied items must be elements of the same array");return l{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d){var p=t.indexOf(d);if(p>0){var a=t[p-1],r=t.indexOf(a);t[p]=a,t[r]=d}return t};c.exports=T},69693:c=>{/** + */var T=function(t,d){var p=t.indexOf(d);if(p>0){var l=t[p-1],r=t.indexOf(l);t[p]=l,t[r]=d}return t};c.exports=T},69693:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){var a=t.indexOf(d);if(a===-1||p<0||p>=t.length)throw new Error("Supplied index out of bounds");return a!==p&&(t.splice(a,1),t.splice(p,0,d)),d};c.exports=T},40853:c=>{/** + */var T=function(t,d,p){var l=t.indexOf(d);if(l===-1||p<0||p>=t.length)throw new Error("Supplied index out of bounds");return l!==p&&(t.splice(l,1),t.splice(p,0,d)),d};c.exports=T},40853:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d){var p=t.indexOf(d);if(p!==-1&&p{/** + */var T=function(t,d){var p=t.indexOf(d);if(p!==-1&&p{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){var r=[],n,e=!1;if((p||a)&&(e=!0,p||(p=""),a||(a="")),d=d;n--)e?r.push(p+n.toString()+a):r.push(n);else for(n=t;n<=d;n++)e?r.push(p+n.toString()+a):r.push(n);return r};c.exports=T},593:(c,T,t)=>{/** + */var T=function(t,d,p,l){var r=[],n,e=!1;if((p||l)&&(e=!0,p||(p=""),l||(l="")),d=d;n--)e?r.push(p+n.toString()+l):r.push(n);else for(n=t;n<=d;n++)e?r.push(p+n.toString()+l):r.push(n);return r};c.exports=T},593:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(2284),p=function(a,r,n){a===void 0&&(a=0),r===void 0&&(r=null),n===void 0&&(n=1),r===null&&(r=a,a=0);for(var e=[],s=Math.max(d((r-a)/(n||1)),0),l=0;l{/** + */var d=t(2284),p=function(l,r,n){l===void 0&&(l=0),r===void 0&&(r=null),n===void 0&&(n=1),r===null&&(r=l,l=0);for(var e=[],s=Math.max(d((r-l)/(n||1)),0),o=0;o{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */function T(p,a,r){var n=p[a];p[a]=p[r],p[r]=n}function t(p,a){return pa?1:0}var d=function(p,a,r,n,e){for(r===void 0&&(r=0),n===void 0&&(n=p.length-1),e===void 0&&(e=t);n>r;){if(n-r>600){var s=n-r+1,l=a-r+1,i=Math.log(s),o=.5*Math.exp(2*i/3),u=.5*Math.sqrt(i*o*(s-o)/s)*(l-s/2<0?-1:1),h=Math.max(r,Math.floor(a-l*o/s+u)),f=Math.min(n,Math.floor(a+(s-l)*o/s+u));d(p,a,h,f,e)}var v=p[a],m=r,x=n;for(T(p,r,a),e(p[n],v)>0&&T(p,r,n);m0;)x--}e(p[r],v)===0?T(p,r,x):(x++,T(p,x,n)),x<=a&&(r=x+1),a<=x&&(n=x-1)}};c.exports=d},88492:(c,T,t)=>{/** + */function T(p,l,r){var n=p[l];p[l]=p[r],p[r]=n}function t(p,l){return pl?1:0}var d=function(p,l,r,n,e){for(r===void 0&&(r=0),n===void 0&&(n=p.length-1),e===void 0&&(e=t);n>r;){if(n-r>600){var s=n-r+1,o=l-r+1,i=Math.log(s),a=.5*Math.exp(2*i/3),u=.5*Math.sqrt(i*a*(s-a)/s)*(o-s/2<0?-1:1),h=Math.max(r,Math.floor(l-o*a/s+u)),f=Math.min(n,Math.floor(l+(s-o)*a/s+u));d(p,l,h,f,e)}var v=p[l],m=r,g=n;for(T(p,r,l),e(p[n],v)>0&&T(p,r,n);m0;)g--}e(p[r],v)===0?T(p,r,g):(g++,T(p,g,n)),g<=l&&(r=g+1),l<=g&&(n=g-1)}};c.exports=d},88492:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(35154),p=t(33680),a=function(n,e,s){for(var l=[],i=0;i{/** + */var d=t(35154),p=t(33680),l=function(n,e,s){for(var o=[],i=0;i{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(19133),p=function(a,r,n,e){e===void 0&&(e=a);var s;if(!Array.isArray(r))return s=a.indexOf(r),s!==-1?(d(a,s),n&&n.call(e,r),r):null;for(var l=r.length-1,i=[];l>=0;){var o=r[l];s=a.indexOf(o),s!==-1&&(d(a,s),i.push(o),n&&n.call(e,o)),l--}return i};c.exports=p},60248:(c,T,t)=>{/** + */var d=t(19133),p=function(l,r,n,e){e===void 0&&(e=l);var s;if(!Array.isArray(r))return s=l.indexOf(r),s!==-1?(d(l,s),n&&n.call(e,r),r):null;for(var o=r.length-1,i=[];o>=0;){var a=r[o];s=l.indexOf(a),s!==-1&&(d(l,s),i.push(a),n&&n.call(e,a)),o--}return i};c.exports=p},60248:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(19133),p=function(a,r,n,e){if(e===void 0&&(e=a),r<0||r>a.length-1)throw new Error("Index out of bounds");var s=d(a,r);return n&&n.call(e,s),s};c.exports=p},81409:(c,T,t)=>{/** + */var d=t(19133),p=function(l,r,n,e){if(e===void 0&&(e=l),r<0||r>l.length-1)throw new Error("Index out of bounds");var s=d(l,r);return n&&n.call(e,s),s};c.exports=p},81409:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(82011),p=function(a,r,n,e,s){if(r===void 0&&(r=0),n===void 0&&(n=a.length),s===void 0&&(s=a),d(a,r,n)){var l=n-r,i=a.splice(r,l);if(e)for(var o=0;o{/** + */var d=t(82011),p=function(l,r,n,e,s){if(r===void 0&&(r=0),n===void 0&&(n=l.length),s===void 0&&(s=l),d(l,r,n)){var o=n-r,i=l.splice(r,o);if(e)for(var a=0;a{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(19133),p=function(a,r,n){r===void 0&&(r=0),n===void 0&&(n=a.length);var e=r+Math.floor(Math.random()*n);return d(a,e)};c.exports=p},42169:c=>{/** + */var d=t(19133),p=function(l,r,n){r===void 0&&(r=0),n===void 0&&(n=l.length);var e=r+Math.floor(Math.random()*n);return d(l,e)};c.exports=p},42169:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){var a=t.indexOf(d),r=t.indexOf(p);return a!==-1&&r===-1?(t[a]=p,!0):!1};c.exports=T},86003:c=>{/** + */var T=function(t,d,p){var l=t.indexOf(d),r=t.indexOf(p);return l!==-1&&r===-1?(t[l]=p,!0):!1};c.exports=T},86003:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d){d===void 0&&(d=1);for(var p=null,a=0;a{/** + */var T=function(t,d){d===void 0&&(d=1);for(var p=null,l=0;l{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d){d===void 0&&(d=1);for(var p=null,a=0;a{/** + */var T=function(t,d){d===void 0&&(d=1);for(var p=null,l=0;l{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){var r=t.length;if(d<0||d>r||d>=p||p>r){if(a)throw new Error("Range Error: Values outside acceptable range");return!1}else return!0};c.exports=T},89545:c=>{/** + */var T=function(t,d,p,l){var r=t.length;if(d<0||d>r||d>=p||p>r){if(l)throw new Error("Range Error: Values outside acceptable range");return!1}else return!0};c.exports=T},89545:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -6161,28 +6161,28 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(82011),p=function(a,r,n,e,s){if(e===void 0&&(e=0),s===void 0&&(s=a.length),d(a,e,s))for(var l=e;l{/** + */var d=t(82011),p=function(l,r,n,e,s){if(e===void 0&&(e=0),s===void 0&&(s=l.length),d(l,e,s))for(var o=e;o{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t){for(var d=t.length-1;d>0;d--){var p=Math.floor(Math.random()*(d+1)),a=t[d];t[d]=t[p],t[p]=a}return t};c.exports=T},90126:c=>{/** + */var T=function(t){for(var d=t.length-1;d>0;d--){var p=Math.floor(Math.random()*(d+1)),l=t[d];t[d]=t[p],t[p]=l}return t};c.exports=T},90126:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t){var d=/\D/g;return t.sort(function(p,a){return parseInt(p.replace(d,""),10)-parseInt(a.replace(d,""),10)}),t};c.exports=T},19133:c=>{/** + */var T=function(t){var d=/\D/g;return t.sort(function(p,l){return parseInt(p.replace(d,""),10)-parseInt(l.replace(d,""),10)}),t};c.exports=T},19133:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d){if(!(d>=t.length)){for(var p=t.length-1,a=t[d],r=d;r{/** + */var T=function(t,d){if(!(d>=t.length)){for(var p=t.length-1,l=t[d],r=d;r{/** * @author Richard Davey * @author Angry Bytes (and contributors) * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(82264);function p(e,s){return String(e).localeCompare(s)}function a(e,s){var l=e.length;if(l<=1)return e;for(var i=new Array(l),o=1;oo&&(v=o),m>o&&(m=o),x=f,g=v;;)if(x{/** + */var d=t(82264);function p(e,s){return String(e).localeCompare(s)}function l(e,s){var o=e.length;if(o<=1)return e;for(var i=new Array(o),a=1;aa&&(v=a),m>a&&(m=a),g=f,x=v;;)if(g{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){if(d===p)return t;var a=t.indexOf(d),r=t.indexOf(p);if(a<0||r<0)throw new Error("Supplied items must be elements of the same array");return t[a]=p,t[r]=d,t};c.exports=T},37105:(c,T,t)=>{/** + */var T=function(t,d,p){if(d===p)return t;var l=t.indexOf(d),r=t.indexOf(p);if(l<0||r<0)throw new Error("Supplied items must be elements of the same array");return t[l]=p,t[r]=d,t};c.exports=T},37105:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -6194,9 +6194,9 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(41836),p=t(86922),a=function(r){var n="";if(!p(r))return n;for(var e=0;e{/** +`}}return n};c.exports=l},92598:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -6208,27 +6208,27 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(37829),p=function(a){return d(a,180)};c.exports=p},44657:(c,T,t)=>{/** + */var d=t(37829),p=function(l){return d(l,180)};c.exports=p},44657:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(37829),p=function(a,r){r===void 0&&(r=1);for(var n=0;n{/** + */var d=t(37829),p=function(l,r){r===void 0&&(r=1);for(var n=0;n{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(86922),p=t(2429),a=function(r,n){if(n===void 0&&(n=90),!d(r))return null;if(typeof n!="string"&&(n=(n%360+360)%360),n===90||n===-270||n==="rotateLeft")r=p(r),r.reverse();else if(n===-90||n===270||n==="rotateRight")r.reverse(),r=p(r);else if(Math.abs(n)===180||n==="rotate180"){for(var e=0;e{/** + */var d=t(86922),p=t(2429),l=function(r,n){if(n===void 0&&(n=90),!d(r))return null;if(typeof n!="string"&&(n=(n%360+360)%360),n===90||n===-270||n==="rotateLeft")r=p(r),r.reverse();else if(n===-90||n===270||n==="rotateRight")r.reverse(),r=p(r);else if(Math.abs(n)===180||n==="rotate180"){for(var e=0;e{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(37829),p=function(a,r){r===void 0&&(r=1);for(var n=0;n{/** + */var d=t(37829),p=function(l,r){r===void 0&&(r=1);for(var n=0;n{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(86003),p=t(49498),a=function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),e!==0&&(e<0?d(r,Math.abs(e)):p(r,e)),n!==0)for(var s=0;s{/** + */var d=t(86003),p=t(49498),l=function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),e!==0&&(e<0?d(r,Math.abs(e)):p(r,e)),n!==0)for(var s=0;s{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t){for(var d=t.length,p=t[0].length,a=new Array(p),r=0;r-1;n--)a[r][n]=t[n][r]}return a};c.exports=T},54915:(c,T,t)=>{/** + */var T=function(t){for(var d=t.length,p=t[0].length,l=new Array(p),r=0;r-1;n--)l[r][n]=t[n][r]}return l};c.exports=T},54915:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -6237,12 +6237,12 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=function(d,p){for(var a=new Uint8Array(d),r=a.length,n=p?"data:"+p+";base64,":"",e=0;e>2],n+=T[(a[e]&3)<<4|a[e+1]>>4],n+=T[(a[e+1]&15)<<2|a[e+2]>>6],n+=T[a[e+2]&63];return r%3===2?n=n.substring(0,n.length-1)+"=":r%3===1&&(n=n.substring(0,n.length-2)+"=="),n};c.exports=t},53134:c=>{/** + */var T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=function(d,p){for(var l=new Uint8Array(d),r=l.length,n=p?"data:"+p+";base64,":"",e=0;e>2],n+=T[(l[e]&3)<<4|l[e+1]>>4],n+=T[(l[e+1]&15)<<2|l[e+2]>>6],n+=T[l[e+2]&63];return r%3===2?n=n.substring(0,n.length-1)+"=":r%3===1&&(n=n.substring(0,n.length-2)+"=="),n};c.exports=t},53134:c=>{/** * @author Niklas von Hertzen (https://github.com/niklasvh/base64-arraybuffer) * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */for(var T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=new Uint8Array(256),d=0;d>4,h[e++]=(l&15)<<4|i>>2,h[e++]=(i&3)<<6|o&63;return u};c.exports=p},65839:(c,T,t)=>{/** + */for(var T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=new Uint8Array(256),d=0;d>4,h[e++]=(o&15)<<4|i>>2,h[e++]=(i&3)<<6|a&63;return u};c.exports=p},65839:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -6258,27 +6258,27 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t){var d,p,a;if(typeof t!="object"||t===null)return t;d=Array.isArray(t)?[]:{};for(a in t)p=t[a],d[a]=T(p);return d};c.exports=T},79291:(c,T,t)=>{/** + */var T=function(t){var d,p,l;if(typeof t!="object"||t===null)return t;d=Array.isArray(t)?[]:{};for(l in t)p=t[l],d[l]=T(p);return d};c.exports=T},79291:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(41212),p=function(){var a,r,n,e,s,l,i=arguments[0]||{},o=1,u=arguments.length,h=!1;for(typeof i=="boolean"&&(h=i,i=arguments[1]||{},o=2),u===o&&(i=this,--o);o{/** + */var d=t(41212),p=function(){var l,r,n,e,s,o,i=arguments[0]||{},a=1,u=arguments.length,h=!1;for(typeof i=="boolean"&&(h=i,i=arguments[1]||{},a=2),u===a&&(i=this,--a);a{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(75508),p=t(35154),a=function(r,n,e){var s=p(r,n,null);if(s===null)return e;if(Array.isArray(s))return d.RND.pick(s);if(typeof s=="object"){if(s.hasOwnProperty("randInt"))return d.RND.integerInRange(s.randInt[0],s.randInt[1]);if(s.hasOwnProperty("randFloat"))return d.RND.realInRange(s.randFloat[0],s.randFloat[1])}else if(typeof s=="function")return s(n);return s};c.exports=a},95540:c=>{/** + */var d=t(75508),p=t(35154),l=function(r,n,e){var s=p(r,n,null);if(s===null)return e;if(Array.isArray(s))return d.RND.pick(s);if(typeof s=="object"){if(s.hasOwnProperty("randInt"))return d.RND.integerInRange(s.randInt[0],s.randInt[1]);if(s.hasOwnProperty("randFloat"))return d.RND.realInRange(s.randFloat[0],s.randFloat[1])}else if(typeof s=="function")return s(n);return s};c.exports=l},95540:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){var a=typeof t;return!t||a==="number"||a==="string"?p:t.hasOwnProperty(d)&&t[d]!==void 0?t[d]:p};c.exports=T},82840:(c,T,t)=>{/** + */var T=function(t,d,p){var l=typeof t;return!t||l==="number"||l==="string"?p:t.hasOwnProperty(d)&&t[d]!==void 0?t[d]:p};c.exports=T},82840:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(35154),p=t(45319),a=function(r,n,e,s,l){l===void 0&&(l=e);var i=d(r,n,l);return p(i,e,s)};c.exports=a},35154:c=>{/** + */var d=t(35154),p=t(45319),l=function(r,n,e,s,o){o===void 0&&(o=e);var i=d(r,n,o);return p(i,e,s)};c.exports=l},35154:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){if(!t&&!a||typeof t=="number")return p;if(t&&t.hasOwnProperty(d))return t[d];if(a&&a.hasOwnProperty(d))return a[d];if(d.indexOf(".")!==-1){for(var r=d.split("."),n=t,e=a,s=p,l=p,i=!0,o=!0,u=0;u{/** + */var T=function(t,d,p,l){if(!t&&!l||typeof t=="number")return p;if(t&&t.hasOwnProperty(d))return t[d];if(l&&l.hasOwnProperty(d))return l[d];if(d.indexOf(".")!==-1){for(var r=d.split("."),n=t,e=l,s=p,o=p,i=!0,a=!0,u=0;u{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -6298,19 +6298,19 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(41786),p=function(a,r){var n=d(a);for(var e in r)n.hasOwnProperty(e)||(n[e]=r[e]);return n};c.exports=p},269:(c,T,t)=>{/** + */var d=t(41786),p=function(l,r){var n=d(l);for(var e in r)n.hasOwnProperty(e)||(n[e]=r[e]);return n};c.exports=p},269:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(41786),p=function(a,r){var n=d(a);for(var e in r)n.hasOwnProperty(e)&&(n[e]=r[e]);return n};c.exports=p},18254:(c,T,t)=>{/** + */var d=t(41786),p=function(l,r){var n=d(l);for(var e in r)n.hasOwnProperty(e)&&(n[e]=r[e]);return n};c.exports=p},18254:(c,T,t)=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var d=t(97022),p=function(a,r){for(var n={},e=0;e{/** + */var d=t(97022),p=function(l,r){for(var n={},e=0;e{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p){if(!t||typeof t=="number")return!1;if(t.hasOwnProperty(d))return t[d]=p,!0;if(d.indexOf(".")!==-1){for(var a=d.split("."),r=t,n=t,e=0;e{/** + */var T=function(t,d,p){if(!t||typeof t=="number")return!1;if(t.hasOwnProperty(d))return t[d]=p,!0;if(d.indexOf(".")!==-1){for(var l=d.split("."),r=t,n=t,e=0;e{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -6318,11 +6318,11 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d){return t.replace(/%([0-9]+)/g,function(p,a){return d[Number(a)-1]})};c.exports=T},41836:c=>{/** + */var T=function(t,d){return t.replace(/%([0-9]+)/g,function(p,l){return d[Number(l)-1]})};c.exports=T},41836:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */var T=function(t,d,p,a){d===void 0&&(d=0),p===void 0&&(p=" "),a===void 0&&(a=3),t=t.toString();var r=0;if(d+1>=t.length)switch(a){case 1:t=new Array(d+1-t.length).join(p)+t;break;case 3:var n=Math.ceil((r=d-t.length)/2),e=r-n;t=new Array(e+1).join(p)+t+new Array(n+1).join(p);break;default:t=t+new Array(d+1-t.length).join(p);break}return t};c.exports=T},33628:c=>{/** + */var T=function(t,d,p,l){d===void 0&&(d=0),p===void 0&&(p=" "),l===void 0&&(l=3),t=t.toString();var r=0;if(d+1>=t.length)switch(l){case 1:t=new Array(d+1-t.length).join(p)+t;break;case 3:var n=Math.ceil((r=d-t.length)/2),e=r-n;t=new Array(e+1).join(p)+t+new Array(n+1).join(p);break;default:t=t+new Array(d+1-t.length).join(p);break}return t};c.exports=T},33628:c=>{/** * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -6342,5 +6342,5 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */c.exports={Format:t(27902),Pad:t(41836),RemoveAt:t(33628),Reverse:t(27671),UppercaseFirst:t(35355),UUID:t(45650)}}},tt={};function $(c){var T=tt[c];if(T!==void 0)return T.exports;var t=tt[c]={exports:{}};return nt[c](t,t.exports,$),t.exports}$.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}();var k=$(85454);return k})())})(Jt);var wt=Jt.exports;const Rt=re(wt),ae="/phaser-platformer/assets/0x72-industrial-spike-DNiwzzQ3.png",oe="/phaser-platformer/assets/0x72-industrial-player-32px-extruded-C-P_XYOQ.png",le="/phaser-platformer/assets/0x72-industrial-tileset-32px-extruded-B--V2T79.png",he="#1d212d",ue=-1,fe=20,de=!1,ve=[{data:[0,0,0,0,23,0,0,23,0,0,97,23,0,0,0,0,0,23,0,0,0,97,0,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,23,0,0,0,0,0,23,0,0,23,0,0,97,23,0,0,0,0,0,23,0,0,0,97,0,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,23,0,0,0,0,0,23,0,0,55,0,0,97,23,0,0,0,0,0,23,0,0,0,97,0,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,0,0,23,0,0,0,0,0,23,0,0,0,97,0,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,23,0,0,0,0,0,23,0,209,0,0,0,0,23,0,0,0,0,0,23,0,0,177,0,0,0,209,0,0,23,0,0,0,0,0,23,0,236,0,0,23,0,0,0,0,0,23,0,0,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,97,0,97,0,0,23,0,0,0,0,0,23,0,0,0,0,23,0,0,23,0,0,23,0,146,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,97,0,0,0,0,23,0,0,0,0,0,55,146,0,146,0,23,0,0,23,0,0,23,0,146,0,0,0,0,23,0,0,0,0,0,55,0,0,0,0,129,0,0,0,0,23,0,0,0,0,0,0,146,0,146,0,23,0,0,23,0,0,23,0,146,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,146,0,146,0,23,0,0,23,0,0,23,0,146,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,146,0,146,0,23,0,0,23,0,0,23,0,146,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,146,0,146,0,23,0,0,23,0,0,23,0,146,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,146,0,146,0,23,0,0,23,0,0,23,0,146,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,146,0,146,0,23,0,0,23,0,0,23,0,146,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,146,0,146,0,23,0,0,23,0,0,23,0,178,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,178,0,178,0,55,0,0,23,0,0,23,0,0,0,97,0,0,97,97,0,0,97,0,0,97,97,0,0,0,0,97,0,0,97,97,0,0,0,0,97,0,0,97,97,0,0,54,23,0,0,23,0,0,0,97,0,0,97,97,0,0,97,0,0,97,97,0,0,0,0,97,0,0,97,97,0,0,0,0,97,0,0,97,97,0,0,54,55,0,0,23,0,0,0,129,0,0,23,97,0,0,129,0,0,0,97,0,0,0,0,129,0,0,0,97,0,0,0,0,129,0,0,0,97,0,0],height:20,id:1,name:"Background",opacity:1,type:"tilelayer",visible:!0,width:40,x:0,y:0},{data:[237,237,21,22,0,0,0,0,0,0,0,0,0,0,1610612813,1610612994,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,1610612994,0,0,0,0,0,0,20,21,237,238,21,21,21,21,22,0,0,0,0,0,0,0,0,0,1610612813,1610612994,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,1610612994,0,0,0,0,0,20,21,21,21,21,66,67,66,67,54,0,0,0,0,0,0,0,0,0,1610612813,1610612994,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,1610612994,0,0,0,0,0,54,268,237,237,269,98,99,98,99,54,0,0,0,0,0,0,0,0,0,1610612813,1610612994,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,1610612994,0,0,0,0,0,54,300,237,237,302,21,21,21,21,22,0,0,0,0,0,0,0,0,0,1610612813,1610612994,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,1610612994,0,0,0,0,0,20,21,21,21,21,199,201,202,0,0,0,0,0,0,0,0,0,0,0,1610612813,1610612994,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,1610612994,0,0,0,0,646,0,0,197,198,199,231,233,234,0,0,0,0,0,0,0,0,0,0,0,1610612813,1610612993,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,1610612993,0,0,0,0,317,0,0,229,230,231,15,15,15,15,15,15,16,0,0,0,0,0,0,0,0,0,0,0,0,0,40,40,40,40,44,0,0,0,0,0,0,0,0,13,15,15,15,15,15,15,237,237,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2147483725,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,237,237,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,54,2684354637,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,54,2684354637,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,237,270,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,54,2684354637,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,237,238,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,54,2684354637,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,14,14,14,15,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,54,2684354637,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,237,301,238,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,54,2684354637,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,237,270,367,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,54,2684354637,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,237,237,270,54,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,536870989,54,2684354637,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,54,15,15,15,15,121,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,112,536870989,54,3758096461,109,19,19,19,19,19,19,19,19,19,19,19,19,19,122,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,536870989,54,3758096461,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,536870989,54,3758096461,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54],height:20,id:2,name:"Ground",opacity:1,type:"tilelayer",visible:!0,width:40,x:0,y:0},{data:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0,0,0,0,0,0,9,0,0,0,0,0,97,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0,0,0,0,0,0,9,0,0,0,0,0,97,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0,0,0,0,0,0,9,0,0,0,0,0,97,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0,0,0,0,0,0,9,0,0,0,0,0,97,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0,0,0,0,0,0,9,0,0,0,0,0,97,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0,0,0,0,0,0,9,0,0,0,0,0,97,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0,0,0,0,0,0,9,0,0,0,0,0,97,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,129,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,161,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],height:20,id:3,name:"Foreground",opacity:1,type:"tilelayer",visible:!0,width:40,x:0,y:0},{draworder:"topdown",id:4,name:"Objects",objects:[{height:0,id:1,name:"Spawn Point",point:!0,rotation:0,type:"",visible:!0,width:0,x:160,y:192}],opacity:1,type:"objectgroup",visible:!0,x:0,y:0}],pe=5,ce=7,me="orthogonal",ge="right-down",xe="1.10.2",ye=32,Se=[{columns:32,firstgid:1,image:"0x72-industrial-tileset-32px-extruded.png",imageheight:1088,imagewidth:1088,margin:1,name:"0x72-industrial-tileset-32px-extruded",spacing:2,tilecount:1024,tileheight:32,tiles:[{id:0,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:2,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:3,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:4,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:5,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:6,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:7,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:8,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:9,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:10,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:11,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:12,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:13,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:14,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:15,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:16,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:17,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:18,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:19,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:20,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:21,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:22,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:23,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:24,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:25,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:26,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:27,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:28,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:29,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:30,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:31,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:32,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:33,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:34,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:35,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:36,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:37,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:38,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:39,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:40,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:41,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:42,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:43,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:44,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:45,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:46,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:47,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:48,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:49,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:50,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:51,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:52,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:53,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:54,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:55,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:56,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:57,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:58,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:59,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:60,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:61,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:62,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:63,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:64,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:65,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:66,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:67,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:68,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:69,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:70,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:71,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:72,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:73,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:74,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:75,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:76,objectgroup:{draworder:"index",name:"",objects:[{height:6,id:5,name:"",rotation:0,type:"",visible:!0,width:30,x:2,y:26}],opacity:1,type:"objectgroup",visible:!0,x:0,y:0},properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!0}]},{id:77,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:78,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:79,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:80,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:81,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:82,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:83,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:84,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:85,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:86,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:87,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:88,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:89,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:90,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:91,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:92,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:93,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:94,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:95,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:96,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:97,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:98,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:99,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:100,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:101,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:102,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:103,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:104,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:105,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:106,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:107,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:108,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:109,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:110,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:111,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:112,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:113,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:114,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:115,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:116,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:117,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:118,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:119,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:120,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:121,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:122,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:123,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:124,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:125,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:126,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:127,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:128,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:129,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:130,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:131,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:132,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:133,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:134,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:135,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:136,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:137,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:138,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:139,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:140,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:141,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:142,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:143,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:144,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:145,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:146,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:147,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:148,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:149,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:150,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:151,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:152,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:153,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:154,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:155,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:156,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:157,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:158,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:159,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:160,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:161,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:162,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:163,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:164,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:165,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:166,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:167,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:168,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:169,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:170,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:171,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:172,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:173,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:174,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:175,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:176,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:177,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:178,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:179,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:180,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:181,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:182,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:183,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:184,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:185,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:186,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:187,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:188,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:189,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:190,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:191,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:192,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:193,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:194,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:195,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:196,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:197,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:198,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:199,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:200,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:201,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:202,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:203,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:204,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:205,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:206,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:207,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:208,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:209,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:210,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:211,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:212,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:213,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:214,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:215,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:216,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:217,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:218,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:219,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:220,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:221,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:222,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:223,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:224,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:225,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:226,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:227,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:228,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:229,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:230,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:231,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:232,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:233,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:234,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:235,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:236,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:237,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:238,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:239,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:240,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:241,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:242,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:243,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:244,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:245,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:246,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:247,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:248,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:249,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:250,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:251,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:252,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:253,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:254,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:255,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:256,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:257,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:258,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:259,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:260,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:261,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:262,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:263,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:264,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:265,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:266,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:267,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:268,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:269,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:270,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:271,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:272,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:273,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:274,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:275,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:276,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:277,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:278,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:279,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:280,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:281,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:282,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:283,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:284,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:285,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:286,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:287,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:288,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:289,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:290,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:291,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:292,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:293,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:294,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:295,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:296,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:297,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:298,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:299,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:300,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:301,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:302,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:303,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:304,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:305,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:306,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:307,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:308,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:309,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:310,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:311,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:312,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:313,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:314,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:315,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:316,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:317,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:318,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:319,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:320,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:321,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:322,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:323,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:324,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:325,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:326,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:327,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:328,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:329,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:330,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:331,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:332,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:333,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:334,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:335,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:336,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:337,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:338,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:339,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:340,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:341,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:342,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:343,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:344,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:345,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:346,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:347,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:348,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:349,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:350,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:351,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:352,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:353,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:354,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:355,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:356,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:357,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:358,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:359,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:360,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:361,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:362,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:363,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:364,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:365,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:366,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:367,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:368,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:369,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:370,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:371,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:372,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:373,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:374,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:375,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:376,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:377,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:378,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:379,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:380,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:381,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:382,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:383,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:384,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:385,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:386,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:387,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:388,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:389,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:390,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:391,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:392,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:393,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:394,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:395,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:396,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:397,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:398,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:399,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:400,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:401,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:402,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:403,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:404,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:405,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:406,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:407,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:408,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:409,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:410,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:411,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:412,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:413,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:414,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:415,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:416,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:417,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:418,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:419,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:420,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:421,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:422,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:423,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:424,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:425,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:426,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:427,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:428,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:429,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:430,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:431,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:432,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:433,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:434,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:435,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:436,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:437,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:438,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:439,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:440,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:441,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:442,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:443,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:444,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:445,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:446,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:447,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:448,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:449,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:450,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:451,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:452,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:453,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:454,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:455,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:456,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:457,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:458,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:459,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:460,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:461,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:462,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:463,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:464,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:465,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:466,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:467,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:468,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:469,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:470,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:471,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:472,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:473,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:474,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:475,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:476,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:477,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:478,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:479,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:480,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:481,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:482,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:483,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:484,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:485,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:486,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:487,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:488,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:489,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:490,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:491,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:492,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:493,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:494,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:495,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:496,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:497,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:498,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:499,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:500,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:501,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:502,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:503,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:504,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:505,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:506,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:507,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:508,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:509,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:510,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:511,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:512,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:513,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:514,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:515,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:516,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:517,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:518,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:519,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:520,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:521,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:522,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:523,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:524,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:525,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:526,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:527,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:528,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:529,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:530,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:531,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:532,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:533,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:534,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:535,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:536,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:537,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:538,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:539,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:540,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:541,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:542,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:543,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:544,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:545,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:546,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:547,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:548,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:549,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:550,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:551,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:552,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:553,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:554,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:555,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:556,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:557,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:558,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:559,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:560,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:561,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:562,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:563,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:564,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:565,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:566,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:567,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:568,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:569,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:570,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:571,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:572,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:573,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:574,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:575,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:576,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:577,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:578,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:579,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:580,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:581,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:582,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:583,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:584,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:585,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:586,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:587,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:588,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:589,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:590,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:591,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:592,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:593,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:594,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:595,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:596,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:597,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:598,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:599,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:600,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:601,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:602,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:603,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:604,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:605,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:606,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:607,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:608,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:609,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:610,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:611,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:612,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:613,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:614,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:615,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:616,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:617,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:618,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:619,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:620,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:621,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:622,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:623,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:624,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:625,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:626,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:627,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:628,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:629,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:630,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:631,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:632,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:633,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:634,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:635,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:636,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:637,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:638,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:639,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:640,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:641,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:642,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:643,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:644,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:645,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:646,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:647,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:648,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:649,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:650,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:651,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:652,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:653,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:654,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:655,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:656,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:657,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:658,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:659,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:660,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:661,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:662,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:663,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:664,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:665,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:666,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:667,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:668,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:669,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:670,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:671,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:672,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:673,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:674,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:675,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:676,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:677,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:678,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:679,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:680,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:681,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:682,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:683,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:684,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:685,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:686,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:687,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:688,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:689,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:690,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:691,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:692,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:693,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:694,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:695,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:696,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:697,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:698,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:699,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:700,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:701,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:702,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:703,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:704,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:705,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:706,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:707,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:708,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:709,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:710,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:711,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:712,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:713,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:714,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:715,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:716,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:717,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:718,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:719,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:720,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:721,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:722,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:723,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:724,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:725,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:726,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:727,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:728,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:729,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:730,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:731,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:732,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:733,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:734,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:735,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:736,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:737,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:738,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:739,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:740,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:741,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:742,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:743,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:744,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:745,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:746,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:747,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:748,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:749,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:750,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:751,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:752,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:753,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:754,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:755,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:756,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:757,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:758,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:759,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:760,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:761,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:762,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:763,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:764,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:765,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:766,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:767,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:768,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:769,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:770,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:771,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:772,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:773,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:774,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:775,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:776,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:777,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:778,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:779,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:780,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:781,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:782,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:783,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:784,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:785,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:786,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:787,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:788,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:789,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:790,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:791,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:792,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:793,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:794,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:795,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:796,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:797,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:798,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:799,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:800,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:801,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:802,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:803,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:804,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:805,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:806,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:807,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:808,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:809,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:810,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:811,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:812,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:813,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:814,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:815,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:816,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:817,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:818,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:819,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:820,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:821,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:822,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:823,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:824,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:825,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:826,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:827,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:828,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:829,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:830,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:831,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:832,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:833,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:834,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:835,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:836,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:837,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:838,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:839,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:840,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:841,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:842,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:843,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:844,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:845,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:846,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:847,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:848,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:849,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:850,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:851,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:852,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:853,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:854,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:855,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:856,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:857,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:858,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:859,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:860,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:861,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:862,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:863,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:864,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:865,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:866,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:867,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:868,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:869,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:870,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:871,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:872,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:873,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:874,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:875,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:876,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:877,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:878,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:879,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:880,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:881,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:882,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:883,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:884,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:885,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:886,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:887,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:888,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:889,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:890,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:891,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:892,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:893,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:894,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:895,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:896,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:897,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:898,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:899,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:900,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:901,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:902,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:903,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:904,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:905,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:906,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:907,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:908,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:909,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:910,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:911,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:912,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:913,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:914,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:915,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:916,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:917,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:918,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:919,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:920,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:921,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:922,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:923,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:924,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:925,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:926,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:927,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:928,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:929,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:930,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:931,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:932,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:933,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:934,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:935,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:936,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:937,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:938,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:939,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:940,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:941,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:942,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:943,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:944,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:945,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:946,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:947,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:948,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:949,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:950,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:951,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:952,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:953,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:954,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:955,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:956,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:957,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:958,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:959,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:960,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:961,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:962,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:963,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:964,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:965,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:966,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:967,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:968,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:969,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:970,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:971,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:972,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:973,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:974,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:975,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:976,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:977,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:978,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:979,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:980,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:981,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:982,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:983,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:984,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:985,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:986,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:987,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:988,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:989,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:990,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:991,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:992,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:993,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:994,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:995,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:996,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:997,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:998,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:999,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1e3,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1001,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1002,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1003,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1004,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1005,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1006,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1007,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1008,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1009,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1010,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1011,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1012,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1013,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1014,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1015,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1016,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1017,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1018,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1019,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1020,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1021,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1022,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1023,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]}],tilewidth:32}],Te=32,Ce="map",Ee="1.10",Pe=40,Ae={backgroundcolor:he,compressionlevel:ue,height:fe,infinite:de,layers:ve,nextlayerid:pe,nextobjectid:ce,orientation:me,renderorder:ge,tiledversion:xe,tileheight:ye,tilesets:Se,tilewidth:Te,type:Ce,version:Ee,width:Pe},Me={spike:"spike",tiles:"tiles"},Re={boot:"boot",main:"main"},Fe={player:"player"},Le={platformer:"platformer"},St={image:Me,scene:Re,spritesheet:Fe,tilemap:Le},Oe="0x72-industrial-tileset-32px-extruded";var Lt=(J=>(J.Background="Background",J.Ground="Ground",J.Foreground="Foreground",J.Objects="Objects",J))(Lt||{}),Qt=(J=>(J.SpawnPoint="Spawn Point",J))(Qt||{}),jt=(J=>(J[J.Spike=77]="Spike",J))(jt||{});class Vt extends wt.Scene{constructor(){super(St.scene.boot)}preload(){this.load.spritesheet(St.spritesheet.player,oe,{frameWidth:32,frameHeight:32,margin:1,spacing:2}),this.load.image(St.image.spike,ae),this.load.image(St.image.tiles,le),this.load.tilemapTiledJSON(St.tilemap.platformer,Ae)}create(){this.scene.start(St.scene.main)}}var $t={},Bt={},kt={},et={};Object.defineProperty(et,"__esModule",{value:!0});et.Zone=et.Video=et.UpdateList=et.Triangle=et.TileSprite=et.TextStyle=et.Text=et.Star=et.Sprite=et.Shape=et.Shader=et.Rope=et.RenderTexture=et.Rectangle=et.Polygon=et.PointLight=et.Plane=et.PathFollower=et.ParticleEmitter=et.NineSlice=et.Mesh=et.Line=et.LightsPlugin=et.LightsManager=et.Light=et.Layer=et.IsoTriangle=et.IsoBox=et.Image=et.Group=et.Grid=et.Graphics=et.GameObjectFactory=et.GameObjectCreator=et.GameObject=et.Extern=et.Ellipse=et.DynamicBitmapText=et.DisplayList=et.DOMElement=et.Curve=et.Container=et.Bob=et.Blitter=et.BitmapText=et.Arc=void 0;var lt=wt;et.Arc=lt.GameObjects.Arc;et.BitmapText=lt.GameObjects.BitmapText;et.Blitter=lt.GameObjects.Blitter;et.Bob=lt.GameObjects.Bob;et.Container=lt.GameObjects.Container;et.Curve=lt.GameObjects.Curve;et.DOMElement=lt.GameObjects.DOMElement;et.DisplayList=lt.GameObjects.DisplayList;et.DynamicBitmapText=lt.GameObjects.DynamicBitmapText;et.Ellipse=lt.GameObjects.Ellipse;et.Extern=lt.GameObjects.Extern;et.GameObject=lt.GameObjects.GameObject;et.GameObjectCreator=lt.GameObjects.GameObjectCreator;et.GameObjectFactory=lt.GameObjects.GameObjectFactory;et.Graphics=lt.GameObjects.Graphics;et.Grid=lt.GameObjects.Grid;et.Group=lt.GameObjects.Group;et.Image=lt.GameObjects.Image;et.IsoBox=lt.GameObjects.IsoBox;et.IsoTriangle=lt.GameObjects.IsoTriangle;et.Layer=lt.GameObjects.Layer;et.Light=lt.GameObjects.Light;et.LightsManager=lt.GameObjects.LightsManager;et.LightsPlugin=lt.GameObjects.LightsPlugin;et.Line=lt.GameObjects.Line;et.Mesh=lt.GameObjects.Mesh;et.NineSlice=lt.GameObjects.NineSlice;et.ParticleEmitter=lt.GameObjects.Particles.ParticleEmitter;et.PathFollower=lt.GameObjects.PathFollower;et.Plane=lt.GameObjects.Plane;et.PointLight=lt.GameObjects.PointLight;et.Polygon=lt.GameObjects.Polygon;et.Rectangle=lt.GameObjects.Rectangle;et.RenderTexture=lt.GameObjects.RenderTexture;et.Rope=lt.GameObjects.Rope;et.Shader=lt.GameObjects.Shader;et.Shape=lt.GameObjects.Shape;et.Sprite=lt.GameObjects.Sprite;et.Star=lt.GameObjects.Star;et.Text=lt.GameObjects.Text;et.TextStyle=lt.GameObjects.TextStyle;et.TileSprite=lt.GameObjects.TileSprite;et.Triangle=lt.GameObjects.Triangle;et.UpdateList=lt.GameObjects.UpdateList;et.Video=lt.GameObjects.Video;et.Zone=lt.GameObjects.Zone;(function(J){var q=ht&&ht.__createBinding||(Object.create?function(tt,$,k,c){c===void 0&&(c=k);var T=Object.getOwnPropertyDescriptor($,k);(!T||("get"in T?!$.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return $[k]}}),Object.defineProperty(tt,c,T)}:function(tt,$,k,c){c===void 0&&(c=k),tt[c]=$[k]}),nt=ht&&ht.__exportStar||function(tt,$){for(var k in tt)k!=="default"&&!Object.prototype.hasOwnProperty.call($,k)&&q($,tt,k)};Object.defineProperty(J,"__esModule",{value:!0}),nt(et,J)})(kt);var Wt={},Ot={};Object.defineProperty(Ot,"__esModule",{value:!0});Ot.createElement=void 0;function be(J,q){for(var nt=[],tt=2;tt-1:t=new J.type(q);break;default:return Yt(new J.type(J.props),q)}return(0,Ke.setProps)(t,T,q),(0,Ze.attachRef)(t,$),Array.isArray(tt)&&tt.forEach(function(d){var p=Yt(d,q);p&&(t instanceof zt.default.GameObjects.Container?t.add(p):q.add.existing(p))}),t}}bt.createGameObject=Yt;var Xt={};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.render=void 0;var Qe=Ht,je=bt;function $e(J,q){(0,Qe.setScene)(q);var nt=(0,je.createGameObject)(J,q);nt&&q.add.existing(nt)}Xt.render=$e;(function(J){var q=ht&&ht.__createBinding||(Object.create?function(tt,$,k,c){c===void 0&&(c=k);var T=Object.getOwnPropertyDescriptor($,k);(!T||("get"in T?!$.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return $[k]}}),Object.defineProperty(tt,c,T)}:function(tt,$,k,c){c===void 0&&(c=k),tt[c]=$[k]}),nt=ht&&ht.__exportStar||function(tt,$){for(var k in tt)k!=="default"&&!Object.prototype.hasOwnProperty.call($,k)&&q($,tt,k)};Object.defineProperty(J,"__esModule",{value:!0}),nt(bt,J),nt(Kt,J),nt(Dt,J),nt(Xt,J)})(ie);(function(J){var q=ht&&ht.__createBinding||(Object.create?function(T,t,d,p){p===void 0&&(p=d);var a=Object.getOwnPropertyDescriptor(t,d);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[d]}}),Object.defineProperty(T,p,a)}:function(T,t,d,p){p===void 0&&(p=d),T[p]=t[d]}),nt=ht&&ht.__exportStar||function(T,t){for(var d in T)d!=="default"&&!Object.prototype.hasOwnProperty.call(t,d)&&q(t,T,d)};Object.defineProperty(J,"__esModule",{value:!0}),J.render=J.createRef=J.useScene=J.jsx=J.createElement=void 0,nt(kt,J);var tt=Wt;Object.defineProperty(J,"createElement",{enumerable:!0,get:function(){return tt.createElement}}),Object.defineProperty(J,"jsx",{enumerable:!0,get:function(){return tt.jsx}});var $=_t;Object.defineProperty(J,"useScene",{enumerable:!0,get:function(){return $.useScene}});var k=ee;Object.defineProperty(J,"createRef",{enumerable:!0,get:function(){return k.createRef}});var c=ie;Object.defineProperty(J,"render",{enumerable:!0,get:function(){return c.render}})})(Bt);(function(J){Object.defineProperty(J,"__esModule",{value:!0}),J.jsxs=J.jsx=J.Fragment=void 0;var q=Bt;Object.defineProperty(J,"Fragment",{enumerable:!0,get:function(){return q.Container}}),Object.defineProperty(J,"jsx",{enumerable:!0,get:function(){return q.jsx}}),Object.defineProperty(J,"jsxs",{enumerable:!0,get:function(){return q.jsx}})})($t);var ne=$t;function ke(){return ne.jsx(Bt.Text,{x:16,y:16,text:["WASD or arrow keys to move & jump","Left-click to draw tiles","Right-click to erase tiles"].join(` -`),style:{color:"#000",fontFamily:"monospace",fontSize:"18px",backgroundColor:"#fff",padding:{x:20,y:10}},scrollFactorX:0,scrollFactorY:0})}class qe extends Rt.GameObjects.Graphics{constructor(q,nt,tt){super(q),this.map=nt,this.groundLayer=tt,this.lineStyle(5,16777215,1),this.strokeRect(0,0,nt.tileWidth,nt.tileHeight),this.lineStyle(3,16732024,1),this.strokeRect(0,0,nt.tileWidth,nt.tileHeight),q.add.existing(this)}update(){const q=this.scene.input.activePointer.positionToCamera(this.scene.cameras.main),nt=this.map.worldToTileXY(q.x,q.y),tt=this.map.tileToWorldXY(nt.x,nt.y);this.setPosition(tt.x,tt.y);const{activePointer:$}=this.scene.input.manager;if($.leftButtonDown())try{this.groundLayer.putTileAtWorldXY(6,q.x,q.y).setCollision(!0)}catch{}else $.rightButtonDown()&&this.groundLayer.removeTileAtWorldXY(q.x,q.y)}}class _e extends Rt.Physics.Arcade.Sprite{constructor(q,nt,tt,$=St.spritesheet.player,k=0){super(q,nt,tt,$,k),this.cursors=this.createCursorKeys(),this.createAnimations(),this.enablePhysics()}enablePhysics(){this.scene.physics.world.enable(this),this.setDrag(1e3,0).setMaxVelocity(300,400).setSize(18,24).setOffset(7,9),this.scene.add.existing(this)}createCursorKeys(){return this.scene.input.keyboard.addKeys("w,a,s,d,up,left,down,right")}createAnimations(){const q=this.scene.anims;q.exists("PlayerIdle")||q.create({key:"PlayerIdle",frames:q.generateFrameNumbers(St.spritesheet.player,{start:0,end:3}),frameRate:3,repeat:-1}),q.exists("PlayerRun")||q.create({key:"PlayerRun",frames:q.generateFrameNumbers(St.spritesheet.player,{start:8,end:15}),frameRate:12,repeat:-1})}freeze(){this.body.moves=!1}update(){const q=this.body.blocked.down?600:200;switch(!0){case this.cursors.left.isDown:case this.cursors.a.isDown:this.setFlipX(!0),this.setAccelerationX(-q);break;case this.cursors.right.isDown:case this.cursors.d.isDown:this.setFlipX(!1),this.setAccelerationX(q);break;default:this.setAccelerationX(0)}this.body.blocked.down&&(this.cursors.up.isDown||this.cursors.w.isDown)&&this.setVelocityY(-500),this.body.blocked.down?this.anims.play(this.body.velocity.x?"PlayerRun":"PlayerIdle",!0):(this.anims.stop(),this.setTexture(St.spritesheet.player,10))}}class ti extends Rt.Scene{constructor(){super(St.scene.main),this.isPlayerDead=!1}create(){this.isPlayerDead=!1;const q=this.make.tilemap({key:St.tilemap.platformer}),nt=q.addTilesetImage(Oe,St.image.tiles);q.createLayer(Lt.Background,nt),this.groundLayer=q.createLayer(Lt.Ground,nt),q.createLayer(Lt.Foreground,nt);const tt=q.findObject(Lt.Objects,({name:$})=>$===Qt.SpawnPoint);this.player=new _e(this,tt.x,tt.y),this.groundLayer.setCollisionByProperty({collides:!0}),this.physics.world.addCollider(this.player,this.groundLayer),this.spikeGroup=this.physics.add.staticGroup(),this.groundLayer.forEachTile($=>{if($.index===jt.Spike){const k=this.spikeGroup.create($.getCenterX(),$.getCenterY(),St.image.spike);k.rotation=$.rotation,k.angle===0?k.body.setSize(32,6).setOffset(0,26):k.angle===-90?k.body.setSize(6,32).setOffset(26,0):k.angle===90&&k.body.setSize(6,32).setOffset(0,0),this.groundLayer.removeTileAt($.x,$.y)}}),this.cameras.main.startFollow(this.player),this.cameras.main.setBounds(0,0,q.widthInPixels,q.heightInPixels),this.tileMarker=new qe(this,q,this.groundLayer),Bt.render(ne.jsx(ke,{}),this)}update(){this.isPlayerDead||(this.player.update(),this.tileMarker.update(),(this.player.y>this.groundLayer.height||this.physics.world.overlap(this.player,this.spikeGroup))&&(this.isPlayerDead=!0,this.cameras.main.shake(100,.05),this.cameras.main.fade(250,0,0,0),this.player.freeze(),this.cameras.main.once("camerafadeoutcomplete",()=>{this.player.destroy(),this.scene.restart()})))}}const ei=Object.freeze(Object.defineProperty({__proto__:null,Boot:Vt,Main:ti},Symbol.toStringTag,{value:"Module"}));new Rt.Game({width:1200,height:600,title:"Phaser Platformer",url:"https://remarkablegames.org/phaser-platformer/",version:"1.0.0-alpha",scene:[Vt,...Object.values(ei).filter(J=>J!==Vt)],physics:{default:"arcade",arcade:{gravity:{x:0,y:1e3},debug:!1}},disableContextMenu:!0,backgroundColor:"#1d212d",scale:{mode:Rt.Scale.FIT,autoCenter:Rt.Scale.CENTER_BOTH},pixelArt:!0}); + */c.exports={Format:t(27902),Pad:t(41836),RemoveAt:t(33628),Reverse:t(27671),UppercaseFirst:t(35355),UUID:t(45650)}}},tt={};function $(c){var T=tt[c];if(T!==void 0)return T.exports;var t=tt[c]={exports:{}};return nt[c](t,t.exports,$),t.exports}$.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}();var k=$(85454);return k})())})(kt);var It=kt.exports;const Rt=ue(It),fe="/phaser-platformer/assets/0x72-industrial-spike-DNiwzzQ3.png",de="/phaser-platformer/assets/0x72-industrial-player-32px-extruded-C-P_XYOQ.png",ve="/phaser-platformer/assets/0x72-industrial-tileset-32px-extruded-B--V2T79.png",pe="#1d212d",ce=-1,me=20,ge=!1,xe=[{data:[0,0,0,0,23,0,0,23,0,0,97,23,0,0,0,0,0,23,0,0,0,97,0,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,23,0,0,0,0,0,23,0,0,23,0,0,97,23,0,0,0,0,0,23,0,0,0,97,0,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,23,0,0,0,0,0,23,0,0,55,0,0,97,23,0,0,0,0,0,23,0,0,0,97,0,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,0,0,23,0,0,0,0,0,23,0,0,0,97,0,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,23,0,0,0,0,0,23,0,209,0,0,0,0,23,0,0,0,0,0,23,0,0,177,0,0,0,209,0,0,23,0,0,0,0,0,23,0,236,0,0,23,0,0,0,0,0,23,0,0,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,97,0,97,0,0,23,0,0,0,0,0,23,0,0,0,0,23,0,0,23,0,0,23,0,146,0,0,0,0,23,0,0,0,0,0,23,0,0,0,0,97,0,0,0,0,23,0,0,0,0,0,55,146,0,146,0,23,0,0,23,0,0,23,0,146,0,0,0,0,23,0,0,0,0,0,55,0,0,0,0,129,0,0,0,0,23,0,0,0,0,0,0,146,0,146,0,23,0,0,23,0,0,23,0,146,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,146,0,146,0,23,0,0,23,0,0,23,0,146,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,146,0,146,0,23,0,0,23,0,0,23,0,146,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,146,0,146,0,23,0,0,23,0,0,23,0,146,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,146,0,146,0,23,0,0,23,0,0,23,0,146,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,146,0,146,0,23,0,0,23,0,0,23,0,146,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,146,0,146,0,23,0,0,23,0,0,23,0,178,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,178,0,178,0,55,0,0,23,0,0,23,0,0,0,97,0,0,97,97,0,0,97,0,0,97,97,0,0,0,0,97,0,0,97,97,0,0,0,0,97,0,0,97,97,0,0,54,23,0,0,23,0,0,0,97,0,0,97,97,0,0,97,0,0,97,97,0,0,0,0,97,0,0,97,97,0,0,0,0,97,0,0,97,97,0,0,54,55,0,0,23,0,0,0,129,0,0,23,97,0,0,129,0,0,0,97,0,0,0,0,129,0,0,0,97,0,0,0,0,129,0,0,0,97,0,0],height:20,id:1,name:"Background",opacity:1,type:"tilelayer",visible:!0,width:40,x:0,y:0},{data:[237,237,21,22,0,0,0,0,0,0,0,0,0,0,1610612813,1610612994,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,1610612994,0,0,0,0,0,0,20,21,237,238,21,21,21,21,22,0,0,0,0,0,0,0,0,0,1610612813,1610612994,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,1610612994,0,0,0,0,0,20,21,21,21,21,66,67,66,67,54,0,0,0,0,0,0,0,0,0,1610612813,1610612994,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,1610612994,0,0,0,0,0,54,268,237,237,269,98,99,98,99,54,0,0,0,0,0,0,0,0,0,1610612813,1610612994,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,1610612994,0,0,0,0,0,54,300,237,237,302,21,21,21,21,22,0,0,0,0,0,0,0,0,0,1610612813,1610612994,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,1610612994,0,0,0,0,0,20,21,21,21,21,199,201,202,0,0,0,0,0,0,0,0,0,0,0,1610612813,1610612994,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,1610612994,0,0,0,0,646,0,0,197,198,199,231,233,234,0,0,0,0,0,0,0,0,0,0,0,1610612813,1610612993,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,1610612993,0,0,0,0,317,0,0,229,230,231,15,15,15,15,15,15,16,0,0,0,0,0,0,0,0,0,0,0,0,0,40,40,40,40,44,0,0,0,0,0,0,0,0,13,15,15,15,15,15,15,237,237,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2147483725,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,237,237,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,54,2684354637,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,54,2684354637,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,237,270,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,54,2684354637,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,237,238,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,54,2684354637,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,14,14,14,15,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,54,2684354637,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,237,301,238,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,54,2684354637,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,237,270,367,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1610612813,54,2684354637,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,237,237,270,54,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,536870989,54,2684354637,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,54,15,15,15,15,121,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,112,536870989,54,3758096461,109,19,19,19,19,19,19,19,19,19,19,19,19,19,122,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,536870989,54,3758096461,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,536870989,54,3758096461,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54],height:20,id:2,name:"Ground",opacity:1,type:"tilelayer",visible:!0,width:40,x:0,y:0},{data:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0,0,0,0,0,0,9,0,0,0,0,0,97,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0,0,0,0,0,0,9,0,0,0,0,0,97,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0,0,0,0,0,0,9,0,0,0,0,0,97,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0,0,0,0,0,0,9,0,0,0,0,0,97,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0,0,0,0,0,0,9,0,0,0,0,0,97,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0,0,0,0,0,0,9,0,0,0,0,0,97,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0,0,0,0,0,0,9,0,0,0,0,0,97,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,129,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,161,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],height:20,id:3,name:"Foreground",opacity:1,type:"tilelayer",visible:!0,width:40,x:0,y:0},{draworder:"topdown",id:4,name:"Objects",objects:[{height:0,id:1,name:"Spawn Point",point:!0,rotation:0,type:"",visible:!0,width:0,x:160,y:192}],opacity:1,type:"objectgroup",visible:!0,x:0,y:0}],ye=5,Se=7,Te="orthogonal",Ce="right-down",Ee="1.10.2",Pe=32,Ae=[{columns:32,firstgid:1,image:"0x72-industrial-tileset-32px-extruded.png",imageheight:1088,imagewidth:1088,margin:1,name:"0x72-industrial-tileset-32px-extruded",spacing:2,tilecount:1024,tileheight:32,tiles:[{id:0,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:2,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:3,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:4,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:5,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:6,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:7,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:8,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:9,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:10,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:11,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:12,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:13,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:14,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:15,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:16,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:17,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:18,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:19,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:20,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:21,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:22,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:23,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:24,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:25,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:26,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:27,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:28,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:29,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:30,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:31,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:32,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:33,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:34,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:35,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:36,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:37,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:38,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:39,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:40,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:41,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:42,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:43,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:44,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:45,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:46,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:47,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:48,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:49,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:50,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:51,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:52,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:53,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:54,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:55,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:56,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:57,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:58,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:59,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:60,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:61,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:62,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:63,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:64,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:65,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:66,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:67,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:68,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:69,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:70,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:71,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:72,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:73,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:74,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:75,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:76,objectgroup:{draworder:"index",name:"",objects:[{height:6,id:5,name:"",rotation:0,type:"",visible:!0,width:30,x:2,y:26}],opacity:1,type:"objectgroup",visible:!0,x:0,y:0},properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!0}]},{id:77,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:78,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:79,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:80,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:81,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:82,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:83,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:84,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:85,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:86,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:87,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:88,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:89,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:90,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:91,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:92,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:93,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:94,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:95,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:96,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:97,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:98,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:99,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:100,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:101,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:102,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:103,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:104,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:105,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:106,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:107,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:108,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:109,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:110,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:111,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:112,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:113,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:114,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:115,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:116,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:117,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:118,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:119,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:120,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:121,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:122,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:123,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:124,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:125,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:126,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:127,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:128,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:129,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:130,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:131,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:132,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:133,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:134,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:135,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:136,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:137,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:138,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:139,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:140,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:141,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:142,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:143,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:144,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:145,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:146,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:147,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:148,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:149,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:150,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:151,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:152,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:153,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:154,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:155,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:156,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:157,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:158,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:159,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:160,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:161,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:162,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:163,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:164,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:165,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:166,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:167,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:168,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:169,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:170,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:171,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:172,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:173,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:174,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:175,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:176,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:177,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:178,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:179,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:180,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:181,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:182,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:183,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:184,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:185,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:186,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:187,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:188,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:189,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:190,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:191,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:192,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:193,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:194,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:195,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:196,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:197,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:198,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:199,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:200,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:201,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:202,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:203,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:204,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:205,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:206,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:207,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:208,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:209,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:210,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:211,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:212,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:213,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:214,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:215,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:216,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:217,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:218,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:219,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:220,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:221,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:222,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:223,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:224,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:225,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:226,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:227,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:228,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:229,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:230,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:231,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:232,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:233,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:234,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:235,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:236,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:237,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:238,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:239,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:240,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:241,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:242,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:243,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:244,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:245,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:246,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:247,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:248,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:249,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:250,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:251,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:252,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:253,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:254,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:255,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:256,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:257,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:258,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:259,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:260,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:261,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:262,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:263,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:264,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:265,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:266,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:267,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:268,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:269,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:270,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:271,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:272,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:273,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:274,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:275,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:276,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:277,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:278,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:279,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:280,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:281,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:282,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:283,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:284,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:285,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:286,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:287,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:288,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:289,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:290,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:291,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:292,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:293,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:294,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:295,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:296,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:297,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:298,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:299,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:300,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:301,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:302,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:303,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:304,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:305,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:306,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:307,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:308,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:309,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:310,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:311,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:312,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:313,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:314,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:315,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:316,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:317,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:318,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:319,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:320,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:321,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:322,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:323,properties:[{name:"collides",type:"bool",value:!0},{name:"isSpike",type:"bool",value:!1}]},{id:324,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:325,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:326,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:327,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:328,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:329,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:330,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:331,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:332,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:333,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:334,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:335,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:336,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:337,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:338,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:339,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:340,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:341,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:342,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:343,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:344,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:345,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:346,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:347,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:348,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:349,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:350,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:351,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:352,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:353,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:354,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:355,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:356,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:357,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:358,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:359,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:360,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:361,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:362,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:363,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:364,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:365,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:366,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:367,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:368,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:369,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:370,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:371,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:372,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:373,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:374,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:375,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:376,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:377,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:378,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:379,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:380,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:381,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:382,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:383,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:384,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:385,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:386,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:387,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:388,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:389,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:390,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:391,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:392,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:393,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:394,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:395,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:396,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:397,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:398,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:399,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:400,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:401,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:402,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:403,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:404,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:405,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:406,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:407,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:408,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:409,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:410,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:411,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:412,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:413,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:414,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:415,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:416,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:417,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:418,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:419,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:420,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:421,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:422,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:423,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:424,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:425,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:426,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:427,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:428,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:429,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:430,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:431,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:432,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:433,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:434,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:435,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:436,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:437,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:438,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:439,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:440,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:441,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:442,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:443,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:444,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:445,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:446,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:447,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:448,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:449,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:450,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:451,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:452,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:453,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:454,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:455,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:456,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:457,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:458,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:459,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:460,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:461,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:462,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:463,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:464,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:465,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:466,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:467,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:468,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:469,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:470,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:471,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:472,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:473,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:474,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:475,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:476,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:477,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:478,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:479,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:480,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:481,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:482,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:483,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:484,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:485,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:486,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:487,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:488,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:489,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:490,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:491,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:492,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:493,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:494,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:495,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:496,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:497,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:498,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:499,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:500,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:501,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:502,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:503,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:504,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:505,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:506,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:507,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:508,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:509,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:510,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:511,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:512,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:513,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:514,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:515,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:516,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:517,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:518,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:519,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:520,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:521,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:522,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:523,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:524,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:525,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:526,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:527,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:528,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:529,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:530,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:531,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:532,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:533,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:534,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:535,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:536,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:537,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:538,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:539,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:540,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:541,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:542,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:543,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:544,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:545,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:546,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:547,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:548,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:549,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:550,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:551,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:552,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:553,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:554,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:555,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:556,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:557,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:558,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:559,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:560,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:561,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:562,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:563,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:564,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:565,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:566,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:567,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:568,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:569,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:570,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:571,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:572,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:573,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:574,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:575,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:576,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:577,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:578,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:579,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:580,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:581,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:582,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:583,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:584,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:585,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:586,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:587,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:588,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:589,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:590,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:591,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:592,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:593,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:594,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:595,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:596,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:597,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:598,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:599,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:600,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:601,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:602,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:603,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:604,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:605,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:606,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:607,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:608,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:609,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:610,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:611,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:612,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:613,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:614,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:615,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:616,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:617,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:618,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:619,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:620,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:621,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:622,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:623,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:624,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:625,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:626,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:627,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:628,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:629,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:630,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:631,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:632,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:633,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:634,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:635,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:636,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:637,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:638,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:639,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:640,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:641,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:642,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:643,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:644,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:645,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:646,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:647,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:648,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:649,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:650,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:651,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:652,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:653,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:654,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:655,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:656,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:657,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:658,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:659,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:660,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:661,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:662,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:663,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:664,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:665,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:666,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:667,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:668,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:669,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:670,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:671,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:672,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:673,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:674,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:675,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:676,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:677,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:678,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:679,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:680,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:681,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:682,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:683,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:684,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:685,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:686,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:687,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:688,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:689,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:690,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:691,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:692,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:693,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:694,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:695,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:696,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:697,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:698,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:699,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:700,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:701,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:702,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:703,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:704,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:705,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:706,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:707,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:708,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:709,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:710,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:711,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:712,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:713,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:714,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:715,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:716,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:717,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:718,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:719,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:720,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:721,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:722,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:723,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:724,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:725,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:726,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:727,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:728,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:729,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:730,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:731,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:732,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:733,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:734,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:735,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:736,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:737,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:738,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:739,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:740,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:741,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:742,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:743,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:744,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:745,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:746,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:747,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:748,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:749,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:750,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:751,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:752,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:753,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:754,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:755,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:756,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:757,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:758,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:759,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:760,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:761,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:762,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:763,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:764,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:765,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:766,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:767,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:768,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:769,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:770,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:771,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:772,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:773,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:774,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:775,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:776,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:777,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:778,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:779,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:780,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:781,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:782,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:783,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:784,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:785,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:786,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:787,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:788,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:789,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:790,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:791,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:792,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:793,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:794,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:795,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:796,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:797,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:798,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:799,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:800,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:801,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:802,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:803,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:804,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:805,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:806,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:807,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:808,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:809,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:810,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:811,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:812,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:813,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:814,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:815,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:816,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:817,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:818,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:819,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:820,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:821,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:822,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:823,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:824,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:825,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:826,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:827,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:828,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:829,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:830,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:831,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:832,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:833,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:834,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:835,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:836,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:837,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:838,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:839,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:840,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:841,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:842,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:843,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:844,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:845,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:846,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:847,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:848,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:849,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:850,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:851,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:852,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:853,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:854,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:855,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:856,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:857,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:858,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:859,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:860,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:861,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:862,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:863,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:864,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:865,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:866,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:867,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:868,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:869,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:870,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:871,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:872,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:873,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:874,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:875,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:876,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:877,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:878,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:879,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:880,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:881,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:882,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:883,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:884,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:885,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:886,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:887,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:888,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:889,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:890,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:891,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:892,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:893,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:894,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:895,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:896,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:897,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:898,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:899,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:900,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:901,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:902,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:903,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:904,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:905,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:906,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:907,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:908,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:909,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:910,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:911,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:912,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:913,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:914,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:915,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:916,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:917,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:918,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:919,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:920,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:921,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:922,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:923,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:924,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:925,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:926,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:927,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:928,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:929,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:930,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:931,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:932,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:933,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:934,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:935,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:936,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:937,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:938,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:939,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:940,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:941,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:942,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:943,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:944,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:945,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:946,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:947,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:948,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:949,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:950,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:951,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:952,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:953,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:954,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:955,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:956,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:957,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:958,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:959,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:960,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:961,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:962,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:963,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:964,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:965,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:966,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:967,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:968,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:969,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:970,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:971,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:972,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:973,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:974,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:975,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:976,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:977,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:978,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:979,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:980,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:981,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:982,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:983,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:984,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:985,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:986,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:987,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:988,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:989,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:990,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:991,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:992,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:993,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:994,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:995,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:996,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:997,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:998,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:999,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1e3,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1001,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1002,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1003,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1004,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1005,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1006,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1007,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1008,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1009,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1010,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1011,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1012,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1013,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1014,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1015,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1016,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1017,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1018,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1019,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1020,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1021,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1022,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]},{id:1023,properties:[{name:"collides",type:"bool",value:!1},{name:"isSpike",type:"bool",value:!1}]}],tilewidth:32}],Me=32,Re="map",Fe="1.10",Le=40,Oe={backgroundcolor:pe,compressionlevel:ce,height:me,infinite:ge,layers:xe,nextlayerid:ye,nextobjectid:Se,orientation:Te,renderorder:Ce,tiledversion:Ee,tileheight:Pe,tilesets:Ae,tilewidth:Me,type:Re,version:Fe,width:Le},be={spike:"spike",tiles:"tiles"},De={boot:"boot",main:"main"},we={player:"player"},Be={platformer:"platformer"},Et={image:be,scene:De,spritesheet:we,tilemap:Be},Ie="0x72-industrial-tileset-32px-extruded";var Lt=(J=>(J.Background="Background",J.Ground="Ground",J.Foreground="Foreground",J.Objects="Objects",J))(Lt||{}),qt=(J=>(J.SpawnPoint="Spawn Point",J))(qt||{}),_t=(J=>(J[J.Spike=77]="Spike",J))(_t||{});class Ht extends It.Scene{constructor(){super(Et.scene.boot)}preload(){this.load.spritesheet(Et.spritesheet.player,de,{frameWidth:32,frameHeight:32,margin:1,spacing:2}),this.load.image(Et.image.spike,fe),this.load.image(Et.image.tiles,ve),this.load.tilemapTiledJSON(Et.tilemap.platformer,Oe)}create(){this.scene.start(Et.scene.main)}}var te={},Gt={},ee={},et={};Object.defineProperty(et,"__esModule",{value:!0});et.Zone=et.Video=et.UpdateList=et.Triangle=et.TileSprite=et.TextStyle=et.Text=et.Star=et.Sprite=et.Shape=et.Shader=et.Rope=et.RenderTexture=et.Rectangle=et.Polygon=et.PointLight=et.Plane=et.PathFollower=et.ParticleEmitter=et.NineSlice=et.Mesh=et.Line=et.LightsPlugin=et.LightsManager=et.Light=et.Layer=et.IsoTriangle=et.IsoBox=et.Image=et.Group=et.Grid=et.Graphics=et.GameObjectFactory=et.GameObjectCreator=et.GameObject=et.Extern=et.Ellipse=et.DynamicBitmapText=et.DisplayList=et.DOMElement=et.Curve=et.Container=et.Bob=et.Blitter=et.BitmapText=et.Arc=void 0;var lt=It;et.Arc=lt.GameObjects.Arc;et.BitmapText=lt.GameObjects.BitmapText;et.Blitter=lt.GameObjects.Blitter;et.Bob=lt.GameObjects.Bob;et.Container=lt.GameObjects.Container;et.Curve=lt.GameObjects.Curve;et.DOMElement=lt.GameObjects.DOMElement;et.DisplayList=lt.GameObjects.DisplayList;et.DynamicBitmapText=lt.GameObjects.DynamicBitmapText;et.Ellipse=lt.GameObjects.Ellipse;et.Extern=lt.GameObjects.Extern;et.GameObject=lt.GameObjects.GameObject;et.GameObjectCreator=lt.GameObjects.GameObjectCreator;et.GameObjectFactory=lt.GameObjects.GameObjectFactory;et.Graphics=lt.GameObjects.Graphics;et.Grid=lt.GameObjects.Grid;et.Group=lt.GameObjects.Group;et.Image=lt.GameObjects.Image;et.IsoBox=lt.GameObjects.IsoBox;et.IsoTriangle=lt.GameObjects.IsoTriangle;et.Layer=lt.GameObjects.Layer;et.Light=lt.GameObjects.Light;et.LightsManager=lt.GameObjects.LightsManager;et.LightsPlugin=lt.GameObjects.LightsPlugin;et.Line=lt.GameObjects.Line;et.Mesh=lt.GameObjects.Mesh;et.NineSlice=lt.GameObjects.NineSlice;et.ParticleEmitter=lt.GameObjects.Particles.ParticleEmitter;et.PathFollower=lt.GameObjects.PathFollower;et.Plane=lt.GameObjects.Plane;et.PointLight=lt.GameObjects.PointLight;et.Polygon=lt.GameObjects.Polygon;et.Rectangle=lt.GameObjects.Rectangle;et.RenderTexture=lt.GameObjects.RenderTexture;et.Rope=lt.GameObjects.Rope;et.Shader=lt.GameObjects.Shader;et.Shape=lt.GameObjects.Shape;et.Sprite=lt.GameObjects.Sprite;et.Star=lt.GameObjects.Star;et.Text=lt.GameObjects.Text;et.TextStyle=lt.GameObjects.TextStyle;et.TileSprite=lt.GameObjects.TileSprite;et.Triangle=lt.GameObjects.Triangle;et.UpdateList=lt.GameObjects.UpdateList;et.Video=lt.GameObjects.Video;et.Zone=lt.GameObjects.Zone;(function(J){var q=ht&&ht.__createBinding||(Object.create?function(tt,$,k,c){c===void 0&&(c=k);var T=Object.getOwnPropertyDescriptor($,k);(!T||("get"in T?!$.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return $[k]}}),Object.defineProperty(tt,c,T)}:function(tt,$,k,c){c===void 0&&(c=k),tt[c]=$[k]}),nt=ht&&ht.__exportStar||function(tt,$){for(var k in tt)k!=="default"&&!Object.prototype.hasOwnProperty.call($,k)&&q($,tt,k)};Object.defineProperty(J,"__esModule",{value:!0}),nt(et,J)})(ee);var Zt={},Ot={};Object.defineProperty(Ot,"__esModule",{value:!0});Ot.createElement=void 0;function Ge(J,q){for(var nt=[],tt=2;tt-1:t=new J.type(q);break;default:return Kt(new J.type(J.props),q)}return(0,$e.setProps)(t,T,q),(0,ke.attachRef)(t,$),Array.isArray(tt)&&tt.forEach(function(d){var p=Kt(d,q);p&&(t instanceof Wt.default.GameObjects.Container?t.add(p):q.add.existing(p))}),t}}bt.createGameObject=Kt;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.render=void 0;var _e=Jt,ti=bt;function ei(J,q){(0,_e.setScene)(q);var nt=(0,ti.createGameObject)(J,q);nt&&q.add.existing(nt)}Vt.render=ei;(function(J){var q=ht&&ht.__createBinding||(Object.create?function(tt,$,k,c){c===void 0&&(c=k);var T=Object.getOwnPropertyDescriptor($,k);(!T||("get"in T?!$.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return $[k]}}),Object.defineProperty(tt,c,T)}:function(tt,$,k,c){c===void 0&&(c=k),tt[c]=$[k]}),nt=ht&&ht.__exportStar||function(tt,$){for(var k in tt)k!=="default"&&!Object.prototype.hasOwnProperty.call($,k)&&q($,tt,k)};Object.defineProperty(J,"__esModule",{value:!0}),nt(bt,J),nt(Qt,J),nt(Dt,J),nt(Vt,J)})(ae);(function(J){var q=ht&&ht.__createBinding||(Object.create?function(T,t,d,p){p===void 0&&(p=d);var l=Object.getOwnPropertyDescriptor(t,d);(!l||("get"in l?!t.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return t[d]}}),Object.defineProperty(T,p,l)}:function(T,t,d,p){p===void 0&&(p=d),T[p]=t[d]}),nt=ht&&ht.__exportStar||function(T,t){for(var d in T)d!=="default"&&!Object.prototype.hasOwnProperty.call(t,d)&&q(t,T,d)};Object.defineProperty(J,"__esModule",{value:!0}),J.render=J.createRef=J.useScene=J.jsx=J.createElement=void 0,nt(ee,J);var tt=Zt;Object.defineProperty(J,"createElement",{enumerable:!0,get:function(){return tt.createElement}}),Object.defineProperty(J,"jsx",{enumerable:!0,get:function(){return tt.jsx}});var $=se;Object.defineProperty(J,"useScene",{enumerable:!0,get:function(){return $.useScene}});var k=re;Object.defineProperty(J,"createRef",{enumerable:!0,get:function(){return k.createRef}});var c=ae;Object.defineProperty(J,"render",{enumerable:!0,get:function(){return c.render}})})(Gt);(function(J){Object.defineProperty(J,"__esModule",{value:!0}),J.jsxs=J.jsx=J.Fragment=void 0;var q=Gt;Object.defineProperty(J,"Fragment",{enumerable:!0,get:function(){return q.Container}}),Object.defineProperty(J,"jsx",{enumerable:!0,get:function(){return q.jsx}}),Object.defineProperty(J,"jsxs",{enumerable:!0,get:function(){return q.jsx}})})(te);var le=te;function ii(){return le.jsx(Gt.Text,{x:16,y:16,text:["WASD or arrow keys to move & jump","Left-click to draw tiles","Right-click to erase tiles"].join(` +`),style:{color:"#000",fontFamily:"monospace",fontSize:"18px",backgroundColor:"#fff",padding:{x:20,y:10}},scrollFactorX:0,scrollFactorY:0})}class si extends Rt.GameObjects.Graphics{constructor(q,nt,tt){super(q),this.map=nt,this.groundLayer=tt,this.lineStyle(5,16777215,1),this.strokeRect(0,0,nt.tileWidth,nt.tileHeight),this.lineStyle(3,16732024,1),this.strokeRect(0,0,nt.tileWidth,nt.tileHeight),q.add.existing(this)}update(){const q=this.scene.input.activePointer.positionToCamera(this.scene.cameras.main),nt=this.map.worldToTileXY(q.x,q.y),tt=this.map.tileToWorldXY(nt.x,nt.y);this.setPosition(tt.x,tt.y);const{activePointer:$}=this.scene.input.manager;if($.leftButtonDown())try{this.groundLayer.putTileAtWorldXY(6,q.x,q.y).setCollision(!0)}catch{}else $.rightButtonDown()&&this.groundLayer.removeTileAtWorldXY(q.x,q.y)}}class ni extends Rt.Physics.Arcade.Sprite{constructor(q,nt,tt,$=Et.spritesheet.player,k=0){super(q,nt,tt,$,k),this.cursors=this.createCursorKeys(),this.createAnimations(),this.enablePhysics()}enablePhysics(){this.scene.physics.world.enable(this),this.setDrag(1e3,0).setMaxVelocity(300,400).setSize(18,24).setOffset(7,9),this.scene.add.existing(this)}createCursorKeys(){return this.scene.input.keyboard.addKeys("w,a,s,d,up,left,down,right")}createAnimations(){const q=this.scene.anims;q.exists("PlayerIdle")||q.create({key:"PlayerIdle",frames:q.generateFrameNumbers(Et.spritesheet.player,{start:0,end:3}),frameRate:3,repeat:-1}),q.exists("PlayerRun")||q.create({key:"PlayerRun",frames:q.generateFrameNumbers(Et.spritesheet.player,{start:8,end:15}),frameRate:12,repeat:-1})}freeze(){this.body.moves=!1}update(){const q=this.body.blocked.down?600:200;switch(!0){case this.cursors.left.isDown:case this.cursors.a.isDown:this.setFlipX(!0),this.setAccelerationX(-q);break;case this.cursors.right.isDown:case this.cursors.d.isDown:this.setFlipX(!1),this.setAccelerationX(q);break;default:this.setAccelerationX(0)}this.body.blocked.down&&(this.cursors.up.isDown||this.cursors.w.isDown)&&this.setVelocityY(-500),this.body.blocked.down?this.anims.play(this.body.velocity.x?"PlayerRun":"PlayerIdle",!0):(this.anims.stop(),this.setTexture(Et.spritesheet.player,10))}}class ri extends Rt.Scene{constructor(){super(Et.scene.main),this.isPlayerDead=!1}create(){this.isPlayerDead=!1;const q=this.make.tilemap({key:Et.tilemap.platformer}),nt=q.addTilesetImage(Ie,Et.image.tiles);q.createLayer(Lt.Background,nt),this.groundLayer=q.createLayer(Lt.Ground,nt),q.createLayer(Lt.Foreground,nt);const tt=q.findObject(Lt.Objects,({name:$})=>$===qt.SpawnPoint);this.player=new ni(this,tt.x,tt.y),this.groundLayer.setCollisionByProperty({collides:!0}),this.physics.world.addCollider(this.player,this.groundLayer),this.spikeGroup=this.physics.add.staticGroup(),this.groundLayer.forEachTile($=>{if($.index===_t.Spike){const k=this.spikeGroup.create($.getCenterX(),$.getCenterY(),Et.image.spike);k.rotation=$.rotation,k.angle===0?k.body.setSize(32,6).setOffset(0,26):k.angle===-90?k.body.setSize(6,32).setOffset(26,0):k.angle===90&&k.body.setSize(6,32).setOffset(0,0),this.groundLayer.removeTileAt($.x,$.y)}}),this.cameras.main.startFollow(this.player),this.cameras.main.setBounds(0,0,q.widthInPixels,q.heightInPixels),this.tileMarker=new si(this,q,this.groundLayer),Gt.render(le.jsx(ii,{}),this)}update(){this.isPlayerDead||(this.player.update(),this.tileMarker.update(),(this.player.y>this.groundLayer.height||this.physics.world.overlap(this.player,this.spikeGroup))&&(this.isPlayerDead=!0,this.cameras.main.shake(100,.05),this.cameras.main.fade(250,0,0,0),this.player.freeze(),this.cameras.main.once("camerafadeoutcomplete",()=>{this.player.destroy(),this.scene.restart()})))}}const ai=Object.freeze(Object.defineProperty({__proto__:null,Boot:Ht,Main:ri},Symbol.toStringTag,{value:"Module"}));new Rt.Game({width:1200,height:600,title:"Phaser Platformer",url:"https://remarkablegames.org/phaser-platformer/",version:"1.0.0-alpha",scene:[Ht,...Object.values(ai).filter(J=>J!==Ht)],physics:{default:"arcade",arcade:{gravity:{x:0,y:1e3},debug:!1}},disableContextMenu:!0,backgroundColor:"#1d212d",scale:{mode:Rt.Scale.FIT,autoCenter:Rt.Scale.CENTER_BOTH},pixelArt:!0}); diff --git a/index.html b/index.html index c1dc100..1422f62 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ -Phaser Platformer | remarkablegamesPhaser Platformer | remarkablegames